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.
|
1332
|
9 #### Copyright (C) 1995, 1996, 2002, 2003 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.
|
724
|
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
|
0
|
20
|
|
21 ### This file is part of XEmacs.
|
|
22
|
|
23 ### XEmacs is free software; you can redistribute it and/or modify it
|
|
24 ### under the terms of the GNU General Public License as published by
|
|
25 ### the Free Software Foundation; either version 2, or (at your
|
|
26 ### option) any later version.
|
|
27
|
|
28 ### XEmacs is distributed in the hope that it will be useful, but
|
|
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
31 ### General Public License for more details.
|
|
32
|
|
33 ### You should have received a copy of the GNU General Public License
|
|
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
|
|
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
36 ### 02111-1307, USA.
|
|
37
|
149
|
38 ### For usage, run `./configure --help'
|
|
39 ### For more detailed information on building and installing XEmacs,
|
|
40 ### read the file `INSTALL'.
|
0
|
41 ###
|
|
42 ### If configure succeeds, it leaves its status in config.status.
|
149
|
43 ### A log of configuration tests can be found in config.log.
|
0
|
44 ### If configure fails after disturbing the status quo,
|
|
45 ### config.status is removed.
|
|
46
|
149
|
47 ac_help="$ac_help
|
|
48 --with-x use the X Window System"
|
|
49
|
284
|
50
|
|
51
|
|
52 if test -n "$ZSH_VERSION"; then
|
|
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
|
|
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
|
|
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
|
|
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
|
|
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
|
|
58 elif test -n "$BASH_VERSION"; then
|
|
59 set -o posix
|
|
60 unset CDPATH
|
|
61 else
|
|
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
|
|
63 fi
|
|
64
|
1916
|
65 for xe_parse_arg
|
|
66 do
|
1259
|
67 case $xe_parse_arg in
|
|
68 --srcdir) (echo "$progname: Usage error:"
|
1889
|
69 echo " " "The \`--srcdir' option requires a string value."
|
1259
|
70 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
71 --srcdir=*) srcdir=`echo $xe_parse_arg | sed -e 's/--srcdir=//'` ;;
|
|
72 *) ;;
|
|
73 esac
|
|
74 done
|
|
75
|
149
|
76 exec_prefix=NONE
|
|
77 host=NONE
|
|
78 no_create=
|
|
79 nonopt=NONE
|
|
80 no_recursion=
|
|
81 prefix=NONE
|
|
82 program_prefix=NONE
|
|
83 program_suffix=NONE
|
|
84 program_transform_name=s,x,x,
|
|
85 silent=
|
|
86 site=
|
|
87 target=NONE
|
|
88 verbose=
|
|
89 x_includes=NONE
|
|
90 x_libraries=NONE
|
153
|
91
|
149
|
92 subdirs=
|
1889
|
93 MFLAGS=
|
|
94 MAKEFLAGS=
|
442
|
95 SHELL=${CONFIG_SHELL-/bin/sh}
|
149
|
96 ac_max_here_lines=12
|
|
97
|
|
98 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
99
|
|
100 # File descriptor usage:
|
|
101 # 0 standard input
|
|
102 # 1 file creation
|
|
103 # 2 errors and warnings
|
|
104 # 3 some systems may open it to /dev/tty
|
|
105 # 4 used on the Kubota Titan
|
|
106 # 6 checking for... messages and results
|
|
107 # 5 compiler messages saved in config.log
|
|
108 if test "$silent" = yes; then
|
|
109 exec 6>/dev/null
|
|
110 else
|
|
111 exec 6>&1
|
|
112 fi
|
|
113 exec 5>./config.log
|
|
114
|
|
115 echo "\
|
|
116 This file contains any messages produced by compilers while
|
|
117 running configure, to aid debugging if configure makes a mistake.
|
|
118 " 1>&5
|
|
119
|
|
120 # Strip out --no-create and --no-recursion so they do not pile up.
|
|
121 # Also quote any args containing shell metacharacters.
|
|
122 ac_configure_args=
|
|
123 for ac_arg
|
|
124 do
|
|
125 case "$ac_arg" in
|
|
126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
127 | --no-cr | --no-c) ;;
|
|
128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
130 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
131 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
132 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
133 esac
|
|
134 done
|
|
135
|
|
136 # NLS nuisances.
|
|
137 # Only set these to C if already set. These must not be set unconditionally
|
|
138 # because not all systems understand e.g. LANG=C (notably SCO).
|
|
139 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|
140 # Non-C LC_CTYPE values break the ctype check.
|
|
141 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
142 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
143 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
144 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|
145
|
|
146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
147 rm -rf conftest* confdefs.h
|
|
148 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
149 echo > confdefs.h
|
|
150
|
|
151 # A filename unique to this package, relative to the directory that
|
|
152 # configure is in, which we can look for to find out if srcdir is correct.
|
|
153 ac_unique_file=src/lisp.h
|
|
154
|
|
155 # Find the source files, if location was not specified.
|
|
156 if test -z "$srcdir"; then
|
|
157 ac_srcdir_defaulted=yes
|
|
158 # Try the directory containing this script, then its parent.
|
|
159 ac_prog=$0
|
|
160 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
161 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
162 srcdir=$ac_confdir
|
|
163 if test ! -r $srcdir/$ac_unique_file; then
|
|
164 srcdir=..
|
|
165 fi
|
|
166 else
|
|
167 ac_srcdir_defaulted=no
|
|
168 fi
|
|
169 if test ! -r $srcdir/$ac_unique_file; then
|
|
170 if test "$ac_srcdir_defaulted" = yes; then
|
|
171 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
172 else
|
|
173 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
174 fi
|
|
175 fi
|
|
176 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
177
|
|
178 # Prefer explicitly selected file to automatically selected ones.
|
|
179 if test -z "$CONFIG_SITE"; then
|
|
180 if test "x$prefix" != xNONE; then
|
|
181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|
182 else
|
|
183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
184 fi
|
|
185 fi
|
|
186 for ac_site_file in $CONFIG_SITE; do
|
|
187 if test -r "$ac_site_file"; then
|
|
188 echo "loading site script $ac_site_file"
|
|
189 . "$ac_site_file"
|
|
190 fi
|
|
191 done
|
|
192
|
|
193
|
|
194 ac_ext=c
|
151
|
195 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
196 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
197 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
|
198 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
199 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
200 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
201 cross_compiling=no
|
|
202
|
420
|
203 ac_exeext=
|
|
204 ac_objext=o
|
149
|
205 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|
206 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|
207 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|
208 ac_n= ac_c='
|
|
209 ' ac_t=' '
|
|
210 else
|
|
211 ac_n=-n ac_c= ac_t=
|
|
212 fi
|
|
213 else
|
|
214 ac_n= ac_c='\c' ac_t=
|
|
215 fi
|
|
216
|
|
217
|
1889
|
218
|
0
|
219 progname="`echo $0 | sed 's:^\./\./:\./:'`"
|
|
220
|
149
|
221
|
151
|
222 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
|
167
|
223 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
|
224
|
0
|
225 prefix='/usr/local'
|
|
226 exec_prefix='${prefix}'
|
|
227 bindir='${exec_prefix}/bin'
|
|
228 datadir='${prefix}/lib'
|
|
229 statedir='${prefix}/lib'
|
|
230 libdir='${exec_prefix}/lib'
|
|
231 mandir='${prefix}/man/man1'
|
422
|
232 inststaticdir='${PROGNAME}'
|
|
233 instvardir='${PROGNAME}-${version}'
|
|
234 infodir='${datadir}/${instvardir}/info'
|
274
|
235 infopath=''
|
276
|
236 install_pp=''
|
422
|
237 lispdir='${datadir}/${instvardir}/lisp'
|
670
|
238 moduledir='${libdir}/${instvardir}/${configuration}/modules'
|
422
|
239 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
|
670
|
240 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
|
274
|
241 package_path=''
|
422
|
242 etcdir='${datadir}/${instvardir}/etc'
|
670
|
243 archlibdir='${libdir}/${instvardir}/${configuration}'
|
420
|
244 docdir='${archlibdir}'
|
462
|
245 with_netinstall="no"
|
420
|
246 with_prefix='yes'
|
269
|
247 with_site_lisp='no'
|
388
|
248 with_site_modules='yes'
|
1111
|
249 need_modules_common=''
|
0
|
250 with_menubars=''
|
|
251 with_scrollbars=''
|
420
|
252 with_widgets=''
|
0
|
253 with_dialogs=''
|
272
|
254 cpp='' cppflags='' libs='' ldflags=''
|
452
|
255 extra_includes=''
|
0
|
256 dynamic=''
|
|
257 with_x11=''
|
263
|
258 with_msw=''
|
0
|
259 rel_alloc='default'
|
181
|
260 with_system_malloc='default'
|
261
|
261 with_dlmalloc='default'
|
1464
|
262 with_native_sound=''
|
|
263 with_nas_sound=''
|
|
264 with_esd_sound='no'
|
0
|
265 native_sound_lib=''
|
462
|
266 with_gtk='no'
|
|
267 with_gnome='no'
|
153
|
268 use_assertions="yes"
|
|
269 with_toolbars=""
|
157
|
270 with_tty=""
|
153
|
271 use_union_type="no"
|
|
272 with_dnet=""
|
1984
|
273 use_number_lib="no"
|
1161
|
274 pdump=""
|
771
|
275 with_dragndrop_default="no"
|
708
|
276 with_ipv6_cname="no"
|
0
|
277
|
149
|
278
|
0
|
279 arguments="$@"
|
|
280
|
120
|
281 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
|
0
|
282 quoted_arguments=
|
|
283 for i in "$@"; do
|
120
|
284 case "$i" in
|
|
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
286 | --no-cr | --no-c) ;;
|
153
|
287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
120
|
289 *)
|
159
|
290 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
|
120
|
291 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
|
|
292 esac
|
0
|
293 done
|
|
294
|
70
|
295 while test $# != 0; do
|
0
|
296 arg="$1"; shift
|
149
|
297 case "$arg" in
|
157
|
298 --no-create|--no-recursion) ;;
|
1889
|
299 --srcdir=*) ;; -* )
|
149
|
300 case "$arg" in
|
0
|
301 -*=*)
|
149
|
302 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
303 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
0
|
304 valomitted=no
|
|
305 ;;
|
149
|
306 -*)
|
|
307 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
243
|
308 val="yes" valomitted=yes
|
0
|
309 ;;
|
|
310 esac
|
|
311
|
274
|
312 optname="$opt"
|
|
313 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
|
|
314
|
243
|
315 case "${valomitted}-${opt}" in yes-without_* )
|
|
316 opt=`echo $opt | sed 's/without/with/'`
|
|
317 valomitted="no" val="no" ;;
|
|
318 esac
|
|
319
|
149
|
320 case "$opt" in
|
|
321
|
380
|
322 with_site_lisp | \
|
420
|
323 with_prefix | \
|
|
324 with_site_modules | \
|
70
|
325 with_x | \
|
|
326 with_x11 | \
|
462
|
327 with_gtk | \
|
|
328 with_gnome | \
|
263
|
329 with_msw | \
|
70
|
330 with_gcc | \
|
|
331 dynamic | \
|
149
|
332 with_ncurses | \
|
|
333 with_dnet | \
|
|
334 with_socks | \
|
282
|
335 with_dragndrop | \
|
70
|
336 with_cde | \
|
|
337 with_offix | \
|
149
|
338 with_gpm | \
|
|
339 with_xpm | \
|
|
340 with_xface | \
|
251
|
341 with_gif | \
|
|
342 with_jpeg | \
|
|
343 with_png | \
|
|
344 with_tiff | \
|
771
|
345 with_zlib | \
|
414
|
346 with_wmcommand | \
|
70
|
347 with_xmu | \
|
380
|
348 with_purify | \
|
149
|
349 with_quantify | \
|
70
|
350 with_toolbars | \
|
|
351 with_tty | \
|
215
|
352 with_xfs | \
|
70
|
353 with_mule | \
|
771
|
354 with_default_eol_detection | \
|
70
|
355 with_canna | \
|
|
356 with_wnn | \
|
98
|
357 with_wnn6 | \
|
149
|
358 with_workshop | \
|
70
|
359 with_sparcworks | \
|
380
|
360 with_tooltalk | \
|
259
|
361 with_ldap | \
|
442
|
362 with_postgresql | \
|
118
|
363 with_pop | \
|
|
364 with_kerberos | \
|
|
365 with_hesiod | \
|
136
|
366 with_dnet | \
|
280
|
367 with_infodock | \
|
724
|
368 with_netinstall | \
|
|
369 with_ipv6_cname | \
|
70
|
370 external_widget | \
|
925
|
371 use_kkcc | \
|
120
|
372 verbose | \
|
|
373 extra_verbose | \
|
380
|
374 usage_tracking | \
|
|
375 use_union_type | \
|
424
|
376 pdump | \
|
70
|
377 debug | \
|
|
378 use_assertions | \
|
|
379 memory_usage_stats | \
|
173
|
380 with_clash_detection | \
|
422
|
381 with_modules | \
|
442
|
382 quick_build )
|
149
|
383 case "$val" in
|
0
|
384 y | ye | yes ) val=yes ;;
|
380
|
385 n | no ) val=no ;;
|
149
|
386 * ) (echo "$progname: Usage error:"
|
|
387 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
|
|
388 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
389 esac
|
380
|
390 eval "$opt=\"$val\"" ;;
|
149
|
391
|
|
392
|
1259
|
393 compiler | \
|
596
|
394 xemacs_compiler | \
|
157
|
395 cflags | \
|
1111
|
396 cflags_warning | \
|
272
|
397 cpp | \
|
|
398 cppflags | \
|
|
399 libs | \
|
|
400 ldflags | \
|
153
|
401 cache_file | \
|
380
|
402 native_sound_lib| \
|
267
|
403 site_lisp | \
|
70
|
404 x_includes | \
|
|
405 x_libraries | \
|
|
406 site_includes | \
|
|
407 site_libraries | \
|
209
|
408 site_prefixes | \
|
149
|
409 site_runtime_libraries )
|
|
410 if test "$valomitted" = "yes" ; then
|
|
411 if test "$#" = 0 ; then
|
|
412 (echo "$progname: Usage error:"
|
|
413 echo " " "The \`--$optname' option requires a value."
|
|
414 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
0
|
415 fi
|
|
416 val="$1"; shift
|
|
417 fi
|
149
|
418 eval "$opt=\"$val\""
|
0
|
419 ;;
|
|
420
|
149
|
421 rel_alloc | \
|
261
|
422 with_dlmalloc | \
|
181
|
423 with_debug_malloc | use_debug_malloc | \
|
|
424 with_system_malloc | use_system_malloc )
|
149
|
425 case "$val" in
|
0
|
426 y | ye | yes ) val=yes ;;
|
|
427 n | no ) val=no ;;
|
181
|
428 d | de | def | defa | defau | defaul | default ) val=default ;;
|
149
|
429 * ) (echo "$progname: Usage error:"
|
|
430 echo " " "The \`--$optname' option requires one of these values:
|
120
|
431 \`yes', \`no', or \`default'."
|
149
|
432 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
433 esac
|
265
|
434 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
|
149
|
435 eval "$opt=\"$val\""
|
0
|
436 ;;
|
|
437
|
149
|
438 "with_database" )
|
120
|
439 with_database_berkdb=no
|
|
440 with_database_dbm=no
|
426
|
441 with_database_gdbm=no
|
300
|
442 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
149
|
443 case "$x" in
|
426
|
444 no ) ;;
|
|
445 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
|
|
446 d | db | dbm ) with_database_dbm=yes ;;
|
|
447 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
|
|
448 * ) (echo "$progname: Usage error:"
|
149
|
449 echo " " "The \`--$optname' option value
|
120
|
450 must be either \`no' or a comma-separated list
|
380
|
451 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
|
149
|
452 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
120
|
453 esac
|
|
454 done
|
426
|
455 if test "$with_database_dbm" = "yes" -a \
|
|
456 "$with_database_gdbm" = "yes"; then
|
149
|
457 (echo "$progname: Usage error:"
|
120
|
458 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
|
149
|
459 with the \`--$optname' option."
|
|
460 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
0
|
461 fi
|
70
|
462 ;;
|
0
|
463
|
149
|
464 "with_sound" )
|
426
|
465 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
|
466 case "$x" in
|
|
467 n | no | non | none ) new_sdefault=no ;;
|
|
468 a | al | all | both ) new_sdefault=yes ;;
|
|
469
|
|
470 native ) with_native_sound=yes ;;
|
|
471 nonative ) with_native_sound=no ;;
|
|
472
|
|
473 nas ) with_nas_sound=yes ;;
|
|
474 nonas ) with_nas_sound=no ;;
|
|
475
|
432
|
476 esd ) with_esd_sound=yes ;;
|
|
477 noesd ) with_esd_sound=no ;;
|
426
|
478
|
|
479 * ) bogus_sound=yes ;;
|
|
480 esac
|
|
481 if test "$bogus_sound" -o \
|
|
482 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
|
|
483 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
|
|
484 (echo "$progname: Usage error:"
|
|
485 echo " " "Valid types for the \`--$optname' option are:
|
|
486 $types.
|
724
|
487 Option \`all' or \`none' must be first in the list.
|
|
488 The default is to autodetect native and NAS sound support."
|
426
|
489 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
490 elif test -n "$new_sdefault" ; then
|
|
491 with_native_sound=$new_sdefault
|
|
492 with_nas_sound=$new_sdefault
|
432
|
493 with_esd_sound=$new_sdefault
|
426
|
494 new_sdefault= # reset this
|
|
495 fi
|
|
496 sound_notfirst=true
|
|
497 done
|
0
|
498 ;;
|
|
499
|
434
|
500 "with_athena" )
|
|
501 case "$val" in
|
|
502 xa | xaw ) val=xaw ;;
|
|
503 3 | 3d | xaw3d ) val=3d ;;
|
|
504 ne | nex | next | naxtaw) val=next ;;
|
|
505 9 | 95 | xaw95 ) val=95 ;;
|
|
506 xp | xpm | xawxpm ) val=xpm ;;
|
|
507 * ) (echo "$progname: Usage error:"
|
|
508 echo " " "The \`--$optname' option must have one of these values:
|
|
509 \`xaw', \`3d', \`next', \`95', or \`xpm'."
|
|
510 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
511 esac
|
|
512 eval "$opt=\"$val\""
|
|
513 ;;
|
|
514
|
149
|
515 "with_xim" )
|
|
516 case "$val" in
|
|
517 y | ye | yes ) val=yes ;;
|
|
518 n | no | non | none ) val=no ;;
|
|
519 x | xl | xli | xlib ) val=xlib ;;
|
|
520 m | mo | mot | moti | motif ) val=motif ;;
|
|
521 * ) (echo "$progname: Usage error:"
|
|
522 echo " " "The \`--$optname' option must have one of these values:
|
|
523 \`motif', \`xlib', \`yes', or \`no'."
|
|
524 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
525 esac
|
149
|
526 eval "$opt=\"$val\""
|
0
|
527 ;;
|
|
528
|
149
|
529 "mail_locking" )
|
|
530 case "$val" in
|
|
531 lockf ) val=lockf ;;
|
|
532 flock ) val=flock ;;
|
438
|
533 file | dot ) val=file ;;
|
|
534 locking ) val=locking ;;
|
149
|
535 * ) (echo "$progname: Usage error:"
|
|
536 echo " " "The \`--$optname' option must have one of these values:
|
438
|
537 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
|
149
|
538 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
539 esac
|
|
540 eval "$opt=\"$val\""
|
|
541 ;;
|
|
542
|
1984
|
543 "use_number_lib" )
|
|
544 case "$val" in
|
|
545 gmp ) val=gmp ;;
|
|
546 mp ) val=mp ;;
|
1988
|
547 no|non|none ) val=no ;;
|
1984
|
548 * ) (echo "$progname: Usage error:"
|
|
549 echo " " "The \`--$optname' option must have one of these values:
|
1988
|
550 \`gmp', \`mp', or \`no'."
|
1984
|
551 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
552 esac
|
|
553 eval "$opt=\"$val\""
|
|
554 ;;
|
|
555
|
149
|
556 "error_checking" )
|
|
557
|
267
|
558 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
149
|
559 case "$x" in
|
|
560 n | no | non | none ) new_default=no ;;
|
0
|
561 a | al | all ) new_default=yes ;;
|
|
562
|
|
563 extents ) error_check_extents=yes ;;
|
|
564 noextents ) error_check_extents=no ;;
|
|
565
|
800
|
566 types ) error_check_types=yes ;;
|
|
567 notypes ) error_check_types=no ;;
|
|
568
|
|
569 text ) error_check_text=yes ;;
|
|
570 notext ) error_check_text=no ;;
|
0
|
571
|
|
572 gc ) error_check_gc=yes ;;
|
|
573 nogc ) error_check_gc=no ;;
|
|
574
|
|
575 malloc ) error_check_malloc=yes ;;
|
|
576 nomalloc ) error_check_malloc=no ;;
|
149
|
577
|
414
|
578 byte_code ) error_check_byte_code=yes ;;
|
|
579 nobyte_code ) error_check_byte_code=no ;;
|
|
580
|
800
|
581 glyphs ) error_check_glyphs=yes ;;
|
|
582 noglyphs ) error_check_glyphs=no ;;
|
|
583
|
|
584 display ) error_check_display=yes ;;
|
|
585 nodisplay ) error_check_display=no ;;
|
|
586
|
|
587 structures ) error_check_structures=yes ;;
|
|
588 nostructures ) error_check_structures=no ;;
|
442
|
589
|
0
|
590 * ) bogus_error_check=yes ;;
|
|
591 esac
|
70
|
592 if test "$bogus_error_check" -o \
|
|
593 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
|
267
|
594 if test "$error_check_default" = yes ; then
|
800
|
595 types="\`all' (default), \`none', \`noextents', \`notypes', \`notext', \`nogc', \`nomalloc', \`noglyphs', \`nobyte-code', \`nodisplay', \`nostructures'."
|
0
|
596 else
|
800
|
597 types="\`all', \`none' (default), \`extents', \`types', \`text', \`gc', \`malloc', \`glyphs', \`byte-code', \`display', \`structures'."
|
0
|
598 fi
|
149
|
599 (echo "$progname: Usage error:"
|
|
600 echo " " "Valid types for the \`--$optname' option are:
|
120
|
601 $types."
|
149
|
602 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
151
|
603 elif test -n "$new_default" ; then
|
0
|
604 error_check_extents=$new_default
|
800
|
605 error_check_types=$new_default
|
|
606 error_check_text=$new_default
|
0
|
607 error_check_gc=$new_default
|
|
608 error_check_malloc=$new_default
|
414
|
609 error_check_byte_code=$new_default
|
442
|
610 error_check_glyphs=$new_default
|
800
|
611 error_check_display=$new_default
|
|
612 error_check_structures=$new_default
|
0
|
613 new_default= # reset this
|
|
614 fi
|
|
615 echeck_notfirst=true
|
|
616 done
|
|
617 ;;
|
|
618
|
149
|
619 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
1349
|
620 mandir | infodir | infopath | lispdir | etcdir | \
|
867
|
621 archlibdir | docdir | package_path | moduledir )
|
151
|
622 if test "$valomitted" = "yes"; then
|
|
623 if test "$#" = 0; then
|
149
|
624 (echo "$progname: Usage error:"
|
|
625 echo " " "The \`--$optname' option requires a value."
|
|
626 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
120
|
627 fi
|
|
628 val="$1"; shift
|
0
|
629 fi
|
149
|
630 eval "$opt=\"$val\""
|
|
631
|
278
|
632 case "$opt" in
|
420
|
633 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
634 Defining EXEC_PREFIX_USER_DEFINED
|
|
635 EOF
|
|
636 cat >> confdefs.h <<\EOF
|
|
637 #define EXEC_PREFIX_USER_DEFINED 1
|
|
638 EOF
|
|
639 }
|
|
640 ;;
|
274
|
641 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
642 Defining LISPDIR_USER_DEFINED
|
|
643 EOF
|
|
644 cat >> confdefs.h <<\EOF
|
|
645 #define LISPDIR_USER_DEFINED 1
|
|
646 EOF
|
|
647 }
|
|
648 ;;
|
388
|
649 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
650 Defining SITELISPDIR_USER_DEFINED
|
|
651 EOF
|
|
652 cat >> confdefs.h <<\EOF
|
|
653 #define SITELISPDIR_USER_DEFINED 1
|
|
654 EOF
|
|
655 }
|
|
656 ;;
|
|
657 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
658 Defining MODULEDIR_USER_DEFINED
|
|
659 EOF
|
|
660 cat >> confdefs.h <<\EOF
|
|
661 #define MODULEDIR_USER_DEFINED 1
|
|
662 EOF
|
|
663 }
|
|
664 ;;
|
274
|
665 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
666 Defining ETCDIR_USER_DEFINED
|
|
667 EOF
|
|
668 cat >> confdefs.h <<\EOF
|
|
669 #define ETCDIR_USER_DEFINED 1
|
|
670 EOF
|
|
671 }
|
|
672 ;;
|
|
673 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
674 Defining INFODIR_USER_DEFINED
|
|
675 EOF
|
|
676 cat >> confdefs.h <<\EOF
|
|
677 #define INFODIR_USER_DEFINED 1
|
|
678 EOF
|
|
679 }
|
|
680 ;;
|
|
681 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
682 Defining INFOPATH_USER_DEFINED
|
|
683 EOF
|
|
684 cat >> confdefs.h <<\EOF
|
|
685 #define INFOPATH_USER_DEFINED 1
|
|
686 EOF
|
|
687 }
|
|
688 ;;
|
|
689 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
690 Defining PACKAGE_PATH_USER_DEFINED
|
|
691 EOF
|
|
692 cat >> confdefs.h <<\EOF
|
|
693 #define PACKAGE_PATH_USER_DEFINED 1
|
|
694 EOF
|
|
695 }
|
|
696 ;;
|
278
|
697 datadir )
|
462
|
698 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
699 Defining INFODIR_USER_DEFINED
|
|
700 EOF
|
|
701 cat >> confdefs.h <<\EOF
|
|
702 #define INFODIR_USER_DEFINED 1
|
|
703 EOF
|
|
704 }
|
|
705
|
462
|
706 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
707 Defining LISPDIR_USER_DEFINED
|
|
708 EOF
|
|
709 cat >> confdefs.h <<\EOF
|
|
710 #define LISPDIR_USER_DEFINED 1
|
|
711 EOF
|
|
712 }
|
|
713
|
462
|
714 { test "$extra_verbose" = "yes" && cat << \EOF
|
388
|
715 Defining MODULEDIR_USER_DEFINED
|
|
716 EOF
|
|
717 cat >> confdefs.h <<\EOF
|
|
718 #define MODULEDIR_USER_DEFINED 1
|
|
719 EOF
|
|
720 }
|
|
721
|
278
|
722 { test "$extra_verbose" = "yes" && cat << \EOF
|
274
|
723 Defining ETCDIR_USER_DEFINED
|
|
724 EOF
|
|
725 cat >> confdefs.h <<\EOF
|
|
726 #define ETCDIR_USER_DEFINED 1
|
|
727 EOF
|
|
728 }
|
458
|
729
|
|
730 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
731 Defining DOCDIR_USER_DEFINED
|
|
732 EOF
|
|
733 cat >> confdefs.h <<\EOF
|
|
734 #define DOCDIR_USER_DEFINED 1
|
|
735 EOF
|
|
736 }
|
|
737
|
|
738 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
739 Defining ARCHLIBDIR_USER_DEFINED
|
|
740 EOF
|
|
741 cat >> confdefs.h <<\EOF
|
|
742 #define ARCHLIBDIR_USER_DEFINED 1
|
|
743 EOF
|
|
744 }
|
274
|
745 ;;
|
420
|
746 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
747 Defining DOCDIR_USER_DEFINED
|
|
748 EOF
|
|
749 cat >> confdefs.h <<\EOF
|
|
750 #define DOCDIR_USER_DEFINED 1
|
|
751 EOF
|
|
752 }
|
|
753 ;;
|
274
|
754 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
755 Defining ARCHLIBDIR_USER_DEFINED
|
|
756 EOF
|
|
757 cat >> confdefs.h <<\EOF
|
|
758 #define ARCHLIBDIR_USER_DEFINED 1
|
|
759 EOF
|
|
760 }
|
|
761 ;;
|
149
|
762 esac
|
0
|
763 ;;
|
|
764
|
149
|
765 "no_create" ) ;;
|
|
766
|
215
|
767 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
|
149
|
768
|
380
|
769 "with_menubars" | \
|
|
770 "with_scrollbars" | \
|
442
|
771 "with_dialogs" | \
|
420
|
772 "with_widgets" )
|
149
|
773 case "$val" in
|
0
|
774 l | lu | luc | luci | lucid ) val=lucid ;;
|
724
|
775 mo | mot | moti | motif ) val=motif ;;
|
0
|
776 a | at | ath | athe | athen | athena ) val=athena ;;
|
442
|
777 n | no | non | none ) val=no ;;
|
|
778 y | ye | yes ) val=yes ;;
|
726
|
779 "") val=yes ;;
|
462
|
780 g | gt | gtk ) val=gtk ;;
|
724
|
781 ms | msw ) val=msw ;;
|
149
|
782 * ) (echo "$progname: Usage error:"
|
|
783 echo " " "The \`--$optname' option must have one of these values:
|
585
|
784 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
|
149
|
785 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
786 esac
|
149
|
787 eval "$opt=\"$val\""
|
0
|
788 ;;
|
|
789
|
424
|
790 "use_minimal_tagbits" | \
|
|
791 "use_indexed_lrecord_implementation" | \
|
|
792 "run_in_place" | \
|
442
|
793 "const_is_losing" | \
|
380
|
794 "with_gnu_make" )
|
|
795 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
|
|
796 ;;
|
|
797
|
149
|
798 * ) (echo "$progname: Usage error:"
|
|
799 echo " " "Unrecognized option: $arg"
|
|
800 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
801
|
|
802 esac
|
|
803 ;;
|
|
804
|
243
|
805 *-*-*) configuration="$arg" ;;
|
|
806
|
|
807 *) (echo "$progname: Usage error:"
|
|
808 echo " " "Unrecognized argument: $arg"
|
|
809 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
810
|
|
811 esac
|
|
812 done
|
|
813
|
149
|
814
|
272
|
815 test -n "$cpp" && CPP="$cpp"
|
|
816 test -n "$cppflags" && CPPFLAGS="$cppflags"
|
|
817 test -n "$libs" && LIBS="$libs"
|
|
818 test -n "$ldflags" && LDFLAGS="$ldflags"
|
|
819
|
0
|
820 eval set x "$quoted_arguments"; shift
|
|
821
|
149
|
822 test "$extra_verbose" = "yes" && verbose=yes
|
|
823
|
|
824 test -n "$with_x" && with_x11="$with_x"
|
|
825
|
380
|
826 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
|
|
827 test "$with_system_malloc" = "default" && with_system_malloc=yes
|
|
828 fi
|
272
|
829
|
284
|
830
|
|
831
|
|
832 if test "$with_cde $with_tooltalk" = "yes no"; then
|
|
833 (echo "$progname: Usage error:"
|
|
834 echo " " "--with-cde requires --with-tooltalk"
|
|
835 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
836 elif test "$with_tooltalk" = "no" ; then with_cde=no
|
|
837 elif test "$with_cde" = "yes"; then with_tooltalk=yes
|
|
838 fi
|
|
839
|
|
840
|
243
|
841 if test -z "$configuration"; then
|
380
|
842 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
|
|
843 if test -z "$configuration"; then
|
243
|
844 (echo "$progname: Usage error:"
|
|
845 echo " " "XEmacs has not been ported to this host type.
|
|
846 Try explicitly specifying the CONFIGURATION when rerunning configure."
|
|
847 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
848 fi
|
|
849 fi
|
|
850
|
149
|
851 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
1988
|
852 echo "configure:853: checking whether ln -s works" >&5
|
149
|
853
|
0
|
854 rm -f conftestdata
|
|
855 if ln -s X conftestdata 2>/dev/null
|
|
856 then
|
|
857 rm -f conftestdata
|
149
|
858 ac_cv_prog_LN_S="ln -s"
|
|
859 else
|
|
860 ac_cv_prog_LN_S=ln
|
|
861 fi
|
|
862 LN_S="$ac_cv_prog_LN_S"
|
|
863 if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|
864 echo "$ac_t""yes" 1>&6
|
|
865 else
|
|
866 echo "$ac_t""no" 1>&6
|
|
867 fi
|
|
868
|
|
869
|
438
|
870 for dir in lisp etc man info tests; do
|
149
|
871 if test ! -d "$dir" ; then
|
|
872 echo Making symbolic link to "$srcdir/$dir"
|
157
|
873 ${LN_S} "$srcdir/$dir" "$dir"
|
0
|
874 fi
|
|
875 done
|
|
876
|
392
|
877
|
181
|
878 absolute_pwd="`pwd`";
|
187
|
879 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
|
181
|
880 then blddir="$PWD"
|
392
|
881 else blddir="$absolute_pwd"; if test -d "/net"; then
|
|
882 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
|
|
883 blddir=`echo "$blddir" | \
|
|
884 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
|
|
885 fi
|
181
|
886 fi
|
|
887
|
|
888
|
149
|
889 case "$srcdir" in
|
0
|
890 /* ) ;;
|
181
|
891 . ) srcdir="$blddir" ;;
|
392
|
892 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
|
|
893 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
|
|
894 srcdir=`echo "$srcdir" | \
|
|
895 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
|
|
896 fi ;;
|
0
|
897 esac
|
|
898
|
149
|
899 if test `pwd` != `sh -c cd $srcdir && pwd` \
|
|
900 && test -f "$srcdir/src/config.h"; then
|
|
901 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
|
0
|
902 echo " as a build directory right now; it has been configured in its own"
|
|
903 echo " right. To configure in another directory as well, you MUST"
|
|
904 echo " use GNU make. If you do not have GNU make, then you must"
|
149
|
905 echo " now do \`make distclean' in $srcdir,"
|
|
906 echo " and then run $progname again.") >&2
|
0
|
907 extrasub='/^VPATH[ ]*=/c\
|
|
908 vpath %.c $(srcdir)\
|
|
909 vpath %.h $(srcdir)\
|
|
910 vpath %.y $(srcdir)\
|
|
911 vpath %.l $(srcdir)\
|
|
912 vpath %.s $(srcdir)\
|
|
913 vpath %.in $(srcdir)'
|
|
914 fi
|
|
915
|
171
|
916 . "$srcdir/version.sh" || exit 1;
|
414
|
917 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
|
173
|
918 : "${extra_verbose=$beta}"
|
171
|
919 version="${emacs_major_version}.${emacs_minor_version}"
|
|
920 { test "$extra_verbose" = "yes" && cat << EOF
|
|
921 Defining EMACS_MAJOR_VERSION = $emacs_major_version
|
|
922 EOF
|
|
923 cat >> confdefs.h <<EOF
|
|
924 #define EMACS_MAJOR_VERSION $emacs_major_version
|
|
925 EOF
|
|
926 }
|
|
927
|
|
928 { test "$extra_verbose" = "yes" && cat << EOF
|
|
929 Defining EMACS_MINOR_VERSION = $emacs_minor_version
|
|
930 EOF
|
|
931 cat >> confdefs.h <<EOF
|
|
932 #define EMACS_MINOR_VERSION $emacs_minor_version
|
|
933 EOF
|
|
934 }
|
|
935
|
414
|
936 if test -n "$emacs_beta_version" ; then
|
|
937 if test "$beta" = "yes"; then
|
|
938 version="${version}-b${emacs_beta_version}"
|
|
939 { test "$extra_verbose" = "yes" && cat << EOF
|
171
|
940 Defining EMACS_BETA_VERSION = $emacs_beta_version
|
|
941 EOF
|
|
942 cat >> confdefs.h <<EOF
|
|
943 #define EMACS_BETA_VERSION $emacs_beta_version
|
|
944 EOF
|
|
945 }
|
|
946
|
414
|
947 else
|
|
948 version="${version}.${emacs_beta_version}"
|
|
949 { test "$extra_verbose" = "yes" && cat << EOF
|
|
950 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
|
|
951 EOF
|
|
952 cat >> confdefs.h <<EOF
|
|
953 #define EMACS_PATCH_LEVEL $emacs_beta_version
|
|
954 EOF
|
|
955 }
|
|
956
|
|
957 fi
|
171
|
958 fi
|
|
959 { test "$extra_verbose" = "yes" && cat << EOF
|
|
960 Defining XEMACS_CODENAME = "$xemacs_codename"
|
|
961 EOF
|
|
962 cat >> confdefs.h <<EOF
|
|
963 #define XEMACS_CODENAME "$xemacs_codename"
|
|
964 EOF
|
|
965 }
|
|
966
|
1889
|
967 if test "$xemacs_extra_name" != ""; then
|
975
|
968 { test "$extra_verbose" = "yes" && cat << EOF
|
|
969 Defining XEMACS_EXTRA_NAME = "$xemacs_extra_name"
|
|
970 EOF
|
|
971 cat >> confdefs.h <<EOF
|
|
972 #define XEMACS_EXTRA_NAME "$xemacs_extra_name"
|
|
973 EOF
|
|
974 }
|
|
975
|
|
976 fi
|
171
|
977 { test "$extra_verbose" = "yes" && cat << EOF
|
|
978 Defining EMACS_VERSION = "$version"
|
|
979 EOF
|
|
980 cat >> confdefs.h <<EOF
|
|
981 #define EMACS_VERSION "$version"
|
|
982 EOF
|
|
983 }
|
|
984
|
|
985
|
280
|
986 if test "$with_infodock" = "yes"; then
|
420
|
987 if test ! -f ../../ID-INSTALL; then
|
280
|
988 echo "Cannot build InfoDock without InfoDock sources"
|
|
989 with_infodock=no
|
|
990 fi
|
|
991 fi
|
|
992
|
|
993 if test "$with_infodock" = "yes"; then
|
|
994 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
995 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
|
|
996 EOF
|
|
997 cat >> confdefs.h <<EOF
|
|
998 #define INFODOCK_MAJOR_VERSION $infodock_major_version
|
|
999 EOF
|
|
1000 }
|
|
1001
|
280
|
1002 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
1003 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
|
|
1004 EOF
|
|
1005 cat >> confdefs.h <<EOF
|
|
1006 #define INFODOCK_MINOR_VERSION $infodock_minor_version
|
|
1007 EOF
|
|
1008 }
|
|
1009
|
280
|
1010 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
1011 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
|
|
1012 EOF
|
|
1013 cat >> confdefs.h <<EOF
|
|
1014 #define INFODOCK_BUILD_VERSION $infodock_build_version
|
|
1015 EOF
|
|
1016 }
|
|
1017
|
280
|
1018 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
|
|
1019 PROGNAME=infodock
|
|
1020 CPPFLAGS="$CPPFLAGS -DINFODOCK"
|
|
1021 else
|
|
1022 PROGNAME=xemacs
|
|
1023 fi
|
278
|
1024
|
442
|
1025 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1026 Defining EMACS_PROGNAME = "$PROGNAME"
|
|
1027 EOF
|
|
1028 cat >> confdefs.h <<EOF
|
|
1029 #define EMACS_PROGNAME "$PROGNAME"
|
|
1030 EOF
|
|
1031 }
|
|
1032
|
|
1033
|
414
|
1034 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
|
800
|
1035 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
171
|
1036 Defining ERROR_CHECK_EXTENTS
|
|
1037 EOF
|
|
1038 cat >> confdefs.h <<\EOF
|
|
1039 #define ERROR_CHECK_EXTENTS 1
|
|
1040 EOF
|
|
1041 }
|
|
1042
|
800
|
1043 test "${error_check_types=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1044 Defining ERROR_CHECK_TYPES
|
|
1045 EOF
|
|
1046 cat >> confdefs.h <<\EOF
|
|
1047 #define ERROR_CHECK_TYPES 1
|
|
1048 EOF
|
|
1049 }
|
|
1050
|
|
1051 test "${error_check_text=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1052 Defining ERROR_CHECK_TEXT
|
|
1053 EOF
|
|
1054 cat >> confdefs.h <<\EOF
|
|
1055 #define ERROR_CHECK_TEXT 1
|
|
1056 EOF
|
|
1057 }
|
|
1058
|
|
1059 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
171
|
1060 Defining ERROR_CHECK_GC
|
|
1061 EOF
|
|
1062 cat >> confdefs.h <<\EOF
|
|
1063 #define ERROR_CHECK_GC 1
|
|
1064 EOF
|
|
1065 }
|
|
1066
|
800
|
1067 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
171
|
1068 Defining ERROR_CHECK_MALLOC
|
|
1069 EOF
|
|
1070 cat >> confdefs.h <<\EOF
|
|
1071 #define ERROR_CHECK_MALLOC 1
|
|
1072 EOF
|
|
1073 }
|
|
1074
|
800
|
1075 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
414
|
1076 Defining ERROR_CHECK_BYTE_CODE
|
|
1077 EOF
|
|
1078 cat >> confdefs.h <<\EOF
|
|
1079 #define ERROR_CHECK_BYTE_CODE 1
|
|
1080 EOF
|
|
1081 }
|
|
1082
|
800
|
1083 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
442
|
1084 Defining ERROR_CHECK_GLYPHS
|
|
1085 EOF
|
|
1086 cat >> confdefs.h <<\EOF
|
|
1087 #define ERROR_CHECK_GLYPHS 1
|
|
1088 EOF
|
|
1089 }
|
|
1090
|
800
|
1091 test "${error_check_display=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1092 Defining ERROR_CHECK_DISPLAY
|
|
1093 EOF
|
|
1094 cat >> confdefs.h <<\EOF
|
|
1095 #define ERROR_CHECK_DISPLAY 1
|
|
1096 EOF
|
|
1097 }
|
|
1098
|
|
1099 test "${error_check_structures=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1100 Defining ERROR_CHECK_STRUCTURES
|
|
1101 EOF
|
|
1102 cat >> confdefs.h <<\EOF
|
|
1103 #define ERROR_CHECK_STRUCTURES 1
|
|
1104 EOF
|
|
1105 }
|
|
1106
|
272
|
1107 if test "${debug:=$beta}" = "yes"; then
|
771
|
1108 use_assertions=yes
|
|
1109 memory_usage_stats=yes
|
171
|
1110 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1111 Defining DEBUG_XEMACS
|
|
1112 EOF
|
|
1113 cat >> confdefs.h <<\EOF
|
|
1114 #define DEBUG_XEMACS 1
|
|
1115 EOF
|
|
1116 }
|
|
1117
|
|
1118 fi
|
|
1119 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1120 Defining USE_ASSERTIONS
|
|
1121 EOF
|
|
1122 cat >> confdefs.h <<\EOF
|
|
1123 #define USE_ASSERTIONS 1
|
|
1124 EOF
|
|
1125 }
|
|
1126
|
|
1127 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1128 Defining MEMORY_USAGE_STATS
|
|
1129 EOF
|
|
1130 cat >> confdefs.h <<\EOF
|
|
1131 #define MEMORY_USAGE_STATS 1
|
|
1132 EOF
|
|
1133 }
|
|
1134
|
|
1135
|
149
|
1136
|
380
|
1137 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
|
1988
|
1138 echo "configure:1139: checking "host system type"" >&5
|
217
|
1139 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
|
380
|
1140 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
|
|
1141 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
|
|
1142 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
|
|
1143 echo "$ac_t""$configuration" 1>&6
|
0
|
1144
|
149
|
1145
|
|
1146
|
|
1147
|
|
1148
|
151
|
1149 machine='' opsys=''
|
149
|
1150
|
|
1151 case "$canonical" in
|
|
1152 sparc-*-* ) machine=sparc ;;
|
373
|
1153 alpha*-*-* ) machine=alpha ;;
|
149
|
1154 vax-*-* ) machine=vax ;;
|
|
1155 mips-dec-* ) machine=pmax ;;
|
440
|
1156 mips-sgi-irix6* ) machine=iris6d ;;
|
149
|
1157 mips-sgi-* ) machine=iris4d ;;
|
424
|
1158 mips*-linux ) machine=mips ;;
|
149
|
1159 romp-ibm-* ) machine=ibmrt ;;
|
|
1160 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
|
|
1161 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
|
163
|
1162 powerpc*-* ) machine=powerpc ;;
|
149
|
1163 hppa-*-* ) machine=hp800 ;;
|
|
1164 m88k-dg-* ) machine=aviion ;;
|
|
1165 m68*-sony-* ) machine=news ;;
|
|
1166 mips-sony-* ) machine=news-risc ;;
|
|
1167 clipper-* ) machine=clipper ;;
|
442
|
1168 arm* ) machine=arm ;;
|
380
|
1169 ns32k-* ) machine=ns32000 ;;
|
149
|
1170 esac
|
|
1171
|
|
1172 case "$canonical" in
|
|
1173 *-*-linux* ) opsys=linux ;;
|
|
1174 *-*-netbsd* ) opsys=netbsd ;;
|
286
|
1175 *-*-openbsd* ) opsys=openbsd ;;
|
149
|
1176 *-*-nextstep* ) opsys=nextstep ;;
|
|
1177 *-*-vms ) opsys=vms ;;
|
|
1178
|
|
1179 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
|
|
1180 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
|
|
1181 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
|
|
1182 *-dec-osf3* ) opsys=decosf3-1 ;;
|
444
|
1183 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
|
149
|
1184
|
|
1185 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
1186 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
|
|
1187 *-*-ultrix* ) opsys=ultrix4-3 ;;
|
|
1188
|
1300
|
1189 *-*-aix3.1* ) opsys=aix3-1 ;;
|
|
1190 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
|
|
1191 *-*-aix3* ) opsys=aix3-2 ;;
|
|
1192 *-*-aix4.0* ) opsys=aix4 ;;
|
|
1193 *-*-aix4.1* ) opsys=aix4-1 ;;
|
|
1194 *-*-aix[4-9]* ) opsys=aix4-2 ;;
|
149
|
1195
|
|
1196 *-gnu* ) opsys=gnu ;;
|
|
1197 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
1198 *-*-bsd4.2 ) opsys=bsd4-2 ;;
|
|
1199 *-*-bsd4.3 ) opsys=bsd4-3 ;;
|
|
1200 *-*-aos4.2 ) opsys=bsd4-2 ;;
|
|
1201 *-*-aos* ) opsys=bsd4-3 ;;
|
|
1202 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
|
|
1203 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
|
|
1204 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
1205 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
|
|
1206 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1207 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
|
1208 if test -z "$NON_GNU_CPP" ; then
|
151
|
1209 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
|
|
1210 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
|
|
1211 done
|
149
|
1212 fi
|
|
1213 opsys=usg5-4-2 ;;
|
|
1214 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
1215 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
|
|
1216 esac
|
|
1217
|
|
1218 case "$canonical" in
|
|
1219
|
|
1220 *-*-netbsd* )
|
|
1221 case "$canonical" in
|
0
|
1222 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
1223 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
149
|
1224 machine=hp9000s300 ;;
|
70
|
1225 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
1226 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
0
|
1227 esac
|
|
1228 ;;
|
|
1229
|
286
|
1230 *-*-openbsd* )
|
|
1231 case "${canonical}" in
|
|
1232 i386-*-openbsd*) machine=intel386 ;;
|
|
1233 m68k-*-openbsd*) machine=hp9000s300 ;;
|
|
1234 mipsel-*-openbsd*) machine=pmax ;;
|
|
1235 esac
|
|
1236 ;;
|
|
1237
|
149
|
1238 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
|
70
|
1239 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
|
0
|
1240
|
149
|
1241 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
|
70
|
1242 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
|
0
|
1243
|
149
|
1244 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
|
|
1245
|
|
1246 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
|
|
1247
|
|
1248 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
|
|
1249
|
|
1250 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
|
|
1251
|
|
1252 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
|
|
1253
|
|
1254 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
|
74
|
1255 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
|
|
1256 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
|
0
|
1257
|
149
|
1258
|
|
1259 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
|
|
1260
|
|
1261 *-convex-bsd* | *-convex-convexos* )
|
0
|
1262 machine=convex opsys=bsd4-3
|
|
1263 NON_GNU_CPP="cc -E -P"
|
|
1264 ;;
|
|
1265
|
149
|
1266 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
|
|
1267
|
867
|
1268 *-*-darwin*)
|
|
1269 opsys=darwin
|
1443
|
1270 ;;
|
867
|
1271
|
149
|
1272 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
|
|
1273 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
|
|
1274 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
|
|
1275 m88k-dg-dgux* ) opsys=dgux ;;
|
|
1276
|
|
1277 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
|
0
|
1278 m88k-motorola-sysv4* )
|
149
|
1279 machine=delta88k opsys=usg5-4-2
|
0
|
1280 ;;
|
70
|
1281 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
|
0
|
1282
|
149
|
1283 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
|
70
|
1284 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
|
0
|
1285
|
149
|
1286 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
|
|
1287
|
|
1288 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
|
70
|
1289 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
|
|
1290 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
|
0
|
1291
|
149
|
1292 m88k-harris-cxux* )
|
|
1293 case "`uname -r`" in
|
74
|
1294 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
70
|
1295 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
0
|
1296 esac
|
|
1297 NON_GNU_CPP="/lib/cpp"
|
|
1298 ;;
|
149
|
1299 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
|
|
1300 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
|
|
1301
|
|
1302 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
|
|
1303
|
|
1304 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
|
|
1305
|
|
1306 *-hp-hpux* )
|
|
1307 case "$canonical" in
|
70
|
1308 m68* ) machine=hp9000s300 ;;
|
|
1309 hppa* ) machine=hp800 ;;
|
|
1310 esac
|
|
1311
|
149
|
1312 case "$canonical" in
|
|
1313 *-hp-hpux7* ) opsys=hpux ;;
|
|
1314 *-hp-hpux8* ) opsys=hpux8 ;;
|
|
1315 *-hp-hpux9* ) opsys=hpux9 ;;
|
|
1316 *-hp-hpux10* ) opsys=hpux10 ;;
|
269
|
1317 *-hp-hpux11* ) opsys=hpux11 ;;
|
151
|
1318 * ) opsys=hpux ;;
|
0
|
1319 esac
|
72
|
1320
|
151
|
1321 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
|
|
1322 echo " xemacs will be linked with \"strcat.o\""
|
|
1323 fi ;; esac
|
149
|
1324
|
269
|
1325 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
|
|
1326 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
|
149
|
1327 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
|
|
1328
|
|
1329 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
|
0
|
1330 ;;
|
|
1331
|
149
|
1332 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
|
70
|
1333 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
|
0
|
1334
|
149
|
1335 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
|
70
|
1336 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
|
|
1337 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
|
149
|
1338 romp-ibm-aos* ) opsys=bsd4-3 ;;
|
|
1339 romp-ibm-bsd* ) opsys=bsd4-3 ;;
|
|
1340 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
|
|
1341
|
|
1342 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
|
70
|
1343 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
|
0
|
1344
|
149
|
1345 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
|
|
1346
|
|
1347 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
|
|
1348
|
|
1349 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
|
|
1350
|
|
1351 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
|
|
1352
|
|
1353 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
|
|
1354
|
|
1355 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
|
|
1356
|
|
1357 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
|
|
1358
|
|
1359 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
|
|
1360
|
|
1361 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
|
|
1362
|
|
1363 mips-mips-usg* ) machine=mips4 ;;
|
70
|
1364 mips-mips-riscos4 )
|
|
1365 machine=mips4
|
0
|
1366 NON_GNU_CC="cc -systype bsd43"
|
|
1367 NON_GNU_CPP="cc -systype bsd43 -E"
|
149
|
1368 case "$canonical" in
|
70
|
1369 mips-mips-riscos4* ) opsys=bsd4-3 ;;
|
|
1370 mips-mips-riscos5* ) opsys=riscos5 ;;
|
|
1371 esac
|
0
|
1372 ;;
|
70
|
1373 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
|
|
1374 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
|
0
|
1375
|
149
|
1376 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
|
|
1377
|
|
1378 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
|
|
1379
|
|
1380 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
|
70
|
1381 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
|
0
|
1382
|
149
|
1383 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
|
|
1384
|
|
1385 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
|
|
1386
|
|
1387 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
|
|
1388
|
|
1389 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
|
|
1390
|
|
1391 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
|
70
|
1392 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
|
0
|
1393
|
149
|
1394 mips-siemens-sysv* | mips-sni-sysv*)
|
0
|
1395 machine=mips-siemens opsys=usg5-4
|
|
1396 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1397 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1398 ;;
|
|
1399
|
377
|
1400 mips-nec-sysv*)
|
|
1401 machine=mips-nec
|
|
1402 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1403 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1404 ;;
|
|
1405
|
149
|
1406 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
70
|
1407 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
149
|
1408 mips-sgi-irix3.* ) opsys=irix3-3 ;;
|
|
1409 mips-sgi-irix4.* ) opsys=irix4-0 ;;
|
207
|
1410 mips-sgi-irix6* ) opsys=irix6-0 ;;
|
149
|
1411 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
|
|
1412 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
|
|
1413 mips-sgi-irix5.* ) opsys=irix5-3 ;;
|
|
1414 mips-sgi-irix* ) opsys=irix5-0 ;;
|
|
1415
|
|
1416 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
|
|
1417 *-sony-news* ) opsys=newsos5 ;;
|
|
1418
|
|
1419 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
|
1420
|
|
1421 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
1422 case "$canonical" in
|
0
|
1423 m68*-sunos1* ) machine=sun1 ;;
|
|
1424 m68*-sunos2* ) machine=sun2 ;;
|
|
1425 m68* ) machine=sun3 ;;
|
163
|
1426 i*86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
1427 i*86-*-* ) machine=intel386 ;;
|
0
|
1428 rs6000* ) machine=rs6000 ;;
|
|
1429 esac
|
149
|
1430
|
|
1431 case "$canonical" in *-sunos5*)
|
163
|
1432 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
|
0
|
1433 esac
|
|
1434
|
149
|
1435 case "$canonical" in
|
0
|
1436 *-sunos4* )
|
157
|
1437 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1438 : ;;
|
70
|
1439 *-solaris2* )
|
157
|
1440 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1441 RANLIB=':' ;;
|
151
|
1442 esac
|
149
|
1443
|
|
1444 case "$canonical" in
|
1692
|
1445 *-solaris* )
|
163
|
1446 opsys=sol2
|
1692
|
1447 os_release_major=`uname -r | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1/'`
|
|
1448 os_release_minor=`uname -r | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\2/'`
|
|
1449 case "$os_release_minor" in [0-9])
|
|
1450 os_release_minor="0${os_release_minor}";;
|
|
1451 esac
|
|
1452 os_release="${os_release_major}${os_release_minor}"
|
163
|
1453 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1454 Defining OS_RELEASE = $os_release
|
|
1455 EOF
|
|
1456 cat >> confdefs.h <<EOF
|
|
1457 #define OS_RELEASE $os_release
|
|
1458 EOF
|
|
1459 }
|
|
1460 ;;
|
|
1461
|
|
1462 i*86-*-sunos4* ) opsys=sunos4-0 ;;
|
74
|
1463 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
1464 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
110
|
1465 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
120
|
1466 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
74
|
1467 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
1468 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1469 * ) opsys=bsd4-2 ;;
|
0
|
1470 esac
|
70
|
1471
|
149
|
1472 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
1473
|
163
|
1474 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
|
0
|
1475 ;;
|
70
|
1476
|
149
|
1477 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
|
1478
|
|
1479 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
70
|
1480 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
0
|
1481
|
149
|
1482 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
|
1483
|
|
1484 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
|
1485
|
|
1486 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
|
1487 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
|
1488
|
|
1489 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
|
1490
|
|
1491 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
|
1492
|
|
1493 vax-dec-* )
|
|
1494 case "$canonical" in
|
|
1495 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
1496 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
1497 *-mach* ) opsys=mach-bsd4-3 ;;
|
0
|
1498 esac
|
|
1499 ;;
|
|
1500
|
149
|
1501 ns16k-whitechapel-* ) machine=mg1 ;;
|
|
1502
|
|
1503 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
|
1504
|
|
1505 i[3-9]86-*-* )
|
0
|
1506 machine=intel386
|
149
|
1507 case "$canonical" in
|
120
|
1508 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
0
|
1509 *-isc2.2* ) opsys=isc2-2 ;;
|
|
1510 *-isc4.0* ) opsys=isc4-0 ;;
|
|
1511 *-isc4.* ) opsys=isc4-1
|
|
1512 GCC_TEST_OPTIONS=-posix
|
|
1513 NON_GCC_TEST_OPTIONS=-Xp
|
|
1514 ;;
|
|
1515 *-isc* ) opsys=isc3-0 ;;
|
149
|
1516 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
|
0
|
1517 *-esix* ) opsys=esix ;;
|
|
1518 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1519 *-xenix* ) opsys=xenix ;;
|
149
|
1520 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
|
0
|
1521 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
392
|
1522 *-bsdi4* ) opsys=bsdos4 ;;
|
110
|
1523 *-bsdi3* ) opsys=bsdos3 ;;
|
0
|
1524 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
1525 *-bsdi2* ) opsys=bsdos2 ;;
|
460
|
1526 *-sco3.2v5* ) opsys=sco5 ;;
|
422
|
1527 *-sysv5* ) opsys=sco7 ;;
|
70
|
1528 *-386bsd* ) opsys=386bsd ;;
|
|
1529 *-freebsd* ) opsys=freebsd ;;
|
0
|
1530 *-nextstep* ) opsys=nextstep ;;
|
398
|
1531 *-pc-cygwin* ) opsys=cygwin32 ;;
|
|
1532 *-pc-mingw* ) opsys=mingw32 ;
|
|
1533 test -z "$with_tty" && with_tty="no";;
|
149
|
1534 esac
|
0
|
1535 ;;
|
|
1536
|
149
|
1537 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
1538
|
0
|
1539 esac
|
|
1540
|
442
|
1541 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
|
505
|
1542
|
|
1543 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
442
|
1544
|
|
1545 if test -r "${srcdir}/src/m/${machine}.h"; then
|
|
1546 machfile="m/${machine}.h"
|
|
1547 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1548 Defining config_machfile = "$machfile"
|
|
1549 EOF
|
|
1550 cat >> confdefs.h <<EOF
|
|
1551 #define config_machfile "$machfile"
|
|
1552 EOF
|
|
1553 }
|
|
1554
|
|
1555 else
|
|
1556 echo "XEmacs has no builtin knowledge of \`$machine' machines."
|
|
1557 echo "Using configure-time autodetection only."
|
|
1558 fi
|
|
1559
|
|
1560 if test -r "${srcdir}/src/s/${opsys}.h"; then
|
|
1561 opsysfile="s/${opsys}.h"
|
|
1562 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1563 Defining config_opsysfile = "$opsysfile"
|
|
1564 EOF
|
|
1565 cat >> confdefs.h <<EOF
|
|
1566 #define config_opsysfile "$opsysfile"
|
|
1567 EOF
|
|
1568 }
|
|
1569
|
|
1570 else
|
|
1571 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
|
|
1572 echo "Using configure-time autodetection only."
|
|
1573 fi
|
|
1574
|
0
|
1575
|
1161
|
1576 if test -z "$pdump"; then
|
|
1577 case "$opsys" in
|
1443
|
1578 linux* ) pdump=yes ;; darwin ) pdump=yes ;; * ) pdump=no ;;
|
1161
|
1579 esac
|
|
1580 fi
|
|
1581
|
173
|
1582 if test -z "$dynamic"; then
|
|
1583 case "$opsys" in
|
388
|
1584 hpux* | sunos4* ) dynamic=no ;;
|
173
|
1585 *) dynamic=yes ;;
|
|
1586 esac
|
|
1587 fi
|
|
1588 if test "$dynamic" = "yes"; then
|
149
|
1589 case "$opsys" in
|
72
|
1590 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
173
|
1591 decosf* ) ld_call_shared="-call_shared" ;;
|
1259
|
1592 darwin ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1593 Defining DLSYM_NEEDS_UNDERSCORE
|
|
1594 EOF
|
|
1595 cat >> confdefs.h <<\EOF
|
|
1596 #define DLSYM_NEEDS_UNDERSCORE 1
|
|
1597 EOF
|
|
1598 }
|
|
1599 ;;
|
0
|
1600 esac
|
173
|
1601 else case "$opsys" in
|
187
|
1602 sol2 )
|
173
|
1603 echo "Static linking is not supported on Solaris 2."
|
|
1604 echo "Rerun configure without specifying --dynamic=no."
|
|
1605 exit 1 ;;
|
|
1606 linux ) ld_call_shared="-Bstatic" ;;
|
|
1607 decosf* ) ld_call_shared="-non_shared" ;;
|
0
|
1608 esac
|
|
1609 fi
|
|
1610
|
1443
|
1611 case "$opsys" in
|
|
1612 aix* ) NON_GNU_CC=xlc ;; darwin ) RANLIB="ranlib -c" ;; esac
|
207
|
1613
|
280
|
1614 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
|
173
|
1615 { test "$extra_verbose" = "yes" && cat << EOF
|
177
|
1616 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
|
173
|
1617 EOF
|
|
1618 cat >> confdefs.h <<EOF
|
177
|
1619 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
|
173
|
1620 EOF
|
|
1621 }
|
|
1622
|
|
1623
|
0
|
1624
|
151
|
1625 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
|
284
|
1626 if test "$with_workshop $with_tooltalk" = "yes no"; then
|
|
1627 (echo "$progname: Usage error:"
|
|
1628 echo " " "--with-workshop requires --with-tooltalk"
|
|
1629 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
1630 elif test "$with_tooltalk" = "no" ; then with_workshop=no
|
|
1631 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
|
|
1632 fi
|
|
1633
|
151
|
1634 if test "$with_workshop" = "yes"; then
|
|
1635 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1636 Defining SUNPRO
|
|
1637 EOF
|
|
1638 cat >> confdefs.h <<\EOF
|
|
1639 #define SUNPRO 1
|
|
1640 EOF
|
|
1641 }
|
|
1642
|
|
1643 fi
|
|
1644
|
442
|
1645 if test "$with_clash_detection" != "no"; then
|
175
|
1646 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1647 Defining CLASH_DETECTION
|
|
1648 EOF
|
|
1649 cat >> confdefs.h <<\EOF
|
|
1650 #define CLASH_DETECTION 1
|
|
1651 EOF
|
|
1652 }
|
|
1653
|
|
1654 fi
|
|
1655
|
169
|
1656 test -n "$compiler" && CC="$compiler"
|
|
1657 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
|
|
1658 fi
|
149
|
1659
|
272
|
1660 test "${cflags-unset}" != unset && CFLAGS="$cflags"
|
|
1661 if test "${CFLAGS-unset}" != unset
|
|
1662 then cflags_specified=yes;
|
|
1663 else cflags_specified=no;
|
|
1664 fi
|
|
1665
|
1111
|
1666 if test "${cflags_warning-unset}" != unset
|
|
1667 then cflags_warning_specified=yes;
|
|
1668 else cflags_warning_specified=no;
|
|
1669 fi
|
|
1670
|
157
|
1671 xe_save_CFLAGS="$CFLAGS"
|
|
1672
|
149
|
1673 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1674 set dummy gcc; ac_word=$2
|
|
1675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1988
|
1676 echo "configure:1677: checking for $ac_word" >&5
|
149
|
1677
|
|
1678 if test -n "$CC"; then
|
|
1679 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1680 else
|
420
|
1681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1682 ac_dummy="$PATH"
|
|
1683 for ac_dir in $ac_dummy; do
|
149
|
1684 test -z "$ac_dir" && ac_dir=.
|
|
1685 if test -f $ac_dir/$ac_word; then
|
|
1686 ac_cv_prog_CC="gcc"
|
|
1687 break
|
|
1688 fi
|
|
1689 done
|
|
1690 IFS="$ac_save_ifs"
|
|
1691 fi
|
|
1692 CC="$ac_cv_prog_CC"
|
|
1693 if test -n "$CC"; then
|
|
1694 echo "$ac_t""$CC" 1>&6
|
|
1695 else
|
|
1696 echo "$ac_t""no" 1>&6
|
|
1697 fi
|
|
1698
|
|
1699 if test -z "$CC"; then
|
|
1700 # Extract the first word of "cc", so it can be a program name with args.
|
|
1701 set dummy cc; ac_word=$2
|
|
1702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1988
|
1703 echo "configure:1704: checking for $ac_word" >&5
|
149
|
1704
|
|
1705 if test -n "$CC"; then
|
|
1706 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1707 else
|
420
|
1708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
149
|
1709 ac_prog_rejected=no
|
420
|
1710 ac_dummy="$PATH"
|
|
1711 for ac_dir in $ac_dummy; do
|
149
|
1712 test -z "$ac_dir" && ac_dir=.
|
|
1713 if test -f $ac_dir/$ac_word; then
|
|
1714 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1715 ac_prog_rejected=yes
|
|
1716 continue
|
|
1717 fi
|
|
1718 ac_cv_prog_CC="cc"
|
|
1719 break
|
|
1720 fi
|
|
1721 done
|
|
1722 IFS="$ac_save_ifs"
|
|
1723 if test $ac_prog_rejected = yes; then
|
|
1724 # We found a bogon in the path, so make sure we never use it.
|
|
1725 set dummy $ac_cv_prog_CC
|
|
1726 shift
|
|
1727 if test $# -gt 0; then
|
|
1728 # We chose a different compiler from the bogus one.
|
|
1729 # However, it has the same basename, so the bogon will be chosen
|
|
1730 # first if we set CC to just the basename; use the full file name.
|
|
1731 shift
|
|
1732 set dummy "$ac_dir/$ac_word" "$@"
|
|
1733 shift
|
|
1734 ac_cv_prog_CC="$@"
|
|
1735 fi
|
|
1736 fi
|
|
1737 fi
|
|
1738 CC="$ac_cv_prog_CC"
|
|
1739 if test -n "$CC"; then
|
|
1740 echo "$ac_t""$CC" 1>&6
|
|
1741 else
|
|
1742 echo "$ac_t""no" 1>&6
|
|
1743 fi
|
|
1744
|
420
|
1745 if test -z "$CC"; then
|
|
1746 case "`uname -s`" in
|
|
1747 *win32* | *WIN32*)
|
|
1748 # Extract the first word of "cl", so it can be a program name with args.
|
|
1749 set dummy cl; ac_word=$2
|
|
1750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1988
|
1751 echo "configure:1752: checking for $ac_word" >&5
|
420
|
1752
|
|
1753 if test -n "$CC"; then
|
|
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1755 else
|
|
1756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1757 ac_dummy="$PATH"
|
|
1758 for ac_dir in $ac_dummy; do
|
|
1759 test -z "$ac_dir" && ac_dir=.
|
|
1760 if test -f $ac_dir/$ac_word; then
|
|
1761 ac_cv_prog_CC="cl"
|
|
1762 break
|
|
1763 fi
|
|
1764 done
|
|
1765 IFS="$ac_save_ifs"
|
|
1766 fi
|
|
1767 CC="$ac_cv_prog_CC"
|
|
1768 if test -n "$CC"; then
|
|
1769 echo "$ac_t""$CC" 1>&6
|
|
1770 else
|
|
1771 echo "$ac_t""no" 1>&6
|
|
1772 fi
|
|
1773 ;;
|
|
1774 esac
|
|
1775 fi
|
149
|
1776 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1777 fi
|
|
1778
|
|
1779 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
1988
|
1780 echo "configure:1781: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
70
|
1781
|
0
|
1782 ac_ext=c
|
151
|
1783 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1784 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1785 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
|
1786 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
1787 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1788 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
1789 cross_compiling=no
|
|
1790
|
420
|
1791 cat > conftest.$ac_ext << EOF
|
|
1792
|
1988
|
1793 #line 1794 "configure"
|
420
|
1794 #include "confdefs.h"
|
|
1795
|
149
|
1796 main(){return(0);}
|
|
1797 EOF
|
1988
|
1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
1799 ac_cv_prog_cc_works=yes
|
|
1800 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
1801 if (./conftest; exit) 2>/dev/null; then
|
|
1802 ac_cv_prog_cc_cross=no
|
|
1803 else
|
|
1804 ac_cv_prog_cc_cross=yes
|
0
|
1805 fi
|
149
|
1806 else
|
|
1807 echo "configure: failed program was:" >&5
|
|
1808 cat conftest.$ac_ext >&5
|
|
1809 ac_cv_prog_cc_works=no
|
|
1810 fi
|
|
1811 rm -fr conftest*
|
420
|
1812 ac_ext=c
|
|
1813 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1814 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1815 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
|
1816 ac_cpp='$CPP '"$xe_cppflags"
|
|
1817 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1818 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
1819 cross_compiling=no
|
149
|
1820
|
|
1821 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
1822 if test $ac_cv_prog_cc_works = no; then
|
|
1823 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
1824 fi
|
|
1825 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
1988
|
1826 echo "configure:1827: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
149
|
1827 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
1828 cross_compiling=$ac_cv_prog_cc_cross
|
|
1829
|
|
1830 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
1988
|
1831 echo "configure:1832: checking whether we are using GNU C" >&5
|
149
|
1832
|
|
1833 cat > conftest.c <<EOF
|
|
1834 #ifdef __GNUC__
|
|
1835 yes;
|
|
1836 #endif
|
|
1837 EOF
|
1988
|
1838 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
149
|
1839 ac_cv_prog_gcc=yes
|
|
1840 else
|
|
1841 ac_cv_prog_gcc=no
|
|
1842 fi
|
|
1843
|
|
1844 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
1845
|
|
1846 if test $ac_cv_prog_gcc = yes; then
|
|
1847 GCC=yes
|
420
|
1848 else
|
|
1849 GCC=
|
|
1850 fi
|
|
1851
|
|
1852 ac_test_CFLAGS="${CFLAGS+set}"
|
|
1853 ac_save_CFLAGS="$CFLAGS"
|
|
1854 CFLAGS=
|
|
1855 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
1988
|
1856 echo "configure:1857: checking whether ${CC-cc} accepts -g" >&5
|
149
|
1857
|
|
1858 echo 'void f(){}' > conftest.c
|
|
1859 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
1860 ac_cv_prog_cc_g=yes
|
|
1861 else
|
|
1862 ac_cv_prog_cc_g=no
|
|
1863 fi
|
|
1864 rm -f conftest*
|
|
1865
|
|
1866
|
|
1867 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
1868 if test "$ac_test_CFLAGS" = set; then
|
|
1869 CFLAGS="$ac_save_CFLAGS"
|
|
1870 elif test $ac_cv_prog_cc_g = yes; then
|
|
1871 if test "$GCC" = yes; then
|
149
|
1872 CFLAGS="-g -O2"
|
0
|
1873 else
|
420
|
1874 CFLAGS="-g"
|
|
1875 fi
|
|
1876 else
|
|
1877 if test "$GCC" = yes; then
|
149
|
1878 CFLAGS="-O2"
|
420
|
1879 else
|
|
1880 CFLAGS=
|
|
1881 fi
|
149
|
1882 fi
|
169
|
1883
|
|
1884 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
|
149
|
1885 CC=${NON_GNU_CC-cc}
|
|
1886 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1887 set dummy gcc; ac_word=$2
|
|
1888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1988
|
1889 echo "configure:1890: checking for $ac_word" >&5
|
149
|
1890
|
|
1891 if test -n "$CC"; then
|
|
1892 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1893 else
|
420
|
1894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1895 ac_dummy="$PATH"
|
|
1896 for ac_dir in $ac_dummy; do
|
0
|
1897 test -z "$ac_dir" && ac_dir=.
|
|
1898 if test -f $ac_dir/$ac_word; then
|
149
|
1899 ac_cv_prog_CC="gcc"
|
|
1900 break
|
|
1901 fi
|
|
1902 done
|
|
1903 IFS="$ac_save_ifs"
|
|
1904 fi
|
|
1905 CC="$ac_cv_prog_CC"
|
|
1906 if test -n "$CC"; then
|
|
1907 echo "$ac_t""$CC" 1>&6
|
|
1908 else
|
|
1909 echo "$ac_t""no" 1>&6
|
|
1910 fi
|
|
1911
|
|
1912 if test -z "$CC"; then
|
|
1913 # Extract the first word of "cc", so it can be a program name with args.
|
|
1914 set dummy cc; ac_word=$2
|
|
1915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1988
|
1916 echo "configure:1917: checking for $ac_word" >&5
|
157
|
1917
|
|
1918 if test -n "$CC"; then
|
|
1919 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1920 else
|
420
|
1921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
157
|
1922 ac_prog_rejected=no
|
420
|
1923 ac_dummy="$PATH"
|
|
1924 for ac_dir in $ac_dummy; do
|
157
|
1925 test -z "$ac_dir" && ac_dir=.
|
|
1926 if test -f $ac_dir/$ac_word; then
|
|
1927 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1928 ac_prog_rejected=yes
|
|
1929 continue
|
|
1930 fi
|
|
1931 ac_cv_prog_CC="cc"
|
|
1932 break
|
|
1933 fi
|
|
1934 done
|
|
1935 IFS="$ac_save_ifs"
|
|
1936 if test $ac_prog_rejected = yes; then
|
|
1937 # We found a bogon in the path, so make sure we never use it.
|
|
1938 set dummy $ac_cv_prog_CC
|
|
1939 shift
|
|
1940 if test $# -gt 0; then
|
|
1941 # We chose a different compiler from the bogus one.
|
|
1942 # However, it has the same basename, so the bogon will be chosen
|
|
1943 # first if we set CC to just the basename; use the full file name.
|
|
1944 shift
|
|
1945 set dummy "$ac_dir/$ac_word" "$@"
|
|
1946 shift
|
|
1947 ac_cv_prog_CC="$@"
|
|
1948 fi
|
|
1949 fi
|
|
1950 fi
|
|
1951 CC="$ac_cv_prog_CC"
|
|
1952 if test -n "$CC"; then
|
|
1953 echo "$ac_t""$CC" 1>&6
|
|
1954 else
|
|
1955 echo "$ac_t""no" 1>&6
|
|
1956 fi
|
|
1957
|
420
|
1958 if test -z "$CC"; then
|
|
1959 case "`uname -s`" in
|
|
1960 *win32* | *WIN32*)
|
|
1961 # Extract the first word of "cl", so it can be a program name with args.
|
|
1962 set dummy cl; ac_word=$2
|
|
1963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1988
|
1964 echo "configure:1965: checking for $ac_word" >&5
|
420
|
1965
|
|
1966 if test -n "$CC"; then
|
|
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1968 else
|
|
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1970 ac_dummy="$PATH"
|
|
1971 for ac_dir in $ac_dummy; do
|
|
1972 test -z "$ac_dir" && ac_dir=.
|
|
1973 if test -f $ac_dir/$ac_word; then
|
|
1974 ac_cv_prog_CC="cl"
|
|
1975 break
|
|
1976 fi
|
|
1977 done
|
|
1978 IFS="$ac_save_ifs"
|
|
1979 fi
|
|
1980 CC="$ac_cv_prog_CC"
|
|
1981 if test -n "$CC"; then
|
|
1982 echo "$ac_t""$CC" 1>&6
|
|
1983 else
|
|
1984 echo "$ac_t""no" 1>&6
|
|
1985 fi
|
|
1986 ;;
|
|
1987 esac
|
|
1988 fi
|
157
|
1989 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1990 fi
|
|
1991
|
|
1992 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
1988
|
1993 echo "configure:1994: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
157
|
1994
|
|
1995 ac_ext=c
|
|
1996 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1997 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1998 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
|
1999 ac_cpp='$CPP '"$xe_cppflags"
|
|
2000 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2001 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
2002 cross_compiling=no
|
|
2003
|
420
|
2004 cat > conftest.$ac_ext << EOF
|
|
2005
|
1988
|
2006 #line 2007 "configure"
|
420
|
2007 #include "confdefs.h"
|
|
2008
|
157
|
2009 main(){return(0);}
|
|
2010 EOF
|
1988
|
2011 if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
157
|
2012 ac_cv_prog_cc_works=yes
|
|
2013 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
2014 if (./conftest; exit) 2>/dev/null; then
|
|
2015 ac_cv_prog_cc_cross=no
|
|
2016 else
|
|
2017 ac_cv_prog_cc_cross=yes
|
|
2018 fi
|
|
2019 else
|
|
2020 echo "configure: failed program was:" >&5
|
|
2021 cat conftest.$ac_ext >&5
|
|
2022 ac_cv_prog_cc_works=no
|
|
2023 fi
|
|
2024 rm -fr conftest*
|
420
|
2025 ac_ext=c
|
|
2026 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2027 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2028 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
|
2029 ac_cpp='$CPP '"$xe_cppflags"
|
|
2030 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2031 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
2032 cross_compiling=no
|
157
|
2033
|
|
2034 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
2035 if test $ac_cv_prog_cc_works = no; then
|
|
2036 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
2037 fi
|
|
2038 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
1988
|
2039 echo "configure:2040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
157
|
2040 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
2041 cross_compiling=$ac_cv_prog_cc_cross
|
|
2042
|
|
2043 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
1988
|
2044 echo "configure:2045: checking whether we are using GNU C" >&5
|
157
|
2045
|
|
2046 cat > conftest.c <<EOF
|
|
2047 #ifdef __GNUC__
|
|
2048 yes;
|
|
2049 #endif
|
|
2050 EOF
|
1988
|
2051 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
157
|
2052 ac_cv_prog_gcc=yes
|
|
2053 else
|
|
2054 ac_cv_prog_gcc=no
|
|
2055 fi
|
|
2056
|
|
2057 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
2058
|
|
2059 if test $ac_cv_prog_gcc = yes; then
|
|
2060 GCC=yes
|
420
|
2061 else
|
|
2062 GCC=
|
|
2063 fi
|
|
2064
|
|
2065 ac_test_CFLAGS="${CFLAGS+set}"
|
|
2066 ac_save_CFLAGS="$CFLAGS"
|
|
2067 CFLAGS=
|
|
2068 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
1988
|
2069 echo "configure:2070: checking whether ${CC-cc} accepts -g" >&5
|
157
|
2070
|
|
2071 echo 'void f(){}' > conftest.c
|
|
2072 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
2073 ac_cv_prog_cc_g=yes
|
|
2074 else
|
|
2075 ac_cv_prog_cc_g=no
|
|
2076 fi
|
|
2077 rm -f conftest*
|
|
2078
|
|
2079
|
|
2080 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
2081 if test "$ac_test_CFLAGS" = set; then
|
|
2082 CFLAGS="$ac_save_CFLAGS"
|
|
2083 elif test $ac_cv_prog_cc_g = yes; then
|
|
2084 if test "$GCC" = yes; then
|
157
|
2085 CFLAGS="-g -O2"
|
|
2086 else
|
420
|
2087 CFLAGS="-g"
|
|
2088 fi
|
|
2089 else
|
|
2090 if test "$GCC" = yes; then
|
157
|
2091 CFLAGS="-O2"
|
420
|
2092 else
|
|
2093 CFLAGS=
|
|
2094 fi
|
157
|
2095 fi
|
|
2096
|
169
|
2097 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
|
157
|
2098 CC=gcc
|
|
2099 # Extract the first word of "gcc", so it can be a program name with args.
|
|
2100 set dummy gcc; ac_word=$2
|
|
2101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1988
|
2102 echo "configure:2103: checking for $ac_word" >&5
|
157
|
2103
|
|
2104 if test -n "$CC"; then
|
|
2105 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2106 else
|
420
|
2107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2108 ac_dummy="$PATH"
|
|
2109 for ac_dir in $ac_dummy; do
|
157
|
2110 test -z "$ac_dir" && ac_dir=.
|
|
2111 if test -f $ac_dir/$ac_word; then
|
|
2112 ac_cv_prog_CC="gcc"
|
|
2113 break
|
|
2114 fi
|
|
2115 done
|
|
2116 IFS="$ac_save_ifs"
|
|
2117 fi
|
|
2118 CC="$ac_cv_prog_CC"
|
|
2119 if test -n "$CC"; then
|
|
2120 echo "$ac_t""$CC" 1>&6
|
|
2121 else
|
|
2122 echo "$ac_t""no" 1>&6
|
|
2123 fi
|
|
2124
|
|
2125 if test -z "$CC"; then
|
|
2126 # Extract the first word of "cc", so it can be a program name with args.
|
|
2127 set dummy cc; ac_word=$2
|
|
2128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1988
|
2129 echo "configure:2130: checking for $ac_word" >&5
|
149
|
2130
|
|
2131 if test -n "$CC"; then
|
|
2132 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2133 else
|
420
|
2134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
149
|
2135 ac_prog_rejected=no
|
420
|
2136 ac_dummy="$PATH"
|
|
2137 for ac_dir in $ac_dummy; do
|
149
|
2138 test -z "$ac_dir" && ac_dir=.
|
|
2139 if test -f $ac_dir/$ac_word; then
|
|
2140 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
2141 ac_prog_rejected=yes
|
|
2142 continue
|
|
2143 fi
|
|
2144 ac_cv_prog_CC="cc"
|
|
2145 break
|
|
2146 fi
|
|
2147 done
|
|
2148 IFS="$ac_save_ifs"
|
|
2149 if test $ac_prog_rejected = yes; then
|
|
2150 # We found a bogon in the path, so make sure we never use it.
|
|
2151 set dummy $ac_cv_prog_CC
|
|
2152 shift
|
|
2153 if test $# -gt 0; then
|
|
2154 # We chose a different compiler from the bogus one.
|
|
2155 # However, it has the same basename, so the bogon will be chosen
|
|
2156 # first if we set CC to just the basename; use the full file name.
|
|
2157 shift
|
|
2158 set dummy "$ac_dir/$ac_word" "$@"
|
|
2159 shift
|
|
2160 ac_cv_prog_CC="$@"
|
|
2161 fi
|
|
2162 fi
|
|
2163 fi
|
|
2164 CC="$ac_cv_prog_CC"
|
|
2165 if test -n "$CC"; then
|
|
2166 echo "$ac_t""$CC" 1>&6
|
|
2167 else
|
|
2168 echo "$ac_t""no" 1>&6
|
|
2169 fi
|
|
2170
|
420
|
2171 if test -z "$CC"; then
|
|
2172 case "`uname -s`" in
|
|
2173 *win32* | *WIN32*)
|
|
2174 # Extract the first word of "cl", so it can be a program name with args.
|
|
2175 set dummy cl; ac_word=$2
|
|
2176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1988
|
2177 echo "configure:2178: checking for $ac_word" >&5
|
420
|
2178
|
|
2179 if test -n "$CC"; then
|
|
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2181 else
|
|
2182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2183 ac_dummy="$PATH"
|
|
2184 for ac_dir in $ac_dummy; do
|
|
2185 test -z "$ac_dir" && ac_dir=.
|
|
2186 if test -f $ac_dir/$ac_word; then
|
|
2187 ac_cv_prog_CC="cl"
|
|
2188 break
|
|
2189 fi
|
|
2190 done
|
|
2191 IFS="$ac_save_ifs"
|
|
2192 fi
|
|
2193 CC="$ac_cv_prog_CC"
|
|
2194 if test -n "$CC"; then
|
|
2195 echo "$ac_t""$CC" 1>&6
|
|
2196 else
|
|
2197 echo "$ac_t""no" 1>&6
|
|
2198 fi
|
|
2199 ;;
|
|
2200 esac
|
|
2201 fi
|
149
|
2202 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
2203 fi
|
|
2204
|
|
2205 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
1988
|
2206 echo "configure:2207: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
149
|
2207
|
|
2208 ac_ext=c
|
151
|
2209 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2210 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2211 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
|
2212 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
2213 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2214 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
2215 cross_compiling=no
|
|
2216
|
420
|
2217 cat > conftest.$ac_ext << EOF
|
|
2218
|
1988
|
2219 #line 2220 "configure"
|
420
|
2220 #include "confdefs.h"
|
|
2221
|
149
|
2222 main(){return(0);}
|
|
2223 EOF
|
1988
|
2224 if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
2225 ac_cv_prog_cc_works=yes
|
|
2226 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
2227 if (./conftest; exit) 2>/dev/null; then
|
|
2228 ac_cv_prog_cc_cross=no
|
|
2229 else
|
|
2230 ac_cv_prog_cc_cross=yes
|
|
2231 fi
|
|
2232 else
|
|
2233 echo "configure: failed program was:" >&5
|
|
2234 cat conftest.$ac_ext >&5
|
|
2235 ac_cv_prog_cc_works=no
|
|
2236 fi
|
|
2237 rm -fr conftest*
|
420
|
2238 ac_ext=c
|
|
2239 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2240 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2241 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
|
2242 ac_cpp='$CPP '"$xe_cppflags"
|
|
2243 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2244 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
2245 cross_compiling=no
|
149
|
2246
|
|
2247 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
2248 if test $ac_cv_prog_cc_works = no; then
|
|
2249 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
2250 fi
|
|
2251 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
1988
|
2252 echo "configure:2253: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
149
|
2253 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
2254 cross_compiling=$ac_cv_prog_cc_cross
|
|
2255
|
|
2256 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
1988
|
2257 echo "configure:2258: checking whether we are using GNU C" >&5
|
149
|
2258
|
|
2259 cat > conftest.c <<EOF
|
|
2260 #ifdef __GNUC__
|
|
2261 yes;
|
|
2262 #endif
|
|
2263 EOF
|
1988
|
2264 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
149
|
2265 ac_cv_prog_gcc=yes
|
|
2266 else
|
|
2267 ac_cv_prog_gcc=no
|
|
2268 fi
|
|
2269
|
|
2270 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
2271
|
|
2272 if test $ac_cv_prog_gcc = yes; then
|
|
2273 GCC=yes
|
420
|
2274 else
|
|
2275 GCC=
|
|
2276 fi
|
|
2277
|
|
2278 ac_test_CFLAGS="${CFLAGS+set}"
|
|
2279 ac_save_CFLAGS="$CFLAGS"
|
|
2280 CFLAGS=
|
|
2281 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
1988
|
2282 echo "configure:2283: checking whether ${CC-cc} accepts -g" >&5
|
149
|
2283
|
|
2284 echo 'void f(){}' > conftest.c
|
|
2285 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
2286 ac_cv_prog_cc_g=yes
|
|
2287 else
|
|
2288 ac_cv_prog_cc_g=no
|
|
2289 fi
|
|
2290 rm -f conftest*
|
|
2291
|
|
2292
|
|
2293 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
2294 if test "$ac_test_CFLAGS" = set; then
|
|
2295 CFLAGS="$ac_save_CFLAGS"
|
|
2296 elif test $ac_cv_prog_cc_g = yes; then
|
|
2297 if test "$GCC" = yes; then
|
149
|
2298 CFLAGS="-g -O2"
|
|
2299 else
|
420
|
2300 CFLAGS="-g"
|
|
2301 fi
|
|
2302 else
|
|
2303 if test "$GCC" = yes; then
|
149
|
2304 CFLAGS="-O2"
|
420
|
2305 else
|
|
2306 CFLAGS=
|
|
2307 fi
|
149
|
2308 fi
|
|
2309
|
157
|
2310 fi
|
|
2311 CFLAGS="$xe_save_CFLAGS"
|
149
|
2312
|
1123
|
2313 if test "$GCC" = "yes"; then
|
|
2314 cat > conftest.$ac_ext <<EOF
|
1988
|
2315 #line 2316 "configure"
|
1123
|
2316 #include "confdefs.h"
|
|
2317 int main () {
|
|
2318 #if __GNUC__ >= 3
|
|
2319 return 11;
|
|
2320 #else
|
|
2321 return 0;
|
|
2322 #endif
|
|
2323 }
|
|
2324 EOF
|
1988
|
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
1123
|
2326 then
|
|
2327 :
|
|
2328 else
|
|
2329 conftest_rc="$?"
|
|
2330 echo "configure: failed program was:" >&5
|
|
2331 cat conftest.$ac_ext >&5
|
|
2332 rm -fr conftest*
|
|
2333 case "$conftest_rc" in
|
|
2334 11) echo "You appear to be using GCC version 3 or above."; __GCC3=yes ;;
|
|
2335 esac
|
|
2336 fi
|
|
2337 rm -fr conftest*
|
|
2338 fi
|
|
2339
|
171
|
2340
|
1889
|
2341
|
|
2342 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
|
|
2343 : ${XEMACS_CC:="$CC"}
|
|
2344
|
|
2345
|
171
|
2346 test -n "$CPP" -a -d "$CPP" && CPP=
|
|
2347
|
169
|
2348 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
|
149
|
2349
|
|
2350 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
1988
|
2351 echo "configure:2352: checking how to run the C preprocessor" >&5
|
149
|
2352 # On Suns, sometimes $CPP names a directory.
|
|
2353 if test -n "$CPP" && test -d "$CPP"; then
|
|
2354 CPP=
|
|
2355 fi
|
0
|
2356 if test -z "$CPP"; then
|
149
|
2357
|
0
|
2358 # This must be in double quotes, not single quotes, because CPP may get
|
149
|
2359 # substituted into the Makefile and "${CC-cc}" will confuse make.
|
0
|
2360 CPP="${CC-cc} -E"
|
149
|
2361 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
2362 # not just through cpp.
|
|
2363 cat > conftest.$ac_ext <<EOF
|
1988
|
2364 #line 2365 "configure"
|
149
|
2365 #include "confdefs.h"
|
|
2366 #include <assert.h>
|
0
|
2367 Syntax Error
|
|
2368 EOF
|
149
|
2369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1988
|
2370 { (eval echo configure:2371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
2372 if test -z "$ac_err"; then
|
|
2373 :
|
|
2374 else
|
|
2375 echo "$ac_err" >&5
|
|
2376 echo "configure: failed program was:" >&5
|
|
2377 cat conftest.$ac_ext >&5
|
|
2378 rm -rf conftest*
|
|
2379 CPP="${CC-cc} -E -traditional-cpp"
|
|
2380 cat > conftest.$ac_ext <<EOF
|
1988
|
2381 #line 2382 "configure"
|
149
|
2382 #include "confdefs.h"
|
|
2383 #include <assert.h>
|
|
2384 Syntax Error
|
|
2385 EOF
|
|
2386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1988
|
2387 { (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
2389 if test -z "$ac_err"; then
|
|
2390 :
|
|
2391 else
|
|
2392 echo "$ac_err" >&5
|
|
2393 echo "configure: failed program was:" >&5
|
|
2394 cat conftest.$ac_ext >&5
|
|
2395 rm -rf conftest*
|
|
2396 CPP="${CC-cc} -nologo -E"
|
|
2397 cat > conftest.$ac_ext <<EOF
|
1988
|
2398 #line 2399 "configure"
|
420
|
2399 #include "confdefs.h"
|
|
2400 #include <assert.h>
|
|
2401 Syntax Error
|
|
2402 EOF
|
|
2403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1988
|
2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
2406 if test -z "$ac_err"; then
|
|
2407 :
|
|
2408 else
|
149
|
2409 echo "$ac_err" >&5
|
|
2410 echo "configure: failed program was:" >&5
|
|
2411 cat conftest.$ac_ext >&5
|
0
|
2412 rm -rf conftest*
|
|
2413 CPP=/lib/cpp
|
|
2414 fi
|
|
2415 rm -f conftest*
|
|
2416 fi
|
|
2417 rm -f conftest*
|
420
|
2418 fi
|
|
2419 rm -f conftest*
|
149
|
2420 ac_cv_prog_CPP="$CPP"
|
|
2421 CPP="$ac_cv_prog_CPP"
|
|
2422 else
|
|
2423 ac_cv_prog_CPP="$CPP"
|
|
2424 fi
|
|
2425 echo "$ac_t""$CPP" 1>&6
|
|
2426
|
|
2427
|
442
|
2428
|
157
|
2429 echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
1988
|
2430 echo "configure:2431: checking for AIX" >&5
|
|
2431 cat > conftest.$ac_ext <<EOF
|
|
2432 #line 2433 "configure"
|
157
|
2433 #include "confdefs.h"
|
|
2434 #ifdef _AIX
|
|
2435 yes
|
|
2436 #endif
|
|
2437
|
|
2438 EOF
|
|
2439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
2440 egrep "yes" >/dev/null 2>&1; then
|
|
2441 rm -rf conftest*
|
|
2442 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2443 Defining _ALL_SOURCE
|
|
2444 EOF
|
|
2445 cat >> confdefs.h <<\EOF
|
|
2446 #define _ALL_SOURCE 1
|
|
2447 EOF
|
|
2448 }
|
|
2449
|
|
2450 else
|
|
2451 rm -rf conftest*
|
|
2452 echo "$ac_t""no" 1>&6
|
|
2453 fi
|
|
2454 rm -f conftest*
|
|
2455
|
442
|
2456
|
410
|
2457
|
|
2458 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
|
1988
|
2459 echo "configure:2460: checking for GNU libc" >&5
|
|
2460 cat > conftest.$ac_ext <<EOF
|
|
2461 #line 2462 "configure"
|
406
|
2462 #include "confdefs.h"
|
243
|
2463 #include <features.h>
|
|
2464 int main() {
|
|
2465
|
|
2466 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
|
|
2467 #error Not a GNU libc system :-(
|
|
2468 ******* ======= ******** &&&&&&&&
|
|
2469 #endif
|
|
2470
|
|
2471 ; return 0; }
|
|
2472 EOF
|
1988
|
2473 if { (eval echo configure:2474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
243
|
2474 rm -rf conftest*
|
|
2475 have_glibc=yes
|
|
2476 else
|
|
2477 echo "configure: failed program was:" >&5
|
|
2478 cat conftest.$ac_ext >&5
|
|
2479 rm -rf conftest*
|
|
2480 have_glibc=no
|
|
2481 fi
|
|
2482 rm -f conftest*
|
|
2483 echo "$ac_t""$have_glibc" 1>&6
|
272
|
2484 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2485 Defining _GNU_SOURCE
|
|
2486 EOF
|
|
2487 cat >> confdefs.h <<\EOF
|
|
2488 #define _GNU_SOURCE 1
|
|
2489 EOF
|
|
2490 }
|
|
2491
|
243
|
2492
|
442
|
2493 case "$opsys" in
|
|
2494 sol2)
|
|
2495 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2496 Defining __EXTENSIONS__
|
|
2497 EOF
|
|
2498 cat >> confdefs.h <<\EOF
|
|
2499 #define __EXTENSIONS__ 1
|
|
2500 EOF
|
|
2501 }
|
|
2502
|
1692
|
2503 if test "$os_release" -ge 505; then
|
442
|
2504 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2505 Defining _XOPEN_SOURCE = 500
|
|
2506 EOF
|
|
2507 cat >> confdefs.h <<\EOF
|
|
2508 #define _XOPEN_SOURCE 500
|
|
2509 EOF
|
|
2510 }
|
|
2511
|
|
2512 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2513 Defining _XOPEN_SOURCE_EXTENDED
|
|
2514 EOF
|
|
2515 cat >> confdefs.h <<\EOF
|
|
2516 #define _XOPEN_SOURCE_EXTENDED 1
|
|
2517 EOF
|
|
2518 }
|
|
2519
|
|
2520 fi ;;
|
|
2521 linux)
|
|
2522 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2523 Defining _POSIX_C_SOURCE = 199506L
|
|
2524 EOF
|
|
2525 cat >> confdefs.h <<\EOF
|
|
2526 #define _POSIX_C_SOURCE 199506L
|
|
2527 EOF
|
|
2528 }
|
|
2529
|
1955
|
2530 { test "$extra_verbose" = "yes" && cat << \EOF
|
442
|
2531 Defining _XOPEN_SOURCE = 500
|
|
2532 EOF
|
|
2533 cat >> confdefs.h <<\EOF
|
|
2534 #define _XOPEN_SOURCE 500
|
|
2535 EOF
|
|
2536 }
|
|
2537
|
|
2538 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2539 Defining _XOPEN_SOURCE_EXTENDED
|
|
2540 EOF
|
|
2541 cat >> confdefs.h <<\EOF
|
|
2542 #define _XOPEN_SOURCE_EXTENDED 1
|
|
2543 EOF
|
|
2544 }
|
|
2545
|
|
2546 ;;
|
2131
|
2547 freebsd4*)
|
1955
|
2548 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2549 Defining _POSIX_C_SOURCE = 199506L
|
|
2550 EOF
|
|
2551 cat >> confdefs.h <<\EOF
|
|
2552 #define _POSIX_C_SOURCE 199506L
|
|
2553 EOF
|
|
2554 }
|
|
2555
|
|
2556 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2557 Defining _XOPEN_SOURCE = 500
|
|
2558 EOF
|
|
2559 cat >> confdefs.h <<\EOF
|
|
2560 #define _XOPEN_SOURCE 500
|
|
2561 EOF
|
|
2562 }
|
|
2563
|
|
2564 ;;
|
442
|
2565 esac
|
|
2566
|
|
2567 cat > conftest.$ac_ext <<EOF
|
1988
|
2568 #line 2569 "configure"
|
373
|
2569 #include "confdefs.h"
|
|
2570 int main () {
|
|
2571 #if defined __SUNPRO_C
|
|
2572 return 11;
|
|
2573 #elif defined __DECC
|
|
2574 return 12;
|
442
|
2575 #elif defined __USLC__ && defined __SCO_VERSION__
|
|
2576 return 13;
|
1756
|
2577 #elif defined __INTEL_COMPILER
|
|
2578 return 14;
|
373
|
2579 #else
|
|
2580 return 0;
|
|
2581 #endif
|
|
2582 }
|
|
2583 EOF
|
1988
|
2584 if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
373
|
2585 then
|
|
2586 :
|
|
2587 else
|
|
2588 conftest_rc="$?"
|
|
2589 echo "configure: failed program was:" >&5
|
|
2590 cat conftest.$ac_ext >&5
|
|
2591 rm -fr conftest*
|
|
2592 case "$conftest_rc" in
|
1756
|
2593 11) echo "You appear to be using the SunPro C compiler." ; __SUNPRO_C=yes ;;
|
|
2594 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
|
|
2595 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
|
1871
|
2596 14) echo "You appear to be using the Intel C++ compiler."; __ICC=yes
|
|
2597 GCC=no ;;
|
373
|
2598 esac
|
|
2599 fi
|
|
2600 rm -fr conftest*
|
|
2601
|
157
|
2602
|
0
|
2603
|
149
|
2604
|
|
2605 echo "Extracting information from the machine- and system-dependent headers..."
|
|
2606
|
|
2607 tempcname="conftest.c"
|
|
2608
|
|
2609
|
|
2610
|
442
|
2611 cat > $tempcname < confdefs.h
|
|
2612 cat >> $tempcname <<EOF
|
149
|
2613 #define NOT_C_CODE
|
|
2614 #define C_SWITCH_SITE
|
|
2615 #define C_SWITCH_X_SITE
|
|
2616 #define LD_SWITCH_SITE
|
|
2617 #define LD_SWITCH_X_SITE
|
|
2618 #define LD_SWITCH_X_SITE_AUX
|
284
|
2619 #define OS_RELEASE $os_release
|
442
|
2620
|
|
2621 #ifdef config_opsysfile
|
284
|
2622 #include "$srcdir/src/$opsysfile"
|
442
|
2623 #endif
|
|
2624
|
|
2625 #ifdef config_machfile
|
284
|
2626 #include "$srcdir/src/$machfile"
|
442
|
2627 #endif
|
149
|
2628
|
|
2629 #ifndef LIBS_MACHINE
|
151
|
2630 #define LIBS_MACHINE
|
149
|
2631 #endif
|
|
2632 configure___ libs_machine=LIBS_MACHINE
|
|
2633
|
|
2634 #ifndef LIBS_SYSTEM
|
151
|
2635 #define LIBS_SYSTEM
|
149
|
2636 #endif
|
|
2637 configure___ libs_system=LIBS_SYSTEM
|
|
2638
|
|
2639 #ifndef LIBS_TERMCAP
|
151
|
2640 #define LIBS_TERMCAP
|
149
|
2641 #endif
|
|
2642 configure___ libs_termcap=LIBS_TERMCAP
|
|
2643
|
|
2644 #ifndef LIB_STANDARD
|
151
|
2645 #define LIB_STANDARD
|
149
|
2646 #endif
|
|
2647 configure___ libs_standard=LIB_STANDARD
|
|
2648
|
|
2649
|
163
|
2650 #ifndef OBJECTS_MACHINE
|
|
2651 #define OBJECTS_MACHINE
|
|
2652 #endif
|
|
2653 configure___ objects_machine=OBJECTS_MACHINE
|
|
2654
|
|
2655 #ifndef OBJECTS_SYSTEM
|
|
2656 #define OBJECTS_SYSTEM
|
|
2657 #endif
|
|
2658 configure___ objects_system=OBJECTS_SYSTEM
|
|
2659
|
|
2660
|
149
|
2661 #ifndef C_SWITCH_MACHINE
|
151
|
2662 #define C_SWITCH_MACHINE
|
149
|
2663 #endif
|
|
2664 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
2665
|
157
|
2666 #ifndef C_SWITCH_SYSTEM
|
|
2667 #define C_SWITCH_SYSTEM
|
|
2668 #endif
|
|
2669 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
2670
|
|
2671
|
|
2672 #ifndef LD_SWITCH_MACHINE
|
|
2673 #define LD_SWITCH_MACHINE
|
|
2674 #endif
|
|
2675 configure___ ld_switch_machine=LD_SWITCH_MACHINE
|
|
2676
|
|
2677 #ifndef LD_SWITCH_SYSTEM
|
|
2678 #define LD_SWITCH_SYSTEM
|
|
2679 #endif
|
|
2680 configure___ ld_switch_system=LD_SWITCH_SYSTEM
|
|
2681
|
149
|
2682
|
|
2683 #ifndef UNEXEC
|
561
|
2684 #define UNEXEC
|
149
|
2685 #endif
|
|
2686 configure___ unexec=UNEXEC
|
|
2687
|
|
2688
|
561
|
2689 #ifndef SYSTEM_TYPE
|
|
2690 #define SYSTEM_TYPE
|
|
2691 #endif
|
|
2692 configure___ system_type=SYSTEM_TYPE
|
|
2693
|
|
2694
|
163
|
2695 #ifndef LD_SWITCH_SHARED
|
|
2696 #define LD_SWITCH_SHARED "-c"
|
|
2697 #endif
|
|
2698 configure___ ld_switch_shared=LD_SWITCH_SHARED
|
|
2699
|
|
2700
|
442
|
2701 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
|
|
2702 configure___ ordinary_ld=ORDINARY_LD
|
|
2703
|
163
|
2704 #ifdef ORDINARY_LINK
|
442
|
2705 #define LD ORDINARY_LD
|
163
|
2706 #else /* no ORDINARY LINK */
|
|
2707 #ifdef COFF_ENCAPSULATE
|
284
|
2708 #define LD "\$(CC) -nostdlib"
|
163
|
2709 #else /* not COFF_ENCAPSULATE */
|
|
2710 #ifdef LINKER
|
|
2711 #define LD LINKER
|
|
2712 #else /* ! defined (LINKER) */
|
|
2713 #define LD "ld"
|
|
2714 #endif /* ! defined (LINKER) */
|
|
2715 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
2716 #endif /* not ORDINARY_LINK */
|
|
2717 configure___ ld=LD
|
|
2718
|
|
2719 #ifndef LIB_GCC
|
|
2720 #define LIB_GCC
|
|
2721 #endif
|
|
2722 configure___ lib_gcc=LIB_GCC
|
|
2723
|
|
2724 #ifndef LD_TEXT_START_ADDR
|
|
2725 #define LD_TEXT_START_ADDR
|
|
2726 #endif
|
|
2727 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
|
|
2728
|
|
2729
|
|
2730 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
|
|
2731 #ifdef NO_REMAP
|
|
2732 #ifdef COFF_ENCAPSULATE
|
|
2733 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
|
|
2734 #else /* ! defined (COFF_ENCAPSULATE) */
|
|
2735 #define START_FILES "pre-crt0.o /lib/crt0.o"
|
|
2736 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
2737 #else /* ! defined (NO_REMAP) */
|
|
2738 #define START_FILES "ecrt0.o"
|
|
2739 #endif /* ! defined (NO_REMAP) */
|
|
2740 #endif /* no ORDINARY_LINK */
|
|
2741 #ifndef START_FILES
|
|
2742 #define START_FILES
|
|
2743 #endif
|
|
2744 configure___ start_files=START_FILES
|
|
2745
|
153
|
2746 #ifdef ORDINARY_LINK
|
|
2747 configure___ ordinary_link=yes
|
|
2748 #else
|
|
2749 configure___ ordinary_link=no
|
|
2750 #endif
|
|
2751
|
149
|
2752 #ifdef SYSTEM_MALLOC
|
|
2753 configure___ system_malloc=yes
|
|
2754 #else
|
|
2755 configure___ system_malloc=no
|
|
2756 #endif
|
|
2757
|
|
2758 #ifdef TERMINFO
|
|
2759 configure___ have_terminfo=yes
|
|
2760 #else
|
|
2761 configure___ have_terminfo=no
|
|
2762 #endif
|
|
2763
|
|
2764 #ifdef MAIL_USE_FLOCK
|
|
2765 configure___ mail_use_flock=yes
|
|
2766 #else
|
|
2767 configure___ mail_use_flock=no
|
|
2768 #endif
|
|
2769
|
|
2770 #ifdef MAIL_USE_LOCKF
|
|
2771 configure___ mail_use_lockf=yes
|
|
2772 #else
|
|
2773 configure___ mail_use_lockf=no
|
|
2774 #endif
|
|
2775
|
438
|
2776 #ifdef MAIL_USE_LOCKING
|
|
2777 configure___ mail_use_locking=yes
|
|
2778 #else
|
|
2779 configure___ mail_use_locking=no
|
|
2780 #endif
|
|
2781
|
398
|
2782 #ifdef HAVE_WIN32_PROCESSES
|
|
2783 configure___ win32_processes=yes
|
|
2784 #else
|
|
2785 configure___ win32_processes=no
|
|
2786 #endif
|
|
2787
|
284
|
2788 EOF
|
|
2789
|
380
|
2790 CPP=`eval "echo $CPP $CPPFLAGS"`
|
149
|
2791 eval `$CPP -Isrc $tempcname \
|
165
|
2792 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
|
153
|
2793
|
149
|
2794 rm $tempcname
|
|
2795
|
561
|
2796 test -z "$system_type" && \
|
|
2797 { test "$extra_verbose" = "yes" && cat << EOF
|
|
2798 Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
|
|
2799 EOF
|
|
2800 cat >> confdefs.h <<EOF
|
|
2801 #define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
|
|
2802 EOF
|
|
2803 }
|
|
2804
|
|
2805
|
|
2806 test -z "$unexec" && pdump=yes
|
|
2807
|
442
|
2808 if test "$pdump" = "yes"; then
|
|
2809 ordinary_link="yes"
|
|
2810 ld="${ordinary_ld}"
|
|
2811 start_files=
|
|
2812 libs_standard=
|
|
2813 unexec=
|
|
2814 lib_gcc=
|
|
2815 fi
|
|
2816
|
163
|
2817 test "$extra_verbose" = "yes" && \
|
201
|
2818 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
|
2819
|
458
|
2820 case "$opsys" in mingw* | cygwin*)
|
452
|
2821 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
|
|
2822 cygwin_include=`eval "dirname $cygwin_include"` ;
|
|
2823 cygwin_include="-I$cygwin_include/../include" ;
|
462
|
2824 extra_includes="$cygwin_include/mingw $cygwin_include" ;
|
458
|
2825 case "$opsys" in mingw*)
|
452
|
2826 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
|
|
2827 esac
|
458
|
2828 ;;
|
438
|
2829 esac
|
|
2830
|
153
|
2831 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
|
|
2832
|
442
|
2833
|
|
2834 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
|
|
2835
|
|
2836 if test "$__USLC__" = yes; then
|
|
2837 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
|
1988
|
2838 echo "configure:2839: checking for whether the -Kalloca compiler flag is needed" >&5
|
442
|
2839 need_kalloca=no
|
|
2840 cat > conftest.$ac_ext <<EOF
|
1988
|
2841 #line 2842 "configure"
|
442
|
2842 #include "confdefs.h"
|
|
2843
|
|
2844 int main() {
|
|
2845 void *x = alloca(4);
|
|
2846 ; return 0; }
|
|
2847 EOF
|
1988
|
2848 if { (eval echo configure:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
2849 rm -rf conftest*
|
|
2850 :
|
|
2851 else
|
|
2852 echo "configure: failed program was:" >&5
|
|
2853 cat conftest.$ac_ext >&5
|
|
2854 rm -rf conftest*
|
|
2855
|
|
2856 xe_save_c_switch_system="$c_switch_system"
|
|
2857 c_switch_system="$c_switch_system -Kalloca"
|
|
2858 cat > conftest.$ac_ext <<EOF
|
1988
|
2859 #line 2860 "configure"
|
442
|
2860 #include "confdefs.h"
|
|
2861
|
|
2862 int main() {
|
|
2863 void *x = alloca(4);
|
|
2864 ; return 0; }
|
|
2865 EOF
|
1988
|
2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
2867 rm -rf conftest*
|
|
2868 need_kalloca=yes
|
|
2869 else
|
|
2870 echo "configure: failed program was:" >&5
|
|
2871 cat conftest.$ac_ext >&5
|
|
2872 fi
|
|
2873 rm -f conftest*
|
|
2874 c_switch_system="$xe_save_c_switch_system"
|
|
2875 fi
|
|
2876 rm -f conftest*
|
|
2877 echo "$ac_t""$need_kalloca" 1>&6
|
|
2878 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
|
|
2879 fi
|
373
|
2880
|
1889
|
2881 if test "$CC" != "$XEMACS_CC"; then
|
|
2882 if test "$XEMACS_CC" = "g++" -a "$GCC" != "yes"; then
|
|
2883 echo "configure: warning: CC and g++ are mismatched; XE_CFLAGS may be wrong" 1>&2
|
|
2884 xemacs_cc_cc_mismatch=yes
|
|
2885 elif test -n "$GCC" -a "$XEMACS_CC" != "g++"; then
|
|
2886 echo "configure: warning: gcc and XEMACS_CC are mismatched; XE_CFLAGS may be wrong" 1>&2
|
|
2887 xemacs_cc_cc_mismatch=yes
|
|
2888 else
|
|
2889 xemacs_cc_cc_mismatch=no
|
|
2890 fi
|
|
2891 fi
|
|
2892
|
|
2893
|
1998
|
2894 echo $ac_n "checking for preferred CFLAGS""... $ac_c" 1>&6
|
|
2895 echo "configure:2896: checking for preferred CFLAGS" >&5
|
|
2896
|
272
|
2897 if test "$cflags_specified" = "no"; then
|
1123
|
2898 if test "$GCC" = "yes"; then
|
1111
|
2899 CFLAGS="-g -O3"
|
1889
|
2900 elif test "$__SUNPRO_C" = "yes"; then
|
157
|
2901 case "$opsys" in
|
1111
|
2902 sol2 ) CFLAGS="-xO4" ;;
|
|
2903 sunos4* ) CFLAGS="-xO2" ;;
|
157
|
2904 esac
|
373
|
2905 elif test "$__DECC" = "yes"; then
|
|
2906 CFLAGS="-O3"
|
207
|
2907 elif test "$CC" = "xlc"; then
|
1111
|
2908 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qro -qmaxmem=20000"
|
1756
|
2909 elif test "$__ICC" = "yes"; then
|
|
2910 CFLAGS="-g -O3 -Ob2"
|
373
|
2911 else
|
|
2912 CFLAGS="-O" ; fi
|
272
|
2913 fi
|
1998
|
2914 echo "$ac_t""${CFLAGS}" 1>&6
|
|
2915
|
|
2916
|
|
2917 echo $ac_n "checking for preferred warning flags for XEMACS_CC""... $ac_c" 1>&6
|
|
2918 echo "configure:2919: checking for preferred warning flags for XEMACS_CC" >&5
|
1111
|
2919
|
1889
|
2920 xe_cflags_warning=""
|
|
2921
|
1111
|
2922 if test "$cflags_warning_specified" = "no"; then
|
1889
|
2923 if test "$__SUNPRO_C" = "yes"; then
|
1111
|
2924 case "$opsys" in
|
|
2925 sol2 ) cflags_warning="-v" ;;
|
|
2926 esac
|
|
2927 elif test "$CC" = "xlc"; then
|
|
2928 cflags_warning="-qinfo"
|
1889
|
2929 elif test "$GCC" = "yes"; then
|
|
2930 cflags_warning="-Wall -Wno-switch -Winline -Wmissing-prototypes"
|
|
2931 cflags_warning="$cflags_warning -Wsign-compare"
|
|
2932 cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes"
|
|
2933 if test "$__GCC3" = "yes"; then
|
|
2934 cflags_warning="$cflags_warning -Wpacked"
|
|
2935 fi
|
1998
|
2936 test "$have_glibc" != "yes" && \
|
|
2937 cflags_warning="$cflags_warning -Wpointer-arith"
|
1889
|
2938 test "$xemacs_compiler" = "g++" && \
|
|
2939 xe_cflags_warning="$cflags_warning -Weffc++"
|
|
2940 cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations"
|
1998
|
2941 elif test "$__ICC" = "yes"; then
|
2050
|
2942 cflags_warning="-Wall -w1 -we147"
|
1998
|
2943 fi
|
|
2944 fi
|
|
2945 test -z "$xe_cflags_warning" && xe_cflags_warning="$cflags_warning"
|
|
2946 echo "$ac_t""${xe_cflags_warning}" 1>&6
|
|
2947
|
|
2948 echo $ac_n "checking for preferred warning flags for CC""... $ac_c" 1>&6
|
|
2949 echo "configure:2950: checking for preferred warning flags for CC" >&5
|
|
2950 echo "$ac_t""${cflags_warning}" 1>&6
|
|
2951
|
1889
|
2952 XE_CFLAGS="$xe_cflags_warning $CFLAGS"
|
1922
|
2953 CFLAGS="$cflags_warning $CFLAGS"
|
1111
|
2954
|
442
|
2955 if test "$GCC" = "yes"; then
|
|
2956 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
|
1998
|
2957 echo "configure:2958: checking for buggy gcc versions" >&5
|
442
|
2958 GCC_VERSION=`$CC --version`
|
|
2959 case `uname -s`:`uname -m`:$GCC_VERSION in
|
|
2960 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
|
|
2961 case "$CFLAGS" in
|
|
2962 *-O2*|*-O3*)
|
|
2963 case "$CFLAGS" in
|
|
2964 *-fno-schedule-insns*) ;;
|
|
2965 *)
|
|
2966 echo "$ac_t""yes" 1>&6
|
|
2967 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
|
|
2968 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
|
|
2969 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2970 ;;
|
|
2971 esac
|
|
2972 ;;
|
|
2973 esac
|
|
2974 ;;
|
|
2975 Linux:alpha:egcs-2.91.*)
|
|
2976 echo "$ac_t""yes" 1>&6
|
|
2977 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
|
|
2978 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
|
|
2979 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2980 ;;
|
|
2981 *:i*86*:2.7.2*)
|
448
|
2982 case "$CFLAGS" in
|
|
2983 *-O2*|*-O3*)
|
|
2984 case "$GCC_VERSION" in
|
|
2985 2.7.2)
|
442
|
2986 case "$CFLAGS" in
|
|
2987 *-fno-strength-reduce*) ;;
|
|
2988 *)
|
|
2989 echo "$ac_t""yes" 1>&6
|
|
2990 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
|
|
2991 echo "configure: warning: -fno-strength-reduce." 1>&2
|
|
2992 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2993 ;;
|
|
2994 esac
|
|
2995 ;;
|
|
2996 esac
|
448
|
2997 case "$CFLAGS" in
|
|
2998 *-fno-caller-saves*) ;;
|
|
2999 *)
|
|
3000 echo "$ac_t""yes" 1>&6
|
|
3001 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
|
|
3002 echo "configure: warning: -fno-caller-saves." 1>&2
|
|
3003 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
3004 ;;
|
|
3005 esac
|
442
|
3006 ;;
|
|
3007 esac
|
|
3008 ;;
|
|
3009 esac
|
|
3010 echo "$ac_t""no" 1>&6
|
|
3011 fi
|
|
3012
|
853
|
3013 if test "$pdump" != "yes"; then
|
|
3014 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
|
1998
|
3015 echo "configure:3016: checking for \"-z nocombreloc\" linker flag" >&5
|
853
|
3016 case "`ld --help 2>&1`" in
|
|
3017 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
|
|
3018 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
|
|
3019 *) echo "$ac_t""no" 1>&6 ;;
|
|
3020 esac
|
|
3021 fi
|
|
3022
|
|
3023
|
272
|
3024
|
|
3025 if test "$GCC" = "yes"; then
|
|
3026 set x $ld_switch_system; shift; ld_switch_system=""
|
|
3027 while test -n "$1"; do
|
|
3028 case $1 in
|
380
|
3029 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
|
|
3030 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
|
272
|
3031 -Xlinker* ) ;;
|
|
3032 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
|
|
3033 esac
|
|
3034 shift
|
|
3035 done
|
157
|
3036 fi
|
151
|
3037
|
163
|
3038 if test "$GCC" = "yes"; then
|
272
|
3039 set x $ld_switch_machine; shift; ld_switch_machine=""
|
|
3040 while test -n "$1"; do
|
|
3041 case $1 in
|
380
|
3042 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
|
|
3043 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
|
163
|
3044 -Xlinker* ) ;;
|
272
|
3045 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
|
163
|
3046 esac
|
272
|
3047 shift
|
163
|
3048 done
|
272
|
3049 fi
|
|
3050
|
|
3051 if test "$GCC" = "yes"; then
|
853
|
3052 set x $ld_switch_site; shift; ld_switch_site=""
|
|
3053 while test -n "$1"; do
|
|
3054 case $1 in
|
|
3055 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
|
|
3056 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
|
|
3057 -Xlinker* ) ;;
|
|
3058 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
|
|
3059 esac
|
|
3060 shift
|
|
3061 done
|
|
3062 fi
|
|
3063
|
|
3064 if test "$GCC" = "yes"; then
|
272
|
3065 set x $LDFLAGS; shift; LDFLAGS=""
|
|
3066 while test -n "$1"; do
|
|
3067 case $1 in
|
380
|
3068 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
|
|
3069 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
|
163
|
3070 -Xlinker* ) ;;
|
272
|
3071 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
|
163
|
3072 esac
|
272
|
3073 shift
|
163
|
3074 done
|
272
|
3075 fi
|
|
3076
|
|
3077 if test "$GCC" = "yes"; then
|
|
3078 set x $ld_call_shared; shift; ld_call_shared=""
|
|
3079 while test -n "$1"; do
|
|
3080 case $1 in
|
380
|
3081 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
|
|
3082 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
|
173
|
3083 -Xlinker* ) ;;
|
272
|
3084 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
|
173
|
3085 esac
|
272
|
3086 shift
|
173
|
3087 done
|
163
|
3088 fi
|
|
3089
|
|
3090 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
|
|
3091 echo " xemacs will be linked with \"$objects_machine\""
|
|
3092 fi
|
|
3093 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
|
|
3094 echo " xemacs will be linked with \"$objects_system\""
|
|
3095 fi
|
442
|
3096 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
|
151
|
3097 echo " xemacs will be linked with \"$unexec\""
|
|
3098 fi
|
442
|
3099 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
|
|
3100 echo " xemacs will be linked with \"dumper.o\""
|
|
3101 fi
|
151
|
3102
|
163
|
3103 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
|
1998
|
3104 echo "configure:3105: checking for dynodump" >&5
|
163
|
3105 if test "$unexec" != "unexsol2.o"; then
|
|
3106 echo "$ac_t""no" 1>&6
|
|
3107 else
|
|
3108 echo "$ac_t""yes" 1>&6
|
|
3109 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3110 Defining DYNODUMP
|
|
3111 EOF
|
|
3112 cat >> confdefs.h <<\EOF
|
|
3113 #define DYNODUMP 1
|
|
3114 EOF
|
|
3115 }
|
|
3116
|
|
3117 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
|
175
|
3118 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
|
163
|
3119 case "$machine" in
|
|
3120 sparc ) dynodump_arch=sparc ;;
|
|
3121 *86* ) dynodump_arch=i386 ;;
|
|
3122 powerpc ) dynodump_arch=ppc ;;
|
|
3123 esac
|
|
3124 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
|
|
3125 fi
|
|
3126
|
|
3127
|
272
|
3128
|
207
|
3129 if test "$unexec" = "unexaix.o"; then
|
219
|
3130 if test "$dynamic" = "no"; then
|
207
|
3131 start_flags="-Wl,-bnso,-bnodelcsect"
|
209
|
3132 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
|
272
|
3133 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
|
207
|
3134 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
|
|
3135 done
|
|
3136 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
|
|
3137 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
|
|
3138 done
|
294
|
3139
|
|
3140 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
|
2006
|
3141 echo "configure:3142: checking for terminateAndUnload in -lC" >&5
|
294
|
3142 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
|
|
3143
|
|
3144 xe_check_libs=" -lC "
|
|
3145 cat > conftest.$ac_ext <<EOF
|
2006
|
3146 #line 3147 "configure"
|
294
|
3147 #include "confdefs.h"
|
|
3148 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3149 /* We use char because int might match the return type of a gcc2
|
|
3150 builtin and then its argument prototype would still apply. */
|
|
3151 char terminateAndUnload();
|
|
3152
|
|
3153 int main() {
|
|
3154 terminateAndUnload()
|
|
3155 ; return 0; }
|
|
3156 EOF
|
2006
|
3157 if { (eval echo configure:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
294
|
3158 rm -rf conftest*
|
|
3159 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3160 else
|
|
3161 echo "configure: failed program was:" >&5
|
|
3162 cat conftest.$ac_ext >&5
|
|
3163 rm -rf conftest*
|
|
3164 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3165 fi
|
|
3166 rm -f conftest*
|
|
3167 xe_check_libs=""
|
|
3168
|
|
3169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
3170 echo "$ac_t""yes" 1>&6
|
|
3171 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
|
|
3172 else
|
|
3173 echo "$ac_t""no" 1>&6
|
|
3174 fi
|
|
3175
|
|
3176
|
272
|
3177 fi
|
207
|
3178 elif test -n "$ld_text_start_addr"; then
|
|
3179 start_flags="-T $ld_text_start_addr -e __start"
|
|
3180 fi
|
|
3181
|
|
3182
|
|
3183
|
163
|
3184
|
|
3185 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
|
|
3186 test -z "$linker" && linker='$(CC) -nostdlib'
|
175
|
3187 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
|
163
|
3188 fi
|
|
3189 test "$GCC" != "yes" && lib_gcc=
|
|
3190
|
|
3191
|
|
3192
|
151
|
3193
|
1889
|
3194 compiler_version=""
|
|
3195 gcc_compiler_specs=""
|
|
3196 libc_version=""
|
|
3197
|
|
3198 echo $ac_n "checking for compiler version information""... $ac_c" 1>&6
|
2006
|
3199 echo "configure:3200: checking for compiler version information" >&5
|
1889
|
3200
|
|
3201 if test "$GCC" = "yes"; then
|
|
3202 compiler_version=`$XEMACS_CC --version | head -1`
|
|
3203 gcc_compiler_specs=`$XEMACS_CC -v 2>&1 | sed 's/.* \([^ ]\)/\1/' | head -1`
|
|
3204 else case "$XEMACS_CC" in
|
2048
|
3205 ic*)
|
1889
|
3206 compiler_version=`icc -V 2>&1 | head -1`
|
|
3207 ;;
|
|
3208 *) case "$canonical" in
|
|
3209 *-*-aix* )
|
|
3210 realcc=`which $XEMACS_CC`
|
|
3211 if test -L $realcc ; then
|
|
3212 ccdir=`dirname $realcc`
|
|
3213 ccprog=`/bin/ls -l $realcc | sed 's/.* \([^ ]\)/\1/'`
|
|
3214 case $ccprog in
|
|
3215 */*) realcc=$ccprog;;
|
|
3216 *) realcc=$ccdir/$ccprog;;
|
|
3217 esac
|
|
3218 fi
|
|
3219 lpp=`lslpp -wqc $realcc | cut -f2 -d:`
|
|
3220 if test ! -z "$lpp" ; then
|
|
3221 lppstr=`lslpp -Lqc $lpp`
|
|
3222 lpplev=`echo "$lppstr" | cut -f3 -d:`
|
|
3223 lppdesc=`echo "$lppstr" | cut -f8 -d:`
|
|
3224 fi
|
|
3225 if test ! -z "$lpplev" ; then
|
|
3226 compiler_version="$lpp $lpplev - $lppdesc"
|
|
3227 fi
|
|
3228 ;;
|
|
3229
|
|
3230 *-*-solaris*)
|
|
3231 compiler_version=`$XEMACS_CC -V 2>&1 | head -1`
|
|
3232 ;;
|
|
3233
|
|
3234 alpha*-dec-osf*)
|
|
3235 compiler_version=`$XEMACS_CC -V | tr '\n' ' '`
|
|
3236 ;;
|
|
3237
|
|
3238 mips-sgi-irix*)
|
|
3239 compiler_version=`$XEMACS_CC -version`
|
|
3240 ;;
|
|
3241 esac
|
|
3242 esac
|
|
3243 fi
|
|
3244
|
|
3245 if test -z "$compiler_version"; then
|
|
3246 compiler_version="detection failed (please report this)"
|
|
3247 fi
|
|
3248
|
1955
|
3249 echo $ac_n "checking for standard C library version information""... $ac_c" 1>&6
|
2006
|
3250 echo "configure:3251: checking for standard C library version information" >&5
|
1889
|
3251
|
|
3252 case "$canonical" in
|
|
3253 *-*-linux*)
|
|
3254 if test -f /etc/redhat-release ; then
|
|
3255 libc_version=`rpm -q glibc`
|
|
3256 elif test -f /etc/debian_version ; then
|
|
3257 libc_version=`dpkg-query --showformat='${version}' --show libc6`
|
|
3258 libc_version="GNU libc $libc_version (Debian)"
|
|
3259 fi
|
|
3260 if test -z "$libc_version"; then
|
|
3261 libc_version=`ls /lib/libc-*.so | sed -e 's,/lib/libc-\(.*\)\.so,\1,'`
|
|
3262 fi
|
|
3263 ;;
|
|
3264
|
|
3265 *-*-aix*)
|
|
3266 libc_version="bos.rte.libc `lslpp -Lqc bos.rte.libc | cut -f3 -d:`"
|
|
3267 ;;
|
|
3268
|
|
3269 *-*-solaris*)
|
|
3270 libc=`pkginfo -l SUNWcsl | grep VERSION: | awk '{print $2}'`
|
|
3271 libc_version="SUNWcsl $libc"
|
|
3272
|
|
3273 ;;
|
|
3274
|
|
3275 mips-sgi-irix*)
|
|
3276 libc_version="IRIX libc `uname -sRm`"
|
|
3277 ;;
|
|
3278
|
|
3279 alpha*-dec-osf*)
|
|
3280 (cd /usr/.smdb.;
|
|
3281 libc_version=` grep -h libc.so *.inv | awk '$9 == "f" {print $12}' | tr '\n' ','`
|
|
3282 )
|
|
3283 ;;
|
|
3284 esac
|
|
3285
|
|
3286 if test -z "libc_version"; then
|
|
3287 libc_version="detection failed (please report this)"
|
|
3288 fi
|
|
3289
|
|
3290
|
209
|
3291
|
380
|
3292 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
151
|
3293 if test -n "$site_libraries"; then
|
|
3294 for arg in $site_libraries; do
|
380
|
3295 case "$arg" in
|
|
3296 -* ) ;;
|
|
3297 * ) test -d "$arg" || \
|
384
|
3298 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
|
380
|
3299 arg="-L${arg}" ;;
|
|
3300 esac
|
151
|
3301 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
|
|
3302 done
|
|
3303 fi
|
|
3304
|
380
|
3305 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
272
|
3306 if test -n "$site_includes"; then
|
151
|
3307 for arg in $site_includes; do
|
380
|
3308 case "$arg" in
|
|
3309 -* ) ;;
|
|
3310 * ) test -d "$arg" || \
|
384
|
3311 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
|
380
|
3312 arg="-I${arg}" ;;
|
|
3313 esac
|
151
|
3314 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
|
|
3315 done
|
|
3316 fi
|
|
3317
|
380
|
3318 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
3319 if test -n "$site_prefixes"; then
|
|
3320 for dir in $site_prefixes; do
|
398
|
3321 lib_dir="${dir}/lib"
|
416
|
3322 inc_dir="${dir}/include"
|
380
|
3323 if test ! -d "$dir"; then
|
384
|
3324 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
|
380
|
3325 elif test ! -d "$lib_dir"; then
|
384
|
3326 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
|
380
|
3327 else
|
414
|
3328 if test -d "$inc_dir"; then
|
|
3329 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
|
|
3330 fi
|
380
|
3331 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
|
|
3332 fi
|
|
3333 done
|
|
3334 fi
|
|
3335
|
157
|
3336
|
151
|
3337 for dir in "/usr/ccs/lib"; do
|
440
|
3338 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
|
3339 done
|
|
3340
|
380
|
3341 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
272
|
3342 if test -n "$site_runtime_libraries"; then
|
165
|
3343 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
|
151
|
3344 export LD_RUN_PATH
|
|
3345 fi
|
|
3346
|
|
3347
|
440
|
3348
|
|
3349
|
|
3350
|
|
3351 if test -n "$add_runtime_path"; then :;
|
|
3352 elif test "$dynamic" = "no"; then add_runtime_path=no
|
151
|
3353 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
|
163
|
3354 else case "$opsys" in
|
373
|
3355 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
|
151
|
3356 * ) add_runtime_path=no ;;
|
|
3357 esac
|
|
3358 fi
|
|
3359
|
|
3360 if test "$add_runtime_path" = "yes"; then
|
|
3361 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
|
2006
|
3362 echo "configure:3363: checking "for runtime libraries flag"" >&5
|
373
|
3363 case "$opsys" in
|
377
|
3364 sol2 ) dash_r="-R" ;;
|
392
|
3365 decosf* | linux* | irix*) dash_r="-rpath " ;;
|
373
|
3366 *)
|
|
3367 dash_r=""
|
|
3368 for try_dash_r in "-R" "-R " "-rpath "; do
|
|
3369 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
|
|
3370
|
272
|
3371 if test "$GCC" = "yes"; then
|
|
3372 set x $xe_check_libs; shift; xe_check_libs=""
|
|
3373 while test -n "$1"; do
|
|
3374 case $1 in
|
380
|
3375 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
|
|
3376 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
|
272
|
3377 -Xlinker* ) ;;
|
|
3378 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
|
|
3379 esac
|
|
3380 shift
|
|
3381 done
|
|
3382 fi
|
373
|
3383 cat > conftest.$ac_ext <<EOF
|
2006
|
3384 #line 3385 "configure"
|
|
3385 #include "confdefs.h"
|
|
3386
|
|
3387 int main() {
|
|
3388
|
|
3389 ; return 0; }
|
|
3390 EOF
|
|
3391 if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
3392 rm -rf conftest*
|
|
3393 dash_r="$try_dash_r"
|
|
3394 else
|
|
3395 echo "configure: failed program was:" >&5
|
|
3396 cat conftest.$ac_ext >&5
|
|
3397 fi
|
|
3398 rm -f conftest*
|
373
|
3399 xe_check_libs=""
|
|
3400 test -n "$dash_r" && break
|
|
3401 done ;;
|
|
3402 esac
|
151
|
3403 if test -n "$dash_r";
|
|
3404 then echo "$ac_t"""\"${dash_r}\""" 1>&6
|
|
3405 else echo "$ac_t""NONE" 1>&6
|
|
3406 fi
|
|
3407 fi
|
|
3408
|
163
|
3409 xe_add_unique_runpath_dir='
|
|
3410 xe_add_p=yes
|
|
3411 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
|
|
3412 done
|
|
3413 if test "$xe_add_p" = "yes"; then
|
|
3414 test -n "$runpath" && runpath="${runpath}:"
|
|
3415 runpath="${runpath}${xe_runpath_dir}"
|
|
3416 runpath_dirs="$runpath_dirs $xe_runpath_dir"
|
|
3417 fi'
|
|
3418
|
|
3419
|
151
|
3420
|
155
|
3421
|
151
|
3422 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
3423 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
3424 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
3425
|
163
|
3426 runpath="" runpath_dirs=""
|
155
|
3427 if test -n "$LD_RUN_PATH"; then
|
151
|
3428 runpath="$LD_RUN_PATH"
|
155
|
3429 elif test "$GCC" = "yes"; then
|
163
|
3430 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
3431 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
3432 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
3433 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
3434 case "$arg" in P,* | -L* | -R* )
|
159
|
3435 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
3436 {
|
155
|
3437 xe_runpath_dir="$dir"
|
163
|
3438 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
3439 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
3440 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
3441 eval "$xe_add_unique_runpath_dir"
|
|
3442 }
|
155
|
3443 done ;;
|
|
3444 esac
|
|
3445 done
|
163
|
3446 ld_switch_run="$ld_switch_run_save"
|
155
|
3447 rm -f conftest*
|
151
|
3448 else
|
155
|
3449 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
3450 case "$arg" in -L*) {
|
159
|
3451 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
3452 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
3453 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
3454 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
3455 eval "$xe_add_unique_runpath_dir"
|
|
3456 };; esac
|
151
|
3457 done
|
163
|
3458 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
3459 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
3460 eval "$xe_add_unique_runpath_dir";
|
|
3461 fi
|
155
|
3462 fi
|
151
|
3463 if test -n "$runpath"; then
|
|
3464 ld_switch_run="${dash_r}${runpath}"
|
272
|
3465
|
|
3466 if test "$GCC" = "yes"; then
|
|
3467 set x $ld_switch_run; shift; ld_switch_run=""
|
|
3468 while test -n "$1"; do
|
|
3469 case $1 in
|
380
|
3470 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
3471 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
3472 -Xlinker* ) ;;
|
|
3473 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
3474 esac
|
|
3475 shift
|
|
3476 done
|
|
3477 fi
|
151
|
3478 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
3479 fi
|
|
3480 fi
|
|
3481
|
|
3482
|
149
|
3483
|
|
3484 GNU_MALLOC=yes
|
261
|
3485 if test "$with_dlmalloc" != "no"; then
|
|
3486 doug_lea_malloc=yes
|
|
3487 else
|
|
3488 doug_lea_malloc=no
|
|
3489 fi
|
259
|
3490 after_morecore_hook_exists=yes
|
255
|
3491 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
|
2006
|
3492 echo "configure:3493: checking for malloc_set_state" >&5
|
|
3493
|
|
3494 cat > conftest.$ac_ext <<EOF
|
|
3495 #line 3496 "configure"
|
255
|
3496 #include "confdefs.h"
|
|
3497 /* System header to define __stub macros and hopefully few prototypes,
|
|
3498 which can conflict with char malloc_set_state(); below. */
|
|
3499 #include <assert.h>
|
|
3500 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3501 /* We use char because int might match the return type of a gcc2
|
|
3502 builtin and then its argument prototype would still apply. */
|
|
3503 char malloc_set_state();
|
|
3504
|
|
3505 int main() {
|
|
3506
|
|
3507 /* The GNU C library defines this for functions which it implements
|
|
3508 to always fail with ENOSYS. Some functions are actually named
|
|
3509 something starting with __ and the normal name is an alias. */
|
|
3510 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
|
|
3511 choke me
|
|
3512 #else
|
|
3513 malloc_set_state();
|
|
3514 #endif
|
|
3515
|
|
3516 ; return 0; }
|
|
3517 EOF
|
2006
|
3518 if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
255
|
3519 rm -rf conftest*
|
|
3520 eval "ac_cv_func_malloc_set_state=yes"
|
|
3521 else
|
|
3522 echo "configure: failed program was:" >&5
|
|
3523 cat conftest.$ac_ext >&5
|
|
3524 rm -rf conftest*
|
|
3525 eval "ac_cv_func_malloc_set_state=no"
|
|
3526 fi
|
|
3527 rm -f conftest*
|
|
3528
|
|
3529 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
|
|
3530 echo "$ac_t""yes" 1>&6
|
|
3531 :
|
|
3532 else
|
|
3533 echo "$ac_t""no" 1>&6
|
|
3534 doug_lea_malloc=no
|
|
3535 fi
|
|
3536
|
|
3537 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
|
2006
|
3538 echo "configure:3539: checking whether __after_morecore_hook exists" >&5
|
|
3539 cat > conftest.$ac_ext <<EOF
|
|
3540 #line 3541 "configure"
|
255
|
3541 #include "confdefs.h"
|
|
3542 extern void (* __after_morecore_hook)();
|
|
3543 int main() {
|
|
3544 __after_morecore_hook = 0
|
|
3545 ; return 0; }
|
|
3546 EOF
|
2006
|
3547 if { (eval echo configure:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
3548 rm -rf conftest*
|
|
3549 echo "$ac_t""yes" 1>&6
|
|
3550 else
|
|
3551 echo "configure: failed program was:" >&5
|
|
3552 cat conftest.$ac_ext >&5
|
|
3553 rm -rf conftest*
|
|
3554 echo "$ac_t""no" 1>&6
|
|
3555 after_morecore_hook_exists=no
|
255
|
3556 fi
|
|
3557 rm -f conftest*
|
149
|
3558 if test "$system_malloc" = "yes" ; then
|
|
3559 GNU_MALLOC=no
|
|
3560 GNU_MALLOC_reason="
|
442
|
3561 - The GNU allocators don't work with this system configuration."
|
181
|
3562 elif test "$with_system_malloc" = "yes" ; then
|
149
|
3563 GNU_MALLOC=no
|
|
3564 GNU_MALLOC_reason="
|
442
|
3565 - User chose not to use GNU allocators."
|
181
|
3566 elif test "$with_debug_malloc" = "yes" ; then
|
177
|
3567 GNU_MALLOC=no
|
|
3568 GNU_MALLOC_reason="
|
442
|
3569 - User chose to use Debugging Malloc."
|
|
3570 fi
|
|
3571
|
|
3572 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
|
|
3573 GNU_MALLOC_reason="
|
|
3574 - Using Doug Lea's new malloc from the GNU C Library."
|
255
|
3575 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3576 Defining DOUG_LEA_MALLOC
|
|
3577 EOF
|
|
3578 cat >> confdefs.h <<\EOF
|
|
3579 #define DOUG_LEA_MALLOC 1
|
|
3580 EOF
|
|
3581 }
|
|
3582
|
259
|
3583 if test "$after_morecore_hook_exists" = "no" ; then
|
|
3584 GNU_MALLOC_reason="
|
442
|
3585 - Using Doug Lea's new malloc from the Linux C Library."
|
259
|
3586 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3587 Defining _NO_MALLOC_WARNING_
|
|
3588 EOF
|
|
3589 cat >> confdefs.h <<\EOF
|
|
3590 #define _NO_MALLOC_WARNING_ 1
|
|
3591 EOF
|
|
3592 }
|
|
3593
|
|
3594 fi
|
255
|
3595 fi
|
|
3596
|
149
|
3597
|
267
|
3598
|
|
3599
|
149
|
3600 # Extract the first word of "ranlib", so it can be a program name with args.
|
|
3601 set dummy ranlib; ac_word=$2
|
|
3602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2006
|
3603 echo "configure:3604: checking for $ac_word" >&5
|
149
|
3604
|
|
3605 if test -n "$RANLIB"; then
|
|
3606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
3607 else
|
420
|
3608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
3609 ac_dummy="$PATH"
|
|
3610 for ac_dir in $ac_dummy; do
|
0
|
3611 test -z "$ac_dir" && ac_dir=.
|
|
3612 if test -f $ac_dir/$ac_word; then
|
149
|
3613 ac_cv_prog_RANLIB="ranlib"
|
0
|
3614 break
|
|
3615 fi
|
|
3616 done
|
|
3617 IFS="$ac_save_ifs"
|
149
|
3618 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
3619 fi
|
|
3620 RANLIB="$ac_cv_prog_RANLIB"
|
|
3621 if test -n "$RANLIB"; then
|
|
3622 echo "$ac_t""$RANLIB" 1>&6
|
|
3623 else
|
|
3624 echo "$ac_t""no" 1>&6
|
|
3625 fi
|
|
3626
|
|
3627 ac_aux_dir=
|
|
3628 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|
3629 if test -f $ac_dir/install-sh; then
|
|
3630 ac_aux_dir=$ac_dir
|
|
3631 ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
3632 break
|
|
3633 elif test -f $ac_dir/install.sh; then
|
|
3634 ac_aux_dir=$ac_dir
|
|
3635 ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
3636 break
|
|
3637 fi
|
|
3638 done
|
|
3639 if test -z "$ac_aux_dir"; then
|
|
3640 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|
3641 fi
|
|
3642 ac_config_guess=$ac_aux_dir/config.guess
|
|
3643 ac_config_sub=$ac_aux_dir/config.sub
|
|
3644 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
3645
|
|
3646 # Find a good install program. We prefer a C program (faster),
|
|
3647 # so one script is as good as another. But avoid the broken or
|
|
3648 # incompatible versions:
|
|
3649 # SysV /etc/install, /usr/sbin/install
|
|
3650 # SunOS /usr/etc/install
|
|
3651 # IRIX /sbin/install
|
|
3652 # AIX /bin/install
|
420
|
3653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
149
|
3654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
3655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
3656 # ./install, which can be erroneously created by make from ./install.sh.
|
|
3657 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
2006
|
3658 echo "configure:3659: checking for a BSD compatible install" >&5
|
149
|
3659 if test -z "$INSTALL"; then
|
|
3660
|
420
|
3661 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
0
|
3662 for ac_dir in $PATH; do
|
149
|
3663 # Account for people who put trailing slashes in PATH elements.
|
|
3664 case "$ac_dir/" in
|
|
3665 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
0
|
3666 *)
|
|
3667 # OSF1 and SCO ODT 3.0 have their own names for install.
|
420
|
3668 # Don't use installbsd from OSF since it installs stuff as root
|
|
3669 # by default.
|
|
3670 for ac_prog in ginstall scoinst install; do
|
0
|
3671 if test -f $ac_dir/$ac_prog; then
|
|
3672 if test $ac_prog = install &&
|
|
3673 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
3674 # AIX install. It has an incompatible calling convention.
|
|
3675 :
|
|
3676 else
|
149
|
3677 ac_cv_path_install="$ac_dir/$ac_prog -c"
|
0
|
3678 break 2
|
|
3679 fi
|
|
3680 fi
|
|
3681 done
|
|
3682 ;;
|
|
3683 esac
|
|
3684 done
|
149
|
3685 IFS="$ac_save_IFS"
|
|
3686
|
|
3687 if test "${ac_cv_path_install+set}" = set; then
|
|
3688 INSTALL="$ac_cv_path_install"
|
|
3689 else
|
|
3690 # As a last resort, use the slow shell script. We don't cache a
|
|
3691 # path for INSTALL within a source directory, because that will
|
|
3692 # break other packages using the cache if that directory is
|
|
3693 # removed, or if the path is relative.
|
|
3694 INSTALL="$ac_install_sh"
|
|
3695 fi
|
|
3696 fi
|
|
3697 echo "$ac_t""$INSTALL" 1>&6
|
|
3698
|
|
3699 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
0
|
3700 # It thinks the first close brace ends the variable substitution.
|
|
3701 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
3702
|
420
|
3703 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|
3704
|
0
|
3705 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
3706
|
|
3707 for ac_prog in 'bison -y' byacc
|
|
3708 do
|
149
|
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
3710 set dummy $ac_prog; ac_word=$2
|
|
3711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2006
|
3712 echo "configure:3713: checking for $ac_word" >&5
|
149
|
3713
|
|
3714 if test -n "$YACC"; then
|
|
3715 ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
|
3716 else
|
420
|
3717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
3718 ac_dummy="$PATH"
|
|
3719 for ac_dir in $ac_dummy; do
|
0
|
3720 test -z "$ac_dir" && ac_dir=.
|
|
3721 if test -f $ac_dir/$ac_word; then
|
149
|
3722 ac_cv_prog_YACC="$ac_prog"
|
0
|
3723 break
|
|
3724 fi
|
|
3725 done
|
|
3726 IFS="$ac_save_ifs"
|
|
3727 fi
|
149
|
3728 YACC="$ac_cv_prog_YACC"
|
|
3729 if test -n "$YACC"; then
|
|
3730 echo "$ac_t""$YACC" 1>&6
|
|
3731 else
|
|
3732 echo "$ac_t""no" 1>&6
|
|
3733 fi
|
0
|
3734
|
|
3735 test -n "$YACC" && break
|
|
3736 done
|
|
3737 test -n "$YACC" || YACC="yacc"
|
|
3738
|
|
3739
|
911
|
3740 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h wchar.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/times.h sys/un.h ulimit.h unistd.h
|
120
|
3741 do
|
149
|
3742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
3743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2006
|
3744 echo "configure:3745: checking for $ac_hdr" >&5
|
|
3745
|
|
3746 cat > conftest.$ac_ext <<EOF
|
|
3747 #line 3748 "configure"
|
149
|
3748 #include "confdefs.h"
|
|
3749 #include <$ac_hdr>
|
|
3750 EOF
|
|
3751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2006
|
3752 { (eval echo configure:3753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
3753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
3754 if test -z "$ac_err"; then
|
|
3755 rm -rf conftest*
|
149
|
3756 eval "ac_cv_header_$ac_safe=yes"
|
|
3757 else
|
|
3758 echo "$ac_err" >&5
|
|
3759 echo "configure: failed program was:" >&5
|
|
3760 cat conftest.$ac_ext >&5
|
|
3761 rm -rf conftest*
|
|
3762 eval "ac_cv_header_$ac_safe=no"
|
|
3763 fi
|
|
3764 rm -f conftest*
|
|
3765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
3766 echo "$ac_t""yes" 1>&6
|
|
3767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
3768 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3769 Defining $ac_tr_hdr
|
|
3770 EOF
|
|
3771 cat >> confdefs.h <<EOF
|
|
3772 #define $ac_tr_hdr 1
|
|
3773 EOF
|
|
3774 }
|
|
3775
|
|
3776 else
|
|
3777 echo "$ac_t""no" 1>&6
|
|
3778 fi
|
0
|
3779 done
|
|
3780
|
155
|
3781 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
2006
|
3782 echo "configure:3783: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
3783
|
|
3784 cat > conftest.$ac_ext <<EOF
|
|
3785 #line 3786 "configure"
|
155
|
3786 #include "confdefs.h"
|
|
3787 #include <sys/types.h>
|
|
3788 #include <sys/wait.h>
|
|
3789 #ifndef WEXITSTATUS
|
|
3790 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
3791 #endif
|
|
3792 #ifndef WIFEXITED
|
|
3793 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
3794 #endif
|
|
3795 int main() {
|
|
3796 int s;
|
|
3797 wait (&s);
|
|
3798 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
3799 ; return 0; }
|
|
3800 EOF
|
2006
|
3801 if { (eval echo configure:3802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
155
|
3802 rm -rf conftest*
|
|
3803 ac_cv_header_sys_wait_h=yes
|
|
3804 else
|
|
3805 echo "configure: failed program was:" >&5
|
|
3806 cat conftest.$ac_ext >&5
|
|
3807 rm -rf conftest*
|
|
3808 ac_cv_header_sys_wait_h=no
|
|
3809 fi
|
|
3810 rm -f conftest*
|
|
3811
|
|
3812 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
3813 if test $ac_cv_header_sys_wait_h = yes; then
|
|
3814 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3815 Defining HAVE_SYS_WAIT_H
|
|
3816 EOF
|
|
3817 cat >> confdefs.h <<\EOF
|
|
3818 #define HAVE_SYS_WAIT_H 1
|
|
3819 EOF
|
|
3820 }
|
|
3821
|
|
3822 fi
|
|
3823
|
149
|
3824 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
2006
|
3825 echo "configure:3826: checking for ANSI C header files" >&5
|
|
3826
|
|
3827 cat > conftest.$ac_ext <<EOF
|
|
3828 #line 3829 "configure"
|
0
|
3829 #include "confdefs.h"
|
|
3830 #include <stdlib.h>
|
|
3831 #include <stdarg.h>
|
|
3832 #include <string.h>
|
|
3833 #include <float.h>
|
|
3834 EOF
|
149
|
3835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2006
|
3836 { (eval echo configure:3837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
3837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
3838 if test -z "$ac_err"; then
|
|
3839 rm -rf conftest*
|
149
|
3840 ac_cv_header_stdc=yes
|
|
3841 else
|
|
3842 echo "$ac_err" >&5
|
|
3843 echo "configure: failed program was:" >&5
|
|
3844 cat conftest.$ac_ext >&5
|
|
3845 rm -rf conftest*
|
|
3846 ac_cv_header_stdc=no
|
|
3847 fi
|
|
3848 rm -f conftest*
|
|
3849
|
|
3850 if test $ac_cv_header_stdc = yes; then
|
0
|
3851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
149
|
3852 cat > conftest.$ac_ext <<EOF
|
2006
|
3853 #line 3854 "configure"
|
149
|
3854 #include "confdefs.h"
|
|
3855 #include <string.h>
|
|
3856 EOF
|
|
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3858 egrep "memchr" >/dev/null 2>&1; then
|
|
3859 :
|
|
3860 else
|
|
3861 rm -rf conftest*
|
|
3862 ac_cv_header_stdc=no
|
|
3863 fi
|
|
3864 rm -f conftest*
|
|
3865
|
|
3866 fi
|
|
3867
|
|
3868 if test $ac_cv_header_stdc = yes; then
|
|
3869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
3870 cat > conftest.$ac_ext <<EOF
|
2006
|
3871 #line 3872 "configure"
|
149
|
3872 #include "confdefs.h"
|
|
3873 #include <stdlib.h>
|
|
3874 EOF
|
|
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3876 egrep "free" >/dev/null 2>&1; then
|
|
3877 :
|
|
3878 else
|
|
3879 rm -rf conftest*
|
|
3880 ac_cv_header_stdc=no
|
|
3881 fi
|
|
3882 rm -f conftest*
|
|
3883
|
|
3884 fi
|
|
3885
|
|
3886 if test $ac_cv_header_stdc = yes; then
|
|
3887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
3888 cat > conftest.$ac_ext <<EOF
|
2006
|
3889 #line 3890 "configure"
|
0
|
3890 #include "confdefs.h"
|
|
3891 #include <ctype.h>
|
|
3892 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
3893 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
149
|
3894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
0
|
3895 int main () { int i; for (i = 0; i < 256; i++)
|
|
3896 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
3897 exit (0); }
|
|
3898
|
|
3899 EOF
|
2006
|
3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
3901 then
|
|
3902 :
|
|
3903 else
|
373
|
3904 conftest_rc="$?"
|
149
|
3905 echo "configure: failed program was:" >&5
|
|
3906 cat conftest.$ac_ext >&5
|
|
3907 rm -fr conftest*
|
|
3908 ac_cv_header_stdc=no
|
0
|
3909 fi
|
|
3910 rm -fr conftest*
|
149
|
3911 fi
|
|
3912
|
|
3913 echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
3914 if test $ac_cv_header_stdc = yes; then
|
|
3915 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3916 Defining STDC_HEADERS
|
|
3917 EOF
|
|
3918 cat >> confdefs.h <<\EOF
|
|
3919 #define STDC_HEADERS 1
|
|
3920 EOF
|
|
3921 }
|
|
3922
|
|
3923 fi
|
|
3924
|
|
3925 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
2006
|
3926 echo "configure:3927: checking whether time.h and sys/time.h may both be included" >&5
|
|
3927
|
|
3928 cat > conftest.$ac_ext <<EOF
|
|
3929 #line 3930 "configure"
|
0
|
3930 #include "confdefs.h"
|
|
3931 #include <sys/types.h>
|
|
3932 #include <sys/time.h>
|
|
3933 #include <time.h>
|
149
|
3934 int main() {
|
|
3935 struct tm *tp;
|
|
3936 ; return 0; }
|
|
3937 EOF
|
2006
|
3938 if { (eval echo configure:3939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3939 rm -rf conftest*
|
|
3940 ac_cv_header_time=yes
|
|
3941 else
|
|
3942 echo "configure: failed program was:" >&5
|
|
3943 cat conftest.$ac_ext >&5
|
|
3944 rm -rf conftest*
|
|
3945 ac_cv_header_time=no
|
|
3946 fi
|
|
3947 rm -f conftest*
|
|
3948
|
|
3949 echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
3950 if test $ac_cv_header_time = yes; then
|
|
3951 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3952 Defining TIME_WITH_SYS_TIME
|
|
3953 EOF
|
|
3954 cat >> confdefs.h <<\EOF
|
|
3955 #define TIME_WITH_SYS_TIME 1
|
|
3956 EOF
|
|
3957 }
|
|
3958
|
|
3959 fi
|
|
3960
|
|
3961 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
|
2006
|
3962 echo "configure:3963: checking for sys_siglist declaration in signal.h or unistd.h" >&5
|
|
3963
|
|
3964 cat > conftest.$ac_ext <<EOF
|
|
3965 #line 3966 "configure"
|
149
|
3966 #include "confdefs.h"
|
|
3967 #include <sys/types.h>
|
0
|
3968 #include <signal.h>
|
149
|
3969 /* NetBSD declares sys_siglist in unistd.h. */
|
0
|
3970 #ifdef HAVE_UNISTD_H
|
|
3971 #include <unistd.h>
|
|
3972 #endif
|
149
|
3973 int main() {
|
|
3974 char *msg = *(sys_siglist + 1);
|
|
3975 ; return 0; }
|
|
3976 EOF
|
2006
|
3977 if { (eval echo configure:3978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3978 rm -rf conftest*
|
|
3979 ac_cv_decl_sys_siglist=yes
|
|
3980 else
|
|
3981 echo "configure: failed program was:" >&5
|
|
3982 cat conftest.$ac_ext >&5
|
|
3983 rm -rf conftest*
|
|
3984 ac_cv_decl_sys_siglist=no
|
|
3985 fi
|
|
3986 rm -f conftest*
|
|
3987
|
|
3988 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
|
|
3989 if test $ac_cv_decl_sys_siglist = yes; then
|
|
3990 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3991 Defining SYS_SIGLIST_DECLARED
|
|
3992 EOF
|
|
3993 cat >> confdefs.h <<\EOF
|
|
3994 #define SYS_SIGLIST_DECLARED 1
|
|
3995 EOF
|
|
3996 }
|
|
3997
|
|
3998 fi
|
|
3999
|
|
4000
|
460
|
4001
|
|
4002 echo $ac_n "checking for utime""... $ac_c" 1>&6
|
2006
|
4003 echo "configure:4004: checking for utime" >&5
|
|
4004 cat > conftest.$ac_ext <<EOF
|
|
4005 #line 4006 "configure"
|
460
|
4006 #include "confdefs.h"
|
|
4007 #include <sys/types.h>
|
0
|
4008 #include <utime.h>
|
460
|
4009 int main() {
|
|
4010 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
|
|
4011 ; return 0; }
|
|
4012 EOF
|
2006
|
4013 if { (eval echo configure:4014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4014 rm -rf conftest*
|
|
4015 echo "$ac_t""yes" 1>&6
|
|
4016 { test "$extra_verbose" = "yes" && cat << \EOF
|
460
|
4017 Defining HAVE_UTIME
|
|
4018 EOF
|
|
4019 cat >> confdefs.h <<\EOF
|
|
4020 #define HAVE_UTIME 1
|
|
4021 EOF
|
|
4022 }
|
|
4023
|
|
4024 else
|
|
4025 echo "configure: failed program was:" >&5
|
|
4026 cat conftest.$ac_ext >&5
|
|
4027 rm -rf conftest*
|
|
4028 echo "$ac_t""no" 1>&6
|
|
4029 for ac_func in utimes
|
|
4030 do
|
|
4031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2006
|
4032 echo "configure:4033: checking for $ac_func" >&5
|
|
4033
|
|
4034 cat > conftest.$ac_ext <<EOF
|
|
4035 #line 4036 "configure"
|
460
|
4036 #include "confdefs.h"
|
|
4037 /* System header to define __stub macros and hopefully few prototypes,
|
|
4038 which can conflict with char $ac_func(); below. */
|
|
4039 #include <assert.h>
|
|
4040 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4041 /* We use char because int might match the return type of a gcc2
|
|
4042 builtin and then its argument prototype would still apply. */
|
|
4043 char $ac_func();
|
|
4044
|
|
4045 int main() {
|
|
4046
|
|
4047 /* The GNU C library defines this for functions which it implements
|
|
4048 to always fail with ENOSYS. Some functions are actually named
|
|
4049 something starting with __ and the normal name is an alias. */
|
|
4050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
4051 choke me
|
|
4052 #else
|
|
4053 $ac_func();
|
|
4054 #endif
|
|
4055
|
|
4056 ; return 0; }
|
|
4057 EOF
|
2006
|
4058 if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
460
|
4059 rm -rf conftest*
|
|
4060 eval "ac_cv_func_$ac_func=yes"
|
|
4061 else
|
|
4062 echo "configure: failed program was:" >&5
|
|
4063 cat conftest.$ac_ext >&5
|
|
4064 rm -rf conftest*
|
|
4065 eval "ac_cv_func_$ac_func=no"
|
|
4066 fi
|
|
4067 rm -f conftest*
|
|
4068
|
|
4069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
4070 echo "$ac_t""yes" 1>&6
|
|
4071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
4072 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4073 Defining $ac_tr_func
|
|
4074 EOF
|
|
4075 cat >> confdefs.h <<EOF
|
|
4076 #define $ac_tr_func 1
|
|
4077 EOF
|
|
4078 }
|
|
4079
|
|
4080 else
|
|
4081 echo "$ac_t""no" 1>&6
|
|
4082 fi
|
|
4083 done
|
|
4084
|
|
4085 fi
|
|
4086 rm -f conftest*
|
|
4087
|
149
|
4088
|
|
4089 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
2006
|
4090 echo "configure:4091: checking return type of signal handlers" >&5
|
|
4091
|
|
4092 cat > conftest.$ac_ext <<EOF
|
|
4093 #line 4094 "configure"
|
0
|
4094 #include "confdefs.h"
|
|
4095 #include <sys/types.h>
|
|
4096 #include <signal.h>
|
|
4097 #ifdef signal
|
|
4098 #undef signal
|
|
4099 #endif
|
149
|
4100 #ifdef __cplusplus
|
|
4101 extern "C" void (*signal (int, void (*)(int)))(int);
|
|
4102 #else
|
|
4103 void (*signal ()) ();
|
|
4104 #endif
|
|
4105
|
|
4106 int main() {
|
|
4107 int i;
|
|
4108 ; return 0; }
|
|
4109 EOF
|
2006
|
4110 if { (eval echo configure:4111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4111 rm -rf conftest*
|
|
4112 ac_cv_type_signal=void
|
|
4113 else
|
|
4114 echo "configure: failed program was:" >&5
|
|
4115 cat conftest.$ac_ext >&5
|
|
4116 rm -rf conftest*
|
|
4117 ac_cv_type_signal=int
|
|
4118 fi
|
|
4119 rm -f conftest*
|
|
4120
|
|
4121 echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
4122 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4123 Defining RETSIGTYPE = $ac_cv_type_signal
|
|
4124 EOF
|
|
4125 cat >> confdefs.h <<EOF
|
|
4126 #define RETSIGTYPE $ac_cv_type_signal
|
|
4127 EOF
|
|
4128 }
|
|
4129
|
|
4130
|
163
|
4131 echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
2006
|
4132 echo "configure:4133: checking for size_t" >&5
|
|
4133
|
|
4134 cat > conftest.$ac_ext <<EOF
|
|
4135 #line 4136 "configure"
|
163
|
4136 #include "confdefs.h"
|
|
4137 #include <sys/types.h>
|
|
4138 #if STDC_HEADERS
|
|
4139 #include <stdlib.h>
|
|
4140 #include <stddef.h>
|
|
4141 #endif
|
|
4142 EOF
|
|
4143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4144 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4145 rm -rf conftest*
|
|
4146 ac_cv_type_size_t=yes
|
|
4147 else
|
|
4148 rm -rf conftest*
|
|
4149 ac_cv_type_size_t=no
|
|
4150 fi
|
|
4151 rm -f conftest*
|
|
4152
|
|
4153 echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
4154 if test $ac_cv_type_size_t = no; then
|
|
4155 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4156 Defining size_t = unsigned
|
|
4157 EOF
|
|
4158 cat >> confdefs.h <<\EOF
|
|
4159 #define size_t unsigned
|
|
4160 EOF
|
|
4161 }
|
|
4162
|
|
4163 fi
|
|
4164
|
|
4165 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
2006
|
4166 echo "configure:4167: checking for pid_t" >&5
|
|
4167
|
|
4168 cat > conftest.$ac_ext <<EOF
|
|
4169 #line 4170 "configure"
|
163
|
4170 #include "confdefs.h"
|
|
4171 #include <sys/types.h>
|
|
4172 #if STDC_HEADERS
|
|
4173 #include <stdlib.h>
|
|
4174 #include <stddef.h>
|
|
4175 #endif
|
|
4176 EOF
|
|
4177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4178 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4179 rm -rf conftest*
|
|
4180 ac_cv_type_pid_t=yes
|
|
4181 else
|
|
4182 rm -rf conftest*
|
|
4183 ac_cv_type_pid_t=no
|
|
4184 fi
|
|
4185 rm -f conftest*
|
|
4186
|
|
4187 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
4188 if test $ac_cv_type_pid_t = no; then
|
|
4189 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4190 Defining pid_t = int
|
|
4191 EOF
|
|
4192 cat >> confdefs.h <<\EOF
|
|
4193 #define pid_t int
|
|
4194 EOF
|
|
4195 }
|
|
4196
|
|
4197 fi
|
|
4198
|
|
4199 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
|
2006
|
4200 echo "configure:4201: checking for uid_t in sys/types.h" >&5
|
|
4201
|
|
4202 cat > conftest.$ac_ext <<EOF
|
|
4203 #line 4204 "configure"
|
163
|
4204 #include "confdefs.h"
|
|
4205 #include <sys/types.h>
|
|
4206 EOF
|
|
4207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
4208 egrep "uid_t" >/dev/null 2>&1; then
|
|
4209 rm -rf conftest*
|
|
4210 ac_cv_type_uid_t=yes
|
|
4211 else
|
|
4212 rm -rf conftest*
|
|
4213 ac_cv_type_uid_t=no
|
|
4214 fi
|
|
4215 rm -f conftest*
|
|
4216
|
|
4217
|
|
4218 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
|
|
4219 if test $ac_cv_type_uid_t = no; then
|
|
4220 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4221 Defining uid_t = int
|
|
4222 EOF
|
|
4223 cat >> confdefs.h <<\EOF
|
|
4224 #define uid_t int
|
|
4225 EOF
|
|
4226 }
|
|
4227
|
|
4228 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4229 Defining gid_t = int
|
|
4230 EOF
|
|
4231 cat >> confdefs.h <<\EOF
|
|
4232 #define gid_t int
|
|
4233 EOF
|
|
4234 }
|
|
4235
|
|
4236 fi
|
|
4237
|
|
4238 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
2006
|
4239 echo "configure:4240: checking for mode_t" >&5
|
|
4240
|
|
4241 cat > conftest.$ac_ext <<EOF
|
|
4242 #line 4243 "configure"
|
163
|
4243 #include "confdefs.h"
|
|
4244 #include <sys/types.h>
|
|
4245 #if STDC_HEADERS
|
|
4246 #include <stdlib.h>
|
|
4247 #include <stddef.h>
|
|
4248 #endif
|
|
4249 EOF
|
|
4250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4251 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4252 rm -rf conftest*
|
|
4253 ac_cv_type_mode_t=yes
|
|
4254 else
|
|
4255 rm -rf conftest*
|
|
4256 ac_cv_type_mode_t=no
|
|
4257 fi
|
|
4258 rm -f conftest*
|
|
4259
|
|
4260 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|
4261 if test $ac_cv_type_mode_t = no; then
|
|
4262 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4263 Defining mode_t = int
|
|
4264 EOF
|
|
4265 cat >> confdefs.h <<\EOF
|
|
4266 #define mode_t int
|
|
4267 EOF
|
|
4268 }
|
|
4269
|
|
4270 fi
|
|
4271
|
|
4272 echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
2006
|
4273 echo "configure:4274: checking for off_t" >&5
|
|
4274
|
|
4275 cat > conftest.$ac_ext <<EOF
|
|
4276 #line 4277 "configure"
|
163
|
4277 #include "confdefs.h"
|
|
4278 #include <sys/types.h>
|
|
4279 #if STDC_HEADERS
|
|
4280 #include <stdlib.h>
|
|
4281 #include <stddef.h>
|
|
4282 #endif
|
|
4283 EOF
|
|
4284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4285 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4286 rm -rf conftest*
|
|
4287 ac_cv_type_off_t=yes
|
|
4288 else
|
|
4289 rm -rf conftest*
|
|
4290 ac_cv_type_off_t=no
|
|
4291 fi
|
|
4292 rm -f conftest*
|
|
4293
|
|
4294 echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
4295 if test $ac_cv_type_off_t = no; then
|
|
4296 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4297 Defining off_t = long
|
|
4298 EOF
|
|
4299 cat >> confdefs.h <<\EOF
|
|
4300 #define off_t long
|
|
4301 EOF
|
|
4302 }
|
|
4303
|
|
4304 fi
|
|
4305
|
426
|
4306 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
|
2006
|
4307 echo "configure:4308: checking for ssize_t" >&5
|
|
4308
|
|
4309 cat > conftest.$ac_ext <<EOF
|
|
4310 #line 4311 "configure"
|
426
|
4311 #include "confdefs.h"
|
|
4312 #include <sys/types.h>
|
|
4313 #if STDC_HEADERS
|
|
4314 #include <stdlib.h>
|
|
4315 #include <stddef.h>
|
|
4316 #endif
|
|
4317 EOF
|
|
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
4319 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
4320 rm -rf conftest*
|
|
4321 ac_cv_type_ssize_t=yes
|
|
4322 else
|
|
4323 rm -rf conftest*
|
|
4324 ac_cv_type_ssize_t=no
|
|
4325 fi
|
|
4326 rm -f conftest*
|
|
4327
|
|
4328 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
|
|
4329 if test $ac_cv_type_ssize_t = no; then
|
|
4330 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4331 Defining ssize_t = int
|
|
4332 EOF
|
|
4333 cat >> confdefs.h <<\EOF
|
|
4334 #define ssize_t int
|
|
4335 EOF
|
|
4336 }
|
|
4337
|
|
4338 fi
|
|
4339
|
410
|
4340
|
1443
|
4341 if test "$ac_cv_header_inttypes_h" != "yes"; then
|
|
4342 echo $ac_n "checking for intptr_t in sys/types.h""... $ac_c" 1>&6
|
2006
|
4343 echo "configure:4344: checking for intptr_t in sys/types.h" >&5
|
|
4344 cat > conftest.$ac_ext <<EOF
|
|
4345 #line 4346 "configure"
|
1443
|
4346 #include "confdefs.h"
|
|
4347 #include <sys/types.h>
|
|
4348 intptr_t x;
|
|
4349
|
|
4350 int main() {
|
|
4351
|
|
4352 ; return 0; }
|
|
4353 EOF
|
2006
|
4354 if { (eval echo configure:4355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1443
|
4355 rm -rf conftest*
|
|
4356 echo "$ac_t""yes" 1>&6
|
|
4357 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4358 Defining HAVE_INTPTR_T_IN_SYS_TYPES_H = 1
|
|
4359 EOF
|
|
4360 cat >> confdefs.h <<\EOF
|
|
4361 #define HAVE_INTPTR_T_IN_SYS_TYPES_H 1
|
|
4362 EOF
|
|
4363 }
|
|
4364
|
|
4365 else
|
|
4366 echo "configure: failed program was:" >&5
|
|
4367 cat conftest.$ac_ext >&5
|
|
4368 rm -rf conftest*
|
|
4369 echo "$ac_t""no" 1>&6
|
|
4370 fi
|
|
4371 rm -f conftest*
|
|
4372 fi
|
|
4373
|
442
|
4374 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
|
2006
|
4375 echo "configure:4376: checking for socklen_t" >&5
|
|
4376 cat > conftest.$ac_ext <<EOF
|
|
4377 #line 4378 "configure"
|
442
|
4378 #include "confdefs.h"
|
1427
|
4379 #include <sys/types.h>
|
442
|
4380 #include <sys/socket.h>
|
|
4381 socklen_t x;
|
|
4382
|
|
4383 int main() {
|
|
4384
|
|
4385 ; return 0; }
|
|
4386 EOF
|
2006
|
4387 if { (eval echo configure:4388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
4388 rm -rf conftest*
|
|
4389 echo "$ac_t""yes" 1>&6
|
|
4390 else
|
|
4391 echo "configure: failed program was:" >&5
|
|
4392 cat conftest.$ac_ext >&5
|
|
4393 rm -rf conftest*
|
|
4394
|
|
4395 cat > conftest.$ac_ext <<EOF
|
2006
|
4396 #line 4397 "configure"
|
1427
|
4397 #include "confdefs.h"
|
|
4398 #include <sys/types.h>
|
442
|
4399 #include <sys/socket.h>
|
|
4400 int accept (int, struct sockaddr *, size_t *);
|
|
4401
|
|
4402 int main() {
|
|
4403
|
|
4404 ; return 0; }
|
|
4405 EOF
|
2006
|
4406 if { (eval echo configure:4407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
4407 rm -rf conftest*
|
|
4408
|
|
4409 echo "$ac_t""size_t" 1>&6
|
|
4410 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4411 Defining socklen_t = size_t
|
|
4412 EOF
|
|
4413 cat >> confdefs.h <<\EOF
|
|
4414 #define socklen_t size_t
|
|
4415 EOF
|
|
4416 }
|
|
4417
|
|
4418 else
|
|
4419 echo "configure: failed program was:" >&5
|
|
4420 cat conftest.$ac_ext >&5
|
|
4421 rm -rf conftest*
|
|
4422
|
|
4423 echo "$ac_t""int" 1>&6
|
|
4424 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4425 Defining socklen_t = int
|
|
4426 EOF
|
|
4427 cat >> confdefs.h <<\EOF
|
|
4428 #define socklen_t int
|
|
4429 EOF
|
|
4430 }
|
|
4431
|
|
4432 fi
|
|
4433 rm -f conftest*
|
|
4434 fi
|
|
4435 rm -f conftest*
|
|
4436
|
149
|
4437 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
|
2006
|
4438 echo "configure:4439: checking for struct timeval" >&5
|
|
4439 cat > conftest.$ac_ext <<EOF
|
|
4440 #line 4441 "configure"
|
0
|
4441 #include "confdefs.h"
|
|
4442 #ifdef TIME_WITH_SYS_TIME
|
|
4443 #include <sys/time.h>
|
|
4444 #include <time.h>
|
|
4445 #else
|
|
4446 #ifdef HAVE_SYS_TIME_H
|
|
4447 #include <sys/time.h>
|
|
4448 #else
|
|
4449 #include <time.h>
|
|
4450 #endif
|
|
4451 #endif
|
149
|
4452 int main() {
|
|
4453 static struct timeval x; x.tv_sec = x.tv_usec;
|
|
4454 ; return 0; }
|
|
4455 EOF
|
2006
|
4456 if { (eval echo configure:4457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4457 rm -rf conftest*
|
|
4458 echo "$ac_t""yes" 1>&6
|
0
|
4459 HAVE_TIMEVAL=yes
|
149
|
4460 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4461 Defining HAVE_TIMEVAL
|
|
4462 EOF
|
|
4463 cat >> confdefs.h <<\EOF
|
|
4464 #define HAVE_TIMEVAL 1
|
|
4465 EOF
|
|
4466 }
|
|
4467
|
|
4468 else
|
|
4469 echo "configure: failed program was:" >&5
|
|
4470 cat conftest.$ac_ext >&5
|
|
4471 rm -rf conftest*
|
|
4472 echo "$ac_t""no" 1>&6
|
|
4473 HAVE_TIMEVAL=no
|
|
4474 fi
|
|
4475 rm -f conftest*
|
|
4476
|
|
4477 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
2006
|
4478 echo "configure:4479: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
4479
|
|
4480 cat > conftest.$ac_ext <<EOF
|
|
4481 #line 4482 "configure"
|
0
|
4482 #include "confdefs.h"
|
|
4483 #include <sys/types.h>
|
|
4484 #include <time.h>
|
149
|
4485 int main() {
|
|
4486 struct tm *tp; tp->tm_sec;
|
|
4487 ; return 0; }
|
|
4488 EOF
|
2006
|
4489 if { (eval echo configure:4490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4490 rm -rf conftest*
|
|
4491 ac_cv_struct_tm=time.h
|
|
4492 else
|
|
4493 echo "configure: failed program was:" >&5
|
|
4494 cat conftest.$ac_ext >&5
|
|
4495 rm -rf conftest*
|
|
4496 ac_cv_struct_tm=sys/time.h
|
|
4497 fi
|
|
4498 rm -f conftest*
|
|
4499
|
|
4500 echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
4501 if test $ac_cv_struct_tm = sys/time.h; then
|
|
4502 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4503 Defining TM_IN_SYS_TIME
|
|
4504 EOF
|
|
4505 cat >> confdefs.h <<\EOF
|
|
4506 #define TM_IN_SYS_TIME 1
|
|
4507 EOF
|
|
4508 }
|
|
4509
|
|
4510 fi
|
|
4511
|
|
4512 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
2006
|
4513 echo "configure:4514: checking for tm_zone in struct tm" >&5
|
|
4514
|
|
4515 cat > conftest.$ac_ext <<EOF
|
|
4516 #line 4517 "configure"
|
149
|
4517 #include "confdefs.h"
|
|
4518 #include <sys/types.h>
|
|
4519 #include <$ac_cv_struct_tm>
|
|
4520 int main() {
|
|
4521 struct tm tm; tm.tm_zone;
|
|
4522 ; return 0; }
|
|
4523 EOF
|
2006
|
4524 if { (eval echo configure:4525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4525 rm -rf conftest*
|
|
4526 ac_cv_struct_tm_zone=yes
|
|
4527 else
|
|
4528 echo "configure: failed program was:" >&5
|
|
4529 cat conftest.$ac_ext >&5
|
|
4530 rm -rf conftest*
|
|
4531 ac_cv_struct_tm_zone=no
|
|
4532 fi
|
|
4533 rm -f conftest*
|
|
4534
|
|
4535 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
|
4536 if test "$ac_cv_struct_tm_zone" = yes; then
|
|
4537 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4538 Defining HAVE_TM_ZONE
|
|
4539 EOF
|
|
4540 cat >> confdefs.h <<\EOF
|
|
4541 #define HAVE_TM_ZONE 1
|
|
4542 EOF
|
|
4543 }
|
|
4544
|
|
4545 else
|
|
4546 echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
2006
|
4547 echo "configure:4548: checking for tzname" >&5
|
|
4548
|
|
4549 cat > conftest.$ac_ext <<EOF
|
|
4550 #line 4551 "configure"
|
0
|
4551 #include "confdefs.h"
|
|
4552 #include <time.h>
|
|
4553 #ifndef tzname /* For SGI. */
|
149
|
4554 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
0
|
4555 #endif
|
149
|
4556 int main() {
|
|
4557 atoi(*tzname);
|
|
4558 ; return 0; }
|
|
4559 EOF
|
2006
|
4560 if { (eval echo configure:4561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
4561 rm -rf conftest*
|
|
4562 ac_cv_var_tzname=yes
|
|
4563 else
|
|
4564 echo "configure: failed program was:" >&5
|
|
4565 cat conftest.$ac_ext >&5
|
|
4566 rm -rf conftest*
|
|
4567 ac_cv_var_tzname=no
|
|
4568 fi
|
|
4569 rm -f conftest*
|
|
4570
|
|
4571 echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
|
4572 if test $ac_cv_var_tzname = yes; then
|
|
4573 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4574 Defining HAVE_TZNAME
|
|
4575 EOF
|
|
4576 cat >> confdefs.h <<\EOF
|
|
4577 #define HAVE_TZNAME 1
|
|
4578 EOF
|
|
4579 }
|
|
4580
|
|
4581 fi
|
|
4582 fi
|
|
4583
|
|
4584
|
|
4585 echo $ac_n "checking for working const""... $ac_c" 1>&6
|
2006
|
4586 echo "configure:4587: checking for working const" >&5
|
|
4587
|
|
4588 cat > conftest.$ac_ext <<EOF
|
|
4589 #line 4590 "configure"
|
149
|
4590 #include "confdefs.h"
|
|
4591
|
|
4592 int main() {
|
|
4593
|
|
4594 /* Ultrix mips cc rejects this. */
|
744
|
4595 typedef int charset[2]; const charset x;
|
0
|
4596 /* SunOS 4.1.1 cc rejects this. */
|
|
4597 char const *const *ccp;
|
|
4598 char **p;
|
149
|
4599 /* NEC SVR4.0.2 mips cc rejects this. */
|
|
4600 struct point {int x, y;};
|
|
4601 static struct point const zero = {0,0};
|
0
|
4602 /* AIX XL C 1.02.0.0 rejects this.
|
|
4603 It does not let you subtract one const X* pointer from another in an arm
|
|
4604 of an if-expression whose if-part is not a constant expression */
|
|
4605 const char *g = "string";
|
|
4606 ccp = &g + (g ? g-g : 0);
|
|
4607 /* HPUX 7.0 cc rejects these. */
|
|
4608 ++ccp;
|
|
4609 p = (char**) ccp;
|
|
4610 ccp = (char const *const *) p;
|
|
4611 { /* SCO 3.2v4 cc rejects this. */
|
|
4612 char *t;
|
|
4613 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
4614
|
|
4615 *t++ = 0;
|
|
4616 }
|
|
4617 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
149
|
4618 int x[] = {25, 17};
|
0
|
4619 const int *foo = &x[0];
|
|
4620 ++foo;
|
|
4621 }
|
|
4622 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
4623 typedef const int *iptr;
|
|
4624 iptr p = 0;
|
|
4625 ++p;
|
|
4626 }
|
|
4627 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
4628 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
4629 struct s { int j; const int *ap[3]; };
|
|
4630 struct s *b; b->j = 5;
|
|
4631 }
|
|
4632 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
4633 const int foo = 10;
|
149
|
4634 }
|
|
4635
|
|
4636 ; return 0; }
|
|
4637 EOF
|
2006
|
4638 if { (eval echo configure:4639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4639 rm -rf conftest*
|
|
4640 ac_cv_c_const=yes
|
|
4641 else
|
|
4642 echo "configure: failed program was:" >&5
|
|
4643 cat conftest.$ac_ext >&5
|
|
4644 rm -rf conftest*
|
|
4645 ac_cv_c_const=no
|
|
4646 fi
|
|
4647 rm -f conftest*
|
|
4648
|
|
4649 echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
4650 if test $ac_cv_c_const = no; then
|
|
4651 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4652 Defining const =
|
|
4653 EOF
|
|
4654 cat >> confdefs.h <<\EOF
|
|
4655 #define const
|
|
4656 EOF
|
|
4657 }
|
|
4658
|
|
4659 fi
|
|
4660
|
|
4661
|
|
4662 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
2006
|
4663 echo "configure:4664: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
149
|
4664 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
4665
|
|
4666 cat > conftestmake <<\EOF
|
0
|
4667 all:
|
|
4668 @echo 'ac_maketemp="${MAKE}"'
|
|
4669 EOF
|
|
4670 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
4671 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
149
|
4672 if test -n "$ac_maketemp"; then
|
|
4673 eval ac_cv_prog_make_${ac_make}_set=yes
|
|
4674 else
|
|
4675 eval ac_cv_prog_make_${ac_make}_set=no
|
|
4676 fi
|
0
|
4677 rm -f conftestmake
|
149
|
4678 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
4679 echo "$ac_t""yes" 1>&6
|
|
4680 SET_MAKE=
|
|
4681 else
|
|
4682 echo "$ac_t""no" 1>&6
|
|
4683 SET_MAKE="MAKE=${MAKE-make}"
|
|
4684 fi
|
|
4685
|
|
4686
|
|
4687 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
2006
|
4688 echo "configure:4689: checking whether byte ordering is bigendian" >&5
|
149
|
4689
|
|
4690 ac_cv_c_bigendian=unknown
|
|
4691 # See if sys/param.h defines the BYTE_ORDER macro.
|
|
4692 cat > conftest.$ac_ext <<EOF
|
2006
|
4693 #line 4694 "configure"
|
149
|
4694 #include "confdefs.h"
|
|
4695 #include <sys/types.h>
|
|
4696 #include <sys/param.h>
|
|
4697 int main() {
|
|
4698
|
|
4699 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
4700 bogus endian macros
|
|
4701 #endif
|
|
4702 ; return 0; }
|
|
4703 EOF
|
2006
|
4704 if { (eval echo configure:4705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4705 rm -rf conftest*
|
|
4706 # It does; now see whether it defined to BIG_ENDIAN or not.
|
|
4707 cat > conftest.$ac_ext <<EOF
|
2006
|
4708 #line 4709 "configure"
|
149
|
4709 #include "confdefs.h"
|
|
4710 #include <sys/types.h>
|
|
4711 #include <sys/param.h>
|
|
4712 int main() {
|
|
4713
|
|
4714 #if BYTE_ORDER != BIG_ENDIAN
|
|
4715 not big endian
|
|
4716 #endif
|
|
4717 ; return 0; }
|
|
4718 EOF
|
2006
|
4719 if { (eval echo configure:4720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4720 rm -rf conftest*
|
|
4721 ac_cv_c_bigendian=yes
|
|
4722 else
|
|
4723 echo "configure: failed program was:" >&5
|
|
4724 cat conftest.$ac_ext >&5
|
|
4725 rm -rf conftest*
|
|
4726 ac_cv_c_bigendian=no
|
|
4727 fi
|
|
4728 rm -f conftest*
|
|
4729 else
|
|
4730 echo "configure: failed program was:" >&5
|
|
4731 cat conftest.$ac_ext >&5
|
|
4732 fi
|
|
4733 rm -f conftest*
|
|
4734 if test $ac_cv_c_bigendian = unknown; then
|
|
4735 cat > conftest.$ac_ext <<EOF
|
2006
|
4736 #line 4737 "configure"
|
0
|
4737 #include "confdefs.h"
|
|
4738 main () {
|
|
4739 /* Are we little or big endian? From Harbison&Steele. */
|
|
4740 union
|
|
4741 {
|
|
4742 long l;
|
|
4743 char c[sizeof (long)];
|
|
4744 } u;
|
|
4745 u.l = 1;
|
|
4746 exit (u.c[sizeof (long) - 1] == 1);
|
|
4747 }
|
|
4748 EOF
|
2006
|
4749 if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
4750 then
|
|
4751 ac_cv_c_bigendian=no
|
|
4752 else
|
373
|
4753 conftest_rc="$?"
|
149
|
4754 echo "configure: failed program was:" >&5
|
|
4755 cat conftest.$ac_ext >&5
|
|
4756 rm -fr conftest*
|
|
4757 ac_cv_c_bigendian=yes
|
0
|
4758 fi
|
|
4759 rm -fr conftest*
|
149
|
4760 fi
|
|
4761
|
|
4762 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|
4763 if test $ac_cv_c_bigendian = yes; then
|
|
4764 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4765 Defining WORDS_BIGENDIAN
|
|
4766 EOF
|
|
4767 cat >> confdefs.h <<\EOF
|
|
4768 #define WORDS_BIGENDIAN 1
|
|
4769 EOF
|
|
4770 }
|
|
4771
|
|
4772 fi
|
|
4773
|
|
4774
|
151
|
4775 echo $ac_n "checking size of short""... $ac_c" 1>&6
|
2006
|
4776 echo "configure:4777: checking size of short" >&5
|
|
4777
|
|
4778 cat > conftest.$ac_ext <<EOF
|
|
4779 #line 4780 "configure"
|
151
|
4780 #include "confdefs.h"
|
|
4781 #include <stdio.h>
|
2131
|
4782 #include <sys/types.h>
|
|
4783 main()
|
151
|
4784 {
|
|
4785 FILE *f=fopen("conftestval", "w");
|
2131
|
4786 if (!f) exit(1);
|
151
|
4787 fprintf(f, "%d\n", sizeof(short));
|
2131
|
4788 exit(0);
|
|
4789 }
|
|
4790 EOF
|
|
4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4792 then
|
|
4793 ac_cv_sizeof_short=`cat conftestval`
|
|
4794 else
|
373
|
4795 conftest_rc="$?"
|
151
|
4796 echo "configure: failed program was:" >&5
|
|
4797 cat conftest.$ac_ext >&5
|
|
4798 rm -fr conftest*
|
|
4799 ac_cv_sizeof_short=0
|
|
4800 fi
|
|
4801 rm -fr conftest*
|
|
4802 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|
4803 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4804 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
|
|
4805 EOF
|
|
4806 cat >> confdefs.h <<EOF
|
|
4807 #define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
4808 EOF
|
|
4809 }
|
|
4810
|
|
4811
|
163
|
4812 if test "$ac_cv_sizeof_short" = 0; then
|
|
4813 echo ""
|
|
4814 echo "*** PANIC *** Configure tests are not working - compiler is broken."
|
|
4815 echo "*** PANIC *** Please examine config.log for compilation errors."
|
|
4816 exit 1
|
|
4817 fi
|
151
|
4818 echo $ac_n "checking size of int""... $ac_c" 1>&6
|
2131
|
4819 echo "configure:4820: checking size of int" >&5
|
|
4820
|
|
4821 cat > conftest.$ac_ext <<EOF
|
|
4822 #line 4823 "configure"
|
151
|
4823 #include "confdefs.h"
|
|
4824 #include <stdio.h>
|
2131
|
4825 #include <sys/types.h>
|
|
4826 main()
|
151
|
4827 {
|
|
4828 FILE *f=fopen("conftestval", "w");
|
2131
|
4829 if (!f) exit(1);
|
151
|
4830 fprintf(f, "%d\n", sizeof(int));
|
2131
|
4831 exit(0);
|
|
4832 }
|
|
4833 EOF
|
|
4834 if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4835 then
|
|
4836 ac_cv_sizeof_int=`cat conftestval`
|
|
4837 else
|
373
|
4838 conftest_rc="$?"
|
151
|
4839 echo "configure: failed program was:" >&5
|
|
4840 cat conftest.$ac_ext >&5
|
|
4841 rm -fr conftest*
|
|
4842 ac_cv_sizeof_int=0
|
|
4843 fi
|
|
4844 rm -fr conftest*
|
|
4845 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
4846 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4847 Defining SIZEOF_INT = $ac_cv_sizeof_int
|
|
4848 EOF
|
|
4849 cat >> confdefs.h <<EOF
|
|
4850 #define SIZEOF_INT $ac_cv_sizeof_int
|
|
4851 EOF
|
|
4852 }
|
|
4853
|
|
4854
|
|
4855 echo $ac_n "checking size of long""... $ac_c" 1>&6
|
2131
|
4856 echo "configure:4857: checking size of long" >&5
|
|
4857
|
|
4858 cat > conftest.$ac_ext <<EOF
|
|
4859 #line 4860 "configure"
|
151
|
4860 #include "confdefs.h"
|
|
4861 #include <stdio.h>
|
2131
|
4862 #include <sys/types.h>
|
|
4863 main()
|
151
|
4864 {
|
|
4865 FILE *f=fopen("conftestval", "w");
|
2131
|
4866 if (!f) exit(1);
|
151
|
4867 fprintf(f, "%d\n", sizeof(long));
|
2131
|
4868 exit(0);
|
|
4869 }
|
|
4870 EOF
|
|
4871 if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4872 then
|
|
4873 ac_cv_sizeof_long=`cat conftestval`
|
|
4874 else
|
373
|
4875 conftest_rc="$?"
|
151
|
4876 echo "configure: failed program was:" >&5
|
|
4877 cat conftest.$ac_ext >&5
|
|
4878 rm -fr conftest*
|
|
4879 ac_cv_sizeof_long=0
|
|
4880 fi
|
|
4881 rm -fr conftest*
|
|
4882 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
4883 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4884 Defining SIZEOF_LONG = $ac_cv_sizeof_long
|
|
4885 EOF
|
|
4886 cat >> confdefs.h <<EOF
|
|
4887 #define SIZEOF_LONG $ac_cv_sizeof_long
|
|
4888 EOF
|
|
4889 }
|
|
4890
|
|
4891
|
163
|
4892 echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
2131
|
4893 echo "configure:4894: checking size of long long" >&5
|
|
4894
|
|
4895 cat > conftest.$ac_ext <<EOF
|
|
4896 #line 4897 "configure"
|
163
|
4897 #include "confdefs.h"
|
|
4898 #include <stdio.h>
|
2131
|
4899 #include <sys/types.h>
|
|
4900 main()
|
163
|
4901 {
|
|
4902 FILE *f=fopen("conftestval", "w");
|
2131
|
4903 if (!f) exit(1);
|
163
|
4904 fprintf(f, "%d\n", sizeof(long long));
|
2131
|
4905 exit(0);
|
|
4906 }
|
|
4907 EOF
|
|
4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4909 then
|
|
4910 ac_cv_sizeof_long_long=`cat conftestval`
|
|
4911 else
|
373
|
4912 conftest_rc="$?"
|
163
|
4913 echo "configure: failed program was:" >&5
|
|
4914 cat conftest.$ac_ext >&5
|
|
4915 rm -fr conftest*
|
|
4916 ac_cv_sizeof_long_long=0
|
|
4917 fi
|
|
4918 rm -fr conftest*
|
|
4919 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|
4920 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4921 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
|
|
4922 EOF
|
|
4923 cat >> confdefs.h <<EOF
|
|
4924 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|
4925 EOF
|
|
4926 }
|
|
4927
|
|
4928
|
|
4929 echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
2131
|
4930 echo "configure:4931: checking size of void *" >&5
|
|
4931
|
|
4932 cat > conftest.$ac_ext <<EOF
|
|
4933 #line 4934 "configure"
|
163
|
4934 #include "confdefs.h"
|
|
4935 #include <stdio.h>
|
2131
|
4936 #include <sys/types.h>
|
|
4937 main()
|
163
|
4938 {
|
|
4939 FILE *f=fopen("conftestval", "w");
|
2131
|
4940 if (!f) exit(1);
|
163
|
4941 fprintf(f, "%d\n", sizeof(void *));
|
2131
|
4942 exit(0);
|
|
4943 }
|
|
4944 EOF
|
|
4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4946 then
|
|
4947 ac_cv_sizeof_void_p=`cat conftestval`
|
|
4948 else
|
373
|
4949 conftest_rc="$?"
|
163
|
4950 echo "configure: failed program was:" >&5
|
|
4951 cat conftest.$ac_ext >&5
|
|
4952 rm -fr conftest*
|
|
4953 ac_cv_sizeof_void_p=0
|
|
4954 fi
|
|
4955 rm -fr conftest*
|
|
4956 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|
4957 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4958 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
|
|
4959 EOF
|
|
4960 cat >> confdefs.h <<EOF
|
|
4961 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
4962 EOF
|
|
4963 }
|
|
4964
|
|
4965
|
1984
|
4966 echo $ac_n "checking size of double""... $ac_c" 1>&6
|
2131
|
4967 echo "configure:4968: checking size of double" >&5
|
|
4968
|
|
4969 cat > conftest.$ac_ext <<EOF
|
|
4970 #line 4971 "configure"
|
1984
|
4971 #include "confdefs.h"
|
|
4972 #include <stdio.h>
|
2131
|
4973 #include <sys/types.h>
|
|
4974 main()
|
1984
|
4975 {
|
|
4976 FILE *f=fopen("conftestval", "w");
|
2131
|
4977 if (!f) exit(1);
|
1984
|
4978 fprintf(f, "%d\n", sizeof(double));
|
2131
|
4979 exit(0);
|
|
4980 }
|
|
4981 EOF
|
|
4982 if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
1984
|
4983 then
|
|
4984 ac_cv_sizeof_double=`cat conftestval`
|
|
4985 else
|
|
4986 conftest_rc="$?"
|
|
4987 echo "configure: failed program was:" >&5
|
|
4988 cat conftest.$ac_ext >&5
|
|
4989 rm -fr conftest*
|
|
4990 ac_cv_sizeof_double=0
|
|
4991 fi
|
|
4992 rm -fr conftest*
|
|
4993 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
|
|
4994 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4995 Defining SIZEOF_DOUBLE = $ac_cv_sizeof_double
|
|
4996 EOF
|
|
4997 cat >> confdefs.h <<EOF
|
|
4998 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
|
|
4999 EOF
|
|
5000 }
|
|
5001
|
|
5002
|
151
|
5003
|
149
|
5004 echo $ac_n "checking for long file names""... $ac_c" 1>&6
|
2131
|
5005 echo "configure:5006: checking for long file names" >&5
|
149
|
5006
|
|
5007 ac_cv_sys_long_file_names=yes
|
0
|
5008 # Test for long file names in all the places we know might matter:
|
|
5009 # . the current directory, where building will happen
|
149
|
5010 # $prefix/lib where we will be installing things
|
|
5011 # $exec_prefix/lib likewise
|
|
5012 # eval it to expand exec_prefix.
|
|
5013 # $TMPDIR if set, where it might want to write temporary files
|
|
5014 # if $TMPDIR is not set:
|
0
|
5015 # /tmp where it might want to write temporary files
|
|
5016 # /var/tmp likewise
|
|
5017 # /usr/tmp likewise
|
149
|
5018 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
|
|
5019 ac_tmpdirs="$TMPDIR"
|
|
5020 else
|
|
5021 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
|
|
5022 fi
|
|
5023 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
|
0
|
5024 test -d $ac_dir || continue
|
149
|
5025 test -w $ac_dir || continue # It is less confusing to not echo anything here.
|
0
|
5026 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
|
|
5027 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
|
|
5028 val=`cat $ac_dir/conftest9012345 2>/dev/null`
|
149
|
5029 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
|
|
5030 ac_cv_sys_long_file_names=no
|
|
5031 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
5032 break
|
0
|
5033 fi
|
149
|
5034 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
5035 done
|
|
5036
|
|
5037 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
|
|
5038 if test $ac_cv_sys_long_file_names = yes; then
|
|
5039 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5040 Defining HAVE_LONG_FILE_NAMES
|
|
5041 EOF
|
|
5042 cat >> confdefs.h <<\EOF
|
|
5043 #define HAVE_LONG_FILE_NAMES 1
|
|
5044 EOF
|
|
5045 }
|
|
5046
|
|
5047 fi
|
|
5048
|
|
5049
|
398
|
5050 echo $ac_n "checking for sin""... $ac_c" 1>&6
|
2131
|
5051 echo "configure:5052: checking for sin" >&5
|
|
5052
|
|
5053 cat > conftest.$ac_ext <<EOF
|
|
5054 #line 5055 "configure"
|
398
|
5055 #include "confdefs.h"
|
|
5056 /* System header to define __stub macros and hopefully few prototypes,
|
|
5057 which can conflict with char sin(); below. */
|
|
5058 #include <assert.h>
|
|
5059 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5060 /* We use char because int might match the return type of a gcc2
|
|
5061 builtin and then its argument prototype would still apply. */
|
|
5062 char sin();
|
|
5063
|
|
5064 int main() {
|
|
5065
|
|
5066 /* The GNU C library defines this for functions which it implements
|
|
5067 to always fail with ENOSYS. Some functions are actually named
|
|
5068 something starting with __ and the normal name is an alias. */
|
|
5069 #if defined (__stub_sin) || defined (__stub___sin)
|
|
5070 choke me
|
|
5071 #else
|
|
5072 sin();
|
|
5073 #endif
|
|
5074
|
|
5075 ; return 0; }
|
|
5076 EOF
|
2131
|
5077 if { (eval echo configure:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
5078 rm -rf conftest*
|
|
5079 eval "ac_cv_func_sin=yes"
|
|
5080 else
|
|
5081 echo "configure: failed program was:" >&5
|
|
5082 cat conftest.$ac_ext >&5
|
|
5083 rm -rf conftest*
|
|
5084 eval "ac_cv_func_sin=no"
|
|
5085 fi
|
|
5086 rm -f conftest*
|
|
5087
|
|
5088 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
|
|
5089 echo "$ac_t""yes" 1>&6
|
|
5090 :
|
|
5091 else
|
|
5092 echo "$ac_t""no" 1>&6
|
149
|
5093
|
207
|
5094 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
2131
|
5095 echo "configure:5096: checking for sin in -lm" >&5
|
207
|
5096 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
149
|
5097
|
|
5098 xe_check_libs=" -lm "
|
|
5099 cat > conftest.$ac_ext <<EOF
|
2131
|
5100 #line 5101 "configure"
|
149
|
5101 #include "confdefs.h"
|
|
5102 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5103 /* We use char because int might match the return type of a gcc2
|
|
5104 builtin and then its argument prototype would still apply. */
|
207
|
5105 char sin();
|
149
|
5106
|
|
5107 int main() {
|
207
|
5108 sin()
|
149
|
5109 ; return 0; }
|
|
5110 EOF
|
2131
|
5111 if { (eval echo configure:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5112 rm -rf conftest*
|
|
5113 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5114 else
|
|
5115 echo "configure: failed program was:" >&5
|
|
5116 cat conftest.$ac_ext >&5
|
|
5117 rm -rf conftest*
|
|
5118 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5119 fi
|
|
5120 rm -f conftest*
|
|
5121 xe_check_libs=""
|
|
5122
|
151
|
5123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5124 echo "$ac_t""yes" 1>&6
|
398
|
5125 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
|
149
|
5126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
5127 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5128 Defining $ac_tr_lib
|
|
5129 EOF
|
|
5130 cat >> confdefs.h <<EOF
|
|
5131 #define $ac_tr_lib 1
|
|
5132 EOF
|
|
5133 }
|
|
5134
|
151
|
5135 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
|
|
5136
|
|
5137 else
|
|
5138 echo "$ac_t""no" 1>&6
|
|
5139 fi
|
|
5140
|
|
5141
|
398
|
5142 fi
|
|
5143
|
151
|
5144
|
1123
|
5145 cat > conftest.$ac_ext <<EOF
|
2131
|
5146 #line 5147 "configure"
|
243
|
5147 #include "confdefs.h"
|
|
5148 #include <math.h>
|
|
5149 int main() {
|
|
5150 return atanh(1.0) + asinh(1.0) + acosh(1.0);
|
|
5151 ; return 0; }
|
|
5152 EOF
|
2131
|
5153 if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
243
|
5154 rm -rf conftest*
|
|
5155 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5156 Defining HAVE_INVERSE_HYPERBOLIC
|
|
5157 EOF
|
|
5158 cat >> confdefs.h <<\EOF
|
|
5159 #define HAVE_INVERSE_HYPERBOLIC 1
|
|
5160 EOF
|
|
5161 }
|
|
5162
|
|
5163 else
|
|
5164 echo "configure: failed program was:" >&5
|
|
5165 cat conftest.$ac_ext >&5
|
|
5166 fi
|
|
5167 rm -f conftest*
|
|
5168
|
567
|
5169 for ac_func in mkstemp
|
438
|
5170 do
|
|
5171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
5172 echo "configure:5173: checking for $ac_func" >&5
|
|
5173
|
|
5174 cat > conftest.$ac_ext <<EOF
|
|
5175 #line 5176 "configure"
|
438
|
5176 #include "confdefs.h"
|
|
5177 /* System header to define __stub macros and hopefully few prototypes,
|
|
5178 which can conflict with char $ac_func(); below. */
|
|
5179 #include <assert.h>
|
|
5180 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5181 /* We use char because int might match the return type of a gcc2
|
|
5182 builtin and then its argument prototype would still apply. */
|
|
5183 char $ac_func();
|
|
5184
|
|
5185 int main() {
|
|
5186
|
|
5187 /* The GNU C library defines this for functions which it implements
|
|
5188 to always fail with ENOSYS. Some functions are actually named
|
|
5189 something starting with __ and the normal name is an alias. */
|
|
5190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5191 choke me
|
|
5192 #else
|
|
5193 $ac_func();
|
|
5194 #endif
|
|
5195
|
|
5196 ; return 0; }
|
|
5197 EOF
|
2131
|
5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
567
|
5199 rm -rf conftest*
|
|
5200 eval "ac_cv_func_$ac_func=yes"
|
|
5201 else
|
|
5202 echo "configure: failed program was:" >&5
|
|
5203 cat conftest.$ac_ext >&5
|
|
5204 rm -rf conftest*
|
|
5205 eval "ac_cv_func_$ac_func=no"
|
|
5206 fi
|
|
5207 rm -f conftest*
|
|
5208
|
|
5209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5210 echo "$ac_t""yes" 1>&6
|
|
5211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5212 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5213 Defining $ac_tr_func
|
|
5214 EOF
|
|
5215 cat >> confdefs.h <<EOF
|
|
5216 #define $ac_tr_func 1
|
|
5217 EOF
|
|
5218 }
|
|
5219
|
|
5220 else
|
|
5221 echo "$ac_t""no" 1>&6
|
|
5222 fi
|
|
5223 done
|
|
5224
|
|
5225
|
|
5226 echo "checking type of mail spool file locking" 1>&6
|
2131
|
5227 echo "configure:5228: checking type of mail spool file locking" >&5
|
567
|
5228 for ac_func in lockf flock
|
|
5229 do
|
|
5230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
5231 echo "configure:5232: checking for $ac_func" >&5
|
|
5232
|
|
5233 cat > conftest.$ac_ext <<EOF
|
|
5234 #line 5235 "configure"
|
567
|
5235 #include "confdefs.h"
|
|
5236 /* System header to define __stub macros and hopefully few prototypes,
|
|
5237 which can conflict with char $ac_func(); below. */
|
|
5238 #include <assert.h>
|
|
5239 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5240 /* We use char because int might match the return type of a gcc2
|
|
5241 builtin and then its argument prototype would still apply. */
|
|
5242 char $ac_func();
|
|
5243
|
|
5244 int main() {
|
|
5245
|
|
5246 /* The GNU C library defines this for functions which it implements
|
|
5247 to always fail with ENOSYS. Some functions are actually named
|
|
5248 something starting with __ and the normal name is an alias. */
|
|
5249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5250 choke me
|
|
5251 #else
|
|
5252 $ac_func();
|
|
5253 #endif
|
|
5254
|
|
5255 ; return 0; }
|
|
5256 EOF
|
2131
|
5257 if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
438
|
5258 rm -rf conftest*
|
|
5259 eval "ac_cv_func_$ac_func=yes"
|
|
5260 else
|
|
5261 echo "configure: failed program was:" >&5
|
|
5262 cat conftest.$ac_ext >&5
|
|
5263 rm -rf conftest*
|
|
5264 eval "ac_cv_func_$ac_func=no"
|
|
5265 fi
|
|
5266 rm -f conftest*
|
|
5267
|
|
5268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5269 echo "$ac_t""yes" 1>&6
|
|
5270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5271 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5272 Defining $ac_tr_func
|
|
5273 EOF
|
|
5274 cat >> confdefs.h <<EOF
|
|
5275 #define $ac_tr_func 1
|
|
5276 EOF
|
|
5277 }
|
|
5278
|
|
5279 else
|
|
5280 echo "$ac_t""no" 1>&6
|
|
5281 fi
|
|
5282 done
|
|
5283
|
149
|
5284 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
|
|
5285 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
|
438
|
5286 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
|
442
|
5287 if test -z "$mail_locking"; then
|
|
5288 case "$opsys" in cygwin* | mingw*)
|
|
5289 mail_locking=pop ;;
|
|
5290 esac
|
|
5291 fi
|
|
5292
|
149
|
5293 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
438
|
5294 Defining MAIL_LOCK_LOCKF
|
|
5295 EOF
|
|
5296 cat >> confdefs.h <<\EOF
|
|
5297 #define MAIL_LOCK_LOCKF 1
|
149
|
5298 EOF
|
|
5299 }
|
|
5300
|
|
5301 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
438
|
5302 Defining MAIL_LOCK_FLOCK
|
|
5303 EOF
|
|
5304 cat >> confdefs.h <<\EOF
|
|
5305 #define MAIL_LOCK_FLOCK 1
|
|
5306 EOF
|
|
5307 }
|
|
5308
|
|
5309 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5310 Defining MAIL_LOCK_LOCKING
|
|
5311 EOF
|
|
5312 cat >> confdefs.h <<\EOF
|
|
5313 #define MAIL_LOCK_LOCKING 1
|
|
5314 EOF
|
|
5315 }
|
|
5316
|
442
|
5317 elif test "$mail_locking" = "pop"; then
|
|
5318 with_pop=yes
|
|
5319 mail_locking=
|
438
|
5320 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5321 Defining MAIL_LOCK_DOT
|
|
5322 EOF
|
|
5323 cat >> confdefs.h <<\EOF
|
|
5324 #define MAIL_LOCK_DOT 1
|
|
5325 EOF
|
|
5326 }
|
|
5327
|
|
5328 fi
|
|
5329 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
|
|
5330 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
|
|
5331 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
|
|
5332 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
|
|
5333 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
|
|
5334 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
|
151
|
5335
|
278
|
5336 case "$opsys" in decosf*)
|
|
5337
|
151
|
5338 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
|
2131
|
5339 echo "configure:5340: checking for cma_open in -lpthreads" >&5
|
151
|
5340 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
|
|
5341
|
|
5342 xe_check_libs=" -lpthreads "
|
|
5343 cat > conftest.$ac_ext <<EOF
|
2131
|
5344 #line 5345 "configure"
|
151
|
5345 #include "confdefs.h"
|
|
5346 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5347 /* We use char because int might match the return type of a gcc2
|
|
5348 builtin and then its argument prototype would still apply. */
|
|
5349 char cma_open();
|
|
5350
|
|
5351 int main() {
|
|
5352 cma_open()
|
|
5353 ; return 0; }
|
|
5354 EOF
|
2131
|
5355 if { (eval echo configure:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
5356 rm -rf conftest*
|
|
5357 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5358 else
|
|
5359 echo "configure: failed program was:" >&5
|
|
5360 cat conftest.$ac_ext >&5
|
|
5361 rm -rf conftest*
|
|
5362 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5363 fi
|
|
5364 rm -f conftest*
|
|
5365 xe_check_libs=""
|
|
5366
|
|
5367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5368 echo "$ac_t""yes" 1>&6
|
|
5369 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
5370 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
5371 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5372 Defining $ac_tr_lib
|
|
5373 EOF
|
|
5374 cat >> confdefs.h <<EOF
|
|
5375 #define $ac_tr_lib 1
|
|
5376 EOF
|
|
5377 }
|
|
5378
|
|
5379 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
|
|
5380
|
|
5381 else
|
|
5382 echo "$ac_t""no" 1>&6
|
|
5383 fi
|
|
5384
|
|
5385
|
278
|
5386 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
|
|
5387 c_switch_site="$c_switch_site -threads" ;;
|
|
5388 esac
|
151
|
5389
|
708
|
5390
|
151
|
5391 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
|
2131
|
5392 echo "configure:5393: checking whether the -xildoff compiler flag is required" >&5
|
151
|
5393 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
5394 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
|
|
5395 then echo "$ac_t""no" 1>&6;
|
|
5396 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
|
|
5397 fi
|
|
5398 else echo "$ac_t""no" 1>&6
|
|
5399 fi
|
|
5400
|
442
|
5401 if test "$opsys" = "sol2"; then
|
1692
|
5402 if test "$os_release" -ge 506; then
|
442
|
5403 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
|
2131
|
5404 echo "configure:5405: checking for \"-z ignore\" linker flag" >&5
|
442
|
5405 case "`ld -h 2>&1`" in
|
|
5406 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
|
|
5407 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
|
|
5408 *) echo "$ac_t""no" 1>&6 ;;
|
|
5409 esac
|
|
5410 fi
|
163
|
5411 fi
|
155
|
5412
|
149
|
5413
|
|
5414 echo "checking "for specified window system"" 1>&6
|
2131
|
5415 echo "configure:5416: checking "for specified window system"" >&5
|
462
|
5416
|
|
5417
|
|
5418 GNOME_CONFIG=no
|
|
5419 GTK_CONFIG=no
|
|
5420
|
|
5421 if test "$with_gnome" != "no"; then
|
|
5422 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
|
2131
|
5423 echo "configure:5424: checking for GNOME configuration script" >&5
|
462
|
5424 for possible in gnome-config
|
|
5425 do
|
|
5426 possible_version=`${possible} --version 2> /dev/null`
|
|
5427 if test "x${possible_version}" != "x"; then
|
|
5428 GNOME_CONFIG="${possible}"
|
|
5429 with_gnome=yes
|
|
5430 with_gtk=yes
|
|
5431 break
|
|
5432 fi
|
|
5433 done
|
|
5434 echo "$ac_t""${GNOME_CONFIG}" 1>&6
|
|
5435 fi
|
|
5436
|
|
5437 if test "${GNOME_CONFIG}" != "no"; then
|
|
5438 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
|
|
5439 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
|
|
5440 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5441 Defining HAVE_GNOME
|
|
5442 EOF
|
|
5443 cat >> confdefs.h <<\EOF
|
|
5444 #define HAVE_GNOME 1
|
|
5445 EOF
|
|
5446 }
|
|
5447
|
|
5448 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
|
|
5449 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
|
|
5450 fi
|
|
5451
|
|
5452 if test "$with_gtk" != "no";then
|
|
5453 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
|
2131
|
5454 echo "configure:5455: checking for GTK configuration script" >&5
|
462
|
5455 for possible in gtk12-config gtk14-config gtk-config
|
|
5456 do
|
|
5457 possible_version=`${possible} --version 2> /dev/null`
|
|
5458 if test "x${possible_version}" != "x"; then
|
|
5459 GTK_CONFIG="${possible}"
|
527
|
5460 case "${possible_version}" in
|
|
5461 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
|
|
5462 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
|
|
5463 1.2.*)
|
|
5464 with_gtk=yes
|
|
5465 break
|
|
5466 ;;
|
|
5467 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
|
|
5468 esac
|
462
|
5469 fi
|
|
5470 done
|
|
5471 echo "$ac_t""${GTK_CONFIG}" 1>&6
|
|
5472 fi
|
|
5473
|
|
5474 if test "${GTK_CONFIG}" != "no"; then
|
|
5475 echo $ac_n "checking gtk version""... $ac_c" 1>&6
|
2131
|
5476 echo "configure:5477: checking gtk version" >&5
|
462
|
5477 GTK_VERSION=`${GTK_CONFIG} --version`
|
|
5478 echo "$ac_t""${GTK_VERSION}" 1>&6
|
|
5479
|
|
5480 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
|
2131
|
5481 echo "configure:5482: checking gtk libs" >&5
|
462
|
5482 GTK_LIBS=`${GTK_CONFIG} --libs`
|
|
5483 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
|
|
5484 echo "$ac_t""${GTK_LIBS}" 1>&6
|
|
5485
|
|
5486 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
|
2131
|
5487 echo "configure:5488: checking gtk cflags" >&5
|
462
|
5488 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
|
720
|
5489 if test "$GCC" = "yes"; then
|
|
5490 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
|
|
5491 fi
|
462
|
5492 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
|
|
5493 echo "$ac_t""${GTK_CFLAGS}" 1>&6
|
|
5494
|
|
5495
|
|
5496 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
|
2131
|
5497 echo "configure:5498: checking for main in -lgdk_imlib" >&5
|
462
|
5498 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
|
|
5499
|
|
5500 xe_check_libs=" -lgdk_imlib "
|
|
5501 cat > conftest.$ac_ext <<EOF
|
2131
|
5502 #line 5503 "configure"
|
462
|
5503 #include "confdefs.h"
|
|
5504
|
|
5505 int main() {
|
|
5506 main()
|
|
5507 ; return 0; }
|
|
5508 EOF
|
2131
|
5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5510 rm -rf conftest*
|
|
5511 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5512 else
|
|
5513 echo "configure: failed program was:" >&5
|
|
5514 cat conftest.$ac_ext >&5
|
|
5515 rm -rf conftest*
|
|
5516 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5517 fi
|
|
5518 rm -f conftest*
|
|
5519 xe_check_libs=""
|
|
5520
|
|
5521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5522 echo "$ac_t""yes" 1>&6
|
|
5523 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
|
|
5524 else
|
|
5525 echo "$ac_t""no" 1>&6
|
|
5526 fi
|
|
5527
|
|
5528
|
|
5529
|
|
5530 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
|
2131
|
5531 echo "configure:5532: checking for Imlib_init in -lImlib" >&5
|
462
|
5532 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
|
|
5533
|
|
5534 xe_check_libs=" -lImlib "
|
|
5535 cat > conftest.$ac_ext <<EOF
|
2131
|
5536 #line 5537 "configure"
|
462
|
5537 #include "confdefs.h"
|
|
5538 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5539 /* We use char because int might match the return type of a gcc2
|
|
5540 builtin and then its argument prototype would still apply. */
|
|
5541 char Imlib_init();
|
|
5542
|
|
5543 int main() {
|
|
5544 Imlib_init()
|
|
5545 ; return 0; }
|
|
5546 EOF
|
2131
|
5547 if { (eval echo configure:5548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5548 rm -rf conftest*
|
|
5549 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5550 else
|
|
5551 echo "configure: failed program was:" >&5
|
|
5552 cat conftest.$ac_ext >&5
|
|
5553 rm -rf conftest*
|
|
5554 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5555 fi
|
|
5556 rm -f conftest*
|
|
5557 xe_check_libs=""
|
|
5558
|
|
5559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5560 echo "$ac_t""yes" 1>&6
|
|
5561 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
|
|
5562 else
|
|
5563 echo "$ac_t""no" 1>&6
|
|
5564 fi
|
|
5565
|
|
5566
|
|
5567 for ac_func in gdk_imlib_init
|
|
5568 do
|
|
5569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
5570 echo "configure:5571: checking for $ac_func" >&5
|
|
5571
|
|
5572 cat > conftest.$ac_ext <<EOF
|
|
5573 #line 5574 "configure"
|
462
|
5574 #include "confdefs.h"
|
|
5575 /* System header to define __stub macros and hopefully few prototypes,
|
|
5576 which can conflict with char $ac_func(); below. */
|
|
5577 #include <assert.h>
|
|
5578 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5579 /* We use char because int might match the return type of a gcc2
|
|
5580 builtin and then its argument prototype would still apply. */
|
|
5581 char $ac_func();
|
|
5582
|
|
5583 int main() {
|
|
5584
|
|
5585 /* The GNU C library defines this for functions which it implements
|
|
5586 to always fail with ENOSYS. Some functions are actually named
|
|
5587 something starting with __ and the normal name is an alias. */
|
|
5588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5589 choke me
|
|
5590 #else
|
|
5591 $ac_func();
|
|
5592 #endif
|
|
5593
|
|
5594 ; return 0; }
|
|
5595 EOF
|
2131
|
5596 if { (eval echo configure:5597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5597 rm -rf conftest*
|
|
5598 eval "ac_cv_func_$ac_func=yes"
|
|
5599 else
|
|
5600 echo "configure: failed program was:" >&5
|
|
5601 cat conftest.$ac_ext >&5
|
|
5602 rm -rf conftest*
|
|
5603 eval "ac_cv_func_$ac_func=no"
|
|
5604 fi
|
|
5605 rm -f conftest*
|
|
5606
|
|
5607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5608 echo "$ac_t""yes" 1>&6
|
|
5609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5610 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5611 Defining $ac_tr_func
|
|
5612 EOF
|
|
5613 cat >> confdefs.h <<EOF
|
|
5614 #define $ac_tr_func 1
|
|
5615 EOF
|
|
5616 }
|
|
5617
|
|
5618 else
|
|
5619 echo "$ac_t""no" 1>&6
|
|
5620 fi
|
|
5621 done
|
|
5622
|
|
5623
|
|
5624 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5625 Defining HAVE_XPM
|
|
5626 EOF
|
|
5627 cat >> confdefs.h <<\EOF
|
|
5628 #define HAVE_XPM 1
|
|
5629 EOF
|
|
5630 }
|
|
5631
|
|
5632 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5633 Defining HAVE_GTK
|
|
5634 EOF
|
|
5635 cat >> confdefs.h <<\EOF
|
|
5636 #define HAVE_GTK 1
|
|
5637 EOF
|
|
5638 }
|
|
5639
|
|
5640
|
|
5641
|
|
5642 window_system=gtk
|
|
5643 with_gtk=yes
|
2131
|
5644 if test "$with_x11" != "no"; then
|
|
5645 echo "configure: warning: Configuring GTK, forcing with_x11 to no" 1>&2
|
|
5646 with_x11=no
|
|
5647 fi
|
|
5648
|
|
5649 for feature in scrollbars toolbars menubars dialogs widgets
|
|
5650 do
|
|
5651 eval "feature_value=\${with_${feature}}"
|
|
5652 case "${feature_value}" in
|
|
5653 yes|no|gtk|"" )
|
|
5654 ;;
|
|
5655 * )
|
|
5656 feature_conflict_with_gtk=yes
|
|
5657 echo "configure: warning: --with-${feature}=${feature_value} is incompatible with --with-gtk" 1>&2 ;;
|
|
5658 esac
|
|
5659 done
|
|
5660 if test "${feature_conflict_with_gtk}" = "yes"; then
|
|
5661 { echo "Error:" One or more GUI toolkit features conflict with GTK >&2; exit 1; }
|
|
5662 fi
|
462
|
5663
|
|
5664 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
|
2131
|
5665 test "${with_toolbars}" != "no" && with_toolbars=gtk
|
462
|
5666 test "${with_menubars}" != "no" && with_menubars=gtk
|
|
5667 test "${with_dialogs}" != "no" && with_dialogs=gtk
|
|
5668 test "${with_widgets}" != "no" && with_widgets=gtk
|
|
5669
|
|
5670 OLD_CFLAGS="${CFLAGS}"
|
724
|
5671 OLD_CPPFLAGS="${CPPFLAGS}"
|
462
|
5672 OLD_LDFLAGS="${LDFLAGS}"
|
|
5673 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
|
724
|
5674 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
|
462
|
5675 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
|
|
5676 for ac_hdr in glade/glade.h glade.h
|
|
5677 do
|
|
5678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
5679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2131
|
5680 echo "configure:5681: checking for $ac_hdr" >&5
|
|
5681
|
|
5682 cat > conftest.$ac_ext <<EOF
|
|
5683 #line 5684 "configure"
|
462
|
5684 #include "confdefs.h"
|
|
5685 #include <$ac_hdr>
|
|
5686 EOF
|
|
5687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
5688 { (eval echo configure:5689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
462
|
5689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
5690 if test -z "$ac_err"; then
|
|
5691 rm -rf conftest*
|
|
5692 eval "ac_cv_header_$ac_safe=yes"
|
|
5693 else
|
|
5694 echo "$ac_err" >&5
|
|
5695 echo "configure: failed program was:" >&5
|
|
5696 cat conftest.$ac_ext >&5
|
|
5697 rm -rf conftest*
|
|
5698 eval "ac_cv_header_$ac_safe=no"
|
|
5699 fi
|
|
5700 rm -f conftest*
|
|
5701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5702 echo "$ac_t""yes" 1>&6
|
|
5703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
5704 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5705 Defining $ac_tr_hdr
|
|
5706 EOF
|
|
5707 cat >> confdefs.h <<EOF
|
|
5708 #define $ac_tr_hdr 1
|
|
5709 EOF
|
|
5710 }
|
|
5711
|
|
5712 else
|
|
5713 echo "$ac_t""no" 1>&6
|
|
5714 fi
|
|
5715 done
|
|
5716
|
|
5717
|
|
5718 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
|
2131
|
5719 echo "configure:5720: checking for main in -lxml" >&5
|
462
|
5720 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
|
|
5721
|
|
5722 xe_check_libs=" -lxml "
|
|
5723 cat > conftest.$ac_ext <<EOF
|
2131
|
5724 #line 5725 "configure"
|
462
|
5725 #include "confdefs.h"
|
|
5726
|
|
5727 int main() {
|
|
5728 main()
|
|
5729 ; return 0; }
|
|
5730 EOF
|
2131
|
5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5732 rm -rf conftest*
|
|
5733 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5734 else
|
|
5735 echo "configure: failed program was:" >&5
|
|
5736 cat conftest.$ac_ext >&5
|
|
5737 rm -rf conftest*
|
|
5738 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5739 fi
|
|
5740 rm -f conftest*
|
|
5741 xe_check_libs=""
|
|
5742
|
|
5743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5744 echo "$ac_t""yes" 1>&6
|
|
5745 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
|
|
5746 else
|
|
5747 echo "$ac_t""no" 1>&6
|
|
5748 fi
|
|
5749
|
|
5750
|
|
5751
|
|
5752 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
|
2131
|
5753 echo "configure:5754: checking for main in -lglade" >&5
|
462
|
5754 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
|
|
5755
|
|
5756 xe_check_libs=" -lglade "
|
|
5757 cat > conftest.$ac_ext <<EOF
|
2131
|
5758 #line 5759 "configure"
|
462
|
5759 #include "confdefs.h"
|
|
5760
|
|
5761 int main() {
|
|
5762 main()
|
|
5763 ; return 0; }
|
|
5764 EOF
|
2131
|
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5766 rm -rf conftest*
|
|
5767 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5768 else
|
|
5769 echo "configure: failed program was:" >&5
|
|
5770 cat conftest.$ac_ext >&5
|
|
5771 rm -rf conftest*
|
|
5772 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5773 fi
|
|
5774 rm -f conftest*
|
|
5775 xe_check_libs=""
|
|
5776
|
|
5777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5778 echo "$ac_t""yes" 1>&6
|
|
5779 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
|
|
5780 else
|
|
5781 echo "$ac_t""no" 1>&6
|
|
5782 fi
|
|
5783
|
|
5784
|
|
5785
|
|
5786 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
|
2131
|
5787 echo "configure:5788: checking for main in -lglade-gnome" >&5
|
462
|
5788 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
|
|
5789
|
|
5790 xe_check_libs=" -lglade-gnome "
|
|
5791 cat > conftest.$ac_ext <<EOF
|
2131
|
5792 #line 5793 "configure"
|
462
|
5793 #include "confdefs.h"
|
|
5794
|
|
5795 int main() {
|
|
5796 main()
|
|
5797 ; return 0; }
|
|
5798 EOF
|
2131
|
5799 if { (eval echo configure:5800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5800 rm -rf conftest*
|
|
5801 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5802 else
|
|
5803 echo "configure: failed program was:" >&5
|
|
5804 cat conftest.$ac_ext >&5
|
|
5805 rm -rf conftest*
|
|
5806 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5807 fi
|
|
5808 rm -f conftest*
|
|
5809 xe_check_libs=""
|
|
5810
|
|
5811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5812 echo "$ac_t""yes" 1>&6
|
|
5813 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
|
|
5814 else
|
|
5815 echo "$ac_t""no" 1>&6
|
|
5816 fi
|
|
5817
|
|
5818
|
|
5819 cat > conftest.$ac_ext <<EOF
|
2131
|
5820 #line 5821 "configure"
|
462
|
5821 #include "confdefs.h"
|
|
5822 #include <glade/glade-xml.h>
|
|
5823 EOF
|
|
5824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5825 egrep "char \*txtdomain;" >/dev/null 2>&1; then
|
|
5826 rm -rf conftest*
|
|
5827 echo "$ac_t""yes" 1>&6
|
|
5828 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5829 Defining LIBGLADE_XML_TXTDOMAIN = 1
|
|
5830 EOF
|
|
5831 cat >> confdefs.h <<\EOF
|
|
5832 #define LIBGLADE_XML_TXTDOMAIN 1
|
|
5833 EOF
|
|
5834 }
|
|
5835
|
|
5836 else
|
|
5837 rm -rf conftest*
|
|
5838 echo "$ac_t""no" 1>&6
|
|
5839 fi
|
|
5840 rm -f conftest*
|
|
5841
|
|
5842 CFLAGS="${OLD_CFLAGS}"
|
724
|
5843 CPPFLAGS="${OLD_CPPFLAGS}"
|
462
|
5844 LDFLAGS="${OLD_LDFLAGS}"
|
|
5845 fi
|
|
5846
|
149
|
5847
|
187
|
5848 if test "$with_x11" != "no"; then
|
|
5849 test "$x_includes $x_libraries" != "NONE NONE" && \
|
|
5850 window_system=x11 with_x11=yes
|
|
5851
|
272
|
5852
|
|
5853 if test "$x_includes $x_libraries" = "NONE NONE" \
|
|
5854 -a -n "$OPENWINHOME" \
|
|
5855 -a "$OPENWINHOME" != "/usr/openwin" \
|
|
5856 -a -d "$OPENWINHOME"; then
|
187
|
5857 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
|
|
5858 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
|
|
5859 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
|
272
|
5860 fi
|
|
5861
|
|
5862 if test "$x_includes" = "NONE"; then
|
|
5863 for dir in "/usr/X11" "/usr/X11R6"; do
|
|
5864 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
|
|
5865 done
|
|
5866 fi
|
|
5867
|
|
5868 if test "$x_libraries" = "NONE"; then
|
|
5869 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
|
|
5870 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
|
|
5871 done
|
149
|
5872 fi
|
187
|
5873
|
149
|
5874 # If we find X, set shell vars x_includes and x_libraries to the
|
|
5875 # paths, otherwise set no_x=yes.
|
|
5876 # Uses ac_ vars as temps to allow command line to override cache and checks.
|
|
5877 # --without-x overrides everything else, but does not touch the cache.
|
|
5878 echo $ac_n "checking for X""... $ac_c" 1>&6
|
2131
|
5879 echo "configure:5880: checking for X" >&5
|
149
|
5880
|
|
5881 # Check whether --with-x or --without-x was given.
|
|
5882 if test "${with_x+set}" = set; then
|
|
5883 withval="$with_x"
|
|
5884 :
|
|
5885 fi
|
|
5886
|
|
5887 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
5888 if test "x$with_x" = xno; then
|
|
5889 # The user explicitly disabled X.
|
|
5890 have_x=disabled
|
|
5891 else
|
|
5892 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|
5893 # Both variables are already set.
|
|
5894 have_x=yes
|
|
5895 else
|
|
5896
|
|
5897 # One or both of the vars are not set, and there is no cached value.
|
|
5898 ac_x_includes=NO ac_x_libraries=NO
|
0
|
5899 rm -fr conftestdir
|
|
5900 if mkdir conftestdir; then
|
|
5901 cd conftestdir
|
|
5902 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
5903 cat > Imakefile <<'EOF'
|
|
5904 acfindx:
|
|
5905 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
5906 EOF
|
|
5907 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
5908 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
149
|
5909 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
0
|
5910 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
149
|
5911 for ac_extension in a so sl; do
|
|
5912 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
|
5913 test -f $ac_im_libdir/libX11.$ac_extension; then
|
|
5914 ac_im_usrlibdir=$ac_im_libdir; break
|
|
5915 fi
|
|
5916 done
|
|
5917 # Screen out bogus values from the imake configuration. They are
|
|
5918 # bogus both because they are the default anyway, and because
|
|
5919 # using them would break gcc on systems where it needs fixed includes.
|
0
|
5920 case "$ac_im_incroot" in
|
|
5921 /usr/include) ;;
|
149
|
5922 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
0
|
5923 esac
|
|
5924 case "$ac_im_usrlibdir" in
|
|
5925 /usr/lib | /lib) ;;
|
149
|
5926 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
0
|
5927 esac
|
|
5928 fi
|
|
5929 cd ..
|
|
5930 rm -fr conftestdir
|
|
5931 fi
|
|
5932
|
149
|
5933 if test "$ac_x_includes" = NO; then
|
|
5934 # Guess where to find include files, by looking for this one X11 .h file.
|
|
5935 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|
5936
|
|
5937 # First, try using that file with no special directory specified.
|
|
5938 cat > conftest.$ac_ext <<EOF
|
2131
|
5939 #line 5940 "configure"
|
0
|
5940 #include "confdefs.h"
|
|
5941 #include <$x_direct_test_include>
|
|
5942 EOF
|
149
|
5943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
5944 { (eval echo configure:5945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
5945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
5946 if test -z "$ac_err"; then
|
|
5947 rm -rf conftest*
|
149
|
5948 # We can compile using X headers with no special include directory.
|
|
5949 ac_x_includes=
|
|
5950 else
|
|
5951 echo "$ac_err" >&5
|
|
5952 echo "configure: failed program was:" >&5
|
|
5953 cat conftest.$ac_ext >&5
|
|
5954 rm -rf conftest*
|
|
5955 # Look for the header file in a standard set of common directories.
|
|
5956 # Check X11 before X11Rn because it is often a symlink to the current release.
|
0
|
5957 for ac_dir in \
|
149
|
5958 /usr/X11/include \
|
0
|
5959 /usr/X11R6/include \
|
|
5960 /usr/X11R5/include \
|
|
5961 /usr/X11R4/include \
|
|
5962 \
|
149
|
5963 /usr/include/X11 \
|
0
|
5964 /usr/include/X11R6 \
|
|
5965 /usr/include/X11R5 \
|
|
5966 /usr/include/X11R4 \
|
|
5967 \
|
149
|
5968 /usr/local/X11/include \
|
0
|
5969 /usr/local/X11R6/include \
|
|
5970 /usr/local/X11R5/include \
|
|
5971 /usr/local/X11R4/include \
|
|
5972 \
|
149
|
5973 /usr/local/include/X11 \
|
0
|
5974 /usr/local/include/X11R6 \
|
|
5975 /usr/local/include/X11R5 \
|
|
5976 /usr/local/include/X11R4 \
|
|
5977 \
|
|
5978 /usr/X386/include \
|
|
5979 /usr/x386/include \
|
|
5980 /usr/XFree86/include/X11 \
|
|
5981 \
|
|
5982 /usr/include \
|
|
5983 /usr/local/include \
|
|
5984 /usr/unsupported/include \
|
|
5985 /usr/athena/include \
|
|
5986 /usr/local/x11r5/include \
|
|
5987 /usr/lpp/Xamples/include \
|
|
5988 \
|
|
5989 /usr/openwin/include \
|
|
5990 /usr/openwin/share/include \
|
|
5991 ; \
|
|
5992 do
|
|
5993 if test -r "$ac_dir/$x_direct_test_include"; then
|
149
|
5994 ac_x_includes=$ac_dir
|
0
|
5995 break
|
|
5996 fi
|
|
5997 done
|
|
5998 fi
|
|
5999 rm -f conftest*
|
149
|
6000 fi # $ac_x_includes = NO
|
|
6001
|
|
6002 if test "$ac_x_libraries" = NO; then
|
|
6003 # Check for the libraries.
|
|
6004
|
|
6005 test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|
6006 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|
6007
|
|
6008 # See if we find them without any special options.
|
|
6009 # Don't add to $LIBS permanently.
|
|
6010 ac_save_LIBS="$LIBS"
|
|
6011 LIBS="-l$x_direct_test_library $LIBS"
|
|
6012 cat > conftest.$ac_ext <<EOF
|
2131
|
6013 #line 6014 "configure"
|
149
|
6014 #include "confdefs.h"
|
|
6015
|
|
6016 int main() {
|
|
6017 ${x_direct_test_function}()
|
|
6018 ; return 0; }
|
|
6019 EOF
|
2131
|
6020 if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6021 rm -rf conftest*
|
|
6022 LIBS="$ac_save_LIBS"
|
|
6023 # We can link X programs with no special library path.
|
|
6024 ac_x_libraries=
|
|
6025 else
|
|
6026 echo "configure: failed program was:" >&5
|
|
6027 cat conftest.$ac_ext >&5
|
|
6028 rm -rf conftest*
|
|
6029 LIBS="$ac_save_LIBS"
|
|
6030 # First see if replacing the include by lib works.
|
|
6031 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
6032 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|
6033 /usr/X11/lib \
|
0
|
6034 /usr/X11R6/lib \
|
|
6035 /usr/X11R5/lib \
|
|
6036 /usr/X11R4/lib \
|
|
6037 \
|
149
|
6038 /usr/lib/X11 \
|
0
|
6039 /usr/lib/X11R6 \
|
|
6040 /usr/lib/X11R5 \
|
|
6041 /usr/lib/X11R4 \
|
|
6042 \
|
149
|
6043 /usr/local/X11/lib \
|
0
|
6044 /usr/local/X11R6/lib \
|
|
6045 /usr/local/X11R5/lib \
|
|
6046 /usr/local/X11R4/lib \
|
|
6047 \
|
149
|
6048 /usr/local/lib/X11 \
|
0
|
6049 /usr/local/lib/X11R6 \
|
|
6050 /usr/local/lib/X11R5 \
|
|
6051 /usr/local/lib/X11R4 \
|
|
6052 \
|
|
6053 /usr/X386/lib \
|
|
6054 /usr/x386/lib \
|
|
6055 /usr/XFree86/lib/X11 \
|
|
6056 \
|
|
6057 /usr/lib \
|
|
6058 /usr/local/lib \
|
|
6059 /usr/unsupported/lib \
|
|
6060 /usr/athena/lib \
|
|
6061 /usr/local/x11r5/lib \
|
|
6062 /usr/lpp/Xamples/lib \
|
149
|
6063 /lib/usr/lib/X11 \
|
0
|
6064 \
|
|
6065 /usr/openwin/lib \
|
|
6066 /usr/openwin/share/lib \
|
|
6067 ; \
|
|
6068 do
|
|
6069 for ac_extension in a so sl; do
|
|
6070 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
149
|
6071 ac_x_libraries=$ac_dir
|
0
|
6072 break 2
|
|
6073 fi
|
|
6074 done
|
|
6075 done
|
|
6076 fi
|
149
|
6077 rm -f conftest*
|
|
6078 fi # $ac_x_libraries = NO
|
|
6079
|
|
6080 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|
6081 # Didn't find X anywhere. Cache the known absence of X.
|
|
6082 ac_cv_have_x="have_x=no"
|
|
6083 else
|
|
6084 # Record where we found X for the cache.
|
|
6085 ac_cv_have_x="have_x=yes \
|
|
6086 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|
6087 fi
|
|
6088 fi
|
|
6089 eval "$ac_cv_have_x"
|
|
6090 fi # $with_x != no
|
|
6091
|
|
6092 if test "$have_x" != yes; then
|
|
6093 echo "$ac_t""$have_x" 1>&6
|
|
6094 no_x=yes
|
|
6095 else
|
|
6096 # If each of the values was on the command line, it overrides each guess.
|
|
6097 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|
6098 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|
6099 # Update the cache value to reflect the command line values.
|
|
6100 ac_cv_have_x="have_x=yes \
|
|
6101 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|
6102 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|
6103 fi
|
|
6104
|
|
6105 if test "$no_x" = yes; then
|
|
6106 # Not all programs may use this symbol, but it does not hurt to define it.
|
|
6107 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6108 Defining X_DISPLAY_MISSING
|
|
6109 EOF
|
|
6110 cat >> confdefs.h <<\EOF
|
|
6111 #define X_DISPLAY_MISSING 1
|
|
6112 EOF
|
|
6113 }
|
|
6114
|
|
6115 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
|
6116 else
|
|
6117 if test -n "$x_includes"; then
|
|
6118 X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|
6119 fi
|
|
6120
|
|
6121 # It would also be nice to do this for all -L options, not just this one.
|
|
6122 if test -n "$x_libraries"; then
|
|
6123 X_LIBS="$X_LIBS -L$x_libraries"
|
|
6124 # For Solaris; some versions of Sun CC require a space after -R and
|
|
6125 # others require no space. Words are not sufficient . . . .
|
|
6126 case "`(uname -sr) 2>/dev/null`" in
|
|
6127 "SunOS 5"*)
|
|
6128 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
2131
|
6129 echo "configure:6130: checking whether -R must be followed by a space" >&5
|
149
|
6130 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
|
6131 cat > conftest.$ac_ext <<EOF
|
2131
|
6132 #line 6133 "configure"
|
|
6133 #include "confdefs.h"
|
|
6134
|
|
6135 int main() {
|
|
6136
|
|
6137 ; return 0; }
|
|
6138 EOF
|
|
6139 if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6140 rm -rf conftest*
|
|
6141 ac_R_nospace=yes
|
|
6142 else
|
|
6143 echo "configure: failed program was:" >&5
|
|
6144 cat conftest.$ac_ext >&5
|
|
6145 rm -rf conftest*
|
|
6146 ac_R_nospace=no
|
|
6147 fi
|
|
6148 rm -f conftest*
|
|
6149 if test $ac_R_nospace = yes; then
|
|
6150 echo "$ac_t""no" 1>&6
|
|
6151 X_LIBS="$X_LIBS -R$x_libraries"
|
|
6152 else
|
|
6153 LIBS="$ac_xsave_LIBS -R $x_libraries"
|
|
6154 cat > conftest.$ac_ext <<EOF
|
2131
|
6155 #line 6156 "configure"
|
|
6156 #include "confdefs.h"
|
|
6157
|
|
6158 int main() {
|
|
6159
|
|
6160 ; return 0; }
|
|
6161 EOF
|
|
6162 if { (eval echo configure:6163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6163 rm -rf conftest*
|
|
6164 ac_R_space=yes
|
|
6165 else
|
|
6166 echo "configure: failed program was:" >&5
|
|
6167 cat conftest.$ac_ext >&5
|
|
6168 rm -rf conftest*
|
|
6169 ac_R_space=no
|
|
6170 fi
|
|
6171 rm -f conftest*
|
|
6172 if test $ac_R_space = yes; then
|
|
6173 echo "$ac_t""yes" 1>&6
|
|
6174 X_LIBS="$X_LIBS -R $x_libraries"
|
|
6175 else
|
|
6176 echo "$ac_t""neither works" 1>&6
|
|
6177 fi
|
|
6178 fi
|
|
6179 LIBS="$ac_xsave_LIBS"
|
|
6180 esac
|
|
6181 fi
|
|
6182
|
|
6183 # Check for system-dependent libraries X programs must link with.
|
|
6184 # Do this before checking for the system-independent R6 libraries
|
|
6185 # (-lICE), since we may need -lsocket or whatever for X linking.
|
|
6186
|
|
6187 if test "$ISC" = yes; then
|
|
6188 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
|
6189 else
|
|
6190 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
|
6191 # libraries were built with DECnet support. And karl@cs.umb.edu says
|
|
6192 # the Alpha needs dnet_stub (dnet does not exist).
|
151
|
6193 if test "$with_dnet" = "no" ; then
|
149
|
6194 ac_cv_lib_dnet_dnet_ntoa=no
|
|
6195 else
|
|
6196
|
|
6197 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
2131
|
6198 echo "configure:6199: checking for dnet_ntoa in -ldnet" >&5
|
149
|
6199 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
6200
|
|
6201 xe_check_libs=" -ldnet "
|
|
6202 cat > conftest.$ac_ext <<EOF
|
2131
|
6203 #line 6204 "configure"
|
149
|
6204 #include "confdefs.h"
|
|
6205 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6206 /* We use char because int might match the return type of a gcc2
|
|
6207 builtin and then its argument prototype would still apply. */
|
|
6208 char dnet_ntoa();
|
|
6209
|
|
6210 int main() {
|
|
6211 dnet_ntoa()
|
|
6212 ; return 0; }
|
|
6213 EOF
|
2131
|
6214 if { (eval echo configure:6215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6215 rm -rf conftest*
|
|
6216 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6217 else
|
|
6218 echo "configure: failed program was:" >&5
|
|
6219 cat conftest.$ac_ext >&5
|
|
6220 rm -rf conftest*
|
|
6221 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6222 fi
|
|
6223 rm -f conftest*
|
|
6224 xe_check_libs=""
|
|
6225
|
151
|
6226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6227 echo "$ac_t""yes" 1>&6
|
|
6228 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
|
6229 else
|
|
6230 echo "$ac_t""no" 1>&6
|
|
6231 fi
|
|
6232
|
|
6233 fi
|
|
6234
|
|
6235 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
|
6236
|
|
6237 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
2131
|
6238 echo "configure:6239: checking for dnet_ntoa in -ldnet_stub" >&5
|
149
|
6239 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
6240
|
|
6241 xe_check_libs=" -ldnet_stub "
|
|
6242 cat > conftest.$ac_ext <<EOF
|
2131
|
6243 #line 6244 "configure"
|
149
|
6244 #include "confdefs.h"
|
|
6245 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6246 /* We use char because int might match the return type of a gcc2
|
|
6247 builtin and then its argument prototype would still apply. */
|
|
6248 char dnet_ntoa();
|
|
6249
|
|
6250 int main() {
|
|
6251 dnet_ntoa()
|
|
6252 ; return 0; }
|
|
6253 EOF
|
2131
|
6254 if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6255 rm -rf conftest*
|
|
6256 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6257 else
|
|
6258 echo "configure: failed program was:" >&5
|
|
6259 cat conftest.$ac_ext >&5
|
|
6260 rm -rf conftest*
|
|
6261 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6262 fi
|
|
6263 rm -f conftest*
|
|
6264 xe_check_libs=""
|
|
6265
|
151
|
6266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6267 echo "$ac_t""yes" 1>&6
|
|
6268 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
|
6269 else
|
|
6270 echo "$ac_t""no" 1>&6
|
|
6271 fi
|
|
6272
|
|
6273
|
|
6274 fi
|
|
6275
|
|
6276 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|
6277 # to get the SysV transport functions.
|
|
6278 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|
6279 # needs -lnsl.
|
|
6280 # The nsl library prevents programs from opening the X display
|
|
6281 # on Irix 5.2, according to dickey@clark.net.
|
|
6282 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
2131
|
6283 echo "configure:6284: checking for gethostbyname" >&5
|
|
6284
|
|
6285 cat > conftest.$ac_ext <<EOF
|
|
6286 #line 6287 "configure"
|
149
|
6287 #include "confdefs.h"
|
|
6288 /* System header to define __stub macros and hopefully few prototypes,
|
|
6289 which can conflict with char gethostbyname(); below. */
|
|
6290 #include <assert.h>
|
|
6291 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6292 /* We use char because int might match the return type of a gcc2
|
|
6293 builtin and then its argument prototype would still apply. */
|
|
6294 char gethostbyname();
|
|
6295
|
|
6296 int main() {
|
|
6297
|
|
6298 /* The GNU C library defines this for functions which it implements
|
|
6299 to always fail with ENOSYS. Some functions are actually named
|
|
6300 something starting with __ and the normal name is an alias. */
|
|
6301 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|
6302 choke me
|
|
6303 #else
|
|
6304 gethostbyname();
|
|
6305 #endif
|
|
6306
|
|
6307 ; return 0; }
|
|
6308 EOF
|
2131
|
6309 if { (eval echo configure:6310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6310 rm -rf conftest*
|
|
6311 eval "ac_cv_func_gethostbyname=yes"
|
|
6312 else
|
|
6313 echo "configure: failed program was:" >&5
|
|
6314 cat conftest.$ac_ext >&5
|
|
6315 rm -rf conftest*
|
|
6316 eval "ac_cv_func_gethostbyname=no"
|
|
6317 fi
|
|
6318 rm -f conftest*
|
|
6319
|
|
6320 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|
6321 echo "$ac_t""yes" 1>&6
|
|
6322 :
|
|
6323 else
|
|
6324 echo "$ac_t""no" 1>&6
|
|
6325 fi
|
|
6326
|
|
6327 if test $ac_cv_func_gethostbyname = no; then
|
|
6328
|
|
6329 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
2131
|
6330 echo "configure:6331: checking for gethostbyname in -lnsl" >&5
|
149
|
6331 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
6332
|
|
6333 xe_check_libs=" -lnsl "
|
|
6334 cat > conftest.$ac_ext <<EOF
|
2131
|
6335 #line 6336 "configure"
|
149
|
6336 #include "confdefs.h"
|
|
6337 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6338 /* We use char because int might match the return type of a gcc2
|
|
6339 builtin and then its argument prototype would still apply. */
|
|
6340 char gethostbyname();
|
|
6341
|
|
6342 int main() {
|
|
6343 gethostbyname()
|
|
6344 ; return 0; }
|
|
6345 EOF
|
2131
|
6346 if { (eval echo configure:6347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6347 rm -rf conftest*
|
|
6348 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6349 else
|
|
6350 echo "configure: failed program was:" >&5
|
|
6351 cat conftest.$ac_ext >&5
|
|
6352 rm -rf conftest*
|
|
6353 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6354 fi
|
|
6355 rm -f conftest*
|
|
6356 xe_check_libs=""
|
|
6357
|
151
|
6358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6359 echo "$ac_t""yes" 1>&6
|
|
6360 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
|
6361 else
|
|
6362 echo "$ac_t""no" 1>&6
|
|
6363 fi
|
|
6364
|
|
6365
|
|
6366 fi
|
|
6367
|
|
6368 # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|
6369 # socket/setsockopt and other routines are undefined under SCO ODT
|
|
6370 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|
6371 # on later versions), says simon@lia.di.epfl.ch: it contains
|
|
6372 # gethostby* variants that don't use the nameserver (or something).
|
|
6373 # -lsocket must be given before -lnsl if both are needed.
|
|
6374 # We assume that if connect needs -lnsl, so does gethostbyname.
|
|
6375 echo $ac_n "checking for connect""... $ac_c" 1>&6
|
2131
|
6376 echo "configure:6377: checking for connect" >&5
|
|
6377
|
|
6378 cat > conftest.$ac_ext <<EOF
|
|
6379 #line 6380 "configure"
|
149
|
6380 #include "confdefs.h"
|
|
6381 /* System header to define __stub macros and hopefully few prototypes,
|
|
6382 which can conflict with char connect(); below. */
|
|
6383 #include <assert.h>
|
|
6384 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6385 /* We use char because int might match the return type of a gcc2
|
|
6386 builtin and then its argument prototype would still apply. */
|
|
6387 char connect();
|
|
6388
|
|
6389 int main() {
|
|
6390
|
|
6391 /* The GNU C library defines this for functions which it implements
|
|
6392 to always fail with ENOSYS. Some functions are actually named
|
|
6393 something starting with __ and the normal name is an alias. */
|
|
6394 #if defined (__stub_connect) || defined (__stub___connect)
|
|
6395 choke me
|
|
6396 #else
|
|
6397 connect();
|
|
6398 #endif
|
|
6399
|
|
6400 ; return 0; }
|
|
6401 EOF
|
2131
|
6402 if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6403 rm -rf conftest*
|
|
6404 eval "ac_cv_func_connect=yes"
|
|
6405 else
|
|
6406 echo "configure: failed program was:" >&5
|
|
6407 cat conftest.$ac_ext >&5
|
|
6408 rm -rf conftest*
|
|
6409 eval "ac_cv_func_connect=no"
|
|
6410 fi
|
|
6411 rm -f conftest*
|
|
6412
|
|
6413 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|
6414 echo "$ac_t""yes" 1>&6
|
|
6415 :
|
|
6416 else
|
|
6417 echo "$ac_t""no" 1>&6
|
|
6418 fi
|
|
6419
|
|
6420 if test $ac_cv_func_connect = no; then
|
|
6421
|
|
6422 xe_msg_checking="for connect in -lsocket"
|
|
6423 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
6424 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2131
|
6425 echo "configure:6426: checking "$xe_msg_checking"" >&5
|
149
|
6426 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|
6427
|
|
6428 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
|
|
6429 cat > conftest.$ac_ext <<EOF
|
2131
|
6430 #line 6431 "configure"
|
149
|
6431 #include "confdefs.h"
|
|
6432 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6433 /* We use char because int might match the return type of a gcc2
|
|
6434 builtin and then its argument prototype would still apply. */
|
|
6435 char connect();
|
|
6436
|
|
6437 int main() {
|
|
6438 connect()
|
|
6439 ; return 0; }
|
|
6440 EOF
|
2131
|
6441 if { (eval echo configure:6442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6442 rm -rf conftest*
|
|
6443 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6444 else
|
|
6445 echo "configure: failed program was:" >&5
|
|
6446 cat conftest.$ac_ext >&5
|
|
6447 rm -rf conftest*
|
|
6448 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6449 fi
|
|
6450 rm -f conftest*
|
|
6451 xe_check_libs=""
|
|
6452
|
151
|
6453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6454 echo "$ac_t""yes" 1>&6
|
|
6455 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
|
6456 else
|
|
6457 echo "$ac_t""no" 1>&6
|
|
6458 fi
|
|
6459
|
|
6460
|
|
6461 fi
|
|
6462
|
|
6463 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
|
6464 echo $ac_n "checking for remove""... $ac_c" 1>&6
|
2131
|
6465 echo "configure:6466: checking for remove" >&5
|
|
6466
|
|
6467 cat > conftest.$ac_ext <<EOF
|
|
6468 #line 6469 "configure"
|
149
|
6469 #include "confdefs.h"
|
|
6470 /* System header to define __stub macros and hopefully few prototypes,
|
|
6471 which can conflict with char remove(); below. */
|
|
6472 #include <assert.h>
|
|
6473 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6474 /* We use char because int might match the return type of a gcc2
|
|
6475 builtin and then its argument prototype would still apply. */
|
|
6476 char remove();
|
|
6477
|
|
6478 int main() {
|
|
6479
|
|
6480 /* The GNU C library defines this for functions which it implements
|
|
6481 to always fail with ENOSYS. Some functions are actually named
|
|
6482 something starting with __ and the normal name is an alias. */
|
|
6483 #if defined (__stub_remove) || defined (__stub___remove)
|
|
6484 choke me
|
|
6485 #else
|
|
6486 remove();
|
|
6487 #endif
|
|
6488
|
|
6489 ; return 0; }
|
|
6490 EOF
|
2131
|
6491 if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6492 rm -rf conftest*
|
|
6493 eval "ac_cv_func_remove=yes"
|
|
6494 else
|
|
6495 echo "configure: failed program was:" >&5
|
|
6496 cat conftest.$ac_ext >&5
|
|
6497 rm -rf conftest*
|
|
6498 eval "ac_cv_func_remove=no"
|
|
6499 fi
|
|
6500 rm -f conftest*
|
|
6501
|
|
6502 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
|
6503 echo "$ac_t""yes" 1>&6
|
|
6504 :
|
|
6505 else
|
|
6506 echo "$ac_t""no" 1>&6
|
|
6507 fi
|
|
6508
|
|
6509 if test $ac_cv_func_remove = no; then
|
|
6510
|
|
6511 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
2131
|
6512 echo "configure:6513: checking for remove in -lposix" >&5
|
149
|
6513 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
|
6514
|
|
6515 xe_check_libs=" -lposix "
|
|
6516 cat > conftest.$ac_ext <<EOF
|
2131
|
6517 #line 6518 "configure"
|
149
|
6518 #include "confdefs.h"
|
|
6519 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6520 /* We use char because int might match the return type of a gcc2
|
|
6521 builtin and then its argument prototype would still apply. */
|
|
6522 char remove();
|
|
6523
|
|
6524 int main() {
|
|
6525 remove()
|
|
6526 ; return 0; }
|
|
6527 EOF
|
2131
|
6528 if { (eval echo configure:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6529 rm -rf conftest*
|
|
6530 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6531 else
|
|
6532 echo "configure: failed program was:" >&5
|
|
6533 cat conftest.$ac_ext >&5
|
|
6534 rm -rf conftest*
|
|
6535 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6536 fi
|
|
6537 rm -f conftest*
|
|
6538 xe_check_libs=""
|
|
6539
|
151
|
6540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6541 echo "$ac_t""yes" 1>&6
|
|
6542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
|
6543 else
|
|
6544 echo "$ac_t""no" 1>&6
|
|
6545 fi
|
|
6546
|
|
6547
|
|
6548 fi
|
|
6549
|
|
6550 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|
6551 echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
2131
|
6552 echo "configure:6553: checking for shmat" >&5
|
|
6553
|
|
6554 cat > conftest.$ac_ext <<EOF
|
|
6555 #line 6556 "configure"
|
149
|
6556 #include "confdefs.h"
|
|
6557 /* System header to define __stub macros and hopefully few prototypes,
|
|
6558 which can conflict with char shmat(); below. */
|
|
6559 #include <assert.h>
|
|
6560 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6561 /* We use char because int might match the return type of a gcc2
|
|
6562 builtin and then its argument prototype would still apply. */
|
|
6563 char shmat();
|
|
6564
|
|
6565 int main() {
|
|
6566
|
|
6567 /* The GNU C library defines this for functions which it implements
|
|
6568 to always fail with ENOSYS. Some functions are actually named
|
|
6569 something starting with __ and the normal name is an alias. */
|
|
6570 #if defined (__stub_shmat) || defined (__stub___shmat)
|
|
6571 choke me
|
|
6572 #else
|
|
6573 shmat();
|
|
6574 #endif
|
|
6575
|
|
6576 ; return 0; }
|
|
6577 EOF
|
2131
|
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6579 rm -rf conftest*
|
|
6580 eval "ac_cv_func_shmat=yes"
|
|
6581 else
|
|
6582 echo "configure: failed program was:" >&5
|
|
6583 cat conftest.$ac_ext >&5
|
|
6584 rm -rf conftest*
|
|
6585 eval "ac_cv_func_shmat=no"
|
|
6586 fi
|
|
6587 rm -f conftest*
|
|
6588
|
|
6589 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
|
6590 echo "$ac_t""yes" 1>&6
|
|
6591 :
|
|
6592 else
|
|
6593 echo "$ac_t""no" 1>&6
|
|
6594 fi
|
|
6595
|
|
6596 if test $ac_cv_func_shmat = no; then
|
|
6597
|
|
6598 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
2131
|
6599 echo "configure:6600: checking for shmat in -lipc" >&5
|
149
|
6600 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
|
6601
|
|
6602 xe_check_libs=" -lipc "
|
|
6603 cat > conftest.$ac_ext <<EOF
|
2131
|
6604 #line 6605 "configure"
|
149
|
6605 #include "confdefs.h"
|
|
6606 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6607 /* We use char because int might match the return type of a gcc2
|
|
6608 builtin and then its argument prototype would still apply. */
|
|
6609 char shmat();
|
|
6610
|
|
6611 int main() {
|
|
6612 shmat()
|
|
6613 ; return 0; }
|
|
6614 EOF
|
2131
|
6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6616 rm -rf conftest*
|
|
6617 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6618 else
|
|
6619 echo "configure: failed program was:" >&5
|
|
6620 cat conftest.$ac_ext >&5
|
|
6621 rm -rf conftest*
|
|
6622 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6623 fi
|
|
6624 rm -f conftest*
|
|
6625 xe_check_libs=""
|
|
6626
|
151
|
6627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6628 echo "$ac_t""yes" 1>&6
|
|
6629 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
|
6630 else
|
|
6631 echo "$ac_t""no" 1>&6
|
|
6632 fi
|
|
6633
|
0
|
6634
|
|
6635 fi
|
149
|
6636 fi
|
|
6637
|
|
6638 # Check for libraries that X11R6 Xt/Xaw programs need.
|
|
6639 ac_save_LDFLAGS="$LDFLAGS"
|
|
6640 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
|
6641 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|
6642 # check for ICE first), but we must link in the order -lSM -lICE or
|
|
6643 # we get undefined symbols. So assume we have SM if we have ICE.
|
|
6644 # These have to be linked with before -lX11, unlike the other
|
|
6645 # libraries we check for below, so use a different variable.
|
|
6646 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
|
6647
|
420
|
6648 xe_msg_checking="for IceConnectionNumber in -lICE"
|
|
6649 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
6650 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2131
|
6651 echo "configure:6652: checking "$xe_msg_checking"" >&5
|
149
|
6652 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
|
6653
|
420
|
6654 xe_check_libs=" -lICE $X_EXTRA_LIBS"
|
|
6655 cat > conftest.$ac_ext <<EOF
|
2131
|
6656 #line 6657 "configure"
|
149
|
6657 #include "confdefs.h"
|
|
6658 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6659 /* We use char because int might match the return type of a gcc2
|
|
6660 builtin and then its argument prototype would still apply. */
|
|
6661 char IceConnectionNumber();
|
|
6662
|
|
6663 int main() {
|
|
6664 IceConnectionNumber()
|
|
6665 ; return 0; }
|
|
6666 EOF
|
2131
|
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6668 rm -rf conftest*
|
|
6669 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6670 else
|
|
6671 echo "configure: failed program was:" >&5
|
|
6672 cat conftest.$ac_ext >&5
|
|
6673 rm -rf conftest*
|
|
6674 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6675 fi
|
|
6676 rm -f conftest*
|
|
6677 xe_check_libs=""
|
|
6678
|
151
|
6679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6680 echo "$ac_t""yes" 1>&6
|
|
6681 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
|
6682 else
|
|
6683 echo "$ac_t""no" 1>&6
|
|
6684 fi
|
|
6685
|
|
6686
|
|
6687 LDFLAGS="$ac_save_LDFLAGS"
|
|
6688
|
|
6689 fi
|
|
6690 # Autoconf claims to find X library and include dirs for us.
|
|
6691 if test "$no_x" = "yes"
|
|
6692 then with_x11=no window_system=none HAVE_X_WINDOWS=no
|
|
6693 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
|
|
6694 fi
|
|
6695 fi
|
|
6696
|
0
|
6697
|
149
|
6698 if test "$with_x11" = "yes"; then
|
|
6699 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6700 Defining HAVE_X_WINDOWS
|
|
6701 EOF
|
|
6702 cat >> confdefs.h <<\EOF
|
|
6703 #define HAVE_X_WINDOWS 1
|
|
6704 EOF
|
|
6705 }
|
|
6706
|
151
|
6707 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
|
175
|
6708 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
|
149
|
6709
|
1454
|
6710
|
|
6711 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
|
6712 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
2131
|
6713 echo "configure:6714: checking for Xm/Xm.h" >&5
|
|
6714
|
|
6715 cat > conftest.$ac_ext <<EOF
|
|
6716 #line 6717 "configure"
|
1454
|
6717 #include "confdefs.h"
|
|
6718 #include <Xm/Xm.h>
|
|
6719 EOF
|
|
6720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
6721 { (eval echo configure:6722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1454
|
6722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
6723 if test -z "$ac_err"; then
|
|
6724 rm -rf conftest*
|
|
6725 eval "ac_cv_header_$ac_safe=yes"
|
|
6726 else
|
|
6727 echo "$ac_err" >&5
|
|
6728 echo "configure: failed program was:" >&5
|
|
6729 cat conftest.$ac_ext >&5
|
|
6730 rm -rf conftest*
|
|
6731 eval "ac_cv_header_$ac_safe=no"
|
|
6732 fi
|
|
6733 rm -f conftest*
|
|
6734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6735 echo "$ac_t""yes" 1>&6
|
|
6736
|
|
6737 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
2131
|
6738 echo "configure:6739: checking for XmStringFree in -lXm" >&5
|
1454
|
6739 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
6740
|
|
6741 xe_check_libs=" -lXm "
|
|
6742 cat > conftest.$ac_ext <<EOF
|
2131
|
6743 #line 6744 "configure"
|
1454
|
6744 #include "confdefs.h"
|
|
6745 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6746 /* We use char because int might match the return type of a gcc2
|
|
6747 builtin and then its argument prototype would still apply. */
|
|
6748 char XmStringFree();
|
|
6749
|
|
6750 int main() {
|
|
6751 XmStringFree()
|
|
6752 ; return 0; }
|
|
6753 EOF
|
2131
|
6754 if { (eval echo configure:6755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1454
|
6755 rm -rf conftest*
|
|
6756 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6757 else
|
|
6758 echo "configure: failed program was:" >&5
|
|
6759 cat conftest.$ac_ext >&5
|
|
6760 rm -rf conftest*
|
|
6761 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6762 fi
|
|
6763 rm -f conftest*
|
|
6764 xe_check_libs=""
|
|
6765
|
|
6766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6767 echo "$ac_t""yes" 1>&6
|
|
6768 got_motif=yes
|
|
6769 else
|
|
6770 echo "$ac_t""no" 1>&6
|
|
6771 fi
|
|
6772
|
|
6773
|
|
6774 else
|
|
6775 echo "$ac_t""no" 1>&6
|
|
6776 fi
|
|
6777
|
|
6778
|
|
6779 if test "$got_motif" != "yes"; then
|
|
6780 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
|
|
6781 "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
|
|
6782 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
|
|
6783 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
|
6784 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
6785 x_libraries="$lib_dir $x_libraries"
|
|
6786 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
|
|
6787 esac
|
|
6788 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
6789 x_includes="$inc_dir $x_includes"
|
|
6790 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
|
|
6791 esac
|
|
6792 break; fi
|
|
6793 done
|
|
6794 fi
|
149
|
6795
|
|
6796 for rel in "X11R6" "X11R5" "X11R4"; do
|
|
6797 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
|
|
6798 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
151
|
6799 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
6800 x_libraries="$x_libraries $lib_dir"
|
|
6801 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
|
149
|
6802 esac
|
151
|
6803 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
6804 x_includes="$x_includes $inc_dir"
|
|
6805 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
|
149
|
6806 esac
|
|
6807 break; fi
|
|
6808 done
|
|
6809
|
442
|
6810 case "$opsys" in
|
|
6811 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 ;;
|
|
6812 esac
|
373
|
6813
|
149
|
6814 ld_switch_x_site="$X_LIBS"
|
|
6815
|
151
|
6816
|
|
6817 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
6818 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
6819 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
6820
|
163
|
6821 runpath="" runpath_dirs=""
|
155
|
6822 if test -n "$LD_RUN_PATH"; then
|
151
|
6823 runpath="$LD_RUN_PATH"
|
155
|
6824 elif test "$GCC" = "yes"; then
|
163
|
6825 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
6826 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
6827 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
6828 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
6829 case "$arg" in P,* | -L* | -R* )
|
159
|
6830 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
6831 {
|
155
|
6832 xe_runpath_dir="$dir"
|
163
|
6833 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
6834 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
6835 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
6836 eval "$xe_add_unique_runpath_dir"
|
|
6837 }
|
155
|
6838 done ;;
|
|
6839 esac
|
|
6840 done
|
163
|
6841 ld_switch_run="$ld_switch_run_save"
|
155
|
6842 rm -f conftest*
|
151
|
6843 else
|
155
|
6844 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
6845 case "$arg" in -L*) {
|
159
|
6846 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
6847 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
6848 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
6849 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
6850 eval "$xe_add_unique_runpath_dir"
|
|
6851 };; esac
|
151
|
6852 done
|
163
|
6853 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
6854 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
6855 eval "$xe_add_unique_runpath_dir";
|
|
6856 fi
|
155
|
6857 fi
|
151
|
6858 if test -n "$runpath"; then
|
|
6859 ld_switch_run="${dash_r}${runpath}"
|
272
|
6860
|
|
6861 if test "$GCC" = "yes"; then
|
|
6862 set x $ld_switch_run; shift; ld_switch_run=""
|
|
6863 while test -n "$1"; do
|
|
6864 case $1 in
|
380
|
6865 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
6866 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
6867 -Xlinker* ) ;;
|
|
6868 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
6869 esac
|
|
6870 shift
|
|
6871 done
|
|
6872 fi
|
151
|
6873 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
6874 fi
|
|
6875 fi
|
|
6876
|
|
6877
|
149
|
6878 if test "$extra_verbose" = "yes"; then
|
|
6879 echo; echo "X11 compilation variables:"
|
163
|
6880 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
|
149
|
6881 echo
|
|
6882 fi
|
|
6883
|
265
|
6884 bitmapdirs=
|
|
6885 if test "$x_includes" != NONE; then
|
|
6886 for i in $x_includes; do
|
|
6887 if test -d "$i/bitmaps"; then
|
|
6888 bitmapdirs="$i/bitmaps:$bitmapdirs"
|
|
6889 fi
|
|
6890 if test -d "$i/X11/bitmaps"; then
|
|
6891 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
|
|
6892 fi
|
|
6893 done
|
|
6894 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
|
|
6895 fi
|
|
6896 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
|
|
6897 Defining BITMAPDIR = "$bitmapdirs"
|
|
6898 EOF
|
|
6899 cat >> confdefs.h <<EOF
|
|
6900 #define BITMAPDIR "$bitmapdirs"
|
|
6901 EOF
|
|
6902 }
|
|
6903
|
|
6904
|
163
|
6905 echo "checking for X defines extracted by xmkmf" 1>&6
|
2131
|
6906 echo "configure:6907: checking for X defines extracted by xmkmf" >&5
|
163
|
6907 rm -fr conftestdir
|
|
6908 if mkdir conftestdir; then
|
|
6909 cd conftestdir
|
|
6910 cat > Imakefile <<'EOF'
|
|
6911 xetest:
|
|
6912 @echo ${PROTO_DEFINES} ${STD_DEFINES}
|
|
6913 EOF
|
|
6914 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
6915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
6916 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
|
|
6917 fi
|
|
6918 cd ..
|
|
6919 rm -fr conftestdir
|
|
6920 for word in $xmkmf_defines; do
|
535
|
6921 case "$word" in
|
473
|
6922 -D__STDC__*) ;;
|
|
6923 -D* )
|
442
|
6924 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
|
|
6925 case "$word" in
|
|
6926 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
|
|
6927 * ) val=1 ;;
|
|
6928 esac
|
|
6929 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
|
|
6930 if test "$val" = "1"
|
|
6931 then { test "$extra_verbose" = "yes" && cat << EOF
|
|
6932 Defining $sym
|
|
6933 EOF
|
|
6934 cat >> confdefs.h <<EOF
|
|
6935 #define $sym 1
|
|
6936 EOF
|
|
6937 }
|
|
6938
|
|
6939 else { test "$extra_verbose" = "yes" && cat << EOF
|
|
6940 Defining $sym = $val
|
|
6941 EOF
|
|
6942 cat >> confdefs.h <<EOF
|
|
6943 #define $sym $val
|
|
6944 EOF
|
|
6945 }
|
|
6946
|
|
6947 fi
|
|
6948 fi ;;
|
163
|
6949 esac
|
|
6950 done
|
|
6951 fi
|
|
6952
|
149
|
6953 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
|
|
6954 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
|
2131
|
6955 echo "configure:6956: checking for X11/Intrinsic.h" >&5
|
|
6956
|
|
6957 cat > conftest.$ac_ext <<EOF
|
|
6958 #line 6959 "configure"
|
149
|
6959 #include "confdefs.h"
|
|
6960 #include <X11/Intrinsic.h>
|
|
6961 EOF
|
|
6962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
6963 { (eval echo configure:6964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
6964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
6965 if test -z "$ac_err"; then
|
|
6966 rm -rf conftest*
|
|
6967 eval "ac_cv_header_$ac_safe=yes"
|
|
6968 else
|
|
6969 echo "$ac_err" >&5
|
|
6970 echo "configure: failed program was:" >&5
|
|
6971 cat conftest.$ac_ext >&5
|
|
6972 rm -rf conftest*
|
|
6973 eval "ac_cv_header_$ac_safe=no"
|
|
6974 fi
|
|
6975 rm -f conftest*
|
|
6976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6977 echo "$ac_t""yes" 1>&6
|
|
6978 :
|
|
6979 else
|
|
6980 echo "$ac_t""no" 1>&6
|
561
|
6981 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; }
|
149
|
6982 fi
|
|
6983
|
|
6984
|
|
6985
|
|
6986 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
|
2131
|
6987 echo "configure:6988: checking for XOpenDisplay in -lX11" >&5
|
149
|
6988 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
|
|
6989
|
|
6990 xe_check_libs=" -lX11 "
|
|
6991 cat > conftest.$ac_ext <<EOF
|
2131
|
6992 #line 6993 "configure"
|
149
|
6993 #include "confdefs.h"
|
|
6994 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6995 /* We use char because int might match the return type of a gcc2
|
|
6996 builtin and then its argument prototype would still apply. */
|
|
6997 char XOpenDisplay();
|
|
6998
|
|
6999 int main() {
|
|
7000 XOpenDisplay()
|
|
7001 ; return 0; }
|
|
7002 EOF
|
2131
|
7003 if { (eval echo configure:7004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7004 rm -rf conftest*
|
|
7005 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7006 else
|
|
7007 echo "configure: failed program was:" >&5
|
|
7008 cat conftest.$ac_ext >&5
|
|
7009 rm -rf conftest*
|
|
7010 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7011 fi
|
|
7012 rm -f conftest*
|
|
7013 xe_check_libs=""
|
|
7014
|
151
|
7015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7016 echo "$ac_t""yes" 1>&6
|
|
7017 have_lib_x11=yes
|
|
7018 else
|
|
7019 echo "$ac_t""no" 1>&6
|
|
7020 fi
|
|
7021
|
|
7022
|
|
7023 if test "$have_lib_x11" != "yes"; then
|
|
7024
|
|
7025 xe_msg_checking="for XGetFontProperty in -lX11"
|
|
7026 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
|
|
7027 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2131
|
7028 echo "configure:7029: checking "$xe_msg_checking"" >&5
|
149
|
7029 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
|
|
7030
|
|
7031 xe_check_libs=" -lX11 -b i486-linuxaout"
|
|
7032 cat > conftest.$ac_ext <<EOF
|
2131
|
7033 #line 7034 "configure"
|
149
|
7034 #include "confdefs.h"
|
|
7035 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7036 /* We use char because int might match the return type of a gcc2
|
|
7037 builtin and then its argument prototype would still apply. */
|
|
7038 char XGetFontProperty();
|
|
7039
|
|
7040 int main() {
|
|
7041 XGetFontProperty()
|
|
7042 ; return 0; }
|
|
7043 EOF
|
2131
|
7044 if { (eval echo configure:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7045 rm -rf conftest*
|
|
7046 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7047 else
|
|
7048 echo "configure: failed program was:" >&5
|
|
7049 cat conftest.$ac_ext >&5
|
|
7050 rm -rf conftest*
|
|
7051 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7052 fi
|
|
7053 rm -f conftest*
|
|
7054 xe_check_libs=""
|
|
7055
|
151
|
7056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7057 echo "$ac_t""yes" 1>&6
|
|
7058 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
|
|
7059 else
|
|
7060 echo "$ac_t""no" 1>&6
|
561
|
7061 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
|
149
|
7062 fi
|
|
7063
|
|
7064
|
0
|
7065 fi
|
149
|
7066 libs_x="-lX11"
|
151
|
7067 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
|
149
|
7068
|
153
|
7069
|
|
7070 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
|
2131
|
7071 echo "configure:7072: checking for XShapeSelectInput in -lXext" >&5
|
153
|
7072 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
|
|
7073
|
|
7074 xe_check_libs=" -lXext "
|
|
7075 cat > conftest.$ac_ext <<EOF
|
2131
|
7076 #line 7077 "configure"
|
153
|
7077 #include "confdefs.h"
|
|
7078 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7079 /* We use char because int might match the return type of a gcc2
|
|
7080 builtin and then its argument prototype would still apply. */
|
|
7081 char XShapeSelectInput();
|
|
7082
|
|
7083 int main() {
|
|
7084 XShapeSelectInput()
|
|
7085 ; return 0; }
|
|
7086 EOF
|
2131
|
7087 if { (eval echo configure:7088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
153
|
7088 rm -rf conftest*
|
|
7089 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7090 else
|
|
7091 echo "configure: failed program was:" >&5
|
|
7092 cat conftest.$ac_ext >&5
|
|
7093 rm -rf conftest*
|
|
7094 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7095 fi
|
|
7096 rm -f conftest*
|
|
7097 xe_check_libs=""
|
|
7098
|
|
7099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7100 echo "$ac_t""yes" 1>&6
|
|
7101 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
|
|
7102 else
|
|
7103 echo "$ac_t""no" 1>&6
|
|
7104 fi
|
|
7105
|
|
7106
|
|
7107
|
169
|
7108
|
149
|
7109 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
|
2131
|
7110 echo "configure:7111: checking for XtOpenDisplay in -lXt" >&5
|
149
|
7111 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
|
|
7112
|
|
7113 xe_check_libs=" -lXt "
|
|
7114 cat > conftest.$ac_ext <<EOF
|
2131
|
7115 #line 7116 "configure"
|
149
|
7116 #include "confdefs.h"
|
|
7117 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7118 /* We use char because int might match the return type of a gcc2
|
|
7119 builtin and then its argument prototype would still apply. */
|
|
7120 char XtOpenDisplay();
|
|
7121
|
|
7122 int main() {
|
|
7123 XtOpenDisplay()
|
|
7124 ; return 0; }
|
|
7125 EOF
|
2131
|
7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7127 rm -rf conftest*
|
|
7128 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7129 else
|
|
7130 echo "configure: failed program was:" >&5
|
|
7131 cat conftest.$ac_ext >&5
|
|
7132 rm -rf conftest*
|
|
7133 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7134 fi
|
|
7135 rm -f conftest*
|
|
7136 xe_check_libs=""
|
|
7137
|
151
|
7138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7139 echo "$ac_t""yes" 1>&6
|
|
7140 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
|
149
|
7141 else
|
|
7142 echo "$ac_t""no" 1>&6
|
561
|
7143 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
|
149
|
7144 fi
|
|
7145
|
169
|
7146
|
149
|
7147
|
|
7148 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
|
2131
|
7149 echo "configure:7150: checking the version of X11 being used" >&5
|
149
|
7150 cat > conftest.$ac_ext <<EOF
|
2131
|
7151 #line 7152 "configure"
|
149
|
7152 #include "confdefs.h"
|
|
7153 #include <X11/Intrinsic.h>
|
272
|
7154 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
|
|
7155 EOF
|
2131
|
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
7157 then
|
151
|
7158 ./conftest foobar; x11_release=$?
|
149
|
7159 else
|
373
|
7160 conftest_rc="$?"
|
149
|
7161 echo "configure: failed program was:" >&5
|
|
7162 cat conftest.$ac_ext >&5
|
|
7163 rm -fr conftest*
|
151
|
7164 x11_release=4
|
149
|
7165 fi
|
|
7166 rm -fr conftest*
|
151
|
7167 echo "$ac_t""R${x11_release}" 1>&6
|
149
|
7168 { test "$extra_verbose" = "yes" && cat << EOF
|
151
|
7169 Defining THIS_IS_X11R${x11_release}
|
149
|
7170 EOF
|
|
7171 cat >> confdefs.h <<EOF
|
151
|
7172 #define THIS_IS_X11R${x11_release} 1
|
149
|
7173 EOF
|
|
7174 }
|
|
7175
|
|
7176
|
442
|
7177 if test "${x11_release}" = "4"; then
|
|
7178 case "$with_widgets" in
|
|
7179 "" | "no") with_widgets=no ;;
|
|
7180 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
|
|
7181 esac
|
|
7182 fi
|
|
7183
|
|
7184 for ac_func in XConvertCase
|
|
7185 do
|
|
7186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
7187 echo "configure:7188: checking for $ac_func" >&5
|
|
7188
|
|
7189 cat > conftest.$ac_ext <<EOF
|
|
7190 #line 7191 "configure"
|
442
|
7191 #include "confdefs.h"
|
|
7192 /* System header to define __stub macros and hopefully few prototypes,
|
|
7193 which can conflict with char $ac_func(); below. */
|
|
7194 #include <assert.h>
|
|
7195 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7196 /* We use char because int might match the return type of a gcc2
|
|
7197 builtin and then its argument prototype would still apply. */
|
|
7198 char $ac_func();
|
|
7199
|
|
7200 int main() {
|
|
7201
|
|
7202 /* The GNU C library defines this for functions which it implements
|
|
7203 to always fail with ENOSYS. Some functions are actually named
|
|
7204 something starting with __ and the normal name is an alias. */
|
|
7205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
7206 choke me
|
|
7207 #else
|
|
7208 $ac_func();
|
|
7209 #endif
|
|
7210
|
|
7211 ; return 0; }
|
|
7212 EOF
|
2131
|
7213 if { (eval echo configure:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
7214 rm -rf conftest*
|
|
7215 eval "ac_cv_func_$ac_func=yes"
|
|
7216 else
|
|
7217 echo "configure: failed program was:" >&5
|
|
7218 cat conftest.$ac_ext >&5
|
|
7219 rm -rf conftest*
|
|
7220 eval "ac_cv_func_$ac_func=no"
|
|
7221 fi
|
|
7222 rm -f conftest*
|
|
7223
|
|
7224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
7225 echo "$ac_t""yes" 1>&6
|
|
7226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
7227 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7228 Defining $ac_tr_func
|
|
7229 EOF
|
|
7230 cat >> confdefs.h <<EOF
|
|
7231 #define $ac_tr_func 1
|
|
7232 EOF
|
|
7233 }
|
|
7234
|
|
7235 else
|
|
7236 echo "$ac_t""no" 1>&6
|
|
7237 fi
|
|
7238 done
|
|
7239
|
|
7240
|
149
|
7241 for ac_hdr in X11/Xlocale.h
|
|
7242 do
|
|
7243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
7244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2131
|
7245 echo "configure:7246: checking for $ac_hdr" >&5
|
|
7246
|
|
7247 cat > conftest.$ac_ext <<EOF
|
|
7248 #line 7249 "configure"
|
149
|
7249 #include "confdefs.h"
|
|
7250 #include <$ac_hdr>
|
|
7251 EOF
|
|
7252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
7253 { (eval echo configure:7254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7255 if test -z "$ac_err"; then
|
|
7256 rm -rf conftest*
|
|
7257 eval "ac_cv_header_$ac_safe=yes"
|
|
7258 else
|
|
7259 echo "$ac_err" >&5
|
|
7260 echo "configure: failed program was:" >&5
|
|
7261 cat conftest.$ac_ext >&5
|
|
7262 rm -rf conftest*
|
|
7263 eval "ac_cv_header_$ac_safe=no"
|
|
7264 fi
|
|
7265 rm -f conftest*
|
|
7266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7267 echo "$ac_t""yes" 1>&6
|
|
7268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
7269 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7270 Defining $ac_tr_hdr
|
|
7271 EOF
|
|
7272 cat >> confdefs.h <<EOF
|
|
7273 #define $ac_tr_hdr 1
|
|
7274 EOF
|
|
7275 }
|
|
7276
|
|
7277 else
|
|
7278 echo "$ac_t""no" 1>&6
|
|
7279 fi
|
|
7280 done
|
|
7281
|
|
7282
|
444
|
7283 for ac_func in XRegisterIMInstantiateCallback
|
|
7284 do
|
|
7285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
7286 echo "configure:7287: checking for $ac_func" >&5
|
|
7287
|
|
7288 cat > conftest.$ac_ext <<EOF
|
|
7289 #line 7290 "configure"
|
444
|
7290 #include "confdefs.h"
|
|
7291 /* System header to define __stub macros and hopefully few prototypes,
|
|
7292 which can conflict with char $ac_func(); below. */
|
|
7293 #include <assert.h>
|
|
7294 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7295 /* We use char because int might match the return type of a gcc2
|
|
7296 builtin and then its argument prototype would still apply. */
|
|
7297 char $ac_func();
|
|
7298
|
|
7299 int main() {
|
|
7300
|
|
7301 /* The GNU C library defines this for functions which it implements
|
|
7302 to always fail with ENOSYS. Some functions are actually named
|
|
7303 something starting with __ and the normal name is an alias. */
|
|
7304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
7305 choke me
|
|
7306 #else
|
|
7307 $ac_func();
|
|
7308 #endif
|
|
7309
|
|
7310 ; return 0; }
|
|
7311 EOF
|
2131
|
7312 if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
444
|
7313 rm -rf conftest*
|
|
7314 eval "ac_cv_func_$ac_func=yes"
|
|
7315 else
|
|
7316 echo "configure: failed program was:" >&5
|
|
7317 cat conftest.$ac_ext >&5
|
|
7318 rm -rf conftest*
|
|
7319 eval "ac_cv_func_$ac_func=no"
|
|
7320 fi
|
|
7321 rm -f conftest*
|
|
7322
|
|
7323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
7324 echo "$ac_t""yes" 1>&6
|
|
7325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
7326 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7327 Defining $ac_tr_func
|
|
7328 EOF
|
|
7329 cat >> confdefs.h <<EOF
|
|
7330 #define $ac_tr_func 1
|
|
7331 EOF
|
|
7332 }
|
|
7333
|
|
7334 else
|
|
7335 echo "$ac_t""no" 1>&6
|
|
7336 fi
|
|
7337 done
|
|
7338
|
|
7339 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
|
2131
|
7340 echo "configure:7341: checking for standard XRegisterIMInstantiateCallback prototype" >&5
|
444
|
7341 cat > conftest.$ac_ext <<EOF
|
2131
|
7342 #line 7343 "configure"
|
444
|
7343 #include "confdefs.h"
|
|
7344
|
|
7345 #define NeedFunctionPrototypes 1
|
|
7346 #include <X11/Xlib.h>
|
|
7347 extern Bool XRegisterIMInstantiateCallback(
|
|
7348 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
|
|
7349
|
|
7350 int main() {
|
|
7351
|
|
7352 ; return 0; }
|
|
7353 EOF
|
2131
|
7354 if { (eval echo configure:7355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
444
|
7355 rm -rf conftest*
|
|
7356 echo "$ac_t""yes" 1>&6
|
|
7357 else
|
|
7358 echo "configure: failed program was:" >&5
|
|
7359 cat conftest.$ac_ext >&5
|
|
7360 rm -rf conftest*
|
|
7361 echo "$ac_t""no" 1>&6
|
|
7362 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7363 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
|
|
7364 EOF
|
|
7365 cat >> confdefs.h <<\EOF
|
|
7366 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
|
|
7367 EOF
|
|
7368 }
|
|
7369
|
|
7370 fi
|
|
7371 rm -f conftest*
|
149
|
7372
|
169
|
7373 test -z "$with_xmu" && {
|
|
7374 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
|
2131
|
7375 echo "configure:7376: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
|
169
|
7376 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
|
149
|
7377
|
|
7378 xe_check_libs=" -lXmu "
|
|
7379 cat > conftest.$ac_ext <<EOF
|
2131
|
7380 #line 7381 "configure"
|
149
|
7381 #include "confdefs.h"
|
|
7382 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7383 /* We use char because int might match the return type of a gcc2
|
|
7384 builtin and then its argument prototype would still apply. */
|
169
|
7385 char XmuReadBitmapDataFromFile();
|
149
|
7386
|
|
7387 int main() {
|
169
|
7388 XmuReadBitmapDataFromFile()
|
149
|
7389 ; return 0; }
|
|
7390 EOF
|
2131
|
7391 if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7392 rm -rf conftest*
|
|
7393 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7394 else
|
|
7395 echo "configure: failed program was:" >&5
|
|
7396 cat conftest.$ac_ext >&5
|
|
7397 rm -rf conftest*
|
|
7398 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7399 fi
|
|
7400 rm -f conftest*
|
|
7401 xe_check_libs=""
|
|
7402
|
151
|
7403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7404 echo "$ac_t""yes" 1>&6
|
|
7405 with_xmu=yes
|
|
7406 else
|
|
7407 echo "$ac_t""no" 1>&6
|
|
7408 with_xmu=no
|
|
7409 fi
|
|
7410
|
169
|
7411 }
|
185
|
7412 if test "$with_xmu" = "no"; then
|
|
7413 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
|
151
|
7414 echo " xemacs will be linked with \"xmu.o\""
|
|
7415 fi
|
187
|
7416 else
|
185
|
7417 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
|
|
7418 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7419 Defining HAVE_XMU
|
|
7420 EOF
|
|
7421 cat >> confdefs.h <<\EOF
|
|
7422 #define HAVE_XMU 1
|
|
7423 EOF
|
|
7424 }
|
|
7425
|
169
|
7426 fi
|
151
|
7427
|
|
7428
|
|
7429 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
|
2131
|
7430 echo "configure:7431: checking for main in -lXbsd" >&5
|
151
|
7431 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
|
|
7432
|
|
7433 xe_check_libs=" -lXbsd "
|
|
7434 cat > conftest.$ac_ext <<EOF
|
2131
|
7435 #line 7436 "configure"
|
151
|
7436 #include "confdefs.h"
|
149
|
7437
|
|
7438 int main() {
|
151
|
7439 main()
|
149
|
7440 ; return 0; }
|
|
7441 EOF
|
2131
|
7442 if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7443 rm -rf conftest*
|
|
7444 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7445 else
|
|
7446 echo "configure: failed program was:" >&5
|
|
7447 cat conftest.$ac_ext >&5
|
|
7448 rm -rf conftest*
|
|
7449 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7450 fi
|
|
7451 rm -f conftest*
|
|
7452 xe_check_libs=""
|
|
7453
|
151
|
7454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7455 echo "$ac_t""yes" 1>&6
|
|
7456 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
|
|
7457 else
|
|
7458 echo "$ac_t""no" 1>&6
|
|
7459 fi
|
|
7460
|
149
|
7461
|
|
7462
|
243
|
7463 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
|
274
|
7464 if test "$GCC" = "yes"; then
|
|
7465 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
|
|
7466 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
|
|
7467 else
|
|
7468 case "$CC" in
|
|
7469 "xlc" ) CC="xlc_r" ;;
|
|
7470 "xlC" ) CC="xlC_r" ;;
|
|
7471 "cc" ) CC="cc_r" ;;
|
|
7472 esac
|
|
7473 fi
|
243
|
7474 fi
|
|
7475
|
149
|
7476 fi
|
265
|
7477 if test "$with_msw" != "no"; then
|
|
7478 echo "checking for MS-Windows" 1>&6
|
2131
|
7479 echo "configure:7480: checking for MS-Windows" >&5
|
265
|
7480
|
|
7481 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
|
2131
|
7482 echo "configure:7483: checking for main in -lgdi32" >&5
|
265
|
7483 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
|
|
7484
|
|
7485 xe_check_libs=" -lgdi32 "
|
|
7486 cat > conftest.$ac_ext <<EOF
|
2131
|
7487 #line 7488 "configure"
|
265
|
7488 #include "confdefs.h"
|
|
7489
|
|
7490 int main() {
|
|
7491 main()
|
|
7492 ; return 0; }
|
|
7493 EOF
|
2131
|
7494 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
265
|
7495 rm -rf conftest*
|
|
7496 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7497 else
|
|
7498 echo "configure: failed program was:" >&5
|
|
7499 cat conftest.$ac_ext >&5
|
|
7500 rm -rf conftest*
|
|
7501 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7502 fi
|
|
7503 rm -f conftest*
|
|
7504 xe_check_libs=""
|
|
7505
|
|
7506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7507 echo "$ac_t""yes" 1>&6
|
|
7508 with_msw=yes
|
|
7509 else
|
|
7510 echo "$ac_t""no" 1>&6
|
|
7511 fi
|
|
7512
|
|
7513
|
|
7514 if test "$with_msw" = "yes"; then
|
|
7515 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7516 Defining HAVE_MS_WINDOWS
|
|
7517 EOF
|
|
7518 cat >> confdefs.h <<\EOF
|
|
7519 #define HAVE_MS_WINDOWS 1
|
|
7520 EOF
|
|
7521 }
|
|
7522
|
448
|
7523
|
462
|
7524 if test "$with_netinstall" = "yes"; then
|
|
7525 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
|
|
7526 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
|
|
7527 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
7528 fi
|
458
|
7529
|
1740
|
7530 install_pp="$srcdir/lib-src/installexe.sh"
|
771
|
7531 libs_system="$libs_system -limm32 -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lole32 -luuid -lwinspool -lmpr" && if test "$extra_verbose" = "yes"; then echo " Appending \"-limm32 -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lole32 -luuid -lwinspool -lmpr\" to \$libs_system"; fi
|
|
7532 if test "$with_dragndrop" != no; then
|
|
7533 dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
|
|
7534 with_dragndrop=yes
|
|
7535 fi
|
265
|
7536 if test "$window_system" != x11; then
|
771
|
7537 window_system=msw
|
|
7538 test "$with_scrollbars" != "no" && with_scrollbars=msw
|
|
7539 test "$with_menubars" != "no" && with_menubars=msw
|
|
7540 test "$with_toolbars" != "no" && with_toolbars=msw
|
|
7541 test "$with_dialogs" != "no" && with_dialogs=msw
|
|
7542 test "$with_widgets" != "no" && with_widgets=msw
|
265
|
7543 fi
|
278
|
7544 cat > conftest.$ac_ext <<EOF
|
2131
|
7545 #line 7546 "configure"
|
278
|
7546 #include "confdefs.h"
|
|
7547 #include <fcntl.h>
|
|
7548 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
|
|
7549 EOF
|
2131
|
7550 if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
278
|
7551 then
|
771
|
7552 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
7553 Defining HAVE_MSG_SELECT
|
|
7554 EOF
|
|
7555 cat >> confdefs.h <<\EOF
|
|
7556 #define HAVE_MSG_SELECT 1
|
|
7557 EOF
|
|
7558 }
|
|
7559
|
|
7560 else
|
373
|
7561 conftest_rc="$?"
|
278
|
7562 echo "configure: failed program was:" >&5
|
|
7563 cat conftest.$ac_ext >&5
|
|
7564 fi
|
|
7565 rm -fr conftest*
|
771
|
7566 fi
|
|
7567 fi
|
|
7568
|
|
7569
|
|
7570
|
|
7571 test -z "$with_dragndrop" && with_dragndrop="$with_dragndrop_default"
|
149
|
7572 test -z "$window_system" && window_system="none"
|
|
7573
|
272
|
7574 if test "$window_system" = "none"; then
|
388
|
7575 for feature in menubars scrollbars toolbars dialogs dragndrop xface
|
272
|
7576 do
|
|
7577 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7578 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
|
|
7579 fi
|
|
7580 eval "with_${feature}=no"
|
|
7581 done
|
|
7582 else
|
|
7583 test -z "$with_toolbars" && with_toolbars=yes
|
|
7584 fi
|
|
7585
|
|
7586 if test "$with_msw" != "yes"; then
|
|
7587 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
|
|
7588 do
|
|
7589 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7590 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
|
|
7591 fi
|
|
7592 eval "with_${feature}=no"
|
|
7593 done
|
|
7594 else
|
|
7595 :
|
|
7596 fi
|
|
7597
|
|
7598 if test "$with_x11" != "yes"; then
|
434
|
7599 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
|
70
|
7600 do
|
149
|
7601 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7602 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
|
70
|
7603 fi
|
149
|
7604 eval "with_${feature}=no"
|
70
|
7605 done
|
149
|
7606 fi
|
|
7607
|
442
|
7608 if test "$with_x11" = "yes"; then
|
|
7609 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
|
|
7610 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
|
2131
|
7611 echo "configure:7612: checking for X11/extensions/shape.h" >&5
|
|
7612
|
|
7613 cat > conftest.$ac_ext <<EOF
|
|
7614 #line 7615 "configure"
|
442
|
7615 #include "confdefs.h"
|
|
7616 #include <X11/extensions/shape.h>
|
|
7617 EOF
|
|
7618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
7619 { (eval echo configure:7620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
7620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7621 if test -z "$ac_err"; then
|
|
7622 rm -rf conftest*
|
|
7623 eval "ac_cv_header_$ac_safe=yes"
|
|
7624 else
|
|
7625 echo "$ac_err" >&5
|
|
7626 echo "configure: failed program was:" >&5
|
|
7627 cat conftest.$ac_ext >&5
|
|
7628 rm -rf conftest*
|
|
7629 eval "ac_cv_header_$ac_safe=no"
|
|
7630 fi
|
|
7631 rm -f conftest*
|
|
7632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7633 echo "$ac_t""yes" 1>&6
|
|
7634
|
|
7635 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7636 Defining HAVE_BALLOON_HELP
|
|
7637 EOF
|
|
7638 cat >> confdefs.h <<\EOF
|
|
7639 #define HAVE_BALLOON_HELP 1
|
|
7640 EOF
|
|
7641 }
|
|
7642
|
771
|
7643
|
442
|
7644 else
|
|
7645 echo "$ac_t""no" 1>&6
|
|
7646 fi
|
|
7647
|
|
7648 fi
|
|
7649
|
0
|
7650 bitmapdir=
|
|
7651
|
149
|
7652 case "$window_system" in
|
70
|
7653 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
272
|
7654 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
|
462
|
7655 gtk )
|
|
7656 HAVE_X_WINDOWS=no
|
|
7657 test "$with_gnome" = "yes" && echo " Using GNOME."
|
|
7658 test "$with_gnome" = "no" && echo " Using GTK."
|
|
7659 ;;
|
70
|
7660 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
0
|
7661 esac
|
|
7662
|
149
|
7663 case "$x_libraries" in *X11R4* )
|
|
7664 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
|
|
7665 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
|
|
7666 esac
|
|
7667
|
414
|
7668 echo "checking for WM_COMMAND option" 1>&6
|
2131
|
7669 echo "configure:7670: checking for WM_COMMAND option" >&5;
|
414
|
7670 if test "$with_wmcommand" != "no"; then
|
|
7671 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7672 Defining HAVE_WMCOMMAND
|
|
7673 EOF
|
|
7674 cat >> confdefs.h <<\EOF
|
|
7675 #define HAVE_WMCOMMAND 1
|
177
|
7676 EOF
|
|
7677 }
|
|
7678
|
|
7679 fi
|
|
7680
|
149
|
7681 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
|
|
7682 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
|
|
7683 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
|
2131
|
7684 echo "configure:7685: checking for X11/Xauth.h" >&5
|
|
7685
|
|
7686 cat > conftest.$ac_ext <<EOF
|
|
7687 #line 7688 "configure"
|
149
|
7688 #include "confdefs.h"
|
|
7689 #include <X11/Xauth.h>
|
|
7690 EOF
|
|
7691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
7692 { (eval echo configure:7693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7694 if test -z "$ac_err"; then
|
|
7695 rm -rf conftest*
|
|
7696 eval "ac_cv_header_$ac_safe=yes"
|
|
7697 else
|
|
7698 echo "$ac_err" >&5
|
|
7699 echo "configure: failed program was:" >&5
|
|
7700 cat conftest.$ac_ext >&5
|
|
7701 rm -rf conftest*
|
|
7702 eval "ac_cv_header_$ac_safe=no"
|
|
7703 fi
|
|
7704 rm -f conftest*
|
|
7705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7706 echo "$ac_t""yes" 1>&6
|
|
7707 :
|
|
7708 else
|
|
7709 echo "$ac_t""no" 1>&6
|
|
7710 with_xauth=no
|
|
7711 fi
|
|
7712 }
|
|
7713 test -z "$with_xauth" && {
|
|
7714 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
|
2131
|
7715 echo "configure:7716: checking for XauGetAuthByAddr in -lXau" >&5
|
149
|
7716 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
|
|
7717
|
|
7718 xe_check_libs=" -lXau "
|
|
7719 cat > conftest.$ac_ext <<EOF
|
2131
|
7720 #line 7721 "configure"
|
149
|
7721 #include "confdefs.h"
|
|
7722 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7723 /* We use char because int might match the return type of a gcc2
|
|
7724 builtin and then its argument prototype would still apply. */
|
|
7725 char XauGetAuthByAddr();
|
|
7726
|
|
7727 int main() {
|
|
7728 XauGetAuthByAddr()
|
|
7729 ; return 0; }
|
|
7730 EOF
|
2131
|
7731 if { (eval echo configure:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7732 rm -rf conftest*
|
|
7733 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7734 else
|
|
7735 echo "configure: failed program was:" >&5
|
|
7736 cat conftest.$ac_ext >&5
|
|
7737 rm -rf conftest*
|
|
7738 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7739 fi
|
|
7740 rm -f conftest*
|
|
7741 xe_check_libs=""
|
|
7742
|
151
|
7743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7744 echo "$ac_t""yes" 1>&6
|
|
7745 :
|
|
7746 else
|
|
7747 echo "$ac_t""no" 1>&6
|
|
7748 with_xauth=no
|
|
7749 fi
|
|
7750
|
|
7751 }
|
|
7752 test -z "$with_xauth" && with_xauth=yes
|
|
7753 if test "$with_xauth" = "yes"; then
|
|
7754 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7755 Defining HAVE_XAUTH
|
|
7756 EOF
|
|
7757 cat >> confdefs.h <<\EOF
|
|
7758 #define HAVE_XAUTH 1
|
|
7759 EOF
|
|
7760 }
|
|
7761
|
159
|
7762
|
|
7763 T=""
|
462
|
7764 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
|
7765 libs_xauth="$T"
|
|
7766
|
|
7767 fi
|
|
7768
|
149
|
7769
|
274
|
7770
|
149
|
7771
|
1111
|
7772
|
1651
|
7773 if test "$xemacs_compiler" = "g++"; then
|
|
7774 LIBSTDCPP=-lstdc++
|
|
7775 else
|
|
7776 LIBSTDCPP=
|
|
7777 fi
|
|
7778
|
|
7779
|
1470
|
7780 if test "$with_modules" != "no"; then
|
|
7781 echo "checking for module support" 1>&6
|
2131
|
7782 echo "configure:7783: checking for module support" >&5
|
1470
|
7783
|
2079
|
7784 case "$opsys" in
|
|
7785 mingw* | cygwin* ) have_dl=yes ;;
|
|
7786 darwin ) have_dl=yes
|
|
7787 { test "$extra_verbose" = "yes" && cat << \EOF
|
1470
|
7788 Defining HAVE_DYLD
|
|
7789 EOF
|
|
7790 cat >> confdefs.h <<\EOF
|
|
7791 #define HAVE_DYLD 1
|
|
7792 EOF
|
|
7793 }
|
2079
|
7794
|
|
7795 ;;
|
|
7796 * )
|
1470
|
7797 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
|
|
7798 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
|
2131
|
7799 echo "configure:7800: checking for dlfcn.h" >&5
|
|
7800
|
|
7801 cat > conftest.$ac_ext <<EOF
|
|
7802 #line 7803 "configure"
|
1470
|
7803 #include "confdefs.h"
|
|
7804 #include <dlfcn.h>
|
|
7805 EOF
|
|
7806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
7807 { (eval echo configure:7808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1470
|
7808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7809 if test -z "$ac_err"; then
|
|
7810 rm -rf conftest*
|
|
7811 eval "ac_cv_header_$ac_safe=yes"
|
|
7812 else
|
|
7813 echo "$ac_err" >&5
|
|
7814 echo "configure: failed program was:" >&5
|
|
7815 cat conftest.$ac_ext >&5
|
|
7816 rm -rf conftest*
|
|
7817 eval "ac_cv_header_$ac_safe=no"
|
|
7818 fi
|
|
7819 rm -f conftest*
|
|
7820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7821 echo "$ac_t""yes" 1>&6
|
|
7822
|
|
7823 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
|
2131
|
7824 echo "configure:7825: checking for dlopen in -lc" >&5
|
2048
|
7825 cat > conftest.$ac_ext <<EOF
|
2131
|
7826 #line 7827 "configure"
|
2048
|
7827 #include "confdefs.h"
|
|
7828 #include <dlfcn.h>
|
|
7829 int main() {
|
2079
|
7830 dlopen ("", 0);
|
2048
|
7831 ; return 0; }
|
|
7832 EOF
|
2131
|
7833 if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2048
|
7834 rm -rf conftest*
|
|
7835 have_dl=yes
|
|
7836 else
|
|
7837 echo "configure: failed program was:" >&5
|
|
7838 cat conftest.$ac_ext >&5
|
|
7839 rm -rf conftest*
|
|
7840
|
|
7841 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
2131
|
7842 echo "configure:7843: checking for dlopen in -ldl" >&5
|
2079
|
7843 ac_save_LIBS="$LIBS"
|
|
7844 LIBS="$LIBS -ldl"
|
|
7845 cat > conftest.$ac_ext <<EOF
|
2131
|
7846 #line 7847 "configure"
|
1470
|
7847 #include "confdefs.h"
|
|
7848 #include <dlfcn.h>
|
|
7849 int main() {
|
2079
|
7850 dlopen ("", 0);
|
1470
|
7851 ; return 0; }
|
|
7852 EOF
|
2131
|
7853 if { (eval echo configure:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
7854 rm -rf conftest*
|
|
7855 have_dl=yes
|
|
7856 else
|
|
7857 echo "configure: failed program was:" >&5
|
|
7858 cat conftest.$ac_ext >&5
|
|
7859 rm -rf conftest*
|
2079
|
7860
|
|
7861 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
|
2131
|
7862 echo "configure:7863: checking for dlopen in -lsvld" >&5
|
2079
|
7863 LIBS="$ac_save_LIBS -lsvld"
|
|
7864 cat > conftest.$ac_ext <<EOF
|
2131
|
7865 #line 7866 "configure"
|
2079
|
7866 #include "confdefs.h"
|
|
7867 #include <dlfcn.h>
|
|
7868 int main() {
|
|
7869 dlopen ("", 0);
|
|
7870 ; return 0; }
|
|
7871 EOF
|
2131
|
7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2079
|
7873 rm -rf conftest*
|
|
7874 have_dl=yes
|
|
7875 else
|
|
7876 echo "configure: failed program was:" >&5
|
|
7877 cat conftest.$ac_ext >&5
|
|
7878 rm -rf conftest*
|
1470
|
7879 LIBS="$ac_save_LIBS"
|
|
7880 fi
|
|
7881 rm -f conftest*
|
2079
|
7882 fi
|
|
7883 rm -f conftest*
|
|
7884 fi
|
|
7885 rm -f conftest*
|
|
7886 else
|
|
7887 echo "$ac_t""no" 1>&6
|
|
7888 fi
|
|
7889
|
|
7890 if test "$have_dl" = "yes"; then
|
1470
|
7891 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7892 Defining HAVE_DLOPEN
|
|
7893 EOF
|
|
7894 cat >> confdefs.h <<\EOF
|
|
7895 #define HAVE_DLOPEN 1
|
|
7896 EOF
|
|
7897 }
|
|
7898
|
2079
|
7899 else
|
|
7900 ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
|
|
7901 echo $ac_n "checking for dl.h""... $ac_c" 1>&6
|
2131
|
7902 echo "configure:7903: checking for dl.h" >&5
|
|
7903
|
|
7904 cat > conftest.$ac_ext <<EOF
|
|
7905 #line 7906 "configure"
|
2079
|
7906 #include "confdefs.h"
|
|
7907 #include <dl.h>
|
|
7908 EOF
|
|
7909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
7910 { (eval echo configure:7911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2079
|
7911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7912 if test -z "$ac_err"; then
|
|
7913 rm -rf conftest*
|
|
7914 eval "ac_cv_header_$ac_safe=yes"
|
|
7915 else
|
|
7916 echo "$ac_err" >&5
|
|
7917 echo "configure: failed program was:" >&5
|
|
7918 cat conftest.$ac_ext >&5
|
|
7919 rm -rf conftest*
|
|
7920 eval "ac_cv_header_$ac_safe=no"
|
|
7921 fi
|
|
7922 rm -f conftest*
|
|
7923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7924 echo "$ac_t""yes" 1>&6
|
|
7925
|
|
7926 echo $ac_n "checking for shl_load in -lc""... $ac_c" 1>&6
|
2131
|
7927 echo "configure:7928: checking for shl_load in -lc" >&5
|
2079
|
7928 cat > conftest.$ac_ext <<EOF
|
2131
|
7929 #line 7930 "configure"
|
2079
|
7930 #include "confdefs.h"
|
|
7931 #include <dl.h>
|
|
7932 int main() {
|
|
7933 shl_load ("", 0, 0);
|
|
7934 ; return 0; }
|
|
7935 EOF
|
2131
|
7936 if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2079
|
7937 rm -rf conftest*
|
|
7938 have_dl=yes
|
|
7939 else
|
|
7940 echo "configure: failed program was:" >&5
|
|
7941 cat conftest.$ac_ext >&5
|
|
7942 rm -rf conftest*
|
|
7943
|
|
7944 echo $ac_n "checking for shl_load in -ldl""... $ac_c" 1>&6
|
2131
|
7945 echo "configure:7946: checking for shl_load in -ldl" >&5
|
2079
|
7946 ac_save_LIBS="$LIBS"
|
|
7947 LIBS="$LIBS -ldld"
|
|
7948 cat > conftest.$ac_ext <<EOF
|
2131
|
7949 #line 7950 "configure"
|
2079
|
7950 #include "confdefs.h"
|
|
7951 #include <dl.h>
|
|
7952 int main() {
|
|
7953 shl_load ("", 0, 0);
|
|
7954 ; return 0; }
|
|
7955 EOF
|
2131
|
7956 if { (eval echo configure:7957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2079
|
7957 rm -rf conftest*
|
|
7958 have_dl=yes
|
|
7959 else
|
|
7960 echo "configure: failed program was:" >&5
|
|
7961 cat conftest.$ac_ext >&5
|
|
7962 rm -rf conftest*
|
|
7963 LIBS="$ac_save_LIBS"
|
|
7964 fi
|
|
7965 rm -f conftest*
|
|
7966 fi
|
|
7967 rm -f conftest*
|
|
7968 else
|
|
7969 echo "$ac_t""no" 1>&6
|
|
7970 fi
|
|
7971
|
|
7972 if test "$have_dl" = "yes"; then
|
|
7973 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7974 Defining HAVE_SHL_LOAD
|
|
7975 EOF
|
|
7976 cat >> confdefs.h <<\EOF
|
|
7977 #define HAVE_SHL_LOAD 1
|
|
7978 EOF
|
|
7979 }
|
|
7980
|
|
7981 else
|
|
7982 ac_safe=`echo "ltdl.h" | sed 'y%./+-%__p_%'`
|
|
7983 echo $ac_n "checking for ltdl.h""... $ac_c" 1>&6
|
2131
|
7984 echo "configure:7985: checking for ltdl.h" >&5
|
|
7985
|
|
7986 cat > conftest.$ac_ext <<EOF
|
|
7987 #line 7988 "configure"
|
2079
|
7988 #include "confdefs.h"
|
|
7989 #include <ltdl.h>
|
|
7990 EOF
|
|
7991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
7992 { (eval echo configure:7993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2079
|
7993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7994 if test -z "$ac_err"; then
|
|
7995 rm -rf conftest*
|
|
7996 eval "ac_cv_header_$ac_safe=yes"
|
|
7997 else
|
|
7998 echo "$ac_err" >&5
|
|
7999 echo "configure: failed program was:" >&5
|
|
8000 cat conftest.$ac_ext >&5
|
|
8001 rm -rf conftest*
|
|
8002 eval "ac_cv_header_$ac_safe=no"
|
|
8003 fi
|
|
8004 rm -f conftest*
|
|
8005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8006 echo "$ac_t""yes" 1>&6
|
|
8007
|
|
8008 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
|
2131
|
8009 echo "configure:8010: checking for lt_dlinit in -lltdl" >&5
|
2079
|
8010 ac_save_LIBS="$LIBS"
|
|
8011 LIBS="$LIBS -lltdl"
|
|
8012 cat > conftest.$ac_ext <<EOF
|
2131
|
8013 #line 8014 "configure"
|
2079
|
8014 #include "confdefs.h"
|
|
8015 #include <ltdl.h>
|
|
8016 int main() {
|
|
8017 lt_dlinit ();
|
|
8018 ; return 0; }
|
|
8019 EOF
|
2131
|
8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2079
|
8021 rm -rf conftest*
|
|
8022 have_dl=yes
|
|
8023 else
|
|
8024 echo "configure: failed program was:" >&5
|
|
8025 cat conftest.$ac_ext >&5
|
|
8026 rm -rf conftest*
|
|
8027 LIBS="$ac_save_LIBS"
|
|
8028 fi
|
|
8029 rm -f conftest*
|
|
8030 else
|
|
8031 echo "$ac_t""no" 1>&6
|
|
8032 fi
|
|
8033
|
|
8034 if test "$have_dl" = "yes"; then
|
|
8035 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8036 Defining HAVE_LTDL
|
|
8037 EOF
|
|
8038 cat >> confdefs.h <<\EOF
|
|
8039 #define HAVE_LTDL 1
|
|
8040 EOF
|
|
8041 }
|
|
8042
|
|
8043 fi
|
|
8044 fi
|
|
8045 fi
|
|
8046 ac_save_LIBS=
|
|
8047 esac
|
|
8048
|
1470
|
8049 if test -n "$have_dl"; then
|
|
8050
|
|
8051 dll_ld=
|
|
8052 dll_ldflags=
|
|
8053 dll_cflags=
|
|
8054 dll_post=
|
|
8055 dll_ldo="-o"
|
|
8056 ld_dynamic_link_flags=
|
|
8057 xehost=$canonical
|
|
8058 xealias=$internal_configuration
|
|
8059
|
|
8060 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
|
2131
|
8061 echo "configure:8062: checking how to build dynamic libraries for ${xehost}" >&5
|
1470
|
8062 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
|
|
8063 case "$xehost" in
|
|
8064 *-*-linux-gnu*) ;;
|
|
8065 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
|
8066 esac
|
|
8067
|
|
8068 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
8069 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
8070 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
8071
|
|
8072 case "$xehost_os" in
|
|
8073 aix3*)
|
|
8074 # AIX sometimes has problems with the GCC collect2 program. For some
|
|
8075 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
8076 # vanish in a puff of smoke.
|
|
8077 if test "${COLLECT_NAMES+set}" != set; then
|
|
8078 COLLECT_NAMES=
|
|
8079 export COLLECT_NAMES
|
|
8080 fi
|
|
8081 ;;
|
|
8082 esac
|
|
8083
|
|
8084 # Now see if the compiler is really GCC.
|
|
8085 if test "$GCC" = "yes"; then
|
|
8086 XEGCC=yes
|
|
8087 else
|
|
8088 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
|
2131
|
8089 echo "configure:8090: checking checking whether we are using GNU C" >&5
|
1470
|
8090 cat > conftest.$ac_ext <<EOF
|
2131
|
8091 #line 8092 "configure"
|
1470
|
8092 #include "confdefs.h"
|
|
8093
|
|
8094 #ifdef __GNUC__
|
|
8095 yes;
|
|
8096 #endif
|
|
8097
|
|
8098 EOF
|
|
8099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
8100 egrep "yes" >/dev/null 2>&1; then
|
|
8101 rm -rf conftest*
|
|
8102 XEGCC=yes
|
|
8103 else
|
|
8104 rm -rf conftest*
|
|
8105 XEGCC=no
|
|
8106 fi
|
|
8107 rm -f conftest*
|
|
8108
|
|
8109 echo "$ac_t""${XEGCC}" 1>&6
|
|
8110 fi
|
|
8111
|
|
8112 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
|
2131
|
8113 echo "configure:8114: checking how to produce PIC code" >&5
|
1470
|
8114 wl=
|
|
8115
|
|
8116 can_build_shared=yes
|
1756
|
8117 if test "$XEGCC" = yes -o "$__ICC" = yes; then
|
1470
|
8118 wl='-Wl,'
|
|
8119
|
|
8120 case "$xehost_os" in
|
|
8121 aix[3-9]* | irix[5-9]* | osf[3-9])
|
|
8122 # PIC is the default for these OSes.
|
|
8123 ;;
|
|
8124
|
1692
|
8125 *darwin*) dll_cflags='-dynamic'
|
|
8126 ;;
|
|
8127
|
1470
|
8128 os2*)
|
|
8129 # We can build DLLs from non-PIC.
|
|
8130 ;;
|
|
8131 amigaos*)
|
|
8132 # FIXME: we need at least 68020 code to build shared libraries, but
|
|
8133 # adding the `-m68020' flag to GCC prevents building anything better,
|
|
8134 # like `-m68040'.
|
|
8135 dll_cflags='-m68020 -resident32 -malways-restore-a4'
|
|
8136 ;;
|
|
8137 *cygwin* | *mingw* )
|
|
8138 # PIC is the default
|
|
8139 ;;
|
|
8140 *)
|
|
8141 dll_cflags='-fPIC'
|
|
8142 ;;
|
|
8143 esac
|
|
8144 else
|
|
8145 # PORTME Check for PIC flags for the system compiler.
|
|
8146 case "$xehost_os" in
|
|
8147 hpux9* | hpux1[0-9]*)
|
|
8148 # Is there a better link_static_flag that works with the bundled CC?
|
|
8149 wl='-Wl,'
|
|
8150 dll_cflags='+Z'
|
|
8151 ;;
|
|
8152
|
|
8153 irix[5-9]*)
|
|
8154 wl='-Wl,'
|
|
8155 # PIC (with -KPIC) is the default.
|
|
8156 ;;
|
|
8157
|
|
8158 os2*)
|
|
8159 # We can build DLLs from non-PIC.
|
|
8160 ;;
|
|
8161
|
|
8162 osf[3-9]*)
|
|
8163 # All OSF/1 code is PIC.
|
|
8164 wl='-Wl,'
|
|
8165 ;;
|
|
8166
|
|
8167 aix[3-9]*)
|
|
8168 # All AIX code is PIC.
|
|
8169 wl='-Wl,'
|
|
8170 ;;
|
|
8171
|
|
8172 sco3.2v5*)
|
|
8173 dll_cflags='-belf -Kpic'
|
|
8174 wl='-Wl,'
|
|
8175 ;;
|
|
8176
|
|
8177 unixware*)
|
|
8178 dll_cflags="-KPIC"
|
|
8179 wl="-Wl,"
|
|
8180 ;;
|
|
8181
|
|
8182 sysv4*)
|
|
8183 dll_cflags="-KPIC"
|
|
8184 wl="-Wl,"
|
|
8185 ;;
|
|
8186
|
|
8187 sysv5*)
|
|
8188 dll_cflags="-KPIC"
|
|
8189 wl="-Wl,"
|
|
8190 ;;
|
|
8191
|
|
8192 solaris2*)
|
|
8193 dll_cflags='-KPIC'
|
|
8194 wl='-Wl,'
|
|
8195 ;;
|
|
8196
|
|
8197 sunos4*)
|
|
8198 dll_cflags='-PIC'
|
|
8199 wl='-Qoption ld '
|
|
8200 ;;
|
|
8201
|
|
8202 uts4*)
|
|
8203 dll_cflags='-pic'
|
|
8204 ;;
|
|
8205
|
|
8206 *)
|
|
8207 can_build_shared=no
|
|
8208 ;;
|
|
8209 esac
|
|
8210 fi
|
|
8211
|
|
8212 if test -n "$dll_cflags"; then
|
|
8213 echo "$ac_t""${dll_cflags}" 1>&6
|
|
8214
|
|
8215 # Check to make sure the dll_cflags actually works.
|
|
8216 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
|
2131
|
8217 echo "configure:8218: checking if PIC flag ${dll_cflags} really works" >&5
|
1470
|
8218 save_CFLAGS="$CFLAGS"
|
|
8219 CFLAGS="$CFLAGS $dll_cflags -DPIC"
|
|
8220 cat > conftest.$ac_ext <<EOF
|
2131
|
8221 #line 8222 "configure"
|
1470
|
8222 #include "confdefs.h"
|
|
8223
|
|
8224 int main() {
|
|
8225 int x=0;
|
|
8226 ; return 0; }
|
|
8227 EOF
|
2131
|
8228 if { (eval echo configure:8229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1470
|
8229 rm -rf conftest*
|
|
8230
|
|
8231 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
|
|
8232 # reports no error. So, we need to grep stderr for (Bundled).
|
|
8233 if grep '(Bundled)' config.log >/dev/null; then
|
|
8234 echo "$ac_t""no" 1>&6
|
|
8235 can_build_shared=no
|
|
8236 dll_cflags=
|
|
8237 else
|
|
8238 echo "$ac_t""yes" 1>&6
|
|
8239 fi
|
|
8240 else
|
|
8241 echo "configure: failed program was:" >&5
|
|
8242 cat conftest.$ac_ext >&5
|
|
8243 rm -rf conftest*
|
|
8244 echo "$ac_t""no" 1>&6
|
|
8245 can_build_shared=no
|
|
8246 dll_cflags=
|
|
8247 fi
|
|
8248 rm -f conftest*
|
|
8249 CFLAGS="$save_CFLAGS"
|
|
8250 else
|
|
8251 echo "$ac_t""none" 1>&6
|
|
8252 fi
|
|
8253
|
|
8254 if test "$can_build_shared" = "yes"; then
|
|
8255 cc_produces_so=no
|
|
8256 xldf=
|
|
8257 xcldf=
|
|
8258 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
|
2131
|
8259 echo "configure:8260: checking if C compiler can produce shared libraries" >&5
|
1756
|
8260 if test "$XEGCC" = yes -o "$__ICC" = yes; then
|
1692
|
8261 case "$xehost_os" in
|
|
8262 *darwin*)
|
|
8263 xcldf='-bundle'
|
|
8264 xldf='-bundle -bundle_loader ../../src/xemacs'
|
|
8265 ;;
|
|
8266 *)
|
|
8267 xcldf="-shared"
|
|
8268 xldf="-shared"
|
|
8269 ;;
|
|
8270 esac
|
1470
|
8271 else # Not using GCC
|
|
8272 case "$xehost_os" in
|
|
8273 aix[3-9]*)
|
|
8274 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
|
|
8275 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
|
|
8276 ;;
|
|
8277
|
|
8278 freebsd2* | netbsd* | openbsd*)
|
|
8279 xldf="-Bshareable"
|
|
8280 xcldf="${wl}-Bshareable"
|
|
8281 ;;
|
|
8282
|
|
8283 freebsd3*)
|
|
8284 xcldf="-shared"
|
|
8285 ;;
|
|
8286
|
|
8287 hpux*)
|
|
8288 xldf="-b +s"
|
|
8289 xcldf="${wl}-b ${wl}+s"
|
|
8290 ;;
|
|
8291
|
|
8292 irix[5-9]* | osf[3-9]*)
|
|
8293 xcldf="${wl}-shared"
|
|
8294 xldf="-shared"
|
|
8295 ;;
|
|
8296
|
|
8297 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
|
|
8298 xcldf="-G"
|
|
8299 xldf="-G"
|
|
8300 ;;
|
|
8301
|
|
8302 sunos4*)
|
|
8303 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
|
|
8304 xldf="-assert pure-text -Bstatic"
|
|
8305 ;;
|
|
8306 esac
|
|
8307 fi # End if if we are using gcc
|
|
8308
|
|
8309 if test -n "$xcldf"; then
|
|
8310 save_LDFLAGS=$LDFLAGS
|
|
8311 save_LIBS=$LIBS
|
|
8312 save_xe_libs=$xe_libs
|
|
8313 LDFLAGS="$xcldf $LDFLAGS"
|
|
8314 LIBS=
|
|
8315 xe_libs=
|
|
8316 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
8317 cat > conftest.$ac_ext <<EOF
|
2131
|
8318 #line 8319 "configure"
|
1470
|
8319 #include "confdefs.h"
|
|
8320
|
|
8321 int main() {
|
|
8322 int x=0;
|
|
8323 ; return 0; }
|
|
8324 EOF
|
2131
|
8325 if { (eval echo configure:8326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8326 rm -rf conftest*
|
|
8327 cc_produces_so=yes
|
|
8328 else
|
|
8329 echo "configure: failed program was:" >&5
|
|
8330 cat conftest.$ac_ext >&5
|
|
8331 rm -rf conftest*
|
|
8332 cc_produces_so=no
|
|
8333 fi
|
|
8334 rm -f conftest*
|
|
8335 LDFLAGS=$save_LDFLAGS
|
|
8336 LIBS=$save_LIBS
|
|
8337 xe_libs=$save_xe_libs
|
|
8338 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
8339 else
|
|
8340 cc_produces_so=no
|
|
8341 fi
|
|
8342 echo "$ac_t""${cc_produces_so}" 1>&6
|
|
8343
|
|
8344 LTLD=$LD
|
|
8345 if test -z "$LTLD"; then
|
|
8346 ac_prog=ld
|
|
8347 if test "$XEGCC" = yes; then
|
|
8348 # Check if gcc -print-prog-name=ld gives a path.
|
|
8349 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
2131
|
8350 echo "configure:8351: checking for ld used by GCC" >&5
|
1470
|
8351 ac_prog=`($CC -print-prog-name=ld) 2>&5`
|
|
8352 case "$ac_prog" in
|
|
8353 # Accept absolute paths.
|
|
8354 /*)
|
|
8355 if test -z "$LTLD"; then
|
|
8356 # case "$ac_prog" in
|
|
8357 # *gcc-lib*) LTLD="$CC"
|
|
8358 # ;;
|
|
8359 # *)
|
|
8360 LTLD="$ac_prog"
|
|
8361 # ;;
|
|
8362 # esac
|
|
8363 fi
|
|
8364 ;;
|
|
8365 "")
|
|
8366 # If it fails, then pretend we aren't using GCC.
|
|
8367 ac_prog=ld
|
|
8368 ;;
|
|
8369 *)
|
|
8370 # If it is relative, then search for the first ld in PATH.
|
|
8371 with_gnu_ld=unknown
|
|
8372 ;;
|
|
8373 esac
|
|
8374 else
|
|
8375 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
2131
|
8376 echo "configure:8377: checking for GNU ld" >&5
|
1470
|
8377 fi
|
|
8378
|
|
8379 if test -z "$LTLD"; then
|
|
8380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
8381 for ac_dir in $PATH; do
|
|
8382 test -z "$ac_dir" && ac_dir=.
|
|
8383 if test -f "$ac_dir/$ac_prog"; then
|
|
8384 LTLD="$ac_dir/$ac_prog"
|
|
8385 # Check to see if the program is GNU ld. I'd rather use --version,
|
|
8386 # but apparently some GNU ld's only accept -v.
|
|
8387 # Break only if it was the GNU/non-GNU ld that we prefer.
|
|
8388 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|
8389 xe_gnu_ld=yes
|
|
8390 else
|
|
8391 xe_gnu_ld=no
|
|
8392 fi
|
|
8393 fi
|
|
8394 done
|
|
8395 IFS="$ac_save_ifs"
|
|
8396 fi
|
|
8397
|
|
8398 if test -n "$LTLD"; then
|
|
8399 echo "$ac_t""${LTLD}" 1>&6
|
|
8400 else
|
|
8401 echo "$ac_t""no" 1>&6
|
|
8402 fi
|
|
8403
|
|
8404 if test -z "$LTLD" -a "$cc_produces_so" = no; then
|
|
8405 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
|
|
8406 exit 1
|
|
8407 fi
|
|
8408 fi
|
|
8409
|
|
8410 ld_dynamic_link_flags=
|
|
8411
|
|
8412 # Check to see if it really is or isn't GNU ld.
|
|
8413 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
|
2131
|
8414 echo "configure:8415: checking if the linker is GNU ld" >&5
|
1470
|
8415 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|
8416 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|
8417 xe_gnu_ld=yes
|
|
8418 else
|
|
8419 xe_gnu_ld=no
|
|
8420 fi
|
|
8421 echo "$ac_t""${xe_gnu_ld}" 1>&6
|
|
8422
|
|
8423 case "$xehost_os" in
|
|
8424 amigaos* | sunos4*)
|
|
8425 # On these operating systems, we should treat GNU ld like the system ld.
|
|
8426 gnu_ld_acts_native=yes
|
|
8427 ;;
|
|
8428 *)
|
|
8429 gnu_ld_acts_native=no
|
|
8430 ;;
|
|
8431 esac
|
|
8432
|
|
8433 if test "$cc_produces_so" = "yes"; then
|
|
8434 dll_ld=$CC
|
1692
|
8435 case "$xehost_os" in
|
|
8436 *darwin*)
|
|
8437 dll_ldflags=$xldf
|
|
8438 ;;
|
|
8439 *)
|
|
8440 dll_ldflags=$xcldf
|
|
8441 ;;
|
|
8442 esac
|
1470
|
8443 can_build_shared=yes
|
|
8444 ld_shlibs=yes
|
|
8445 else
|
|
8446 # OK - only NOW do we futz about with ld.
|
|
8447 # See if the linker supports building shared libraries.
|
|
8448 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
|
2131
|
8449 echo "configure:8450: checking whether the linker supports shared libraries" >&5
|
1470
|
8450 dll_ld=$CC
|
|
8451 dll_ldflags=$LDFLAGS
|
|
8452 ld_shlibs=yes
|
|
8453 can_build_shared=yes
|
|
8454 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
|
|
8455 # See if GNU ld supports shared libraries.
|
|
8456 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
|
8457 dll_ld=$CC
|
|
8458 dll_ldflags="-shared"
|
|
8459 ld_shlibs=yes
|
|
8460 else
|
|
8461 ld_shlibs=no
|
|
8462 fi
|
|
8463 else
|
|
8464 # PORTME fill in a description of your system's linker (not GNU ld)
|
|
8465 case "$xehost_os" in
|
|
8466 aix3*)
|
|
8467 dll_ld=$LTLD
|
|
8468 dll_ldflags=$xldf
|
|
8469 ;;
|
|
8470
|
|
8471 aix[4-9]*)
|
|
8472 dll_ldflags=$xcldf
|
|
8473 ;;
|
|
8474
|
|
8475 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
8476 # support. Future versions do this automatically, but an explicit c++rt0.o
|
|
8477 # doesn't break anything, and helps significantly (at the cost of a little
|
|
8478 # extra space).
|
|
8479 freebsd2.2*)
|
|
8480 dll_ld=$LTLD
|
|
8481 dll_ldflags=$xldf
|
|
8482 dll_post="/usr/lib/c++rt0.o"
|
|
8483 ;;
|
|
8484
|
|
8485 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
|
|
8486 freebsd2*)
|
|
8487 dll_ld=$LTLD
|
|
8488 dll_ldflags="-Bshareable"
|
|
8489 ;;
|
|
8490
|
|
8491 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
|
|
8492 freebsd3*)
|
|
8493 dll_ldflags="-shared"
|
|
8494 ;;
|
|
8495
|
|
8496 hpux*)
|
|
8497 dll_ld=$LTLD
|
|
8498 dll_ldflags=$xldf
|
|
8499 ;;
|
|
8500
|
|
8501 irix[5-9]*)
|
|
8502 dll_ld=$LTLD
|
|
8503 dll_ldflags=$xldf
|
|
8504 ;;
|
|
8505
|
|
8506 netbsd*)
|
|
8507 # Tested with NetBSD 1.2 ld
|
|
8508 dll_ld=$LTLD
|
|
8509 dll_ldflags=$xldf
|
|
8510 ;;
|
|
8511
|
|
8512 openbsd*)
|
|
8513 dll_ld=$LTLD
|
|
8514 dll_ldflags=$xldf
|
|
8515 ;;
|
|
8516
|
|
8517 osf3* | osf4*)
|
|
8518 dll_ld=$LTLD
|
|
8519 dll_ldflags=$xldf
|
|
8520 ;;
|
|
8521
|
|
8522 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
|
|
8523 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
|
|
8524 dll_ld=$LTLD
|
|
8525 case "$dll_ld" in
|
|
8526 *gcc*) dll_ldflags="-shared"
|
|
8527 dll_ld=$CC
|
|
8528 ;;
|
|
8529 *) dll_ldflags="-G"
|
|
8530 ;;
|
|
8531 esac
|
|
8532 ;;
|
|
8533
|
|
8534 sunos4*)
|
|
8535 if test "$XEGCC" = yes; then
|
|
8536 dll_ld=$CC
|
|
8537 else
|
|
8538 dll_ld=$LTLD
|
|
8539 fi
|
|
8540 dll_ldflags=$xldf
|
|
8541 ;;
|
|
8542
|
|
8543 uts4*)
|
|
8544 dll_ld=$LTLD
|
|
8545 dll_ldflags="-G"
|
|
8546 ;;
|
|
8547
|
|
8548 bsdi*)
|
|
8549 dll_ldflags="-r"
|
|
8550 dll_ld="shlicc2"
|
|
8551 ;;
|
|
8552
|
|
8553 *)
|
|
8554 ld_shlibs=no
|
|
8555 can_build_shared=no
|
|
8556 ;;
|
|
8557 esac
|
|
8558 fi
|
|
8559 echo "$ac_t""${ld_shlibs}" 1>&6
|
|
8560 if test "$ld_shlibs" = "no"; then
|
|
8561 can_build_shared=no
|
|
8562 fi
|
|
8563 fi # End of if cc_produces_so = no
|
|
8564
|
|
8565
|
|
8566 if test "$xe_gnu_ld" = yes; then
|
|
8567 if test "$ld_shlibs" = yes; then
|
|
8568 ld_dynamic_link_flags="${wl}-export-dynamic"
|
|
8569 fi
|
|
8570 fi
|
|
8571
|
|
8572 if test -z "$ld_dynamic_link_flags"; then
|
|
8573 case "$xehost_os" in
|
|
8574 aix[3-9]*)
|
|
8575 ld_dynamic_link_flags=
|
|
8576 ;;
|
|
8577
|
1692
|
8578 *darwin*)
|
|
8579 ld_dynamic_link_flags=
|
|
8580 ;;
|
|
8581
|
1470
|
8582 freebsd2.2*)
|
|
8583 ld_dynamic_link_flags=
|
|
8584 ;;
|
|
8585
|
|
8586 freebsd2*)
|
|
8587 ld_dynamic_link_flags=
|
|
8588 ;;
|
|
8589
|
|
8590 freebsd3*)
|
|
8591 ld_dynamic_link_flags=
|
|
8592 ;;
|
|
8593
|
|
8594 hpux*)
|
|
8595 ld_dynamic_link_flags="${wl}-E"
|
|
8596 ;;
|
|
8597
|
|
8598 irix[5-9]*)
|
|
8599 ld_dynamic_link_flags=
|
|
8600 ;;
|
|
8601
|
|
8602 netbsd*)
|
|
8603 ld_dynamic_link_flags=
|
|
8604 ;;
|
|
8605
|
|
8606 openbsd*)
|
|
8607 ld_dynamic_link_flags=
|
|
8608 ;;
|
|
8609
|
|
8610 osf3* | osf4*)
|
|
8611 ld_dynamic_link_flags=
|
|
8612 ;;
|
|
8613
|
|
8614 solaris2* | solaris7*)
|
|
8615 ld_dynamic_link_flags=
|
|
8616 ;;
|
|
8617
|
|
8618 sco3.2v5* | unixware* | sysv5* | sysv4*)
|
|
8619 ld_dynamic_link_flags="${wl}-Bexport"
|
|
8620 ;;
|
|
8621
|
|
8622 sunos4*)
|
|
8623 ld_dynamic_link_flags=
|
|
8624 ;;
|
|
8625
|
|
8626 uts4*)
|
|
8627 ld_dynamic_link_flags=
|
|
8628 ;;
|
|
8629
|
|
8630 bsdi*)
|
|
8631 ld_dynamic_link_flags=
|
|
8632 ;;
|
|
8633
|
|
8634 esac
|
|
8635 fi # End of if -z ld_dynamic_link_flags
|
|
8636 fi # End of if test "$can_build_shared" = "yes"
|
|
8637
|
|
8638
|
|
8639
|
|
8640
|
|
8641
|
|
8642
|
|
8643
|
|
8644
|
|
8645 fi
|
|
8646
|
|
8647 if test "$can_build_shared" = "yes"; then
|
|
8648 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8649 Defining HAVE_SHLIB
|
|
8650 EOF
|
|
8651 cat >> confdefs.h <<\EOF
|
|
8652 #define HAVE_SHLIB 1
|
|
8653 EOF
|
|
8654 }
|
|
8655
|
1491
|
8656 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
1470
|
8657 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
8658 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
|
|
8659 for ac_func in dlerror _dlerror
|
|
8660 do
|
|
8661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
8662 echo "configure:8663: checking for $ac_func" >&5
|
|
8663
|
|
8664 cat > conftest.$ac_ext <<EOF
|
|
8665 #line 8666 "configure"
|
1470
|
8666 #include "confdefs.h"
|
|
8667 /* System header to define __stub macros and hopefully few prototypes,
|
|
8668 which can conflict with char $ac_func(); below. */
|
|
8669 #include <assert.h>
|
|
8670 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8671 /* We use char because int might match the return type of a gcc2
|
|
8672 builtin and then its argument prototype would still apply. */
|
|
8673 char $ac_func();
|
|
8674
|
|
8675 int main() {
|
|
8676
|
|
8677 /* The GNU C library defines this for functions which it implements
|
|
8678 to always fail with ENOSYS. Some functions are actually named
|
|
8679 something starting with __ and the normal name is an alias. */
|
|
8680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
8681 choke me
|
|
8682 #else
|
|
8683 $ac_func();
|
|
8684 #endif
|
|
8685
|
|
8686 ; return 0; }
|
|
8687 EOF
|
2131
|
8688 if { (eval echo configure:8689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8689 rm -rf conftest*
|
|
8690 eval "ac_cv_func_$ac_func=yes"
|
|
8691 else
|
|
8692 echo "configure: failed program was:" >&5
|
|
8693 cat conftest.$ac_ext >&5
|
|
8694 rm -rf conftest*
|
|
8695 eval "ac_cv_func_$ac_func=no"
|
|
8696 fi
|
|
8697 rm -f conftest*
|
|
8698
|
|
8699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
8700 echo "$ac_t""yes" 1>&6
|
|
8701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
8702 { test "$extra_verbose" = "yes" && cat << EOF
|
|
8703 Defining $ac_tr_func
|
|
8704 EOF
|
|
8705 cat >> confdefs.h <<EOF
|
|
8706 #define $ac_tr_func 1
|
|
8707 EOF
|
|
8708 }
|
|
8709
|
|
8710 else
|
|
8711 echo "$ac_t""no" 1>&6
|
|
8712 fi
|
|
8713 done
|
|
8714
|
|
8715 with_modules=yes
|
|
8716 MOD_CC="../../lib-src/ellcc"
|
|
8717 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src"
|
|
8718 INSTALLPATH="\$(moduledir)"
|
|
8719 MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM}
|
|
8720 OBJECT_TO_BUILD="\$(MODNAME).ell"
|
|
8721 else
|
|
8722 if test "$with_modules" = "yes"; then
|
|
8723 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
|
|
8724 else
|
|
8725 echo " No module support."
|
|
8726 fi
|
|
8727 with_modules=no
|
1491
|
8728 fi
|
|
8729 fi
|
|
8730 if test "$with_modules" != "yes"; then
|
|
8731 MOD_CC="$XEMACS_CC"
|
|
8732 MODCFLAGS="\$(CFLAGS) -I../../src -I\$(srcdir)/../../src"
|
|
8733 INSTALLPATH=""
|
|
8734 MOD_INSTALL_PROGRAM="true"
|
|
8735 OBJECT_TO_BUILD="\$(MODNAME).o"
|
1470
|
8736 fi
|
|
8737 MODARCHDIR=
|
|
8738 MAKE_DOCFILE="../../lib-src/make-docfile"
|
|
8739
|
|
8740
|
|
8741
|
|
8742
|
|
8743
|
|
8744
|
|
8745
|
|
8746
|
997
|
8747
|
149
|
8748 if test "$with_tooltalk" != "no" ; then
|
|
8749 for dir in "" "Tt/" "desktop/" ; do
|
|
8750 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
|
|
8751 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
|
2131
|
8752 echo "configure:8753: checking for ${dir}tt_c.h" >&5
|
|
8753
|
|
8754 cat > conftest.$ac_ext <<EOF
|
|
8755 #line 8756 "configure"
|
149
|
8756 #include "confdefs.h"
|
|
8757 #include <${dir}tt_c.h>
|
|
8758 EOF
|
|
8759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
8760 { (eval echo configure:8761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
8762 if test -z "$ac_err"; then
|
|
8763 rm -rf conftest*
|
|
8764 eval "ac_cv_header_$ac_safe=yes"
|
|
8765 else
|
|
8766 echo "$ac_err" >&5
|
|
8767 echo "configure: failed program was:" >&5
|
|
8768 cat conftest.$ac_ext >&5
|
|
8769 rm -rf conftest*
|
|
8770 eval "ac_cv_header_$ac_safe=no"
|
|
8771 fi
|
|
8772 rm -f conftest*
|
|
8773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8774 echo "$ac_t""yes" 1>&6
|
442
|
8775 tt_c_h_file="${dir}tt_c.h"; break
|
149
|
8776 else
|
|
8777 echo "$ac_t""no" 1>&6
|
|
8778 fi
|
|
8779
|
|
8780 done
|
442
|
8781 if test -z "$tt_c_h_file"; then
|
284
|
8782 if test "$with_tooltalk" = "yes"; then
|
|
8783 (echo "$progname: Usage error:"
|
|
8784 echo " " "Unable to find required tooltalk header files."
|
|
8785 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
8786 fi
|
|
8787 with_tooltalk=no
|
|
8788 fi
|
149
|
8789 fi
|
|
8790 if test "$with_tooltalk" != "no" ; then
|
|
8791 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
|
|
8792
|
|
8793 xe_msg_checking="for tt_message_create in -ltt"
|
|
8794 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
|
|
8795 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2131
|
8796 echo "configure:8797: checking "$xe_msg_checking"" >&5
|
149
|
8797 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
|
|
8798
|
|
8799 xe_check_libs=" -ltt $extra_libs"
|
|
8800 cat > conftest.$ac_ext <<EOF
|
2131
|
8801 #line 8802 "configure"
|
149
|
8802 #include "confdefs.h"
|
|
8803 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8804 /* We use char because int might match the return type of a gcc2
|
|
8805 builtin and then its argument prototype would still apply. */
|
|
8806 char tt_message_create();
|
|
8807
|
|
8808 int main() {
|
|
8809 tt_message_create()
|
|
8810 ; return 0; }
|
|
8811 EOF
|
2131
|
8812 if { (eval echo configure:8813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
8813 rm -rf conftest*
|
|
8814 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8815 else
|
|
8816 echo "configure: failed program was:" >&5
|
|
8817 cat conftest.$ac_ext >&5
|
|
8818 rm -rf conftest*
|
|
8819 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8820 fi
|
|
8821 rm -f conftest*
|
|
8822 xe_check_libs=""
|
|
8823
|
151
|
8824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
8825 echo "$ac_t""yes" 1>&6
|
284
|
8826 tt_libs="-ltt $extra_libs"; break
|
149
|
8827 else
|
|
8828 echo "$ac_t""no" 1>&6
|
|
8829 :
|
|
8830 fi
|
|
8831
|
|
8832
|
|
8833 done
|
284
|
8834 if test -z "$tt_libs"; then
|
|
8835 if test "$with_tooltalk" = "yes"; then
|
|
8836 (echo "$progname: Usage error:"
|
|
8837 echo " " "Unable to find required tooltalk libraries."
|
|
8838 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
8839 fi
|
|
8840 with_tooltalk=no
|
|
8841 fi
|
|
8842 fi
|
|
8843 test -z "$with_tooltalk" && with_tooltalk=yes
|
149
|
8844 if test "$with_tooltalk" = "yes"; then
|
|
8845 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8846 Defining TOOLTALK
|
|
8847 EOF
|
|
8848 cat >> confdefs.h <<\EOF
|
|
8849 #define TOOLTALK 1
|
|
8850 EOF
|
|
8851 }
|
|
8852
|
|
8853 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
8854 Defining TT_C_H_FILE = "$tt_c_h_file"
|
|
8855 EOF
|
|
8856 cat >> confdefs.h <<EOF
|
|
8857 #define TT_C_H_FILE "$tt_c_h_file"
|
149
|
8858 EOF
|
|
8859 }
|
|
8860
|
151
|
8861 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
|
149
|
8862 fi
|
|
8863
|
|
8864 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
|
|
8865 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
|
2131
|
8866 echo "configure:8867: checking for Dt/Dt.h" >&5
|
|
8867
|
|
8868 cat > conftest.$ac_ext <<EOF
|
|
8869 #line 8870 "configure"
|
149
|
8870 #include "confdefs.h"
|
|
8871 #include <Dt/Dt.h>
|
|
8872 EOF
|
|
8873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
8874 { (eval echo configure:8875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
8876 if test -z "$ac_err"; then
|
|
8877 rm -rf conftest*
|
|
8878 eval "ac_cv_header_$ac_safe=yes"
|
|
8879 else
|
|
8880 echo "$ac_err" >&5
|
|
8881 echo "configure: failed program was:" >&5
|
|
8882 cat conftest.$ac_ext >&5
|
|
8883 rm -rf conftest*
|
|
8884 eval "ac_cv_header_$ac_safe=no"
|
|
8885 fi
|
|
8886 rm -f conftest*
|
|
8887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8888 echo "$ac_t""yes" 1>&6
|
|
8889 :
|
|
8890 else
|
|
8891 echo "$ac_t""no" 1>&6
|
|
8892 with_cde=no
|
136
|
8893 fi
|
|
8894 }
|
149
|
8895 test -z "$with_cde" && {
|
|
8896 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
|
2131
|
8897 echo "configure:8898: checking for DtDndDragStart in -lDtSvc" >&5
|
149
|
8898 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
|
|
8899
|
|
8900 xe_check_libs=" -lDtSvc "
|
|
8901 cat > conftest.$ac_ext <<EOF
|
2131
|
8902 #line 8903 "configure"
|
149
|
8903 #include "confdefs.h"
|
|
8904 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8905 /* We use char because int might match the return type of a gcc2
|
|
8906 builtin and then its argument prototype would still apply. */
|
|
8907 char DtDndDragStart();
|
|
8908
|
|
8909 int main() {
|
|
8910 DtDndDragStart()
|
|
8911 ; return 0; }
|
|
8912 EOF
|
2131
|
8913 if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
8914 rm -rf conftest*
|
|
8915 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8916 else
|
|
8917 echo "configure: failed program was:" >&5
|
|
8918 cat conftest.$ac_ext >&5
|
|
8919 rm -rf conftest*
|
|
8920 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8921 fi
|
|
8922 rm -f conftest*
|
|
8923 xe_check_libs=""
|
|
8924
|
151
|
8925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
8926 echo "$ac_t""yes" 1>&6
|
|
8927 :
|
|
8928 else
|
|
8929 echo "$ac_t""no" 1>&6
|
|
8930 with_cde=no
|
|
8931 fi
|
|
8932
|
|
8933 }
|
582
|
8934 if test "$with_dragndrop" = "no" ; then
|
|
8935 if test "$with_cde" = "yes" ; then
|
|
8936 echo "configure: warning: --with-cde forced to \`no'; no generic Drag'n'Drop support" 1>&2
|
|
8937 fi
|
|
8938 with_cde=no
|
|
8939 fi
|
149
|
8940 test -z "$with_cde" && with_cde=yes
|
|
8941 if test "$with_cde" = "yes" ; then
|
|
8942 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8943 Defining HAVE_CDE
|
|
8944 EOF
|
|
8945 cat >> confdefs.h <<\EOF
|
|
8946 #define HAVE_CDE 1
|
|
8947 EOF
|
|
8948 }
|
|
8949
|
151
|
8950 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
|
282
|
8951 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
|
149
|
8952 with_tooltalk=yes # CDE requires Tooltalk
|
167
|
8953 need_motif=yes # CDE requires Motif
|
149
|
8954 fi
|
|
8955
|
288
|
8956 test "$window_system" != "x11" && with_offix=no
|
|
8957 if test "$with_xmu" != yes -a "$with_x11" = yes; then
|
582
|
8958 if test "$with_offix" = "yes" ; then
|
|
8959 echo "configure: warning: --with-offix forced to \`no'; no real Xmu support" 1>&2
|
|
8960 fi
|
288
|
8961 with_offix=no
|
|
8962 fi
|
|
8963 if test "$with_dragndrop" = no; then
|
582
|
8964 if test "$with_offix" = "yes" ; then
|
|
8965 echo "configure: warning: --with-offix forced to \`no'; no generic Drag'n'Drop support" 1>&2
|
|
8966 fi
|
288
|
8967 with_offix=no
|
|
8968 fi
|
|
8969 if test "$with_cde" = yes; then
|
582
|
8970 if test "$with_offix" = "yes" ; then
|
|
8971 echo "configure: warning: --with-offix forced to \`no'; CDE already found" 1>&2
|
|
8972 fi
|
288
|
8973 with_offix=no
|
|
8974 fi
|
300
|
8975 test -z "$with_offix" && with_offix=no
|
288
|
8976 if test "$with_offix" = "yes"; then
|
|
8977 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8978 Defining HAVE_OFFIX_DND
|
|
8979 EOF
|
|
8980 cat >> confdefs.h <<\EOF
|
|
8981 #define HAVE_OFFIX_DND 1
|
|
8982 EOF
|
|
8983 }
|
|
8984
|
|
8985 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
|
|
8986 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
|
|
8987 fi
|
462
|
8988 if test "$with_gtk" = "yes"; then
|
|
8989 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
|
|
8990 fi
|
288
|
8991
|
282
|
8992 if test "$with_dragndrop" != "no" ; then
|
446
|
8993 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
|
2131
|
8994 echo "configure:8995: checking if drag and drop API is needed" >&5
|
282
|
8995 if test -n "$dragndrop_proto" ; then
|
|
8996 with_dragndrop=yes
|
|
8997 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
|
|
8998 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8999 Defining HAVE_DRAGNDROP
|
|
9000 EOF
|
|
9001 cat >> confdefs.h <<\EOF
|
|
9002 #define HAVE_DRAGNDROP 1
|
|
9003 EOF
|
|
9004 }
|
|
9005
|
|
9006 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
|
|
9007 else
|
|
9008 with_dragndrop=no
|
|
9009 echo "$ac_t""no" 1>&6
|
|
9010 fi
|
|
9011 fi
|
|
9012
|
1470
|
9013 echo "checking for LDAP" 1>&6
|
2131
|
9014 echo "configure:9015: checking for LDAP" >&5
|
1470
|
9015 ldap_libs=
|
|
9016 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
|
|
9017 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
|
2131
|
9018 echo "configure:9019: checking for ldap.h" >&5
|
|
9019
|
|
9020 cat > conftest.$ac_ext <<EOF
|
|
9021 #line 9022 "configure"
|
1470
|
9022 #include "confdefs.h"
|
|
9023 #include <ldap.h>
|
|
9024 EOF
|
|
9025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
9026 { (eval echo configure:9027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1470
|
9027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9028 if test -z "$ac_err"; then
|
|
9029 rm -rf conftest*
|
|
9030 eval "ac_cv_header_$ac_safe=yes"
|
|
9031 else
|
|
9032 echo "$ac_err" >&5
|
|
9033 echo "configure: failed program was:" >&5
|
|
9034 cat conftest.$ac_ext >&5
|
|
9035 rm -rf conftest*
|
|
9036 eval "ac_cv_header_$ac_safe=no"
|
|
9037 fi
|
|
9038 rm -f conftest*
|
|
9039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9040 echo "$ac_t""yes" 1>&6
|
|
9041 :
|
|
9042 else
|
|
9043 echo "$ac_t""no" 1>&6
|
|
9044 with_ldap=no
|
|
9045 fi
|
|
9046 }
|
|
9047 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
|
|
9048 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
|
2131
|
9049 echo "configure:9050: checking for lber.h" >&5
|
|
9050
|
|
9051 cat > conftest.$ac_ext <<EOF
|
|
9052 #line 9053 "configure"
|
1470
|
9053 #include "confdefs.h"
|
|
9054 #include <lber.h>
|
|
9055 EOF
|
|
9056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
9057 { (eval echo configure:9058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1470
|
9058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9059 if test -z "$ac_err"; then
|
|
9060 rm -rf conftest*
|
|
9061 eval "ac_cv_header_$ac_safe=yes"
|
|
9062 else
|
|
9063 echo "$ac_err" >&5
|
|
9064 echo "configure: failed program was:" >&5
|
|
9065 cat conftest.$ac_ext >&5
|
|
9066 rm -rf conftest*
|
|
9067 eval "ac_cv_header_$ac_safe=no"
|
|
9068 fi
|
|
9069 rm -f conftest*
|
|
9070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9071 echo "$ac_t""yes" 1>&6
|
|
9072 :
|
|
9073 else
|
|
9074 echo "$ac_t""no" 1>&6
|
|
9075 with_ldap=no
|
|
9076 fi
|
|
9077 }
|
|
9078 if test "$with_ldap" != "no"; then
|
|
9079
|
|
9080 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
|
2131
|
9081 echo "configure:9082: checking for ldap_search in -lldap" >&5
|
1470
|
9082 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
|
|
9083
|
|
9084 xe_check_libs=" -lldap "
|
|
9085 cat > conftest.$ac_ext <<EOF
|
2131
|
9086 #line 9087 "configure"
|
1470
|
9087 #include "confdefs.h"
|
|
9088 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9089 /* We use char because int might match the return type of a gcc2
|
|
9090 builtin and then its argument prototype would still apply. */
|
|
9091 char ldap_search();
|
|
9092
|
|
9093 int main() {
|
|
9094 ldap_search()
|
|
9095 ; return 0; }
|
|
9096 EOF
|
2131
|
9097 if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9098 rm -rf conftest*
|
|
9099 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9100 else
|
|
9101 echo "configure: failed program was:" >&5
|
|
9102 cat conftest.$ac_ext >&5
|
|
9103 rm -rf conftest*
|
|
9104 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9105 fi
|
|
9106 rm -f conftest*
|
|
9107 xe_check_libs=""
|
|
9108
|
|
9109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9110 echo "$ac_t""yes" 1>&6
|
|
9111 with_ldap_nolber=yes
|
|
9112 else
|
|
9113 echo "$ac_t""no" 1>&6
|
|
9114 with_ldap_nolber=no
|
|
9115 fi
|
|
9116
|
|
9117
|
|
9118 test "$with_ldap_nolber" = "no" && {
|
|
9119 xe_msg_checking="for ldap_open in -lldap"
|
|
9120 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
|
|
9121 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2131
|
9122 echo "configure:9123: checking "$xe_msg_checking"" >&5
|
1470
|
9123 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
9124
|
|
9125 xe_check_libs=" -lldap -llber"
|
|
9126 cat > conftest.$ac_ext <<EOF
|
2131
|
9127 #line 9128 "configure"
|
1470
|
9128 #include "confdefs.h"
|
|
9129 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9130 /* We use char because int might match the return type of a gcc2
|
|
9131 builtin and then its argument prototype would still apply. */
|
|
9132 char ldap_open();
|
|
9133
|
|
9134 int main() {
|
|
9135 ldap_open()
|
|
9136 ; return 0; }
|
|
9137 EOF
|
2131
|
9138 if { (eval echo configure:9139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9139 rm -rf conftest*
|
|
9140 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9141 else
|
|
9142 echo "configure: failed program was:" >&5
|
|
9143 cat conftest.$ac_ext >&5
|
|
9144 rm -rf conftest*
|
|
9145 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9146 fi
|
|
9147 rm -f conftest*
|
|
9148 xe_check_libs=""
|
|
9149
|
|
9150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9151 echo "$ac_t""yes" 1>&6
|
|
9152 with_ldap_lber=yes
|
|
9153 else
|
|
9154 echo "$ac_t""no" 1>&6
|
|
9155 with_ldap_lber=no
|
|
9156 fi
|
|
9157
|
|
9158 }
|
|
9159 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
|
|
9160 xe_msg_checking="for ldap_open in -lldap"
|
|
9161 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
|
|
9162 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2131
|
9163 echo "configure:9164: checking "$xe_msg_checking"" >&5
|
1470
|
9164 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
9165
|
|
9166 xe_check_libs=" -lldap -llber -lkrb"
|
|
9167 cat > conftest.$ac_ext <<EOF
|
2131
|
9168 #line 9169 "configure"
|
1470
|
9169 #include "confdefs.h"
|
|
9170 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9171 /* We use char because int might match the return type of a gcc2
|
|
9172 builtin and then its argument prototype would still apply. */
|
|
9173 char ldap_open();
|
|
9174
|
|
9175 int main() {
|
|
9176 ldap_open()
|
|
9177 ; return 0; }
|
|
9178 EOF
|
2131
|
9179 if { (eval echo configure:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9180 rm -rf conftest*
|
|
9181 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9182 else
|
|
9183 echo "configure: failed program was:" >&5
|
|
9184 cat conftest.$ac_ext >&5
|
|
9185 rm -rf conftest*
|
|
9186 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9187 fi
|
|
9188 rm -f conftest*
|
|
9189 xe_check_libs=""
|
|
9190
|
|
9191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9192 echo "$ac_t""yes" 1>&6
|
|
9193 with_ldap_krb=yes
|
|
9194 else
|
|
9195 echo "$ac_t""no" 1>&6
|
|
9196 with_ldap_krb=no
|
|
9197 fi
|
|
9198
|
|
9199 }
|
|
9200 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
|
|
9201 xe_msg_checking="for ldap_open in -lldap"
|
|
9202 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
|
|
9203 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2131
|
9204 echo "configure:9205: checking "$xe_msg_checking"" >&5
|
1470
|
9205 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
9206
|
|
9207 xe_check_libs=" -lldap -llber -lkrb -ldes"
|
|
9208 cat > conftest.$ac_ext <<EOF
|
2131
|
9209 #line 9210 "configure"
|
1470
|
9210 #include "confdefs.h"
|
|
9211 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9212 /* We use char because int might match the return type of a gcc2
|
|
9213 builtin and then its argument prototype would still apply. */
|
|
9214 char ldap_open();
|
|
9215
|
|
9216 int main() {
|
|
9217 ldap_open()
|
|
9218 ; return 0; }
|
|
9219 EOF
|
2131
|
9220 if { (eval echo configure:9221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9221 rm -rf conftest*
|
|
9222 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9223 else
|
|
9224 echo "configure: failed program was:" >&5
|
|
9225 cat conftest.$ac_ext >&5
|
|
9226 rm -rf conftest*
|
|
9227 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9228 fi
|
|
9229 rm -f conftest*
|
|
9230 xe_check_libs=""
|
|
9231
|
|
9232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9233 echo "$ac_t""yes" 1>&6
|
|
9234 with_ldap_krbdes=yes
|
|
9235 else
|
|
9236 echo "$ac_t""no" 1>&6
|
|
9237 with_ldap_krbdes=no
|
|
9238 fi
|
|
9239
|
|
9240 }
|
|
9241 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
|
|
9242 fi
|
|
9243 if test "$with_ldap" = "yes"; then
|
|
9244 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9245 Defining HAVE_LDAP
|
|
9246 EOF
|
|
9247 cat >> confdefs.h <<\EOF
|
|
9248 #define HAVE_LDAP 1
|
|
9249 EOF
|
|
9250 }
|
|
9251
|
|
9252 if test "$with_ldap_nolber" = "yes" ; then
|
|
9253 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
|
|
9254 else
|
|
9255 if test "$with_ldap_krb" = "yes" ; then
|
|
9256 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
|
|
9257 fi
|
|
9258 if test "$with_ldap_krbdes" = "yes" ; then
|
|
9259 ldap_libs="-ldes $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$ldap_libs"; fi
|
|
9260 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
|
|
9261 fi
|
|
9262 ldap_libs="-llber $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$ldap_libs"; fi
|
|
9263 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
|
|
9264 fi
|
|
9265 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
|
|
9266 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
|
|
9267 do
|
|
9268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
9269 echo "configure:9270: checking for $ac_func" >&5
|
|
9270
|
|
9271 cat > conftest.$ac_ext <<EOF
|
|
9272 #line 9273 "configure"
|
1470
|
9273 #include "confdefs.h"
|
|
9274 /* System header to define __stub macros and hopefully few prototypes,
|
|
9275 which can conflict with char $ac_func(); below. */
|
|
9276 #include <assert.h>
|
|
9277 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9278 /* We use char because int might match the return type of a gcc2
|
|
9279 builtin and then its argument prototype would still apply. */
|
|
9280 char $ac_func();
|
|
9281
|
|
9282 int main() {
|
|
9283
|
|
9284 /* The GNU C library defines this for functions which it implements
|
|
9285 to always fail with ENOSYS. Some functions are actually named
|
|
9286 something starting with __ and the normal name is an alias. */
|
|
9287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
9288 choke me
|
|
9289 #else
|
|
9290 $ac_func();
|
|
9291 #endif
|
|
9292
|
|
9293 ; return 0; }
|
|
9294 EOF
|
2131
|
9295 if { (eval echo configure:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9296 rm -rf conftest*
|
|
9297 eval "ac_cv_func_$ac_func=yes"
|
|
9298 else
|
|
9299 echo "configure: failed program was:" >&5
|
|
9300 cat conftest.$ac_ext >&5
|
|
9301 rm -rf conftest*
|
|
9302 eval "ac_cv_func_$ac_func=no"
|
|
9303 fi
|
|
9304 rm -f conftest*
|
|
9305
|
|
9306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
9307 echo "$ac_t""yes" 1>&6
|
|
9308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
9309 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9310 Defining $ac_tr_func
|
|
9311 EOF
|
|
9312 cat >> confdefs.h <<EOF
|
|
9313 #define $ac_tr_func 1
|
|
9314 EOF
|
|
9315 }
|
|
9316
|
|
9317 else
|
|
9318 echo "$ac_t""no" 1>&6
|
|
9319 fi
|
|
9320 done
|
|
9321
|
|
9322 LIBS="$save_LIBS"
|
|
9323 MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi
|
|
9324 need_modules_common=yes
|
|
9325 if test "$with_modules" = "yes"; then
|
|
9326 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
9327 fi
|
|
9328 fi
|
|
9329
|
|
9330
|
|
9331 postgresql_libs=
|
|
9332 if test "$with_postgresql" != "no"; then
|
|
9333 echo "checking for PostgreSQL" 1>&6
|
2131
|
9334 echo "configure:9335: checking for PostgreSQL" >&5
|
1470
|
9335
|
|
9336 for header_dir in "" "pgsql/" "postgresql/"; do
|
|
9337 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
|
|
9338 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
|
2131
|
9339 echo "configure:9340: checking for ${header_dir}libpq-fe.h" >&5
|
|
9340
|
|
9341 cat > conftest.$ac_ext <<EOF
|
|
9342 #line 9343 "configure"
|
1470
|
9343 #include "confdefs.h"
|
|
9344 #include <${header_dir}libpq-fe.h>
|
|
9345 EOF
|
|
9346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
9347 { (eval echo configure:9348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1470
|
9348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9349 if test -z "$ac_err"; then
|
|
9350 rm -rf conftest*
|
|
9351 eval "ac_cv_header_$ac_safe=yes"
|
|
9352 else
|
|
9353 echo "$ac_err" >&5
|
|
9354 echo "configure: failed program was:" >&5
|
|
9355 cat conftest.$ac_ext >&5
|
|
9356 rm -rf conftest*
|
|
9357 eval "ac_cv_header_$ac_safe=no"
|
|
9358 fi
|
|
9359 rm -f conftest*
|
|
9360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9361 echo "$ac_t""yes" 1>&6
|
|
9362 libpq_fe_h_file=${header_dir}libpq-fe.h; break
|
|
9363 else
|
|
9364 echo "$ac_t""no" 1>&6
|
|
9365 fi
|
|
9366
|
|
9367 done
|
|
9368
|
|
9369 test -n "$libpq_fe_h_file" && {
|
|
9370 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
|
2131
|
9371 echo "configure:9372: checking for PQconnectdb in -lpq" >&5
|
1470
|
9372 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
|
|
9373
|
|
9374 xe_check_libs=" -lpq "
|
|
9375 cat > conftest.$ac_ext <<EOF
|
2131
|
9376 #line 9377 "configure"
|
1470
|
9377 #include "confdefs.h"
|
|
9378 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9379 /* We use char because int might match the return type of a gcc2
|
|
9380 builtin and then its argument prototype would still apply. */
|
|
9381 char PQconnectdb();
|
|
9382
|
|
9383 int main() {
|
|
9384 PQconnectdb()
|
|
9385 ; return 0; }
|
|
9386 EOF
|
2131
|
9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9388 rm -rf conftest*
|
|
9389 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9390 else
|
|
9391 echo "configure: failed program was:" >&5
|
|
9392 cat conftest.$ac_ext >&5
|
|
9393 rm -rf conftest*
|
|
9394 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9395 fi
|
|
9396 rm -f conftest*
|
|
9397 xe_check_libs=""
|
|
9398
|
|
9399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9400 echo "$ac_t""yes" 1>&6
|
|
9401 have_libpq=yes
|
|
9402 else
|
|
9403 echo "$ac_t""no" 1>&6
|
|
9404 fi
|
|
9405
|
|
9406 }
|
|
9407
|
|
9408 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
|
|
9409 with_postgresql=yes
|
|
9410 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9411 Defining HAVE_POSTGRESQL
|
|
9412 EOF
|
|
9413 cat >> confdefs.h <<\EOF
|
|
9414 #define HAVE_POSTGRESQL 1
|
|
9415 EOF
|
|
9416 }
|
|
9417
|
|
9418
|
|
9419 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
|
2131
|
9420 echo "configure:9421: checking for PQconnectStart in -lpq" >&5
|
1470
|
9421 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
|
|
9422
|
|
9423 xe_check_libs=" -lpq "
|
|
9424 cat > conftest.$ac_ext <<EOF
|
2131
|
9425 #line 9426 "configure"
|
1470
|
9426 #include "confdefs.h"
|
|
9427 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9428 /* We use char because int might match the return type of a gcc2
|
|
9429 builtin and then its argument prototype would still apply. */
|
|
9430 char PQconnectStart();
|
|
9431
|
|
9432 int main() {
|
|
9433 PQconnectStart()
|
|
9434 ; return 0; }
|
|
9435 EOF
|
2131
|
9436 if { (eval echo configure:9437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9437 rm -rf conftest*
|
|
9438 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9439 else
|
|
9440 echo "configure: failed program was:" >&5
|
|
9441 cat conftest.$ac_ext >&5
|
|
9442 rm -rf conftest*
|
|
9443 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9444 fi
|
|
9445 rm -f conftest*
|
|
9446 xe_check_libs=""
|
|
9447
|
|
9448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9449 echo "$ac_t""yes" 1>&6
|
|
9450 with_postgresqlv7=yes;
|
|
9451 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9452 Defining HAVE_POSTGRESQLV7
|
|
9453 EOF
|
|
9454 cat >> confdefs.h <<\EOF
|
|
9455 #define HAVE_POSTGRESQLV7 1
|
|
9456 EOF
|
|
9457 }
|
|
9458
|
|
9459 else
|
|
9460 echo "$ac_t""no" 1>&6
|
|
9461 fi
|
|
9462
|
|
9463
|
|
9464 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9465 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
|
|
9466 EOF
|
|
9467 cat >> confdefs.h <<EOF
|
|
9468 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
|
|
9469 EOF
|
|
9470 }
|
|
9471
|
|
9472 postgresql_libs="-lpq $postgresql_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$postgresql_libs"; fi
|
|
9473 MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi
|
|
9474 need_modules_common=yes
|
|
9475 if test "$with_modules" = "yes"; then
|
|
9476 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
9477 fi
|
|
9478 elif test "$with_postgresql" = "yes"; then
|
|
9479 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
|
|
9480 fi
|
|
9481 fi
|
|
9482
|
149
|
9483
|
997
|
9484
|
278
|
9485 if test "$window_system" != "none"; then
|
|
9486 echo "checking for graphics libraries" 1>&6
|
2131
|
9487 echo "configure:9488: checking for graphics libraries" >&5
|
724
|
9488
|
|
9489 libpath_xpm=
|
|
9490 incpath_xpm=
|
|
9491 case "$opsys" in
|
|
9492 cygwin*)
|
|
9493 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
|
|
9494 cygwin_top=`eval "dirname ${cygwin_top}"`;
|
|
9495 cygwin_top="${cygwin_top}/..";
|
|
9496 case "$window_system" in
|
|
9497 x11) ;;
|
|
9498 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
|
|
9499 incpath_xpm="-I${cygwin_top}/include/noX"
|
|
9500 ;;
|
|
9501 gtk) ;;
|
|
9502 none) ;;
|
|
9503 *) ;;
|
|
9504 esac
|
|
9505 ;;
|
|
9506 *) ;;
|
|
9507 esac
|
373
|
9508 xpm_problem=""
|
|
9509 if test -z "$with_xpm"; then
|
724
|
9510 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
|
|
9511 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
|
193
|
9512 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
|
2131
|
9513 echo "configure:9514: checking for Xpm - no older than 3.4f" >&5
|
272
|
9514 xe_check_libs=-lXpm
|
|
9515 cat > conftest.$ac_ext <<EOF
|
2131
|
9516 #line 9517 "configure"
|
442
|
9517 #include "confdefs.h"
|
|
9518 #define XPM_NUMBERS
|
149
|
9519 #include <X11/xpm.h>
|
272
|
9520 int main(int c, char **v) {
|
|
9521 return c == 1 ? 0 :
|
|
9522 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
|
|
9523 XpmIncludeVersion < 30406 ? 2 : 0 ;}
|
|
9524 EOF
|
2131
|
9525 if { (eval echo configure:9526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
159
|
9526 then
|
272
|
9527 ./conftest dummy_arg; xpm_status=$?;
|
373
|
9528 if test "$xpm_status" = "0"; then
|
272
|
9529 with_xpm=yes;
|
|
9530 else
|
|
9531 with_xpm=no;
|
373
|
9532 if test "$xpm_status" = "1"; then
|
272
|
9533 xpm_problem="Xpm library version and header file version don't match!"
|
373
|
9534 elif test "$xpm_status" = "2"; then
|
272
|
9535 xpm_problem="Xpm library version is too old!"
|
|
9536 else
|
|
9537 xpm_problem="Internal xpm detection logic error!"
|
|
9538 fi
|
|
9539 echo "
|
373
|
9540 *** WARNING *** $xpm_problem
|
278
|
9541 I'm not touching that with a 10-foot pole!
|
|
9542 If you really want to use the installed version of Xpm, rerun
|
373
|
9543 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
|
278
|
9544 fi
|
159
|
9545 else
|
373
|
9546 conftest_rc="$?"
|
159
|
9547 echo "configure: failed program was:" >&5
|
|
9548 cat conftest.$ac_ext >&5
|
|
9549 rm -fr conftest*
|
|
9550 with_xpm=no
|
|
9551 fi
|
|
9552 rm -fr conftest*
|
272
|
9553 xe_check_libs=
|
|
9554 echo "$ac_t""$with_xpm" 1>&6
|
193
|
9555 fi
|
|
9556 if test "$with_xpm" = "yes"; then
|
458
|
9557 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9558 Defining HAVE_XPM
|
|
9559 EOF
|
|
9560 cat >> confdefs.h <<\EOF
|
|
9561 #define HAVE_XPM 1
|
|
9562 EOF
|
|
9563 }
|
|
9564
|
724
|
9565 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
|
193
|
9566 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
|
724
|
9567 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
|
278
|
9568 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
|
2131
|
9569 echo "configure:9570: checking for \"FOR_MSW\" xpm" >&5
|
278
|
9570 xe_check_libs=-lXpm
|
|
9571 cat > conftest.$ac_ext <<EOF
|
2131
|
9572 #line 9573 "configure"
|
278
|
9573 #include "confdefs.h"
|
|
9574
|
|
9575 int main() {
|
|
9576 XpmCreatePixmapFromData()
|
|
9577 ; return 0; }
|
|
9578 EOF
|
2131
|
9579 if { (eval echo configure:9580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
9580 rm -rf conftest*
|
|
9581 xpm_for_msw=no
|
|
9582 else
|
|
9583 echo "configure: failed program was:" >&5
|
|
9584 cat conftest.$ac_ext >&5
|
|
9585 rm -rf conftest*
|
|
9586 xpm_for_msw=yes
|
|
9587 fi
|
|
9588 rm -f conftest*
|
|
9589 xe_check_libs=
|
|
9590 echo "$ac_t""$xpm_for_msw" 1>&6
|
|
9591 if test "$xpm_for_msw" = "yes"; then
|
|
9592 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9593 Defining FOR_MSW
|
|
9594 EOF
|
|
9595 cat >> confdefs.h <<\EOF
|
|
9596 #define FOR_MSW 1
|
|
9597 EOF
|
|
9598 }
|
|
9599
|
|
9600 fi
|
|
9601 fi
|
|
9602
|
388
|
9603 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
9604 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
2131
|
9605 echo "configure:9606: checking for compface.h" >&5
|
|
9606
|
|
9607 cat > conftest.$ac_ext <<EOF
|
|
9608 #line 9609 "configure"
|
388
|
9609 #include "confdefs.h"
|
|
9610 #include <compface.h>
|
|
9611 EOF
|
|
9612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
9613 { (eval echo configure:9614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
388
|
9615 if test -z "$ac_err"; then
|
|
9616 rm -rf conftest*
|
|
9617 eval "ac_cv_header_$ac_safe=yes"
|
|
9618 else
|
|
9619 echo "$ac_err" >&5
|
|
9620 echo "configure: failed program was:" >&5
|
|
9621 cat conftest.$ac_ext >&5
|
|
9622 rm -rf conftest*
|
|
9623 eval "ac_cv_header_$ac_safe=no"
|
|
9624 fi
|
|
9625 rm -f conftest*
|
|
9626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9627 echo "$ac_t""yes" 1>&6
|
|
9628 :
|
|
9629 else
|
|
9630 echo "$ac_t""no" 1>&6
|
|
9631 with_xface=no
|
|
9632 fi
|
|
9633 }
|
|
9634 test -z "$with_xface" && {
|
|
9635 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
2131
|
9636 echo "configure:9637: checking for UnGenFace in -lcompface" >&5
|
388
|
9637 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
9638
|
|
9639 xe_check_libs=" -lcompface "
|
|
9640 cat > conftest.$ac_ext <<EOF
|
2131
|
9641 #line 9642 "configure"
|
388
|
9642 #include "confdefs.h"
|
|
9643 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9644 /* We use char because int might match the return type of a gcc2
|
|
9645 builtin and then its argument prototype would still apply. */
|
|
9646 char UnGenFace();
|
|
9647
|
|
9648 int main() {
|
|
9649 UnGenFace()
|
|
9650 ; return 0; }
|
|
9651 EOF
|
2131
|
9652 if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
388
|
9653 rm -rf conftest*
|
|
9654 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9655 else
|
|
9656 echo "configure: failed program was:" >&5
|
|
9657 cat conftest.$ac_ext >&5
|
|
9658 rm -rf conftest*
|
|
9659 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9660 fi
|
|
9661 rm -f conftest*
|
|
9662 xe_check_libs=""
|
|
9663
|
|
9664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9665 echo "$ac_t""yes" 1>&6
|
|
9666 :
|
|
9667 else
|
|
9668 echo "$ac_t""no" 1>&6
|
|
9669 with_xface=no
|
|
9670 fi
|
|
9671
|
|
9672 }
|
|
9673 test -z "$with_xface" && with_xface=yes
|
|
9674 if test "$with_xface" = "yes"; then
|
|
9675 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9676 Defining HAVE_XFACE
|
|
9677 EOF
|
|
9678 cat >> confdefs.h <<\EOF
|
|
9679 #define HAVE_XFACE 1
|
|
9680 EOF
|
|
9681 }
|
|
9682
|
|
9683 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
|
|
9684 fi
|
|
9685
|
373
|
9686 if test "$with_gif" != "no"; then
|
|
9687 with_gif="yes"
|
|
9688 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9689 Defining HAVE_GIF
|
|
9690 EOF
|
|
9691 cat >> confdefs.h <<\EOF
|
|
9692 #define HAVE_GIF 1
|
|
9693 EOF
|
|
9694 }
|
|
9695
|
|
9696 fi
|
|
9697
|
278
|
9698 if test "$with_png $with_tiff" != "no no"; then
|
|
9699
|
|
9700 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
|
2131
|
9701 echo "configure:9702: checking for inflate in -lc" >&5
|
278
|
9702 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
|
|
9703
|
|
9704 xe_check_libs=" -lc "
|
|
9705 cat > conftest.$ac_ext <<EOF
|
2131
|
9706 #line 9707 "configure"
|
149
|
9707 #include "confdefs.h"
|
|
9708 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9709 /* We use char because int might match the return type of a gcc2
|
|
9710 builtin and then its argument prototype would still apply. */
|
278
|
9711 char inflate();
|
|
9712
|
|
9713 int main() {
|
|
9714 inflate()
|
|
9715 ; return 0; }
|
|
9716 EOF
|
2131
|
9717 if { (eval echo configure:9718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
9718 rm -rf conftest*
|
|
9719 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9720 else
|
|
9721 echo "configure: failed program was:" >&5
|
|
9722 cat conftest.$ac_ext >&5
|
|
9723 rm -rf conftest*
|
|
9724 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9725 fi
|
|
9726 rm -f conftest*
|
|
9727 xe_check_libs=""
|
|
9728
|
151
|
9729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
9730 echo "$ac_t""yes" 1>&6
|
278
|
9731 :
|
|
9732 else
|
|
9733 echo "$ac_t""no" 1>&6
|
|
9734
|
|
9735 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
|
2131
|
9736 echo "configure:9737: checking for inflate in -lz" >&5
|
278
|
9737 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
|
|
9738
|
|
9739 xe_check_libs=" -lz "
|
|
9740 cat > conftest.$ac_ext <<EOF
|
2131
|
9741 #line 9742 "configure"
|
278
|
9742 #include "confdefs.h"
|
|
9743 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9744 /* We use char because int might match the return type of a gcc2
|
|
9745 builtin and then its argument prototype would still apply. */
|
|
9746 char inflate();
|
|
9747
|
|
9748 int main() {
|
|
9749 inflate()
|
|
9750 ; return 0; }
|
|
9751 EOF
|
2131
|
9752 if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
9753 rm -rf conftest*
|
|
9754 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9755 else
|
|
9756 echo "configure: failed program was:" >&5
|
|
9757 cat conftest.$ac_ext >&5
|
|
9758 rm -rf conftest*
|
|
9759 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9760 fi
|
|
9761 rm -f conftest*
|
|
9762 xe_check_libs=""
|
|
9763
|
|
9764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9765 echo "$ac_t""yes" 1>&6
|
|
9766 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
|
|
9767 else
|
|
9768 echo "$ac_t""no" 1>&6
|
|
9769
|
|
9770 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
|
2131
|
9771 echo "configure:9772: checking for inflate in -lgz" >&5
|
278
|
9772 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
|
|
9773
|
|
9774 xe_check_libs=" -lgz "
|
|
9775 cat > conftest.$ac_ext <<EOF
|
2131
|
9776 #line 9777 "configure"
|
278
|
9777 #include "confdefs.h"
|
|
9778 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9779 /* We use char because int might match the return type of a gcc2
|
|
9780 builtin and then its argument prototype would still apply. */
|
|
9781 char inflate();
|
|
9782
|
|
9783 int main() {
|
|
9784 inflate()
|
|
9785 ; return 0; }
|
|
9786 EOF
|
2131
|
9787 if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
9788 rm -rf conftest*
|
|
9789 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9790 else
|
|
9791 echo "configure: failed program was:" >&5
|
|
9792 cat conftest.$ac_ext >&5
|
|
9793 rm -rf conftest*
|
|
9794 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9795 fi
|
|
9796 rm -f conftest*
|
|
9797 xe_check_libs=""
|
|
9798
|
|
9799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9800 echo "$ac_t""yes" 1>&6
|
|
9801 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
|
|
9802 else
|
|
9803 echo "$ac_t""no" 1>&6
|
|
9804 fi
|
|
9805
|
|
9806
|
|
9807 fi
|
|
9808
|
|
9809
|
|
9810 fi
|
|
9811
|
|
9812
|
193
|
9813 fi
|
|
9814
|
251
|
9815 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
|
|
9816 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
|
2131
|
9817 echo "configure:9818: checking for jpeglib.h" >&5
|
|
9818
|
|
9819 cat > conftest.$ac_ext <<EOF
|
|
9820 #line 9821 "configure"
|
251
|
9821 #include "confdefs.h"
|
|
9822 #include <jpeglib.h>
|
0
|
9823 EOF
|
149
|
9824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
9825 { (eval echo configure:9826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
251
|
9827 if test -z "$ac_err"; then
|
|
9828 rm -rf conftest*
|
|
9829 eval "ac_cv_header_$ac_safe=yes"
|
|
9830 else
|
|
9831 echo "$ac_err" >&5
|
|
9832 echo "configure: failed program was:" >&5
|
|
9833 cat conftest.$ac_ext >&5
|
|
9834 rm -rf conftest*
|
|
9835 eval "ac_cv_header_$ac_safe=no"
|
|
9836 fi
|
|
9837 rm -f conftest*
|
|
9838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9839 echo "$ac_t""yes" 1>&6
|
|
9840 :
|
|
9841 else
|
|
9842 echo "$ac_t""no" 1>&6
|
|
9843 with_jpeg=no
|
|
9844 fi
|
|
9845 }
|
|
9846 test -z "$with_jpeg" && {
|
|
9847 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
|
2131
|
9848 echo "configure:9849: checking for jpeg_destroy_decompress in -ljpeg" >&5
|
251
|
9849 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
|
|
9850
|
|
9851 xe_check_libs=" -ljpeg "
|
|
9852 cat > conftest.$ac_ext <<EOF
|
2131
|
9853 #line 9854 "configure"
|
251
|
9854 #include "confdefs.h"
|
|
9855 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9856 /* We use char because int might match the return type of a gcc2
|
|
9857 builtin and then its argument prototype would still apply. */
|
|
9858 char jpeg_destroy_decompress();
|
|
9859
|
|
9860 int main() {
|
|
9861 jpeg_destroy_decompress()
|
|
9862 ; return 0; }
|
|
9863 EOF
|
2131
|
9864 if { (eval echo configure:9865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
251
|
9865 rm -rf conftest*
|
|
9866 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9867 else
|
|
9868 echo "configure: failed program was:" >&5
|
|
9869 cat conftest.$ac_ext >&5
|
|
9870 rm -rf conftest*
|
|
9871 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9872 fi
|
|
9873 rm -f conftest*
|
|
9874 xe_check_libs=""
|
|
9875
|
|
9876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9877 echo "$ac_t""yes" 1>&6
|
|
9878 :
|
|
9879 else
|
|
9880 echo "$ac_t""no" 1>&6
|
|
9881 with_jpeg=no
|
|
9882 fi
|
|
9883
|
|
9884 }
|
|
9885 test -z "$with_jpeg" && with_jpeg=yes
|
|
9886 if test "$with_jpeg" = "yes"; then
|
|
9887 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9888 Defining HAVE_JPEG
|
|
9889 EOF
|
|
9890 cat >> confdefs.h <<\EOF
|
|
9891 #define HAVE_JPEG 1
|
|
9892 EOF
|
|
9893 }
|
|
9894
|
|
9895 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
|
|
9896 fi
|
|
9897
|
373
|
9898 png_problem=""
|
251
|
9899 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
|
2131
|
9900 echo "configure:9901: checking for pow" >&5
|
|
9901
|
|
9902 cat > conftest.$ac_ext <<EOF
|
|
9903 #line 9904 "configure"
|
251
|
9904 #include "confdefs.h"
|
|
9905 /* System header to define __stub macros and hopefully few prototypes,
|
|
9906 which can conflict with char pow(); below. */
|
|
9907 #include <assert.h>
|
243
|
9908 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9909 /* We use char because int might match the return type of a gcc2
|
|
9910 builtin and then its argument prototype would still apply. */
|
251
|
9911 char pow();
|
243
|
9912
|
|
9913 int main() {
|
251
|
9914
|
|
9915 /* The GNU C library defines this for functions which it implements
|
|
9916 to always fail with ENOSYS. Some functions are actually named
|
|
9917 something starting with __ and the normal name is an alias. */
|
|
9918 #if defined (__stub_pow) || defined (__stub___pow)
|
|
9919 choke me
|
|
9920 #else
|
|
9921 pow();
|
|
9922 #endif
|
|
9923
|
243
|
9924 ; return 0; }
|
|
9925 EOF
|
2131
|
9926 if { (eval echo configure:9927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
251
|
9927 rm -rf conftest*
|
|
9928 eval "ac_cv_func_pow=yes"
|
|
9929 else
|
|
9930 echo "configure: failed program was:" >&5
|
|
9931 cat conftest.$ac_ext >&5
|
|
9932 rm -rf conftest*
|
|
9933 eval "ac_cv_func_pow=no"
|
|
9934 fi
|
|
9935 rm -f conftest*
|
|
9936
|
|
9937 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
|
|
9938 echo "$ac_t""yes" 1>&6
|
|
9939 :
|
|
9940 else
|
|
9941 echo "$ac_t""no" 1>&6
|
|
9942 with_png=no
|
|
9943 fi
|
|
9944 }
|
373
|
9945 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
|
|
9946 echo $ac_n "checking for png.h""... $ac_c" 1>&6
|
2131
|
9947 echo "configure:9948: checking for png.h" >&5
|
|
9948
|
|
9949 cat > conftest.$ac_ext <<EOF
|
|
9950 #line 9951 "configure"
|
373
|
9951 #include "confdefs.h"
|
|
9952 #include <png.h>
|
|
9953 EOF
|
|
9954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
9955 { (eval echo configure:9956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
373
|
9957 if test -z "$ac_err"; then
|
|
9958 rm -rf conftest*
|
|
9959 eval "ac_cv_header_$ac_safe=yes"
|
|
9960 else
|
|
9961 echo "$ac_err" >&5
|
|
9962 echo "configure: failed program was:" >&5
|
|
9963 cat conftest.$ac_ext >&5
|
|
9964 rm -rf conftest*
|
|
9965 eval "ac_cv_header_$ac_safe=no"
|
|
9966 fi
|
|
9967 rm -f conftest*
|
|
9968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9969 echo "$ac_t""yes" 1>&6
|
|
9970 :
|
|
9971 else
|
|
9972 echo "$ac_t""no" 1>&6
|
|
9973 with_png=no
|
|
9974 fi
|
|
9975 }
|
272
|
9976 test -z "$with_png" && {
|
|
9977 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
|
2131
|
9978 echo "configure:9979: checking for png_read_image in -lpng" >&5
|
272
|
9979 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
|
|
9980
|
|
9981 xe_check_libs=" -lpng "
|
|
9982 cat > conftest.$ac_ext <<EOF
|
2131
|
9983 #line 9984 "configure"
|
243
|
9984 #include "confdefs.h"
|
|
9985 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9986 /* We use char because int might match the return type of a gcc2
|
|
9987 builtin and then its argument prototype would still apply. */
|
272
|
9988 char png_read_image();
|
|
9989
|
|
9990 int main() {
|
|
9991 png_read_image()
|
|
9992 ; return 0; }
|
|
9993 EOF
|
2131
|
9994 if { (eval echo configure:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
217
|
9995 rm -rf conftest*
|
|
9996 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9997 else
|
|
9998 echo "configure: failed program was:" >&5
|
|
9999 cat conftest.$ac_ext >&5
|
|
10000 rm -rf conftest*
|
|
10001 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10002 fi
|
|
10003 rm -f conftest*
|
|
10004 xe_check_libs=""
|
|
10005
|
|
10006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10007 echo "$ac_t""yes" 1>&6
|
272
|
10008 :
|
|
10009 else
|
|
10010 echo "$ac_t""no" 1>&6
|
|
10011 with_png=no
|
|
10012 fi
|
|
10013
|
|
10014 }
|
373
|
10015 if test -z "$with_png"; then
|
|
10016 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
|
2131
|
10017 echo "configure:10018: checking for workable png version information" >&5
|
373
|
10018 xe_check_libs="-lpng -lz"
|
|
10019 cat > conftest.$ac_ext <<EOF
|
2131
|
10020 #line 10021 "configure"
|
373
|
10021 #include "confdefs.h"
|
|
10022 #include <png.h>
|
|
10023 int main(int c, char **v) {
|
|
10024 if (c == 1) return 0;
|
|
10025 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
|
|
10026 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
|
|
10027 EOF
|
2131
|
10028 if { (eval echo configure:10029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
373
|
10029 then
|
|
10030 ./conftest dummy_arg; png_status=$?;
|
|
10031 if test "$png_status" = "0"; then
|
|
10032 with_png=yes;
|
|
10033 else
|
|
10034 with_png=no;
|
|
10035 if test "$png_status" = "1"; then
|
|
10036 png_problem="PNG library version and header file don't match!"
|
|
10037 elif test "$png_status" = "2"; then
|
|
10038 png_problem="PNG library version too old (pre 1.0.2)!"
|
|
10039 fi
|
|
10040 echo "
|
|
10041 *** WARNING *** $png_problem
|
|
10042 I'm not touching that with a 10-foot pole!
|
|
10043 If you really want to use the installed version of libPNG, rerun
|
|
10044 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
|
|
10045 fi
|
|
10046 else
|
|
10047 conftest_rc="$?"
|
|
10048 echo "configure: failed program was:" >&5
|
|
10049 cat conftest.$ac_ext >&5
|
|
10050 rm -fr conftest*
|
|
10051 with_png=no
|
|
10052 fi
|
|
10053 rm -fr conftest*
|
|
10054 xe_check_libs=
|
|
10055 echo "$ac_t""$with_png" 1>&6
|
|
10056 fi
|
251
|
10057 if test "$with_png" = "yes"; then
|
|
10058 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10059 Defining HAVE_PNG
|
|
10060 EOF
|
|
10061 cat >> confdefs.h <<\EOF
|
|
10062 #define HAVE_PNG 1
|
|
10063 EOF
|
|
10064 }
|
|
10065
|
272
|
10066 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
|
251
|
10067 fi
|
|
10068
|
272
|
10069 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
|
|
10070 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
|
2131
|
10071 echo "configure:10072: checking for tiffio.h" >&5
|
|
10072
|
|
10073 cat > conftest.$ac_ext <<EOF
|
|
10074 #line 10075 "configure"
|
272
|
10075 #include "confdefs.h"
|
|
10076 #include <tiffio.h>
|
|
10077 EOF
|
|
10078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10079 { (eval echo configure:10080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
272
|
10081 if test -z "$ac_err"; then
|
|
10082 rm -rf conftest*
|
|
10083 eval "ac_cv_header_$ac_safe=yes"
|
|
10084 else
|
|
10085 echo "$ac_err" >&5
|
|
10086 echo "configure: failed program was:" >&5
|
|
10087 cat conftest.$ac_ext >&5
|
|
10088 rm -rf conftest*
|
|
10089 eval "ac_cv_header_$ac_safe=no"
|
|
10090 fi
|
|
10091 rm -f conftest*
|
|
10092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10093 echo "$ac_t""yes" 1>&6
|
|
10094 :
|
|
10095 else
|
|
10096 echo "$ac_t""no" 1>&6
|
|
10097 with_tiff=no
|
|
10098 fi
|
|
10099 }
|
|
10100 test -z "$with_tiff" && {
|
286
|
10101 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
|
2131
|
10102 echo "configure:10103: checking for TIFFClientOpen in -ltiff" >&5
|
286
|
10103 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
|
251
|
10104
|
272
|
10105 xe_check_libs=" -ltiff "
|
|
10106 cat > conftest.$ac_ext <<EOF
|
2131
|
10107 #line 10108 "configure"
|
217
|
10108 #include "confdefs.h"
|
|
10109 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10110 /* We use char because int might match the return type of a gcc2
|
|
10111 builtin and then its argument prototype would still apply. */
|
286
|
10112 char TIFFClientOpen();
|
|
10113
|
|
10114 int main() {
|
|
10115 TIFFClientOpen()
|
|
10116 ; return 0; }
|
|
10117 EOF
|
2131
|
10118 if { (eval echo configure:10119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
217
|
10119 rm -rf conftest*
|
|
10120 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10121 else
|
|
10122 echo "configure: failed program was:" >&5
|
|
10123 cat conftest.$ac_ext >&5
|
|
10124 rm -rf conftest*
|
|
10125 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10126 fi
|
|
10127 rm -f conftest*
|
|
10128 xe_check_libs=""
|
|
10129
|
|
10130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10131 echo "$ac_t""yes" 1>&6
|
272
|
10132 :
|
|
10133 else
|
|
10134 echo "$ac_t""no" 1>&6
|
|
10135 with_tiff=no
|
|
10136 fi
|
|
10137
|
|
10138 }
|
|
10139 test -z "$with_tiff" && with_tiff=yes
|
251
|
10140 if test "$with_tiff" = "yes"; then
|
|
10141 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10142 Defining HAVE_TIFF
|
|
10143 EOF
|
|
10144 cat >> confdefs.h <<\EOF
|
|
10145 #define HAVE_TIFF 1
|
|
10146 EOF
|
|
10147 }
|
|
10148
|
272
|
10149 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
|
251
|
10150 fi
|
278
|
10151 fi
|
|
10152
|
|
10153
|
462
|
10154 if test "$with_gtk" = "yes"; then
|
|
10155 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
10156 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
2131
|
10157 echo "configure:10158: checking for compface.h" >&5
|
|
10158
|
|
10159 cat > conftest.$ac_ext <<EOF
|
|
10160 #line 10161 "configure"
|
462
|
10161 #include "confdefs.h"
|
|
10162 #include <compface.h>
|
|
10163 EOF
|
|
10164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10165 { (eval echo configure:10166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
462
|
10166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10167 if test -z "$ac_err"; then
|
|
10168 rm -rf conftest*
|
|
10169 eval "ac_cv_header_$ac_safe=yes"
|
|
10170 else
|
|
10171 echo "$ac_err" >&5
|
|
10172 echo "configure: failed program was:" >&5
|
|
10173 cat conftest.$ac_ext >&5
|
|
10174 rm -rf conftest*
|
|
10175 eval "ac_cv_header_$ac_safe=no"
|
|
10176 fi
|
|
10177 rm -f conftest*
|
|
10178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10179 echo "$ac_t""yes" 1>&6
|
|
10180 :
|
|
10181 else
|
|
10182 echo "$ac_t""no" 1>&6
|
|
10183 with_xface=no
|
|
10184 fi
|
|
10185 }
|
|
10186 test -z "$with_xface" && {
|
|
10187 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
2131
|
10188 echo "configure:10189: checking for UnGenFace in -lcompface" >&5
|
462
|
10189 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
10190
|
|
10191 xe_check_libs=" -lcompface "
|
|
10192 cat > conftest.$ac_ext <<EOF
|
2131
|
10193 #line 10194 "configure"
|
462
|
10194 #include "confdefs.h"
|
|
10195 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10196 /* We use char because int might match the return type of a gcc2
|
|
10197 builtin and then its argument prototype would still apply. */
|
|
10198 char UnGenFace();
|
|
10199
|
|
10200 int main() {
|
|
10201 UnGenFace()
|
|
10202 ; return 0; }
|
|
10203 EOF
|
2131
|
10204 if { (eval echo configure:10205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
10205 rm -rf conftest*
|
|
10206 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10207 else
|
|
10208 echo "configure: failed program was:" >&5
|
|
10209 cat conftest.$ac_ext >&5
|
|
10210 rm -rf conftest*
|
|
10211 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10212 fi
|
|
10213 rm -f conftest*
|
|
10214 xe_check_libs=""
|
|
10215
|
|
10216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10217 echo "$ac_t""yes" 1>&6
|
|
10218 :
|
|
10219 else
|
|
10220 echo "$ac_t""no" 1>&6
|
|
10221 with_xface=no
|
|
10222 fi
|
|
10223
|
|
10224 }
|
|
10225 test -z "$with_xface" && with_xface=yes
|
|
10226 if test "$with_xface" = "yes"; then
|
|
10227 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10228 Defining HAVE_XFACE
|
|
10229 EOF
|
|
10230 cat >> confdefs.h <<\EOF
|
|
10231 #define HAVE_XFACE 1
|
|
10232 EOF
|
|
10233 }
|
|
10234
|
|
10235 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
|
|
10236 fi
|
|
10237 fi
|
|
10238
|
|
10239
|
|
10240
|
278
|
10241 if test "$with_x11" = "yes"; then
|
|
10242 echo "checking for X11 graphics libraries" 1>&6
|
2131
|
10243 echo "configure:10244: checking for X11 graphics libraries" >&5
|
726
|
10244 fi
|
|
10245
|
|
10246 case "$with_widgets" in
|
|
10247 "yes" | "athena") detect_athena=yes ;;
|
|
10248 *) detect_athena=no ;;
|
|
10249 esac
|
|
10250
|
|
10251 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
|
434
|
10252 echo "checking for the Athena widgets" 1>&6
|
2131
|
10253 echo "configure:10254: checking for the Athena widgets" >&5
|
434
|
10254
|
|
10255 case "$with_athena" in
|
|
10256 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
|
|
10257 "3d") athena_variant=Xaw3d athena_3d=yes ;;
|
|
10258 "next") athena_variant=neXtaw athena_3d=yes ;;
|
|
10259 "95") athena_variant=Xaw95 athena_3d=yes ;;
|
|
10260 "xpm") athena_variant=XawXpm athena_3d=yes ;;
|
|
10261 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
|
|
10262 esac
|
|
10263
|
|
10264 if test "$athena_3d" = "no"; then
|
193
|
10265
|
434
|
10266 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
|
2131
|
10267 echo "configure:10268: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
|
434
|
10268 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
|
|
10269
|
|
10270 xe_check_libs=" -l$athena_variant "
|
|
10271 cat > conftest.$ac_ext <<EOF
|
2131
|
10272 #line 10273 "configure"
|
193
|
10273 #include "confdefs.h"
|
|
10274 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10275 /* We use char because int might match the return type of a gcc2
|
|
10276 builtin and then its argument prototype would still apply. */
|
|
10277 char XawScrollbarSetThumb();
|
|
10278
|
|
10279 int main() {
|
|
10280 XawScrollbarSetThumb()
|
|
10281 ; return 0; }
|
|
10282 EOF
|
2131
|
10283 if { (eval echo configure:10284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
434
|
10284 rm -rf conftest*
|
|
10285 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10286 else
|
|
10287 echo "configure: failed program was:" >&5
|
|
10288 cat conftest.$ac_ext >&5
|
|
10289 rm -rf conftest*
|
|
10290 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10291 fi
|
|
10292 rm -f conftest*
|
|
10293 xe_check_libs=""
|
|
10294
|
|
10295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10296 echo "$ac_t""yes" 1>&6
|
|
10297
|
|
10298 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
|
2131
|
10299 echo "configure:10300: checking for threeDClassRec in -l$athena_variant" >&5
|
434
|
10300 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
10301
|
|
10302 xe_check_libs=" -l$athena_variant "
|
|
10303 cat > conftest.$ac_ext <<EOF
|
2131
|
10304 #line 10305 "configure"
|
434
|
10305 #include "confdefs.h"
|
|
10306 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10307 /* We use char because int might match the return type of a gcc2
|
|
10308 builtin and then its argument prototype would still apply. */
|
|
10309 char threeDClassRec();
|
|
10310
|
|
10311 int main() {
|
|
10312 threeDClassRec()
|
|
10313 ; return 0; }
|
|
10314 EOF
|
2131
|
10315 if { (eval echo configure:10316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
561
|
10316 rm -rf conftest*
|
|
10317 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10318 else
|
|
10319 echo "configure: failed program was:" >&5
|
|
10320 cat conftest.$ac_ext >&5
|
|
10321 rm -rf conftest*
|
|
10322 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10323 fi
|
|
10324 rm -f conftest*
|
|
10325 xe_check_libs=""
|
|
10326
|
|
10327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10328 echo "$ac_t""yes" 1>&6
|
|
10329 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2
|
434
|
10330 else
|
|
10331 echo "$ac_t""no" 1>&6
|
|
10332 athena_lib=$athena_variant
|
|
10333 fi
|
|
10334
|
|
10335
|
|
10336
|
|
10337 else
|
|
10338 echo "$ac_t""no" 1>&6
|
561
|
10339 echo "configure: warning: Could not find an Athena widget library." 1>&2
|
434
|
10340 fi
|
|
10341
|
|
10342
|
|
10343 else
|
|
10344
|
|
10345 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
|
2131
|
10346 echo "configure:10347: checking for threeDClassRec in -l$athena_variant" >&5
|
434
|
10347 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
10348
|
|
10349 xe_check_libs=" -l$athena_variant "
|
|
10350 cat > conftest.$ac_ext <<EOF
|
2131
|
10351 #line 10352 "configure"
|
434
|
10352 #include "confdefs.h"
|
|
10353 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10354 /* We use char because int might match the return type of a gcc2
|
|
10355 builtin and then its argument prototype would still apply. */
|
|
10356 char threeDClassRec();
|
|
10357
|
|
10358 int main() {
|
|
10359 threeDClassRec()
|
|
10360 ; return 0; }
|
|
10361 EOF
|
2131
|
10362 if { (eval echo configure:10363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
434
|
10363 rm -rf conftest*
|
|
10364 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10365 else
|
|
10366 echo "configure: failed program was:" >&5
|
|
10367 cat conftest.$ac_ext >&5
|
|
10368 rm -rf conftest*
|
|
10369 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10370 fi
|
|
10371 rm -f conftest*
|
|
10372 xe_check_libs=""
|
|
10373
|
|
10374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10375 echo "$ac_t""yes" 1>&6
|
|
10376 athena_lib=$athena_variant
|
|
10377 else
|
|
10378 echo "$ac_t""no" 1>&6
|
|
10379 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
|
2131
|
10380 echo "configure:10381: checking for threeDClassRec in -lXaw" >&5
|
434
|
10381 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
10382
|
|
10383 xe_check_libs=" -lXaw "
|
|
10384 cat > conftest.$ac_ext <<EOF
|
2131
|
10385 #line 10386 "configure"
|
434
|
10386 #include "confdefs.h"
|
|
10387 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10388 /* We use char because int might match the return type of a gcc2
|
|
10389 builtin and then its argument prototype would still apply. */
|
|
10390 char threeDClassRec();
|
|
10391
|
|
10392 int main() {
|
|
10393 threeDClassRec()
|
|
10394 ; return 0; }
|
|
10395 EOF
|
2131
|
10396 if { (eval echo configure:10397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
193
|
10397 rm -rf conftest*
|
|
10398 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10399 else
|
|
10400 echo "configure: failed program was:" >&5
|
|
10401 cat conftest.$ac_ext >&5
|
|
10402 rm -rf conftest*
|
|
10403 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10404 fi
|
|
10405 rm -f conftest*
|
|
10406 xe_check_libs=""
|
|
10407
|
|
10408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10409 echo "$ac_t""yes" 1>&6
|
438
|
10410 athena_lib=Xaw;
|
561
|
10411 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2;
|
434
|
10412
|
|
10413 else
|
|
10414 echo "$ac_t""no" 1>&6
|
561
|
10415 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2
|
434
|
10416 fi
|
|
10417
|
|
10418
|
|
10419 fi
|
|
10420
|
|
10421
|
|
10422 fi
|
|
10423
|
|
10424 if test "$athena_3d" = "no"; then
|
|
10425 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10426 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
|
2131
|
10427 echo "configure:10428: checking for X11/Xaw/ThreeD.h" >&5
|
|
10428
|
|
10429 cat > conftest.$ac_ext <<EOF
|
|
10430 #line 10431 "configure"
|
434
|
10431 #include "confdefs.h"
|
|
10432 #include <X11/Xaw/ThreeD.h>
|
|
10433 EOF
|
|
10434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10435 { (eval echo configure:10436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
561
|
10436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10437 if test -z "$ac_err"; then
|
|
10438 rm -rf conftest*
|
|
10439 eval "ac_cv_header_$ac_safe=yes"
|
|
10440 else
|
|
10441 echo "$ac_err" >&5
|
|
10442 echo "configure: failed program was:" >&5
|
|
10443 cat conftest.$ac_ext >&5
|
|
10444 rm -rf conftest*
|
|
10445 eval "ac_cv_header_$ac_safe=no"
|
|
10446 fi
|
|
10447 rm -f conftest*
|
|
10448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10449 echo "$ac_t""yes" 1>&6
|
|
10450 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
|
434
|
10451 else
|
|
10452 echo "$ac_t""no" 1>&6
|
|
10453 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10454 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
|
2131
|
10455 echo "configure:10456: checking for X11/Xaw/XawInit.h" >&5
|
|
10456
|
|
10457 cat > conftest.$ac_ext <<EOF
|
|
10458 #line 10459 "configure"
|
434
|
10459 #include "confdefs.h"
|
|
10460 #include <X11/Xaw/XawInit.h>
|
|
10461 EOF
|
|
10462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10463 { (eval echo configure:10464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10465 if test -z "$ac_err"; then
|
|
10466 rm -rf conftest*
|
|
10467 eval "ac_cv_header_$ac_safe=yes"
|
|
10468 else
|
|
10469 echo "$ac_err" >&5
|
|
10470 echo "configure: failed program was:" >&5
|
|
10471 cat conftest.$ac_ext >&5
|
|
10472 rm -rf conftest*
|
|
10473 eval "ac_cv_header_$ac_safe=no"
|
|
10474 fi
|
|
10475 rm -f conftest*
|
|
10476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10477 echo "$ac_t""yes" 1>&6
|
|
10478 athena_h_path=X11/Xaw
|
|
10479 else
|
|
10480 echo "$ac_t""no" 1>&6
|
561
|
10481 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
|
434
|
10482 fi
|
|
10483
|
|
10484 fi
|
|
10485
|
|
10486 else
|
|
10487 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10488 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
|
2131
|
10489 echo "configure:10490: checking for X11/$athena_variant/XawInit.h" >&5
|
|
10490
|
|
10491 cat > conftest.$ac_ext <<EOF
|
|
10492 #line 10493 "configure"
|
434
|
10493 #include "confdefs.h"
|
|
10494 #include <X11/$athena_variant/XawInit.h>
|
|
10495 EOF
|
|
10496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10497 { (eval echo configure:10498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10499 if test -z "$ac_err"; then
|
|
10500 rm -rf conftest*
|
|
10501 eval "ac_cv_header_$ac_safe=yes"
|
|
10502 else
|
|
10503 echo "$ac_err" >&5
|
|
10504 echo "configure: failed program was:" >&5
|
|
10505 cat conftest.$ac_ext >&5
|
|
10506 rm -rf conftest*
|
|
10507 eval "ac_cv_header_$ac_safe=no"
|
|
10508 fi
|
|
10509 rm -f conftest*
|
|
10510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10511 echo "$ac_t""yes" 1>&6
|
|
10512 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10513 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
|
2131
|
10514 echo "configure:10515: checking for X11/$athena_variant/ThreeD.h" >&5
|
|
10515
|
|
10516 cat > conftest.$ac_ext <<EOF
|
|
10517 #line 10518 "configure"
|
434
|
10518 #include "confdefs.h"
|
|
10519 #include <X11/$athena_variant/ThreeD.h>
|
|
10520 EOF
|
|
10521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10522 { (eval echo configure:10523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10524 if test -z "$ac_err"; then
|
|
10525 rm -rf conftest*
|
|
10526 eval "ac_cv_header_$ac_safe=yes"
|
|
10527 else
|
|
10528 echo "$ac_err" >&5
|
|
10529 echo "configure: failed program was:" >&5
|
|
10530 cat conftest.$ac_ext >&5
|
|
10531 rm -rf conftest*
|
|
10532 eval "ac_cv_header_$ac_safe=no"
|
|
10533 fi
|
|
10534 rm -f conftest*
|
|
10535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10536 echo "$ac_t""yes" 1>&6
|
|
10537 athena_h_path=X11/$athena_variant
|
|
10538 else
|
|
10539 echo "$ac_t""no" 1>&6
|
|
10540 fi
|
|
10541
|
|
10542 else
|
|
10543 echo "$ac_t""no" 1>&6
|
|
10544 fi
|
|
10545
|
|
10546
|
440
|
10547 if test -z "$athena_h_path"; then
|
|
10548 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10549 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
|
2131
|
10550 echo "configure:10551: checking for $athena_variant/XawInit.h" >&5
|
|
10551
|
|
10552 cat > conftest.$ac_ext <<EOF
|
|
10553 #line 10554 "configure"
|
440
|
10554 #include "confdefs.h"
|
|
10555 #include <$athena_variant/XawInit.h>
|
|
10556 EOF
|
|
10557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10558 { (eval echo configure:10559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10560 if test -z "$ac_err"; then
|
|
10561 rm -rf conftest*
|
|
10562 eval "ac_cv_header_$ac_safe=yes"
|
|
10563 else
|
|
10564 echo "$ac_err" >&5
|
|
10565 echo "configure: failed program was:" >&5
|
|
10566 cat conftest.$ac_ext >&5
|
|
10567 rm -rf conftest*
|
|
10568 eval "ac_cv_header_$ac_safe=no"
|
|
10569 fi
|
|
10570 rm -f conftest*
|
|
10571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10572 echo "$ac_t""yes" 1>&6
|
|
10573 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10574 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
|
2131
|
10575 echo "configure:10576: checking for $athena_variant/ThreeD.h" >&5
|
|
10576
|
|
10577 cat > conftest.$ac_ext <<EOF
|
|
10578 #line 10579 "configure"
|
440
|
10579 #include "confdefs.h"
|
|
10580 #include <$athena_variant/ThreeD.h>
|
|
10581 EOF
|
|
10582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10583 { (eval echo configure:10584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10585 if test -z "$ac_err"; then
|
|
10586 rm -rf conftest*
|
|
10587 eval "ac_cv_header_$ac_safe=yes"
|
|
10588 else
|
|
10589 echo "$ac_err" >&5
|
|
10590 echo "configure: failed program was:" >&5
|
|
10591 cat conftest.$ac_ext >&5
|
|
10592 rm -rf conftest*
|
|
10593 eval "ac_cv_header_$ac_safe=no"
|
|
10594 fi
|
|
10595 rm -f conftest*
|
|
10596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10597 echo "$ac_t""yes" 1>&6
|
|
10598 athena_h_path=$athena_variant
|
|
10599 else
|
|
10600 echo "$ac_t""no" 1>&6
|
|
10601 fi
|
|
10602
|
|
10603 else
|
|
10604 echo "$ac_t""no" 1>&6
|
|
10605 fi
|
|
10606
|
|
10607 fi
|
|
10608
|
434
|
10609 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
|
|
10610 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10611 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
|
2131
|
10612 echo "configure:10613: checking for X11/Xaw3d/XawInit.h" >&5
|
|
10613
|
|
10614 cat > conftest.$ac_ext <<EOF
|
|
10615 #line 10616 "configure"
|
434
|
10616 #include "confdefs.h"
|
|
10617 #include <X11/Xaw3d/XawInit.h>
|
|
10618 EOF
|
|
10619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10620 { (eval echo configure:10621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10622 if test -z "$ac_err"; then
|
|
10623 rm -rf conftest*
|
|
10624 eval "ac_cv_header_$ac_safe=yes"
|
|
10625 else
|
|
10626 echo "$ac_err" >&5
|
|
10627 echo "configure: failed program was:" >&5
|
|
10628 cat conftest.$ac_ext >&5
|
|
10629 rm -rf conftest*
|
|
10630 eval "ac_cv_header_$ac_safe=no"
|
|
10631 fi
|
|
10632 rm -f conftest*
|
|
10633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10634 echo "$ac_t""yes" 1>&6
|
|
10635 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10636 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
|
2131
|
10637 echo "configure:10638: checking for X11/Xaw3d/ThreeD.h" >&5
|
|
10638
|
|
10639 cat > conftest.$ac_ext <<EOF
|
|
10640 #line 10641 "configure"
|
434
|
10641 #include "confdefs.h"
|
|
10642 #include <X11/Xaw3d/ThreeD.h>
|
|
10643 EOF
|
|
10644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10645 { (eval echo configure:10646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10647 if test -z "$ac_err"; then
|
|
10648 rm -rf conftest*
|
|
10649 eval "ac_cv_header_$ac_safe=yes"
|
|
10650 else
|
|
10651 echo "$ac_err" >&5
|
|
10652 echo "configure: failed program was:" >&5
|
|
10653 cat conftest.$ac_ext >&5
|
|
10654 rm -rf conftest*
|
|
10655 eval "ac_cv_header_$ac_safe=no"
|
|
10656 fi
|
|
10657 rm -f conftest*
|
|
10658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10659 echo "$ac_t""yes" 1>&6
|
|
10660
|
561
|
10661 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2
|
434
|
10662 athena_h_path=X11/Xaw3d
|
|
10663
|
|
10664 else
|
|
10665 echo "$ac_t""no" 1>&6
|
|
10666 fi
|
|
10667
|
|
10668 else
|
|
10669 echo "$ac_t""no" 1>&6
|
|
10670 fi
|
|
10671
|
|
10672 fi
|
|
10673
|
440
|
10674 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
|
|
10675 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10676 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
|
2131
|
10677 echo "configure:10678: checking for Xaw3d/XawInit.h" >&5
|
|
10678
|
|
10679 cat > conftest.$ac_ext <<EOF
|
|
10680 #line 10681 "configure"
|
440
|
10681 #include "confdefs.h"
|
|
10682 #include <Xaw3d/XawInit.h>
|
|
10683 EOF
|
|
10684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10685 { (eval echo configure:10686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10687 if test -z "$ac_err"; then
|
|
10688 rm -rf conftest*
|
|
10689 eval "ac_cv_header_$ac_safe=yes"
|
|
10690 else
|
|
10691 echo "$ac_err" >&5
|
|
10692 echo "configure: failed program was:" >&5
|
|
10693 cat conftest.$ac_ext >&5
|
|
10694 rm -rf conftest*
|
|
10695 eval "ac_cv_header_$ac_safe=no"
|
|
10696 fi
|
|
10697 rm -f conftest*
|
|
10698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10699 echo "$ac_t""yes" 1>&6
|
|
10700 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10701 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
|
2131
|
10702 echo "configure:10703: checking for Xaw3d/ThreeD.h" >&5
|
|
10703
|
|
10704 cat > conftest.$ac_ext <<EOF
|
|
10705 #line 10706 "configure"
|
440
|
10706 #include "confdefs.h"
|
|
10707 #include <Xaw3d/ThreeD.h>
|
|
10708 EOF
|
|
10709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10710 { (eval echo configure:10711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10712 if test -z "$ac_err"; then
|
|
10713 rm -rf conftest*
|
|
10714 eval "ac_cv_header_$ac_safe=yes"
|
|
10715 else
|
|
10716 echo "$ac_err" >&5
|
|
10717 echo "configure: failed program was:" >&5
|
|
10718 cat conftest.$ac_ext >&5
|
|
10719 rm -rf conftest*
|
|
10720 eval "ac_cv_header_$ac_safe=no"
|
|
10721 fi
|
|
10722 rm -f conftest*
|
|
10723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10724 echo "$ac_t""yes" 1>&6
|
|
10725
|
561
|
10726 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2
|
440
|
10727 athena_h_path=Xaw3d
|
|
10728
|
|
10729 else
|
|
10730 echo "$ac_t""no" 1>&6
|
|
10731 fi
|
|
10732
|
|
10733 else
|
|
10734 echo "$ac_t""no" 1>&6
|
|
10735 fi
|
|
10736
|
|
10737 fi
|
|
10738
|
434
|
10739 if test -z "$athena_h_path"; then
|
|
10740 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10741 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
|
2131
|
10742 echo "configure:10743: checking for X11/Xaw/ThreeD.h" >&5
|
|
10743
|
|
10744 cat > conftest.$ac_ext <<EOF
|
|
10745 #line 10746 "configure"
|
434
|
10746 #include "confdefs.h"
|
|
10747 #include <X11/Xaw/ThreeD.h>
|
|
10748 EOF
|
|
10749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10750 { (eval echo configure:10751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10752 if test -z "$ac_err"; then
|
|
10753 rm -rf conftest*
|
|
10754 eval "ac_cv_header_$ac_safe=yes"
|
|
10755 else
|
|
10756 echo "$ac_err" >&5
|
|
10757 echo "configure: failed program was:" >&5
|
|
10758 cat conftest.$ac_ext >&5
|
|
10759 rm -rf conftest*
|
|
10760 eval "ac_cv_header_$ac_safe=no"
|
|
10761 fi
|
|
10762 rm -f conftest*
|
|
10763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10764 echo "$ac_t""yes" 1>&6
|
|
10765
|
561
|
10766 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2
|
434
|
10767 athena_h_path=X11/Xaw
|
|
10768
|
|
10769 else
|
|
10770 echo "$ac_t""no" 1>&6
|
561
|
10771 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2
|
434
|
10772 fi
|
|
10773
|
|
10774 fi
|
|
10775 fi
|
|
10776
|
|
10777 if test -n "$athena_lib" -a -n "$athena_h_path"; then
|
|
10778 have_xaw=yes
|
|
10779 else
|
|
10780 have_xaw=no
|
|
10781 fi
|
424
|
10782
|
724
|
10783 else
|
|
10784 have_xaw=no
|
|
10785 fi
|
|
10786 if test "$with_x11" = "yes"; then
|
193
|
10787 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
151
|
10788 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
2131
|
10789 echo "configure:10790: checking for Xm/Xm.h" >&5
|
|
10790
|
|
10791 cat > conftest.$ac_ext <<EOF
|
|
10792 #line 10793 "configure"
|
151
|
10793 #include "confdefs.h"
|
|
10794 #include <Xm/Xm.h>
|
|
10795 EOF
|
|
10796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
10797 { (eval echo configure:10798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
151
|
10799 if test -z "$ac_err"; then
|
|
10800 rm -rf conftest*
|
|
10801 eval "ac_cv_header_$ac_safe=yes"
|
|
10802 else
|
|
10803 echo "$ac_err" >&5
|
|
10804 echo "configure: failed program was:" >&5
|
|
10805 cat conftest.$ac_ext >&5
|
|
10806 rm -rf conftest*
|
|
10807 eval "ac_cv_header_$ac_safe=no"
|
|
10808 fi
|
|
10809 rm -f conftest*
|
|
10810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10811 echo "$ac_t""yes" 1>&6
|
|
10812
|
|
10813 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
2131
|
10814 echo "configure:10815: checking for XmStringFree in -lXm" >&5
|
151
|
10815 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
10816
|
|
10817 xe_check_libs=" -lXm "
|
|
10818 cat > conftest.$ac_ext <<EOF
|
2131
|
10819 #line 10820 "configure"
|
151
|
10820 #include "confdefs.h"
|
|
10821 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10822 /* We use char because int might match the return type of a gcc2
|
|
10823 builtin and then its argument prototype would still apply. */
|
|
10824 char XmStringFree();
|
|
10825
|
|
10826 int main() {
|
|
10827 XmStringFree()
|
|
10828 ; return 0; }
|
|
10829 EOF
|
2131
|
10830 if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
10831 rm -rf conftest*
|
|
10832 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10833 else
|
|
10834 echo "configure: failed program was:" >&5
|
|
10835 cat conftest.$ac_ext >&5
|
|
10836 rm -rf conftest*
|
|
10837 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10838 fi
|
|
10839 rm -f conftest*
|
|
10840 xe_check_libs=""
|
|
10841
|
|
10842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10843 echo "$ac_t""yes" 1>&6
|
|
10844 have_motif=yes
|
|
10845 else
|
|
10846 echo "$ac_t""no" 1>&6
|
|
10847 have_motif=no
|
|
10848 fi
|
|
10849
|
|
10850
|
|
10851 else
|
|
10852 echo "$ac_t""no" 1>&6
|
|
10853 have_motif=no
|
|
10854 fi
|
|
10855
|
149
|
10856
|
272
|
10857 if test "$have_motif" = "yes"; then
|
|
10858 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
|
2131
|
10859 echo "configure:10860: checking for Lesstif" >&5
|
272
|
10860 cat > conftest.$ac_ext <<EOF
|
2131
|
10861 #line 10862 "configure"
|
272
|
10862 #include "confdefs.h"
|
|
10863 #include <Xm/Xm.h>
|
|
10864 #ifdef LESSTIF_VERSION
|
|
10865 yes
|
|
10866 #endif
|
|
10867
|
|
10868 EOF
|
|
10869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
10870 egrep "yes" >/dev/null 2>&1; then
|
|
10871 rm -rf conftest*
|
|
10872 have_lesstif=yes
|
|
10873 else
|
|
10874 rm -rf conftest*
|
|
10875 have_lesstif=no
|
|
10876 fi
|
|
10877 rm -f conftest*
|
|
10878
|
|
10879 echo "$ac_t""$have_lesstif" 1>&6
|
|
10880 fi
|
|
10881
|
193
|
10882 fi
|
149
|
10883
|
434
|
10884 case "$with_menubars" in "" | "yes" | "athena" )
|
149
|
10885 with_menubars="lucid" ;;
|
|
10886 esac
|
243
|
10887 case "$with_dialogs" in "" | "yes" | "lucid" )
|
434
|
10888 if test "$have_motif" = "yes"; then with_dialogs="motif"
|
|
10889 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
|
771
|
10890 elif test "$with_msw" = "yes"; then with_dialogs="msw"
|
149
|
10891 else with_dialogs=no
|
|
10892 fi ;;
|
|
10893 esac
|
|
10894 case "$with_scrollbars" in "" | "yes" )
|
|
10895 with_scrollbars="lucid" ;;
|
|
10896 esac
|
424
|
10897 case "$with_widgets" in "" | "yes" | "lucid")
|
420
|
10898 if test "$have_motif" = "yes"; then with_widgets="motif"
|
424
|
10899 elif test "$have_xaw" = "yes"; then with_widgets="athena"
|
771
|
10900 elif test "$with_msw" = "yes"; then with_widgets="msw"
|
420
|
10901 else with_widgets=no
|
|
10902 fi ;;
|
|
10903 esac
|
|
10904
|
|
10905 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
|
412
|
10906
|
424
|
10907 case "$all_widgets" in
|
434
|
10908 *athena* )
|
|
10909 if test "$have_xaw" != "yes"; then
|
|
10910 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
|
|
10911 fi
|
|
10912
|
|
10913 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
|
|
10914
|
|
10915 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
|
|
10916
|
442
|
10917 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10918 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
|
|
10919 EOF
|
|
10920 cat >> confdefs.h <<EOF
|
|
10921 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
|
|
10922 EOF
|
|
10923 }
|
|
10924
|
|
10925 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10926 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
|
|
10927 EOF
|
|
10928 cat >> confdefs.h <<EOF
|
|
10929 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
|
|
10930 EOF
|
|
10931 }
|
|
10932
|
|
10933 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10934 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
|
|
10935 EOF
|
|
10936 cat >> confdefs.h <<EOF
|
|
10937 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
|
|
10938 EOF
|
|
10939 }
|
|
10940
|
|
10941 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10942 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
|
|
10943 EOF
|
|
10944 cat >> confdefs.h <<EOF
|
|
10945 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
|
|
10946 EOF
|
|
10947 }
|
|
10948
|
|
10949 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10950 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
|
|
10951 EOF
|
|
10952 cat >> confdefs.h <<EOF
|
|
10953 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
|
|
10954 EOF
|
|
10955 }
|
|
10956
|
|
10957 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10958 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
|
|
10959 EOF
|
|
10960 cat >> confdefs.h <<EOF
|
|
10961 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
|
|
10962 EOF
|
|
10963 }
|
|
10964
|
|
10965 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10966 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
|
|
10967 EOF
|
|
10968 cat >> confdefs.h <<EOF
|
|
10969 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
|
|
10970 EOF
|
|
10971 }
|
|
10972
|
|
10973 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10974 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
|
|
10975 EOF
|
|
10976 cat >> confdefs.h <<EOF
|
|
10977 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
|
|
10978 EOF
|
|
10979 }
|
|
10980
|
|
10981 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10982 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
|
|
10983 EOF
|
|
10984 cat >> confdefs.h <<EOF
|
|
10985 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
|
|
10986 EOF
|
|
10987 }
|
|
10988
|
|
10989 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10990 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
|
|
10991 EOF
|
|
10992 cat >> confdefs.h <<EOF
|
|
10993 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
|
434
|
10994 EOF
|
|
10995 }
|
|
10996
|
|
10997
|
|
10998 { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
10999 Defining LWLIB_USES_ATHENA
|
|
11000 EOF
|
|
11001 cat >> confdefs.h <<\EOF
|
|
11002 #define LWLIB_USES_ATHENA 1
|
|
11003 EOF
|
|
11004 }
|
|
11005
|
434
|
11006 { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
11007 Defining NEED_ATHENA
|
|
11008 EOF
|
|
11009 cat >> confdefs.h <<\EOF
|
|
11010 #define NEED_ATHENA 1
|
|
11011 EOF
|
|
11012 }
|
|
11013
|
442
|
11014 need_athena="yes"
|
434
|
11015
|
|
11016 if test "$athena_3d" = "yes"; then
|
|
11017 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11018 Defining HAVE_ATHENA_3D
|
|
11019 EOF
|
|
11020 cat >> confdefs.h <<\EOF
|
|
11021 #define HAVE_ATHENA_3D 1
|
|
11022 EOF
|
|
11023 }
|
|
11024
|
|
11025 fi
|
|
11026 ;;
|
149
|
11027 esac
|
|
11028
|
|
11029 case "$all_widgets" in *motif* )
|
|
11030 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11031 Defining LWLIB_USES_MOTIF
|
|
11032 EOF
|
|
11033 cat >> confdefs.h <<\EOF
|
|
11034 #define LWLIB_USES_MOTIF 1
|
|
11035 EOF
|
|
11036 }
|
|
11037
|
157
|
11038 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11039 Defining NEED_MOTIF
|
|
11040 EOF
|
|
11041 cat >> confdefs.h <<\EOF
|
|
11042 #define NEED_MOTIF 1
|
|
11043 EOF
|
|
11044 }
|
|
11045
|
|
11046 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
|
149
|
11047 need_motif=yes ;;
|
70
|
11048 esac
|
|
11049
|
157
|
11050 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
|
11051 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
|
11052 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
|
11053 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
|
|
11054 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
|
|
11055 case "$with_widgets" in athena* )
|
|
11056 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;;
|
|
11057 esac
|
157
|
11058 case "$all_widgets" in *lucid* )
|
|
11059 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11060 Defining NEED_LUCID
|
|
11061 EOF
|
|
11062 cat >> confdefs.h <<\EOF
|
|
11063 #define NEED_LUCID 1
|
|
11064 EOF
|
|
11065 }
|
|
11066
|
|
11067 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
|
|
11068 esac
|
|
11069
|
|
11070
|
|
11071
|
434
|
11072 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
11073 Defining LWLIB_SCROLLBARS_ATHENA
|
|
11074 EOF
|
|
11075 cat >> confdefs.h <<\EOF
|
|
11076 #define LWLIB_SCROLLBARS_ATHENA 1
|
|
11077 EOF
|
|
11078 }
|
434
|
11079
|
|
11080 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
11081 Defining LWLIB_DIALOGS_ATHENA
|
|
11082 EOF
|
|
11083 cat >> confdefs.h <<\EOF
|
|
11084 #define LWLIB_DIALOGS_ATHENA 1
|
|
11085 EOF
|
|
11086 }
|
434
|
11087
|
|
11088
|
|
11089 if test "$athena_3d" = "yes"; then
|
|
11090 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
11091 Defining LWLIB_SCROLLBARS_ATHENA3D
|
|
11092 EOF
|
|
11093 cat >> confdefs.h <<\EOF
|
|
11094 #define LWLIB_SCROLLBARS_ATHENA3D 1
|
|
11095 EOF
|
|
11096 }
|
|
11097
|
434
|
11098 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
11099 Defining LWLIB_DIALOGS_ATHENA3D
|
|
11100 EOF
|
|
11101 cat >> confdefs.h <<\EOF
|
|
11102 #define LWLIB_DIALOGS_ATHENA3D 1
|
|
11103 EOF
|
|
11104 }
|
|
11105
|
434
|
11106 fi
|
|
11107
|
424
|
11108 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11109 Defining LWLIB_WIDGETS_ATHENA
|
|
11110 EOF
|
|
11111 cat >> confdefs.h <<\EOF
|
|
11112 #define LWLIB_WIDGETS_ATHENA 1
|
|
11113 EOF
|
|
11114 }
|
|
11115 ;; esac
|
|
11116 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
|
|
11117 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11118 Defining LWLIB_TABS_LUCID
|
|
11119 EOF
|
|
11120 cat >> confdefs.h <<\EOF
|
|
11121 #define LWLIB_TABS_LUCID 1
|
|
11122 EOF
|
|
11123 }
|
|
11124
|
149
|
11125
|
|
11126 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11127 Defining HAVE_MENUBARS
|
|
11128 EOF
|
|
11129 cat >> confdefs.h <<\EOF
|
|
11130 #define HAVE_MENUBARS 1
|
|
11131 EOF
|
|
11132 }
|
|
11133
|
|
11134 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11135 Defining HAVE_SCROLLBARS
|
|
11136 EOF
|
|
11137 cat >> confdefs.h <<\EOF
|
|
11138 #define HAVE_SCROLLBARS 1
|
|
11139 EOF
|
|
11140 }
|
|
11141
|
|
11142 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11143 Defining HAVE_DIALOGS
|
|
11144 EOF
|
|
11145 cat >> confdefs.h <<\EOF
|
|
11146 #define HAVE_DIALOGS 1
|
|
11147 EOF
|
|
11148 }
|
|
11149
|
|
11150 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11151 Defining HAVE_TOOLBARS
|
|
11152 EOF
|
|
11153 cat >> confdefs.h <<\EOF
|
|
11154 #define HAVE_TOOLBARS 1
|
|
11155 EOF
|
|
11156 }
|
|
11157
|
440
|
11158 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
11159 Defining HAVE_WIDGETS
|
|
11160 EOF
|
|
11161 cat >> confdefs.h <<\EOF
|
|
11162 #define HAVE_WIDGETS 1
|
|
11163 EOF
|
|
11164 }
|
|
11165
|
149
|
11166
|
|
11167 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11168 Defining LWLIB_MENUBARS_LUCID
|
|
11169 EOF
|
|
11170 cat >> confdefs.h <<\EOF
|
|
11171 #define LWLIB_MENUBARS_LUCID 1
|
|
11172 EOF
|
|
11173 }
|
|
11174
|
|
11175 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11176 Defining LWLIB_SCROLLBARS_LUCID
|
|
11177 EOF
|
|
11178 cat >> confdefs.h <<\EOF
|
|
11179 #define LWLIB_SCROLLBARS_LUCID 1
|
|
11180 EOF
|
|
11181 }
|
|
11182
|
|
11183
|
|
11184 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11185 Defining LWLIB_MENUBARS_MOTIF
|
|
11186 EOF
|
|
11187 cat >> confdefs.h <<\EOF
|
|
11188 #define LWLIB_MENUBARS_MOTIF 1
|
|
11189 EOF
|
|
11190 }
|
|
11191
|
|
11192 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11193 Defining LWLIB_SCROLLBARS_MOTIF
|
|
11194 EOF
|
|
11195 cat >> confdefs.h <<\EOF
|
|
11196 #define LWLIB_SCROLLBARS_MOTIF 1
|
|
11197 EOF
|
|
11198 }
|
|
11199
|
|
11200 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11201 Defining LWLIB_DIALOGS_MOTIF
|
|
11202 EOF
|
|
11203 cat >> confdefs.h <<\EOF
|
|
11204 #define LWLIB_DIALOGS_MOTIF 1
|
|
11205 EOF
|
|
11206 }
|
|
11207
|
424
|
11208 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11209 Defining LWLIB_WIDGETS_MOTIF
|
|
11210 EOF
|
|
11211 cat >> confdefs.h <<\EOF
|
|
11212 #define LWLIB_WIDGETS_MOTIF 1
|
|
11213 EOF
|
|
11214 }
|
|
11215
|
412
|
11216
|
272
|
11217
|
|
11218 test -z "$with_mule" && with_mule=no
|
561
|
11219
|
|
11220
|
771
|
11221 if test "$with_default_eol_detection" = "yes"; then
|
251
|
11222 { test "$extra_verbose" = "yes" && cat << \EOF
|
771
|
11223 Defining HAVE_DEFAULT_EOL_DETECTION
|
|
11224 EOF
|
|
11225 cat >> confdefs.h <<\EOF
|
|
11226 #define HAVE_DEFAULT_EOL_DETECTION 1
|
|
11227 EOF
|
|
11228 }
|
|
11229
|
|
11230 fi
|
594
|
11231
|
149
|
11232 if test "$with_mule" = "yes" ; then
|
151
|
11233 echo "checking for Mule-related features" 1>&6
|
2131
|
11234 echo "configure:11235: checking for Mule-related features" >&5
|
149
|
11235 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11236 Defining MULE
|
|
11237 EOF
|
|
11238 cat >> confdefs.h <<\EOF
|
|
11239 #define MULE 1
|
|
11240 EOF
|
|
11241 }
|
|
11242
|
|
11243
|
155
|
11244 for ac_hdr in libintl.h
|
|
11245 do
|
|
11246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2131
|
11248 echo "configure:11249: checking for $ac_hdr" >&5
|
|
11249
|
|
11250 cat > conftest.$ac_ext <<EOF
|
|
11251 #line 11252 "configure"
|
155
|
11252 #include "confdefs.h"
|
|
11253 #include <$ac_hdr>
|
|
11254 EOF
|
|
11255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
11256 { (eval echo configure:11257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
11258 if test -z "$ac_err"; then
|
|
11259 rm -rf conftest*
|
|
11260 eval "ac_cv_header_$ac_safe=yes"
|
|
11261 else
|
|
11262 echo "$ac_err" >&5
|
|
11263 echo "configure: failed program was:" >&5
|
|
11264 cat conftest.$ac_ext >&5
|
|
11265 rm -rf conftest*
|
|
11266 eval "ac_cv_header_$ac_safe=no"
|
|
11267 fi
|
|
11268 rm -f conftest*
|
|
11269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11270 echo "$ac_t""yes" 1>&6
|
|
11271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11272 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11273 Defining $ac_tr_hdr
|
|
11274 EOF
|
|
11275 cat >> confdefs.h <<EOF
|
|
11276 #define $ac_tr_hdr 1
|
|
11277 EOF
|
|
11278 }
|
|
11279
|
|
11280 else
|
|
11281 echo "$ac_t""no" 1>&6
|
|
11282 fi
|
|
11283 done
|
|
11284
|
|
11285
|
149
|
11286 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
|
2131
|
11287 echo "configure:11288: checking for strerror in -lintl" >&5
|
149
|
11288 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
|
|
11289
|
|
11290 xe_check_libs=" -lintl "
|
|
11291 cat > conftest.$ac_ext <<EOF
|
2131
|
11292 #line 11293 "configure"
|
149
|
11293 #include "confdefs.h"
|
|
11294 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11295 /* We use char because int might match the return type of a gcc2
|
|
11296 builtin and then its argument prototype would still apply. */
|
|
11297 char strerror();
|
|
11298
|
|
11299 int main() {
|
|
11300 strerror()
|
|
11301 ; return 0; }
|
|
11302 EOF
|
2131
|
11303 if { (eval echo configure:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11304 rm -rf conftest*
|
|
11305 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11306 else
|
|
11307 echo "configure: failed program was:" >&5
|
|
11308 cat conftest.$ac_ext >&5
|
|
11309 rm -rf conftest*
|
|
11310 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11311 fi
|
|
11312 rm -f conftest*
|
|
11313 xe_check_libs=""
|
|
11314
|
151
|
11315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11316 echo "$ac_t""yes" 1>&6
|
|
11317 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
11318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
11319 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11320 Defining $ac_tr_lib
|
|
11321 EOF
|
|
11322 cat >> confdefs.h <<EOF
|
|
11323 #define $ac_tr_lib 1
|
|
11324 EOF
|
|
11325 }
|
|
11326
|
151
|
11327 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
|
149
|
11328
|
|
11329 else
|
|
11330 echo "$ac_t""no" 1>&6
|
|
11331 fi
|
|
11332
|
|
11333
|
|
11334
|
|
11335 echo "checking for Mule input methods" 1>&6
|
2131
|
11336 echo "configure:11337: checking for Mule input methods" >&5
|
272
|
11337 case "$with_xim" in "" | "yes" )
|
149
|
11338 echo "checking for XIM" 1>&6
|
2131
|
11339 echo "configure:11340: checking for XIM" >&5
|
392
|
11340
|
|
11341 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
|
2131
|
11342 echo "configure:11343: checking for XOpenIM in -lX11" >&5
|
392
|
11343 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
|
|
11344
|
|
11345 xe_check_libs=" -lX11 "
|
|
11346 cat > conftest.$ac_ext <<EOF
|
2131
|
11347 #line 11348 "configure"
|
392
|
11348 #include "confdefs.h"
|
|
11349 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11350 /* We use char because int might match the return type of a gcc2
|
|
11351 builtin and then its argument prototype would still apply. */
|
|
11352 char XOpenIM();
|
|
11353
|
|
11354 int main() {
|
|
11355 XOpenIM()
|
|
11356 ; return 0; }
|
|
11357 EOF
|
2131
|
11358 if { (eval echo configure:11359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
392
|
11359 rm -rf conftest*
|
|
11360 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11361 else
|
|
11362 echo "configure: failed program was:" >&5
|
|
11363 cat conftest.$ac_ext >&5
|
|
11364 rm -rf conftest*
|
|
11365 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11366 fi
|
|
11367 rm -f conftest*
|
|
11368 xe_check_libs=""
|
|
11369
|
|
11370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11371 echo "$ac_t""yes" 1>&6
|
|
11372 with_xim=xlib
|
|
11373 else
|
|
11374 echo "$ac_t""no" 1>&6
|
|
11375 with_xim=no
|
|
11376 fi
|
|
11377
|
|
11378
|
|
11379 if test "$have_motif $have_lesstif" = "yes no"; then
|
|
11380
|
149
|
11381 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
|
2131
|
11382 echo "configure:11383: checking for XmImMbLookupString in -lXm" >&5
|
149
|
11383 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
|
|
11384
|
|
11385 xe_check_libs=" -lXm "
|
|
11386 cat > conftest.$ac_ext <<EOF
|
2131
|
11387 #line 11388 "configure"
|
149
|
11388 #include "confdefs.h"
|
|
11389 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11390 /* We use char because int might match the return type of a gcc2
|
|
11391 builtin and then its argument prototype would still apply. */
|
|
11392 char XmImMbLookupString();
|
|
11393
|
|
11394 int main() {
|
|
11395 XmImMbLookupString()
|
|
11396 ; return 0; }
|
|
11397 EOF
|
2131
|
11398 if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11399 rm -rf conftest*
|
|
11400 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11401 else
|
|
11402 echo "configure: failed program was:" >&5
|
|
11403 cat conftest.$ac_ext >&5
|
|
11404 rm -rf conftest*
|
|
11405 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11406 fi
|
|
11407 rm -f conftest*
|
|
11408 xe_check_libs=""
|
|
11409
|
151
|
11410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11411 echo "$ac_t""yes" 1>&6
|
|
11412 with_xim=motif
|
|
11413 else
|
|
11414 echo "$ac_t""no" 1>&6
|
392
|
11415 fi
|
|
11416
|
|
11417
|
|
11418 fi ;;
|
149
|
11419 esac
|
272
|
11420 if test "$with_xim" != "no"; then
|
149
|
11421 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11422 Defining HAVE_XIM
|
|
11423 EOF
|
|
11424 cat >> confdefs.h <<\EOF
|
|
11425 #define HAVE_XIM 1
|
|
11426 EOF
|
|
11427 }
|
|
11428
|
|
11429 if test "$with_xim" = "xlib"; then
|
|
11430 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11431 Defining XIM_XLIB
|
|
11432 EOF
|
|
11433 cat >> confdefs.h <<\EOF
|
|
11434 #define XIM_XLIB 1
|
|
11435 EOF
|
|
11436 }
|
|
11437
|
151
|
11438 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
11439 echo " xemacs will be linked with \"input-method-xlib.o\""
|
|
11440 fi
|
|
11441 fi
|
149
|
11442 if test "$with_xim" = "motif"; then
|
|
11443 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11444 Defining XIM_MOTIF
|
|
11445 EOF
|
|
11446 cat >> confdefs.h <<\EOF
|
|
11447 #define XIM_MOTIF 1
|
|
11448 EOF
|
|
11449 }
|
|
11450
|
|
11451 need_motif=yes
|
151
|
11452 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
|
|
11453 echo " xemacs will be linked with \"input-method-motif.o\""
|
|
11454 fi
|
149
|
11455 fi
|
215
|
11456 if test "$with_xim" = "motif"; then
|
177
|
11457 with_xfs=no
|
|
11458 fi
|
215
|
11459 fi
|
|
11460
|
|
11461 if test "$with_xfs" = "yes" ; then
|
|
11462 echo "checking for XFontSet" 1>&6
|
2131
|
11463 echo "configure:11464: checking for XFontSet" >&5
|
215
|
11464
|
177
|
11465 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
|
2131
|
11466 echo "configure:11467: checking for XmbDrawString in -lX11" >&5
|
177
|
11467 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
|
|
11468
|
|
11469 xe_check_libs=" -lX11 "
|
|
11470 cat > conftest.$ac_ext <<EOF
|
2131
|
11471 #line 11472 "configure"
|
177
|
11472 #include "confdefs.h"
|
|
11473 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11474 /* We use char because int might match the return type of a gcc2
|
|
11475 builtin and then its argument prototype would still apply. */
|
|
11476 char XmbDrawString();
|
|
11477
|
|
11478 int main() {
|
|
11479 XmbDrawString()
|
|
11480 ; return 0; }
|
|
11481 EOF
|
2131
|
11482 if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
177
|
11483 rm -rf conftest*
|
|
11484 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11485 else
|
|
11486 echo "configure: failed program was:" >&5
|
|
11487 cat conftest.$ac_ext >&5
|
|
11488 rm -rf conftest*
|
|
11489 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11490 fi
|
|
11491 rm -f conftest*
|
|
11492 xe_check_libs=""
|
|
11493
|
|
11494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11495 echo "$ac_t""yes" 1>&6
|
|
11496 :
|
|
11497 else
|
|
11498 echo "$ac_t""no" 1>&6
|
|
11499 with_xfs=no
|
|
11500 fi
|
|
11501
|
|
11502
|
|
11503 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
|
|
11504 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11505 Defining USE_XFONTSET
|
|
11506 EOF
|
|
11507 cat >> confdefs.h <<\EOF
|
|
11508 #define USE_XFONTSET 1
|
|
11509 EOF
|
|
11510 }
|
|
11511
|
215
|
11512 if test "$with_xim" = "no" ; then
|
450
|
11513 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
11514 echo " xemacs will be linked with \"input-method-xlib.o\""
|
177
|
11515 fi
|
215
|
11516 fi
|
177
|
11517 fi
|
151
|
11518 fi
|
149
|
11519 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
|
151
|
11520 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
|
|
11521 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
|
2131
|
11522 echo "configure:11523: checking for wnn/jllib.h" >&5
|
|
11523
|
|
11524 cat > conftest.$ac_ext <<EOF
|
|
11525 #line 11526 "configure"
|
151
|
11526 #include "confdefs.h"
|
|
11527 #include <wnn/jllib.h>
|
149
|
11528 EOF
|
|
11529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
11530 { (eval echo configure:11531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
458
|
11531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11532 if test -z "$ac_err"; then
|
|
11533 rm -rf conftest*
|
|
11534 eval "ac_cv_header_$ac_safe=yes"
|
|
11535 else
|
|
11536 echo "$ac_err" >&5
|
|
11537 echo "configure: failed program was:" >&5
|
|
11538 cat conftest.$ac_ext >&5
|
|
11539 rm -rf conftest*
|
|
11540 eval "ac_cv_header_$ac_safe=no"
|
|
11541 fi
|
|
11542 rm -f conftest*
|
|
11543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11544 echo "$ac_t""yes" 1>&6
|
|
11545 :
|
|
11546 else
|
|
11547 echo "$ac_t""no" 1>&6
|
|
11548 with_wnn=no
|
|
11549 fi
|
|
11550 }
|
|
11551 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
|
|
11552 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
|
2131
|
11553 echo "configure:11554: checking for wnn/commonhd.h" >&5
|
|
11554
|
|
11555 cat > conftest.$ac_ext <<EOF
|
|
11556 #line 11557 "configure"
|
458
|
11557 #include "confdefs.h"
|
|
11558 #include <wnn/commonhd.h>
|
|
11559 EOF
|
|
11560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
11561 { (eval echo configure:11562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
11563 if test -z "$ac_err"; then
|
|
11564 rm -rf conftest*
|
|
11565 eval "ac_cv_header_$ac_safe=yes"
|
|
11566 else
|
|
11567 echo "$ac_err" >&5
|
|
11568 echo "configure: failed program was:" >&5
|
|
11569 cat conftest.$ac_ext >&5
|
|
11570 rm -rf conftest*
|
|
11571 eval "ac_cv_header_$ac_safe=no"
|
|
11572 fi
|
|
11573 rm -f conftest*
|
|
11574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11575 echo "$ac_t""yes" 1>&6
|
|
11576 :
|
|
11577 else
|
|
11578 echo "$ac_t""no" 1>&6
|
|
11579 with_wnn=no
|
|
11580 fi
|
|
11581 }
|
167
|
11582 if test "$with_wnn" != "no"; then
|
|
11583 for ac_func in crypt
|
|
11584 do
|
|
11585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
11586 echo "configure:11587: checking for $ac_func" >&5
|
|
11587
|
|
11588 cat > conftest.$ac_ext <<EOF
|
|
11589 #line 11590 "configure"
|
167
|
11590 #include "confdefs.h"
|
|
11591 /* System header to define __stub macros and hopefully few prototypes,
|
|
11592 which can conflict with char $ac_func(); below. */
|
|
11593 #include <assert.h>
|
|
11594 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11595 /* We use char because int might match the return type of a gcc2
|
|
11596 builtin and then its argument prototype would still apply. */
|
|
11597 char $ac_func();
|
|
11598
|
|
11599 int main() {
|
|
11600
|
|
11601 /* The GNU C library defines this for functions which it implements
|
|
11602 to always fail with ENOSYS. Some functions are actually named
|
|
11603 something starting with __ and the normal name is an alias. */
|
|
11604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
11605 choke me
|
|
11606 #else
|
|
11607 $ac_func();
|
|
11608 #endif
|
|
11609
|
|
11610 ; return 0; }
|
|
11611 EOF
|
2131
|
11612 if { (eval echo configure:11613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
167
|
11613 rm -rf conftest*
|
|
11614 eval "ac_cv_func_$ac_func=yes"
|
|
11615 else
|
|
11616 echo "configure: failed program was:" >&5
|
|
11617 cat conftest.$ac_ext >&5
|
|
11618 rm -rf conftest*
|
|
11619 eval "ac_cv_func_$ac_func=no"
|
|
11620 fi
|
|
11621 rm -f conftest*
|
|
11622
|
|
11623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11624 echo "$ac_t""yes" 1>&6
|
|
11625 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
11626 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11627 Defining $ac_tr_func
|
|
11628 EOF
|
|
11629 cat >> confdefs.h <<EOF
|
|
11630 #define $ac_tr_func 1
|
|
11631 EOF
|
|
11632 }
|
|
11633
|
|
11634 else
|
|
11635 echo "$ac_t""no" 1>&6
|
|
11636 fi
|
|
11637 done
|
|
11638
|
|
11639 test "$ac_cv_func_crypt" != "yes" && {
|
|
11640 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
2131
|
11641 echo "configure:11642: checking for crypt in -lcrypt" >&5
|
167
|
11642 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
|
11643
|
|
11644 xe_check_libs=" -lcrypt "
|
|
11645 cat > conftest.$ac_ext <<EOF
|
2131
|
11646 #line 11647 "configure"
|
167
|
11647 #include "confdefs.h"
|
|
11648 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11649 /* We use char because int might match the return type of a gcc2
|
|
11650 builtin and then its argument prototype would still apply. */
|
|
11651 char crypt();
|
|
11652
|
|
11653 int main() {
|
|
11654 crypt()
|
|
11655 ; return 0; }
|
|
11656 EOF
|
2131
|
11657 if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
167
|
11658 rm -rf conftest*
|
|
11659 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11660 else
|
|
11661 echo "configure: failed program was:" >&5
|
|
11662 cat conftest.$ac_ext >&5
|
|
11663 rm -rf conftest*
|
|
11664 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11665 fi
|
|
11666 rm -f conftest*
|
|
11667 xe_check_libs=""
|
|
11668
|
|
11669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11670 echo "$ac_t""yes" 1>&6
|
|
11671 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
11672 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
11673 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11674 Defining $ac_tr_lib
|
|
11675 EOF
|
|
11676 cat >> confdefs.h <<EOF
|
|
11677 #define $ac_tr_lib 1
|
|
11678 EOF
|
|
11679 }
|
|
11680
|
|
11681 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
|
|
11682
|
|
11683 else
|
|
11684 echo "$ac_t""no" 1>&6
|
|
11685 fi
|
|
11686
|
|
11687 }
|
|
11688 fi
|
377
|
11689 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
|
|
11690
|
159
|
11691 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
|
2131
|
11692 echo "configure:11693: checking for jl_dic_list_e in -lwnn" >&5
|
155
|
11693 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
149
|
11694
|
159
|
11695 xe_check_libs=" -lwnn "
|
|
11696 cat > conftest.$ac_ext <<EOF
|
2131
|
11697 #line 11698 "configure"
|
149
|
11698 #include "confdefs.h"
|
|
11699 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11700 /* We use char because int might match the return type of a gcc2
|
|
11701 builtin and then its argument prototype would still apply. */
|
155
|
11702 char jl_dic_list_e();
|
149
|
11703
|
|
11704 int main() {
|
155
|
11705 jl_dic_list_e()
|
149
|
11706 ; return 0; }
|
|
11707 EOF
|
2131
|
11708 if { (eval echo configure:11709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
11709 rm -rf conftest*
|
|
11710 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11711 else
|
|
11712 echo "configure: failed program was:" >&5
|
|
11713 cat conftest.$ac_ext >&5
|
|
11714 rm -rf conftest*
|
|
11715 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11716 fi
|
|
11717 rm -f conftest*
|
|
11718 xe_check_libs=""
|
|
11719
|
|
11720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11721 echo "$ac_t""yes" 1>&6
|
|
11722 libwnn=wnn
|
|
11723 else
|
|
11724 echo "$ac_t""no" 1>&6
|
|
11725 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
|
2131
|
11726 echo "configure:11727: checking for jl_dic_list_e in -lwnn4" >&5
|
377
|
11727 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
11728
|
|
11729 xe_check_libs=" -lwnn4 "
|
|
11730 cat > conftest.$ac_ext <<EOF
|
2131
|
11731 #line 11732 "configure"
|
377
|
11732 #include "confdefs.h"
|
|
11733 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11734 /* We use char because int might match the return type of a gcc2
|
|
11735 builtin and then its argument prototype would still apply. */
|
|
11736 char jl_dic_list_e();
|
|
11737
|
|
11738 int main() {
|
|
11739 jl_dic_list_e()
|
|
11740 ; return 0; }
|
|
11741 EOF
|
2131
|
11742 if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11743 rm -rf conftest*
|
|
11744 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11745 else
|
|
11746 echo "configure: failed program was:" >&5
|
|
11747 cat conftest.$ac_ext >&5
|
|
11748 rm -rf conftest*
|
|
11749 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11750 fi
|
|
11751 rm -f conftest*
|
|
11752 xe_check_libs=""
|
|
11753
|
151
|
11754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11755 echo "$ac_t""yes" 1>&6
|
377
|
11756 libwnn=wnn4
|
|
11757 else
|
|
11758 echo "$ac_t""no" 1>&6
|
|
11759 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
|
2131
|
11760 echo "configure:11761: checking for jl_dic_list_e in -lwnn6" >&5
|
377
|
11761 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
11762
|
|
11763 xe_check_libs=" -lwnn6 "
|
|
11764 cat > conftest.$ac_ext <<EOF
|
2131
|
11765 #line 11766 "configure"
|
377
|
11766 #include "confdefs.h"
|
|
11767 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11768 /* We use char because int might match the return type of a gcc2
|
|
11769 builtin and then its argument prototype would still apply. */
|
|
11770 char jl_dic_list_e();
|
|
11771
|
|
11772 int main() {
|
|
11773 jl_dic_list_e()
|
|
11774 ; return 0; }
|
|
11775 EOF
|
2131
|
11776 if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
11777 rm -rf conftest*
|
|
11778 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11779 else
|
|
11780 echo "configure: failed program was:" >&5
|
|
11781 cat conftest.$ac_ext >&5
|
|
11782 rm -rf conftest*
|
|
11783 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11784 fi
|
|
11785 rm -f conftest*
|
|
11786 xe_check_libs=""
|
|
11787
|
|
11788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11789 echo "$ac_t""yes" 1>&6
|
|
11790 libwnn=wnn6
|
|
11791 else
|
|
11792 echo "$ac_t""no" 1>&6
|
|
11793 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
|
2131
|
11794 echo "configure:11795: checking for dic_list_e in -lwnn6_fromsrc" >&5
|
377
|
11795 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
|
|
11796
|
|
11797 xe_check_libs=" -lwnn6_fromsrc "
|
|
11798 cat > conftest.$ac_ext <<EOF
|
2131
|
11799 #line 11800 "configure"
|
377
|
11800 #include "confdefs.h"
|
|
11801 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11802 /* We use char because int might match the return type of a gcc2
|
|
11803 builtin and then its argument prototype would still apply. */
|
|
11804 char dic_list_e();
|
|
11805
|
|
11806 int main() {
|
|
11807 dic_list_e()
|
|
11808 ; return 0; }
|
|
11809 EOF
|
2131
|
11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
11811 rm -rf conftest*
|
|
11812 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11813 else
|
|
11814 echo "configure: failed program was:" >&5
|
|
11815 cat conftest.$ac_ext >&5
|
|
11816 rm -rf conftest*
|
|
11817 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11818 fi
|
|
11819 rm -f conftest*
|
|
11820 xe_check_libs=""
|
|
11821
|
|
11822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11823 echo "$ac_t""yes" 1>&6
|
|
11824 libwnn=wnn6_fromsrc
|
159
|
11825 else
|
|
11826 echo "$ac_t""no" 1>&6
|
|
11827 with_wnn=no
|
149
|
11828 fi
|
|
11829
|
377
|
11830
|
|
11831 fi
|
|
11832
|
|
11833
|
|
11834 fi
|
|
11835
|
|
11836
|
|
11837 fi
|
|
11838
|
|
11839
|
|
11840 fi
|
149
|
11841 test -z "$with_wnn" && with_wnn=yes
|
|
11842 if test "$with_wnn" = "yes"; then
|
|
11843 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11844 Defining HAVE_WNN
|
|
11845 EOF
|
|
11846 cat >> confdefs.h <<\EOF
|
|
11847 #define HAVE_WNN 1
|
|
11848 EOF
|
|
11849 }
|
|
11850
|
377
|
11851 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
|
284
|
11852 if test "$with_wnn6" != "no"; then
|
|
11853
|
377
|
11854 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
|
2131
|
11855 echo "configure:11856: checking for jl_fi_dic_list in -l$libwnn" >&5
|
377
|
11856 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
|
|
11857
|
|
11858 xe_check_libs=" -l$libwnn "
|
|
11859 cat > conftest.$ac_ext <<EOF
|
2131
|
11860 #line 11861 "configure"
|
149
|
11861 #include "confdefs.h"
|
|
11862 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11863 /* We use char because int might match the return type of a gcc2
|
|
11864 builtin and then its argument prototype would still apply. */
|
|
11865 char jl_fi_dic_list();
|
|
11866
|
|
11867 int main() {
|
|
11868 jl_fi_dic_list()
|
|
11869 ; return 0; }
|
|
11870 EOF
|
2131
|
11871 if { (eval echo configure:11872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11872 rm -rf conftest*
|
|
11873 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11874 else
|
|
11875 echo "configure: failed program was:" >&5
|
|
11876 cat conftest.$ac_ext >&5
|
|
11877 rm -rf conftest*
|
|
11878 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11879 fi
|
|
11880 rm -f conftest*
|
|
11881 xe_check_libs=""
|
|
11882
|
151
|
11883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11884 echo "$ac_t""yes" 1>&6
|
|
11885 with_wnn6=yes
|
|
11886 else
|
|
11887 echo "$ac_t""no" 1>&6
|
|
11888 fi
|
|
11889
|
|
11890
|
284
|
11891 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
151
|
11892 Defining WNN6
|
|
11893 EOF
|
|
11894 cat >> confdefs.h <<\EOF
|
|
11895 #define WNN6 1
|
|
11896 EOF
|
|
11897 }
|
|
11898
|
284
|
11899 fi
|
151
|
11900 fi
|
149
|
11901
|
267
|
11902 canna_includes_found=no
|
|
11903 if test "$with_canna" != "no"; then
|
|
11904 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
11905 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
2131
|
11906 echo "configure:11907: checking for canna/jrkanji.h" >&5
|
|
11907
|
|
11908 cat > conftest.$ac_ext <<EOF
|
|
11909 #line 11910 "configure"
|
267
|
11910 #include "confdefs.h"
|
|
11911 #include <canna/jrkanji.h>
|
|
11912 EOF
|
|
11913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
11914 { (eval echo configure:11915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
267
|
11916 if test -z "$ac_err"; then
|
|
11917 rm -rf conftest*
|
|
11918 eval "ac_cv_header_$ac_safe=yes"
|
|
11919 else
|
|
11920 echo "$ac_err" >&5
|
|
11921 echo "configure: failed program was:" >&5
|
|
11922 cat conftest.$ac_ext >&5
|
|
11923 rm -rf conftest*
|
|
11924 eval "ac_cv_header_$ac_safe=no"
|
|
11925 fi
|
|
11926 rm -f conftest*
|
|
11927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11928 echo "$ac_t""yes" 1>&6
|
|
11929 canna_includes_found=yes
|
|
11930 else
|
|
11931 echo "$ac_t""no" 1>&6
|
|
11932 fi
|
|
11933
|
|
11934 fi
|
|
11935 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
|
|
11936 -d "/usr/local/canna/include"; then
|
|
11937 save_c_switch_site="$c_switch_site"
|
|
11938 c_switch_site="$c_switch_site -I/usr/local/canna/include"
|
|
11939 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
11940 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
2131
|
11941 echo "configure:11942: checking for canna/jrkanji.h" >&5
|
|
11942
|
|
11943 cat > conftest.$ac_ext <<EOF
|
|
11944 #line 11945 "configure"
|
267
|
11945 #include "confdefs.h"
|
|
11946 #include <canna/jrkanji.h>
|
|
11947 EOF
|
|
11948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
11949 { (eval echo configure:11950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
267
|
11951 if test -z "$ac_err"; then
|
|
11952 rm -rf conftest*
|
|
11953 eval "ac_cv_header_$ac_safe=yes"
|
|
11954 else
|
|
11955 echo "$ac_err" >&5
|
|
11956 echo "configure: failed program was:" >&5
|
|
11957 cat conftest.$ac_ext >&5
|
|
11958 rm -rf conftest*
|
|
11959 eval "ac_cv_header_$ac_safe=no"
|
|
11960 fi
|
|
11961 rm -f conftest*
|
|
11962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11963 echo "$ac_t""yes" 1>&6
|
|
11964 canna_includes_found=yes
|
|
11965 else
|
|
11966 echo "$ac_t""no" 1>&6
|
|
11967 fi
|
|
11968
|
|
11969 if test "$canna_includes_found" != "yes"; then
|
|
11970 c_switch_site="$save_c_switch_site"
|
|
11971 with_canna="no"
|
|
11972 fi
|
|
11973 fi
|
|
11974
|
|
11975 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
|
149
|
11976 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
|
2131
|
11977 echo "configure:11978: checking for canna/RK.h" >&5
|
|
11978
|
|
11979 cat > conftest.$ac_ext <<EOF
|
|
11980 #line 11981 "configure"
|
149
|
11981 #include "confdefs.h"
|
|
11982 #include <canna/RK.h>
|
|
11983 EOF
|
|
11984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
11985 { (eval echo configure:11986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
11987 if test -z "$ac_err"; then
|
|
11988 rm -rf conftest*
|
|
11989 eval "ac_cv_header_$ac_safe=yes"
|
|
11990 else
|
|
11991 echo "$ac_err" >&5
|
|
11992 echo "configure: failed program was:" >&5
|
|
11993 cat conftest.$ac_ext >&5
|
|
11994 rm -rf conftest*
|
|
11995 eval "ac_cv_header_$ac_safe=no"
|
|
11996 fi
|
|
11997 rm -f conftest*
|
|
11998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11999 echo "$ac_t""yes" 1>&6
|
|
12000 :
|
|
12001 else
|
|
12002 echo "$ac_t""no" 1>&6
|
|
12003 with_canna=no
|
|
12004 fi
|
|
12005 }
|
|
12006 test -z "$with_canna" && {
|
|
12007 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
|
2131
|
12008 echo "configure:12009: checking for RkBgnBun in -lRKC" >&5
|
149
|
12009 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
|
|
12010
|
|
12011 xe_check_libs=" -lRKC "
|
|
12012 cat > conftest.$ac_ext <<EOF
|
2131
|
12013 #line 12014 "configure"
|
149
|
12014 #include "confdefs.h"
|
|
12015 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12016 /* We use char because int might match the return type of a gcc2
|
|
12017 builtin and then its argument prototype would still apply. */
|
|
12018 char RkBgnBun();
|
|
12019
|
|
12020 int main() {
|
|
12021 RkBgnBun()
|
|
12022 ; return 0; }
|
|
12023 EOF
|
2131
|
12024 if { (eval echo configure:12025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12025 rm -rf conftest*
|
|
12026 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12027 else
|
|
12028 echo "configure: failed program was:" >&5
|
|
12029 cat conftest.$ac_ext >&5
|
|
12030 rm -rf conftest*
|
|
12031 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12032 fi
|
|
12033 rm -f conftest*
|
|
12034 xe_check_libs=""
|
|
12035
|
151
|
12036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
12037 echo "$ac_t""yes" 1>&6
|
|
12038 :
|
|
12039 else
|
|
12040 echo "$ac_t""no" 1>&6
|
|
12041 with_canna=no
|
|
12042 fi
|
|
12043
|
|
12044 }
|
|
12045 test -z "$with_canna" && {
|
|
12046 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
|
2131
|
12047 echo "configure:12048: checking for jrKanjiControl in -lcanna" >&5
|
149
|
12048 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
|
|
12049
|
|
12050 xe_check_libs=" -lcanna "
|
|
12051 cat > conftest.$ac_ext <<EOF
|
2131
|
12052 #line 12053 "configure"
|
149
|
12053 #include "confdefs.h"
|
|
12054 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12055 /* We use char because int might match the return type of a gcc2
|
|
12056 builtin and then its argument prototype would still apply. */
|
|
12057 char jrKanjiControl();
|
|
12058
|
|
12059 int main() {
|
|
12060 jrKanjiControl()
|
|
12061 ; return 0; }
|
|
12062 EOF
|
2131
|
12063 if { (eval echo configure:12064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12064 rm -rf conftest*
|
|
12065 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12066 else
|
|
12067 echo "configure: failed program was:" >&5
|
|
12068 cat conftest.$ac_ext >&5
|
|
12069 rm -rf conftest*
|
|
12070 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12071 fi
|
|
12072 rm -f conftest*
|
|
12073 xe_check_libs=""
|
|
12074
|
151
|
12075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
12076 echo "$ac_t""yes" 1>&6
|
|
12077 :
|
|
12078 else
|
|
12079 echo "$ac_t""no" 1>&6
|
|
12080 with_canna=no
|
|
12081 fi
|
|
12082
|
|
12083 }
|
|
12084 test -z "$with_canna" && with_canna=yes
|
|
12085 if test "$with_canna" = "yes"; then
|
|
12086 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12087 Defining HAVE_CANNA
|
|
12088 EOF
|
|
12089 cat >> confdefs.h <<\EOF
|
|
12090 #define HAVE_CANNA 1
|
|
12091 EOF
|
|
12092 }
|
|
12093
|
151
|
12094 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
|
|
12095 fi
|
155
|
12096
|
151
|
12097 else for feature in xim canna wnn; do
|
149
|
12098 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
561
|
12099 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2
|
149
|
12100 fi
|
|
12101 eval "with_${feature}=no"
|
|
12102 done
|
151
|
12103 fi
|
|
12104
|
|
12105 if test "$need_motif" = "yes" ; then
|
|
12106 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
|
207
|
12107
|
|
12108 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
|
2131
|
12109 echo "configure:12110: checking for layout_object_getvalue in -li18n" >&5
|
207
|
12110 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
|
|
12111
|
|
12112 xe_check_libs=" -li18n "
|
|
12113 cat > conftest.$ac_ext <<EOF
|
2131
|
12114 #line 12115 "configure"
|
207
|
12115 #include "confdefs.h"
|
|
12116 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12117 /* We use char because int might match the return type of a gcc2
|
|
12118 builtin and then its argument prototype would still apply. */
|
|
12119 char layout_object_getvalue();
|
|
12120
|
|
12121 int main() {
|
|
12122 layout_object_getvalue()
|
|
12123 ; return 0; }
|
|
12124 EOF
|
2131
|
12125 if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
207
|
12126 rm -rf conftest*
|
|
12127 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12128 else
|
|
12129 echo "configure: failed program was:" >&5
|
|
12130 cat conftest.$ac_ext >&5
|
|
12131 rm -rf conftest*
|
|
12132 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12133 fi
|
|
12134 rm -f conftest*
|
|
12135 xe_check_libs=""
|
|
12136
|
|
12137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
12138 echo "$ac_t""yes" 1>&6
|
|
12139 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
|
|
12140 else
|
|
12141 echo "$ac_t""no" 1>&6
|
|
12142 fi
|
|
12143
|
|
12144
|
151
|
12145
|
|
12146 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
12147 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
12148 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
12149
|
163
|
12150 runpath="" runpath_dirs=""
|
155
|
12151 if test -n "$LD_RUN_PATH"; then
|
151
|
12152 runpath="$LD_RUN_PATH"
|
155
|
12153 elif test "$GCC" = "yes"; then
|
163
|
12154 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
12155 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
12156 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
12157 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
12158 case "$arg" in P,* | -L* | -R* )
|
159
|
12159 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
12160 {
|
155
|
12161 xe_runpath_dir="$dir"
|
163
|
12162 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
12163 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
12164 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
12165 eval "$xe_add_unique_runpath_dir"
|
|
12166 }
|
155
|
12167 done ;;
|
|
12168 esac
|
|
12169 done
|
163
|
12170 ld_switch_run="$ld_switch_run_save"
|
155
|
12171 rm -f conftest*
|
151
|
12172 else
|
155
|
12173 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
12174 case "$arg" in -L*) {
|
159
|
12175 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
12176 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
12177 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
12178 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
12179 eval "$xe_add_unique_runpath_dir"
|
|
12180 };; esac
|
151
|
12181 done
|
163
|
12182 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
12183 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
12184 eval "$xe_add_unique_runpath_dir";
|
|
12185 fi
|
155
|
12186 fi
|
151
|
12187 if test -n "$runpath"; then
|
|
12188 ld_switch_run="${dash_r}${runpath}"
|
272
|
12189
|
|
12190 if test "$GCC" = "yes"; then
|
|
12191 set x $ld_switch_run; shift; ld_switch_run=""
|
|
12192 while test -n "$1"; do
|
|
12193 case $1 in
|
380
|
12194 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
12195 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
12196 -Xlinker* ) ;;
|
|
12197 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
12198 esac
|
|
12199 shift
|
|
12200 done
|
|
12201 fi
|
151
|
12202 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
12203 fi
|
|
12204 fi
|
|
12205
|
|
12206 fi
|
|
12207
|
1070
|
12208
|
1202
|
12209 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror strlwr strupr symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask wcslen wcscmp
|
149
|
12210 do
|
|
12211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
12212 echo "configure:12213: checking for $ac_func" >&5
|
|
12213
|
|
12214 cat > conftest.$ac_ext <<EOF
|
|
12215 #line 12216 "configure"
|
410
|
12216 #include "confdefs.h"
|
|
12217 /* System header to define __stub macros and hopefully few prototypes,
|
|
12218 which can conflict with char $ac_func(); below. */
|
|
12219 #include <assert.h>
|
|
12220 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12221 /* We use char because int might match the return type of a gcc2
|
|
12222 builtin and then its argument prototype would still apply. */
|
|
12223 char $ac_func();
|
|
12224
|
|
12225 int main() {
|
|
12226
|
|
12227 /* The GNU C library defines this for functions which it implements
|
|
12228 to always fail with ENOSYS. Some functions are actually named
|
|
12229 something starting with __ and the normal name is an alias. */
|
|
12230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
12231 choke me
|
|
12232 #else
|
|
12233 $ac_func();
|
|
12234 #endif
|
|
12235
|
|
12236 ; return 0; }
|
|
12237 EOF
|
2131
|
12238 if { (eval echo configure:12239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
12239 rm -rf conftest*
|
|
12240 eval "ac_cv_func_$ac_func=yes"
|
|
12241 else
|
|
12242 echo "configure: failed program was:" >&5
|
|
12243 cat conftest.$ac_ext >&5
|
|
12244 rm -rf conftest*
|
|
12245 eval "ac_cv_func_$ac_func=no"
|
|
12246 fi
|
|
12247 rm -f conftest*
|
|
12248
|
|
12249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12250 echo "$ac_t""yes" 1>&6
|
|
12251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12252 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12253 Defining $ac_tr_func
|
|
12254 EOF
|
|
12255 cat >> confdefs.h <<EOF
|
|
12256 #define $ac_tr_func 1
|
|
12257 EOF
|
|
12258 }
|
|
12259
|
|
12260 else
|
|
12261 echo "$ac_t""no" 1>&6
|
|
12262 fi
|
|
12263 done
|
|
12264
|
|
12265
|
1070
|
12266 if test "$ac_cv_func_getaddrinfo" != "no" ; then
|
|
12267 case "$opsys" in
|
|
12268 hpux11 )
|
|
12269 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
|
|
12270 ac_cv_func_getaddrinfo=no
|
|
12271 ;;
|
|
12272 esac
|
|
12273 fi
|
|
12274
|
458
|
12275
|
444
|
12276 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
|
442
|
12277 do
|
|
12278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
12279 echo "configure:12280: checking for $ac_func" >&5
|
|
12280
|
|
12281 cat > conftest.$ac_ext <<EOF
|
|
12282 #line 12283 "configure"
|
442
|
12283 #include "confdefs.h"
|
|
12284 /* System header to define __stub macros and hopefully few prototypes,
|
|
12285 which can conflict with char $ac_func(); below. */
|
|
12286 #include <assert.h>
|
|
12287 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12288 /* We use char because int might match the return type of a gcc2
|
|
12289 builtin and then its argument prototype would still apply. */
|
|
12290 char $ac_func();
|
|
12291
|
|
12292 int main() {
|
|
12293
|
|
12294 /* The GNU C library defines this for functions which it implements
|
|
12295 to always fail with ENOSYS. Some functions are actually named
|
|
12296 something starting with __ and the normal name is an alias. */
|
|
12297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
12298 choke me
|
|
12299 #else
|
|
12300 $ac_func();
|
|
12301 #endif
|
|
12302
|
|
12303 ; return 0; }
|
|
12304 EOF
|
2131
|
12305 if { (eval echo configure:12306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
410
|
12306 rm -rf conftest*
|
|
12307 eval "ac_cv_func_$ac_func=yes"
|
|
12308 else
|
|
12309 echo "configure: failed program was:" >&5
|
|
12310 cat conftest.$ac_ext >&5
|
|
12311 rm -rf conftest*
|
|
12312 eval "ac_cv_func_$ac_func=no"
|
|
12313 fi
|
|
12314 rm -f conftest*
|
|
12315
|
|
12316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12317 echo "$ac_t""yes" 1>&6
|
|
12318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12319 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12320 Defining $ac_tr_func
|
|
12321 EOF
|
|
12322 cat >> confdefs.h <<EOF
|
|
12323 #define $ac_tr_func 1
|
|
12324 EOF
|
|
12325 }
|
|
12326
|
|
12327 else
|
|
12328 echo "$ac_t""no" 1>&6
|
|
12329 fi
|
|
12330 done
|
|
12331
|
|
12332
|
442
|
12333 echo $ac_n "checking for openpty""... $ac_c" 1>&6
|
2131
|
12334 echo "configure:12335: checking for openpty" >&5
|
|
12335
|
|
12336 cat > conftest.$ac_ext <<EOF
|
|
12337 #line 12338 "configure"
|
442
|
12338 #include "confdefs.h"
|
|
12339 /* System header to define __stub macros and hopefully few prototypes,
|
|
12340 which can conflict with char openpty(); below. */
|
|
12341 #include <assert.h>
|
|
12342 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12343 /* We use char because int might match the return type of a gcc2
|
|
12344 builtin and then its argument prototype would still apply. */
|
|
12345 char openpty();
|
|
12346
|
|
12347 int main() {
|
|
12348
|
|
12349 /* The GNU C library defines this for functions which it implements
|
|
12350 to always fail with ENOSYS. Some functions are actually named
|
|
12351 something starting with __ and the normal name is an alias. */
|
|
12352 #if defined (__stub_openpty) || defined (__stub___openpty)
|
|
12353 choke me
|
|
12354 #else
|
|
12355 openpty();
|
|
12356 #endif
|
|
12357
|
|
12358 ; return 0; }
|
|
12359 EOF
|
2131
|
12360 if { (eval echo configure:12361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
12361 rm -rf conftest*
|
|
12362 eval "ac_cv_func_openpty=yes"
|
|
12363 else
|
|
12364 echo "configure: failed program was:" >&5
|
|
12365 cat conftest.$ac_ext >&5
|
|
12366 rm -rf conftest*
|
|
12367 eval "ac_cv_func_openpty=no"
|
|
12368 fi
|
|
12369 rm -f conftest*
|
|
12370
|
|
12371 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
|
|
12372 echo "$ac_t""yes" 1>&6
|
|
12373 have_openpty=yes
|
|
12374 else
|
|
12375 echo "$ac_t""no" 1>&6
|
|
12376
|
|
12377
|
|
12378 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
|
2131
|
12379 echo "configure:12380: checking for openpty in -lutil" >&5
|
442
|
12380 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
|
|
12381
|
|
12382 xe_check_libs=" -lutil "
|
|
12383 cat > conftest.$ac_ext <<EOF
|
2131
|
12384 #line 12385 "configure"
|
442
|
12385 #include "confdefs.h"
|
|
12386 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12387 /* We use char because int might match the return type of a gcc2
|
|
12388 builtin and then its argument prototype would still apply. */
|
|
12389 char openpty();
|
|
12390
|
|
12391 int main() {
|
|
12392 openpty()
|
|
12393 ; return 0; }
|
|
12394 EOF
|
2131
|
12395 if { (eval echo configure:12396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
12396 rm -rf conftest*
|
|
12397 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12398 else
|
|
12399 echo "configure: failed program was:" >&5
|
|
12400 cat conftest.$ac_ext >&5
|
|
12401 rm -rf conftest*
|
|
12402 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12403 fi
|
|
12404 rm -f conftest*
|
|
12405 xe_check_libs=""
|
|
12406
|
|
12407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
12408 echo "$ac_t""yes" 1>&6
|
|
12409 have_openpty=yes need_libutil=yes
|
|
12410 else
|
|
12411 echo "$ac_t""no" 1>&6
|
|
12412 fi
|
|
12413
|
|
12414
|
|
12415 fi
|
|
12416
|
|
12417 if test "$have_openpty" = "yes"; then
|
|
12418 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12419 Defining HAVE_OPENPTY
|
|
12420 EOF
|
|
12421 cat >> confdefs.h <<\EOF
|
|
12422 #define HAVE_OPENPTY 1
|
|
12423 EOF
|
|
12424 }
|
|
12425
|
535
|
12426 for ac_hdr in libutil.h util.h
|
442
|
12427 do
|
|
12428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2131
|
12430 echo "configure:12431: checking for $ac_hdr" >&5
|
|
12431
|
|
12432 cat > conftest.$ac_ext <<EOF
|
|
12433 #line 12434 "configure"
|
442
|
12434 #include "confdefs.h"
|
|
12435 #include <$ac_hdr>
|
|
12436 EOF
|
|
12437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
12438 { (eval echo configure:12439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
12439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12440 if test -z "$ac_err"; then
|
|
12441 rm -rf conftest*
|
|
12442 eval "ac_cv_header_$ac_safe=yes"
|
|
12443 else
|
|
12444 echo "$ac_err" >&5
|
|
12445 echo "configure: failed program was:" >&5
|
|
12446 cat conftest.$ac_ext >&5
|
|
12447 rm -rf conftest*
|
|
12448 eval "ac_cv_header_$ac_safe=no"
|
|
12449 fi
|
|
12450 rm -f conftest*
|
|
12451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12452 echo "$ac_t""yes" 1>&6
|
|
12453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12454 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12455 Defining $ac_tr_hdr
|
|
12456 EOF
|
|
12457 cat >> confdefs.h <<EOF
|
|
12458 #define $ac_tr_hdr 1
|
|
12459 EOF
|
|
12460 }
|
458
|
12461 break
|
442
|
12462 else
|
|
12463 echo "$ac_t""no" 1>&6
|
|
12464 fi
|
|
12465 done
|
|
12466
|
|
12467 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
|
|
12468 fi
|
|
12469
|
535
|
12470 case "$opsys" in
|
|
12471 hpux*) for ac_hdr in sys/ptyio.h
|
|
12472 do
|
|
12473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2131
|
12475 echo "configure:12476: checking for $ac_hdr" >&5
|
|
12476
|
|
12477 cat > conftest.$ac_ext <<EOF
|
|
12478 #line 12479 "configure"
|
535
|
12479 #include "confdefs.h"
|
|
12480 #include <$ac_hdr>
|
|
12481 EOF
|
|
12482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
12483 { (eval echo configure:12484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
12484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
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 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12499 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12500 Defining $ac_tr_hdr
|
|
12501 EOF
|
|
12502 cat >> confdefs.h <<EOF
|
|
12503 #define $ac_tr_hdr 1
|
|
12504 EOF
|
|
12505 }
|
|
12506
|
|
12507 else
|
|
12508 echo "$ac_t""no" 1>&6
|
|
12509 fi
|
|
12510 done
|
1111
|
12511 ;;
|
|
12512 *) for ac_hdr in pty.h
|
535
|
12513 do
|
|
12514 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12515 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2131
|
12516 echo "configure:12517: checking for $ac_hdr" >&5
|
|
12517
|
|
12518 cat > conftest.$ac_ext <<EOF
|
|
12519 #line 12520 "configure"
|
771
|
12520 #include "confdefs.h"
|
|
12521 #include <$ac_hdr>
|
|
12522 EOF
|
|
12523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
12524 { (eval echo configure:12525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
771
|
12525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12526 if test -z "$ac_err"; then
|
|
12527 rm -rf conftest*
|
|
12528 eval "ac_cv_header_$ac_safe=yes"
|
|
12529 else
|
|
12530 echo "$ac_err" >&5
|
|
12531 echo "configure: failed program was:" >&5
|
|
12532 cat conftest.$ac_ext >&5
|
|
12533 rm -rf conftest*
|
|
12534 eval "ac_cv_header_$ac_safe=no"
|
|
12535 fi
|
|
12536 rm -f conftest*
|
|
12537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12538 echo "$ac_t""yes" 1>&6
|
|
12539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12540 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12541 Defining $ac_tr_hdr
|
|
12542 EOF
|
|
12543 cat >> confdefs.h <<EOF
|
|
12544 #define $ac_tr_hdr 1
|
|
12545 EOF
|
|
12546 }
|
|
12547
|
|
12548 else
|
|
12549 echo "$ac_t""no" 1>&6
|
|
12550 fi
|
|
12551 done
|
|
12552
|
1889
|
12553 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
|
|
12554 do
|
|
12555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2131
|
12557 echo "configure:12558: checking for $ac_hdr" >&5
|
|
12558
|
|
12559 cat > conftest.$ac_ext <<EOF
|
|
12560 #line 12561 "configure"
|
1889
|
12561 #include "confdefs.h"
|
|
12562 #include <$ac_hdr>
|
|
12563 EOF
|
|
12564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
12565 { (eval echo configure:12566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1889
|
12566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12567 if test -z "$ac_err"; then
|
|
12568 rm -rf conftest*
|
|
12569 eval "ac_cv_header_$ac_safe=yes"
|
|
12570 else
|
|
12571 echo "$ac_err" >&5
|
|
12572 echo "configure: failed program was:" >&5
|
|
12573 cat conftest.$ac_ext >&5
|
|
12574 rm -rf conftest*
|
|
12575 eval "ac_cv_header_$ac_safe=no"
|
|
12576 fi
|
|
12577 rm -f conftest*
|
|
12578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12579 echo "$ac_t""yes" 1>&6
|
|
12580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12581 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12582 Defining $ac_tr_hdr
|
|
12583 EOF
|
|
12584 cat >> confdefs.h <<EOF
|
|
12585 #define $ac_tr_hdr 1
|
|
12586 EOF
|
|
12587 }
|
|
12588
|
|
12589 else
|
|
12590 echo "$ac_t""no" 1>&6
|
|
12591 fi
|
|
12592 done
|
|
12593
|
1984
|
12594 ;;
|
|
12595 esac
|
|
12596
|
|
12597 for ac_hdr in stropts.h
|
|
12598 do
|
|
12599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2131
|
12601 echo "configure:12602: checking for $ac_hdr" >&5
|
|
12602
|
|
12603 cat > conftest.$ac_ext <<EOF
|
|
12604 #line 12605 "configure"
|
1984
|
12605 #include "confdefs.h"
|
|
12606 #include <$ac_hdr>
|
|
12607 EOF
|
|
12608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
12609 { (eval echo configure:12610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1984
|
12610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12611 if test -z "$ac_err"; then
|
|
12612 rm -rf conftest*
|
|
12613 eval "ac_cv_header_$ac_safe=yes"
|
|
12614 else
|
|
12615 echo "$ac_err" >&5
|
|
12616 echo "configure: failed program was:" >&5
|
|
12617 cat conftest.$ac_ext >&5
|
|
12618 rm -rf conftest*
|
|
12619 eval "ac_cv_header_$ac_safe=no"
|
|
12620 fi
|
|
12621 rm -f conftest*
|
|
12622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12623 echo "$ac_t""yes" 1>&6
|
|
12624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12625 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12626 Defining $ac_tr_hdr
|
|
12627 EOF
|
|
12628 cat >> confdefs.h <<EOF
|
|
12629 #define $ac_tr_hdr 1
|
|
12630 EOF
|
|
12631 }
|
|
12632
|
|
12633 else
|
|
12634 echo "$ac_t""no" 1>&6
|
|
12635 fi
|
|
12636 done
|
|
12637
|
771
|
12638 if test "$ac_cv_header_stropts_h" = "yes"; then
|
|
12639 for ac_func in isastream
|
|
12640 do
|
|
12641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
12642 echo "configure:12643: checking for $ac_func" >&5
|
|
12643
|
|
12644 cat > conftest.$ac_ext <<EOF
|
|
12645 #line 12646 "configure"
|
771
|
12646 #include "confdefs.h"
|
|
12647 /* System header to define __stub macros and hopefully few prototypes,
|
|
12648 which can conflict with char $ac_func(); below. */
|
|
12649 #include <assert.h>
|
|
12650 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12651 /* We use char because int might match the return type of a gcc2
|
|
12652 builtin and then its argument prototype would still apply. */
|
|
12653 char $ac_func();
|
|
12654
|
|
12655 int main() {
|
|
12656
|
|
12657 /* The GNU C library defines this for functions which it implements
|
|
12658 to always fail with ENOSYS. Some functions are actually named
|
|
12659 something starting with __ and the normal name is an alias. */
|
|
12660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
12661 choke me
|
|
12662 #else
|
|
12663 $ac_func();
|
|
12664 #endif
|
|
12665
|
|
12666 ; return 0; }
|
|
12667 EOF
|
2131
|
12668 if { (eval echo configure:12669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
771
|
12669 rm -rf conftest*
|
|
12670 eval "ac_cv_func_$ac_func=yes"
|
|
12671 else
|
|
12672 echo "configure: failed program was:" >&5
|
|
12673 cat conftest.$ac_ext >&5
|
|
12674 rm -rf conftest*
|
|
12675 eval "ac_cv_func_$ac_func=no"
|
|
12676 fi
|
|
12677 rm -f conftest*
|
|
12678
|
|
12679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12680 echo "$ac_t""yes" 1>&6
|
|
12681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12682 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12683 Defining $ac_tr_func
|
|
12684 EOF
|
|
12685 cat >> confdefs.h <<EOF
|
|
12686 #define $ac_tr_func 1
|
|
12687 EOF
|
|
12688 }
|
|
12689
|
|
12690 else
|
|
12691 echo "$ac_t""no" 1>&6
|
|
12692 fi
|
|
12693 done
|
|
12694
|
|
12695 for ac_hdr in strtio.h
|
|
12696 do
|
|
12697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2131
|
12699 echo "configure:12700: checking for $ac_hdr" >&5
|
|
12700
|
|
12701 cat > conftest.$ac_ext <<EOF
|
|
12702 #line 12703 "configure"
|
535
|
12703 #include "confdefs.h"
|
|
12704 #include <$ac_hdr>
|
|
12705 EOF
|
|
12706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
12707 { (eval echo configure:12708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
12708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12709 if test -z "$ac_err"; then
|
|
12710 rm -rf conftest*
|
|
12711 eval "ac_cv_header_$ac_safe=yes"
|
|
12712 else
|
|
12713 echo "$ac_err" >&5
|
|
12714 echo "configure: failed program was:" >&5
|
|
12715 cat conftest.$ac_ext >&5
|
|
12716 rm -rf conftest*
|
|
12717 eval "ac_cv_header_$ac_safe=no"
|
|
12718 fi
|
|
12719 rm -f conftest*
|
|
12720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12721 echo "$ac_t""yes" 1>&6
|
|
12722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12723 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12724 Defining $ac_tr_hdr
|
|
12725 EOF
|
|
12726 cat >> confdefs.h <<EOF
|
|
12727 #define $ac_tr_hdr 1
|
|
12728 EOF
|
|
12729 }
|
|
12730
|
|
12731 else
|
|
12732 echo "$ac_t""no" 1>&6
|
|
12733 fi
|
|
12734 done
|
771
|
12735 fi
|
|
12736
|
|
12737 for ac_func in getloadavg
|
410
|
12738 do
|
|
12739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
12740 echo "configure:12741: checking for $ac_func" >&5
|
|
12741
|
|
12742 cat > conftest.$ac_ext <<EOF
|
|
12743 #line 12744 "configure"
|
149
|
12744 #include "confdefs.h"
|
|
12745 /* System header to define __stub macros and hopefully few prototypes,
|
|
12746 which can conflict with char $ac_func(); below. */
|
|
12747 #include <assert.h>
|
|
12748 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12749 /* We use char because int might match the return type of a gcc2
|
|
12750 builtin and then its argument prototype would still apply. */
|
|
12751 char $ac_func();
|
|
12752
|
|
12753 int main() {
|
|
12754
|
70
|
12755 /* The GNU C library defines this for functions which it implements
|
|
12756 to always fail with ENOSYS. Some functions are actually named
|
|
12757 something starting with __ and the normal name is an alias. */
|
149
|
12758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
70
|
12759 choke me
|
|
12760 #else
|
149
|
12761 $ac_func();
|
70
|
12762 #endif
|
149
|
12763
|
70
|
12764 ; return 0; }
|
|
12765 EOF
|
2131
|
12766 if { (eval echo configure:12767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
12767 rm -rf conftest*
|
|
12768 eval "ac_cv_func_$ac_func=yes"
|
|
12769 else
|
|
12770 echo "configure: failed program was:" >&5
|
|
12771 cat conftest.$ac_ext >&5
|
|
12772 rm -rf conftest*
|
|
12773 eval "ac_cv_func_$ac_func=no"
|
|
12774 fi
|
|
12775 rm -f conftest*
|
|
12776
|
|
12777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12778 echo "$ac_t""yes" 1>&6
|
|
12779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12780 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12781 Defining $ac_tr_func
|
|
12782 EOF
|
|
12783 cat >> confdefs.h <<EOF
|
|
12784 #define $ac_tr_func 1
|
|
12785 EOF
|
|
12786 }
|
|
12787
|
|
12788 else
|
|
12789 echo "$ac_t""no" 1>&6
|
|
12790 fi
|
|
12791 done
|
|
12792
|
|
12793
|
|
12794 if test "$ac_cv_func_getloadavg" = "yes"; then
|
|
12795 for ac_hdr in sys/loadavg.h
|
|
12796 do
|
|
12797 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12798 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2131
|
12799 echo "configure:12800: checking for $ac_hdr" >&5
|
|
12800
|
|
12801 cat > conftest.$ac_ext <<EOF
|
|
12802 #line 12803 "configure"
|
442
|
12803 #include "confdefs.h"
|
|
12804 #include <$ac_hdr>
|
|
12805 EOF
|
|
12806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
12807 { (eval echo configure:12808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
12808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12809 if test -z "$ac_err"; then
|
|
12810 rm -rf conftest*
|
|
12811 eval "ac_cv_header_$ac_safe=yes"
|
|
12812 else
|
|
12813 echo "$ac_err" >&5
|
|
12814 echo "configure: failed program was:" >&5
|
|
12815 cat conftest.$ac_ext >&5
|
|
12816 rm -rf conftest*
|
|
12817 eval "ac_cv_header_$ac_safe=no"
|
|
12818 fi
|
|
12819 rm -f conftest*
|
|
12820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12821 echo "$ac_t""yes" 1>&6
|
|
12822 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12823 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12824 Defining $ac_tr_hdr
|
|
12825 EOF
|
|
12826 cat >> confdefs.h <<EOF
|
|
12827 #define $ac_tr_hdr 1
|
|
12828 EOF
|
|
12829 }
|
|
12830
|
|
12831 else
|
|
12832 echo "$ac_t""no" 1>&6
|
|
12833 fi
|
|
12834 done
|
|
12835
|
|
12836 else
|
|
12837 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
|
398
|
12838 echo " xemacs will be linked with \"getloadavg.o\""
|
|
12839 fi
|
|
12840
|
|
12841
|
|
12842 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
|
2131
|
12843 echo "configure:12844: checking for kstat_open in -lkstat" >&5
|
398
|
12844 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
|
|
12845
|
|
12846 xe_check_libs=" -lkstat "
|
|
12847 cat > conftest.$ac_ext <<EOF
|
2131
|
12848 #line 12849 "configure"
|
398
|
12849 #include "confdefs.h"
|
|
12850 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12851 /* We use char because int might match the return type of a gcc2
|
|
12852 builtin and then its argument prototype would still apply. */
|
|
12853 char kstat_open();
|
|
12854
|
|
12855 int main() {
|
|
12856 kstat_open()
|
|
12857 ; return 0; }
|
|
12858 EOF
|
2131
|
12859 if { (eval echo configure:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
12860 rm -rf conftest*
|
|
12861 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12862 else
|
|
12863 echo "configure: failed program was:" >&5
|
|
12864 cat conftest.$ac_ext >&5
|
|
12865 rm -rf conftest*
|
|
12866 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12867 fi
|
|
12868 rm -f conftest*
|
|
12869 xe_check_libs=""
|
|
12870
|
|
12871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
12872 echo "$ac_t""yes" 1>&6
|
|
12873 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
12874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
369
|
12875 { test "$extra_verbose" = "yes" && cat << EOF
|
398
|
12876 Defining $ac_tr_lib
|
369
|
12877 EOF
|
|
12878 cat >> confdefs.h <<EOF
|
398
|
12879 #define $ac_tr_lib 1
|
|
12880 EOF
|
|
12881 }
|
|
12882
|
|
12883 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
|
|
12884
|
|
12885 else
|
|
12886 echo "$ac_t""no" 1>&6
|
|
12887 fi
|
|
12888
|
|
12889
|
442
|
12890 for ac_hdr in kstat.h
|
|
12891 do
|
|
12892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2131
|
12894 echo "configure:12895: checking for $ac_hdr" >&5
|
|
12895
|
|
12896 cat > conftest.$ac_ext <<EOF
|
|
12897 #line 12898 "configure"
|
442
|
12898 #include "confdefs.h"
|
|
12899 #include <$ac_hdr>
|
|
12900 EOF
|
|
12901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
12902 { (eval echo configure:12903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
12903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12904 if test -z "$ac_err"; then
|
|
12905 rm -rf conftest*
|
|
12906 eval "ac_cv_header_$ac_safe=yes"
|
|
12907 else
|
|
12908 echo "$ac_err" >&5
|
|
12909 echo "configure: failed program was:" >&5
|
|
12910 cat conftest.$ac_ext >&5
|
|
12911 rm -rf conftest*
|
|
12912 eval "ac_cv_header_$ac_safe=no"
|
|
12913 fi
|
|
12914 rm -f conftest*
|
|
12915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12916 echo "$ac_t""yes" 1>&6
|
|
12917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12918 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12919 Defining $ac_tr_hdr
|
|
12920 EOF
|
|
12921 cat >> confdefs.h <<EOF
|
|
12922 #define $ac_tr_hdr 1
|
|
12923 EOF
|
|
12924 }
|
|
12925
|
|
12926 else
|
|
12927 echo "$ac_t""no" 1>&6
|
|
12928 fi
|
|
12929 done
|
|
12930
|
398
|
12931
|
|
12932
|
|
12933 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
|
2131
|
12934 echo "configure:12935: checking for kvm_read in -lkvm" >&5
|
398
|
12935 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
|
|
12936
|
|
12937 xe_check_libs=" -lkvm "
|
|
12938 cat > conftest.$ac_ext <<EOF
|
2131
|
12939 #line 12940 "configure"
|
398
|
12940 #include "confdefs.h"
|
|
12941 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12942 /* We use char because int might match the return type of a gcc2
|
|
12943 builtin and then its argument prototype would still apply. */
|
|
12944 char kvm_read();
|
|
12945
|
|
12946 int main() {
|
|
12947 kvm_read()
|
|
12948 ; return 0; }
|
|
12949 EOF
|
2131
|
12950 if { (eval echo configure:12951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
12951 rm -rf conftest*
|
|
12952 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12953 else
|
|
12954 echo "configure: failed program was:" >&5
|
|
12955 cat conftest.$ac_ext >&5
|
|
12956 rm -rf conftest*
|
|
12957 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12958 fi
|
|
12959 rm -f conftest*
|
|
12960 xe_check_libs=""
|
|
12961
|
|
12962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
12963 echo "$ac_t""yes" 1>&6
|
|
12964 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
12965 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
12966 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12967 Defining $ac_tr_lib
|
|
12968 EOF
|
|
12969 cat >> confdefs.h <<EOF
|
|
12970 #define $ac_tr_lib 1
|
|
12971 EOF
|
|
12972 }
|
|
12973
|
|
12974 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
|
|
12975
|
|
12976 else
|
|
12977 echo "$ac_t""no" 1>&6
|
|
12978 fi
|
|
12979
|
|
12980
|
|
12981 fi
|
151
|
12982
|
149
|
12983 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
|
2131
|
12984 echo "configure:12985: checking whether netdb declares h_errno" >&5
|
|
12985 cat > conftest.$ac_ext <<EOF
|
|
12986 #line 12987 "configure"
|
0
|
12987 #include "confdefs.h"
|
|
12988 #include <netdb.h>
|
149
|
12989 int main() {
|
|
12990 return h_errno;
|
|
12991 ; return 0; }
|
|
12992 EOF
|
2131
|
12993 if { (eval echo configure:12994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12994 rm -rf conftest*
|
|
12995 echo "$ac_t""yes" 1>&6
|
|
12996 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12997 Defining HAVE_H_ERRNO
|
|
12998 EOF
|
|
12999 cat >> confdefs.h <<\EOF
|
|
13000 #define HAVE_H_ERRNO 1
|
|
13001 EOF
|
|
13002 }
|
|
13003
|
|
13004 else
|
|
13005 echo "configure: failed program was:" >&5
|
|
13006 cat conftest.$ac_ext >&5
|
|
13007 rm -rf conftest*
|
|
13008 echo "$ac_t""no" 1>&6
|
|
13009 fi
|
|
13010 rm -f conftest*
|
|
13011
|
|
13012 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
2131
|
13013 echo "configure:13014: checking for sigsetjmp" >&5
|
|
13014 cat > conftest.$ac_ext <<EOF
|
|
13015 #line 13016 "configure"
|
0
|
13016 #include "confdefs.h"
|
|
13017 #include <setjmp.h>
|
149
|
13018 int main() {
|
|
13019 sigjmp_buf bar; sigsetjmp (bar, 0);
|
|
13020 ; return 0; }
|
|
13021 EOF
|
2131
|
13022 if { (eval echo configure:13023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
13023 rm -rf conftest*
|
|
13024 echo "$ac_t""yes" 1>&6
|
|
13025 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13026 Defining HAVE_SIGSETJMP
|
|
13027 EOF
|
|
13028 cat >> confdefs.h <<\EOF
|
|
13029 #define HAVE_SIGSETJMP 1
|
|
13030 EOF
|
|
13031 }
|
|
13032
|
|
13033 else
|
|
13034 echo "configure: failed program was:" >&5
|
|
13035 cat conftest.$ac_ext >&5
|
|
13036 rm -rf conftest*
|
|
13037 echo "$ac_t""no" 1>&6
|
|
13038 fi
|
|
13039 rm -f conftest*
|
|
13040
|
|
13041 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
|
2131
|
13042 echo "configure:13043: checking whether localtime caches TZ" >&5
|
149
|
13043
|
|
13044 if test "$ac_cv_func_tzset" = "yes"; then
|
|
13045 cat > conftest.$ac_ext <<EOF
|
2131
|
13046 #line 13047 "configure"
|
0
|
13047 #include "confdefs.h"
|
|
13048 #include <time.h>
|
149
|
13049 #if STDC_HEADERS
|
0
|
13050 # include <stdlib.h>
|
|
13051 #endif
|
|
13052 extern char **environ;
|
|
13053 unset_TZ ()
|
|
13054 {
|
|
13055 char **from, **to;
|
|
13056 for (to = from = environ; (*to = *from); from++)
|
|
13057 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
13058 to++;
|
|
13059 }
|
149
|
13060 char TZ_GMT0[] = "TZ=GMT0";
|
|
13061 char TZ_PST8[] = "TZ=PST8";
|
0
|
13062 main()
|
|
13063 {
|
|
13064 time_t now = time ((time_t *) 0);
|
|
13065 int hour_GMT0, hour_unset;
|
149
|
13066 if (putenv (TZ_GMT0) != 0)
|
0
|
13067 exit (1);
|
|
13068 hour_GMT0 = localtime (&now)->tm_hour;
|
|
13069 unset_TZ ();
|
|
13070 hour_unset = localtime (&now)->tm_hour;
|
149
|
13071 if (putenv (TZ_PST8) != 0)
|
0
|
13072 exit (1);
|
|
13073 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
13074 exit (1);
|
|
13075 unset_TZ ();
|
|
13076 if (localtime (&now)->tm_hour != hour_unset)
|
|
13077 exit (1);
|
|
13078 exit (0);
|
|
13079 }
|
|
13080 EOF
|
2131
|
13081 if { (eval echo configure:13082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
13082 then
|
0
|
13083 emacs_cv_localtime_cache=no
|
149
|
13084 else
|
373
|
13085 conftest_rc="$?"
|
149
|
13086 echo "configure: failed program was:" >&5
|
|
13087 cat conftest.$ac_ext >&5
|
|
13088 rm -fr conftest*
|
0
|
13089 emacs_cv_localtime_cache=yes
|
|
13090 fi
|
|
13091 rm -fr conftest*
|
149
|
13092 else
|
|
13093 # If we lack tzset, report that localtime does not cache TZ,
|
|
13094 # since we can't invalidate the cache if we don't have tzset.
|
|
13095 emacs_cv_localtime_cache=no
|
|
13096 fi
|
|
13097 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
|
|
13098 if test $emacs_cv_localtime_cache = yes; then
|
|
13099 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13100 Defining LOCALTIME_CACHE
|
|
13101 EOF
|
|
13102 cat >> confdefs.h <<\EOF
|
|
13103 #define LOCALTIME_CACHE 1
|
|
13104 EOF
|
|
13105 }
|
|
13106
|
|
13107 fi
|
|
13108
|
|
13109 if test "$HAVE_TIMEVAL" = "yes"; then
|
274
|
13110 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
|
2131
|
13111 echo "configure:13112: checking whether gettimeofday accepts one or two arguments" >&5
|
|
13112 cat > conftest.$ac_ext <<EOF
|
|
13113 #line 13114 "configure"
|
0
|
13114 #include "confdefs.h"
|
|
13115
|
|
13116 #ifdef TIME_WITH_SYS_TIME
|
|
13117 #include <sys/time.h>
|
|
13118 #include <time.h>
|
|
13119 #else
|
|
13120 #ifdef HAVE_SYS_TIME_H
|
|
13121 #include <sys/time.h>
|
|
13122 #else
|
|
13123 #include <time.h>
|
|
13124 #endif
|
|
13125 #endif
|
|
13126
|
149
|
13127 int main() {
|
|
13128
|
0
|
13129 struct timeval time;
|
442
|
13130 gettimeofday (&time, 0);
|
|
13131
|
|
13132 ; return 0; }
|
|
13133 EOF
|
2131
|
13134 if { (eval echo configure:13135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
274
|
13135 rm -rf conftest*
|
|
13136 echo "$ac_t""two" 1>&6
|
|
13137 else
|
|
13138 echo "configure: failed program was:" >&5
|
|
13139 cat conftest.$ac_ext >&5
|
|
13140 rm -rf conftest*
|
|
13141 echo "$ac_t""one" 1>&6
|
149
|
13142 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13143 Defining GETTIMEOFDAY_ONE_ARGUMENT
|
|
13144 EOF
|
|
13145 cat >> confdefs.h <<\EOF
|
|
13146 #define GETTIMEOFDAY_ONE_ARGUMENT 1
|
|
13147 EOF
|
|
13148 }
|
|
13149
|
|
13150 fi
|
|
13151 rm -f conftest*
|
|
13152 fi
|
|
13153
|
|
13154
|
|
13155 echo $ac_n "checking for inline""... $ac_c" 1>&6
|
2131
|
13156 echo "configure:13157: checking for inline" >&5
|
149
|
13157
|
|
13158 ac_cv_c_inline=no
|
|
13159 for ac_kw in inline __inline__ __inline; do
|
|
13160 cat > conftest.$ac_ext <<EOF
|
2131
|
13161 #line 13162 "configure"
|
744
|
13162 #include "confdefs.h"
|
|
13163
|
|
13164 int main() {
|
|
13165 } $ac_kw foo() {
|
|
13166 ; return 0; }
|
|
13167 EOF
|
2131
|
13168 if { (eval echo configure:13169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
13169 rm -rf conftest*
|
|
13170 ac_cv_c_inline=$ac_kw; break
|
|
13171 else
|
|
13172 echo "configure: failed program was:" >&5
|
|
13173 cat conftest.$ac_ext >&5
|
|
13174 fi
|
|
13175 rm -f conftest*
|
|
13176 done
|
|
13177
|
|
13178
|
|
13179 echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
13180 case "$ac_cv_c_inline" in
|
|
13181 inline | yes) ;;
|
|
13182 no) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13183 Defining inline =
|
|
13184 EOF
|
|
13185 cat >> confdefs.h <<\EOF
|
|
13186 #define inline
|
|
13187 EOF
|
|
13188 }
|
|
13189 ;;
|
|
13190 *) { test "$extra_verbose" = "yes" && cat << EOF
|
|
13191 Defining inline = $ac_cv_c_inline
|
|
13192 EOF
|
|
13193 cat >> confdefs.h <<EOF
|
|
13194 #define inline $ac_cv_c_inline
|
|
13195 EOF
|
|
13196 }
|
|
13197 ;;
|
|
13198 esac
|
|
13199
|
442
|
13200 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
|
155
|
13201 echo " xemacs will be linked with \"inline.o\""
|
|
13202 fi
|
149
|
13203
|
1800
|
13204 echo $ac_n "checking for typeof""... $ac_c" 1>&6
|
2131
|
13205 echo "configure:13206: checking for typeof" >&5
|
|
13206 cat > conftest.$ac_ext <<EOF
|
|
13207 #line 13208 "configure"
|
1800
|
13208 #include "confdefs.h"
|
|
13209
|
|
13210 int main() {
|
|
13211 int i; __typeof__(i) j;
|
|
13212 ; return 0; }
|
|
13213 EOF
|
2131
|
13214 if { (eval echo configure:13215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1800
|
13215 rm -rf conftest*
|
|
13216 typeofname="__typeof__"
|
|
13217 else
|
|
13218 echo "configure: failed program was:" >&5
|
|
13219 cat conftest.$ac_ext >&5
|
|
13220 rm -rf conftest*
|
|
13221 cat > conftest.$ac_ext <<EOF
|
2131
|
13222 #line 13223 "configure"
|
1800
|
13223 #include "confdefs.h"
|
|
13224
|
|
13225 int main() {
|
|
13226 int i; typeof(i) j;
|
|
13227 ; return 0; }
|
|
13228 EOF
|
2131
|
13229 if { (eval echo configure:13230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1800
|
13230 rm -rf conftest*
|
|
13231 typeofname="typeof"
|
|
13232 else
|
|
13233 echo "configure: failed program was:" >&5
|
|
13234 cat conftest.$ac_ext >&5
|
|
13235 rm -rf conftest*
|
|
13236 typeofname=no
|
|
13237 fi
|
|
13238 rm -f conftest*
|
|
13239 fi
|
|
13240 rm -f conftest*
|
|
13241 echo "$ac_t""$typeofname" 1>&6
|
|
13242 if test "$typeofname" != "no"; then
|
|
13243 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13244 Defining TYPEOF = $typeofname
|
|
13245 EOF
|
|
13246 cat >> confdefs.h <<EOF
|
|
13247 #define TYPEOF $typeofname
|
|
13248 EOF
|
|
13249 }
|
|
13250
|
|
13251 fi
|
|
13252
|
149
|
13253
|
444
|
13254 if test "$__DECC" != "yes"; then
|
|
13255 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
0
|
13256 # for constant arguments. Useless!
|
149
|
13257 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
2131
|
13258 echo "configure:13259: checking for working alloca.h" >&5
|
|
13259
|
|
13260 cat > conftest.$ac_ext <<EOF
|
|
13261 #line 13262 "configure"
|
0
|
13262 #include "confdefs.h"
|
|
13263 #include <alloca.h>
|
149
|
13264 int main() {
|
744
|
13265 char *p = alloca(2 * sizeof(int));
|
|
13266 ; return 0; }
|
|
13267 EOF
|
2131
|
13268 if { (eval echo configure:13269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13269 rm -rf conftest*
|
|
13270 ac_cv_header_alloca_h=yes
|
|
13271 else
|
|
13272 echo "configure: failed program was:" >&5
|
|
13273 cat conftest.$ac_ext >&5
|
|
13274 rm -rf conftest*
|
|
13275 ac_cv_header_alloca_h=no
|
|
13276 fi
|
|
13277 rm -f conftest*
|
|
13278
|
|
13279 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
13280 if test $ac_cv_header_alloca_h = yes; then
|
|
13281 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13282 Defining HAVE_ALLOCA_H
|
|
13283 EOF
|
|
13284 cat >> confdefs.h <<\EOF
|
|
13285 #define HAVE_ALLOCA_H 1
|
|
13286 EOF
|
|
13287 }
|
|
13288
|
|
13289 fi
|
|
13290
|
|
13291 echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
2131
|
13292 echo "configure:13293: checking for alloca" >&5
|
|
13293
|
|
13294 cat > conftest.$ac_ext <<EOF
|
|
13295 #line 13296 "configure"
|
149
|
13296 #include "confdefs.h"
|
|
13297
|
|
13298 #ifdef __GNUC__
|
|
13299 # define alloca __builtin_alloca
|
0
|
13300 #else
|
420
|
13301 # ifdef _MSC_VER
|
|
13302 # include <malloc.h>
|
|
13303 # define alloca _alloca
|
149
|
13304 # else
|
420
|
13305 # if HAVE_ALLOCA_H
|
|
13306 # include <alloca.h>
|
149
|
13307 # else
|
420
|
13308 # ifdef _AIX
|
|
13309 #pragma alloca
|
|
13310 # else
|
|
13311 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
149
|
13312 char *alloca ();
|
420
|
13313 # endif
|
149
|
13314 # endif
|
|
13315 # endif
|
|
13316 # endif
|
0
|
13317 #endif
|
149
|
13318
|
|
13319 int main() {
|
|
13320 char *p = (char *) alloca(1);
|
0
|
13321 ; return 0; }
|
|
13322 EOF
|
2131
|
13323 if { (eval echo configure:13324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13324 rm -rf conftest*
|
|
13325 ac_cv_func_alloca_works=yes
|
|
13326 else
|
|
13327 echo "configure: failed program was:" >&5
|
|
13328 cat conftest.$ac_ext >&5
|
|
13329 rm -rf conftest*
|
|
13330 ac_cv_func_alloca_works=no
|
|
13331 fi
|
|
13332 rm -f conftest*
|
|
13333
|
|
13334 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
13335 if test $ac_cv_func_alloca_works = yes; then
|
|
13336 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13337 Defining HAVE_ALLOCA
|
|
13338 EOF
|
|
13339 cat >> confdefs.h <<\EOF
|
|
13340 #define HAVE_ALLOCA 1
|
|
13341 EOF
|
|
13342 }
|
|
13343
|
|
13344 fi
|
|
13345
|
|
13346 if test $ac_cv_func_alloca_works = no; then
|
0
|
13347 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
13348 # that cause trouble. Some versions do not even contain alloca or
|
|
13349 # contain a buggy version. If you still want to use their alloca,
|
|
13350 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
420
|
13351 ALLOCA=alloca.${ac_objext}
|
149
|
13352 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13353 Defining C_ALLOCA
|
|
13354 EOF
|
|
13355 cat >> confdefs.h <<\EOF
|
|
13356 #define C_ALLOCA 1
|
|
13357 EOF
|
|
13358 }
|
|
13359
|
|
13360
|
|
13361 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
2131
|
13362 echo "configure:13363: checking whether alloca needs Cray hooks" >&5
|
|
13363
|
|
13364 cat > conftest.$ac_ext <<EOF
|
|
13365 #line 13366 "configure"
|
149
|
13366 #include "confdefs.h"
|
|
13367 #if defined(CRAY) && ! defined(CRAY2)
|
|
13368 webecray
|
|
13369 #else
|
|
13370 wenotbecray
|
|
13371 #endif
|
|
13372
|
|
13373 EOF
|
|
13374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
13375 egrep "webecray" >/dev/null 2>&1; then
|
|
13376 rm -rf conftest*
|
|
13377 ac_cv_os_cray=yes
|
|
13378 else
|
|
13379 rm -rf conftest*
|
|
13380 ac_cv_os_cray=no
|
|
13381 fi
|
|
13382 rm -f conftest*
|
|
13383
|
|
13384
|
|
13385 echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
13386 if test $ac_cv_os_cray = yes; then
|
|
13387 for ac_func in _getb67 GETB67 getb67; do
|
|
13388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
13389 echo "configure:13390: checking for $ac_func" >&5
|
|
13390
|
|
13391 cat > conftest.$ac_ext <<EOF
|
|
13392 #line 13393 "configure"
|
149
|
13393 #include "confdefs.h"
|
|
13394 /* System header to define __stub macros and hopefully few prototypes,
|
|
13395 which can conflict with char $ac_func(); below. */
|
|
13396 #include <assert.h>
|
|
13397 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13398 /* We use char because int might match the return type of a gcc2
|
|
13399 builtin and then its argument prototype would still apply. */
|
|
13400 char $ac_func();
|
|
13401
|
|
13402 int main() {
|
|
13403
|
|
13404 /* The GNU C library defines this for functions which it implements
|
|
13405 to always fail with ENOSYS. Some functions are actually named
|
|
13406 something starting with __ and the normal name is an alias. */
|
|
13407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
13408 choke me
|
|
13409 #else
|
|
13410 $ac_func();
|
|
13411 #endif
|
|
13412
|
|
13413 ; return 0; }
|
|
13414 EOF
|
2131
|
13415 if { (eval echo configure:13416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13416 rm -rf conftest*
|
|
13417 eval "ac_cv_func_$ac_func=yes"
|
|
13418 else
|
|
13419 echo "configure: failed program was:" >&5
|
|
13420 cat conftest.$ac_ext >&5
|
|
13421 rm -rf conftest*
|
|
13422 eval "ac_cv_func_$ac_func=no"
|
|
13423 fi
|
|
13424 rm -f conftest*
|
|
13425
|
|
13426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
13427 echo "$ac_t""yes" 1>&6
|
|
13428 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13429 Defining CRAY_STACKSEG_END = $ac_func
|
|
13430 EOF
|
|
13431 cat >> confdefs.h <<EOF
|
|
13432 #define CRAY_STACKSEG_END $ac_func
|
|
13433 EOF
|
|
13434 }
|
|
13435
|
|
13436 break
|
|
13437 else
|
|
13438 echo "$ac_t""no" 1>&6
|
|
13439 fi
|
|
13440
|
|
13441 done
|
|
13442 fi
|
|
13443
|
|
13444 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
2131
|
13445 echo "configure:13446: checking stack direction for C alloca" >&5
|
|
13446
|
|
13447 cat > conftest.$ac_ext <<EOF
|
|
13448 #line 13449 "configure"
|
0
|
13449 #include "confdefs.h"
|
|
13450 find_stack_direction ()
|
|
13451 {
|
|
13452 static char *addr = 0;
|
|
13453 auto char dummy;
|
|
13454 if (addr == 0)
|
|
13455 {
|
|
13456 addr = &dummy;
|
|
13457 return find_stack_direction ();
|
|
13458 }
|
|
13459 else
|
|
13460 return (&dummy > addr) ? 1 : -1;
|
|
13461 }
|
|
13462 main ()
|
|
13463 {
|
|
13464 exit (find_stack_direction() < 0);
|
|
13465 }
|
|
13466 EOF
|
2131
|
13467 if { (eval echo configure:13468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
13468 then
|
|
13469 ac_cv_c_stack_direction=1
|
|
13470 else
|
373
|
13471 conftest_rc="$?"
|
149
|
13472 echo "configure: failed program was:" >&5
|
|
13473 cat conftest.$ac_ext >&5
|
|
13474 rm -fr conftest*
|
|
13475 ac_cv_c_stack_direction=-1
|
0
|
13476 fi
|
|
13477 rm -fr conftest*
|
149
|
13478
|
|
13479 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
13480 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13481 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
|
|
13482 EOF
|
|
13483 cat >> confdefs.h <<EOF
|
|
13484 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
13485 EOF
|
|
13486 }
|
|
13487
|
|
13488 fi
|
|
13489
|
444
|
13490 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
|
151
|
13491 echo " xemacs will be linked with \"$ALLOCA\""
|
|
13492 fi
|
444
|
13493 fi
|
149
|
13494
|
1332
|
13495 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6
|
2131
|
13496 echo "configure:13497: checking for working alloca in function calls" >&5
|
|
13497 cat > conftest.$ac_ext <<EOF
|
|
13498 #line 13499 "configure"
|
1332
|
13499 #include "confdefs.h"
|
|
13500
|
|
13501 #if defined (__CYGWIN__)
|
|
13502 #include <alloca.h>
|
|
13503 #elif defined (__GNUC__)
|
|
13504 #define alloca __builtin_alloca
|
|
13505 #elif defined (__DECC)
|
|
13506 #include <alloca.h>
|
|
13507 #pragma intrinsic(alloca)
|
|
13508 #elif defined (HAVE_ALLOCA_H)
|
|
13509 #include <alloca.h>
|
|
13510 #elif defined (_AIX)
|
|
13511 #pragma alloca
|
|
13512 #elif ! defined (alloca)
|
|
13513 #ifdef C_ALLOCA
|
|
13514 #define alloca xemacs_c_alloca
|
|
13515 #else
|
|
13516 void *alloca ();
|
|
13517 #endif /* C_ALLOCA */
|
|
13518 #endif /* !defined (alloca) */
|
|
13519
|
|
13520 void
|
|
13521 f1 (double a, void *ptr, int b)
|
|
13522 {
|
|
13523 unsigned char *ptr2 = (unsigned char *) ptr;
|
|
13524 if (ptr2[0] != 0xBF || ptr2[1] != 0xBF || ptr2[3000] != 0xBF)
|
|
13525 exit (1);
|
|
13526 if (a != 3.1415 || b != -5490)
|
|
13527 exit (1);
|
|
13528 }
|
|
13529
|
|
13530 int
|
|
13531 f2 (short c, void *ptr, long e)
|
|
13532 {
|
|
13533 unsigned char *ptr2 = (unsigned char *) ptr;
|
|
13534 if (ptr2[0] != 0xFB || ptr2[1] != 0xFB || ptr2[1000] != 0xFB)
|
|
13535 exit (1);
|
|
13536 if (c != 665 || e != 776776776)
|
|
13537 exit (1);
|
|
13538 f1 (3.1415, memset (alloca (3001), 0xBF, 3001), -5490);
|
|
13539 return 42;
|
|
13540 }
|
|
13541
|
|
13542 int
|
|
13543 main (int argc, char *argv[])
|
|
13544 {
|
|
13545 if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42)
|
|
13546 return 1;
|
|
13547 return 0;
|
|
13548 }
|
|
13549
|
|
13550 EOF
|
2131
|
13551 if { (eval echo configure:13552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
1332
|
13552 then
|
|
13553 working_alloca_in_function_calls=yes
|
|
13554 else
|
|
13555 conftest_rc="$?"
|
|
13556 echo "configure: failed program was:" >&5
|
|
13557 cat conftest.$ac_ext >&5
|
|
13558 rm -fr conftest*
|
|
13559 working_alloca_in_function_calls=no
|
|
13560 fi
|
|
13561 rm -fr conftest*
|
|
13562 echo "$ac_t""$working_alloca_in_function_calls" 1>&6
|
|
13563 test "$working_alloca_in_function_calls" != "yes" && \
|
|
13564 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13565 Defining BROKEN_ALLOCA_IN_FUNCTION_CALLS
|
|
13566 EOF
|
|
13567 cat >> confdefs.h <<\EOF
|
|
13568 #define BROKEN_ALLOCA_IN_FUNCTION_CALLS 1
|
|
13569 EOF
|
|
13570 }
|
|
13571
|
|
13572
|
149
|
13573 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
|
2131
|
13574 echo "configure:13575: checking for working strcoll" >&5
|
|
13575
|
|
13576 cat > conftest.$ac_ext <<EOF
|
|
13577 #line 13578 "configure"
|
0
|
13578 #include "confdefs.h"
|
|
13579 #include <string.h>
|
|
13580 main ()
|
|
13581 {
|
|
13582 exit (strcoll ("abc", "def") >= 0 ||
|
|
13583 strcoll ("ABC", "DEF") >= 0 ||
|
|
13584 strcoll ("123", "456") >= 0);
|
|
13585 }
|
|
13586 EOF
|
2131
|
13587 if { (eval echo configure:13588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
13588 then
|
|
13589 ac_cv_func_strcoll_works=yes
|
|
13590 else
|
373
|
13591 conftest_rc="$?"
|
149
|
13592 echo "configure: failed program was:" >&5
|
|
13593 cat conftest.$ac_ext >&5
|
|
13594 rm -fr conftest*
|
|
13595 ac_cv_func_strcoll_works=no
|
0
|
13596 fi
|
|
13597 rm -fr conftest*
|
|
13598
|
149
|
13599 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
|
|
13600 if test $ac_cv_func_strcoll_works = yes; then
|
|
13601 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13602 Defining HAVE_STRCOLL
|
|
13603 EOF
|
|
13604 cat >> confdefs.h <<\EOF
|
|
13605 #define HAVE_STRCOLL 1
|
|
13606 EOF
|
|
13607 }
|
|
13608
|
|
13609 fi
|
|
13610
|
|
13611
|
163
|
13612 for ac_func in getpgrp
|
|
13613 do
|
|
13614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2131
|
13615 echo "configure:13616: checking for $ac_func" >&5
|
|
13616
|
|
13617 cat > conftest.$ac_ext <<EOF
|
|
13618 #line 13619 "configure"
|
163
|
13619 #include "confdefs.h"
|
|
13620 /* System header to define __stub macros and hopefully few prototypes,
|
|
13621 which can conflict with char $ac_func(); below. */
|
|
13622 #include <assert.h>
|
|
13623 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13624 /* We use char because int might match the return type of a gcc2
|
|
13625 builtin and then its argument prototype would still apply. */
|
|
13626 char $ac_func();
|
|
13627
|
|
13628 int main() {
|
|
13629
|
|
13630 /* The GNU C library defines this for functions which it implements
|
|
13631 to always fail with ENOSYS. Some functions are actually named
|
|
13632 something starting with __ and the normal name is an alias. */
|
|
13633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
13634 choke me
|
|
13635 #else
|
|
13636 $ac_func();
|
|
13637 #endif
|
|
13638
|
|
13639 ; return 0; }
|
|
13640 EOF
|
2131
|
13641 if { (eval echo configure:13642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
163
|
13642 rm -rf conftest*
|
|
13643 eval "ac_cv_func_$ac_func=yes"
|
|
13644 else
|
|
13645 echo "configure: failed program was:" >&5
|
|
13646 cat conftest.$ac_ext >&5
|
|
13647 rm -rf conftest*
|
|
13648 eval "ac_cv_func_$ac_func=no"
|
|
13649 fi
|
|
13650 rm -f conftest*
|
|
13651
|
|
13652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
13653 echo "$ac_t""yes" 1>&6
|
|
13654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
13655 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13656 Defining $ac_tr_func
|
|
13657 EOF
|
|
13658 cat >> confdefs.h <<EOF
|
|
13659 #define $ac_tr_func 1
|
|
13660 EOF
|
|
13661 }
|
|
13662
|
|
13663 else
|
|
13664 echo "$ac_t""no" 1>&6
|
|
13665 fi
|
|
13666 done
|
|
13667
|
|
13668 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
|
2131
|
13669 echo "configure:13670: checking whether getpgrp takes no argument" >&5
|
|
13670
|
|
13671 cat > conftest.$ac_ext <<EOF
|
|
13672 #line 13673 "configure"
|
163
|
13673 #include "confdefs.h"
|
|
13674
|
|
13675 /*
|
|
13676 * If this system has a BSD-style getpgrp(),
|
|
13677 * which takes a pid argument, exit unsuccessfully.
|
|
13678 *
|
|
13679 * Snarfed from Chet Ramey's bash pgrp.c test program
|
|
13680 */
|
|
13681 #include <stdio.h>
|
|
13682 #include <sys/types.h>
|
|
13683
|
|
13684 int pid;
|
|
13685 int pg1, pg2, pg3, pg4;
|
|
13686 int ng, np, s, child;
|
|
13687
|
|
13688 main()
|
|
13689 {
|
|
13690 pid = getpid();
|
|
13691 pg1 = getpgrp(0);
|
|
13692 pg2 = getpgrp();
|
|
13693 pg3 = getpgrp(pid);
|
|
13694 pg4 = getpgrp(1);
|
|
13695
|
|
13696 /*
|
|
13697 * If all of these values are the same, it's pretty sure that
|
|
13698 * we're on a system that ignores getpgrp's first argument.
|
|
13699 */
|
|
13700 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
|
|
13701 exit(0);
|
|
13702
|
|
13703 child = fork();
|
|
13704 if (child < 0)
|
|
13705 exit(1);
|
|
13706 else if (child == 0) {
|
|
13707 np = getpid();
|
|
13708 /*
|
|
13709 * If this is Sys V, this will not work; pgrp will be
|
|
13710 * set to np because setpgrp just changes a pgrp to be
|
|
13711 * the same as the pid.
|
|
13712 */
|
|
13713 setpgrp(np, pg1);
|
|
13714 ng = getpgrp(0); /* Same result for Sys V and BSD */
|
|
13715 if (ng == pg1) {
|
|
13716 exit(1);
|
|
13717 } else {
|
|
13718 exit(0);
|
|
13719 }
|
|
13720 } else {
|
|
13721 wait(&s);
|
|
13722 exit(s>>8);
|
|
13723 }
|
|
13724 }
|
|
13725
|
|
13726 EOF
|
2131
|
13727 if { (eval echo configure:13728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
13728 then
|
|
13729 ac_cv_func_getpgrp_void=yes
|
|
13730 else
|
373
|
13731 conftest_rc="$?"
|
163
|
13732 echo "configure: failed program was:" >&5
|
|
13733 cat conftest.$ac_ext >&5
|
|
13734 rm -fr conftest*
|
|
13735 ac_cv_func_getpgrp_void=no
|
|
13736 fi
|
|
13737 rm -fr conftest*
|
|
13738
|
|
13739
|
|
13740 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
|
|
13741 if test $ac_cv_func_getpgrp_void = yes; then
|
|
13742 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13743 Defining GETPGRP_VOID
|
|
13744 EOF
|
|
13745 cat >> confdefs.h <<\EOF
|
|
13746 #define GETPGRP_VOID 1
|
|
13747 EOF
|
|
13748 }
|
|
13749
|
|
13750 fi
|
|
13751
|
|
13752
|
149
|
13753 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
2131
|
13754 echo "configure:13755: checking for working mmap" >&5
|
155
|
13755 case "$opsys" in ultrix* ) have_mmap=no ;; *)
|
|
13756 cat > conftest.$ac_ext <<EOF
|
2131
|
13757 #line 13758 "configure"
|
153
|
13758 #include "confdefs.h"
|
|
13759 #include <stdio.h>
|
|
13760 #include <unistd.h>
|
149
|
13761 #include <fcntl.h>
|
|
13762 #include <sys/mman.h>
|
|
13763
|
153
|
13764 #ifndef MAP_VARIABLE
|
|
13765 #define MAP_VARIABLE 0
|
0
|
13766 #endif
|
149
|
13767
|
153
|
13768 #ifndef MAP_FAILED
|
|
13769 #define MAP_FAILED -1
|
|
13770 #endif
|
|
13771
|
|
13772 int main (int argc, char *argv[])
|
0
|
13773 {
|
153
|
13774 int fd = -1;
|
|
13775 caddr_t p;
|
|
13776 #ifndef MAP_ANONYMOUS
|
|
13777 fd = open ("/dev/zero", O_RDWR);
|
|
13778 if (fd < 0)
|
|
13779 return 1;
|
|
13780 #define MAP_ANONYMOUS 0
|
|
13781 #endif
|
|
13782 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
|
|
13783 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
|
|
13784 fd, 0) != (void *) MAP_FAILED)
|
|
13785 return 0;
|
|
13786 perror ("conftest: mmap failed");
|
|
13787 return 1;
|
|
13788 }
|
|
13789 EOF
|
2131
|
13790 if { (eval echo configure:13791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
13791 then
|
153
|
13792 have_mmap=yes
|
149
|
13793 else
|
373
|
13794 conftest_rc="$?"
|
149
|
13795 echo "configure: failed program was:" >&5
|
|
13796 cat conftest.$ac_ext >&5
|
|
13797 rm -fr conftest*
|
153
|
13798 have_mmap=no
|
149
|
13799 fi
|
155
|
13800 rm -fr conftest* ;;
|
|
13801 esac
|
153
|
13802 echo "$ac_t""$have_mmap" 1>&6
|
|
13803 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
13804 Defining HAVE_MMAP
|
|
13805 EOF
|
|
13806 cat >> confdefs.h <<\EOF
|
|
13807 #define HAVE_MMAP 1
|
|
13808 EOF
|
|
13809 }
|
|
13810
|
412
|
13811
|
535
|
13812 case "$opsys" in cygwin*)
|
462
|
13813 test "$rel_alloc" = "default" && rel_alloc=no ;;
|
|
13814 esac
|
442
|
13815 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
|
|
13816 if test "$rel_alloc $have_mmap" = "default yes"; then
|
|
13817 if test "$doug_lea_malloc" = "yes"; then
|
|
13818 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
|
2131
|
13819 echo "configure:13820: checking for M_MMAP_THRESHOLD" >&5
|
442
|
13820 cat > conftest.$ac_ext <<EOF
|
2131
|
13821 #line 13822 "configure"
|
442
|
13822 #include "confdefs.h"
|
|
13823 #include <malloc.h>
|
|
13824 int main() {
|
|
13825
|
|
13826 #ifndef M_MMAP_THRESHOLD
|
|
13827 #error No M_MMAP_THRESHOLD :-(
|
|
13828 !@+$%^&*_)(_ - unlikely to compile...
|
|
13829 #endif
|
|
13830
|
|
13831 ; return 0; }
|
|
13832 EOF
|
2131
|
13833 if { (eval echo configure:13834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
13834 rm -rf conftest*
|
|
13835 rel_alloc=no; echo "$ac_t""yes" 1>&6;
|
|
13836 else
|
|
13837 echo "configure: failed program was:" >&5
|
|
13838 cat conftest.$ac_ext >&5
|
|
13839 rm -rf conftest*
|
|
13840 rel_alloc=yes; echo "$ac_t""no" 1>&6;
|
|
13841 fi
|
|
13842 rm -f conftest*
|
|
13843 else
|
|
13844 rel_alloc=yes
|
|
13845 fi
|
|
13846 fi
|
149
|
13847 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13848 Defining REL_ALLOC
|
|
13849 EOF
|
|
13850 cat >> confdefs.h <<\EOF
|
|
13851 #define REL_ALLOC 1
|
|
13852 EOF
|
|
13853 }
|
|
13854
|
|
13855
|
175
|
13856 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
|
|
13857 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
|
2131
|
13858 echo "configure:13859: checking for termios.h" >&5
|
|
13859
|
|
13860 cat > conftest.$ac_ext <<EOF
|
|
13861 #line 13862 "configure"
|
175
|
13862 #include "confdefs.h"
|
|
13863 #include <termios.h>
|
|
13864 EOF
|
|
13865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
13866 { (eval echo configure:13867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
175
|
13868 if test -z "$ac_err"; then
|
|
13869 rm -rf conftest*
|
|
13870 eval "ac_cv_header_$ac_safe=yes"
|
|
13871 else
|
|
13872 echo "$ac_err" >&5
|
|
13873 echo "configure: failed program was:" >&5
|
|
13874 cat conftest.$ac_ext >&5
|
|
13875 rm -rf conftest*
|
|
13876 eval "ac_cv_header_$ac_safe=no"
|
|
13877 fi
|
|
13878 rm -f conftest*
|
|
13879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13880 echo "$ac_t""yes" 1>&6
|
|
13881 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13882 Defining HAVE_TERMIOS
|
|
13883 EOF
|
|
13884 cat >> confdefs.h <<\EOF
|
|
13885 #define HAVE_TERMIOS 1
|
|
13886 EOF
|
|
13887 }
|
|
13888
|
|
13889 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13890 Defining SIGNALS_VIA_CHARACTERS
|
|
13891 EOF
|
|
13892 cat >> confdefs.h <<\EOF
|
|
13893 #define SIGNALS_VIA_CHARACTERS 1
|
|
13894 EOF
|
|
13895 }
|
|
13896
|
|
13897 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13898 Defining NO_TERMIO
|
|
13899 EOF
|
|
13900 cat >> confdefs.h <<\EOF
|
|
13901 #define NO_TERMIO 1
|
|
13902 EOF
|
|
13903 }
|
|
13904
|
|
13905 else
|
|
13906 echo "$ac_t""no" 1>&6
|
|
13907 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
|
|
13908 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
|
2131
|
13909 echo "configure:13910: checking for termio.h" >&5
|
|
13910
|
|
13911 cat > conftest.$ac_ext <<EOF
|
|
13912 #line 13913 "configure"
|
175
|
13913 #include "confdefs.h"
|
|
13914 #include <termio.h>
|
|
13915 EOF
|
|
13916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
13917 { (eval echo configure:13918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
175
|
13919 if test -z "$ac_err"; then
|
|
13920 rm -rf conftest*
|
|
13921 eval "ac_cv_header_$ac_safe=yes"
|
|
13922 else
|
|
13923 echo "$ac_err" >&5
|
|
13924 echo "configure: failed program was:" >&5
|
|
13925 cat conftest.$ac_ext >&5
|
|
13926 rm -rf conftest*
|
|
13927 eval "ac_cv_header_$ac_safe=no"
|
|
13928 fi
|
|
13929 rm -f conftest*
|
|
13930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13931 echo "$ac_t""yes" 1>&6
|
|
13932 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13933 Defining HAVE_TERMIO
|
|
13934 EOF
|
|
13935 cat >> confdefs.h <<\EOF
|
|
13936 #define HAVE_TERMIO 1
|
|
13937 EOF
|
|
13938 }
|
|
13939
|
|
13940 else
|
|
13941 echo "$ac_t""no" 1>&6
|
|
13942 fi
|
|
13943
|
|
13944 fi
|
|
13945
|
|
13946
|
|
13947
|
149
|
13948 echo $ac_n "checking for socket""... $ac_c" 1>&6
|
2131
|
13949 echo "configure:13950: checking for socket" >&5
|
|
13950
|
|
13951 cat > conftest.$ac_ext <<EOF
|
|
13952 #line 13953 "configure"
|
149
|
13953 #include "confdefs.h"
|
|
13954 /* System header to define __stub macros and hopefully few prototypes,
|
|
13955 which can conflict with char socket(); below. */
|
|
13956 #include <assert.h>
|
|
13957 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13958 /* We use char because int might match the return type of a gcc2
|
|
13959 builtin and then its argument prototype would still apply. */
|
|
13960 char socket();
|
|
13961
|
|
13962 int main() {
|
|
13963
|
0
|
13964 /* The GNU C library defines this for functions which it implements
|
|
13965 to always fail with ENOSYS. Some functions are actually named
|
|
13966 something starting with __ and the normal name is an alias. */
|
|
13967 #if defined (__stub_socket) || defined (__stub___socket)
|
|
13968 choke me
|
|
13969 #else
|
149
|
13970 socket();
|
0
|
13971 #endif
|
149
|
13972
|
0
|
13973 ; return 0; }
|
|
13974 EOF
|
2131
|
13975 if { (eval echo configure:13976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13976 rm -rf conftest*
|
|
13977 eval "ac_cv_func_socket=yes"
|
|
13978 else
|
|
13979 echo "configure: failed program was:" >&5
|
|
13980 cat conftest.$ac_ext >&5
|
|
13981 rm -rf conftest*
|
|
13982 eval "ac_cv_func_socket=no"
|
|
13983 fi
|
|
13984 rm -f conftest*
|
|
13985
|
|
13986 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
|
|
13987 echo "$ac_t""yes" 1>&6
|
|
13988 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
|
|
13989 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
|
2131
|
13990 echo "configure:13991: checking for netinet/in.h" >&5
|
|
13991
|
|
13992 cat > conftest.$ac_ext <<EOF
|
|
13993 #line 13994 "configure"
|
0
|
13994 #include "confdefs.h"
|
|
13995 #include <netinet/in.h>
|
|
13996 EOF
|
149
|
13997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
13998 { (eval echo configure:13999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14000 if test -z "$ac_err"; then
|
149
|
14001 rm -rf conftest*
|
|
14002 eval "ac_cv_header_$ac_safe=yes"
|
|
14003 else
|
|
14004 echo "$ac_err" >&5
|
|
14005 echo "configure: failed program was:" >&5
|
|
14006 cat conftest.$ac_ext >&5
|
|
14007 rm -rf conftest*
|
|
14008 eval "ac_cv_header_$ac_safe=no"
|
|
14009 fi
|
|
14010 rm -f conftest*
|
|
14011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14012 echo "$ac_t""yes" 1>&6
|
|
14013 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
|
|
14014 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
|
2131
|
14015 echo "configure:14016: checking for arpa/inet.h" >&5
|
|
14016
|
|
14017 cat > conftest.$ac_ext <<EOF
|
|
14018 #line 14019 "configure"
|
0
|
14019 #include "confdefs.h"
|
|
14020 #include <arpa/inet.h>
|
|
14021 EOF
|
149
|
14022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
14023 { (eval echo configure:14024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14025 if test -z "$ac_err"; then
|
149
|
14026 rm -rf conftest*
|
|
14027 eval "ac_cv_header_$ac_safe=yes"
|
|
14028 else
|
|
14029 echo "$ac_err" >&5
|
|
14030 echo "configure: failed program was:" >&5
|
|
14031 cat conftest.$ac_ext >&5
|
|
14032 rm -rf conftest*
|
|
14033 eval "ac_cv_header_$ac_safe=no"
|
|
14034 fi
|
|
14035 rm -f conftest*
|
|
14036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14037 echo "$ac_t""yes" 1>&6
|
0
|
14038
|
149
|
14039 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14040 Defining HAVE_SOCKETS
|
|
14041 EOF
|
|
14042 cat >> confdefs.h <<\EOF
|
|
14043 #define HAVE_SOCKETS 1
|
|
14044 EOF
|
|
14045 }
|
|
14046
|
|
14047 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
|
2131
|
14048 echo "configure:14049: checking "for sun_len member in struct sockaddr_un"" >&5
|
149
|
14049 cat > conftest.$ac_ext <<EOF
|
2131
|
14050 #line 14051 "configure"
|
149
|
14051 #include "confdefs.h"
|
|
14052
|
0
|
14053 #include <sys/types.h>
|
149
|
14054 #include <sys/socket.h>
|
|
14055 #include <sys/un.h>
|
|
14056
|
|
14057 int main() {
|
|
14058 static struct sockaddr_un x; x.sun_len = 1;
|
|
14059 ; return 0; }
|
|
14060 EOF
|
2131
|
14061 if { (eval echo configure:14062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14062 rm -rf conftest*
|
|
14063 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14064 Defining HAVE_SOCKADDR_SUN_LEN
|
|
14065 EOF
|
|
14066 cat >> confdefs.h <<\EOF
|
|
14067 #define HAVE_SOCKADDR_SUN_LEN 1
|
|
14068 EOF
|
|
14069 }
|
|
14070
|
|
14071 else
|
|
14072 echo "configure: failed program was:" >&5
|
|
14073 cat conftest.$ac_ext >&5
|
|
14074 rm -rf conftest*
|
|
14075 echo "$ac_t""no" 1>&6
|
|
14076 fi
|
|
14077 rm -f conftest*
|
259
|
14078 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
|
2131
|
14079 echo "configure:14080: checking "for ip_mreq struct in netinet/in.h"" >&5
|
259
|
14080 cat > conftest.$ac_ext <<EOF
|
2131
|
14081 #line 14082 "configure"
|
284
|
14082 #include "confdefs.h"
|
|
14083
|
|
14084 #include <sys/types.h>
|
259
|
14085 #include <netinet/in.h>
|
|
14086
|
|
14087 int main() {
|
|
14088 static struct ip_mreq x;
|
|
14089 ; return 0; }
|
|
14090 EOF
|
2131
|
14091 if { (eval echo configure:14092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
14092 rm -rf conftest*
|
|
14093 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14094 Defining HAVE_MULTICAST
|
|
14095 EOF
|
|
14096 cat >> confdefs.h <<\EOF
|
|
14097 #define HAVE_MULTICAST 1
|
|
14098 EOF
|
|
14099 }
|
|
14100
|
|
14101 else
|
|
14102 echo "configure: failed program was:" >&5
|
|
14103 cat conftest.$ac_ext >&5
|
|
14104 rm -rf conftest*
|
|
14105 echo "$ac_t""no" 1>&6
|
|
14106 fi
|
|
14107 rm -f conftest*
|
149
|
14108 else
|
|
14109 echo "$ac_t""no" 1>&6
|
|
14110 fi
|
|
14111
|
|
14112 else
|
|
14113 echo "$ac_t""no" 1>&6
|
|
14114 fi
|
|
14115
|
|
14116 else
|
|
14117 echo "$ac_t""no" 1>&6
|
|
14118 fi
|
|
14119
|
|
14120
|
|
14121 echo $ac_n "checking for msgget""... $ac_c" 1>&6
|
2131
|
14122 echo "configure:14123: checking for msgget" >&5
|
|
14123
|
|
14124 cat > conftest.$ac_ext <<EOF
|
|
14125 #line 14126 "configure"
|
149
|
14126 #include "confdefs.h"
|
|
14127 /* System header to define __stub macros and hopefully few prototypes,
|
|
14128 which can conflict with char msgget(); below. */
|
|
14129 #include <assert.h>
|
|
14130 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14131 /* We use char because int might match the return type of a gcc2
|
|
14132 builtin and then its argument prototype would still apply. */
|
|
14133 char msgget();
|
|
14134
|
|
14135 int main() {
|
|
14136
|
0
|
14137 /* The GNU C library defines this for functions which it implements
|
|
14138 to always fail with ENOSYS. Some functions are actually named
|
|
14139 something starting with __ and the normal name is an alias. */
|
|
14140 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
14141 choke me
|
|
14142 #else
|
149
|
14143 msgget();
|
0
|
14144 #endif
|
149
|
14145
|
0
|
14146 ; return 0; }
|
|
14147 EOF
|
2131
|
14148 if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14149 rm -rf conftest*
|
|
14150 eval "ac_cv_func_msgget=yes"
|
|
14151 else
|
|
14152 echo "configure: failed program was:" >&5
|
|
14153 cat conftest.$ac_ext >&5
|
|
14154 rm -rf conftest*
|
|
14155 eval "ac_cv_func_msgget=no"
|
|
14156 fi
|
|
14157 rm -f conftest*
|
|
14158
|
|
14159 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
|
|
14160 echo "$ac_t""yes" 1>&6
|
|
14161 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
|
|
14162 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
|
2131
|
14163 echo "configure:14164: checking for sys/ipc.h" >&5
|
|
14164
|
|
14165 cat > conftest.$ac_ext <<EOF
|
|
14166 #line 14167 "configure"
|
0
|
14167 #include "confdefs.h"
|
|
14168 #include <sys/ipc.h>
|
|
14169 EOF
|
149
|
14170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
14171 { (eval echo configure:14172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14173 if test -z "$ac_err"; then
|
149
|
14174 rm -rf conftest*
|
|
14175 eval "ac_cv_header_$ac_safe=yes"
|
|
14176 else
|
|
14177 echo "$ac_err" >&5
|
|
14178 echo "configure: failed program was:" >&5
|
|
14179 cat conftest.$ac_ext >&5
|
|
14180 rm -rf conftest*
|
|
14181 eval "ac_cv_header_$ac_safe=no"
|
|
14182 fi
|
|
14183 rm -f conftest*
|
|
14184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14185 echo "$ac_t""yes" 1>&6
|
|
14186 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
|
|
14187 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
|
2131
|
14188 echo "configure:14189: checking for sys/msg.h" >&5
|
|
14189
|
|
14190 cat > conftest.$ac_ext <<EOF
|
|
14191 #line 14192 "configure"
|
0
|
14192 #include "confdefs.h"
|
|
14193 #include <sys/msg.h>
|
|
14194 EOF
|
149
|
14195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
14196 { (eval echo configure:14197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14198 if test -z "$ac_err"; then
|
149
|
14199 rm -rf conftest*
|
|
14200 eval "ac_cv_header_$ac_safe=yes"
|
|
14201 else
|
|
14202 echo "$ac_err" >&5
|
|
14203 echo "configure: failed program was:" >&5
|
|
14204 cat conftest.$ac_ext >&5
|
|
14205 rm -rf conftest*
|
|
14206 eval "ac_cv_header_$ac_safe=no"
|
|
14207 fi
|
|
14208 rm -f conftest*
|
|
14209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14210 echo "$ac_t""yes" 1>&6
|
|
14211 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14212 Defining HAVE_SYSVIPC
|
|
14213 EOF
|
|
14214 cat >> confdefs.h <<\EOF
|
|
14215 #define HAVE_SYSVIPC 1
|
|
14216 EOF
|
|
14217 }
|
|
14218
|
|
14219 else
|
|
14220 echo "$ac_t""no" 1>&6
|
|
14221 fi
|
|
14222
|
|
14223 else
|
|
14224 echo "$ac_t""no" 1>&6
|
|
14225 fi
|
|
14226
|
|
14227 else
|
|
14228 echo "$ac_t""no" 1>&6
|
|
14229 fi
|
|
14230
|
|
14231
|
|
14232 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
|
|
14233 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
|
2131
|
14234 echo "configure:14235: checking for dirent.h" >&5
|
|
14235
|
|
14236 cat > conftest.$ac_ext <<EOF
|
|
14237 #line 14238 "configure"
|
0
|
14238 #include "confdefs.h"
|
|
14239 #include <dirent.h>
|
|
14240 EOF
|
149
|
14241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
14242 { (eval echo configure:14243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14244 if test -z "$ac_err"; then
|
|
14245 rm -rf conftest*
|
149
|
14246 eval "ac_cv_header_$ac_safe=yes"
|
|
14247 else
|
|
14248 echo "$ac_err" >&5
|
|
14249 echo "configure: failed program was:" >&5
|
|
14250 cat conftest.$ac_ext >&5
|
|
14251 rm -rf conftest*
|
|
14252 eval "ac_cv_header_$ac_safe=no"
|
|
14253 fi
|
|
14254 rm -f conftest*
|
|
14255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14256 echo "$ac_t""yes" 1>&6
|
|
14257 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14258 Defining SYSV_SYSTEM_DIR
|
|
14259 EOF
|
|
14260 cat >> confdefs.h <<\EOF
|
|
14261 #define SYSV_SYSTEM_DIR 1
|
|
14262 EOF
|
|
14263 }
|
|
14264
|
|
14265 else
|
|
14266 echo "$ac_t""no" 1>&6
|
|
14267 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
|
|
14268 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
|
2131
|
14269 echo "configure:14270: checking for sys/dir.h" >&5
|
|
14270
|
|
14271 cat > conftest.$ac_ext <<EOF
|
|
14272 #line 14273 "configure"
|
0
|
14273 #include "confdefs.h"
|
|
14274 #include <sys/dir.h>
|
|
14275 EOF
|
149
|
14276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
14277 { (eval echo configure:14278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14279 if test -z "$ac_err"; then
|
149
|
14280 rm -rf conftest*
|
|
14281 eval "ac_cv_header_$ac_safe=yes"
|
|
14282 else
|
|
14283 echo "$ac_err" >&5
|
|
14284 echo "configure: failed program was:" >&5
|
|
14285 cat conftest.$ac_ext >&5
|
|
14286 rm -rf conftest*
|
|
14287 eval "ac_cv_header_$ac_safe=no"
|
|
14288 fi
|
|
14289 rm -f conftest*
|
|
14290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14291 echo "$ac_t""yes" 1>&6
|
0
|
14292 :
|
|
14293 else
|
149
|
14294 echo "$ac_t""no" 1>&6
|
|
14295 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14296 Defining NONSYSTEM_DIR_LIBRARY
|
|
14297 EOF
|
|
14298 cat >> confdefs.h <<\EOF
|
|
14299 #define NONSYSTEM_DIR_LIBRARY 1
|
|
14300 EOF
|
|
14301 }
|
|
14302
|
|
14303 fi
|
|
14304
|
|
14305 fi
|
|
14306
|
|
14307
|
|
14308 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
|
|
14309 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
|
2131
|
14310 echo "configure:14311: checking for nlist.h" >&5
|
|
14311
|
|
14312 cat > conftest.$ac_ext <<EOF
|
|
14313 #line 14314 "configure"
|
0
|
14314 #include "confdefs.h"
|
|
14315 #include <nlist.h>
|
|
14316 EOF
|
149
|
14317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
14318 { (eval echo configure:14319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14320 if test -z "$ac_err"; then
|
|
14321 rm -rf conftest*
|
149
|
14322 eval "ac_cv_header_$ac_safe=yes"
|
|
14323 else
|
|
14324 echo "$ac_err" >&5
|
|
14325 echo "configure: failed program was:" >&5
|
|
14326 cat conftest.$ac_ext >&5
|
|
14327 rm -rf conftest*
|
|
14328 eval "ac_cv_header_$ac_safe=no"
|
|
14329 fi
|
|
14330 rm -f conftest*
|
|
14331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14332 echo "$ac_t""yes" 1>&6
|
|
14333 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14334 Defining NLIST_STRUCT
|
|
14335 EOF
|
|
14336 cat >> confdefs.h <<\EOF
|
|
14337 #define NLIST_STRUCT 1
|
|
14338 EOF
|
|
14339 }
|
|
14340
|
|
14341 else
|
|
14342 echo "$ac_t""no" 1>&6
|
|
14343 fi
|
|
14344
|
|
14345
|
0
|
14346
|
149
|
14347 echo "checking "for sound support"" 1>&6
|
2131
|
14348 echo "configure:14349: checking "for sound support"" >&5
|
155
|
14349 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
|
|
14350
|
149
|
14351 if test "$with_native_sound" != "no"; then
|
155
|
14352 if test -n "$native_sound_lib"; then
|
|
14353 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
|
|
14354 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
|
2131
|
14355 echo "configure:14356: checking for multimedia/audio_device.h" >&5
|
|
14356
|
|
14357 cat > conftest.$ac_ext <<EOF
|
|
14358 #line 14359 "configure"
|
155
|
14359 #include "confdefs.h"
|
|
14360 #include <multimedia/audio_device.h>
|
|
14361 EOF
|
|
14362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
14363 { (eval echo configure:14364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
14365 if test -z "$ac_err"; then
|
|
14366 rm -rf conftest*
|
|
14367 eval "ac_cv_header_$ac_safe=yes"
|
|
14368 else
|
|
14369 echo "$ac_err" >&5
|
|
14370 echo "configure: failed program was:" >&5
|
|
14371 cat conftest.$ac_ext >&5
|
|
14372 rm -rf conftest*
|
|
14373 eval "ac_cv_header_$ac_safe=no"
|
|
14374 fi
|
|
14375 rm -f conftest*
|
|
14376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14377 echo "$ac_t""yes" 1>&6
|
|
14378 sound_found=yes sound_cflags=""
|
|
14379 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14380 echo " xemacs will be linked with \"sunplay.o\""
|
|
14381 fi
|
|
14382 else
|
|
14383 echo "$ac_t""no" 1>&6
|
|
14384 fi
|
|
14385
|
|
14386 fi
|
|
14387
|
|
14388 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
|
1696
|
14389 if test -d "/usr/demo/SOUND/include/multimedia"; then
|
|
14390 sun_sound_cflags="-I/usr/demo/SOUND/include"
|
|
14391 elif test -d "/usr/demo/SOUND/multimedia"; then
|
|
14392 sun_sound_cflags="-I/usr/demo/SOUND"
|
|
14393 fi
|
|
14394
|
|
14395 if test -n "$native_sound_lib"; then
|
|
14396 sun_sound_lib="$native_sound_lib"
|
|
14397 elif test -r "/usr/demo/SOUND/lib/libaudio.a"; then
|
|
14398 sun_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
|
|
14399 elif test -r "/usr/demo/SOUND/libaudio.a"; then
|
|
14400 sun_sound_lib="/usr/demo/SOUND/libaudio.a"
|
|
14401 fi
|
|
14402
|
|
14403 if test -n "$sun_sound_cflags" -a -n "$sun_sound_lib"; then
|
|
14404 native_sound_lib="$sun_sound_lib"
|
|
14405 sound_cflags="$sun_sound_cflags"
|
|
14406 sound_found=yes
|
|
14407 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
151
|
14408 echo " xemacs will be linked with \"sunplay.o\""
|
|
14409 fi
|
149
|
14410 fi
|
155
|
14411 fi
|
|
14412
|
|
14413 if test -z "$sound_found"; then
|
|
14414 case "$canonical" in
|
149
|
14415 *-sgi-* )
|
155
|
14416 if test -z "$native_sound_lib"; then
|
|
14417
|
149
|
14418 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
|
2131
|
14419 echo "configure:14420: checking for ALopenport in -laudio" >&5
|
149
|
14420 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
|
|
14421
|
|
14422 xe_check_libs=" -laudio "
|
|
14423 cat > conftest.$ac_ext <<EOF
|
2131
|
14424 #line 14425 "configure"
|
149
|
14425 #include "confdefs.h"
|
|
14426 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14427 /* We use char because int might match the return type of a gcc2
|
|
14428 builtin and then its argument prototype would still apply. */
|
|
14429 char ALopenport();
|
|
14430
|
|
14431 int main() {
|
|
14432 ALopenport()
|
|
14433 ; return 0; }
|
|
14434 EOF
|
2131
|
14435 if { (eval echo configure:14436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14436 rm -rf conftest*
|
|
14437 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14438 else
|
|
14439 echo "configure: failed program was:" >&5
|
|
14440 cat conftest.$ac_ext >&5
|
|
14441 rm -rf conftest*
|
|
14442 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14443 fi
|
|
14444 rm -f conftest*
|
|
14445 xe_check_libs=""
|
|
14446
|
151
|
14447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14448 echo "$ac_t""yes" 1>&6
|
|
14449 native_sound_lib="-laudio"
|
|
14450 else
|
|
14451 echo "$ac_t""no" 1>&6
|
|
14452 fi
|
|
14453
|
|
14454
|
155
|
14455 fi
|
|
14456 if test -n "$native_sound_lib"; then
|
|
14457 sound_found=yes sound_cflags=""
|
151
|
14458 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14459 echo " xemacs will be linked with \"sgiplay.o\""
|
|
14460 fi
|
149
|
14461 fi ;;
|
|
14462 hppa*-hp-hpux* )
|
155
|
14463 if test -z "$native_sound_lib"; then
|
|
14464
|
149
|
14465 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
|
2131
|
14466 echo "configure:14467: checking for AOpenAudio in -lAlib" >&5
|
149
|
14467 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
|
|
14468
|
|
14469 xe_check_libs=" -lAlib "
|
|
14470 cat > conftest.$ac_ext <<EOF
|
2131
|
14471 #line 14472 "configure"
|
149
|
14472 #include "confdefs.h"
|
|
14473 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14474 /* We use char because int might match the return type of a gcc2
|
|
14475 builtin and then its argument prototype would still apply. */
|
|
14476 char AOpenAudio();
|
|
14477
|
|
14478 int main() {
|
|
14479 AOpenAudio()
|
|
14480 ; return 0; }
|
|
14481 EOF
|
2131
|
14482 if { (eval echo configure:14483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14483 rm -rf conftest*
|
|
14484 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14485 else
|
|
14486 echo "configure: failed program was:" >&5
|
|
14487 cat conftest.$ac_ext >&5
|
|
14488 rm -rf conftest*
|
|
14489 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14490 fi
|
|
14491 rm -f conftest*
|
|
14492 xe_check_libs=""
|
|
14493
|
151
|
14494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14495 echo "$ac_t""yes" 1>&6
|
|
14496 native_sound_lib="-lAlib"
|
|
14497 else
|
|
14498 echo "$ac_t""no" 1>&6
|
|
14499 fi
|
|
14500
|
|
14501
|
155
|
14502 fi
|
|
14503 if test -n "$native_sound_lib"; then
|
|
14504 sound_found=yes
|
151
|
14505 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14506 echo " xemacs will be linked with \"hpplay.o\""
|
|
14507 fi
|
169
|
14508 if test "$GCC" = "yes" # Kludge city
|
149
|
14509 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
|
|
14510 else sound_cflags="+e -I/usr/audio/examples"
|
|
14511 fi
|
|
14512 fi ;;
|
0
|
14513 esac
|
|
14514 fi
|
149
|
14515
|
155
|
14516 if test -z "$sound_found"; then
|
553
|
14517 if test "$with_msw" = "yes"; then
|
594
|
14518 sound_found=yes
|
|
14519 native_sound_lib=
|
|
14520 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14521 echo " xemacs will be linked with \"ntplay.o\""
|
|
14522 fi
|
553
|
14523 fi
|
|
14524 fi
|
|
14525
|
|
14526 if test -z "$sound_found"; then
|
149
|
14527 for dir in "machine" "sys" "linux"; do
|
|
14528 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
|
|
14529 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
|
2131
|
14530 echo "configure:14531: checking for ${dir}/soundcard.h" >&5
|
|
14531
|
|
14532 cat > conftest.$ac_ext <<EOF
|
|
14533 #line 14534 "configure"
|
149
|
14534 #include "confdefs.h"
|
|
14535 #include <${dir}/soundcard.h>
|
|
14536 EOF
|
|
14537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
14538 { (eval echo configure:14539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
14540 if test -z "$ac_err"; then
|
|
14541 rm -rf conftest*
|
|
14542 eval "ac_cv_header_$ac_safe=yes"
|
|
14543 else
|
|
14544 echo "$ac_err" >&5
|
|
14545 echo "configure: failed program was:" >&5
|
|
14546 cat conftest.$ac_ext >&5
|
|
14547 rm -rf conftest*
|
|
14548 eval "ac_cv_header_$ac_safe=no"
|
|
14549 fi
|
|
14550 rm -f conftest*
|
|
14551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14552 echo "$ac_t""yes" 1>&6
|
|
14553 sound_found=yes
|
426
|
14554 need_miscplay=yes
|
151
|
14555 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14556 echo " xemacs will be linked with \"linuxplay.o\""
|
|
14557 fi
|
149
|
14558 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
14559 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
|
|
14560 EOF
|
|
14561 cat >> confdefs.h <<EOF
|
|
14562 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
|
149
|
14563 EOF
|
|
14564 }
|
|
14565
|
|
14566 break
|
|
14567 else
|
|
14568 echo "$ac_t""no" 1>&6
|
|
14569 fi
|
|
14570
|
|
14571 done
|
100
|
14572 fi
|
149
|
14573
|
|
14574 test "$sound_found" = "yes" && with_native_sound=yes
|
|
14575 fi
|
|
14576
|
|
14577 if test "$with_native_sound" = "yes"; then
|
|
14578 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14579 Defining HAVE_NATIVE_SOUND
|
|
14580 EOF
|
|
14581 cat >> confdefs.h <<\EOF
|
|
14582 #define HAVE_NATIVE_SOUND 1
|
|
14583 EOF
|
|
14584 }
|
|
14585
|
151
|
14586 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
|
14587 fi
|
|
14588
|
432
|
14589 if test "$with_nas_sound" != "no"; then
|
|
14590 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
|
|
14591 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
|
2131
|
14592 echo "configure:14593: checking for audio/audiolib.h" >&5
|
|
14593
|
|
14594 cat > conftest.$ac_ext <<EOF
|
|
14595 #line 14596 "configure"
|
432
|
14596 #include "confdefs.h"
|
|
14597 #include <audio/audiolib.h>
|
|
14598 EOF
|
|
14599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
14600 { (eval echo configure:14601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
432
|
14601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
14602 if test -z "$ac_err"; then
|
|
14603 rm -rf conftest*
|
|
14604 eval "ac_cv_header_$ac_safe=yes"
|
|
14605 else
|
|
14606 echo "$ac_err" >&5
|
|
14607 echo "configure: failed program was:" >&5
|
|
14608 cat conftest.$ac_ext >&5
|
|
14609 rm -rf conftest*
|
|
14610 eval "ac_cv_header_$ac_safe=no"
|
|
14611 fi
|
|
14612 rm -f conftest*
|
|
14613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14614 echo "$ac_t""yes" 1>&6
|
|
14615
|
|
14616
|
|
14617 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
|
2131
|
14618 echo "configure:14619: checking for AuOpenServer in -laudio" >&5
|
432
|
14619 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
|
|
14620
|
|
14621 xe_check_libs=" -laudio "
|
|
14622 cat > conftest.$ac_ext <<EOF
|
2131
|
14623 #line 14624 "configure"
|
432
|
14624 #include "confdefs.h"
|
|
14625 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14626 /* We use char because int might match the return type of a gcc2
|
|
14627 builtin and then its argument prototype would still apply. */
|
|
14628 char AuOpenServer();
|
|
14629
|
|
14630 int main() {
|
|
14631 AuOpenServer()
|
|
14632 ; return 0; }
|
|
14633 EOF
|
2131
|
14634 if { (eval echo configure:14635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
432
|
14635 rm -rf conftest*
|
|
14636 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14637 else
|
|
14638 echo "configure: failed program was:" >&5
|
|
14639 cat conftest.$ac_ext >&5
|
|
14640 rm -rf conftest*
|
|
14641 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14642 fi
|
|
14643 rm -f conftest*
|
|
14644 xe_check_libs=""
|
|
14645
|
|
14646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14647 echo "$ac_t""yes" 1>&6
|
|
14648 have_nas_sound=yes
|
|
14649 else
|
|
14650 echo "$ac_t""no" 1>&6
|
|
14651 fi
|
|
14652
|
|
14653
|
|
14654 else
|
|
14655 echo "$ac_t""no" 1>&6
|
|
14656 fi
|
|
14657
|
|
14658 if test "$have_nas_sound" = "yes"; then
|
|
14659 with_nas_sound=yes
|
|
14660 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
14661 Defining HAVE_NAS_SOUND
|
|
14662 EOF
|
|
14663 cat >> confdefs.h <<\EOF
|
|
14664 #define HAVE_NAS_SOUND 1
|
|
14665 EOF
|
|
14666 }
|
|
14667
|
432
|
14668 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
|
151
|
14669 echo " xemacs will be linked with \"nas.o\""
|
|
14670 fi
|
432
|
14671 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
|
|
14672 cat > conftest.$ac_ext <<EOF
|
2131
|
14673 #line 14674 "configure"
|
149
|
14674 #include "confdefs.h"
|
|
14675 #include <audio/Xtutil.h>
|
|
14676 EOF
|
|
14677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
14678 egrep "AuXtErrorJump" >/dev/null 2>&1; then
|
|
14679 :
|
|
14680 else
|
|
14681 rm -rf conftest*
|
432
|
14682 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
14683 Defining NAS_NO_ERROR_JUMP
|
|
14684 EOF
|
|
14685 cat >> confdefs.h <<\EOF
|
|
14686 #define NAS_NO_ERROR_JUMP 1
|
|
14687 EOF
|
|
14688 }
|
|
14689
|
|
14690 fi
|
|
14691 rm -f conftest*
|
|
14692
|
432
|
14693 else
|
|
14694 test "$with_nas_sound" = "yes" && \
|
|
14695 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
|
|
14696 with_nas_sound=no
|
|
14697 fi
|
|
14698 fi
|
|
14699
|
1464
|
14700 if test "$with_esd_sound" != "no"; then
|
432
|
14701 # Extract the first word of "esd-config", so it can be a program name with args.
|
426
|
14702 set dummy esd-config; ac_word=$2
|
|
14703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2131
|
14704 echo "configure:14705: checking for $ac_word" >&5
|
426
|
14705
|
|
14706 if test -n "$have_esd_config"; then
|
|
14707 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
|
|
14708 else
|
|
14709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
14710 ac_dummy="$PATH"
|
|
14711 for ac_dir in $ac_dummy; do
|
|
14712 test -z "$ac_dir" && ac_dir=.
|
|
14713 if test -f $ac_dir/$ac_word; then
|
|
14714 ac_cv_prog_have_esd_config="yes"
|
|
14715 break
|
|
14716 fi
|
|
14717 done
|
|
14718 IFS="$ac_save_ifs"
|
|
14719 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
|
|
14720 fi
|
|
14721 have_esd_config="$ac_cv_prog_have_esd_config"
|
|
14722 if test -n "$have_esd_config"; then
|
|
14723 echo "$ac_t""$have_esd_config" 1>&6
|
|
14724 else
|
|
14725 echo "$ac_t""no" 1>&6
|
|
14726 fi
|
|
14727
|
432
|
14728 if test "$have_esd_config" = "yes"; then
|
|
14729 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
|
|
14730 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
|
|
14731 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
|
|
14732 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
|
2131
|
14733 echo "configure:14734: checking for esd_play_stream" >&5
|
|
14734
|
|
14735 cat > conftest.$ac_ext <<EOF
|
|
14736 #line 14737 "configure"
|
432
|
14737 #include "confdefs.h"
|
|
14738 /* System header to define __stub macros and hopefully few prototypes,
|
|
14739 which can conflict with char esd_play_stream(); below. */
|
|
14740 #include <assert.h>
|
|
14741 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14742 /* We use char because int might match the return type of a gcc2
|
|
14743 builtin and then its argument prototype would still apply. */
|
|
14744 char esd_play_stream();
|
|
14745
|
|
14746 int main() {
|
|
14747
|
|
14748 /* The GNU C library defines this for functions which it implements
|
|
14749 to always fail with ENOSYS. Some functions are actually named
|
|
14750 something starting with __ and the normal name is an alias. */
|
|
14751 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
|
|
14752 choke me
|
|
14753 #else
|
|
14754 esd_play_stream();
|
|
14755 #endif
|
|
14756
|
|
14757 ; return 0; }
|
|
14758 EOF
|
2131
|
14759 if { (eval echo configure:14760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
432
|
14760 rm -rf conftest*
|
|
14761 eval "ac_cv_func_esd_play_stream=yes"
|
|
14762 else
|
|
14763 echo "configure: failed program was:" >&5
|
|
14764 cat conftest.$ac_ext >&5
|
|
14765 rm -rf conftest*
|
|
14766 eval "ac_cv_func_esd_play_stream=no"
|
|
14767 fi
|
|
14768 rm -f conftest*
|
|
14769
|
|
14770 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
|
|
14771 echo "$ac_t""yes" 1>&6
|
|
14772 have_esd_sound=yes
|
|
14773 else
|
|
14774 echo "$ac_t""no" 1>&6
|
|
14775 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
|
|
14776 fi
|
|
14777
|
|
14778 fi
|
|
14779
|
|
14780 if test "$have_esd_sound" = "yes"; then
|
|
14781 with_esd_sound=yes
|
|
14782 need_miscplay=yes
|
|
14783 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
|
|
14784 echo " xemacs will be linked with \"esd.o\""
|
|
14785 fi
|
426
|
14786 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14787 Defining HAVE_ESD_SOUND
|
|
14788 EOF
|
|
14789 cat >> confdefs.h <<\EOF
|
|
14790 #define HAVE_ESD_SOUND 1
|
|
14791 EOF
|
|
14792 }
|
|
14793
|
432
|
14794 else
|
|
14795 test "$with_esd_sound" = "yes" && \
|
|
14796 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
|
|
14797 with_esd_sound=no
|
|
14798 fi
|
|
14799 fi
|
|
14800
|
|
14801 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
|
426
|
14802 echo " xemacs will be linked with \"miscplay.o\""
|
|
14803 fi
|
149
|
14804
|
|
14805
|
|
14806 test -z "$with_tty" && with_tty=yes
|
|
14807
|
|
14808 if test "$with_tty" = "yes" ; then
|
151
|
14809 echo "checking for TTY-related features" 1>&6
|
2131
|
14810 echo "configure:14811: checking for TTY-related features" >&5
|
149
|
14811 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14812 Defining HAVE_TTY
|
|
14813 EOF
|
|
14814 cat >> confdefs.h <<\EOF
|
|
14815 #define HAVE_TTY 1
|
|
14816 EOF
|
|
14817 }
|
|
14818
|
|
14819
|
|
14820 if test -z "$with_ncurses"; then
|
70
|
14821
|
151
|
14822 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
|
2131
|
14823 echo "configure:14824: checking for tgetent in -lncurses" >&5
|
151
|
14824 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
|
149
|
14825
|
|
14826 xe_check_libs=" -lncurses "
|
|
14827 cat > conftest.$ac_ext <<EOF
|
2131
|
14828 #line 14829 "configure"
|
149
|
14829 #include "confdefs.h"
|
|
14830 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14831 /* We use char because int might match the return type of a gcc2
|
|
14832 builtin and then its argument prototype would still apply. */
|
151
|
14833 char tgetent();
|
149
|
14834
|
|
14835 int main() {
|
151
|
14836 tgetent()
|
149
|
14837 ; return 0; }
|
|
14838 EOF
|
2131
|
14839 if { (eval echo configure:14840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14840 rm -rf conftest*
|
|
14841 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14842 else
|
|
14843 echo "configure: failed program was:" >&5
|
|
14844 cat conftest.$ac_ext >&5
|
|
14845 rm -rf conftest*
|
|
14846 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14847 fi
|
|
14848 rm -f conftest*
|
|
14849 xe_check_libs=""
|
|
14850
|
151
|
14851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14852 echo "$ac_t""yes" 1>&6
|
|
14853 with_ncurses=yes
|
|
14854 else
|
|
14855 echo "$ac_t""no" 1>&6
|
|
14856 with_ncurses=no
|
|
14857 fi
|
|
14858
|
|
14859
|
|
14860 fi
|
|
14861 if test "$with_ncurses" = "yes"; then
|
|
14862 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14863 Defining HAVE_NCURSES
|
|
14864 EOF
|
|
14865 cat >> confdefs.h <<\EOF
|
|
14866 #define HAVE_NCURSES 1
|
|
14867 EOF
|
|
14868 }
|
|
14869
|
|
14870 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
14871 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
2131
|
14872 echo "configure:14873: checking for ncurses/curses.h" >&5
|
|
14873
|
|
14874 cat > conftest.$ac_ext <<EOF
|
|
14875 #line 14876 "configure"
|
149
|
14876 #include "confdefs.h"
|
|
14877 #include <ncurses/curses.h>
|
|
14878 EOF
|
|
14879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
14880 { (eval echo configure:14881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
14882 if test -z "$ac_err"; then
|
|
14883 rm -rf conftest*
|
|
14884 eval "ac_cv_header_$ac_safe=yes"
|
|
14885 else
|
|
14886 echo "$ac_err" >&5
|
|
14887 echo "configure: failed program was:" >&5
|
|
14888 cat conftest.$ac_ext >&5
|
|
14889 rm -rf conftest*
|
|
14890 eval "ac_cv_header_$ac_safe=no"
|
|
14891 fi
|
|
14892 rm -f conftest*
|
|
14893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14894 echo "$ac_t""yes" 1>&6
|
442
|
14895 curses_h_file=ncurses/curses.h
|
149
|
14896 else
|
|
14897 echo "$ac_t""no" 1>&6
|
|
14898 fi
|
|
14899
|
|
14900 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
|
|
14901 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
|
2131
|
14902 echo "configure:14903: checking for ncurses/term.h" >&5
|
|
14903
|
|
14904 cat > conftest.$ac_ext <<EOF
|
|
14905 #line 14906 "configure"
|
0
|
14906 #include "confdefs.h"
|
|
14907 #include <ncurses/term.h>
|
|
14908 EOF
|
149
|
14909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
14910 { (eval echo configure:14911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14912 if test -z "$ac_err"; then
|
|
14913 rm -rf conftest*
|
149
|
14914 eval "ac_cv_header_$ac_safe=yes"
|
|
14915 else
|
|
14916 echo "$ac_err" >&5
|
|
14917 echo "configure: failed program was:" >&5
|
|
14918 cat conftest.$ac_ext >&5
|
|
14919 rm -rf conftest*
|
|
14920 eval "ac_cv_header_$ac_safe=no"
|
|
14921 fi
|
|
14922 rm -f conftest*
|
|
14923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14924 echo "$ac_t""yes" 1>&6
|
442
|
14925 term_h_file=ncurses/term.h
|
149
|
14926 else
|
|
14927 echo "$ac_t""no" 1>&6
|
|
14928 fi
|
|
14929
|
151
|
14930 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
14931 echo " xemacs will be linked with \"terminfo.o\""
|
|
14932 fi
|
|
14933 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
|
149
|
14934
|
153
|
14935 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
|
149
|
14936 save_c_switch_site="$c_switch_site"
|
|
14937 c_switch_site="$c_switch_site -I/usr/include/ncurses"
|
|
14938 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
14939 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
2131
|
14940 echo "configure:14941: checking for ncurses/curses.h" >&5
|
|
14941
|
|
14942 cat > conftest.$ac_ext <<EOF
|
|
14943 #line 14944 "configure"
|
0
|
14944 #include "confdefs.h"
|
|
14945 #include <ncurses/curses.h>
|
|
14946 EOF
|
149
|
14947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
14948 { (eval echo configure:14949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14950 if test -z "$ac_err"; then
|
|
14951 rm -rf conftest*
|
149
|
14952 eval "ac_cv_header_$ac_safe=yes"
|
|
14953 else
|
|
14954 echo "$ac_err" >&5
|
|
14955 echo "configure: failed program was:" >&5
|
|
14956 cat conftest.$ac_ext >&5
|
|
14957 rm -rf conftest*
|
|
14958 eval "ac_cv_header_$ac_safe=no"
|
|
14959 fi
|
|
14960 rm -f conftest*
|
|
14961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14962 echo "$ac_t""yes" 1>&6
|
442
|
14963 curses_h_file=ncurses/curses.h
|
149
|
14964 else
|
|
14965 echo "$ac_t""no" 1>&6
|
|
14966 fi
|
|
14967
|
153
|
14968 if test "$ac_cv_header_ncurses_curses_h" = "yes"
|
561
|
14969 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2
|
149
|
14970 else c_switch_site="$save_c_switch_site"
|
|
14971 fi
|
|
14972 fi
|
151
|
14973 else if test "$have_terminfo" = "yes"; then
|
|
14974 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
14975 echo " xemacs will be linked with \"terminfo.o\""
|
|
14976 fi
|
|
14977 if test -n "$libs_termcap"; then
|
|
14978 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
14979 else
|
|
14980 for lib in curses termlib termcap; do
|
|
14981
|
|
14982 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
|
2131
|
14983 echo "configure:14984: checking for tgetent in -l$lib" >&5
|
151
|
14984 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
|
|
14985
|
|
14986 xe_check_libs=" -l$lib "
|
|
14987 cat > conftest.$ac_ext <<EOF
|
2131
|
14988 #line 14989 "configure"
|
149
|
14989 #include "confdefs.h"
|
|
14990 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14991 /* We use char because int might match the return type of a gcc2
|
|
14992 builtin and then its argument prototype would still apply. */
|
151
|
14993 char tgetent();
|
149
|
14994
|
|
14995 int main() {
|
151
|
14996 tgetent()
|
149
|
14997 ; return 0; }
|
|
14998 EOF
|
2131
|
14999 if { (eval echo configure:15000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15000 rm -rf conftest*
|
|
15001 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15002 else
|
|
15003 echo "configure: failed program was:" >&5
|
|
15004 cat conftest.$ac_ext >&5
|
|
15005 rm -rf conftest*
|
|
15006 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15007 fi
|
|
15008 rm -f conftest*
|
|
15009 xe_check_libs=""
|
|
15010
|
151
|
15011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15012 echo "$ac_t""yes" 1>&6
|
|
15013 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
|
|
15014 else
|
|
15015 echo "$ac_t""no" 1>&6
|
|
15016 fi
|
|
15017
|
|
15018
|
|
15019 done
|
|
15020 fi
|
|
15021 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
|
|
15022 echo " xemacs will be linked with \"tparam.o\""
|
|
15023 fi
|
|
15024 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
|
|
15025 if test -n "$libs_termcap"; then
|
|
15026 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
15027 else
|
|
15028
|
|
15029 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
|
2131
|
15030 echo "configure:15031: checking for tgetent in -lcurses" >&5
|
151
|
15031 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
15032
|
|
15033 xe_check_libs=" -lcurses "
|
|
15034 cat > conftest.$ac_ext <<EOF
|
2131
|
15035 #line 15036 "configure"
|
149
|
15036 #include "confdefs.h"
|
|
15037 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15038 /* We use char because int might match the return type of a gcc2
|
|
15039 builtin and then its argument prototype would still apply. */
|
151
|
15040 char tgetent();
|
149
|
15041
|
|
15042 int main() {
|
151
|
15043 tgetent()
|
149
|
15044 ; return 0; }
|
|
15045 EOF
|
2131
|
15046 if { (eval echo configure:15047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15047 rm -rf conftest*
|
|
15048 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15049 else
|
|
15050 echo "configure: failed program was:" >&5
|
|
15051 cat conftest.$ac_ext >&5
|
|
15052 rm -rf conftest*
|
|
15053 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15054 fi
|
|
15055 rm -f conftest*
|
|
15056 xe_check_libs=""
|
|
15057
|
151
|
15058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15059 echo "$ac_t""yes" 1>&6
|
|
15060 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
|
|
15061 else
|
|
15062 echo "$ac_t""no" 1>&6
|
|
15063 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
2131
|
15064 echo "configure:15065: checking for tgetent in -ltermcap" >&5
|
151
|
15065 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
|
15066
|
|
15067 xe_check_libs=" -ltermcap "
|
|
15068 cat > conftest.$ac_ext <<EOF
|
2131
|
15069 #line 15070 "configure"
|
149
|
15070 #include "confdefs.h"
|
|
15071 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15072 /* We use char because int might match the return type of a gcc2
|
|
15073 builtin and then its argument prototype would still apply. */
|
151
|
15074 char tgetent();
|
149
|
15075
|
|
15076 int main() {
|
151
|
15077 tgetent()
|
149
|
15078 ; return 0; }
|
|
15079 EOF
|
2131
|
15080 if { (eval echo configure:15081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15081 rm -rf conftest*
|
|
15082 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15083 else
|
|
15084 echo "configure: failed program was:" >&5
|
|
15085 cat conftest.$ac_ext >&5
|
|
15086 rm -rf conftest*
|
|
15087 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15088 fi
|
|
15089 rm -f conftest*
|
|
15090 xe_check_libs=""
|
|
15091
|
151
|
15092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15093 echo "$ac_t""yes" 1>&6
|
|
15094 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
|
|
15095 else
|
|
15096 echo "$ac_t""no" 1>&6
|
|
15097 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
|
|
15098 echo " xemacs will be linked with \"termcap.o\""
|
|
15099 fi
|
|
15100 fi
|
|
15101
|
|
15102
|
|
15103 fi
|
|
15104
|
|
15105
|
0
|
15106 fi
|
|
15107 fi
|
149
|
15108 fi
|
|
15109 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
15110 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
|
|
15111 EOF
|
|
15112 cat >> confdefs.h <<EOF
|
|
15113 #define CURSES_H_FILE "${curses_h_file-curses.h}"
|
149
|
15114 EOF
|
|
15115 }
|
|
15116
|
|
15117 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
15118 Defining TERM_H_FILE = "${term_h_file-term.h}"
|
|
15119 EOF
|
|
15120 cat >> confdefs.h <<EOF
|
|
15121 #define TERM_H_FILE "${term_h_file-term.h}"
|
149
|
15122 EOF
|
|
15123 }
|
|
15124
|
155
|
15125
|
2131
|
15126 if test "$with_gpm" != "no"; then
|
|
15127 ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
|
155
|
15128 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
|
2131
|
15129 echo "configure:15130: checking for gpm.h" >&5
|
|
15130
|
|
15131 cat > conftest.$ac_ext <<EOF
|
|
15132 #line 15133 "configure"
|
155
|
15133 #include "confdefs.h"
|
|
15134 #include <gpm.h>
|
|
15135 EOF
|
|
15136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
15137 { (eval echo configure:15138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
15138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
15139 if test -z "$ac_err"; then
|
|
15140 rm -rf conftest*
|
|
15141 eval "ac_cv_header_$ac_safe=yes"
|
|
15142 else
|
|
15143 echo "$ac_err" >&5
|
|
15144 echo "configure: failed program was:" >&5
|
|
15145 cat conftest.$ac_ext >&5
|
|
15146 rm -rf conftest*
|
|
15147 eval "ac_cv_header_$ac_safe=no"
|
|
15148 fi
|
|
15149 rm -f conftest*
|
|
15150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
15151 echo "$ac_t""yes" 1>&6
|
|
15152
|
|
15153
|
155
|
15154 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
|
2131
|
15155 echo "configure:15156: checking for Gpm_Open in -lgpm" >&5
|
155
|
15156 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
|
|
15157
|
|
15158 xe_check_libs=" -lgpm "
|
|
15159 cat > conftest.$ac_ext <<EOF
|
2131
|
15160 #line 15161 "configure"
|
155
|
15161 #include "confdefs.h"
|
|
15162 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15163 /* We use char because int might match the return type of a gcc2
|
|
15164 builtin and then its argument prototype would still apply. */
|
|
15165 char Gpm_Open();
|
|
15166
|
|
15167 int main() {
|
|
15168 Gpm_Open()
|
|
15169 ; return 0; }
|
|
15170 EOF
|
2131
|
15171 if { (eval echo configure:15172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
15172 rm -rf conftest*
|
|
15173 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15174 else
|
|
15175 echo "configure: failed program was:" >&5
|
|
15176 cat conftest.$ac_ext >&5
|
|
15177 rm -rf conftest*
|
|
15178 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15179 fi
|
|
15180 rm -f conftest*
|
|
15181 xe_check_libs=""
|
|
15182
|
|
15183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15184 echo "$ac_t""yes" 1>&6
|
|
15185 have_gpm=yes
|
|
15186 else
|
|
15187 echo "$ac_t""no" 1>&6
|
|
15188 fi
|
|
15189
|
|
15190
|
|
15191 else
|
|
15192 echo "$ac_t""no" 1>&6
|
|
15193 fi
|
|
15194
|
|
15195 if test "$have_gpm" = "yes"; then
|
|
15196 with_gpm=yes
|
|
15197 { test "$extra_verbose" = "yes" && cat << \EOF
|
155
|
15198 Defining HAVE_GPM
|
|
15199 EOF
|
|
15200 cat >> confdefs.h <<\EOF
|
|
15201 #define HAVE_GPM 1
|
|
15202 EOF
|
|
15203 }
|
|
15204
|
2131
|
15205 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
|
|
15206 elif test "$with_gpm" = "yes"; then
|
|
15207 { echo "Error:" "GPM requested, but gpm.h or libgpm seems to be missing." >&2; exit 1; }
|
|
15208 else
|
|
15209 with_gpm=no
|
|
15210 fi
|
155
|
15211 fi
|
|
15212
|
151
|
15213 else for feature in ncurses gpm; do
|
149
|
15214 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
561
|
15215 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
|
149
|
15216 fi
|
|
15217 eval "with_${feature}=no"
|
|
15218 done
|
151
|
15219 fi
|
149
|
15220
|
426
|
15221 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
|
384
|
15222 != "no no no" && echo "checking for database support" 1>&6
|
2131
|
15223 echo "configure:15224: checking for database support" >&5
|
426
|
15224
|
|
15225 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
|
384
|
15226 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
|
|
15227 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
|
2131
|
15228 echo "configure:15229: checking for ndbm.h" >&5
|
|
15229
|
|
15230 cat > conftest.$ac_ext <<EOF
|
|
15231 #line 15232 "configure"
|
384
|
15232 #include "confdefs.h"
|
|
15233 #include <ndbm.h>
|
265
|
15234 EOF
|
|
15235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
15236 { (eval echo configure:15237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
15237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
265
|
15238 if test -z "$ac_err"; then
|
|
15239 rm -rf conftest*
|
|
15240 eval "ac_cv_header_$ac_safe=yes"
|
|
15241 else
|
|
15242 echo "$ac_err" >&5
|
|
15243 echo "configure: failed program was:" >&5
|
|
15244 cat conftest.$ac_ext >&5
|
|
15245 rm -rf conftest*
|
|
15246 eval "ac_cv_header_$ac_safe=no"
|
|
15247 fi
|
|
15248 rm -f conftest*
|
|
15249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
15250 echo "$ac_t""yes" 1>&6
|
384
|
15251 :
|
|
15252 else
|
|
15253 echo "$ac_t""no" 1>&6
|
|
15254
|
426
|
15255 test "$with_database_gdbm" = "yes" -o \
|
|
15256 "$with_database_dbm" = "yes" && \
|
384
|
15257 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
|
426
|
15258 with_database_gdbm=no with_database_dbm=no
|
|
15259 fi
|
|
15260
|
|
15261 fi
|
|
15262
|
|
15263 if test "$with_database_gdbm" != "no"; then
|
384
|
15264
|
149
|
15265 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
|
2131
|
15266 echo "configure:15267: checking for dbm_open in -lgdbm" >&5
|
149
|
15267 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
15268
|
|
15269 xe_check_libs=" -lgdbm "
|
|
15270 cat > conftest.$ac_ext <<EOF
|
2131
|
15271 #line 15272 "configure"
|
149
|
15272 #include "confdefs.h"
|
|
15273 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15274 /* We use char because int might match the return type of a gcc2
|
|
15275 builtin and then its argument prototype would still apply. */
|
|
15276 char dbm_open();
|
|
15277
|
|
15278 int main() {
|
|
15279 dbm_open()
|
|
15280 ; return 0; }
|
|
15281 EOF
|
2131
|
15282 if { (eval echo configure:15283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15283 rm -rf conftest*
|
|
15284 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15285 else
|
|
15286 echo "configure: failed program was:" >&5
|
|
15287 cat conftest.$ac_ext >&5
|
|
15288 rm -rf conftest*
|
|
15289 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15290 fi
|
|
15291 rm -f conftest*
|
|
15292 xe_check_libs=""
|
|
15293
|
151
|
15294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
15295 echo "$ac_t""yes" 1>&6
|
426
|
15296 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
|
|
15297 else
|
|
15298 echo "$ac_t""no" 1>&6
|
|
15299 if test "$with_database_gdbm" = "yes"; then
|
384
|
15300 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
|
|
15301 fi
|
426
|
15302 with_database_gdbm=no
|
384
|
15303 fi
|
|
15304
|
|
15305
|
149
|
15306 fi
|
|
15307
|
151
|
15308 if test "$with_database_dbm" != "no"; then
|
149
|
15309 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
2131
|
15310 echo "configure:15311: checking for dbm_open" >&5
|
|
15311
|
|
15312 cat > conftest.$ac_ext <<EOF
|
|
15313 #line 15314 "configure"
|
149
|
15314 #include "confdefs.h"
|
|
15315 /* System header to define __stub macros and hopefully few prototypes,
|
|
15316 which can conflict with char dbm_open(); below. */
|
|
15317 #include <assert.h>
|
|
15318 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15319 /* We use char because int might match the return type of a gcc2
|
|
15320 builtin and then its argument prototype would still apply. */
|
|
15321 char dbm_open();
|
|
15322
|
|
15323 int main() {
|
|
15324
|
|
15325 /* The GNU C library defines this for functions which it implements
|
|
15326 to always fail with ENOSYS. Some functions are actually named
|
|
15327 something starting with __ and the normal name is an alias. */
|
|
15328 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
15329 choke me
|
|
15330 #else
|
|
15331 dbm_open();
|
|
15332 #endif
|
|
15333
|
|
15334 ; return 0; }
|
|
15335 EOF
|
2131
|
15336 if { (eval echo configure:15337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15337 rm -rf conftest*
|
|
15338 eval "ac_cv_func_dbm_open=yes"
|
|
15339 else
|
|
15340 echo "configure: failed program was:" >&5
|
|
15341 cat conftest.$ac_ext >&5
|
|
15342 rm -rf conftest*
|
|
15343 eval "ac_cv_func_dbm_open=no"
|
|
15344 fi
|
|
15345 rm -f conftest*
|
|
15346
|
|
15347 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
15348 echo "$ac_t""yes" 1>&6
|
384
|
15349 with_database_dbm=yes libdbm=
|
|
15350 else
|
|
15351 echo "$ac_t""no" 1>&6
|
|
15352
|
149
|
15353
|
|
15354 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
|
2131
|
15355 echo "configure:15356: checking for dbm_open in -ldbm" >&5
|
149
|
15356 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
15357
|
|
15358 xe_check_libs=" -ldbm "
|
|
15359 cat > conftest.$ac_ext <<EOF
|
2131
|
15360 #line 15361 "configure"
|
149
|
15361 #include "confdefs.h"
|
|
15362 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15363 /* We use char because int might match the return type of a gcc2
|
|
15364 builtin and then its argument prototype would still apply. */
|
|
15365 char dbm_open();
|
|
15366
|
|
15367 int main() {
|
|
15368 dbm_open()
|
|
15369 ; return 0; }
|
|
15370 EOF
|
2131
|
15371 if { (eval echo configure:15372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15372 rm -rf conftest*
|
|
15373 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15374 else
|
|
15375 echo "configure: failed program was:" >&5
|
|
15376 cat conftest.$ac_ext >&5
|
|
15377 rm -rf conftest*
|
|
15378 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15379 fi
|
|
15380 rm -f conftest*
|
|
15381 xe_check_libs=""
|
|
15382
|
151
|
15383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
15384 echo "$ac_t""yes" 1>&6
|
384
|
15385 with_database_dbm=yes libdbm=-ldbm
|
|
15386 else
|
|
15387 echo "$ac_t""no" 1>&6
|
|
15388 test "$with_database_dbm" = "yes" && \
|
|
15389 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
|
|
15390 with_database_dbm=no
|
|
15391 fi
|
|
15392
|
|
15393
|
|
15394 fi
|
|
15395
|
|
15396 fi
|
|
15397
|
|
15398 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
|
426
|
15399 test "$with_database_gdbm" = "yes" -o \
|
|
15400 "$with_database_dbm" = "yes" && \
|
384
|
15401 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15402 Defining HAVE_DBM
|
|
15403 EOF
|
|
15404 cat >> confdefs.h <<\EOF
|
|
15405 #define HAVE_DBM 1
|
|
15406 EOF
|
|
15407 }
|
|
15408
|
|
15409
|
|
15410 if test "$with_database_berkdb" != "no"; then
|
298
|
15411 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
|
2131
|
15412 echo "configure:15413: checking for Berkeley db.h" >&5
|
442
|
15413 for header in "db/db.h" "db.h"; do
|
298
|
15414 cat > conftest.$ac_ext <<EOF
|
2131
|
15415 #line 15416 "configure"
|
442
|
15416 #include "confdefs.h"
|
|
15417
|
|
15418 #include <stdlib.h>
|
|
15419 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
|
298
|
15420 #ifdef HAVE_INTTYPES_H
|
|
15421 #define __BIT_TYPES_DEFINED__
|
|
15422 #include <inttypes.h>
|
|
15423 typedef uint8_t u_int8_t;
|
|
15424 typedef uint16_t u_int16_t;
|
|
15425 typedef uint32_t u_int32_t;
|
|
15426 #ifdef WE_DONT_NEED_QUADS
|
|
15427 typedef uint64_t u_int64_t;
|
|
15428 #endif
|
|
15429 #endif
|
442
|
15430 #endif
|
|
15431 #include <$header>
|
|
15432
|
|
15433 int main() {
|
|
15434
|
|
15435 ; return 0; }
|
|
15436 EOF
|
2131
|
15437 if { (eval echo configure:15438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
15438 rm -rf conftest*
|
|
15439 db_h_file="$header"; break
|
298
|
15440 else
|
|
15441 echo "configure: failed program was:" >&5
|
|
15442 cat conftest.$ac_ext >&5
|
|
15443 fi
|
|
15444 rm -f conftest*
|
|
15445 done
|
442
|
15446 if test -z "$db_h_file"
|
298
|
15447 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
|
442
|
15448 else echo "$ac_t""$db_h_file" 1>&6
|
298
|
15449 fi
|
|
15450
|
|
15451 if test "$with_database_berkdb" != "no"; then
|
|
15452 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
|
2131
|
15453 echo "configure:15454: checking for Berkeley DB version" >&5
|
298
|
15454 cat > conftest.$ac_ext <<EOF
|
2131
|
15455 #line 15456 "configure"
|
442
|
15456 #include "confdefs.h"
|
|
15457 #include <$db_h_file>
|
298
|
15458 #if DB_VERSION_MAJOR > 1
|
|
15459 yes
|
|
15460 #endif
|
|
15461
|
|
15462 EOF
|
|
15463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
15464 egrep "yes" >/dev/null 2>&1; then
|
|
15465 rm -rf conftest*
|
448
|
15466 cat > conftest.$ac_ext <<EOF
|
2131
|
15467 #line 15468 "configure"
|
448
|
15468 #include "confdefs.h"
|
|
15469 #include <$db_h_file>
|
|
15470 #if DB_VERSION_MAJOR > 2
|
|
15471 yes
|
|
15472 #endif
|
|
15473
|
|
15474 EOF
|
|
15475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
15476 egrep "yes" >/dev/null 2>&1; then
|
|
15477 rm -rf conftest*
|
1443
|
15478 cat > conftest.$ac_ext <<EOF
|
2131
|
15479 #line 15480 "configure"
|
1443
|
15480 #include "confdefs.h"
|
|
15481 #include <$db_h_file>
|
|
15482 #if DB_VERSION_MAJOR > 3
|
|
15483 yes
|
|
15484 #endif
|
|
15485
|
|
15486 EOF
|
|
15487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
15488 egrep "yes" >/dev/null 2>&1; then
|
|
15489 rm -rf conftest*
|
|
15490 echo "$ac_t""4" 1>&6; dbfunc=db_create; dbver=4
|
448
|
15491 else
|
|
15492 rm -rf conftest*
|
|
15493
|
1443
|
15494 echo "$ac_t""3" 1>&6; dbfunc=db_create; dbver=3
|
448
|
15495 fi
|
|
15496 rm -f conftest*
|
|
15497
|
|
15498 else
|
|
15499 rm -rf conftest*
|
|
15500
|
1443
|
15501 echo "$ac_t""2" 1>&6; dbfunc=db_open; dbver=2
|
|
15502 fi
|
|
15503 rm -f conftest*
|
|
15504
|
|
15505 else
|
|
15506 rm -rf conftest*
|
|
15507
|
|
15508 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1
|
298
|
15509 fi
|
|
15510 rm -f conftest*
|
|
15511
|
|
15512 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
|
2131
|
15513 echo "configure:15514: checking for $dbfunc" >&5
|
|
15514
|
|
15515 cat > conftest.$ac_ext <<EOF
|
|
15516 #line 15517 "configure"
|
298
|
15517 #include "confdefs.h"
|
149
|
15518 /* System header to define __stub macros and hopefully few prototypes,
|
298
|
15519 which can conflict with char $dbfunc(); below. */
|
149
|
15520 #include <assert.h>
|
|
15521 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15522 /* We use char because int might match the return type of a gcc2
|
|
15523 builtin and then its argument prototype would still apply. */
|
298
|
15524 char $dbfunc();
|
149
|
15525
|
|
15526 int main() {
|
|
15527
|
0
|
15528 /* The GNU C library defines this for functions which it implements
|
|
15529 to always fail with ENOSYS. Some functions are actually named
|
|
15530 something starting with __ and the normal name is an alias. */
|
298
|
15531 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
|
0
|
15532 choke me
|
|
15533 #else
|
298
|
15534 $dbfunc();
|
0
|
15535 #endif
|
149
|
15536
|
0
|
15537 ; return 0; }
|
|
15538 EOF
|
2131
|
15539 if { (eval echo configure:15540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
298
|
15540 rm -rf conftest*
|
|
15541 eval "ac_cv_func_$dbfunc=yes"
|
|
15542 else
|
|
15543 echo "configure: failed program was:" >&5
|
|
15544 cat conftest.$ac_ext >&5
|
|
15545 rm -rf conftest*
|
|
15546 eval "ac_cv_func_$dbfunc=no"
|
|
15547 fi
|
|
15548 rm -f conftest*
|
|
15549
|
|
15550 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
|
149
|
15551 echo "$ac_t""yes" 1>&6
|
|
15552 with_database_berkdb=yes need_libdb=no
|
|
15553 else
|
|
15554 echo "$ac_t""no" 1>&6
|
298
|
15555
|
|
15556
|
|
15557 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
|
2131
|
15558 echo "configure:15559: checking for $dbfunc in -ldb" >&5
|
298
|
15559 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
|
149
|
15560
|
|
15561 xe_check_libs=" -ldb "
|
|
15562 cat > conftest.$ac_ext <<EOF
|
2131
|
15563 #line 15564 "configure"
|
149
|
15564 #include "confdefs.h"
|
0
|
15565 /* Override any gcc2 internal prototype to avoid an error. */
|
149
|
15566 /* We use char because int might match the return type of a gcc2
|
|
15567 builtin and then its argument prototype would still apply. */
|
298
|
15568 char $dbfunc();
|
|
15569
|
|
15570 int main() {
|
|
15571 $dbfunc()
|
|
15572 ; return 0; }
|
|
15573 EOF
|
2131
|
15574 if { (eval echo configure:15575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15575 rm -rf conftest*
|
|
15576 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15577 else
|
|
15578 echo "configure: failed program was:" >&5
|
|
15579 cat conftest.$ac_ext >&5
|
|
15580 rm -rf conftest*
|
|
15581 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15582 fi
|
|
15583 rm -f conftest*
|
|
15584 xe_check_libs=""
|
|
15585
|
151
|
15586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
15587 echo "$ac_t""yes" 1>&6
|
|
15588 with_database_berkdb=yes need_libdb=yes
|
|
15589 else
|
|
15590 echo "$ac_t""no" 1>&6
|
298
|
15591 fi
|
|
15592
|
|
15593
|
|
15594 fi
|
|
15595
|
|
15596 fi
|
|
15597
|
1443
|
15598 if test "$with_database_berkdb" != "yes" -a "$dbver" = "4"; then
|
|
15599 rm -f $tempcname
|
|
15600 echo "#include <$db_h_file>" > $tempcname
|
|
15601 echo "configure___ dbfunc=db_create" >> $tempcname
|
|
15602 eval `$CPP -Isrc $tempcname \
|
|
15603 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
|
|
15604 rm -f $tempcname
|
|
15605 echo "configure: warning: "db_create is really $dbfunc"" 1>&2
|
|
15606
|
|
15607 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
|
2131
|
15608 echo "configure:15609: checking for $dbfunc in -ldb" >&5
|
1443
|
15609 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
|
|
15610
|
|
15611 xe_check_libs=" -ldb "
|
|
15612 cat > conftest.$ac_ext <<EOF
|
2131
|
15613 #line 15614 "configure"
|
1443
|
15614 #include "confdefs.h"
|
|
15615 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15616 /* We use char because int might match the return type of a gcc2
|
|
15617 builtin and then its argument prototype would still apply. */
|
|
15618 char $dbfunc();
|
|
15619
|
|
15620 int main() {
|
|
15621 $dbfunc()
|
|
15622 ; return 0; }
|
|
15623 EOF
|
2131
|
15624 if { (eval echo configure:15625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1443
|
15625 rm -rf conftest*
|
|
15626 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15627 else
|
|
15628 echo "configure: failed program was:" >&5
|
|
15629 cat conftest.$ac_ext >&5
|
|
15630 rm -rf conftest*
|
|
15631 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15632 fi
|
|
15633 rm -f conftest*
|
|
15634 xe_check_libs=""
|
|
15635
|
|
15636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15637 echo "$ac_t""yes" 1>&6
|
|
15638 with_database_berkdb=yes need_libdb=yes
|
|
15639 else
|
|
15640 echo "$ac_t""no" 1>&6
|
|
15641 fi
|
|
15642
|
|
15643
|
|
15644 fi
|
|
15645
|
149
|
15646 if test "$with_database_berkdb" = "yes"; then
|
|
15647 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
15648 Defining DB_H_FILE = "$db_h_file"
|
|
15649 EOF
|
|
15650 cat >> confdefs.h <<EOF
|
|
15651 #define DB_H_FILE "$db_h_file"
|
149
|
15652 EOF
|
|
15653 }
|
|
15654
|
|
15655 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15656 Defining HAVE_BERKELEY_DB
|
|
15657 EOF
|
|
15658 cat >> confdefs.h <<\EOF
|
|
15659 #define HAVE_BERKELEY_DB 1
|
|
15660 EOF
|
|
15661 }
|
|
15662
|
151
|
15663 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
|
149
|
15664 else with_database_berkdb=no
|
|
15665 fi
|
|
15666 fi
|
|
15667
|
426
|
15668 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
|
272
|
15669 != "no no no"; then
|
149
|
15670 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15671 Defining HAVE_DATABASE
|
|
15672 EOF
|
|
15673 cat >> confdefs.h <<\EOF
|
|
15674 #define HAVE_DATABASE 1
|
|
15675 EOF
|
|
15676 }
|
|
15677
|
|
15678 fi
|
|
15679
|
|
15680 if test "$with_socks" = "yes"; then
|
|
15681
|
|
15682 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
|
2131
|
15683 echo "configure:15684: checking for SOCKSinit in -lsocks" >&5
|
149
|
15684 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
|
|
15685
|
|
15686 xe_check_libs=" -lsocks "
|
|
15687 cat > conftest.$ac_ext <<EOF
|
2131
|
15688 #line 15689 "configure"
|
149
|
15689 #include "confdefs.h"
|
|
15690 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15691 /* We use char because int might match the return type of a gcc2
|
|
15692 builtin and then its argument prototype would still apply. */
|
|
15693 char SOCKSinit();
|
|
15694
|
|
15695 int main() {
|
|
15696 SOCKSinit()
|
|
15697 ; return 0; }
|
|
15698 EOF
|
2131
|
15699 if { (eval echo configure:15700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15700 rm -rf conftest*
|
|
15701 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15702 else
|
|
15703 echo "configure: failed program was:" >&5
|
|
15704 cat conftest.$ac_ext >&5
|
|
15705 rm -rf conftest*
|
|
15706 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15707 fi
|
|
15708 rm -f conftest*
|
|
15709 xe_check_libs=""
|
|
15710
|
151
|
15711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
15712 echo "$ac_t""yes" 1>&6
|
|
15713 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
15714 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
15715 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15716 Defining $ac_tr_lib
|
|
15717 EOF
|
|
15718 cat >> confdefs.h <<EOF
|
|
15719 #define $ac_tr_lib 1
|
|
15720 EOF
|
|
15721 }
|
|
15722
|
151
|
15723 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
|
149
|
15724
|
|
15725 else
|
|
15726 echo "$ac_t""no" 1>&6
|
|
15727 fi
|
|
15728
|
|
15729
|
|
15730 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15731 Defining HAVE_SOCKS
|
|
15732 EOF
|
|
15733 cat >> confdefs.h <<\EOF
|
|
15734 #define HAVE_SOCKS 1
|
|
15735 EOF
|
|
15736 }
|
|
15737
|
|
15738 fi
|
|
15739
|
|
15740 if test "$usage_tracking" = "yes"; then
|
|
15741 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15742 Defining USAGE_TRACKING
|
|
15743 EOF
|
|
15744 cat >> confdefs.h <<\EOF
|
|
15745 #define USAGE_TRACKING 1
|
|
15746 EOF
|
|
15747 }
|
|
15748
|
151
|
15749 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
|
149
|
15750 fi
|
|
15751
|
1984
|
15752 if test "$use_number_lib" = "gmp"; then
|
|
15753 ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
|
|
15754 echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
|
2131
|
15755 echo "configure:15756: checking for gmp.h" >&5
|
|
15756
|
|
15757 cat > conftest.$ac_ext <<EOF
|
|
15758 #line 15759 "configure"
|
1984
|
15759 #include "confdefs.h"
|
|
15760 #include <gmp.h>
|
|
15761 EOF
|
|
15762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
15763 { (eval echo configure:15764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1984
|
15764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
15765 if test -z "$ac_err"; then
|
|
15766 rm -rf conftest*
|
|
15767 eval "ac_cv_header_$ac_safe=yes"
|
|
15768 else
|
|
15769 echo "$ac_err" >&5
|
|
15770 echo "configure: failed program was:" >&5
|
|
15771 cat conftest.$ac_ext >&5
|
|
15772 rm -rf conftest*
|
|
15773 eval "ac_cv_header_$ac_safe=no"
|
|
15774 fi
|
|
15775 rm -f conftest*
|
|
15776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
15777 echo "$ac_t""yes" 1>&6
|
|
15778
|
|
15779
|
|
15780 echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6
|
2131
|
15781 echo "configure:15782: checking for __gmpz_init in -lgmp" >&5
|
1984
|
15782 ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
|
|
15783
|
|
15784 xe_check_libs=" -lgmp "
|
|
15785 cat > conftest.$ac_ext <<EOF
|
2131
|
15786 #line 15787 "configure"
|
1984
|
15787 #include "confdefs.h"
|
|
15788 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15789 /* We use char because int might match the return type of a gcc2
|
|
15790 builtin and then its argument prototype would still apply. */
|
|
15791 char __gmpz_init();
|
|
15792
|
|
15793 int main() {
|
|
15794 __gmpz_init()
|
|
15795 ; return 0; }
|
|
15796 EOF
|
2131
|
15797 if { (eval echo configure:15798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1984
|
15798 rm -rf conftest*
|
|
15799 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15800 else
|
|
15801 echo "configure: failed program was:" >&5
|
|
15802 cat conftest.$ac_ext >&5
|
|
15803 rm -rf conftest*
|
|
15804 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15805 fi
|
|
15806 rm -f conftest*
|
|
15807 xe_check_libs=""
|
|
15808
|
|
15809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15810 echo "$ac_t""yes" 1>&6
|
|
15811 have_mpz_init=yes
|
|
15812 else
|
|
15813 echo "$ac_t""no" 1>&6
|
|
15814 fi
|
|
15815
|
|
15816
|
|
15817 else
|
|
15818 echo "$ac_t""no" 1>&6
|
|
15819 fi
|
|
15820
|
|
15821 if test "$have_mpz_init" = "yes"; then
|
|
15822 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15823 Defining WITH_NUMBER_TYPES
|
|
15824 EOF
|
|
15825 cat >> confdefs.h <<\EOF
|
|
15826 #define WITH_NUMBER_TYPES 1
|
|
15827 EOF
|
|
15828 }
|
|
15829
|
|
15830 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15831 Defining WITH_GMP
|
|
15832 EOF
|
|
15833 cat >> confdefs.h <<\EOF
|
|
15834 #define WITH_GMP 1
|
|
15835 EOF
|
|
15836 }
|
|
15837
|
|
15838 LIBS="-lgmp $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgmp\" to \$LIBS"; fi
|
|
15839 else
|
|
15840 { echo "Error:" "Required GMP numeric support cannot be provided." >&2; exit 1; }
|
|
15841 fi
|
|
15842 elif test "$use_number_lib" = "mp"; then
|
1997
|
15843 for library in "" "-lcrypto"; do
|
|
15844 ac_safe=`echo "mp.h" | sed 'y%./+-%__p_%'`
|
1984
|
15845 echo $ac_n "checking for mp.h""... $ac_c" 1>&6
|
2131
|
15846 echo "configure:15847: checking for mp.h" >&5
|
|
15847
|
|
15848 cat > conftest.$ac_ext <<EOF
|
|
15849 #line 15850 "configure"
|
1984
|
15850 #include "confdefs.h"
|
|
15851 #include <mp.h>
|
|
15852 EOF
|
|
15853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2131
|
15854 { (eval echo configure:15855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1984
|
15855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
15856 if test -z "$ac_err"; then
|
|
15857 rm -rf conftest*
|
|
15858 eval "ac_cv_header_$ac_safe=yes"
|
|
15859 else
|
|
15860 echo "$ac_err" >&5
|
|
15861 echo "configure: failed program was:" >&5
|
|
15862 cat conftest.$ac_ext >&5
|
|
15863 rm -rf conftest*
|
|
15864 eval "ac_cv_header_$ac_safe=no"
|
|
15865 fi
|
|
15866 rm -f conftest*
|
|
15867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
15868 echo "$ac_t""yes" 1>&6
|
|
15869
|
1997
|
15870
|
|
15871 xe_msg_checking="for mp_mfree in -lmp"
|
|
15872 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library"
|
|
15873 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2131
|
15874 echo "configure:15875: checking "$xe_msg_checking"" >&5
|
1984
|
15875 ac_lib_var=`echo mp'_'mp_mfree | sed 'y%./+-%__p_%'`
|
|
15876
|
1997
|
15877 xe_check_libs=" -lmp $library"
|
|
15878 cat > conftest.$ac_ext <<EOF
|
2131
|
15879 #line 15880 "configure"
|
1984
|
15880 #include "confdefs.h"
|
|
15881 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15882 /* We use char because int might match the return type of a gcc2
|
|
15883 builtin and then its argument prototype would still apply. */
|
|
15884 char mp_mfree();
|
|
15885
|
|
15886 int main() {
|
|
15887 mp_mfree()
|
|
15888 ; return 0; }
|
|
15889 EOF
|
2131
|
15890 if { (eval echo configure:15891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2009
|
15891 rm -rf conftest*
|
|
15892 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15893 else
|
|
15894 echo "configure: failed program was:" >&5
|
|
15895 cat conftest.$ac_ext >&5
|
|
15896 rm -rf conftest*
|
|
15897 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15898 fi
|
|
15899 rm -f conftest*
|
|
15900 xe_check_libs=""
|
|
15901
|
|
15902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15903 echo "$ac_t""yes" 1>&6
|
|
15904 have_mp_mfree=yes; break
|
1997
|
15905 else
|
|
15906 echo "$ac_t""no" 1>&6
|
|
15907
|
|
15908 xe_msg_checking="for mfree in -lmp"
|
|
15909 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library"
|
|
15910 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2131
|
15911 echo "configure:15912: checking "$xe_msg_checking"" >&5
|
1984
|
15912 ac_lib_var=`echo mp'_'mfree | sed 'y%./+-%__p_%'`
|
|
15913
|
1997
|
15914 xe_check_libs=" -lmp $library"
|
|
15915 cat > conftest.$ac_ext <<EOF
|
2131
|
15916 #line 15917 "configure"
|
1984
|
15917 #include "confdefs.h"
|
|
15918 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15919 /* We use char because int might match the return type of a gcc2
|
|
15920 builtin and then its argument prototype would still apply. */
|
|
15921 char mfree();
|
|
15922
|
|
15923 int main() {
|
|
15924 mfree()
|
|
15925 ; return 0; }
|
|
15926 EOF
|
2131
|
15927 if { (eval echo configure:15928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2009
|
15928 rm -rf conftest*
|
|
15929 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15930 else
|
|
15931 echo "configure: failed program was:" >&5
|
|
15932 cat conftest.$ac_ext >&5
|
|
15933 rm -rf conftest*
|
|
15934 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15935 fi
|
|
15936 rm -f conftest*
|
|
15937 xe_check_libs=""
|
|
15938
|
|
15939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15940 echo "$ac_t""yes" 1>&6
|
|
15941 have_mfree=yes; break
|
1997
|
15942 else
|
|
15943 echo "$ac_t""no" 1>&6
|
|
15944 fi
|
|
15945
|
|
15946
|
|
15947 fi
|
|
15948
|
|
15949
|
|
15950 else
|
|
15951 echo "$ac_t""no" 1>&6
|
|
15952 fi
|
|
15953
|
|
15954 done
|
1984
|
15955 if test "$have_mp_mfree" = "yes"; then
|
|
15956 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15957 Defining MP_PREFIX
|
|
15958 EOF
|
|
15959 cat >> confdefs.h <<\EOF
|
|
15960 #define MP_PREFIX 1
|
|
15961 EOF
|
|
15962 }
|
|
15963
|
1997
|
15964 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi
|
2009
|
15965 if test "$library" != ""; then
|
|
15966 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi
|
|
15967 fi
|
1984
|
15968 echo $ac_n "checking for mp_move""... $ac_c" 1>&6
|
2131
|
15969 echo "configure:15970: checking for mp_move" >&5
|
|
15970
|
|
15971 cat > conftest.$ac_ext <<EOF
|
|
15972 #line 15973 "configure"
|
1984
|
15973 #include "confdefs.h"
|
|
15974 /* System header to define __stub macros and hopefully few prototypes,
|
|
15975 which can conflict with char mp_move(); below. */
|
|
15976 #include <assert.h>
|
|
15977 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15978 /* We use char because int might match the return type of a gcc2
|
|
15979 builtin and then its argument prototype would still apply. */
|
|
15980 char mp_move();
|
|
15981
|
|
15982 int main() {
|
|
15983
|
|
15984 /* The GNU C library defines this for functions which it implements
|
|
15985 to always fail with ENOSYS. Some functions are actually named
|
|
15986 something starting with __ and the normal name is an alias. */
|
|
15987 #if defined (__stub_mp_move) || defined (__stub___mp_move)
|
|
15988 choke me
|
|
15989 #else
|
|
15990 mp_move();
|
|
15991 #endif
|
|
15992
|
|
15993 ; return 0; }
|
|
15994 EOF
|
2131
|
15995 if { (eval echo configure:15996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1984
|
15996 rm -rf conftest*
|
|
15997 eval "ac_cv_func_mp_move=yes"
|
|
15998 else
|
|
15999 echo "configure: failed program was:" >&5
|
|
16000 cat conftest.$ac_ext >&5
|
|
16001 rm -rf conftest*
|
|
16002 eval "ac_cv_func_mp_move=no"
|
|
16003 fi
|
|
16004 rm -f conftest*
|
|
16005
|
|
16006 if eval "test \"`echo '$ac_cv_func_'mp_move`\" = yes"; then
|
|
16007 echo "$ac_t""yes" 1>&6
|
|
16008 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16009 Defining HAVE_MP_MOVE
|
|
16010 EOF
|
|
16011 cat >> confdefs.h <<\EOF
|
|
16012 #define HAVE_MP_MOVE 1
|
|
16013 EOF
|
|
16014 }
|
|
16015
|
|
16016 else
|
|
16017 echo "$ac_t""no" 1>&6
|
|
16018 fi
|
|
16019
|
|
16020 elif test "$have_mfree" = "yes"; then
|
1997
|
16021 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi
|
2009
|
16022 if test "$library" != ""; then
|
|
16023 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi
|
|
16024 fi
|
1984
|
16025 echo $ac_n "checking for move""... $ac_c" 1>&6
|
2131
|
16026 echo "configure:16027: checking for move" >&5
|
|
16027
|
|
16028 cat > conftest.$ac_ext <<EOF
|
|
16029 #line 16030 "configure"
|
1984
|
16030 #include "confdefs.h"
|
|
16031 /* System header to define __stub macros and hopefully few prototypes,
|
|
16032 which can conflict with char move(); below. */
|
|
16033 #include <assert.h>
|
|
16034 /* Override any gcc2 internal prototype to avoid an error. */
|
|
16035 /* We use char because int might match the return type of a gcc2
|
|
16036 builtin and then its argument prototype would still apply. */
|
|
16037 char move();
|
|
16038
|
|
16039 int main() {
|
|
16040
|
|
16041 /* The GNU C library defines this for functions which it implements
|
|
16042 to always fail with ENOSYS. Some functions are actually named
|
|
16043 something starting with __ and the normal name is an alias. */
|
|
16044 #if defined (__stub_move) || defined (__stub___move)
|
|
16045 choke me
|
|
16046 #else
|
|
16047 move();
|
|
16048 #endif
|
|
16049
|
|
16050 ; return 0; }
|
|
16051 EOF
|
2131
|
16052 if { (eval echo configure:16053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1984
|
16053 rm -rf conftest*
|
|
16054 eval "ac_cv_func_move=yes"
|
|
16055 else
|
|
16056 echo "configure: failed program was:" >&5
|
|
16057 cat conftest.$ac_ext >&5
|
|
16058 rm -rf conftest*
|
|
16059 eval "ac_cv_func_move=no"
|
|
16060 fi
|
|
16061 rm -f conftest*
|
|
16062
|
|
16063 if eval "test \"`echo '$ac_cv_func_'move`\" = yes"; then
|
|
16064 echo "$ac_t""yes" 1>&6
|
|
16065 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16066 Defining HAVE_MP_MOVE
|
|
16067 EOF
|
|
16068 cat >> confdefs.h <<\EOF
|
|
16069 #define HAVE_MP_MOVE 1
|
|
16070 EOF
|
|
16071 }
|
|
16072
|
|
16073 else
|
|
16074 echo "$ac_t""no" 1>&6
|
|
16075 fi
|
|
16076
|
|
16077 else
|
|
16078 { echo "Error:" "Required MP numeric support cannot be provided." >&2; exit 1; }
|
|
16079 fi
|
|
16080 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16081 Defining WITH_NUMBER_TYPES
|
|
16082 EOF
|
|
16083 cat >> confdefs.h <<\EOF
|
|
16084 #define WITH_NUMBER_TYPES 1
|
|
16085 EOF
|
|
16086 }
|
|
16087
|
|
16088 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16089 Defining WITH_MP
|
|
16090 EOF
|
|
16091 cat >> confdefs.h <<\EOF
|
|
16092 #define WITH_MP 1
|
|
16093 EOF
|
|
16094 }
|
|
16095
|
|
16096 fi
|
|
16097
|
|
16098 cat > conftest.$ac_ext <<EOF
|
2131
|
16099 #line 16100 "configure"
|
272
|
16100 #include "confdefs.h"
|
|
16101 int main(int c,char *v[]){return 0;}
|
|
16102 EOF
|
2131
|
16103 if { (eval echo configure:16104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
272
|
16104 then
|
|
16105 :
|
|
16106 else
|
373
|
16107 conftest_rc="$?"
|
272
|
16108 echo "configure: failed program was:" >&5
|
|
16109 cat conftest.$ac_ext >&5
|
|
16110 rm -fr conftest*
|
|
16111
|
|
16112 echo ""
|
|
16113 echo "*** PANIC *** The C compiler can no longer build working executables."
|
|
16114 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
|
|
16115 echo "*** PANIC *** The most likely reason for this problem is that configure"
|
|
16116 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
|
|
16117 echo "*** PANIC *** found at run time."
|
|
16118 echo "*** PANIC ***"
|
|
16119 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
|
|
16120 echo "*** PANIC *** On other systems, try telling configure where to find the"
|
|
16121 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
|
|
16122 echo "*** PANIC ***"
|
|
16123 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
|
|
16124 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
|
|
16125 echo "*** PANIC *** on your system. Don't do that."
|
|
16126 exit 1
|
|
16127 fi
|
|
16128 rm -fr conftest*
|
|
16129
|
771
|
16130 if test "$win32_processes" != "yes"; then
|
398
|
16131 { test "$extra_verbose" = "yes" && cat << \EOF
|
263
|
16132 Defining HAVE_UNIX_PROCESSES
|
|
16133 EOF
|
|
16134 cat >> confdefs.h <<\EOF
|
|
16135 #define HAVE_UNIX_PROCESSES 1
|
|
16136 EOF
|
|
16137 }
|
|
16138
|
398
|
16139 fi
|
261
|
16140
|
155
|
16141
|
997
|
16142 if test "$with_modules" = "yes"; then
|
|
16143 ld_libs_module=
|
|
16144 else
|
|
16145
|
|
16146 T=""
|
|
16147 for W in $ldap_libs $postgresql_libs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
16148 ld_libs_module="$T"
|
|
16149
|
|
16150 fi
|
|
16151
|
155
|
16152
|
|
16153 T=""
|
175
|
16154 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
16155 CFLAGS="$T"
|
|
16156
|
|
16157
|
|
16158 T=""
|
155
|
16159 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
16160 extra_objs="$T"
|
|
16161
|
|
16162
|
|
16163 T=""
|
|
16164 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
|
|
16165 c_switch_general="$T"
|
|
16166
|
|
16167
|
|
16168 T=""
|
462
|
16169 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
|
16170 c_switch_window_system="$T"
|
|
16171
|
|
16172
|
|
16173 T=""
|
|
16174 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
16175 c_switch_all="$T"
|
|
16176
|
|
16177
|
|
16178 T=""
|
|
16179 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
|
|
16180 ld_switch_general="$T"
|
|
16181
|
|
16182
|
|
16183 T=""
|
|
16184 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
16185 ld_switch_window_system="$T"
|
|
16186
|
|
16187
|
|
16188 T=""
|
|
16189 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
16190 ld_switch_all="$T"
|
|
16191
|
|
16192
|
|
16193 T=""
|
|
16194 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
16195 ld_libs_general="$T"
|
|
16196
|
|
16197
|
|
16198 T=""
|
462
|
16199 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
|
16200 ld_libs_window_system="$T"
|
|
16201
|
|
16202
|
|
16203 T=""
|
997
|
16204 for W in $ld_libs_window_system $ld_libs_general $ld_libs_module; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
155
|
16205 ld_libs_all="$T"
|
|
16206
|
149
|
16207
|
1491
|
16208 if test "$with_modules" = "no"; then
|
|
16209 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
|
16210 fi
|
|
16211
|
|
16212
|
380
|
16213 internal_makefile_list="Makefile.in"
|
149
|
16214 SUBDIR_MAKEFILES=''
|
151
|
16215 test -d lock || mkdir lock
|
149
|
16216 for dir in $MAKE_SUBDIR; do
|
167
|
16217 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
|
|
16218 test -d "$d" || mkdir "$d"; cd "$d"
|
|
16219 done ) ;;
|
|
16220 * ) test -d "$dir" || mkdir "$dir" ;;
|
|
16221 esac
|
155
|
16222
|
|
16223 T=""
|
384
|
16224 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
155
|
16225 SUBDIR_MAKEFILES="$T"
|
|
16226
|
|
16227
|
|
16228 T=""
|
|
16229 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
16230 internal_makefile_list="$T"
|
|
16231
|
149
|
16232 done
|
|
16233
|
|
16234
|
|
16235
|
167
|
16236
|
157
|
16237 for dir in src/s src/m; do
|
|
16238 if test ! -d "$dir" ; then
|
|
16239 echo Making symbolic link to "$srcdir/$dir"
|
|
16240 ${LN_S} "$srcdir/$dir" "$dir"
|
|
16241 fi
|
|
16242 done
|
|
16243
|
1111
|
16244 if test "$need_modules_common" = "yes"; then
|
|
16245 for dir in modules/common; do
|
|
16246 if test ! -d "$dir" ; then
|
|
16247 echo Making symbolic link to "$srcdir/$dir"
|
|
16248 ${LN_S} "$srcdir/$dir" "$dir"
|
|
16249 fi
|
|
16250 done
|
|
16251 fi
|
|
16252
|
149
|
16253 if test "$extra_verbose" = "yes"; then
|
151
|
16254 echo ""
|
163
|
16255 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
|
16256 echo ""
|
|
16257 fi
|
|
16258
|
438
|
16259
|
|
16260 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
|
|
16261 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
|
|
16262 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
|
|
16263 fi
|
|
16264
|
|
16265 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
|
|
16266 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
|
|
16267 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
|
|
16268 fi
|
|
16269
|
|
16270 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
|
|
16271 test "$extra_verbose" = "yes" && echo "creating TAGS"
|
|
16272 echo "
|
|
16273 $srcdir/TAGS,include" > "TAGS"
|
151
|
16274 fi
|
|
16275
|
373
|
16276 if test "$__SUNPRO_C" = "yes"; then
|
438
|
16277 test "$extra_verbose" = "yes" && echo "creating .sbinit"
|
157
|
16278 ( echo "# For use with Sun WorkShop's Source browser."
|
|
16279 echo "# See sbquery(1) and sbinit(4) for more information"
|
|
16280 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
|
|
16281 ) > .sbinit
|
|
16282 fi
|
151
|
16283
|
|
16284 rm -f core
|
|
16285
|
149
|
16286
|
|
16287
|
|
16288
|
|
16289
|
|
16290
|
|
16291
|
|
16292
|
|
16293
|
|
16294
|
|
16295
|
|
16296
|
|
16297
|
|
16298
|
|
16299
|
280
|
16300
|
420
|
16301
|
422
|
16302
|
|
16303
|
278
|
16304 PREFIX=$prefix
|
|
16305 while true; do
|
|
16306 case "$PREFIX" in
|
|
16307 *\$* ) eval "PREFIX=$PREFIX" ;;
|
|
16308 *) break ;;
|
|
16309 esac
|
|
16310 done
|
|
16311
|
|
16312
|
|
16313
|
420
|
16314
|
278
|
16315 EXEC_PREFIX=$exec_prefix
|
|
16316 while true; do
|
|
16317 case "$EXEC_PREFIX" in
|
|
16318 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
|
|
16319 *) break ;;
|
|
16320 esac
|
|
16321 done
|
|
16322
|
149
|
16323
|
|
16324
|
|
16325
|
274
|
16326 INFODIR=$infodir
|
|
16327 while true; do
|
|
16328 case "$INFODIR" in
|
|
16329 *\$* ) eval "INFODIR=$INFODIR" ;;
|
|
16330 *) break ;;
|
|
16331 esac
|
|
16332 done
|
|
16333
|
|
16334
|
|
16335
|
|
16336
|
|
16337 INFOPATH=$infopath
|
|
16338 while true; do
|
|
16339 case "$INFOPATH" in
|
|
16340 *\$* ) eval "INFOPATH=$INFOPATH" ;;
|
|
16341 *) break ;;
|
|
16342 esac
|
|
16343 done
|
|
16344
|
|
16345
|
|
16346
|
|
16347
|
|
16348 PACKAGE_PATH=$package_path
|
|
16349 while true; do
|
|
16350 case "$PACKAGE_PATH" in
|
|
16351 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
|
|
16352 *) break ;;
|
|
16353 esac
|
|
16354 done
|
|
16355
|
|
16356
|
|
16357
|
|
16358
|
|
16359 LISPDIR=$lispdir
|
|
16360 while true; do
|
|
16361 case "$LISPDIR" in
|
|
16362 *\$* ) eval "LISPDIR=$LISPDIR" ;;
|
|
16363 *) break ;;
|
|
16364 esac
|
|
16365 done
|
|
16366
|
|
16367
|
|
16368
|
|
16369
|
388
|
16370 MODULEDIR=$moduledir
|
|
16371 while true; do
|
|
16372 case "$MODULEDIR" in
|
|
16373 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
|
|
16374 *) break ;;
|
|
16375 esac
|
|
16376 done
|
|
16377
|
|
16378
|
|
16379
|
|
16380
|
|
16381 SITELISPDIR=$sitelispdir
|
|
16382 while true; do
|
|
16383 case "$SITELISPDIR" in
|
|
16384 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
|
|
16385 *) break ;;
|
|
16386 esac
|
|
16387 done
|
|
16388
|
|
16389
|
|
16390
|
|
16391
|
|
16392 SITEMODULEDIR=$sitemoduledir
|
|
16393 while true; do
|
|
16394 case "$SITEMODULEDIR" in
|
|
16395 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
|
|
16396 *) break ;;
|
|
16397 esac
|
|
16398 done
|
|
16399
|
|
16400
|
|
16401
|
274
|
16402
|
|
16403 ETCDIR=$etcdir
|
|
16404 while true; do
|
|
16405 case "$ETCDIR" in
|
|
16406 *\$* ) eval "ETCDIR=$ETCDIR" ;;
|
|
16407 *) break ;;
|
|
16408 esac
|
|
16409 done
|
|
16410
|
|
16411
|
|
16412
|
|
16413
|
420
|
16414 DOCDIR=$docdir
|
|
16415 while true; do
|
|
16416 case "$DOCDIR" in
|
|
16417 *\$* ) eval "DOCDIR=$DOCDIR" ;;
|
|
16418 *) break ;;
|
|
16419 esac
|
|
16420 done
|
|
16421
|
|
16422
|
|
16423
|
|
16424
|
274
|
16425 ARCHLIBDIR=$archlibdir
|
|
16426 while true; do
|
|
16427 case "$ARCHLIBDIR" in
|
|
16428 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
|
|
16429 *) break ;;
|
|
16430 esac
|
|
16431 done
|
149
|
16432
|
|
16433
|
|
16434
|
|
16435
|
|
16436
|
|
16437
|
|
16438
|
|
16439
|
|
16440
|
|
16441
|
|
16442
|
|
16443
|
|
16444
|
|
16445
|
|
16446
|
|
16447
|
203
|
16448
|
207
|
16449
|
263
|
16450
|
267
|
16451
|
173
|
16452 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
|
|
16453
|
|
16454
|
|
16455
|
|
16456
|
|
16457
|
|
16458
|
|
16459
|
594
|
16460
|
380
|
16461
|
1889
|
16462
|
420
|
16463 if test "$with_prefix" = "yes"; then
|
|
16464 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16465 Defining PREFIX_USER_DEFINED
|
|
16466 EOF
|
|
16467 cat >> confdefs.h <<\EOF
|
|
16468 #define PREFIX_USER_DEFINED 1
|
|
16469 EOF
|
|
16470 }
|
|
16471
|
|
16472 fi
|
380
|
16473
|
267
|
16474 if test "$with_site_lisp" = "no"; then
|
|
16475 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16476 Defining INHIBIT_SITE_LISP
|
|
16477 EOF
|
|
16478 cat >> confdefs.h <<\EOF
|
|
16479 #define INHIBIT_SITE_LISP 1
|
|
16480 EOF
|
|
16481 }
|
|
16482
|
|
16483 fi
|
388
|
16484 if test "$with_site_modules" = "no"; then
|
|
16485 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16486 Defining INHIBIT_SITE_MODULES
|
|
16487 EOF
|
|
16488 cat >> confdefs.h <<\EOF
|
|
16489 #define INHIBIT_SITE_MODULES 1
|
|
16490 EOF
|
|
16491 }
|
|
16492
|
|
16493 fi
|
155
|
16494
|
207
|
16495
|
|
16496 T=""
|
|
16497 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
16498 ac_configure_args="$T"
|
|
16499
|
149
|
16500 { test "$extra_verbose" = "yes" && cat << EOF
|
424
|
16501 Defining EMACS_CONFIGURATION = "$configuration"
|
149
|
16502 EOF
|
|
16503 cat >> confdefs.h <<EOF
|
424
|
16504 #define EMACS_CONFIGURATION "$configuration"
|
149
|
16505 EOF
|
|
16506 }
|
|
16507
|
|
16508 { test "$extra_verbose" = "yes" && cat << EOF
|
207
|
16509 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
|
173
|
16510 EOF
|
|
16511 cat >> confdefs.h <<EOF
|
207
|
16512 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
|
173
|
16513 EOF
|
|
16514 }
|
|
16515
|
149
|
16516
|
|
16517
|
|
16518 null_string=""
|
|
16519 { test "$extra_verbose" = "yes" && cat << EOF
|
|
16520 Defining LD_SWITCH_X_SITE = $null_string
|
|
16521 EOF
|
|
16522 cat >> confdefs.h <<EOF
|
|
16523 #define LD_SWITCH_X_SITE $null_string
|
|
16524 EOF
|
|
16525 }
|
|
16526
|
|
16527 { test "$extra_verbose" = "yes" && cat << EOF
|
|
16528 Defining LD_SWITCH_X_SITE_AUX = $null_string
|
|
16529 EOF
|
|
16530 cat >> confdefs.h <<EOF
|
|
16531 #define LD_SWITCH_X_SITE_AUX $null_string
|
|
16532 EOF
|
|
16533 }
|
|
16534
|
|
16535 { test "$extra_verbose" = "yes" && cat << EOF
|
|
16536 Defining C_SWITCH_X_SITE = $null_string
|
|
16537 EOF
|
|
16538 cat >> confdefs.h <<EOF
|
|
16539 #define C_SWITCH_X_SITE $null_string
|
|
16540 EOF
|
|
16541 }
|
|
16542
|
|
16543 { test "$extra_verbose" = "yes" && cat << EOF
|
|
16544 Defining LD_SWITCH_SITE = $null_string
|
|
16545 EOF
|
|
16546 cat >> confdefs.h <<EOF
|
|
16547 #define LD_SWITCH_SITE $null_string
|
|
16548 EOF
|
|
16549 }
|
|
16550
|
|
16551 { test "$extra_verbose" = "yes" && cat << EOF
|
|
16552 Defining C_SWITCH_SITE = $null_string
|
|
16553 EOF
|
|
16554 cat >> confdefs.h <<EOF
|
|
16555 #define C_SWITCH_SITE $null_string
|
|
16556 EOF
|
|
16557 }
|
|
16558
|
|
16559
|
|
16560
|
181
|
16561 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
16562 Defining GNU_MALLOC
|
|
16563 EOF
|
|
16564 cat >> confdefs.h <<\EOF
|
|
16565 #define GNU_MALLOC 1
|
|
16566 EOF
|
|
16567 }
|
|
16568
|
181
|
16569 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
16570 Defining USE_SYSTEM_MALLOC
|
|
16571 EOF
|
|
16572 cat >> confdefs.h <<\EOF
|
|
16573 #define USE_SYSTEM_MALLOC 1
|
|
16574 EOF
|
|
16575 }
|
|
16576
|
181
|
16577 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
16578 Defining USE_DEBUG_MALLOC
|
|
16579 EOF
|
|
16580 cat >> confdefs.h <<\EOF
|
|
16581 #define USE_DEBUG_MALLOC 1
|
|
16582 EOF
|
|
16583 }
|
|
16584
|
181
|
16585 { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
16586 Defining USE_SYSTEM_MALLOC
|
|
16587 EOF
|
|
16588 cat >> confdefs.h <<\EOF
|
|
16589 #define USE_SYSTEM_MALLOC 1
|
|
16590 EOF
|
|
16591 }
|
|
16592
|
149
|
16593 fi
|
169
|
16594 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
16595 Defining USE_GCC
|
|
16596 EOF
|
|
16597 cat >> confdefs.h <<\EOF
|
|
16598 #define USE_GCC 1
|
|
16599 EOF
|
|
16600 }
|
|
16601
|
|
16602 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16603 Defining EXTERNAL_WIDGET
|
|
16604 EOF
|
|
16605 cat >> confdefs.h <<\EOF
|
|
16606 #define EXTERNAL_WIDGET 1
|
|
16607 EOF
|
|
16608 }
|
|
16609
|
925
|
16610 test "$use_kkcc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16611 Defining USE_KKCC
|
|
16612 EOF
|
|
16613 cat >> confdefs.h <<\EOF
|
|
16614 #define USE_KKCC 1
|
|
16615 EOF
|
|
16616 }
|
|
16617
|
442
|
16618 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16619 Defining QUICK_BUILD
|
|
16620 EOF
|
|
16621 cat >> confdefs.h <<\EOF
|
|
16622 #define QUICK_BUILD 1
|
149
|
16623 EOF
|
|
16624 }
|
|
16625
|
380
|
16626 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16627 Defining PURIFY
|
|
16628 EOF
|
|
16629 cat >> confdefs.h <<\EOF
|
|
16630 #define PURIFY 1
|
|
16631 EOF
|
|
16632 }
|
|
16633
|
149
|
16634 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16635 Defining QUANTIFY
|
|
16636 EOF
|
|
16637 cat >> confdefs.h <<\EOF
|
|
16638 #define QUANTIFY 1
|
|
16639 EOF
|
|
16640 }
|
|
16641
|
|
16642 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16643 Defining MAIL_USE_POP
|
|
16644 EOF
|
|
16645 cat >> confdefs.h <<\EOF
|
|
16646 #define MAIL_USE_POP 1
|
|
16647 EOF
|
|
16648 }
|
|
16649
|
|
16650 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16651 Defining KERBEROS
|
|
16652 EOF
|
|
16653 cat >> confdefs.h <<\EOF
|
|
16654 #define KERBEROS 1
|
|
16655 EOF
|
|
16656 }
|
|
16657
|
|
16658 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16659 Defining HESIOD
|
|
16660 EOF
|
|
16661 cat >> confdefs.h <<\EOF
|
|
16662 #define HESIOD 1
|
|
16663 EOF
|
|
16664 }
|
|
16665
|
272
|
16666 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16667 Defining USE_UNION_TYPE
|
|
16668 EOF
|
|
16669 cat >> confdefs.h <<\EOF
|
|
16670 #define USE_UNION_TYPE 1
|
149
|
16671 EOF
|
0
|
16672 }
|
70
|
16673
|
424
|
16674 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16675 Defining PDUMP
|
|
16676 EOF
|
|
16677 cat >> confdefs.h <<\EOF
|
|
16678 #define PDUMP 1
|
|
16679 EOF
|
|
16680 }
|
|
16681
|
724
|
16682 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16683 Defining IPV6_CANONICALIZE
|
|
16684 EOF
|
|
16685 cat >> confdefs.h <<\EOF
|
|
16686 #define IPV6_CANONICALIZE 1
|
|
16687 EOF
|
|
16688 }
|
|
16689
|
70
|
16690
|
0
|
16691
|
1889
|
16692
|
118
|
16693 (
|
149
|
16694 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
|
|
16695 else
|
|
16696 echo "uname -a: `uname -a`"
|
|
16697 fi
|
|
16698 echo ""
|
|
16699 echo "$0 $quoted_arguments"
|
261
|
16700 ) > Installation
|
|
16701
|
414
|
16702 if test ! -z ${emacs_beta_version} ; then
|
|
16703 if test -z "${emacs_is_beta}" ; then
|
|
16704 xemacs_betaname=".${emacs_beta_version}"
|
|
16705 else
|
|
16706 xemacs_betaname="-b${emacs_beta_version}"
|
|
16707 fi
|
|
16708 else
|
430
|
16709 xemacs_betaname=""
|
414
|
16710 fi
|
149
|
16711
|
116
|
16712 (
|
0
|
16713 echo "
|
|
16714
|
975
|
16715 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" $xemacs_extra_name configured for \`$canonical'.
|
442
|
16716 "
|
|
16717 echo "
|
1889
|
16718 Compilation Environment and Installation Defaults:"
|
442
|
16719 echo " Source code location: $srcdir"
|
|
16720 echo " Installation prefix: $prefix"
|
70
|
16721 if test -n "$site_includes"; then
|
442
|
16722 echo " Additional header files: $site_includes"
|
149
|
16723 fi
|
|
16724 if test -n "$site_libraries"; then
|
442
|
16725 echo " Additional libraries: $site_libraries"
|
149
|
16726 fi
|
209
|
16727 if test -n "$site_prefixes"; then
|
442
|
16728 echo " Additional prefixes: $site_prefixes"
|
209
|
16729 fi
|
149
|
16730 if test -n "$runpath"; then
|
442
|
16731 echo " Runtime library search path: $runpath"
|
|
16732 fi
|
|
16733
|
|
16734 if test -n "$opsysfile"
|
|
16735 then echo " Operating system description file: \`$opsysfile'"
|
|
16736 else echo " Not using any operating system description file"
|
|
16737 fi
|
|
16738 if test -n "$machfile"
|
|
16739 then echo " Machine description file: \`$machfile'"
|
|
16740 else echo " Not using any machine description file"
|
|
16741 fi
|
|
16742
|
1889
|
16743 echo " Compiler version: $compiler_version"
|
|
16744 if test -n "$gcc_compiler_specs"; then
|
|
16745 echo " - GCC specs file: $gcc_compiler_specs"
|
|
16746 fi
|
|
16747 echo " - Compiler command: $XEMACS_CC $XE_CFLAGS"
|
|
16748 if test "$CC" != "$XEMACS_CC"; then
|
|
16749 echo " Compiler version for lib-src: (detection code unimplemented)"
|
|
16750 echo " - Compiler command for lib-src: $CC $CFLAGS"
|
|
16751 if test "$xemacs_cc_cc_mismatch" = "yes"; then
|
|
16752 echo " WARNING: CC and XEMACS_CC mismatched; check CFLAGS carefully."
|
|
16753 fi
|
|
16754 fi
|
|
16755 echo " libc version: $libc_version"
|
442
|
16756 echo " Relocating allocator for buffers: $rel_alloc"
|
|
16757 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
|
708
|
16758 case "$ld_switch_site" in
|
|
16759 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
|
|
16760 - Consider configuring with --pdump." ;;
|
|
16761 esac
|
442
|
16762
|
|
16763 echo "
|
|
16764 Window System:"
|
|
16765 if test "$with_msw" = "yes"; then
|
|
16766 echo " Compiling in support for the Microsoft window system."
|
|
16767 fi
|
|
16768 if test "$with_x11" = "yes"; then
|
|
16769 echo " Compiling in support for the X window system:"
|
|
16770 echo " - X Windows headers location: $x_includes"
|
|
16771 echo " - X Windows libraries location: $x_libraries"
|
|
16772 if test "$with_xauth" != yes; then
|
|
16773 echo " - Xau (X authority) not available."
|
|
16774 fi
|
|
16775 if test "$with_xmu" != yes; then
|
|
16776 echo " - Xmu library not available; substituting equivalent routines."
|
|
16777 fi
|
|
16778 if test "$with_wmcommand" != no; then
|
|
16779 echo " - Handling WM_COMMAND properly."
|
|
16780 fi
|
|
16781 fi
|
|
16782 if test "$need_athena" = "yes"; then
|
|
16783 echo " Compiling in support for the Athena widget set:"
|
|
16784 echo " - Athena headers location: $athena_h_path"
|
|
16785 echo " - Athena library to link: $athena_lib"
|
|
16786 fi
|
|
16787 case "$with_menubars" in
|
462
|
16788 gtk ) echo " Using GTK menubars." ;;
|
442
|
16789 lucid ) echo " Using Lucid menubars." ;;
|
|
16790 motif ) echo " Using Motif menubars."
|
|
16791 echo " *WARNING* The Motif menubar implementation is currently buggy."
|
|
16792 echo " We recommend using the Lucid menubar instead."
|
|
16793 echo " Re-run configure with --with-menubars='lucid'." ;;
|
|
16794 msw ) echo " Using MS-Windows menubars." ;;
|
|
16795 esac
|
|
16796 case "$with_scrollbars" in
|
462
|
16797 gtk ) echo " Using GTK scrollbars." ;;
|
442
|
16798 lucid ) echo " Using Lucid scrollbars." ;;
|
|
16799 motif ) echo " Using Motif scrollbars." ;;
|
|
16800 athena ) echo " Using Athena scrollbars." ;;
|
|
16801 msw ) echo " Using MS-Windows scrollbars." ;;
|
|
16802 esac
|
|
16803 case "$with_dialogs" in
|
462
|
16804 gtk ) echo " Using GTK dialog boxes." ;;
|
442
|
16805 motif ) echo " Using Motif dialog boxes."
|
|
16806 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
|
|
16807 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
|
|
16808 echo " We recommend using the Athena dialog boxes instead."
|
|
16809 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
|
|
16810 echo " Read the PROBLEMS file for more information."
|
|
16811 fi; fi ;;
|
|
16812 athena ) echo " Using Athena dialog boxes." ;;
|
|
16813 msw ) echo " Using MS-Windows dialog boxes." ;;
|
|
16814 esac
|
|
16815 case "$with_widgets" in
|
462
|
16816 gtk ) echo " Using GTK native widgets." ;;
|
442
|
16817 motif ) echo " Using Motif native widgets." ;;
|
|
16818 athena ) echo " Using Athena native widgets." ;;
|
|
16819 msw ) echo " Using MS-Windows native widgets." ;;
|
|
16820 esac
|
|
16821 if test "$with_dragndrop" = yes; then
|
|
16822 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
|
|
16823 echo " - Drag'n'Drop prototype: $dragndrop_proto."
|
|
16824 fi
|
|
16825
|
|
16826 echo "
|
|
16827 TTY:"
|
|
16828 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
16829 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
|
|
16830
|
|
16831 echo "
|
|
16832 Images:"
|
|
16833 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
|
153
|
16834 if test "$with_xpm" = yes; then
|
442
|
16835 echo " Compiling in support for XPM images."
|
175
|
16836 elif test "$with_x11" = yes; then
|
442
|
16837 echo " WARNING: -----------------------------------------------------------"
|
|
16838 echo " WARNING: Compiling without XPM image support."
|
373
|
16839 if test "$xpm_problem" != ""; then
|
|
16840 echo " Reason: $xpm_problem"
|
|
16841 fi
|
|
16842 echo " WARNING: You should strongly consider installing XPM."
|
151
|
16843 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
|
373
|
16844 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
442
|
16845 echo " WARNING: -----------------------------------------------------------"
|
371
|
16846 fi
|
373
|
16847 if test "$with_png" = yes; then
|
442
|
16848 echo " Compiling in support for PNG images."
|
373
|
16849 elif test "$window_system" != "none"; then
|
442
|
16850 echo " WARNING: -----------------------------------------------------------"
|
373
|
16851 echo " WARNING: Compiling without PNG image support."
|
|
16852 if test "$png_problem" != ""; then
|
|
16853 echo " Reason: $png_problem"
|
|
16854 fi
|
|
16855 echo " WARNING: You should strongly consider installing the PNG libraries."
|
|
16856 echo " WARNING: Otherwise certain images and glyphs may not display."
|
|
16857 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
442
|
16858 echo " WARNING: -----------------------------------------------------------"
|
|
16859 fi
|
|
16860 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
|
|
16861 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
|
310
|
16862 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
|
432
|
16863
|
442
|
16864 echo "
|
|
16865 Sound:"
|
|
16866 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
|
|
16867 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
|
|
16868 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
|
|
16869 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
|
|
16870
|
|
16871 echo "
|
|
16872 Databases:"
|
|
16873 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
|
116
|
16874 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
426
|
16875 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
|
442
|
16876 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
|
|
16877 if test "$with_postgresql" = yes; then
|
|
16878 echo " Compiling in support for PostgreSQL."
|
|
16879 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
|
|
16880 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
|
|
16881 fi
|
|
16882
|
|
16883 echo "
|
|
16884 Internationalization:"
|
|
16885 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
|
|
16886 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
|
|
16887 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
|
|
16888 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
|
|
16889 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
|
|
16890 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
120
|
16891 if test "$with_wnn" = yes; then
|
|
16892 echo " Compiling in support for the WNN input method on Mule."
|
442
|
16893 test "$with_wnn6" = yes && echo " - Using WNN version 6."
|
|
16894 fi
|
|
16895
|
|
16896 echo "
|
|
16897 Mail:"
|
|
16898 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
|
|
16899 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
|
|
16900 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
|
|
16901 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
|
|
16902
|
|
16903 echo "
|
|
16904 Other Features:"
|
708
|
16905 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
|
116
|
16906 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
149
|
16907 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
|
442
|
16908 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
16909 test "$with_dnet" = yes && echo " Compiling in support for DNET."
|
|
16910 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
|
1984
|
16911 test "$use_number_lib" = "gmp" && echo " Compiling in support for more number types using the GNU MP library."
|
|
16912 test "$use_number_lib" = "mp" && echo " Compiling in support for more number types using the BSD MP library."
|
1202
|
16913 if test "$use_union_type" = yes ; then
|
|
16914 echo " Using the union type for Lisp_Objects."
|
|
16915 echo " WARNING: ---------------------------------------------------------"
|
|
16916 echo " WARNING: This tends to trigger compiler bugs, especially when"
|
|
16917 echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have"
|
2131
|
16918 echo " WARNING: been seen with various versions of GCC (up to about 2.95),"
|
|
16919 echo " WARNING: and recently with Visual C++ as well (mid-2003)."
|
|
16920 echo " WARNING: More recent versions may be safer, or not."
|
1202
|
16921 echo " WARNING: ---------------------------------------------------------"
|
|
16922 fi
|
925
|
16923 test "$use_kkcc" = yes && echo " Using the new GC algorithms."
|
442
|
16924 test "$pdump" = yes && echo " Using the new portable dumper."
|
|
16925 test "$debug" = yes && echo " Compiling in support for extra debugging code."
|
|
16926 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
|
800
|
16927 if test "$error_check_extents $error_check_types $error_check_text $error_check_gc $error_check_malloc $error_check_glyphs $error_check_byte_code $error_check_display $error_check_structures" \
|
831
|
16928 != "no no no no no no no no no"; then
|
2131
|
16929 echo " Compiling in support for runtime error checking."
|
151
|
16930 echo " WARNING: ---------------------------------------------------------"
|
|
16931 echo " WARNING: XEmacs will run noticeably more slowly as a result."
|
|
16932 echo " WARNING: Error checking is on by default for XEmacs beta releases."
|
|
16933 echo " WARNING: ---------------------------------------------------------"
|
|
16934 fi
|
118
|
16935 echo ""
|
116
|
16936 ) | tee -a Installation
|
118
|
16937 echo ""
|
|
16938
|
70
|
16939
|
0
|
16940 # Remove any trailing slashes in these variables.
|
149
|
16941 test -n "$prefix" &&
|
159
|
16942 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
16943 test -n "$exec_prefix" &&
|
159
|
16944 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
16945
|
|
16946
|
272
|
16947 for file in $internal_makefile_list; do
|
1111
|
16948 case $file in
|
|
16949 src/Makefile.in ) file="src/Makefile.in:src/Makefile.in.in:src/depend" ;;
|
|
16950 modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;;
|
|
16951 esac
|
430
|
16952 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
|
272
|
16953 done
|
1633
|
16954 ac_output_files="$ac_output_files src/paths.h src/xemacs.def.in lib-src/config.values"
|
430
|
16955 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
|
16956
|
149
|
16957 trap '' 1 2 15
|
|
16958
|
|
16959 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
16960
|
|
16961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
16962 # Let make expand exec_prefix.
|
|
16963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
0
|
16964
|
|
16965 # Any assignment to VPATH causes Sun make to only execute
|
|
16966 # the first set of double-colon rules, so remove it if not needed.
|
|
16967 # If there is a colon in the path, we need to keep it.
|
|
16968 if test "x$srcdir" = x.; then
|
|
16969 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
16970 fi
|
|
16971
|
149
|
16972 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
16973
|
|
16974 DEFS=-DHAVE_CONFIG_H
|
|
16975
|
|
16976 # Without the "./", some shells look in PATH for config.status.
|
|
16977 : ${CONFIG_STATUS=./config.status}
|
|
16978
|
|
16979 echo creating $CONFIG_STATUS
|
|
16980 rm -f $CONFIG_STATUS
|
|
16981 cat > $CONFIG_STATUS <<EOF
|
|
16982 #! /bin/sh
|
0
|
16983 # Generated automatically by configure.
|
|
16984 # Run this file to recreate the current configuration.
|
|
16985 # This directory was configured as follows,
|
|
16986 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
16987 #
|
149
|
16988 # $0 $ac_configure_args
|
|
16989 #
|
|
16990 # Compiler output produced by configure, useful for debugging
|
|
16991 # configure, is in ./config.log if it exists.
|
|
16992
|
|
16993 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
0
|
16994 for ac_option
|
|
16995 do
|
|
16996 case "\$ac_option" in
|
|
16997 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
149
|
16998 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
16999 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
0
|
17000 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
420
|
17001 echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
0
|
17002 exit 0 ;;
|
|
17003 -help | --help | --hel | --he | --h)
|
|
17004 echo "\$ac_cs_usage"; exit 0 ;;
|
|
17005 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
17006 esac
|
|
17007 done
|
|
17008
|
|
17009 ac_given_srcdir=$srcdir
|
149
|
17010 ac_given_INSTALL="$INSTALL"
|
|
17011
|
276
|
17012 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
149
|
17013 EOF
|
|
17014 cat >> $CONFIG_STATUS <<EOF
|
|
17015
|
|
17016 # Protect against being on the right side of a sed subst in config.status.
|
|
17017 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
17018 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
0
|
17019 $ac_vpsub
|
|
17020 $extrasub
|
420
|
17021 s%@SHELL@%$SHELL%g
|
149
|
17022 s%@CFLAGS@%$CFLAGS%g
|
|
17023 s%@CPPFLAGS@%$CPPFLAGS%g
|
|
17024 s%@CXXFLAGS@%$CXXFLAGS%g
|
420
|
17025 s%@FFLAGS@%$FFLAGS%g
|
149
|
17026 s%@DEFS@%$DEFS%g
|
|
17027 s%@LDFLAGS@%$LDFLAGS%g
|
|
17028 s%@LIBS@%$LIBS%g
|
|
17029 s%@exec_prefix@%$exec_prefix%g
|
|
17030 s%@prefix@%$prefix%g
|
|
17031 s%@program_transform_name@%$program_transform_name%g
|
|
17032 s%@bindir@%$bindir%g
|
|
17033 s%@sbindir@%$sbindir%g
|
|
17034 s%@libexecdir@%$libexecdir%g
|
|
17035 s%@datadir@%$datadir%g
|
|
17036 s%@sysconfdir@%$sysconfdir%g
|
|
17037 s%@sharedstatedir@%$sharedstatedir%g
|
|
17038 s%@localstatedir@%$localstatedir%g
|
|
17039 s%@libdir@%$libdir%g
|
|
17040 s%@includedir@%$includedir%g
|
|
17041 s%@oldincludedir@%$oldincludedir%g
|
|
17042 s%@infodir@%$infodir%g
|
|
17043 s%@mandir@%$mandir%g
|
0
|
17044 s%@LN_S@%$LN_S%g
|
181
|
17045 s%@blddir@%$blddir%g
|
0
|
17046 s%@CC@%$CC%g
|
|
17047 s%@CPP@%$CPP%g
|
207
|
17048 s%@start_flags@%$start_flags%g
|
163
|
17049 s%@ld_switch_shared@%$ld_switch_shared%g
|
|
17050 s%@start_files@%$start_files%g
|
|
17051 s%@ld@%$ld%g
|
|
17052 s%@lib_gcc@%$lib_gcc%g
|
0
|
17053 s%@RANLIB@%$RANLIB%g
|
|
17054 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
420
|
17055 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
0
|
17056 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
17057 s%@YACC@%$YACC%g
|
|
17058 s%@SET_MAKE@%$SET_MAKE%g
|
462
|
17059 s%@GTK_CONFIG@%$GTK_CONFIG%g
|
149
|
17060 s%@X_CFLAGS@%$X_CFLAGS%g
|
|
17061 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
|
17062 s%@X_LIBS@%$X_LIBS%g
|
|
17063 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
276
|
17064 s%@install_pp@%$install_pp%g
|
159
|
17065 s%@libs_xauth@%$libs_xauth%g
|
274
|
17066 s%@dnd_objs@%$dnd_objs%g
|
1651
|
17067 s%@LIBSTDCPP@%$LIBSTDCPP%g
|
265
|
17068 s%@dll_ld@%$dll_ld%g
|
|
17069 s%@dll_cflags@%$dll_cflags%g
|
388
|
17070 s%@dll_ldflags@%$dll_ldflags%g
|
|
17071 s%@dll_post@%$dll_post%g
|
|
17072 s%@dll_ldo@%$dll_ldo%g
|
|
17073 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
|
997
|
17074 s%@with_modules@%$with_modules%g
|
|
17075 s%@MOD_CC@%$MOD_CC%g
|
|
17076 s%@MODARCHDIR@%$MODARCHDIR%g
|
|
17077 s%@MAKE_DOCFILE@%$MAKE_DOCFILE%g
|
|
17078 s%@MODCFLAGS@%$MODCFLAGS%g
|
|
17079 s%@INSTALLPATH@%$INSTALLPATH%g
|
|
17080 s%@MOD_INSTALL_PROGRAM@%$MOD_INSTALL_PROGRAM%g
|
|
17081 s%@OBJECT_TO_BUILD@%$OBJECT_TO_BUILD%g
|
|
17082 s%@ldap_libs@%$ldap_libs%g
|
|
17083 s%@postgresql_libs@%$postgresql_libs%g
|
1470
|
17084 s%@lwlib_objs@%$lwlib_objs%g
|
|
17085 s%@ALLOCA@%$ALLOCA%g
|
|
17086 s%@have_esd_config@%$have_esd_config%g
|
|
17087 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
|
167
|
17088 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
|
149
|
17089 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
|
|
17090 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
|
280
|
17091 s%@PROGNAME@%$PROGNAME%g
|
0
|
17092 s%@version@%$version%g
|
|
17093 s%@configuration@%$configuration%g
|
|
17094 s%@canonical@%$canonical%g
|
422
|
17095 s%@inststaticdir@%$inststaticdir%g
|
|
17096 s%@instvardir@%$instvardir%g
|
0
|
17097 s%@srcdir@%$srcdir%g
|
|
17098 s%@statedir@%$statedir%g
|
452
|
17099 s%@extra_includes@%$extra_includes%g
|
420
|
17100 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
|
278
|
17101 s%@PREFIX@%$PREFIX%g
|
420
|
17102 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
|
278
|
17103 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
|
274
|
17104 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
|
|
17105 s%@INFODIR@%$INFODIR%g
|
203
|
17106 s%@infopath@%$infopath%g
|
274
|
17107 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
|
|
17108 s%@INFOPATH@%$INFOPATH%g
|
269
|
17109 s%@package_path@%$package_path%g
|
274
|
17110 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
|
|
17111 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
|
0
|
17112 s%@lispdir@%$lispdir%g
|
274
|
17113 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
|
|
17114 s%@LISPDIR@%$LISPDIR%g
|
388
|
17115 s%@moduledir@%$moduledir%g
|
|
17116 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
|
|
17117 s%@MODULEDIR@%$MODULEDIR%g
|
|
17118 s%@sitelispdir@%$sitelispdir%g
|
|
17119 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
|
|
17120 s%@SITELISPDIR@%$SITELISPDIR%g
|
|
17121 s%@sitemoduledir@%$sitemoduledir%g
|
|
17122 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
|
|
17123 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
|
0
|
17124 s%@etcdir@%$etcdir%g
|
274
|
17125 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
|
|
17126 s%@ETCDIR@%$ETCDIR%g
|
420
|
17127 s%@docdir@%$docdir%g
|
|
17128 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
|
|
17129 s%@DOCDIR@%$DOCDIR%g
|
0
|
17130 s%@archlibdir@%$archlibdir%g
|
274
|
17131 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
|
|
17132 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
|
0
|
17133 s%@bitmapdir@%$bitmapdir%g
|
149
|
17134 s%@extra_objs@%$extra_objs%g
|
0
|
17135 s%@machfile@%$machfile%g
|
|
17136 s%@opsysfile@%$opsysfile%g
|
149
|
17137 s%@c_switch_general@%$c_switch_general%g
|
|
17138 s%@c_switch_window_system@%$c_switch_window_system%g
|
|
17139 s%@c_switch_all@%$c_switch_all%g
|
|
17140 s%@ld_switch_general@%$ld_switch_general%g
|
|
17141 s%@ld_switch_window_system@%$ld_switch_window_system%g
|
|
17142 s%@ld_switch_all@%$ld_switch_all%g
|
|
17143 s%@ld_libs_general@%$ld_libs_general%g
|
|
17144 s%@ld_libs_window_system@%$ld_libs_window_system%g
|
|
17145 s%@ld_libs_all@%$ld_libs_all%g
|
173
|
17146 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
|
149
|
17147 s%@native_sound_lib@%$native_sound_lib%g
|
|
17148 s%@sound_cflags@%$sound_cflags%g
|
0
|
17149 s%@dynodump_arch@%$dynodump_arch%g
|
380
|
17150 s%@XEMACS_CC@%$XEMACS_CC%g
|
1889
|
17151 s%@XE_CFLAGS@%$XE_CFLAGS%g
|
0
|
17152 s%@internal_makefile_list@%$internal_makefile_list%g
|
149
|
17153
|
|
17154 CEOF
|
|
17155 EOF
|
|
17156
|
|
17157 cat >> $CONFIG_STATUS <<\EOF
|
|
17158
|
|
17159 # Split the substitutions into bite-sized pieces for seds with
|
|
17160 # small command number limits, like on Digital OSF/1 and HP-UX.
|
|
17161 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
17162 ac_file=1 # Number of current file.
|
|
17163 ac_beg=1 # First line for current file.
|
|
17164 ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
17165 ac_more_lines=:
|
|
17166 ac_sed_cmds=""
|
|
17167 while $ac_more_lines; do
|
|
17168 if test $ac_beg -gt 1; then
|
|
17169 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
17170 else
|
|
17171 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
17172 fi
|
|
17173 if test ! -s conftest.s$ac_file; then
|
|
17174 ac_more_lines=false
|
|
17175 rm -f conftest.s$ac_file
|
|
17176 else
|
|
17177 if test -z "$ac_sed_cmds"; then
|
|
17178 ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
17179 else
|
|
17180 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
17181 fi
|
|
17182 ac_file=`expr $ac_file + 1`
|
|
17183 ac_beg=$ac_end
|
|
17184 ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
17185 fi
|
|
17186 done
|
|
17187 if test -z "$ac_sed_cmds"; then
|
|
17188 ac_sed_cmds=cat
|
|
17189 fi
|
|
17190 EOF
|
|
17191
|
|
17192 cat >> $CONFIG_STATUS <<EOF
|
|
17193
|
272
|
17194 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
|
149
|
17195 EOF
|
|
17196 cat >> $CONFIG_STATUS <<\EOF
|
|
17197 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
17198 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
17199 case "$ac_file" in
|
|
17200 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
17201 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
17202 *) ac_file_in="${ac_file}.in" ;;
|
|
17203 esac
|
|
17204
|
|
17205 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
17206
|
|
17207 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
17208 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
17209 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
17210 # The file is in a subdirectory.
|
|
17211 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
17212 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
17213 # A "../" for each directory in $ac_dir_suffix.
|
|
17214 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
17215 else
|
|
17216 ac_dir_suffix= ac_dots=
|
|
17217 fi
|
|
17218
|
|
17219 case "$ac_given_srcdir" in
|
|
17220 .) srcdir=.
|
|
17221 if test -z "$ac_dots"; then top_srcdir=.
|
|
17222 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
17223 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
17224 *) # Relative path.
|
|
17225 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
17226 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
17227 esac
|
|
17228
|
|
17229 case "$ac_given_INSTALL" in
|
|
17230 [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
17231 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
17232 esac
|
|
17233
|
|
17234 echo creating "$ac_file"
|
|
17235 rm -f "$ac_file"
|
|
17236 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
17237 case "$ac_file" in
|
|
17238 *Makefile*) ac_comsub="1i\\
|
|
17239 # $configure_input" ;;
|
|
17240 *) ac_comsub= ;;
|
|
17241 esac
|
|
17242
|
|
17243 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
17244 sed -e "$ac_comsub
|
|
17245 s%@configure_input@%$configure_input%g
|
|
17246 s%@srcdir@%$srcdir%g
|
0
|
17247 s%@top_srcdir@%$top_srcdir%g
|
149
|
17248 s%@INSTALL@%$INSTALL%g
|
|
17249 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
0
|
17250 fi; done
|
149
|
17251 rm -f conftest.s*
|
|
17252
|
|
17253 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
17254 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
0
|
17255 #
|
|
17256 # ac_d sets the value in "#define NAME VALUE" lines.
|
149
|
17257 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
17258 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
0
|
17259 ac_dC='\3'
|
149
|
17260 ac_dD='%g'
|
0
|
17261 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
149
|
17262 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
17263 ac_uB='\([ ]\)%\1#\2define\3'
|
0
|
17264 ac_uC=' '
|
149
|
17265 ac_uD='\4%g'
|
0
|
17266 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
149
|
17267 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
17268 ac_eB='$%\1#\2define\3'
|
0
|
17269 ac_eC=' '
|
149
|
17270 ac_eD='%g'
|
|
17271
|
|
17272 if test "${CONFIG_HEADERS+set}" != set; then
|
|
17273 EOF
|
|
17274 cat >> $CONFIG_STATUS <<EOF
|
276
|
17275 CONFIG_HEADERS="src/config.h lwlib/config.h"
|
149
|
17276 EOF
|
|
17277 cat >> $CONFIG_STATUS <<\EOF
|
|
17278 fi
|
|
17279 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
17280 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
17281 case "$ac_file" in
|
|
17282 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
17283 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
17284 *) ac_file_in="${ac_file}.in" ;;
|
|
17285 esac
|
|
17286
|
|
17287 echo creating $ac_file
|
|
17288
|
|
17289 rm -f conftest.frag conftest.in conftest.out
|
|
17290 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
17291 cat $ac_file_inputs > conftest.in
|
|
17292
|
|
17293 EOF
|
|
17294
|
|
17295 # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
17296 # the proper values into config.h.in to produce config.h. And first:
|
|
17297 # Protect against being on the right side of a sed subst in config.status.
|
|
17298 # Protect against being in an unquoted here document in config.status.
|
|
17299 rm -f conftest.vals
|
|
17300 cat > conftest.hdr <<\EOF
|
|
17301 s/[\\&%]/\\&/g
|
|
17302 s%[\\$`]%\\&%g
|
|
17303 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
17304 s%ac_d%ac_u%gp
|
|
17305 s%ac_u%ac_e%gp
|
|
17306 EOF
|
|
17307 sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
17308 rm -f conftest.hdr
|
|
17309
|
|
17310 # This sed command replaces #undef with comments. This is necessary, for
|
|
17311 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
17312 # on some systems where configure will not decide to define it.
|
|
17313 cat >> conftest.vals <<\EOF
|
|
17314 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
17315 EOF
|
|
17316
|
|
17317 # Break up conftest.vals because some shells have a limit on
|
|
17318 # the size of here documents, and old seds have small limits too.
|
|
17319
|
|
17320 rm -f conftest.tail
|
0
|
17321 while :
|
|
17322 do
|
149
|
17323 ac_lines=`grep -c . conftest.vals`
|
|
17324 # grep -c gives empty output for an empty file on some AIX systems.
|
0
|
17325 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
149
|
17326 # Write a limited-size here document to conftest.frag.
|
|
17327 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
17328 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
17329 echo 'CEOF
|
|
17330 sed -f conftest.frag conftest.in > conftest.out
|
|
17331 rm -f conftest.in
|
|
17332 mv conftest.out conftest.in
|
|
17333 ' >> $CONFIG_STATUS
|
|
17334 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
17335 rm -f conftest.vals
|
|
17336 mv conftest.tail conftest.vals
|
0
|
17337 done
|
149
|
17338 rm -f conftest.vals
|
|
17339
|
|
17340 cat >> $CONFIG_STATUS <<\EOF
|
|
17341 rm -f conftest.frag conftest.h
|
0
|
17342 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
149
|
17343 cat conftest.in >> conftest.h
|
|
17344 rm -f conftest.in
|
0
|
17345 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
17346 echo "$ac_file is unchanged"
|
|
17347 rm -f conftest.h
|
|
17348 else
|
149
|
17349 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
17350 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
17351 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
17352 # The file is in a subdirectory.
|
|
17353 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
17354 fi
|
0
|
17355 rm -f $ac_file
|
|
17356 mv conftest.h $ac_file
|
|
17357 fi
|
|
17358 fi; done
|
149
|
17359
|
|
17360 EOF
|
|
17361 cat >> $CONFIG_STATUS <<EOF
|
|
17362 CPP="$CPP"
|
|
17363 top_srcdir="$srcdir"
|
|
17364 MAKE_SUBDIR="$MAKE_SUBDIR"
|
|
17365
|
|
17366 EOF
|
|
17367 cat >> $CONFIG_STATUS <<\EOF
|
380
|
17368 for dir in . $MAKE_SUBDIR; do
|
151
|
17369 (
|
149
|
17370 cd $dir
|
|
17371 rm -f junk.c
|
163
|
17372 < Makefile.in \
|
165
|
17373 sed -e '/^# Generated/d' \
|
163
|
17374 -e 's%/\*\*/#.*%%' \
|
165
|
17375 -e 's/^ *# */#/' \
|
163
|
17376 -e '/^##/d' \
|
|
17377 -e '/^#/ {
|
|
17378 p
|
|
17379 d
|
380
|
17380 }' \
|
|
17381 -e '/./ {
|
163
|
17382 s/\([\"]\)/\\\1/g
|
|
17383 s/^/"/
|
|
17384 s/$/"/
|
|
17385 }' > junk.c;
|
380
|
17386
|
|
17387
|
|
17388
|
|
17389 echo creating $dir/Makefile
|
|
17390 $CPP -I. -I${top_srcdir}/src junk.c \
|
|
17391 | sed -e 's/^\#.*//' \
|
|
17392 -e 's/^[ ][ ]*$//'\
|
|
17393 -e 's/^ / /' \
|
442
|
17394 -e '/^[ ]*$/d' \
|
|
17395 -e '/^\"/ {
|
380
|
17396 s/\\\([\"]\)/\1/g
|
|
17397 s/^[ ]*\"//
|
|
17398 s/\"[ ]*$//
|
|
17399 }' > Makefile.new
|
149
|
17400 chmod 444 Makefile.new
|
|
17401 mv -f Makefile.new Makefile
|
380
|
17402
|
|
17403 echo creating $dir/GNUmakefile
|
|
17404 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
|
|
17405 | sed -e 's/^\#.*//' \
|
|
17406 -e 's/^[ ][ ]*$//'\
|
|
17407 -e 's/^ / /' \
|
442
|
17408 -e '/^[ ]*$/d' \
|
|
17409 -e '/^\"/ {
|
380
|
17410 s/\\\([\"]\)/\1/g
|
|
17411 s/^[ ]*\"//
|
|
17412 s/\"[ ]*$//
|
|
17413 }' > Makefile.new
|
|
17414 chmod 444 Makefile.new
|
|
17415 mv -f Makefile.new GNUmakefile
|
|
17416
|
1988
|
17417 if test -r "xemacs.def.in"; then
|
1633
|
17418 cp -f xemacs.def.in junk.c
|
|
17419 echo creating $dir/xemacs.def
|
|
17420 $CPP -I. -I${top_srcdir}/src junk.c \
|
|
17421 | sed -e 's/^\#.*//' \
|
|
17422 -e 's/^[ ][ ]*$//'\
|
|
17423 -e 's/^ / /' \
|
|
17424 -e '/^[ ]*$/d' \
|
|
17425 -e '/^\"/ {
|
|
17426 s/\\\([\"]\)/\1/g
|
|
17427 s/^[ ]*\"//
|
|
17428 s/\"[ ]*$//
|
|
17429 }' > Makefile.new
|
|
17430 chmod 444 Makefile.new
|
|
17431 mv -f Makefile.new xemacs.def
|
|
17432
|
|
17433 fi
|
380
|
17434 rm -f junk.c
|
|
17435 )
|
149
|
17436 done
|
0
|
17437
|
181
|
17438 sed < config.status >> lib-src/config.values \
|
|
17439 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
|
|
17440 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
|
|
17441 -e 's/^\([^ ]*\) $/\1 ""/' \
|
|
17442 -e 's/ 1$/ t/'
|
175
|
17443
|
|
17444
|
0
|
17445 exit 0
|
|
17446 EOF
|
149
|
17447 chmod +x $CONFIG_STATUS
|
|
17448 rm -fr confdefs* $ac_clean_files
|
|
17449 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|