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 ;;
|
2048
|
2547 freebsd4.9)
|
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
|
1756
|
2942 cflags_warning="-Wall -w1"
|
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>
|
2048
|
4782 int main()
|
151
|
4783 {
|
|
4784 FILE *f=fopen("conftestval", "w");
|
2048
|
4785 if (!f) return(1);
|
151
|
4786 fprintf(f, "%d\n", sizeof(short));
|
2048
|
4787 return(0);
|
|
4788 }
|
|
4789 EOF
|
|
4790 if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4791 then
|
|
4792 ac_cv_sizeof_short=`cat conftestval`
|
|
4793 else
|
373
|
4794 conftest_rc="$?"
|
151
|
4795 echo "configure: failed program was:" >&5
|
|
4796 cat conftest.$ac_ext >&5
|
|
4797 rm -fr conftest*
|
|
4798 ac_cv_sizeof_short=0
|
|
4799 fi
|
|
4800 rm -fr conftest*
|
|
4801 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|
4802 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4803 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
|
|
4804 EOF
|
|
4805 cat >> confdefs.h <<EOF
|
|
4806 #define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
4807 EOF
|
|
4808 }
|
|
4809
|
|
4810
|
163
|
4811 if test "$ac_cv_sizeof_short" = 0; then
|
|
4812 echo ""
|
|
4813 echo "*** PANIC *** Configure tests are not working - compiler is broken."
|
|
4814 echo "*** PANIC *** Please examine config.log for compilation errors."
|
|
4815 exit 1
|
|
4816 fi
|
151
|
4817 echo $ac_n "checking size of int""... $ac_c" 1>&6
|
2048
|
4818 echo "configure:4819: checking size of int" >&5
|
|
4819
|
|
4820 cat > conftest.$ac_ext <<EOF
|
|
4821 #line 4822 "configure"
|
151
|
4822 #include "confdefs.h"
|
|
4823 #include <stdio.h>
|
2048
|
4824 int main()
|
151
|
4825 {
|
|
4826 FILE *f=fopen("conftestval", "w");
|
2048
|
4827 if (!f) return(1);
|
151
|
4828 fprintf(f, "%d\n", sizeof(int));
|
2048
|
4829 return(0);
|
|
4830 }
|
|
4831 EOF
|
|
4832 if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4833 then
|
|
4834 ac_cv_sizeof_int=`cat conftestval`
|
|
4835 else
|
373
|
4836 conftest_rc="$?"
|
151
|
4837 echo "configure: failed program was:" >&5
|
|
4838 cat conftest.$ac_ext >&5
|
|
4839 rm -fr conftest*
|
|
4840 ac_cv_sizeof_int=0
|
|
4841 fi
|
|
4842 rm -fr conftest*
|
|
4843 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
4844 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4845 Defining SIZEOF_INT = $ac_cv_sizeof_int
|
|
4846 EOF
|
|
4847 cat >> confdefs.h <<EOF
|
|
4848 #define SIZEOF_INT $ac_cv_sizeof_int
|
|
4849 EOF
|
|
4850 }
|
|
4851
|
|
4852
|
|
4853 echo $ac_n "checking size of long""... $ac_c" 1>&6
|
2048
|
4854 echo "configure:4855: checking size of long" >&5
|
|
4855
|
|
4856 cat > conftest.$ac_ext <<EOF
|
|
4857 #line 4858 "configure"
|
151
|
4858 #include "confdefs.h"
|
|
4859 #include <stdio.h>
|
2048
|
4860 int main()
|
151
|
4861 {
|
|
4862 FILE *f=fopen("conftestval", "w");
|
2048
|
4863 if (!f) return(1);
|
151
|
4864 fprintf(f, "%d\n", sizeof(long));
|
2048
|
4865 return(0);
|
|
4866 }
|
|
4867 EOF
|
|
4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4869 then
|
|
4870 ac_cv_sizeof_long=`cat conftestval`
|
|
4871 else
|
373
|
4872 conftest_rc="$?"
|
151
|
4873 echo "configure: failed program was:" >&5
|
|
4874 cat conftest.$ac_ext >&5
|
|
4875 rm -fr conftest*
|
|
4876 ac_cv_sizeof_long=0
|
|
4877 fi
|
|
4878 rm -fr conftest*
|
|
4879 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
4880 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4881 Defining SIZEOF_LONG = $ac_cv_sizeof_long
|
|
4882 EOF
|
|
4883 cat >> confdefs.h <<EOF
|
|
4884 #define SIZEOF_LONG $ac_cv_sizeof_long
|
|
4885 EOF
|
|
4886 }
|
|
4887
|
|
4888
|
163
|
4889 echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
2048
|
4890 echo "configure:4891: checking size of long long" >&5
|
|
4891
|
|
4892 cat > conftest.$ac_ext <<EOF
|
|
4893 #line 4894 "configure"
|
163
|
4894 #include "confdefs.h"
|
|
4895 #include <stdio.h>
|
2048
|
4896 int main()
|
163
|
4897 {
|
|
4898 FILE *f=fopen("conftestval", "w");
|
2048
|
4899 if (!f) return(1);
|
163
|
4900 fprintf(f, "%d\n", sizeof(long long));
|
2048
|
4901 return(0);
|
|
4902 }
|
|
4903 EOF
|
|
4904 if { (eval echo configure:4905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4905 then
|
|
4906 ac_cv_sizeof_long_long=`cat conftestval`
|
|
4907 else
|
373
|
4908 conftest_rc="$?"
|
163
|
4909 echo "configure: failed program was:" >&5
|
|
4910 cat conftest.$ac_ext >&5
|
|
4911 rm -fr conftest*
|
|
4912 ac_cv_sizeof_long_long=0
|
|
4913 fi
|
|
4914 rm -fr conftest*
|
|
4915 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|
4916 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4917 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
|
|
4918 EOF
|
|
4919 cat >> confdefs.h <<EOF
|
|
4920 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|
4921 EOF
|
|
4922 }
|
|
4923
|
|
4924
|
|
4925 echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
2048
|
4926 echo "configure:4927: checking size of void *" >&5
|
|
4927
|
|
4928 cat > conftest.$ac_ext <<EOF
|
|
4929 #line 4930 "configure"
|
163
|
4930 #include "confdefs.h"
|
|
4931 #include <stdio.h>
|
2048
|
4932 int main()
|
163
|
4933 {
|
|
4934 FILE *f=fopen("conftestval", "w");
|
2048
|
4935 if (!f) return(1);
|
163
|
4936 fprintf(f, "%d\n", sizeof(void *));
|
2048
|
4937 return(0);
|
|
4938 }
|
|
4939 EOF
|
|
4940 if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4941 then
|
|
4942 ac_cv_sizeof_void_p=`cat conftestval`
|
|
4943 else
|
373
|
4944 conftest_rc="$?"
|
163
|
4945 echo "configure: failed program was:" >&5
|
|
4946 cat conftest.$ac_ext >&5
|
|
4947 rm -fr conftest*
|
|
4948 ac_cv_sizeof_void_p=0
|
|
4949 fi
|
|
4950 rm -fr conftest*
|
|
4951 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|
4952 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4953 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
|
|
4954 EOF
|
|
4955 cat >> confdefs.h <<EOF
|
|
4956 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
4957 EOF
|
|
4958 }
|
|
4959
|
|
4960
|
1984
|
4961 echo $ac_n "checking size of double""... $ac_c" 1>&6
|
2048
|
4962 echo "configure:4963: checking size of double" >&5
|
|
4963
|
|
4964 cat > conftest.$ac_ext <<EOF
|
|
4965 #line 4966 "configure"
|
1984
|
4966 #include "confdefs.h"
|
|
4967 #include <stdio.h>
|
2048
|
4968 int main()
|
1984
|
4969 {
|
|
4970 FILE *f=fopen("conftestval", "w");
|
2048
|
4971 if (!f) return(1);
|
1984
|
4972 fprintf(f, "%d\n", sizeof(double));
|
2048
|
4973 return(0);
|
|
4974 }
|
|
4975 EOF
|
|
4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
1984
|
4977 then
|
|
4978 ac_cv_sizeof_double=`cat conftestval`
|
|
4979 else
|
|
4980 conftest_rc="$?"
|
|
4981 echo "configure: failed program was:" >&5
|
|
4982 cat conftest.$ac_ext >&5
|
|
4983 rm -fr conftest*
|
|
4984 ac_cv_sizeof_double=0
|
|
4985 fi
|
|
4986 rm -fr conftest*
|
|
4987 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
|
|
4988 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4989 Defining SIZEOF_DOUBLE = $ac_cv_sizeof_double
|
|
4990 EOF
|
|
4991 cat >> confdefs.h <<EOF
|
|
4992 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
|
|
4993 EOF
|
|
4994 }
|
|
4995
|
|
4996
|
151
|
4997
|
149
|
4998 echo $ac_n "checking for long file names""... $ac_c" 1>&6
|
2048
|
4999 echo "configure:5000: checking for long file names" >&5
|
149
|
5000
|
|
5001 ac_cv_sys_long_file_names=yes
|
0
|
5002 # Test for long file names in all the places we know might matter:
|
|
5003 # . the current directory, where building will happen
|
149
|
5004 # $prefix/lib where we will be installing things
|
|
5005 # $exec_prefix/lib likewise
|
|
5006 # eval it to expand exec_prefix.
|
|
5007 # $TMPDIR if set, where it might want to write temporary files
|
|
5008 # if $TMPDIR is not set:
|
0
|
5009 # /tmp where it might want to write temporary files
|
|
5010 # /var/tmp likewise
|
|
5011 # /usr/tmp likewise
|
149
|
5012 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
|
|
5013 ac_tmpdirs="$TMPDIR"
|
|
5014 else
|
|
5015 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
|
|
5016 fi
|
|
5017 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
|
0
|
5018 test -d $ac_dir || continue
|
149
|
5019 test -w $ac_dir || continue # It is less confusing to not echo anything here.
|
0
|
5020 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
|
|
5021 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
|
|
5022 val=`cat $ac_dir/conftest9012345 2>/dev/null`
|
149
|
5023 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
|
|
5024 ac_cv_sys_long_file_names=no
|
|
5025 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
5026 break
|
0
|
5027 fi
|
149
|
5028 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
5029 done
|
|
5030
|
|
5031 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
|
|
5032 if test $ac_cv_sys_long_file_names = yes; then
|
|
5033 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5034 Defining HAVE_LONG_FILE_NAMES
|
|
5035 EOF
|
|
5036 cat >> confdefs.h <<\EOF
|
|
5037 #define HAVE_LONG_FILE_NAMES 1
|
|
5038 EOF
|
|
5039 }
|
|
5040
|
|
5041 fi
|
|
5042
|
|
5043
|
398
|
5044 echo $ac_n "checking for sin""... $ac_c" 1>&6
|
2048
|
5045 echo "configure:5046: checking for sin" >&5
|
|
5046
|
|
5047 cat > conftest.$ac_ext <<EOF
|
|
5048 #line 5049 "configure"
|
398
|
5049 #include "confdefs.h"
|
|
5050 /* System header to define __stub macros and hopefully few prototypes,
|
|
5051 which can conflict with char sin(); below. */
|
|
5052 #include <assert.h>
|
|
5053 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5054 /* We use char because int might match the return type of a gcc2
|
|
5055 builtin and then its argument prototype would still apply. */
|
|
5056 char sin();
|
|
5057
|
|
5058 int main() {
|
|
5059
|
|
5060 /* The GNU C library defines this for functions which it implements
|
|
5061 to always fail with ENOSYS. Some functions are actually named
|
|
5062 something starting with __ and the normal name is an alias. */
|
|
5063 #if defined (__stub_sin) || defined (__stub___sin)
|
|
5064 choke me
|
|
5065 #else
|
|
5066 sin();
|
|
5067 #endif
|
|
5068
|
|
5069 ; return 0; }
|
|
5070 EOF
|
2048
|
5071 if { (eval echo configure:5072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
5072 rm -rf conftest*
|
|
5073 eval "ac_cv_func_sin=yes"
|
|
5074 else
|
|
5075 echo "configure: failed program was:" >&5
|
|
5076 cat conftest.$ac_ext >&5
|
|
5077 rm -rf conftest*
|
|
5078 eval "ac_cv_func_sin=no"
|
|
5079 fi
|
|
5080 rm -f conftest*
|
|
5081
|
|
5082 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
|
|
5083 echo "$ac_t""yes" 1>&6
|
|
5084 :
|
|
5085 else
|
|
5086 echo "$ac_t""no" 1>&6
|
149
|
5087
|
207
|
5088 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
2048
|
5089 echo "configure:5090: checking for sin in -lm" >&5
|
207
|
5090 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
149
|
5091
|
|
5092 xe_check_libs=" -lm "
|
|
5093 cat > conftest.$ac_ext <<EOF
|
2048
|
5094 #line 5095 "configure"
|
149
|
5095 #include "confdefs.h"
|
|
5096 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5097 /* We use char because int might match the return type of a gcc2
|
|
5098 builtin and then its argument prototype would still apply. */
|
207
|
5099 char sin();
|
149
|
5100
|
|
5101 int main() {
|
207
|
5102 sin()
|
149
|
5103 ; return 0; }
|
|
5104 EOF
|
2048
|
5105 if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5106 rm -rf conftest*
|
|
5107 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5108 else
|
|
5109 echo "configure: failed program was:" >&5
|
|
5110 cat conftest.$ac_ext >&5
|
|
5111 rm -rf conftest*
|
|
5112 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5113 fi
|
|
5114 rm -f conftest*
|
|
5115 xe_check_libs=""
|
|
5116
|
151
|
5117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5118 echo "$ac_t""yes" 1>&6
|
398
|
5119 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
|
149
|
5120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
5121 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5122 Defining $ac_tr_lib
|
|
5123 EOF
|
|
5124 cat >> confdefs.h <<EOF
|
|
5125 #define $ac_tr_lib 1
|
|
5126 EOF
|
|
5127 }
|
|
5128
|
151
|
5129 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
|
|
5130
|
|
5131 else
|
|
5132 echo "$ac_t""no" 1>&6
|
|
5133 fi
|
|
5134
|
|
5135
|
398
|
5136 fi
|
|
5137
|
151
|
5138
|
1123
|
5139 cat > conftest.$ac_ext <<EOF
|
2048
|
5140 #line 5141 "configure"
|
243
|
5141 #include "confdefs.h"
|
|
5142 #include <math.h>
|
|
5143 int main() {
|
|
5144 return atanh(1.0) + asinh(1.0) + acosh(1.0);
|
|
5145 ; return 0; }
|
|
5146 EOF
|
2048
|
5147 if { (eval echo configure:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
243
|
5148 rm -rf conftest*
|
|
5149 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5150 Defining HAVE_INVERSE_HYPERBOLIC
|
|
5151 EOF
|
|
5152 cat >> confdefs.h <<\EOF
|
|
5153 #define HAVE_INVERSE_HYPERBOLIC 1
|
|
5154 EOF
|
|
5155 }
|
|
5156
|
|
5157 else
|
|
5158 echo "configure: failed program was:" >&5
|
|
5159 cat conftest.$ac_ext >&5
|
|
5160 fi
|
|
5161 rm -f conftest*
|
|
5162
|
567
|
5163 for ac_func in mkstemp
|
438
|
5164 do
|
|
5165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
5166 echo "configure:5167: checking for $ac_func" >&5
|
|
5167
|
|
5168 cat > conftest.$ac_ext <<EOF
|
|
5169 #line 5170 "configure"
|
438
|
5170 #include "confdefs.h"
|
|
5171 /* System header to define __stub macros and hopefully few prototypes,
|
|
5172 which can conflict with char $ac_func(); below. */
|
|
5173 #include <assert.h>
|
|
5174 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5175 /* We use char because int might match the return type of a gcc2
|
|
5176 builtin and then its argument prototype would still apply. */
|
|
5177 char $ac_func();
|
|
5178
|
|
5179 int main() {
|
|
5180
|
|
5181 /* The GNU C library defines this for functions which it implements
|
|
5182 to always fail with ENOSYS. Some functions are actually named
|
|
5183 something starting with __ and the normal name is an alias. */
|
|
5184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5185 choke me
|
|
5186 #else
|
|
5187 $ac_func();
|
|
5188 #endif
|
|
5189
|
|
5190 ; return 0; }
|
|
5191 EOF
|
2048
|
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
567
|
5193 rm -rf conftest*
|
|
5194 eval "ac_cv_func_$ac_func=yes"
|
|
5195 else
|
|
5196 echo "configure: failed program was:" >&5
|
|
5197 cat conftest.$ac_ext >&5
|
|
5198 rm -rf conftest*
|
|
5199 eval "ac_cv_func_$ac_func=no"
|
|
5200 fi
|
|
5201 rm -f conftest*
|
|
5202
|
|
5203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5204 echo "$ac_t""yes" 1>&6
|
|
5205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5206 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5207 Defining $ac_tr_func
|
|
5208 EOF
|
|
5209 cat >> confdefs.h <<EOF
|
|
5210 #define $ac_tr_func 1
|
|
5211 EOF
|
|
5212 }
|
|
5213
|
|
5214 else
|
|
5215 echo "$ac_t""no" 1>&6
|
|
5216 fi
|
|
5217 done
|
|
5218
|
|
5219
|
|
5220 echo "checking type of mail spool file locking" 1>&6
|
2048
|
5221 echo "configure:5222: checking type of mail spool file locking" >&5
|
567
|
5222 for ac_func in lockf flock
|
|
5223 do
|
|
5224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
5225 echo "configure:5226: checking for $ac_func" >&5
|
|
5226
|
|
5227 cat > conftest.$ac_ext <<EOF
|
|
5228 #line 5229 "configure"
|
567
|
5229 #include "confdefs.h"
|
|
5230 /* System header to define __stub macros and hopefully few prototypes,
|
|
5231 which can conflict with char $ac_func(); below. */
|
|
5232 #include <assert.h>
|
|
5233 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5234 /* We use char because int might match the return type of a gcc2
|
|
5235 builtin and then its argument prototype would still apply. */
|
|
5236 char $ac_func();
|
|
5237
|
|
5238 int main() {
|
|
5239
|
|
5240 /* The GNU C library defines this for functions which it implements
|
|
5241 to always fail with ENOSYS. Some functions are actually named
|
|
5242 something starting with __ and the normal name is an alias. */
|
|
5243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5244 choke me
|
|
5245 #else
|
|
5246 $ac_func();
|
|
5247 #endif
|
|
5248
|
|
5249 ; return 0; }
|
|
5250 EOF
|
2048
|
5251 if { (eval echo configure:5252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
438
|
5252 rm -rf conftest*
|
|
5253 eval "ac_cv_func_$ac_func=yes"
|
|
5254 else
|
|
5255 echo "configure: failed program was:" >&5
|
|
5256 cat conftest.$ac_ext >&5
|
|
5257 rm -rf conftest*
|
|
5258 eval "ac_cv_func_$ac_func=no"
|
|
5259 fi
|
|
5260 rm -f conftest*
|
|
5261
|
|
5262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5263 echo "$ac_t""yes" 1>&6
|
|
5264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5265 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5266 Defining $ac_tr_func
|
|
5267 EOF
|
|
5268 cat >> confdefs.h <<EOF
|
|
5269 #define $ac_tr_func 1
|
|
5270 EOF
|
|
5271 }
|
|
5272
|
|
5273 else
|
|
5274 echo "$ac_t""no" 1>&6
|
|
5275 fi
|
|
5276 done
|
|
5277
|
149
|
5278 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
|
|
5279 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
|
438
|
5280 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
|
442
|
5281 if test -z "$mail_locking"; then
|
|
5282 case "$opsys" in cygwin* | mingw*)
|
|
5283 mail_locking=pop ;;
|
|
5284 esac
|
|
5285 fi
|
|
5286
|
149
|
5287 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
438
|
5288 Defining MAIL_LOCK_LOCKF
|
|
5289 EOF
|
|
5290 cat >> confdefs.h <<\EOF
|
|
5291 #define MAIL_LOCK_LOCKF 1
|
149
|
5292 EOF
|
|
5293 }
|
|
5294
|
|
5295 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
438
|
5296 Defining MAIL_LOCK_FLOCK
|
|
5297 EOF
|
|
5298 cat >> confdefs.h <<\EOF
|
|
5299 #define MAIL_LOCK_FLOCK 1
|
|
5300 EOF
|
|
5301 }
|
|
5302
|
|
5303 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5304 Defining MAIL_LOCK_LOCKING
|
|
5305 EOF
|
|
5306 cat >> confdefs.h <<\EOF
|
|
5307 #define MAIL_LOCK_LOCKING 1
|
|
5308 EOF
|
|
5309 }
|
|
5310
|
442
|
5311 elif test "$mail_locking" = "pop"; then
|
|
5312 with_pop=yes
|
|
5313 mail_locking=
|
438
|
5314 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5315 Defining MAIL_LOCK_DOT
|
|
5316 EOF
|
|
5317 cat >> confdefs.h <<\EOF
|
|
5318 #define MAIL_LOCK_DOT 1
|
|
5319 EOF
|
|
5320 }
|
|
5321
|
|
5322 fi
|
|
5323 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
|
|
5324 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
|
|
5325 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
|
|
5326 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
|
|
5327 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
|
|
5328 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
|
151
|
5329
|
278
|
5330 case "$opsys" in decosf*)
|
|
5331
|
151
|
5332 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
|
2048
|
5333 echo "configure:5334: checking for cma_open in -lpthreads" >&5
|
151
|
5334 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
|
|
5335
|
|
5336 xe_check_libs=" -lpthreads "
|
|
5337 cat > conftest.$ac_ext <<EOF
|
2048
|
5338 #line 5339 "configure"
|
151
|
5339 #include "confdefs.h"
|
|
5340 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5341 /* We use char because int might match the return type of a gcc2
|
|
5342 builtin and then its argument prototype would still apply. */
|
|
5343 char cma_open();
|
|
5344
|
|
5345 int main() {
|
|
5346 cma_open()
|
|
5347 ; return 0; }
|
|
5348 EOF
|
2048
|
5349 if { (eval echo configure:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
5350 rm -rf conftest*
|
|
5351 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5352 else
|
|
5353 echo "configure: failed program was:" >&5
|
|
5354 cat conftest.$ac_ext >&5
|
|
5355 rm -rf conftest*
|
|
5356 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5357 fi
|
|
5358 rm -f conftest*
|
|
5359 xe_check_libs=""
|
|
5360
|
|
5361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5362 echo "$ac_t""yes" 1>&6
|
|
5363 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
5364 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
5365 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5366 Defining $ac_tr_lib
|
|
5367 EOF
|
|
5368 cat >> confdefs.h <<EOF
|
|
5369 #define $ac_tr_lib 1
|
|
5370 EOF
|
|
5371 }
|
|
5372
|
|
5373 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
|
|
5374
|
|
5375 else
|
|
5376 echo "$ac_t""no" 1>&6
|
|
5377 fi
|
|
5378
|
|
5379
|
278
|
5380 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
|
|
5381 c_switch_site="$c_switch_site -threads" ;;
|
|
5382 esac
|
151
|
5383
|
708
|
5384
|
151
|
5385 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
|
2048
|
5386 echo "configure:5387: checking whether the -xildoff compiler flag is required" >&5
|
151
|
5387 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
5388 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
|
|
5389 then echo "$ac_t""no" 1>&6;
|
|
5390 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
|
|
5391 fi
|
|
5392 else echo "$ac_t""no" 1>&6
|
|
5393 fi
|
|
5394
|
442
|
5395 if test "$opsys" = "sol2"; then
|
1692
|
5396 if test "$os_release" -ge 506; then
|
442
|
5397 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
|
2048
|
5398 echo "configure:5399: checking for \"-z ignore\" linker flag" >&5
|
442
|
5399 case "`ld -h 2>&1`" in
|
|
5400 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
|
|
5401 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
|
|
5402 *) echo "$ac_t""no" 1>&6 ;;
|
|
5403 esac
|
|
5404 fi
|
163
|
5405 fi
|
155
|
5406
|
149
|
5407
|
|
5408 echo "checking "for specified window system"" 1>&6
|
2048
|
5409 echo "configure:5410: checking "for specified window system"" >&5
|
462
|
5410
|
|
5411
|
|
5412 GNOME_CONFIG=no
|
|
5413 GTK_CONFIG=no
|
|
5414
|
|
5415 if test "$with_gnome" != "no"; then
|
|
5416 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
|
2048
|
5417 echo "configure:5418: checking for GNOME configuration script" >&5
|
462
|
5418 for possible in gnome-config
|
|
5419 do
|
|
5420 possible_version=`${possible} --version 2> /dev/null`
|
|
5421 if test "x${possible_version}" != "x"; then
|
|
5422 GNOME_CONFIG="${possible}"
|
|
5423 with_gnome=yes
|
|
5424 with_gtk=yes
|
|
5425 break
|
|
5426 fi
|
|
5427 done
|
|
5428 echo "$ac_t""${GNOME_CONFIG}" 1>&6
|
|
5429 fi
|
|
5430
|
|
5431 if test "${GNOME_CONFIG}" != "no"; then
|
|
5432 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
|
|
5433 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
|
|
5434 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5435 Defining HAVE_GNOME
|
|
5436 EOF
|
|
5437 cat >> confdefs.h <<\EOF
|
|
5438 #define HAVE_GNOME 1
|
|
5439 EOF
|
|
5440 }
|
|
5441
|
|
5442 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
|
|
5443 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
|
|
5444 fi
|
|
5445
|
|
5446 if test "$with_gtk" != "no";then
|
|
5447 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
|
2048
|
5448 echo "configure:5449: checking for GTK configuration script" >&5
|
462
|
5449 for possible in gtk12-config gtk14-config gtk-config
|
|
5450 do
|
|
5451 possible_version=`${possible} --version 2> /dev/null`
|
|
5452 if test "x${possible_version}" != "x"; then
|
|
5453 GTK_CONFIG="${possible}"
|
527
|
5454 case "${possible_version}" in
|
|
5455 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
|
|
5456 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
|
|
5457 1.2.*)
|
|
5458 with_gtk=yes
|
|
5459 break
|
|
5460 ;;
|
|
5461 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
|
|
5462 esac
|
462
|
5463 fi
|
|
5464 done
|
|
5465 echo "$ac_t""${GTK_CONFIG}" 1>&6
|
|
5466 fi
|
|
5467
|
|
5468 if test "${GTK_CONFIG}" != "no"; then
|
|
5469 echo $ac_n "checking gtk version""... $ac_c" 1>&6
|
2048
|
5470 echo "configure:5471: checking gtk version" >&5
|
462
|
5471 GTK_VERSION=`${GTK_CONFIG} --version`
|
|
5472 echo "$ac_t""${GTK_VERSION}" 1>&6
|
|
5473
|
|
5474 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
|
2048
|
5475 echo "configure:5476: checking gtk libs" >&5
|
462
|
5476 GTK_LIBS=`${GTK_CONFIG} --libs`
|
|
5477 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
|
|
5478 echo "$ac_t""${GTK_LIBS}" 1>&6
|
|
5479
|
|
5480 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
|
2048
|
5481 echo "configure:5482: checking gtk cflags" >&5
|
462
|
5482 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
|
720
|
5483 if test "$GCC" = "yes"; then
|
|
5484 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
|
|
5485 fi
|
462
|
5486 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
|
|
5487 echo "$ac_t""${GTK_CFLAGS}" 1>&6
|
|
5488
|
|
5489
|
|
5490 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
|
2048
|
5491 echo "configure:5492: checking for main in -lgdk_imlib" >&5
|
462
|
5492 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
|
|
5493
|
|
5494 xe_check_libs=" -lgdk_imlib "
|
|
5495 cat > conftest.$ac_ext <<EOF
|
2048
|
5496 #line 5497 "configure"
|
462
|
5497 #include "confdefs.h"
|
|
5498
|
|
5499 int main() {
|
|
5500 main()
|
|
5501 ; return 0; }
|
|
5502 EOF
|
2048
|
5503 if { (eval echo configure:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5504 rm -rf conftest*
|
|
5505 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5506 else
|
|
5507 echo "configure: failed program was:" >&5
|
|
5508 cat conftest.$ac_ext >&5
|
|
5509 rm -rf conftest*
|
|
5510 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5511 fi
|
|
5512 rm -f conftest*
|
|
5513 xe_check_libs=""
|
|
5514
|
|
5515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5516 echo "$ac_t""yes" 1>&6
|
|
5517 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
|
|
5518 else
|
|
5519 echo "$ac_t""no" 1>&6
|
|
5520 fi
|
|
5521
|
|
5522
|
|
5523
|
|
5524 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
|
2048
|
5525 echo "configure:5526: checking for Imlib_init in -lImlib" >&5
|
462
|
5526 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
|
|
5527
|
|
5528 xe_check_libs=" -lImlib "
|
|
5529 cat > conftest.$ac_ext <<EOF
|
2048
|
5530 #line 5531 "configure"
|
462
|
5531 #include "confdefs.h"
|
|
5532 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5533 /* We use char because int might match the return type of a gcc2
|
|
5534 builtin and then its argument prototype would still apply. */
|
|
5535 char Imlib_init();
|
|
5536
|
|
5537 int main() {
|
|
5538 Imlib_init()
|
|
5539 ; return 0; }
|
|
5540 EOF
|
2048
|
5541 if { (eval echo configure:5542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5542 rm -rf conftest*
|
|
5543 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5544 else
|
|
5545 echo "configure: failed program was:" >&5
|
|
5546 cat conftest.$ac_ext >&5
|
|
5547 rm -rf conftest*
|
|
5548 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5549 fi
|
|
5550 rm -f conftest*
|
|
5551 xe_check_libs=""
|
|
5552
|
|
5553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5554 echo "$ac_t""yes" 1>&6
|
|
5555 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
|
|
5556 else
|
|
5557 echo "$ac_t""no" 1>&6
|
|
5558 fi
|
|
5559
|
|
5560
|
|
5561 for ac_func in gdk_imlib_init
|
|
5562 do
|
|
5563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
5564 echo "configure:5565: checking for $ac_func" >&5
|
|
5565
|
|
5566 cat > conftest.$ac_ext <<EOF
|
|
5567 #line 5568 "configure"
|
462
|
5568 #include "confdefs.h"
|
|
5569 /* System header to define __stub macros and hopefully few prototypes,
|
|
5570 which can conflict with char $ac_func(); below. */
|
|
5571 #include <assert.h>
|
|
5572 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5573 /* We use char because int might match the return type of a gcc2
|
|
5574 builtin and then its argument prototype would still apply. */
|
|
5575 char $ac_func();
|
|
5576
|
|
5577 int main() {
|
|
5578
|
|
5579 /* The GNU C library defines this for functions which it implements
|
|
5580 to always fail with ENOSYS. Some functions are actually named
|
|
5581 something starting with __ and the normal name is an alias. */
|
|
5582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5583 choke me
|
|
5584 #else
|
|
5585 $ac_func();
|
|
5586 #endif
|
|
5587
|
|
5588 ; return 0; }
|
|
5589 EOF
|
2048
|
5590 if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5591 rm -rf conftest*
|
|
5592 eval "ac_cv_func_$ac_func=yes"
|
|
5593 else
|
|
5594 echo "configure: failed program was:" >&5
|
|
5595 cat conftest.$ac_ext >&5
|
|
5596 rm -rf conftest*
|
|
5597 eval "ac_cv_func_$ac_func=no"
|
|
5598 fi
|
|
5599 rm -f conftest*
|
|
5600
|
|
5601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5602 echo "$ac_t""yes" 1>&6
|
|
5603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5604 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5605 Defining $ac_tr_func
|
|
5606 EOF
|
|
5607 cat >> confdefs.h <<EOF
|
|
5608 #define $ac_tr_func 1
|
|
5609 EOF
|
|
5610 }
|
|
5611
|
|
5612 else
|
|
5613 echo "$ac_t""no" 1>&6
|
|
5614 fi
|
|
5615 done
|
|
5616
|
|
5617
|
|
5618 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5619 Defining HAVE_XPM
|
|
5620 EOF
|
|
5621 cat >> confdefs.h <<\EOF
|
|
5622 #define HAVE_XPM 1
|
|
5623 EOF
|
|
5624 }
|
|
5625
|
|
5626 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5627 Defining HAVE_GTK
|
|
5628 EOF
|
|
5629 cat >> confdefs.h <<\EOF
|
|
5630 #define HAVE_GTK 1
|
|
5631 EOF
|
|
5632 }
|
|
5633
|
|
5634
|
|
5635
|
|
5636 window_system=gtk
|
|
5637 with_gtk=yes
|
2048
|
5638 with_x11=no
|
462
|
5639
|
|
5640 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
|
2048
|
5641 test "${with_toolbars}" != no && with_toolbars=gtk
|
462
|
5642 test "${with_menubars}" != "no" && with_menubars=gtk
|
|
5643 test "${with_dialogs}" != "no" && with_dialogs=gtk
|
|
5644 test "${with_widgets}" != "no" && with_widgets=gtk
|
|
5645
|
|
5646 OLD_CFLAGS="${CFLAGS}"
|
724
|
5647 OLD_CPPFLAGS="${CPPFLAGS}"
|
462
|
5648 OLD_LDFLAGS="${LDFLAGS}"
|
|
5649 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
|
724
|
5650 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
|
462
|
5651 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
|
|
5652 for ac_hdr in glade/glade.h glade.h
|
|
5653 do
|
|
5654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
5655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2048
|
5656 echo "configure:5657: checking for $ac_hdr" >&5
|
|
5657
|
|
5658 cat > conftest.$ac_ext <<EOF
|
|
5659 #line 5660 "configure"
|
462
|
5660 #include "confdefs.h"
|
|
5661 #include <$ac_hdr>
|
|
5662 EOF
|
|
5663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
5664 { (eval echo configure:5665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
462
|
5665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
5666 if test -z "$ac_err"; then
|
|
5667 rm -rf conftest*
|
|
5668 eval "ac_cv_header_$ac_safe=yes"
|
|
5669 else
|
|
5670 echo "$ac_err" >&5
|
|
5671 echo "configure: failed program was:" >&5
|
|
5672 cat conftest.$ac_ext >&5
|
|
5673 rm -rf conftest*
|
|
5674 eval "ac_cv_header_$ac_safe=no"
|
|
5675 fi
|
|
5676 rm -f conftest*
|
|
5677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5678 echo "$ac_t""yes" 1>&6
|
|
5679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
5680 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5681 Defining $ac_tr_hdr
|
|
5682 EOF
|
|
5683 cat >> confdefs.h <<EOF
|
|
5684 #define $ac_tr_hdr 1
|
|
5685 EOF
|
|
5686 }
|
|
5687
|
|
5688 else
|
|
5689 echo "$ac_t""no" 1>&6
|
|
5690 fi
|
|
5691 done
|
|
5692
|
|
5693
|
|
5694 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
|
2048
|
5695 echo "configure:5696: checking for main in -lxml" >&5
|
462
|
5696 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
|
|
5697
|
|
5698 xe_check_libs=" -lxml "
|
|
5699 cat > conftest.$ac_ext <<EOF
|
2048
|
5700 #line 5701 "configure"
|
462
|
5701 #include "confdefs.h"
|
|
5702
|
|
5703 int main() {
|
|
5704 main()
|
|
5705 ; return 0; }
|
|
5706 EOF
|
2048
|
5707 if { (eval echo configure:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5708 rm -rf conftest*
|
|
5709 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5710 else
|
|
5711 echo "configure: failed program was:" >&5
|
|
5712 cat conftest.$ac_ext >&5
|
|
5713 rm -rf conftest*
|
|
5714 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5715 fi
|
|
5716 rm -f conftest*
|
|
5717 xe_check_libs=""
|
|
5718
|
|
5719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5720 echo "$ac_t""yes" 1>&6
|
|
5721 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
|
|
5722 else
|
|
5723 echo "$ac_t""no" 1>&6
|
|
5724 fi
|
|
5725
|
|
5726
|
|
5727
|
|
5728 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
|
2048
|
5729 echo "configure:5730: checking for main in -lglade" >&5
|
462
|
5730 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
|
|
5731
|
|
5732 xe_check_libs=" -lglade "
|
|
5733 cat > conftest.$ac_ext <<EOF
|
2048
|
5734 #line 5735 "configure"
|
462
|
5735 #include "confdefs.h"
|
|
5736
|
|
5737 int main() {
|
|
5738 main()
|
|
5739 ; return 0; }
|
|
5740 EOF
|
2048
|
5741 if { (eval echo configure:5742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5742 rm -rf conftest*
|
|
5743 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5744 else
|
|
5745 echo "configure: failed program was:" >&5
|
|
5746 cat conftest.$ac_ext >&5
|
|
5747 rm -rf conftest*
|
|
5748 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5749 fi
|
|
5750 rm -f conftest*
|
|
5751 xe_check_libs=""
|
|
5752
|
|
5753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5754 echo "$ac_t""yes" 1>&6
|
|
5755 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
|
|
5756 else
|
|
5757 echo "$ac_t""no" 1>&6
|
|
5758 fi
|
|
5759
|
|
5760
|
|
5761
|
|
5762 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
|
2048
|
5763 echo "configure:5764: checking for main in -lglade-gnome" >&5
|
462
|
5764 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
|
|
5765
|
|
5766 xe_check_libs=" -lglade-gnome "
|
|
5767 cat > conftest.$ac_ext <<EOF
|
2048
|
5768 #line 5769 "configure"
|
462
|
5769 #include "confdefs.h"
|
|
5770
|
|
5771 int main() {
|
|
5772 main()
|
|
5773 ; return 0; }
|
|
5774 EOF
|
2048
|
5775 if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5776 rm -rf conftest*
|
|
5777 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5778 else
|
|
5779 echo "configure: failed program was:" >&5
|
|
5780 cat conftest.$ac_ext >&5
|
|
5781 rm -rf conftest*
|
|
5782 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5783 fi
|
|
5784 rm -f conftest*
|
|
5785 xe_check_libs=""
|
|
5786
|
|
5787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5788 echo "$ac_t""yes" 1>&6
|
|
5789 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
|
|
5790 else
|
|
5791 echo "$ac_t""no" 1>&6
|
|
5792 fi
|
|
5793
|
|
5794
|
|
5795 cat > conftest.$ac_ext <<EOF
|
2048
|
5796 #line 5797 "configure"
|
462
|
5797 #include "confdefs.h"
|
|
5798 #include <glade/glade-xml.h>
|
|
5799 EOF
|
|
5800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5801 egrep "char \*txtdomain;" >/dev/null 2>&1; then
|
|
5802 rm -rf conftest*
|
|
5803 echo "$ac_t""yes" 1>&6
|
|
5804 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5805 Defining LIBGLADE_XML_TXTDOMAIN = 1
|
|
5806 EOF
|
|
5807 cat >> confdefs.h <<\EOF
|
|
5808 #define LIBGLADE_XML_TXTDOMAIN 1
|
|
5809 EOF
|
|
5810 }
|
|
5811
|
|
5812 else
|
|
5813 rm -rf conftest*
|
|
5814 echo "$ac_t""no" 1>&6
|
|
5815 fi
|
|
5816 rm -f conftest*
|
|
5817
|
|
5818 CFLAGS="${OLD_CFLAGS}"
|
724
|
5819 CPPFLAGS="${OLD_CPPFLAGS}"
|
462
|
5820 LDFLAGS="${OLD_LDFLAGS}"
|
|
5821 fi
|
|
5822
|
149
|
5823
|
187
|
5824 if test "$with_x11" != "no"; then
|
|
5825 test "$x_includes $x_libraries" != "NONE NONE" && \
|
|
5826 window_system=x11 with_x11=yes
|
|
5827
|
272
|
5828
|
|
5829 if test "$x_includes $x_libraries" = "NONE NONE" \
|
|
5830 -a -n "$OPENWINHOME" \
|
|
5831 -a "$OPENWINHOME" != "/usr/openwin" \
|
|
5832 -a -d "$OPENWINHOME"; then
|
187
|
5833 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
|
|
5834 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
|
|
5835 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
|
272
|
5836 fi
|
|
5837
|
|
5838 if test "$x_includes" = "NONE"; then
|
|
5839 for dir in "/usr/X11" "/usr/X11R6"; do
|
|
5840 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
|
|
5841 done
|
|
5842 fi
|
|
5843
|
|
5844 if test "$x_libraries" = "NONE"; then
|
|
5845 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
|
|
5846 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
|
|
5847 done
|
149
|
5848 fi
|
187
|
5849
|
149
|
5850 # If we find X, set shell vars x_includes and x_libraries to the
|
|
5851 # paths, otherwise set no_x=yes.
|
|
5852 # Uses ac_ vars as temps to allow command line to override cache and checks.
|
|
5853 # --without-x overrides everything else, but does not touch the cache.
|
|
5854 echo $ac_n "checking for X""... $ac_c" 1>&6
|
2048
|
5855 echo "configure:5856: checking for X" >&5
|
149
|
5856
|
|
5857 # Check whether --with-x or --without-x was given.
|
|
5858 if test "${with_x+set}" = set; then
|
|
5859 withval="$with_x"
|
|
5860 :
|
|
5861 fi
|
|
5862
|
|
5863 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
5864 if test "x$with_x" = xno; then
|
|
5865 # The user explicitly disabled X.
|
|
5866 have_x=disabled
|
|
5867 else
|
|
5868 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|
5869 # Both variables are already set.
|
|
5870 have_x=yes
|
|
5871 else
|
|
5872
|
|
5873 # One or both of the vars are not set, and there is no cached value.
|
|
5874 ac_x_includes=NO ac_x_libraries=NO
|
0
|
5875 rm -fr conftestdir
|
|
5876 if mkdir conftestdir; then
|
|
5877 cd conftestdir
|
|
5878 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
5879 cat > Imakefile <<'EOF'
|
|
5880 acfindx:
|
|
5881 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
5882 EOF
|
|
5883 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
5884 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
149
|
5885 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
0
|
5886 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
149
|
5887 for ac_extension in a so sl; do
|
|
5888 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
|
5889 test -f $ac_im_libdir/libX11.$ac_extension; then
|
|
5890 ac_im_usrlibdir=$ac_im_libdir; break
|
|
5891 fi
|
|
5892 done
|
|
5893 # Screen out bogus values from the imake configuration. They are
|
|
5894 # bogus both because they are the default anyway, and because
|
|
5895 # using them would break gcc on systems where it needs fixed includes.
|
0
|
5896 case "$ac_im_incroot" in
|
|
5897 /usr/include) ;;
|
149
|
5898 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
0
|
5899 esac
|
|
5900 case "$ac_im_usrlibdir" in
|
|
5901 /usr/lib | /lib) ;;
|
149
|
5902 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
0
|
5903 esac
|
|
5904 fi
|
|
5905 cd ..
|
|
5906 rm -fr conftestdir
|
|
5907 fi
|
|
5908
|
149
|
5909 if test "$ac_x_includes" = NO; then
|
|
5910 # Guess where to find include files, by looking for this one X11 .h file.
|
|
5911 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|
5912
|
|
5913 # First, try using that file with no special directory specified.
|
|
5914 cat > conftest.$ac_ext <<EOF
|
2048
|
5915 #line 5916 "configure"
|
0
|
5916 #include "confdefs.h"
|
|
5917 #include <$x_direct_test_include>
|
|
5918 EOF
|
149
|
5919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
5920 { (eval echo configure:5921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
5921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
5922 if test -z "$ac_err"; then
|
|
5923 rm -rf conftest*
|
149
|
5924 # We can compile using X headers with no special include directory.
|
|
5925 ac_x_includes=
|
|
5926 else
|
|
5927 echo "$ac_err" >&5
|
|
5928 echo "configure: failed program was:" >&5
|
|
5929 cat conftest.$ac_ext >&5
|
|
5930 rm -rf conftest*
|
|
5931 # Look for the header file in a standard set of common directories.
|
|
5932 # Check X11 before X11Rn because it is often a symlink to the current release.
|
0
|
5933 for ac_dir in \
|
149
|
5934 /usr/X11/include \
|
0
|
5935 /usr/X11R6/include \
|
|
5936 /usr/X11R5/include \
|
|
5937 /usr/X11R4/include \
|
|
5938 \
|
149
|
5939 /usr/include/X11 \
|
0
|
5940 /usr/include/X11R6 \
|
|
5941 /usr/include/X11R5 \
|
|
5942 /usr/include/X11R4 \
|
|
5943 \
|
149
|
5944 /usr/local/X11/include \
|
0
|
5945 /usr/local/X11R6/include \
|
|
5946 /usr/local/X11R5/include \
|
|
5947 /usr/local/X11R4/include \
|
|
5948 \
|
149
|
5949 /usr/local/include/X11 \
|
0
|
5950 /usr/local/include/X11R6 \
|
|
5951 /usr/local/include/X11R5 \
|
|
5952 /usr/local/include/X11R4 \
|
|
5953 \
|
|
5954 /usr/X386/include \
|
|
5955 /usr/x386/include \
|
|
5956 /usr/XFree86/include/X11 \
|
|
5957 \
|
|
5958 /usr/include \
|
|
5959 /usr/local/include \
|
|
5960 /usr/unsupported/include \
|
|
5961 /usr/athena/include \
|
|
5962 /usr/local/x11r5/include \
|
|
5963 /usr/lpp/Xamples/include \
|
|
5964 \
|
|
5965 /usr/openwin/include \
|
|
5966 /usr/openwin/share/include \
|
|
5967 ; \
|
|
5968 do
|
|
5969 if test -r "$ac_dir/$x_direct_test_include"; then
|
149
|
5970 ac_x_includes=$ac_dir
|
0
|
5971 break
|
|
5972 fi
|
|
5973 done
|
|
5974 fi
|
|
5975 rm -f conftest*
|
149
|
5976 fi # $ac_x_includes = NO
|
|
5977
|
|
5978 if test "$ac_x_libraries" = NO; then
|
|
5979 # Check for the libraries.
|
|
5980
|
|
5981 test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|
5982 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|
5983
|
|
5984 # See if we find them without any special options.
|
|
5985 # Don't add to $LIBS permanently.
|
|
5986 ac_save_LIBS="$LIBS"
|
|
5987 LIBS="-l$x_direct_test_library $LIBS"
|
|
5988 cat > conftest.$ac_ext <<EOF
|
2048
|
5989 #line 5990 "configure"
|
149
|
5990 #include "confdefs.h"
|
|
5991
|
|
5992 int main() {
|
|
5993 ${x_direct_test_function}()
|
|
5994 ; return 0; }
|
|
5995 EOF
|
2048
|
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5997 rm -rf conftest*
|
|
5998 LIBS="$ac_save_LIBS"
|
|
5999 # We can link X programs with no special library path.
|
|
6000 ac_x_libraries=
|
|
6001 else
|
|
6002 echo "configure: failed program was:" >&5
|
|
6003 cat conftest.$ac_ext >&5
|
|
6004 rm -rf conftest*
|
|
6005 LIBS="$ac_save_LIBS"
|
|
6006 # First see if replacing the include by lib works.
|
|
6007 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
6008 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|
6009 /usr/X11/lib \
|
0
|
6010 /usr/X11R6/lib \
|
|
6011 /usr/X11R5/lib \
|
|
6012 /usr/X11R4/lib \
|
|
6013 \
|
149
|
6014 /usr/lib/X11 \
|
0
|
6015 /usr/lib/X11R6 \
|
|
6016 /usr/lib/X11R5 \
|
|
6017 /usr/lib/X11R4 \
|
|
6018 \
|
149
|
6019 /usr/local/X11/lib \
|
0
|
6020 /usr/local/X11R6/lib \
|
|
6021 /usr/local/X11R5/lib \
|
|
6022 /usr/local/X11R4/lib \
|
|
6023 \
|
149
|
6024 /usr/local/lib/X11 \
|
0
|
6025 /usr/local/lib/X11R6 \
|
|
6026 /usr/local/lib/X11R5 \
|
|
6027 /usr/local/lib/X11R4 \
|
|
6028 \
|
|
6029 /usr/X386/lib \
|
|
6030 /usr/x386/lib \
|
|
6031 /usr/XFree86/lib/X11 \
|
|
6032 \
|
|
6033 /usr/lib \
|
|
6034 /usr/local/lib \
|
|
6035 /usr/unsupported/lib \
|
|
6036 /usr/athena/lib \
|
|
6037 /usr/local/x11r5/lib \
|
|
6038 /usr/lpp/Xamples/lib \
|
149
|
6039 /lib/usr/lib/X11 \
|
0
|
6040 \
|
|
6041 /usr/openwin/lib \
|
|
6042 /usr/openwin/share/lib \
|
|
6043 ; \
|
|
6044 do
|
|
6045 for ac_extension in a so sl; do
|
|
6046 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
149
|
6047 ac_x_libraries=$ac_dir
|
0
|
6048 break 2
|
|
6049 fi
|
|
6050 done
|
|
6051 done
|
|
6052 fi
|
149
|
6053 rm -f conftest*
|
|
6054 fi # $ac_x_libraries = NO
|
|
6055
|
|
6056 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|
6057 # Didn't find X anywhere. Cache the known absence of X.
|
|
6058 ac_cv_have_x="have_x=no"
|
|
6059 else
|
|
6060 # Record where we found X for the cache.
|
|
6061 ac_cv_have_x="have_x=yes \
|
|
6062 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|
6063 fi
|
|
6064 fi
|
|
6065 eval "$ac_cv_have_x"
|
|
6066 fi # $with_x != no
|
|
6067
|
|
6068 if test "$have_x" != yes; then
|
|
6069 echo "$ac_t""$have_x" 1>&6
|
|
6070 no_x=yes
|
|
6071 else
|
|
6072 # If each of the values was on the command line, it overrides each guess.
|
|
6073 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|
6074 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|
6075 # Update the cache value to reflect the command line values.
|
|
6076 ac_cv_have_x="have_x=yes \
|
|
6077 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|
6078 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|
6079 fi
|
|
6080
|
|
6081 if test "$no_x" = yes; then
|
|
6082 # Not all programs may use this symbol, but it does not hurt to define it.
|
|
6083 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6084 Defining X_DISPLAY_MISSING
|
|
6085 EOF
|
|
6086 cat >> confdefs.h <<\EOF
|
|
6087 #define X_DISPLAY_MISSING 1
|
|
6088 EOF
|
|
6089 }
|
|
6090
|
|
6091 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
|
6092 else
|
|
6093 if test -n "$x_includes"; then
|
|
6094 X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|
6095 fi
|
|
6096
|
|
6097 # It would also be nice to do this for all -L options, not just this one.
|
|
6098 if test -n "$x_libraries"; then
|
|
6099 X_LIBS="$X_LIBS -L$x_libraries"
|
|
6100 # For Solaris; some versions of Sun CC require a space after -R and
|
|
6101 # others require no space. Words are not sufficient . . . .
|
|
6102 case "`(uname -sr) 2>/dev/null`" in
|
|
6103 "SunOS 5"*)
|
|
6104 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
2048
|
6105 echo "configure:6106: checking whether -R must be followed by a space" >&5
|
149
|
6106 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
|
6107 cat > conftest.$ac_ext <<EOF
|
2048
|
6108 #line 6109 "configure"
|
|
6109 #include "confdefs.h"
|
|
6110
|
|
6111 int main() {
|
|
6112
|
|
6113 ; return 0; }
|
|
6114 EOF
|
|
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6116 rm -rf conftest*
|
|
6117 ac_R_nospace=yes
|
|
6118 else
|
|
6119 echo "configure: failed program was:" >&5
|
|
6120 cat conftest.$ac_ext >&5
|
|
6121 rm -rf conftest*
|
|
6122 ac_R_nospace=no
|
|
6123 fi
|
|
6124 rm -f conftest*
|
|
6125 if test $ac_R_nospace = yes; then
|
|
6126 echo "$ac_t""no" 1>&6
|
|
6127 X_LIBS="$X_LIBS -R$x_libraries"
|
|
6128 else
|
|
6129 LIBS="$ac_xsave_LIBS -R $x_libraries"
|
|
6130 cat > conftest.$ac_ext <<EOF
|
2048
|
6131 #line 6132 "configure"
|
|
6132 #include "confdefs.h"
|
|
6133
|
|
6134 int main() {
|
|
6135
|
|
6136 ; return 0; }
|
|
6137 EOF
|
|
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6139 rm -rf conftest*
|
|
6140 ac_R_space=yes
|
|
6141 else
|
|
6142 echo "configure: failed program was:" >&5
|
|
6143 cat conftest.$ac_ext >&5
|
|
6144 rm -rf conftest*
|
|
6145 ac_R_space=no
|
|
6146 fi
|
|
6147 rm -f conftest*
|
|
6148 if test $ac_R_space = yes; then
|
|
6149 echo "$ac_t""yes" 1>&6
|
|
6150 X_LIBS="$X_LIBS -R $x_libraries"
|
|
6151 else
|
|
6152 echo "$ac_t""neither works" 1>&6
|
|
6153 fi
|
|
6154 fi
|
|
6155 LIBS="$ac_xsave_LIBS"
|
|
6156 esac
|
|
6157 fi
|
|
6158
|
|
6159 # Check for system-dependent libraries X programs must link with.
|
|
6160 # Do this before checking for the system-independent R6 libraries
|
|
6161 # (-lICE), since we may need -lsocket or whatever for X linking.
|
|
6162
|
|
6163 if test "$ISC" = yes; then
|
|
6164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
|
6165 else
|
|
6166 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
|
6167 # libraries were built with DECnet support. And karl@cs.umb.edu says
|
|
6168 # the Alpha needs dnet_stub (dnet does not exist).
|
151
|
6169 if test "$with_dnet" = "no" ; then
|
149
|
6170 ac_cv_lib_dnet_dnet_ntoa=no
|
|
6171 else
|
|
6172
|
|
6173 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
2048
|
6174 echo "configure:6175: checking for dnet_ntoa in -ldnet" >&5
|
149
|
6175 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
6176
|
|
6177 xe_check_libs=" -ldnet "
|
|
6178 cat > conftest.$ac_ext <<EOF
|
2048
|
6179 #line 6180 "configure"
|
149
|
6180 #include "confdefs.h"
|
|
6181 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6182 /* We use char because int might match the return type of a gcc2
|
|
6183 builtin and then its argument prototype would still apply. */
|
|
6184 char dnet_ntoa();
|
|
6185
|
|
6186 int main() {
|
|
6187 dnet_ntoa()
|
|
6188 ; return 0; }
|
|
6189 EOF
|
2048
|
6190 if { (eval echo configure:6191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6191 rm -rf conftest*
|
|
6192 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6193 else
|
|
6194 echo "configure: failed program was:" >&5
|
|
6195 cat conftest.$ac_ext >&5
|
|
6196 rm -rf conftest*
|
|
6197 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6198 fi
|
|
6199 rm -f conftest*
|
|
6200 xe_check_libs=""
|
|
6201
|
151
|
6202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6203 echo "$ac_t""yes" 1>&6
|
|
6204 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
|
6205 else
|
|
6206 echo "$ac_t""no" 1>&6
|
|
6207 fi
|
|
6208
|
|
6209 fi
|
|
6210
|
|
6211 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
|
6212
|
|
6213 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
2048
|
6214 echo "configure:6215: checking for dnet_ntoa in -ldnet_stub" >&5
|
149
|
6215 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
6216
|
|
6217 xe_check_libs=" -ldnet_stub "
|
|
6218 cat > conftest.$ac_ext <<EOF
|
2048
|
6219 #line 6220 "configure"
|
149
|
6220 #include "confdefs.h"
|
|
6221 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6222 /* We use char because int might match the return type of a gcc2
|
|
6223 builtin and then its argument prototype would still apply. */
|
|
6224 char dnet_ntoa();
|
|
6225
|
|
6226 int main() {
|
|
6227 dnet_ntoa()
|
|
6228 ; return 0; }
|
|
6229 EOF
|
2048
|
6230 if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6231 rm -rf conftest*
|
|
6232 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6233 else
|
|
6234 echo "configure: failed program was:" >&5
|
|
6235 cat conftest.$ac_ext >&5
|
|
6236 rm -rf conftest*
|
|
6237 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6238 fi
|
|
6239 rm -f conftest*
|
|
6240 xe_check_libs=""
|
|
6241
|
151
|
6242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6243 echo "$ac_t""yes" 1>&6
|
|
6244 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
|
6245 else
|
|
6246 echo "$ac_t""no" 1>&6
|
|
6247 fi
|
|
6248
|
|
6249
|
|
6250 fi
|
|
6251
|
|
6252 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|
6253 # to get the SysV transport functions.
|
|
6254 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|
6255 # needs -lnsl.
|
|
6256 # The nsl library prevents programs from opening the X display
|
|
6257 # on Irix 5.2, according to dickey@clark.net.
|
|
6258 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
2048
|
6259 echo "configure:6260: checking for gethostbyname" >&5
|
|
6260
|
|
6261 cat > conftest.$ac_ext <<EOF
|
|
6262 #line 6263 "configure"
|
149
|
6263 #include "confdefs.h"
|
|
6264 /* System header to define __stub macros and hopefully few prototypes,
|
|
6265 which can conflict with char gethostbyname(); below. */
|
|
6266 #include <assert.h>
|
|
6267 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6268 /* We use char because int might match the return type of a gcc2
|
|
6269 builtin and then its argument prototype would still apply. */
|
|
6270 char gethostbyname();
|
|
6271
|
|
6272 int main() {
|
|
6273
|
|
6274 /* The GNU C library defines this for functions which it implements
|
|
6275 to always fail with ENOSYS. Some functions are actually named
|
|
6276 something starting with __ and the normal name is an alias. */
|
|
6277 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|
6278 choke me
|
|
6279 #else
|
|
6280 gethostbyname();
|
|
6281 #endif
|
|
6282
|
|
6283 ; return 0; }
|
|
6284 EOF
|
2048
|
6285 if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6286 rm -rf conftest*
|
|
6287 eval "ac_cv_func_gethostbyname=yes"
|
|
6288 else
|
|
6289 echo "configure: failed program was:" >&5
|
|
6290 cat conftest.$ac_ext >&5
|
|
6291 rm -rf conftest*
|
|
6292 eval "ac_cv_func_gethostbyname=no"
|
|
6293 fi
|
|
6294 rm -f conftest*
|
|
6295
|
|
6296 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|
6297 echo "$ac_t""yes" 1>&6
|
|
6298 :
|
|
6299 else
|
|
6300 echo "$ac_t""no" 1>&6
|
|
6301 fi
|
|
6302
|
|
6303 if test $ac_cv_func_gethostbyname = no; then
|
|
6304
|
|
6305 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
2048
|
6306 echo "configure:6307: checking for gethostbyname in -lnsl" >&5
|
149
|
6307 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
6308
|
|
6309 xe_check_libs=" -lnsl "
|
|
6310 cat > conftest.$ac_ext <<EOF
|
2048
|
6311 #line 6312 "configure"
|
149
|
6312 #include "confdefs.h"
|
|
6313 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6314 /* We use char because int might match the return type of a gcc2
|
|
6315 builtin and then its argument prototype would still apply. */
|
|
6316 char gethostbyname();
|
|
6317
|
|
6318 int main() {
|
|
6319 gethostbyname()
|
|
6320 ; return 0; }
|
|
6321 EOF
|
2048
|
6322 if { (eval echo configure:6323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6323 rm -rf conftest*
|
|
6324 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6325 else
|
|
6326 echo "configure: failed program was:" >&5
|
|
6327 cat conftest.$ac_ext >&5
|
|
6328 rm -rf conftest*
|
|
6329 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6330 fi
|
|
6331 rm -f conftest*
|
|
6332 xe_check_libs=""
|
|
6333
|
151
|
6334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6335 echo "$ac_t""yes" 1>&6
|
|
6336 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
|
6337 else
|
|
6338 echo "$ac_t""no" 1>&6
|
|
6339 fi
|
|
6340
|
|
6341
|
|
6342 fi
|
|
6343
|
|
6344 # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|
6345 # socket/setsockopt and other routines are undefined under SCO ODT
|
|
6346 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|
6347 # on later versions), says simon@lia.di.epfl.ch: it contains
|
|
6348 # gethostby* variants that don't use the nameserver (or something).
|
|
6349 # -lsocket must be given before -lnsl if both are needed.
|
|
6350 # We assume that if connect needs -lnsl, so does gethostbyname.
|
|
6351 echo $ac_n "checking for connect""... $ac_c" 1>&6
|
2048
|
6352 echo "configure:6353: checking for connect" >&5
|
|
6353
|
|
6354 cat > conftest.$ac_ext <<EOF
|
|
6355 #line 6356 "configure"
|
149
|
6356 #include "confdefs.h"
|
|
6357 /* System header to define __stub macros and hopefully few prototypes,
|
|
6358 which can conflict with char connect(); below. */
|
|
6359 #include <assert.h>
|
|
6360 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6361 /* We use char because int might match the return type of a gcc2
|
|
6362 builtin and then its argument prototype would still apply. */
|
|
6363 char connect();
|
|
6364
|
|
6365 int main() {
|
|
6366
|
|
6367 /* The GNU C library defines this for functions which it implements
|
|
6368 to always fail with ENOSYS. Some functions are actually named
|
|
6369 something starting with __ and the normal name is an alias. */
|
|
6370 #if defined (__stub_connect) || defined (__stub___connect)
|
|
6371 choke me
|
|
6372 #else
|
|
6373 connect();
|
|
6374 #endif
|
|
6375
|
|
6376 ; return 0; }
|
|
6377 EOF
|
2048
|
6378 if { (eval echo configure:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6379 rm -rf conftest*
|
|
6380 eval "ac_cv_func_connect=yes"
|
|
6381 else
|
|
6382 echo "configure: failed program was:" >&5
|
|
6383 cat conftest.$ac_ext >&5
|
|
6384 rm -rf conftest*
|
|
6385 eval "ac_cv_func_connect=no"
|
|
6386 fi
|
|
6387 rm -f conftest*
|
|
6388
|
|
6389 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|
6390 echo "$ac_t""yes" 1>&6
|
|
6391 :
|
|
6392 else
|
|
6393 echo "$ac_t""no" 1>&6
|
|
6394 fi
|
|
6395
|
|
6396 if test $ac_cv_func_connect = no; then
|
|
6397
|
|
6398 xe_msg_checking="for connect in -lsocket"
|
|
6399 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
6400 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2048
|
6401 echo "configure:6402: checking "$xe_msg_checking"" >&5
|
149
|
6402 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|
6403
|
|
6404 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
|
|
6405 cat > conftest.$ac_ext <<EOF
|
2048
|
6406 #line 6407 "configure"
|
149
|
6407 #include "confdefs.h"
|
|
6408 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6409 /* We use char because int might match the return type of a gcc2
|
|
6410 builtin and then its argument prototype would still apply. */
|
|
6411 char connect();
|
|
6412
|
|
6413 int main() {
|
|
6414 connect()
|
|
6415 ; return 0; }
|
|
6416 EOF
|
2048
|
6417 if { (eval echo configure:6418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6418 rm -rf conftest*
|
|
6419 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6420 else
|
|
6421 echo "configure: failed program was:" >&5
|
|
6422 cat conftest.$ac_ext >&5
|
|
6423 rm -rf conftest*
|
|
6424 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6425 fi
|
|
6426 rm -f conftest*
|
|
6427 xe_check_libs=""
|
|
6428
|
151
|
6429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6430 echo "$ac_t""yes" 1>&6
|
|
6431 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
|
6432 else
|
|
6433 echo "$ac_t""no" 1>&6
|
|
6434 fi
|
|
6435
|
|
6436
|
|
6437 fi
|
|
6438
|
|
6439 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
|
6440 echo $ac_n "checking for remove""... $ac_c" 1>&6
|
2048
|
6441 echo "configure:6442: checking for remove" >&5
|
|
6442
|
|
6443 cat > conftest.$ac_ext <<EOF
|
|
6444 #line 6445 "configure"
|
149
|
6445 #include "confdefs.h"
|
|
6446 /* System header to define __stub macros and hopefully few prototypes,
|
|
6447 which can conflict with char remove(); below. */
|
|
6448 #include <assert.h>
|
|
6449 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6450 /* We use char because int might match the return type of a gcc2
|
|
6451 builtin and then its argument prototype would still apply. */
|
|
6452 char remove();
|
|
6453
|
|
6454 int main() {
|
|
6455
|
|
6456 /* The GNU C library defines this for functions which it implements
|
|
6457 to always fail with ENOSYS. Some functions are actually named
|
|
6458 something starting with __ and the normal name is an alias. */
|
|
6459 #if defined (__stub_remove) || defined (__stub___remove)
|
|
6460 choke me
|
|
6461 #else
|
|
6462 remove();
|
|
6463 #endif
|
|
6464
|
|
6465 ; return 0; }
|
|
6466 EOF
|
2048
|
6467 if { (eval echo configure:6468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6468 rm -rf conftest*
|
|
6469 eval "ac_cv_func_remove=yes"
|
|
6470 else
|
|
6471 echo "configure: failed program was:" >&5
|
|
6472 cat conftest.$ac_ext >&5
|
|
6473 rm -rf conftest*
|
|
6474 eval "ac_cv_func_remove=no"
|
|
6475 fi
|
|
6476 rm -f conftest*
|
|
6477
|
|
6478 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
|
6479 echo "$ac_t""yes" 1>&6
|
|
6480 :
|
|
6481 else
|
|
6482 echo "$ac_t""no" 1>&6
|
|
6483 fi
|
|
6484
|
|
6485 if test $ac_cv_func_remove = no; then
|
|
6486
|
|
6487 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
2048
|
6488 echo "configure:6489: checking for remove in -lposix" >&5
|
149
|
6489 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
|
6490
|
|
6491 xe_check_libs=" -lposix "
|
|
6492 cat > conftest.$ac_ext <<EOF
|
2048
|
6493 #line 6494 "configure"
|
149
|
6494 #include "confdefs.h"
|
|
6495 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6496 /* We use char because int might match the return type of a gcc2
|
|
6497 builtin and then its argument prototype would still apply. */
|
|
6498 char remove();
|
|
6499
|
|
6500 int main() {
|
|
6501 remove()
|
|
6502 ; return 0; }
|
|
6503 EOF
|
2048
|
6504 if { (eval echo configure:6505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6505 rm -rf conftest*
|
|
6506 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6507 else
|
|
6508 echo "configure: failed program was:" >&5
|
|
6509 cat conftest.$ac_ext >&5
|
|
6510 rm -rf conftest*
|
|
6511 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6512 fi
|
|
6513 rm -f conftest*
|
|
6514 xe_check_libs=""
|
|
6515
|
151
|
6516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6517 echo "$ac_t""yes" 1>&6
|
|
6518 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
|
6519 else
|
|
6520 echo "$ac_t""no" 1>&6
|
|
6521 fi
|
|
6522
|
|
6523
|
|
6524 fi
|
|
6525
|
|
6526 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|
6527 echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
2048
|
6528 echo "configure:6529: checking for shmat" >&5
|
|
6529
|
|
6530 cat > conftest.$ac_ext <<EOF
|
|
6531 #line 6532 "configure"
|
149
|
6532 #include "confdefs.h"
|
|
6533 /* System header to define __stub macros and hopefully few prototypes,
|
|
6534 which can conflict with char shmat(); below. */
|
|
6535 #include <assert.h>
|
|
6536 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6537 /* We use char because int might match the return type of a gcc2
|
|
6538 builtin and then its argument prototype would still apply. */
|
|
6539 char shmat();
|
|
6540
|
|
6541 int main() {
|
|
6542
|
|
6543 /* The GNU C library defines this for functions which it implements
|
|
6544 to always fail with ENOSYS. Some functions are actually named
|
|
6545 something starting with __ and the normal name is an alias. */
|
|
6546 #if defined (__stub_shmat) || defined (__stub___shmat)
|
|
6547 choke me
|
|
6548 #else
|
|
6549 shmat();
|
|
6550 #endif
|
|
6551
|
|
6552 ; return 0; }
|
|
6553 EOF
|
2048
|
6554 if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6555 rm -rf conftest*
|
|
6556 eval "ac_cv_func_shmat=yes"
|
|
6557 else
|
|
6558 echo "configure: failed program was:" >&5
|
|
6559 cat conftest.$ac_ext >&5
|
|
6560 rm -rf conftest*
|
|
6561 eval "ac_cv_func_shmat=no"
|
|
6562 fi
|
|
6563 rm -f conftest*
|
|
6564
|
|
6565 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
|
6566 echo "$ac_t""yes" 1>&6
|
|
6567 :
|
|
6568 else
|
|
6569 echo "$ac_t""no" 1>&6
|
|
6570 fi
|
|
6571
|
|
6572 if test $ac_cv_func_shmat = no; then
|
|
6573
|
|
6574 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
2048
|
6575 echo "configure:6576: checking for shmat in -lipc" >&5
|
149
|
6576 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
|
6577
|
|
6578 xe_check_libs=" -lipc "
|
|
6579 cat > conftest.$ac_ext <<EOF
|
2048
|
6580 #line 6581 "configure"
|
149
|
6581 #include "confdefs.h"
|
|
6582 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6583 /* We use char because int might match the return type of a gcc2
|
|
6584 builtin and then its argument prototype would still apply. */
|
|
6585 char shmat();
|
|
6586
|
|
6587 int main() {
|
|
6588 shmat()
|
|
6589 ; return 0; }
|
|
6590 EOF
|
2048
|
6591 if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6592 rm -rf conftest*
|
|
6593 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6594 else
|
|
6595 echo "configure: failed program was:" >&5
|
|
6596 cat conftest.$ac_ext >&5
|
|
6597 rm -rf conftest*
|
|
6598 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6599 fi
|
|
6600 rm -f conftest*
|
|
6601 xe_check_libs=""
|
|
6602
|
151
|
6603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6604 echo "$ac_t""yes" 1>&6
|
|
6605 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
|
6606 else
|
|
6607 echo "$ac_t""no" 1>&6
|
|
6608 fi
|
|
6609
|
0
|
6610
|
|
6611 fi
|
149
|
6612 fi
|
|
6613
|
|
6614 # Check for libraries that X11R6 Xt/Xaw programs need.
|
|
6615 ac_save_LDFLAGS="$LDFLAGS"
|
|
6616 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
|
6617 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|
6618 # check for ICE first), but we must link in the order -lSM -lICE or
|
|
6619 # we get undefined symbols. So assume we have SM if we have ICE.
|
|
6620 # These have to be linked with before -lX11, unlike the other
|
|
6621 # libraries we check for below, so use a different variable.
|
|
6622 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
|
6623
|
420
|
6624 xe_msg_checking="for IceConnectionNumber in -lICE"
|
|
6625 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
6626 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2048
|
6627 echo "configure:6628: checking "$xe_msg_checking"" >&5
|
149
|
6628 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
|
6629
|
420
|
6630 xe_check_libs=" -lICE $X_EXTRA_LIBS"
|
|
6631 cat > conftest.$ac_ext <<EOF
|
2048
|
6632 #line 6633 "configure"
|
149
|
6633 #include "confdefs.h"
|
|
6634 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6635 /* We use char because int might match the return type of a gcc2
|
|
6636 builtin and then its argument prototype would still apply. */
|
|
6637 char IceConnectionNumber();
|
|
6638
|
|
6639 int main() {
|
|
6640 IceConnectionNumber()
|
|
6641 ; return 0; }
|
|
6642 EOF
|
2048
|
6643 if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6644 rm -rf conftest*
|
|
6645 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6646 else
|
|
6647 echo "configure: failed program was:" >&5
|
|
6648 cat conftest.$ac_ext >&5
|
|
6649 rm -rf conftest*
|
|
6650 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6651 fi
|
|
6652 rm -f conftest*
|
|
6653 xe_check_libs=""
|
|
6654
|
151
|
6655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6656 echo "$ac_t""yes" 1>&6
|
|
6657 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
|
6658 else
|
|
6659 echo "$ac_t""no" 1>&6
|
|
6660 fi
|
|
6661
|
|
6662
|
|
6663 LDFLAGS="$ac_save_LDFLAGS"
|
|
6664
|
|
6665 fi
|
|
6666 # Autoconf claims to find X library and include dirs for us.
|
|
6667 if test "$no_x" = "yes"
|
|
6668 then with_x11=no window_system=none HAVE_X_WINDOWS=no
|
|
6669 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
|
|
6670 fi
|
|
6671 fi
|
|
6672
|
0
|
6673
|
149
|
6674 if test "$with_x11" = "yes"; then
|
|
6675 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6676 Defining HAVE_X_WINDOWS
|
|
6677 EOF
|
|
6678 cat >> confdefs.h <<\EOF
|
|
6679 #define HAVE_X_WINDOWS 1
|
|
6680 EOF
|
|
6681 }
|
|
6682
|
151
|
6683 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
|
175
|
6684 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
|
149
|
6685
|
1454
|
6686
|
|
6687 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
|
6688 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
2048
|
6689 echo "configure:6690: checking for Xm/Xm.h" >&5
|
|
6690
|
|
6691 cat > conftest.$ac_ext <<EOF
|
|
6692 #line 6693 "configure"
|
1454
|
6693 #include "confdefs.h"
|
|
6694 #include <Xm/Xm.h>
|
|
6695 EOF
|
|
6696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
6697 { (eval echo configure:6698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1454
|
6698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
6699 if test -z "$ac_err"; then
|
|
6700 rm -rf conftest*
|
|
6701 eval "ac_cv_header_$ac_safe=yes"
|
|
6702 else
|
|
6703 echo "$ac_err" >&5
|
|
6704 echo "configure: failed program was:" >&5
|
|
6705 cat conftest.$ac_ext >&5
|
|
6706 rm -rf conftest*
|
|
6707 eval "ac_cv_header_$ac_safe=no"
|
|
6708 fi
|
|
6709 rm -f conftest*
|
|
6710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6711 echo "$ac_t""yes" 1>&6
|
|
6712
|
|
6713 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
2048
|
6714 echo "configure:6715: checking for XmStringFree in -lXm" >&5
|
1454
|
6715 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
6716
|
|
6717 xe_check_libs=" -lXm "
|
|
6718 cat > conftest.$ac_ext <<EOF
|
2048
|
6719 #line 6720 "configure"
|
1454
|
6720 #include "confdefs.h"
|
|
6721 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6722 /* We use char because int might match the return type of a gcc2
|
|
6723 builtin and then its argument prototype would still apply. */
|
|
6724 char XmStringFree();
|
|
6725
|
|
6726 int main() {
|
|
6727 XmStringFree()
|
|
6728 ; return 0; }
|
|
6729 EOF
|
2048
|
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1454
|
6731 rm -rf conftest*
|
|
6732 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6733 else
|
|
6734 echo "configure: failed program was:" >&5
|
|
6735 cat conftest.$ac_ext >&5
|
|
6736 rm -rf conftest*
|
|
6737 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6738 fi
|
|
6739 rm -f conftest*
|
|
6740 xe_check_libs=""
|
|
6741
|
|
6742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6743 echo "$ac_t""yes" 1>&6
|
|
6744 got_motif=yes
|
|
6745 else
|
|
6746 echo "$ac_t""no" 1>&6
|
|
6747 fi
|
|
6748
|
|
6749
|
|
6750 else
|
|
6751 echo "$ac_t""no" 1>&6
|
|
6752 fi
|
|
6753
|
|
6754
|
|
6755 if test "$got_motif" != "yes"; then
|
|
6756 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
|
|
6757 "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
|
|
6758 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
|
|
6759 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
|
6760 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
6761 x_libraries="$lib_dir $x_libraries"
|
|
6762 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
|
|
6763 esac
|
|
6764 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
6765 x_includes="$inc_dir $x_includes"
|
|
6766 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
|
|
6767 esac
|
|
6768 break; fi
|
|
6769 done
|
|
6770 fi
|
149
|
6771
|
|
6772 for rel in "X11R6" "X11R5" "X11R4"; do
|
|
6773 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
|
|
6774 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
151
|
6775 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
6776 x_libraries="$x_libraries $lib_dir"
|
|
6777 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
|
149
|
6778 esac
|
151
|
6779 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
6780 x_includes="$x_includes $inc_dir"
|
|
6781 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
|
149
|
6782 esac
|
|
6783 break; fi
|
|
6784 done
|
|
6785
|
442
|
6786 case "$opsys" in
|
|
6787 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 ;;
|
|
6788 esac
|
373
|
6789
|
149
|
6790 ld_switch_x_site="$X_LIBS"
|
|
6791
|
151
|
6792
|
|
6793 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
6794 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
6795 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
6796
|
163
|
6797 runpath="" runpath_dirs=""
|
155
|
6798 if test -n "$LD_RUN_PATH"; then
|
151
|
6799 runpath="$LD_RUN_PATH"
|
155
|
6800 elif test "$GCC" = "yes"; then
|
163
|
6801 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
6802 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
6803 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
6804 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
6805 case "$arg" in P,* | -L* | -R* )
|
159
|
6806 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
6807 {
|
155
|
6808 xe_runpath_dir="$dir"
|
163
|
6809 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
6810 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
6811 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
6812 eval "$xe_add_unique_runpath_dir"
|
|
6813 }
|
155
|
6814 done ;;
|
|
6815 esac
|
|
6816 done
|
163
|
6817 ld_switch_run="$ld_switch_run_save"
|
155
|
6818 rm -f conftest*
|
151
|
6819 else
|
155
|
6820 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
6821 case "$arg" in -L*) {
|
159
|
6822 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
6823 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
6824 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
6825 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
6826 eval "$xe_add_unique_runpath_dir"
|
|
6827 };; esac
|
151
|
6828 done
|
163
|
6829 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
6830 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
6831 eval "$xe_add_unique_runpath_dir";
|
|
6832 fi
|
155
|
6833 fi
|
151
|
6834 if test -n "$runpath"; then
|
|
6835 ld_switch_run="${dash_r}${runpath}"
|
272
|
6836
|
|
6837 if test "$GCC" = "yes"; then
|
|
6838 set x $ld_switch_run; shift; ld_switch_run=""
|
|
6839 while test -n "$1"; do
|
|
6840 case $1 in
|
380
|
6841 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
6842 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
6843 -Xlinker* ) ;;
|
|
6844 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
6845 esac
|
|
6846 shift
|
|
6847 done
|
|
6848 fi
|
151
|
6849 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
6850 fi
|
|
6851 fi
|
|
6852
|
|
6853
|
149
|
6854 if test "$extra_verbose" = "yes"; then
|
|
6855 echo; echo "X11 compilation variables:"
|
163
|
6856 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
|
149
|
6857 echo
|
|
6858 fi
|
|
6859
|
265
|
6860 bitmapdirs=
|
|
6861 if test "$x_includes" != NONE; then
|
|
6862 for i in $x_includes; do
|
|
6863 if test -d "$i/bitmaps"; then
|
|
6864 bitmapdirs="$i/bitmaps:$bitmapdirs"
|
|
6865 fi
|
|
6866 if test -d "$i/X11/bitmaps"; then
|
|
6867 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
|
|
6868 fi
|
|
6869 done
|
|
6870 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
|
|
6871 fi
|
|
6872 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
|
|
6873 Defining BITMAPDIR = "$bitmapdirs"
|
|
6874 EOF
|
|
6875 cat >> confdefs.h <<EOF
|
|
6876 #define BITMAPDIR "$bitmapdirs"
|
|
6877 EOF
|
|
6878 }
|
|
6879
|
|
6880
|
163
|
6881 echo "checking for X defines extracted by xmkmf" 1>&6
|
2048
|
6882 echo "configure:6883: checking for X defines extracted by xmkmf" >&5
|
163
|
6883 rm -fr conftestdir
|
|
6884 if mkdir conftestdir; then
|
|
6885 cd conftestdir
|
|
6886 cat > Imakefile <<'EOF'
|
|
6887 xetest:
|
|
6888 @echo ${PROTO_DEFINES} ${STD_DEFINES}
|
|
6889 EOF
|
|
6890 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
6891 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
6892 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
|
|
6893 fi
|
|
6894 cd ..
|
|
6895 rm -fr conftestdir
|
|
6896 for word in $xmkmf_defines; do
|
535
|
6897 case "$word" in
|
473
|
6898 -D__STDC__*) ;;
|
|
6899 -D* )
|
442
|
6900 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
|
|
6901 case "$word" in
|
|
6902 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
|
|
6903 * ) val=1 ;;
|
|
6904 esac
|
|
6905 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
|
|
6906 if test "$val" = "1"
|
|
6907 then { test "$extra_verbose" = "yes" && cat << EOF
|
|
6908 Defining $sym
|
|
6909 EOF
|
|
6910 cat >> confdefs.h <<EOF
|
|
6911 #define $sym 1
|
|
6912 EOF
|
|
6913 }
|
|
6914
|
|
6915 else { test "$extra_verbose" = "yes" && cat << EOF
|
|
6916 Defining $sym = $val
|
|
6917 EOF
|
|
6918 cat >> confdefs.h <<EOF
|
|
6919 #define $sym $val
|
|
6920 EOF
|
|
6921 }
|
|
6922
|
|
6923 fi
|
|
6924 fi ;;
|
163
|
6925 esac
|
|
6926 done
|
|
6927 fi
|
|
6928
|
149
|
6929 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
|
|
6930 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
|
2048
|
6931 echo "configure:6932: checking for X11/Intrinsic.h" >&5
|
|
6932
|
|
6933 cat > conftest.$ac_ext <<EOF
|
|
6934 #line 6935 "configure"
|
149
|
6935 #include "confdefs.h"
|
|
6936 #include <X11/Intrinsic.h>
|
|
6937 EOF
|
|
6938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
6939 { (eval echo configure:6940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
6940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
6941 if test -z "$ac_err"; then
|
|
6942 rm -rf conftest*
|
|
6943 eval "ac_cv_header_$ac_safe=yes"
|
|
6944 else
|
|
6945 echo "$ac_err" >&5
|
|
6946 echo "configure: failed program was:" >&5
|
|
6947 cat conftest.$ac_ext >&5
|
|
6948 rm -rf conftest*
|
|
6949 eval "ac_cv_header_$ac_safe=no"
|
|
6950 fi
|
|
6951 rm -f conftest*
|
|
6952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6953 echo "$ac_t""yes" 1>&6
|
|
6954 :
|
|
6955 else
|
|
6956 echo "$ac_t""no" 1>&6
|
561
|
6957 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; }
|
149
|
6958 fi
|
|
6959
|
|
6960
|
|
6961
|
|
6962 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
|
2048
|
6963 echo "configure:6964: checking for XOpenDisplay in -lX11" >&5
|
149
|
6964 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
|
|
6965
|
|
6966 xe_check_libs=" -lX11 "
|
|
6967 cat > conftest.$ac_ext <<EOF
|
2048
|
6968 #line 6969 "configure"
|
149
|
6969 #include "confdefs.h"
|
|
6970 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6971 /* We use char because int might match the return type of a gcc2
|
|
6972 builtin and then its argument prototype would still apply. */
|
|
6973 char XOpenDisplay();
|
|
6974
|
|
6975 int main() {
|
|
6976 XOpenDisplay()
|
|
6977 ; return 0; }
|
|
6978 EOF
|
2048
|
6979 if { (eval echo configure:6980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6980 rm -rf conftest*
|
|
6981 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6982 else
|
|
6983 echo "configure: failed program was:" >&5
|
|
6984 cat conftest.$ac_ext >&5
|
|
6985 rm -rf conftest*
|
|
6986 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6987 fi
|
|
6988 rm -f conftest*
|
|
6989 xe_check_libs=""
|
|
6990
|
151
|
6991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6992 echo "$ac_t""yes" 1>&6
|
|
6993 have_lib_x11=yes
|
|
6994 else
|
|
6995 echo "$ac_t""no" 1>&6
|
|
6996 fi
|
|
6997
|
|
6998
|
|
6999 if test "$have_lib_x11" != "yes"; then
|
|
7000
|
|
7001 xe_msg_checking="for XGetFontProperty in -lX11"
|
|
7002 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
|
|
7003 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2048
|
7004 echo "configure:7005: checking "$xe_msg_checking"" >&5
|
149
|
7005 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
|
|
7006
|
|
7007 xe_check_libs=" -lX11 -b i486-linuxaout"
|
|
7008 cat > conftest.$ac_ext <<EOF
|
2048
|
7009 #line 7010 "configure"
|
149
|
7010 #include "confdefs.h"
|
|
7011 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7012 /* We use char because int might match the return type of a gcc2
|
|
7013 builtin and then its argument prototype would still apply. */
|
|
7014 char XGetFontProperty();
|
|
7015
|
|
7016 int main() {
|
|
7017 XGetFontProperty()
|
|
7018 ; return 0; }
|
|
7019 EOF
|
2048
|
7020 if { (eval echo configure:7021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7021 rm -rf conftest*
|
|
7022 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7023 else
|
|
7024 echo "configure: failed program was:" >&5
|
|
7025 cat conftest.$ac_ext >&5
|
|
7026 rm -rf conftest*
|
|
7027 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7028 fi
|
|
7029 rm -f conftest*
|
|
7030 xe_check_libs=""
|
|
7031
|
151
|
7032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7033 echo "$ac_t""yes" 1>&6
|
|
7034 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
|
|
7035 else
|
|
7036 echo "$ac_t""no" 1>&6
|
561
|
7037 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
|
149
|
7038 fi
|
|
7039
|
|
7040
|
0
|
7041 fi
|
149
|
7042 libs_x="-lX11"
|
151
|
7043 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
|
149
|
7044
|
153
|
7045
|
|
7046 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
|
2048
|
7047 echo "configure:7048: checking for XShapeSelectInput in -lXext" >&5
|
153
|
7048 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
|
|
7049
|
|
7050 xe_check_libs=" -lXext "
|
|
7051 cat > conftest.$ac_ext <<EOF
|
2048
|
7052 #line 7053 "configure"
|
153
|
7053 #include "confdefs.h"
|
|
7054 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7055 /* We use char because int might match the return type of a gcc2
|
|
7056 builtin and then its argument prototype would still apply. */
|
|
7057 char XShapeSelectInput();
|
|
7058
|
|
7059 int main() {
|
|
7060 XShapeSelectInput()
|
|
7061 ; return 0; }
|
|
7062 EOF
|
2048
|
7063 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
153
|
7064 rm -rf conftest*
|
|
7065 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7066 else
|
|
7067 echo "configure: failed program was:" >&5
|
|
7068 cat conftest.$ac_ext >&5
|
|
7069 rm -rf conftest*
|
|
7070 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7071 fi
|
|
7072 rm -f conftest*
|
|
7073 xe_check_libs=""
|
|
7074
|
|
7075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7076 echo "$ac_t""yes" 1>&6
|
|
7077 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
|
|
7078 else
|
|
7079 echo "$ac_t""no" 1>&6
|
|
7080 fi
|
|
7081
|
|
7082
|
|
7083
|
169
|
7084
|
149
|
7085 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
|
2048
|
7086 echo "configure:7087: checking for XtOpenDisplay in -lXt" >&5
|
149
|
7087 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
|
|
7088
|
|
7089 xe_check_libs=" -lXt "
|
|
7090 cat > conftest.$ac_ext <<EOF
|
2048
|
7091 #line 7092 "configure"
|
149
|
7092 #include "confdefs.h"
|
|
7093 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7094 /* We use char because int might match the return type of a gcc2
|
|
7095 builtin and then its argument prototype would still apply. */
|
|
7096 char XtOpenDisplay();
|
|
7097
|
|
7098 int main() {
|
|
7099 XtOpenDisplay()
|
|
7100 ; return 0; }
|
|
7101 EOF
|
2048
|
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7103 rm -rf conftest*
|
|
7104 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7105 else
|
|
7106 echo "configure: failed program was:" >&5
|
|
7107 cat conftest.$ac_ext >&5
|
|
7108 rm -rf conftest*
|
|
7109 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7110 fi
|
|
7111 rm -f conftest*
|
|
7112 xe_check_libs=""
|
|
7113
|
151
|
7114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7115 echo "$ac_t""yes" 1>&6
|
|
7116 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
|
149
|
7117 else
|
|
7118 echo "$ac_t""no" 1>&6
|
561
|
7119 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
|
149
|
7120 fi
|
|
7121
|
169
|
7122
|
149
|
7123
|
|
7124 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
|
2048
|
7125 echo "configure:7126: checking the version of X11 being used" >&5
|
149
|
7126 cat > conftest.$ac_ext <<EOF
|
2048
|
7127 #line 7128 "configure"
|
149
|
7128 #include "confdefs.h"
|
|
7129 #include <X11/Intrinsic.h>
|
272
|
7130 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
|
|
7131 EOF
|
2048
|
7132 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
7133 then
|
151
|
7134 ./conftest foobar; x11_release=$?
|
149
|
7135 else
|
373
|
7136 conftest_rc="$?"
|
149
|
7137 echo "configure: failed program was:" >&5
|
|
7138 cat conftest.$ac_ext >&5
|
|
7139 rm -fr conftest*
|
151
|
7140 x11_release=4
|
149
|
7141 fi
|
|
7142 rm -fr conftest*
|
151
|
7143 echo "$ac_t""R${x11_release}" 1>&6
|
149
|
7144 { test "$extra_verbose" = "yes" && cat << EOF
|
151
|
7145 Defining THIS_IS_X11R${x11_release}
|
149
|
7146 EOF
|
|
7147 cat >> confdefs.h <<EOF
|
151
|
7148 #define THIS_IS_X11R${x11_release} 1
|
149
|
7149 EOF
|
|
7150 }
|
|
7151
|
|
7152
|
442
|
7153 if test "${x11_release}" = "4"; then
|
|
7154 case "$with_widgets" in
|
|
7155 "" | "no") with_widgets=no ;;
|
|
7156 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
|
|
7157 esac
|
|
7158 fi
|
|
7159
|
|
7160 for ac_func in XConvertCase
|
|
7161 do
|
|
7162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
7163 echo "configure:7164: checking for $ac_func" >&5
|
|
7164
|
|
7165 cat > conftest.$ac_ext <<EOF
|
|
7166 #line 7167 "configure"
|
442
|
7167 #include "confdefs.h"
|
|
7168 /* System header to define __stub macros and hopefully few prototypes,
|
|
7169 which can conflict with char $ac_func(); below. */
|
|
7170 #include <assert.h>
|
|
7171 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7172 /* We use char because int might match the return type of a gcc2
|
|
7173 builtin and then its argument prototype would still apply. */
|
|
7174 char $ac_func();
|
|
7175
|
|
7176 int main() {
|
|
7177
|
|
7178 /* The GNU C library defines this for functions which it implements
|
|
7179 to always fail with ENOSYS. Some functions are actually named
|
|
7180 something starting with __ and the normal name is an alias. */
|
|
7181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
7182 choke me
|
|
7183 #else
|
|
7184 $ac_func();
|
|
7185 #endif
|
|
7186
|
|
7187 ; return 0; }
|
|
7188 EOF
|
2048
|
7189 if { (eval echo configure:7190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
7190 rm -rf conftest*
|
|
7191 eval "ac_cv_func_$ac_func=yes"
|
|
7192 else
|
|
7193 echo "configure: failed program was:" >&5
|
|
7194 cat conftest.$ac_ext >&5
|
|
7195 rm -rf conftest*
|
|
7196 eval "ac_cv_func_$ac_func=no"
|
|
7197 fi
|
|
7198 rm -f conftest*
|
|
7199
|
|
7200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
7201 echo "$ac_t""yes" 1>&6
|
|
7202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
7203 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7204 Defining $ac_tr_func
|
|
7205 EOF
|
|
7206 cat >> confdefs.h <<EOF
|
|
7207 #define $ac_tr_func 1
|
|
7208 EOF
|
|
7209 }
|
|
7210
|
|
7211 else
|
|
7212 echo "$ac_t""no" 1>&6
|
|
7213 fi
|
|
7214 done
|
|
7215
|
|
7216
|
149
|
7217 for ac_hdr in X11/Xlocale.h
|
|
7218 do
|
|
7219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
7220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2048
|
7221 echo "configure:7222: checking for $ac_hdr" >&5
|
|
7222
|
|
7223 cat > conftest.$ac_ext <<EOF
|
|
7224 #line 7225 "configure"
|
149
|
7225 #include "confdefs.h"
|
|
7226 #include <$ac_hdr>
|
|
7227 EOF
|
|
7228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
7229 { (eval echo configure:7230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7231 if test -z "$ac_err"; then
|
|
7232 rm -rf conftest*
|
|
7233 eval "ac_cv_header_$ac_safe=yes"
|
|
7234 else
|
|
7235 echo "$ac_err" >&5
|
|
7236 echo "configure: failed program was:" >&5
|
|
7237 cat conftest.$ac_ext >&5
|
|
7238 rm -rf conftest*
|
|
7239 eval "ac_cv_header_$ac_safe=no"
|
|
7240 fi
|
|
7241 rm -f conftest*
|
|
7242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7243 echo "$ac_t""yes" 1>&6
|
|
7244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
7245 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7246 Defining $ac_tr_hdr
|
|
7247 EOF
|
|
7248 cat >> confdefs.h <<EOF
|
|
7249 #define $ac_tr_hdr 1
|
|
7250 EOF
|
|
7251 }
|
|
7252
|
|
7253 else
|
|
7254 echo "$ac_t""no" 1>&6
|
|
7255 fi
|
|
7256 done
|
|
7257
|
|
7258
|
444
|
7259 for ac_func in XRegisterIMInstantiateCallback
|
|
7260 do
|
|
7261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
7262 echo "configure:7263: checking for $ac_func" >&5
|
|
7263
|
|
7264 cat > conftest.$ac_ext <<EOF
|
|
7265 #line 7266 "configure"
|
444
|
7266 #include "confdefs.h"
|
|
7267 /* System header to define __stub macros and hopefully few prototypes,
|
|
7268 which can conflict with char $ac_func(); below. */
|
|
7269 #include <assert.h>
|
|
7270 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7271 /* We use char because int might match the return type of a gcc2
|
|
7272 builtin and then its argument prototype would still apply. */
|
|
7273 char $ac_func();
|
|
7274
|
|
7275 int main() {
|
|
7276
|
|
7277 /* The GNU C library defines this for functions which it implements
|
|
7278 to always fail with ENOSYS. Some functions are actually named
|
|
7279 something starting with __ and the normal name is an alias. */
|
|
7280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
7281 choke me
|
|
7282 #else
|
|
7283 $ac_func();
|
|
7284 #endif
|
|
7285
|
|
7286 ; return 0; }
|
|
7287 EOF
|
2048
|
7288 if { (eval echo configure:7289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
444
|
7289 rm -rf conftest*
|
|
7290 eval "ac_cv_func_$ac_func=yes"
|
|
7291 else
|
|
7292 echo "configure: failed program was:" >&5
|
|
7293 cat conftest.$ac_ext >&5
|
|
7294 rm -rf conftest*
|
|
7295 eval "ac_cv_func_$ac_func=no"
|
|
7296 fi
|
|
7297 rm -f conftest*
|
|
7298
|
|
7299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
7300 echo "$ac_t""yes" 1>&6
|
|
7301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
7302 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7303 Defining $ac_tr_func
|
|
7304 EOF
|
|
7305 cat >> confdefs.h <<EOF
|
|
7306 #define $ac_tr_func 1
|
|
7307 EOF
|
|
7308 }
|
|
7309
|
|
7310 else
|
|
7311 echo "$ac_t""no" 1>&6
|
|
7312 fi
|
|
7313 done
|
|
7314
|
|
7315 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
|
2048
|
7316 echo "configure:7317: checking for standard XRegisterIMInstantiateCallback prototype" >&5
|
444
|
7317 cat > conftest.$ac_ext <<EOF
|
2048
|
7318 #line 7319 "configure"
|
444
|
7319 #include "confdefs.h"
|
|
7320
|
|
7321 #define NeedFunctionPrototypes 1
|
|
7322 #include <X11/Xlib.h>
|
|
7323 extern Bool XRegisterIMInstantiateCallback(
|
|
7324 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
|
|
7325
|
|
7326 int main() {
|
|
7327
|
|
7328 ; return 0; }
|
|
7329 EOF
|
2048
|
7330 if { (eval echo configure:7331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
444
|
7331 rm -rf conftest*
|
|
7332 echo "$ac_t""yes" 1>&6
|
|
7333 else
|
|
7334 echo "configure: failed program was:" >&5
|
|
7335 cat conftest.$ac_ext >&5
|
|
7336 rm -rf conftest*
|
|
7337 echo "$ac_t""no" 1>&6
|
|
7338 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7339 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
|
|
7340 EOF
|
|
7341 cat >> confdefs.h <<\EOF
|
|
7342 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
|
|
7343 EOF
|
|
7344 }
|
|
7345
|
|
7346 fi
|
|
7347 rm -f conftest*
|
149
|
7348
|
169
|
7349 test -z "$with_xmu" && {
|
|
7350 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
|
2048
|
7351 echo "configure:7352: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
|
169
|
7352 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
|
149
|
7353
|
|
7354 xe_check_libs=" -lXmu "
|
|
7355 cat > conftest.$ac_ext <<EOF
|
2048
|
7356 #line 7357 "configure"
|
149
|
7357 #include "confdefs.h"
|
|
7358 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7359 /* We use char because int might match the return type of a gcc2
|
|
7360 builtin and then its argument prototype would still apply. */
|
169
|
7361 char XmuReadBitmapDataFromFile();
|
149
|
7362
|
|
7363 int main() {
|
169
|
7364 XmuReadBitmapDataFromFile()
|
149
|
7365 ; return 0; }
|
|
7366 EOF
|
2048
|
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7368 rm -rf conftest*
|
|
7369 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7370 else
|
|
7371 echo "configure: failed program was:" >&5
|
|
7372 cat conftest.$ac_ext >&5
|
|
7373 rm -rf conftest*
|
|
7374 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7375 fi
|
|
7376 rm -f conftest*
|
|
7377 xe_check_libs=""
|
|
7378
|
151
|
7379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7380 echo "$ac_t""yes" 1>&6
|
|
7381 with_xmu=yes
|
|
7382 else
|
|
7383 echo "$ac_t""no" 1>&6
|
|
7384 with_xmu=no
|
|
7385 fi
|
|
7386
|
169
|
7387 }
|
185
|
7388 if test "$with_xmu" = "no"; then
|
|
7389 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
|
151
|
7390 echo " xemacs will be linked with \"xmu.o\""
|
|
7391 fi
|
187
|
7392 else
|
185
|
7393 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
|
|
7394 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7395 Defining HAVE_XMU
|
|
7396 EOF
|
|
7397 cat >> confdefs.h <<\EOF
|
|
7398 #define HAVE_XMU 1
|
|
7399 EOF
|
|
7400 }
|
|
7401
|
169
|
7402 fi
|
151
|
7403
|
|
7404
|
|
7405 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
|
2048
|
7406 echo "configure:7407: checking for main in -lXbsd" >&5
|
151
|
7407 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
|
|
7408
|
|
7409 xe_check_libs=" -lXbsd "
|
|
7410 cat > conftest.$ac_ext <<EOF
|
2048
|
7411 #line 7412 "configure"
|
151
|
7412 #include "confdefs.h"
|
149
|
7413
|
|
7414 int main() {
|
151
|
7415 main()
|
149
|
7416 ; return 0; }
|
|
7417 EOF
|
2048
|
7418 if { (eval echo configure:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7419 rm -rf conftest*
|
|
7420 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7421 else
|
|
7422 echo "configure: failed program was:" >&5
|
|
7423 cat conftest.$ac_ext >&5
|
|
7424 rm -rf conftest*
|
|
7425 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7426 fi
|
|
7427 rm -f conftest*
|
|
7428 xe_check_libs=""
|
|
7429
|
151
|
7430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7431 echo "$ac_t""yes" 1>&6
|
|
7432 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
|
|
7433 else
|
|
7434 echo "$ac_t""no" 1>&6
|
|
7435 fi
|
|
7436
|
149
|
7437
|
|
7438
|
243
|
7439 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
|
274
|
7440 if test "$GCC" = "yes"; then
|
|
7441 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
|
|
7442 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
|
|
7443 else
|
|
7444 case "$CC" in
|
|
7445 "xlc" ) CC="xlc_r" ;;
|
|
7446 "xlC" ) CC="xlC_r" ;;
|
|
7447 "cc" ) CC="cc_r" ;;
|
|
7448 esac
|
|
7449 fi
|
243
|
7450 fi
|
|
7451
|
149
|
7452 fi
|
265
|
7453 if test "$with_msw" != "no"; then
|
|
7454 echo "checking for MS-Windows" 1>&6
|
2048
|
7455 echo "configure:7456: checking for MS-Windows" >&5
|
265
|
7456
|
|
7457 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
|
2048
|
7458 echo "configure:7459: checking for main in -lgdi32" >&5
|
265
|
7459 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
|
|
7460
|
|
7461 xe_check_libs=" -lgdi32 "
|
|
7462 cat > conftest.$ac_ext <<EOF
|
2048
|
7463 #line 7464 "configure"
|
265
|
7464 #include "confdefs.h"
|
|
7465
|
|
7466 int main() {
|
|
7467 main()
|
|
7468 ; return 0; }
|
|
7469 EOF
|
2048
|
7470 if { (eval echo configure:7471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
265
|
7471 rm -rf conftest*
|
|
7472 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7473 else
|
|
7474 echo "configure: failed program was:" >&5
|
|
7475 cat conftest.$ac_ext >&5
|
|
7476 rm -rf conftest*
|
|
7477 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7478 fi
|
|
7479 rm -f conftest*
|
|
7480 xe_check_libs=""
|
|
7481
|
|
7482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7483 echo "$ac_t""yes" 1>&6
|
|
7484 with_msw=yes
|
|
7485 else
|
|
7486 echo "$ac_t""no" 1>&6
|
|
7487 fi
|
|
7488
|
|
7489
|
|
7490 if test "$with_msw" = "yes"; then
|
|
7491 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7492 Defining HAVE_MS_WINDOWS
|
|
7493 EOF
|
|
7494 cat >> confdefs.h <<\EOF
|
|
7495 #define HAVE_MS_WINDOWS 1
|
|
7496 EOF
|
|
7497 }
|
|
7498
|
448
|
7499
|
462
|
7500 if test "$with_netinstall" = "yes"; then
|
|
7501 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
|
|
7502 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
|
|
7503 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
7504 fi
|
458
|
7505
|
1740
|
7506 install_pp="$srcdir/lib-src/installexe.sh"
|
771
|
7507 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
|
|
7508 if test "$with_dragndrop" != no; then
|
|
7509 dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
|
|
7510 with_dragndrop=yes
|
|
7511 fi
|
265
|
7512 if test "$window_system" != x11; then
|
771
|
7513 window_system=msw
|
|
7514 test "$with_scrollbars" != "no" && with_scrollbars=msw
|
|
7515 test "$with_menubars" != "no" && with_menubars=msw
|
|
7516 test "$with_toolbars" != "no" && with_toolbars=msw
|
|
7517 test "$with_dialogs" != "no" && with_dialogs=msw
|
|
7518 test "$with_widgets" != "no" && with_widgets=msw
|
265
|
7519 fi
|
278
|
7520 cat > conftest.$ac_ext <<EOF
|
2048
|
7521 #line 7522 "configure"
|
278
|
7522 #include "confdefs.h"
|
|
7523 #include <fcntl.h>
|
|
7524 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
|
|
7525 EOF
|
2048
|
7526 if { (eval echo configure:7527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
278
|
7527 then
|
771
|
7528 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
7529 Defining HAVE_MSG_SELECT
|
|
7530 EOF
|
|
7531 cat >> confdefs.h <<\EOF
|
|
7532 #define HAVE_MSG_SELECT 1
|
|
7533 EOF
|
|
7534 }
|
|
7535
|
|
7536 else
|
373
|
7537 conftest_rc="$?"
|
278
|
7538 echo "configure: failed program was:" >&5
|
|
7539 cat conftest.$ac_ext >&5
|
|
7540 fi
|
|
7541 rm -fr conftest*
|
771
|
7542 fi
|
|
7543 fi
|
|
7544
|
|
7545
|
|
7546
|
|
7547 test -z "$with_dragndrop" && with_dragndrop="$with_dragndrop_default"
|
149
|
7548 test -z "$window_system" && window_system="none"
|
|
7549
|
272
|
7550 if test "$window_system" = "none"; then
|
388
|
7551 for feature in menubars scrollbars toolbars dialogs dragndrop xface
|
272
|
7552 do
|
|
7553 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7554 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
|
|
7555 fi
|
|
7556 eval "with_${feature}=no"
|
|
7557 done
|
|
7558 else
|
|
7559 test -z "$with_toolbars" && with_toolbars=yes
|
|
7560 fi
|
|
7561
|
|
7562 if test "$with_msw" != "yes"; then
|
|
7563 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
|
|
7564 do
|
|
7565 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7566 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
|
|
7567 fi
|
|
7568 eval "with_${feature}=no"
|
|
7569 done
|
|
7570 else
|
|
7571 :
|
|
7572 fi
|
|
7573
|
|
7574 if test "$with_x11" != "yes"; then
|
434
|
7575 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
|
70
|
7576 do
|
149
|
7577 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7578 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
|
70
|
7579 fi
|
149
|
7580 eval "with_${feature}=no"
|
70
|
7581 done
|
149
|
7582 fi
|
|
7583
|
442
|
7584 if test "$with_x11" = "yes"; then
|
|
7585 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
|
|
7586 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
|
2048
|
7587 echo "configure:7588: checking for X11/extensions/shape.h" >&5
|
|
7588
|
|
7589 cat > conftest.$ac_ext <<EOF
|
|
7590 #line 7591 "configure"
|
442
|
7591 #include "confdefs.h"
|
|
7592 #include <X11/extensions/shape.h>
|
|
7593 EOF
|
|
7594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
7595 { (eval echo configure:7596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
7596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7597 if test -z "$ac_err"; then
|
|
7598 rm -rf conftest*
|
|
7599 eval "ac_cv_header_$ac_safe=yes"
|
|
7600 else
|
|
7601 echo "$ac_err" >&5
|
|
7602 echo "configure: failed program was:" >&5
|
|
7603 cat conftest.$ac_ext >&5
|
|
7604 rm -rf conftest*
|
|
7605 eval "ac_cv_header_$ac_safe=no"
|
|
7606 fi
|
|
7607 rm -f conftest*
|
|
7608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7609 echo "$ac_t""yes" 1>&6
|
|
7610
|
|
7611 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7612 Defining HAVE_BALLOON_HELP
|
|
7613 EOF
|
|
7614 cat >> confdefs.h <<\EOF
|
|
7615 #define HAVE_BALLOON_HELP 1
|
|
7616 EOF
|
|
7617 }
|
|
7618
|
771
|
7619
|
442
|
7620 else
|
|
7621 echo "$ac_t""no" 1>&6
|
|
7622 fi
|
|
7623
|
|
7624 fi
|
|
7625
|
0
|
7626 bitmapdir=
|
|
7627
|
149
|
7628 case "$window_system" in
|
70
|
7629 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
272
|
7630 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
|
462
|
7631 gtk )
|
|
7632 HAVE_X_WINDOWS=no
|
|
7633 test "$with_gnome" = "yes" && echo " Using GNOME."
|
|
7634 test "$with_gnome" = "no" && echo " Using GTK."
|
|
7635 ;;
|
70
|
7636 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
0
|
7637 esac
|
|
7638
|
149
|
7639 case "$x_libraries" in *X11R4* )
|
|
7640 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
|
|
7641 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
|
|
7642 esac
|
|
7643
|
414
|
7644 echo "checking for WM_COMMAND option" 1>&6
|
2048
|
7645 echo "configure:7646: checking for WM_COMMAND option" >&5;
|
414
|
7646 if test "$with_wmcommand" != "no"; then
|
|
7647 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7648 Defining HAVE_WMCOMMAND
|
|
7649 EOF
|
|
7650 cat >> confdefs.h <<\EOF
|
|
7651 #define HAVE_WMCOMMAND 1
|
177
|
7652 EOF
|
|
7653 }
|
|
7654
|
|
7655 fi
|
|
7656
|
149
|
7657 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
|
|
7658 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
|
|
7659 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
|
2048
|
7660 echo "configure:7661: checking for X11/Xauth.h" >&5
|
|
7661
|
|
7662 cat > conftest.$ac_ext <<EOF
|
|
7663 #line 7664 "configure"
|
149
|
7664 #include "confdefs.h"
|
|
7665 #include <X11/Xauth.h>
|
|
7666 EOF
|
|
7667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
7668 { (eval echo configure:7669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7670 if test -z "$ac_err"; then
|
|
7671 rm -rf conftest*
|
|
7672 eval "ac_cv_header_$ac_safe=yes"
|
|
7673 else
|
|
7674 echo "$ac_err" >&5
|
|
7675 echo "configure: failed program was:" >&5
|
|
7676 cat conftest.$ac_ext >&5
|
|
7677 rm -rf conftest*
|
|
7678 eval "ac_cv_header_$ac_safe=no"
|
|
7679 fi
|
|
7680 rm -f conftest*
|
|
7681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7682 echo "$ac_t""yes" 1>&6
|
|
7683 :
|
|
7684 else
|
|
7685 echo "$ac_t""no" 1>&6
|
|
7686 with_xauth=no
|
|
7687 fi
|
|
7688 }
|
|
7689 test -z "$with_xauth" && {
|
|
7690 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
|
2048
|
7691 echo "configure:7692: checking for XauGetAuthByAddr in -lXau" >&5
|
149
|
7692 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
|
|
7693
|
|
7694 xe_check_libs=" -lXau "
|
|
7695 cat > conftest.$ac_ext <<EOF
|
2048
|
7696 #line 7697 "configure"
|
149
|
7697 #include "confdefs.h"
|
|
7698 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7699 /* We use char because int might match the return type of a gcc2
|
|
7700 builtin and then its argument prototype would still apply. */
|
|
7701 char XauGetAuthByAddr();
|
|
7702
|
|
7703 int main() {
|
|
7704 XauGetAuthByAddr()
|
|
7705 ; return 0; }
|
|
7706 EOF
|
2048
|
7707 if { (eval echo configure:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7708 rm -rf conftest*
|
|
7709 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7710 else
|
|
7711 echo "configure: failed program was:" >&5
|
|
7712 cat conftest.$ac_ext >&5
|
|
7713 rm -rf conftest*
|
|
7714 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7715 fi
|
|
7716 rm -f conftest*
|
|
7717 xe_check_libs=""
|
|
7718
|
151
|
7719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7720 echo "$ac_t""yes" 1>&6
|
|
7721 :
|
|
7722 else
|
|
7723 echo "$ac_t""no" 1>&6
|
|
7724 with_xauth=no
|
|
7725 fi
|
|
7726
|
|
7727 }
|
|
7728 test -z "$with_xauth" && with_xauth=yes
|
|
7729 if test "$with_xauth" = "yes"; then
|
|
7730 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7731 Defining HAVE_XAUTH
|
|
7732 EOF
|
|
7733 cat >> confdefs.h <<\EOF
|
|
7734 #define HAVE_XAUTH 1
|
|
7735 EOF
|
|
7736 }
|
|
7737
|
159
|
7738
|
|
7739 T=""
|
462
|
7740 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
|
7741 libs_xauth="$T"
|
|
7742
|
|
7743 fi
|
|
7744
|
149
|
7745
|
274
|
7746
|
149
|
7747
|
1111
|
7748
|
1651
|
7749 if test "$xemacs_compiler" = "g++"; then
|
|
7750 LIBSTDCPP=-lstdc++
|
|
7751 else
|
|
7752 LIBSTDCPP=
|
|
7753 fi
|
|
7754
|
|
7755
|
1470
|
7756 if test "$with_modules" != "no"; then
|
|
7757 echo "checking for module support" 1>&6
|
2048
|
7758 echo "configure:7759: checking for module support" >&5
|
1470
|
7759
|
|
7760 if test "$with_msw" = "yes"; then
|
|
7761 have_dl=yes;
|
|
7762 else
|
|
7763 case "$opsys" in
|
|
7764 darwin ) have_dl=yes; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7765 Defining HAVE_DYLD
|
|
7766 EOF
|
|
7767 cat >> confdefs.h <<\EOF
|
|
7768 #define HAVE_DYLD 1
|
|
7769 EOF
|
|
7770 }
|
|
7771 ;;
|
|
7772 * )
|
|
7773 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
|
|
7774 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
|
2048
|
7775 echo "configure:7776: checking for dlfcn.h" >&5
|
|
7776
|
|
7777 cat > conftest.$ac_ext <<EOF
|
|
7778 #line 7779 "configure"
|
1470
|
7779 #include "confdefs.h"
|
|
7780 #include <dlfcn.h>
|
|
7781 EOF
|
|
7782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
7783 { (eval echo configure:7784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1470
|
7784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7785 if test -z "$ac_err"; then
|
|
7786 rm -rf conftest*
|
|
7787 eval "ac_cv_header_$ac_safe=yes"
|
|
7788 else
|
|
7789 echo "$ac_err" >&5
|
|
7790 echo "configure: failed program was:" >&5
|
|
7791 cat conftest.$ac_ext >&5
|
|
7792 rm -rf conftest*
|
|
7793 eval "ac_cv_header_$ac_safe=no"
|
|
7794 fi
|
|
7795 rm -f conftest*
|
|
7796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7797 echo "$ac_t""yes" 1>&6
|
|
7798
|
|
7799 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
|
2048
|
7800 echo "configure:7801: checking for dlopen in -lc" >&5
|
|
7801 cat > conftest.$ac_ext <<EOF
|
|
7802 #line 7803 "configure"
|
|
7803 #include "confdefs.h"
|
|
7804 #include <dlfcn.h>
|
|
7805 int main() {
|
|
7806 dlopen ("", 0);
|
|
7807 ; return 0; }
|
|
7808 EOF
|
|
7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
7810 rm -rf conftest*
|
|
7811 have_dl=yes
|
|
7812 else
|
|
7813 echo "configure: failed program was:" >&5
|
|
7814 cat conftest.$ac_ext >&5
|
|
7815 rm -rf conftest*
|
|
7816
|
|
7817 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
|
7818 echo "configure:7819: checking for dlopen in -ldl" >&5
|
|
7819 ac_save_LIBS="$LIBS"
|
|
7820 LIBS="-ldl $LIBS"
|
1470
|
7821 cat > conftest.$ac_ext <<EOF
|
2009
|
7822 #line 7823 "configure"
|
1470
|
7823 #include "confdefs.h"
|
|
7824 #include <dlfcn.h>
|
|
7825 int main() {
|
|
7826 dlopen ("", 0);
|
|
7827 ; return 0; }
|
|
7828 EOF
|
2009
|
7829 if { (eval echo configure:7830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
7830 rm -rf conftest*
|
|
7831 have_dl=yes
|
|
7832 else
|
|
7833 echo "configure: failed program was:" >&5
|
|
7834 cat conftest.$ac_ext >&5
|
|
7835 rm -rf conftest*
|
|
7836 LIBS="$ac_save_LIBS"
|
|
7837 fi
|
|
7838 rm -f conftest*
|
|
7839 ac_save_LIBS=
|
|
7840 fi
|
|
7841 rm -f conftest*
|
|
7842 else
|
|
7843 echo "$ac_t""no" 1>&6
|
|
7844 fi
|
|
7845
|
|
7846 if test -n "$have_dl"; then
|
|
7847 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7848 Defining HAVE_DLOPEN
|
|
7849 EOF
|
|
7850 cat >> confdefs.h <<\EOF
|
|
7851 #define HAVE_DLOPEN 1
|
|
7852 EOF
|
|
7853 }
|
|
7854
|
|
7855 fi
|
|
7856 esac fi
|
|
7857 if test -n "$have_dl"; then
|
|
7858
|
|
7859 dll_ld=
|
|
7860 dll_ldflags=
|
|
7861 dll_cflags=
|
|
7862 dll_post=
|
|
7863 dll_ldo="-o"
|
|
7864 ld_dynamic_link_flags=
|
|
7865 xehost=$canonical
|
|
7866 xealias=$internal_configuration
|
|
7867
|
|
7868 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
|
2048
|
7869 echo "configure:7870: checking how to build dynamic libraries for ${xehost}" >&5
|
1470
|
7870 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
|
|
7871 case "$xehost" in
|
|
7872 *-*-linux-gnu*) ;;
|
|
7873 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
|
7874 esac
|
|
7875
|
|
7876 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
7877 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
7878 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
7879
|
|
7880 case "$xehost_os" in
|
|
7881 aix3*)
|
|
7882 # AIX sometimes has problems with the GCC collect2 program. For some
|
|
7883 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
7884 # vanish in a puff of smoke.
|
|
7885 if test "${COLLECT_NAMES+set}" != set; then
|
|
7886 COLLECT_NAMES=
|
|
7887 export COLLECT_NAMES
|
|
7888 fi
|
|
7889 ;;
|
|
7890 esac
|
|
7891
|
|
7892 # Now see if the compiler is really GCC.
|
|
7893 if test "$GCC" = "yes"; then
|
|
7894 XEGCC=yes
|
|
7895 else
|
|
7896 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
|
2048
|
7897 echo "configure:7898: checking checking whether we are using GNU C" >&5
|
1470
|
7898 cat > conftest.$ac_ext <<EOF
|
2048
|
7899 #line 7900 "configure"
|
1470
|
7900 #include "confdefs.h"
|
|
7901
|
|
7902 #ifdef __GNUC__
|
|
7903 yes;
|
|
7904 #endif
|
|
7905
|
|
7906 EOF
|
|
7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
7908 egrep "yes" >/dev/null 2>&1; then
|
|
7909 rm -rf conftest*
|
|
7910 XEGCC=yes
|
|
7911 else
|
|
7912 rm -rf conftest*
|
|
7913 XEGCC=no
|
|
7914 fi
|
|
7915 rm -f conftest*
|
|
7916
|
|
7917 echo "$ac_t""${XEGCC}" 1>&6
|
|
7918 fi
|
|
7919
|
|
7920 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
|
2048
|
7921 echo "configure:7922: checking how to produce PIC code" >&5
|
1470
|
7922 wl=
|
|
7923
|
|
7924 can_build_shared=yes
|
1756
|
7925 if test "$XEGCC" = yes -o "$__ICC" = yes; then
|
1470
|
7926 wl='-Wl,'
|
|
7927
|
|
7928 case "$xehost_os" in
|
|
7929 aix[3-9]* | irix[5-9]* | osf[3-9])
|
|
7930 # PIC is the default for these OSes.
|
|
7931 ;;
|
|
7932
|
1692
|
7933 *darwin*) dll_cflags='-dynamic'
|
|
7934 ;;
|
|
7935
|
1470
|
7936 os2*)
|
|
7937 # We can build DLLs from non-PIC.
|
|
7938 ;;
|
|
7939 amigaos*)
|
|
7940 # FIXME: we need at least 68020 code to build shared libraries, but
|
|
7941 # adding the `-m68020' flag to GCC prevents building anything better,
|
|
7942 # like `-m68040'.
|
|
7943 dll_cflags='-m68020 -resident32 -malways-restore-a4'
|
|
7944 ;;
|
|
7945 *cygwin* | *mingw* )
|
|
7946 # PIC is the default
|
|
7947 ;;
|
|
7948 *)
|
|
7949 dll_cflags='-fPIC'
|
|
7950 ;;
|
|
7951 esac
|
|
7952 else
|
|
7953 # PORTME Check for PIC flags for the system compiler.
|
|
7954 case "$xehost_os" in
|
|
7955 hpux9* | hpux1[0-9]*)
|
|
7956 # Is there a better link_static_flag that works with the bundled CC?
|
|
7957 wl='-Wl,'
|
|
7958 dll_cflags='+Z'
|
|
7959 ;;
|
|
7960
|
|
7961 irix[5-9]*)
|
|
7962 wl='-Wl,'
|
|
7963 # PIC (with -KPIC) is the default.
|
|
7964 ;;
|
|
7965
|
|
7966 os2*)
|
|
7967 # We can build DLLs from non-PIC.
|
|
7968 ;;
|
|
7969
|
|
7970 osf[3-9]*)
|
|
7971 # All OSF/1 code is PIC.
|
|
7972 wl='-Wl,'
|
|
7973 ;;
|
|
7974
|
|
7975 aix[3-9]*)
|
|
7976 # All AIX code is PIC.
|
|
7977 wl='-Wl,'
|
|
7978 ;;
|
|
7979
|
|
7980 sco3.2v5*)
|
|
7981 dll_cflags='-belf -Kpic'
|
|
7982 wl='-Wl,'
|
|
7983 ;;
|
|
7984
|
|
7985 unixware*)
|
|
7986 dll_cflags="-KPIC"
|
|
7987 wl="-Wl,"
|
|
7988 ;;
|
|
7989
|
|
7990 sysv4*)
|
|
7991 dll_cflags="-KPIC"
|
|
7992 wl="-Wl,"
|
|
7993 ;;
|
|
7994
|
|
7995 sysv5*)
|
|
7996 dll_cflags="-KPIC"
|
|
7997 wl="-Wl,"
|
|
7998 ;;
|
|
7999
|
|
8000 solaris2*)
|
|
8001 dll_cflags='-KPIC'
|
|
8002 wl='-Wl,'
|
|
8003 ;;
|
|
8004
|
|
8005 sunos4*)
|
|
8006 dll_cflags='-PIC'
|
|
8007 wl='-Qoption ld '
|
|
8008 ;;
|
|
8009
|
|
8010 uts4*)
|
|
8011 dll_cflags='-pic'
|
|
8012 ;;
|
|
8013
|
|
8014 *)
|
|
8015 can_build_shared=no
|
|
8016 ;;
|
|
8017 esac
|
|
8018 fi
|
|
8019
|
|
8020 if test -n "$dll_cflags"; then
|
|
8021 echo "$ac_t""${dll_cflags}" 1>&6
|
|
8022
|
|
8023 # Check to make sure the dll_cflags actually works.
|
|
8024 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
|
2048
|
8025 echo "configure:8026: checking if PIC flag ${dll_cflags} really works" >&5
|
1470
|
8026 save_CFLAGS="$CFLAGS"
|
|
8027 CFLAGS="$CFLAGS $dll_cflags -DPIC"
|
|
8028 cat > conftest.$ac_ext <<EOF
|
2048
|
8029 #line 8030 "configure"
|
1470
|
8030 #include "confdefs.h"
|
|
8031
|
|
8032 int main() {
|
|
8033 int x=0;
|
|
8034 ; return 0; }
|
|
8035 EOF
|
2048
|
8036 if { (eval echo configure:8037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1470
|
8037 rm -rf conftest*
|
|
8038
|
|
8039 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
|
|
8040 # reports no error. So, we need to grep stderr for (Bundled).
|
|
8041 if grep '(Bundled)' config.log >/dev/null; then
|
|
8042 echo "$ac_t""no" 1>&6
|
|
8043 can_build_shared=no
|
|
8044 dll_cflags=
|
|
8045 else
|
|
8046 echo "$ac_t""yes" 1>&6
|
|
8047 fi
|
|
8048 else
|
|
8049 echo "configure: failed program was:" >&5
|
|
8050 cat conftest.$ac_ext >&5
|
|
8051 rm -rf conftest*
|
|
8052 echo "$ac_t""no" 1>&6
|
|
8053 can_build_shared=no
|
|
8054 dll_cflags=
|
|
8055 fi
|
|
8056 rm -f conftest*
|
|
8057 CFLAGS="$save_CFLAGS"
|
|
8058 else
|
|
8059 echo "$ac_t""none" 1>&6
|
|
8060 fi
|
|
8061
|
|
8062 if test "$can_build_shared" = "yes"; then
|
|
8063 cc_produces_so=no
|
|
8064 xldf=
|
|
8065 xcldf=
|
|
8066 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
|
2048
|
8067 echo "configure:8068: checking if C compiler can produce shared libraries" >&5
|
1756
|
8068 if test "$XEGCC" = yes -o "$__ICC" = yes; then
|
1692
|
8069 case "$xehost_os" in
|
|
8070 *darwin*)
|
|
8071 xcldf='-bundle'
|
|
8072 xldf='-bundle -bundle_loader ../../src/xemacs'
|
|
8073 ;;
|
|
8074 *)
|
|
8075 xcldf="-shared"
|
|
8076 xldf="-shared"
|
|
8077 ;;
|
|
8078 esac
|
1470
|
8079 else # Not using GCC
|
|
8080 case "$xehost_os" in
|
|
8081 aix[3-9]*)
|
|
8082 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
|
|
8083 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
|
|
8084 ;;
|
|
8085
|
|
8086 freebsd2* | netbsd* | openbsd*)
|
|
8087 xldf="-Bshareable"
|
|
8088 xcldf="${wl}-Bshareable"
|
|
8089 ;;
|
|
8090
|
|
8091 freebsd3*)
|
|
8092 xcldf="-shared"
|
|
8093 ;;
|
|
8094
|
|
8095 hpux*)
|
|
8096 xldf="-b +s"
|
|
8097 xcldf="${wl}-b ${wl}+s"
|
|
8098 ;;
|
|
8099
|
|
8100 irix[5-9]* | osf[3-9]*)
|
|
8101 xcldf="${wl}-shared"
|
|
8102 xldf="-shared"
|
|
8103 ;;
|
|
8104
|
|
8105 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
|
|
8106 xcldf="-G"
|
|
8107 xldf="-G"
|
|
8108 ;;
|
|
8109
|
|
8110 sunos4*)
|
|
8111 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
|
|
8112 xldf="-assert pure-text -Bstatic"
|
|
8113 ;;
|
|
8114 esac
|
|
8115 fi # End if if we are using gcc
|
|
8116
|
|
8117 if test -n "$xcldf"; then
|
|
8118 save_LDFLAGS=$LDFLAGS
|
|
8119 save_LIBS=$LIBS
|
|
8120 save_xe_libs=$xe_libs
|
|
8121 LDFLAGS="$xcldf $LDFLAGS"
|
|
8122 LIBS=
|
|
8123 xe_libs=
|
|
8124 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
8125 cat > conftest.$ac_ext <<EOF
|
2048
|
8126 #line 8127 "configure"
|
1470
|
8127 #include "confdefs.h"
|
|
8128
|
|
8129 int main() {
|
|
8130 int x=0;
|
|
8131 ; return 0; }
|
|
8132 EOF
|
2048
|
8133 if { (eval echo configure:8134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8134 rm -rf conftest*
|
|
8135 cc_produces_so=yes
|
|
8136 else
|
|
8137 echo "configure: failed program was:" >&5
|
|
8138 cat conftest.$ac_ext >&5
|
|
8139 rm -rf conftest*
|
|
8140 cc_produces_so=no
|
|
8141 fi
|
|
8142 rm -f conftest*
|
|
8143 LDFLAGS=$save_LDFLAGS
|
|
8144 LIBS=$save_LIBS
|
|
8145 xe_libs=$save_xe_libs
|
|
8146 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
8147 else
|
|
8148 cc_produces_so=no
|
|
8149 fi
|
|
8150 echo "$ac_t""${cc_produces_so}" 1>&6
|
|
8151
|
|
8152 LTLD=$LD
|
|
8153 if test -z "$LTLD"; then
|
|
8154 ac_prog=ld
|
|
8155 if test "$XEGCC" = yes; then
|
|
8156 # Check if gcc -print-prog-name=ld gives a path.
|
|
8157 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
2048
|
8158 echo "configure:8159: checking for ld used by GCC" >&5
|
1470
|
8159 ac_prog=`($CC -print-prog-name=ld) 2>&5`
|
|
8160 case "$ac_prog" in
|
|
8161 # Accept absolute paths.
|
|
8162 /*)
|
|
8163 if test -z "$LTLD"; then
|
|
8164 # case "$ac_prog" in
|
|
8165 # *gcc-lib*) LTLD="$CC"
|
|
8166 # ;;
|
|
8167 # *)
|
|
8168 LTLD="$ac_prog"
|
|
8169 # ;;
|
|
8170 # esac
|
|
8171 fi
|
|
8172 ;;
|
|
8173 "")
|
|
8174 # If it fails, then pretend we aren't using GCC.
|
|
8175 ac_prog=ld
|
|
8176 ;;
|
|
8177 *)
|
|
8178 # If it is relative, then search for the first ld in PATH.
|
|
8179 with_gnu_ld=unknown
|
|
8180 ;;
|
|
8181 esac
|
|
8182 else
|
|
8183 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
2048
|
8184 echo "configure:8185: checking for GNU ld" >&5
|
1470
|
8185 fi
|
|
8186
|
|
8187 if test -z "$LTLD"; then
|
|
8188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
8189 for ac_dir in $PATH; do
|
|
8190 test -z "$ac_dir" && ac_dir=.
|
|
8191 if test -f "$ac_dir/$ac_prog"; then
|
|
8192 LTLD="$ac_dir/$ac_prog"
|
|
8193 # Check to see if the program is GNU ld. I'd rather use --version,
|
|
8194 # but apparently some GNU ld's only accept -v.
|
|
8195 # Break only if it was the GNU/non-GNU ld that we prefer.
|
|
8196 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|
8197 xe_gnu_ld=yes
|
|
8198 else
|
|
8199 xe_gnu_ld=no
|
|
8200 fi
|
|
8201 fi
|
|
8202 done
|
|
8203 IFS="$ac_save_ifs"
|
|
8204 fi
|
|
8205
|
|
8206 if test -n "$LTLD"; then
|
|
8207 echo "$ac_t""${LTLD}" 1>&6
|
|
8208 else
|
|
8209 echo "$ac_t""no" 1>&6
|
|
8210 fi
|
|
8211
|
|
8212 if test -z "$LTLD" -a "$cc_produces_so" = no; then
|
|
8213 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
|
|
8214 exit 1
|
|
8215 fi
|
|
8216 fi
|
|
8217
|
|
8218 ld_dynamic_link_flags=
|
|
8219
|
|
8220 # Check to see if it really is or isn't GNU ld.
|
|
8221 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
|
2048
|
8222 echo "configure:8223: checking if the linker is GNU ld" >&5
|
1470
|
8223 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|
8224 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|
8225 xe_gnu_ld=yes
|
|
8226 else
|
|
8227 xe_gnu_ld=no
|
|
8228 fi
|
|
8229 echo "$ac_t""${xe_gnu_ld}" 1>&6
|
|
8230
|
|
8231 case "$xehost_os" in
|
|
8232 amigaos* | sunos4*)
|
|
8233 # On these operating systems, we should treat GNU ld like the system ld.
|
|
8234 gnu_ld_acts_native=yes
|
|
8235 ;;
|
|
8236 *)
|
|
8237 gnu_ld_acts_native=no
|
|
8238 ;;
|
|
8239 esac
|
|
8240
|
|
8241 if test "$cc_produces_so" = "yes"; then
|
|
8242 dll_ld=$CC
|
1692
|
8243 case "$xehost_os" in
|
|
8244 *darwin*)
|
|
8245 dll_ldflags=$xldf
|
|
8246 ;;
|
|
8247 *)
|
|
8248 dll_ldflags=$xcldf
|
|
8249 ;;
|
|
8250 esac
|
1470
|
8251 can_build_shared=yes
|
|
8252 ld_shlibs=yes
|
|
8253 else
|
|
8254 # OK - only NOW do we futz about with ld.
|
|
8255 # See if the linker supports building shared libraries.
|
|
8256 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
|
2048
|
8257 echo "configure:8258: checking whether the linker supports shared libraries" >&5
|
1470
|
8258 dll_ld=$CC
|
|
8259 dll_ldflags=$LDFLAGS
|
|
8260 ld_shlibs=yes
|
|
8261 can_build_shared=yes
|
|
8262 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
|
|
8263 # See if GNU ld supports shared libraries.
|
|
8264 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
|
8265 dll_ld=$CC
|
|
8266 dll_ldflags="-shared"
|
|
8267 ld_shlibs=yes
|
|
8268 else
|
|
8269 ld_shlibs=no
|
|
8270 fi
|
|
8271 else
|
|
8272 # PORTME fill in a description of your system's linker (not GNU ld)
|
|
8273 case "$xehost_os" in
|
|
8274 aix3*)
|
|
8275 dll_ld=$LTLD
|
|
8276 dll_ldflags=$xldf
|
|
8277 ;;
|
|
8278
|
|
8279 aix[4-9]*)
|
|
8280 dll_ldflags=$xcldf
|
|
8281 ;;
|
|
8282
|
|
8283 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
8284 # support. Future versions do this automatically, but an explicit c++rt0.o
|
|
8285 # doesn't break anything, and helps significantly (at the cost of a little
|
|
8286 # extra space).
|
|
8287 freebsd2.2*)
|
|
8288 dll_ld=$LTLD
|
|
8289 dll_ldflags=$xldf
|
|
8290 dll_post="/usr/lib/c++rt0.o"
|
|
8291 ;;
|
|
8292
|
|
8293 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
|
|
8294 freebsd2*)
|
|
8295 dll_ld=$LTLD
|
|
8296 dll_ldflags="-Bshareable"
|
|
8297 ;;
|
|
8298
|
|
8299 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
|
|
8300 freebsd3*)
|
|
8301 dll_ldflags="-shared"
|
|
8302 ;;
|
|
8303
|
|
8304 hpux*)
|
|
8305 dll_ld=$LTLD
|
|
8306 dll_ldflags=$xldf
|
|
8307 ;;
|
|
8308
|
|
8309 irix[5-9]*)
|
|
8310 dll_ld=$LTLD
|
|
8311 dll_ldflags=$xldf
|
|
8312 ;;
|
|
8313
|
|
8314 netbsd*)
|
|
8315 # Tested with NetBSD 1.2 ld
|
|
8316 dll_ld=$LTLD
|
|
8317 dll_ldflags=$xldf
|
|
8318 ;;
|
|
8319
|
|
8320 openbsd*)
|
|
8321 dll_ld=$LTLD
|
|
8322 dll_ldflags=$xldf
|
|
8323 ;;
|
|
8324
|
|
8325 osf3* | osf4*)
|
|
8326 dll_ld=$LTLD
|
|
8327 dll_ldflags=$xldf
|
|
8328 ;;
|
|
8329
|
|
8330 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
|
|
8331 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
|
|
8332 dll_ld=$LTLD
|
|
8333 case "$dll_ld" in
|
|
8334 *gcc*) dll_ldflags="-shared"
|
|
8335 dll_ld=$CC
|
|
8336 ;;
|
|
8337 *) dll_ldflags="-G"
|
|
8338 ;;
|
|
8339 esac
|
|
8340 ;;
|
|
8341
|
|
8342 sunos4*)
|
|
8343 if test "$XEGCC" = yes; then
|
|
8344 dll_ld=$CC
|
|
8345 else
|
|
8346 dll_ld=$LTLD
|
|
8347 fi
|
|
8348 dll_ldflags=$xldf
|
|
8349 ;;
|
|
8350
|
|
8351 uts4*)
|
|
8352 dll_ld=$LTLD
|
|
8353 dll_ldflags="-G"
|
|
8354 ;;
|
|
8355
|
|
8356 bsdi*)
|
|
8357 dll_ldflags="-r"
|
|
8358 dll_ld="shlicc2"
|
|
8359 ;;
|
|
8360
|
|
8361 *)
|
|
8362 ld_shlibs=no
|
|
8363 can_build_shared=no
|
|
8364 ;;
|
|
8365 esac
|
|
8366 fi
|
|
8367 echo "$ac_t""${ld_shlibs}" 1>&6
|
|
8368 if test "$ld_shlibs" = "no"; then
|
|
8369 can_build_shared=no
|
|
8370 fi
|
|
8371 fi # End of if cc_produces_so = no
|
|
8372
|
|
8373
|
|
8374 if test "$xe_gnu_ld" = yes; then
|
|
8375 if test "$ld_shlibs" = yes; then
|
|
8376 ld_dynamic_link_flags="${wl}-export-dynamic"
|
|
8377 fi
|
|
8378 fi
|
|
8379
|
|
8380 if test -z "$ld_dynamic_link_flags"; then
|
|
8381 case "$xehost_os" in
|
|
8382 aix[3-9]*)
|
|
8383 ld_dynamic_link_flags=
|
|
8384 ;;
|
|
8385
|
1692
|
8386 *darwin*)
|
|
8387 ld_dynamic_link_flags=
|
|
8388 ;;
|
|
8389
|
1470
|
8390 freebsd2.2*)
|
|
8391 ld_dynamic_link_flags=
|
|
8392 ;;
|
|
8393
|
|
8394 freebsd2*)
|
|
8395 ld_dynamic_link_flags=
|
|
8396 ;;
|
|
8397
|
|
8398 freebsd3*)
|
|
8399 ld_dynamic_link_flags=
|
|
8400 ;;
|
|
8401
|
|
8402 hpux*)
|
|
8403 ld_dynamic_link_flags="${wl}-E"
|
|
8404 ;;
|
|
8405
|
|
8406 irix[5-9]*)
|
|
8407 ld_dynamic_link_flags=
|
|
8408 ;;
|
|
8409
|
|
8410 netbsd*)
|
|
8411 ld_dynamic_link_flags=
|
|
8412 ;;
|
|
8413
|
|
8414 openbsd*)
|
|
8415 ld_dynamic_link_flags=
|
|
8416 ;;
|
|
8417
|
|
8418 osf3* | osf4*)
|
|
8419 ld_dynamic_link_flags=
|
|
8420 ;;
|
|
8421
|
|
8422 solaris2* | solaris7*)
|
|
8423 ld_dynamic_link_flags=
|
|
8424 ;;
|
|
8425
|
|
8426 sco3.2v5* | unixware* | sysv5* | sysv4*)
|
|
8427 ld_dynamic_link_flags="${wl}-Bexport"
|
|
8428 ;;
|
|
8429
|
|
8430 sunos4*)
|
|
8431 ld_dynamic_link_flags=
|
|
8432 ;;
|
|
8433
|
|
8434 uts4*)
|
|
8435 ld_dynamic_link_flags=
|
|
8436 ;;
|
|
8437
|
|
8438 bsdi*)
|
|
8439 ld_dynamic_link_flags=
|
|
8440 ;;
|
|
8441
|
|
8442 esac
|
|
8443 fi # End of if -z ld_dynamic_link_flags
|
|
8444 fi # End of if test "$can_build_shared" = "yes"
|
|
8445
|
|
8446
|
|
8447
|
|
8448
|
|
8449
|
|
8450
|
|
8451
|
|
8452
|
|
8453 fi
|
|
8454
|
|
8455 if test "$can_build_shared" = "yes"; then
|
|
8456 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8457 Defining HAVE_SHLIB
|
|
8458 EOF
|
|
8459 cat >> confdefs.h <<\EOF
|
|
8460 #define HAVE_SHLIB 1
|
|
8461 EOF
|
|
8462 }
|
|
8463
|
1491
|
8464 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
1470
|
8465 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
8466 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
|
|
8467 for ac_func in dlerror _dlerror
|
|
8468 do
|
|
8469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
8470 echo "configure:8471: checking for $ac_func" >&5
|
|
8471
|
|
8472 cat > conftest.$ac_ext <<EOF
|
|
8473 #line 8474 "configure"
|
1470
|
8474 #include "confdefs.h"
|
|
8475 /* System header to define __stub macros and hopefully few prototypes,
|
|
8476 which can conflict with char $ac_func(); below. */
|
|
8477 #include <assert.h>
|
|
8478 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8479 /* We use char because int might match the return type of a gcc2
|
|
8480 builtin and then its argument prototype would still apply. */
|
|
8481 char $ac_func();
|
|
8482
|
|
8483 int main() {
|
|
8484
|
|
8485 /* The GNU C library defines this for functions which it implements
|
|
8486 to always fail with ENOSYS. Some functions are actually named
|
|
8487 something starting with __ and the normal name is an alias. */
|
|
8488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
8489 choke me
|
|
8490 #else
|
|
8491 $ac_func();
|
|
8492 #endif
|
|
8493
|
|
8494 ; return 0; }
|
|
8495 EOF
|
2048
|
8496 if { (eval echo configure:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8497 rm -rf conftest*
|
|
8498 eval "ac_cv_func_$ac_func=yes"
|
|
8499 else
|
|
8500 echo "configure: failed program was:" >&5
|
|
8501 cat conftest.$ac_ext >&5
|
|
8502 rm -rf conftest*
|
|
8503 eval "ac_cv_func_$ac_func=no"
|
|
8504 fi
|
|
8505 rm -f conftest*
|
|
8506
|
|
8507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
8508 echo "$ac_t""yes" 1>&6
|
|
8509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
8510 { test "$extra_verbose" = "yes" && cat << EOF
|
|
8511 Defining $ac_tr_func
|
|
8512 EOF
|
|
8513 cat >> confdefs.h <<EOF
|
|
8514 #define $ac_tr_func 1
|
|
8515 EOF
|
|
8516 }
|
|
8517
|
|
8518 else
|
|
8519 echo "$ac_t""no" 1>&6
|
|
8520 fi
|
|
8521 done
|
|
8522
|
|
8523 with_modules=yes
|
|
8524 MOD_CC="../../lib-src/ellcc"
|
|
8525 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src"
|
|
8526 INSTALLPATH="\$(moduledir)"
|
|
8527 MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM}
|
|
8528 OBJECT_TO_BUILD="\$(MODNAME).ell"
|
|
8529 else
|
|
8530 if test "$with_modules" = "yes"; then
|
|
8531 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
|
|
8532 else
|
|
8533 echo " No module support."
|
|
8534 fi
|
|
8535 with_modules=no
|
1491
|
8536 fi
|
|
8537 fi
|
|
8538 if test "$with_modules" != "yes"; then
|
|
8539 MOD_CC="$XEMACS_CC"
|
|
8540 MODCFLAGS="\$(CFLAGS) -I../../src -I\$(srcdir)/../../src"
|
|
8541 INSTALLPATH=""
|
|
8542 MOD_INSTALL_PROGRAM="true"
|
|
8543 OBJECT_TO_BUILD="\$(MODNAME).o"
|
1470
|
8544 fi
|
|
8545 MODARCHDIR=
|
|
8546 MAKE_DOCFILE="../../lib-src/make-docfile"
|
|
8547
|
|
8548
|
|
8549
|
|
8550
|
|
8551
|
|
8552
|
|
8553
|
|
8554
|
997
|
8555
|
149
|
8556 if test "$with_tooltalk" != "no" ; then
|
|
8557 for dir in "" "Tt/" "desktop/" ; do
|
|
8558 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
|
|
8559 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
|
2048
|
8560 echo "configure:8561: checking for ${dir}tt_c.h" >&5
|
|
8561
|
|
8562 cat > conftest.$ac_ext <<EOF
|
|
8563 #line 8564 "configure"
|
149
|
8564 #include "confdefs.h"
|
|
8565 #include <${dir}tt_c.h>
|
|
8566 EOF
|
|
8567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
8568 { (eval echo configure:8569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
8570 if test -z "$ac_err"; then
|
|
8571 rm -rf conftest*
|
|
8572 eval "ac_cv_header_$ac_safe=yes"
|
|
8573 else
|
|
8574 echo "$ac_err" >&5
|
|
8575 echo "configure: failed program was:" >&5
|
|
8576 cat conftest.$ac_ext >&5
|
|
8577 rm -rf conftest*
|
|
8578 eval "ac_cv_header_$ac_safe=no"
|
|
8579 fi
|
|
8580 rm -f conftest*
|
|
8581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8582 echo "$ac_t""yes" 1>&6
|
442
|
8583 tt_c_h_file="${dir}tt_c.h"; break
|
149
|
8584 else
|
|
8585 echo "$ac_t""no" 1>&6
|
|
8586 fi
|
|
8587
|
|
8588 done
|
442
|
8589 if test -z "$tt_c_h_file"; then
|
284
|
8590 if test "$with_tooltalk" = "yes"; then
|
|
8591 (echo "$progname: Usage error:"
|
|
8592 echo " " "Unable to find required tooltalk header files."
|
|
8593 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
8594 fi
|
|
8595 with_tooltalk=no
|
|
8596 fi
|
149
|
8597 fi
|
|
8598 if test "$with_tooltalk" != "no" ; then
|
|
8599 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
|
|
8600
|
|
8601 xe_msg_checking="for tt_message_create in -ltt"
|
|
8602 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
|
|
8603 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2048
|
8604 echo "configure:8605: checking "$xe_msg_checking"" >&5
|
149
|
8605 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
|
|
8606
|
|
8607 xe_check_libs=" -ltt $extra_libs"
|
|
8608 cat > conftest.$ac_ext <<EOF
|
2048
|
8609 #line 8610 "configure"
|
149
|
8610 #include "confdefs.h"
|
|
8611 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8612 /* We use char because int might match the return type of a gcc2
|
|
8613 builtin and then its argument prototype would still apply. */
|
|
8614 char tt_message_create();
|
|
8615
|
|
8616 int main() {
|
|
8617 tt_message_create()
|
|
8618 ; return 0; }
|
|
8619 EOF
|
2048
|
8620 if { (eval echo configure:8621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
8621 rm -rf conftest*
|
|
8622 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8623 else
|
|
8624 echo "configure: failed program was:" >&5
|
|
8625 cat conftest.$ac_ext >&5
|
|
8626 rm -rf conftest*
|
|
8627 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8628 fi
|
|
8629 rm -f conftest*
|
|
8630 xe_check_libs=""
|
|
8631
|
151
|
8632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
8633 echo "$ac_t""yes" 1>&6
|
284
|
8634 tt_libs="-ltt $extra_libs"; break
|
149
|
8635 else
|
|
8636 echo "$ac_t""no" 1>&6
|
|
8637 :
|
|
8638 fi
|
|
8639
|
|
8640
|
|
8641 done
|
284
|
8642 if test -z "$tt_libs"; then
|
|
8643 if test "$with_tooltalk" = "yes"; then
|
|
8644 (echo "$progname: Usage error:"
|
|
8645 echo " " "Unable to find required tooltalk libraries."
|
|
8646 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
8647 fi
|
|
8648 with_tooltalk=no
|
|
8649 fi
|
|
8650 fi
|
|
8651 test -z "$with_tooltalk" && with_tooltalk=yes
|
149
|
8652 if test "$with_tooltalk" = "yes"; then
|
|
8653 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8654 Defining TOOLTALK
|
|
8655 EOF
|
|
8656 cat >> confdefs.h <<\EOF
|
|
8657 #define TOOLTALK 1
|
|
8658 EOF
|
|
8659 }
|
|
8660
|
|
8661 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
8662 Defining TT_C_H_FILE = "$tt_c_h_file"
|
|
8663 EOF
|
|
8664 cat >> confdefs.h <<EOF
|
|
8665 #define TT_C_H_FILE "$tt_c_h_file"
|
149
|
8666 EOF
|
|
8667 }
|
|
8668
|
151
|
8669 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
|
149
|
8670 fi
|
|
8671
|
|
8672 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
|
|
8673 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
|
2048
|
8674 echo "configure:8675: checking for Dt/Dt.h" >&5
|
|
8675
|
|
8676 cat > conftest.$ac_ext <<EOF
|
|
8677 #line 8678 "configure"
|
149
|
8678 #include "confdefs.h"
|
|
8679 #include <Dt/Dt.h>
|
|
8680 EOF
|
|
8681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
8682 { (eval echo configure:8683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
8684 if test -z "$ac_err"; then
|
|
8685 rm -rf conftest*
|
|
8686 eval "ac_cv_header_$ac_safe=yes"
|
|
8687 else
|
|
8688 echo "$ac_err" >&5
|
|
8689 echo "configure: failed program was:" >&5
|
|
8690 cat conftest.$ac_ext >&5
|
|
8691 rm -rf conftest*
|
|
8692 eval "ac_cv_header_$ac_safe=no"
|
|
8693 fi
|
|
8694 rm -f conftest*
|
|
8695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8696 echo "$ac_t""yes" 1>&6
|
|
8697 :
|
|
8698 else
|
|
8699 echo "$ac_t""no" 1>&6
|
|
8700 with_cde=no
|
136
|
8701 fi
|
|
8702 }
|
149
|
8703 test -z "$with_cde" && {
|
|
8704 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
|
2048
|
8705 echo "configure:8706: checking for DtDndDragStart in -lDtSvc" >&5
|
149
|
8706 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
|
|
8707
|
|
8708 xe_check_libs=" -lDtSvc "
|
|
8709 cat > conftest.$ac_ext <<EOF
|
2048
|
8710 #line 8711 "configure"
|
149
|
8711 #include "confdefs.h"
|
|
8712 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8713 /* We use char because int might match the return type of a gcc2
|
|
8714 builtin and then its argument prototype would still apply. */
|
|
8715 char DtDndDragStart();
|
|
8716
|
|
8717 int main() {
|
|
8718 DtDndDragStart()
|
|
8719 ; return 0; }
|
|
8720 EOF
|
2048
|
8721 if { (eval echo configure:8722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
8722 rm -rf conftest*
|
|
8723 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8724 else
|
|
8725 echo "configure: failed program was:" >&5
|
|
8726 cat conftest.$ac_ext >&5
|
|
8727 rm -rf conftest*
|
|
8728 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8729 fi
|
|
8730 rm -f conftest*
|
|
8731 xe_check_libs=""
|
|
8732
|
151
|
8733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
8734 echo "$ac_t""yes" 1>&6
|
|
8735 :
|
|
8736 else
|
|
8737 echo "$ac_t""no" 1>&6
|
|
8738 with_cde=no
|
|
8739 fi
|
|
8740
|
|
8741 }
|
582
|
8742 if test "$with_dragndrop" = "no" ; then
|
|
8743 if test "$with_cde" = "yes" ; then
|
|
8744 echo "configure: warning: --with-cde forced to \`no'; no generic Drag'n'Drop support" 1>&2
|
|
8745 fi
|
|
8746 with_cde=no
|
|
8747 fi
|
149
|
8748 test -z "$with_cde" && with_cde=yes
|
|
8749 if test "$with_cde" = "yes" ; then
|
|
8750 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8751 Defining HAVE_CDE
|
|
8752 EOF
|
|
8753 cat >> confdefs.h <<\EOF
|
|
8754 #define HAVE_CDE 1
|
|
8755 EOF
|
|
8756 }
|
|
8757
|
151
|
8758 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
|
282
|
8759 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
|
149
|
8760 with_tooltalk=yes # CDE requires Tooltalk
|
167
|
8761 need_motif=yes # CDE requires Motif
|
149
|
8762 fi
|
|
8763
|
288
|
8764 test "$window_system" != "x11" && with_offix=no
|
|
8765 if test "$with_xmu" != yes -a "$with_x11" = yes; then
|
582
|
8766 if test "$with_offix" = "yes" ; then
|
|
8767 echo "configure: warning: --with-offix forced to \`no'; no real Xmu support" 1>&2
|
|
8768 fi
|
288
|
8769 with_offix=no
|
|
8770 fi
|
|
8771 if test "$with_dragndrop" = no; then
|
582
|
8772 if test "$with_offix" = "yes" ; then
|
|
8773 echo "configure: warning: --with-offix forced to \`no'; no generic Drag'n'Drop support" 1>&2
|
|
8774 fi
|
288
|
8775 with_offix=no
|
|
8776 fi
|
|
8777 if test "$with_cde" = yes; then
|
582
|
8778 if test "$with_offix" = "yes" ; then
|
|
8779 echo "configure: warning: --with-offix forced to \`no'; CDE already found" 1>&2
|
|
8780 fi
|
288
|
8781 with_offix=no
|
|
8782 fi
|
300
|
8783 test -z "$with_offix" && with_offix=no
|
288
|
8784 if test "$with_offix" = "yes"; then
|
|
8785 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8786 Defining HAVE_OFFIX_DND
|
|
8787 EOF
|
|
8788 cat >> confdefs.h <<\EOF
|
|
8789 #define HAVE_OFFIX_DND 1
|
|
8790 EOF
|
|
8791 }
|
|
8792
|
|
8793 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
|
|
8794 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
|
|
8795 fi
|
462
|
8796 if test "$with_gtk" = "yes"; then
|
|
8797 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
|
|
8798 fi
|
288
|
8799
|
282
|
8800 if test "$with_dragndrop" != "no" ; then
|
446
|
8801 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
|
2048
|
8802 echo "configure:8803: checking if drag and drop API is needed" >&5
|
282
|
8803 if test -n "$dragndrop_proto" ; then
|
|
8804 with_dragndrop=yes
|
|
8805 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
|
|
8806 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8807 Defining HAVE_DRAGNDROP
|
|
8808 EOF
|
|
8809 cat >> confdefs.h <<\EOF
|
|
8810 #define HAVE_DRAGNDROP 1
|
|
8811 EOF
|
|
8812 }
|
|
8813
|
|
8814 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
|
|
8815 else
|
|
8816 with_dragndrop=no
|
|
8817 echo "$ac_t""no" 1>&6
|
|
8818 fi
|
|
8819 fi
|
|
8820
|
1470
|
8821 echo "checking for LDAP" 1>&6
|
2048
|
8822 echo "configure:8823: checking for LDAP" >&5
|
1470
|
8823 ldap_libs=
|
|
8824 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
|
|
8825 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
|
2048
|
8826 echo "configure:8827: checking for ldap.h" >&5
|
|
8827
|
|
8828 cat > conftest.$ac_ext <<EOF
|
|
8829 #line 8830 "configure"
|
1470
|
8830 #include "confdefs.h"
|
|
8831 #include <ldap.h>
|
|
8832 EOF
|
|
8833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
8834 { (eval echo configure:8835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1470
|
8835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
8836 if test -z "$ac_err"; then
|
|
8837 rm -rf conftest*
|
|
8838 eval "ac_cv_header_$ac_safe=yes"
|
|
8839 else
|
|
8840 echo "$ac_err" >&5
|
|
8841 echo "configure: failed program was:" >&5
|
|
8842 cat conftest.$ac_ext >&5
|
|
8843 rm -rf conftest*
|
|
8844 eval "ac_cv_header_$ac_safe=no"
|
|
8845 fi
|
|
8846 rm -f conftest*
|
|
8847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8848 echo "$ac_t""yes" 1>&6
|
|
8849 :
|
|
8850 else
|
|
8851 echo "$ac_t""no" 1>&6
|
|
8852 with_ldap=no
|
|
8853 fi
|
|
8854 }
|
|
8855 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
|
|
8856 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
|
2048
|
8857 echo "configure:8858: checking for lber.h" >&5
|
|
8858
|
|
8859 cat > conftest.$ac_ext <<EOF
|
|
8860 #line 8861 "configure"
|
1470
|
8861 #include "confdefs.h"
|
|
8862 #include <lber.h>
|
|
8863 EOF
|
|
8864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
8865 { (eval echo configure:8866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1470
|
8866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
8867 if test -z "$ac_err"; then
|
|
8868 rm -rf conftest*
|
|
8869 eval "ac_cv_header_$ac_safe=yes"
|
|
8870 else
|
|
8871 echo "$ac_err" >&5
|
|
8872 echo "configure: failed program was:" >&5
|
|
8873 cat conftest.$ac_ext >&5
|
|
8874 rm -rf conftest*
|
|
8875 eval "ac_cv_header_$ac_safe=no"
|
|
8876 fi
|
|
8877 rm -f conftest*
|
|
8878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8879 echo "$ac_t""yes" 1>&6
|
|
8880 :
|
|
8881 else
|
|
8882 echo "$ac_t""no" 1>&6
|
|
8883 with_ldap=no
|
|
8884 fi
|
|
8885 }
|
|
8886 if test "$with_ldap" != "no"; then
|
|
8887
|
|
8888 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
|
2048
|
8889 echo "configure:8890: checking for ldap_search in -lldap" >&5
|
1470
|
8890 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
|
|
8891
|
|
8892 xe_check_libs=" -lldap "
|
|
8893 cat > conftest.$ac_ext <<EOF
|
2048
|
8894 #line 8895 "configure"
|
1470
|
8895 #include "confdefs.h"
|
|
8896 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8897 /* We use char because int might match the return type of a gcc2
|
|
8898 builtin and then its argument prototype would still apply. */
|
|
8899 char ldap_search();
|
|
8900
|
|
8901 int main() {
|
|
8902 ldap_search()
|
|
8903 ; return 0; }
|
|
8904 EOF
|
2048
|
8905 if { (eval echo configure:8906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8906 rm -rf conftest*
|
|
8907 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8908 else
|
|
8909 echo "configure: failed program was:" >&5
|
|
8910 cat conftest.$ac_ext >&5
|
|
8911 rm -rf conftest*
|
|
8912 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8913 fi
|
|
8914 rm -f conftest*
|
|
8915 xe_check_libs=""
|
|
8916
|
|
8917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8918 echo "$ac_t""yes" 1>&6
|
|
8919 with_ldap_nolber=yes
|
|
8920 else
|
|
8921 echo "$ac_t""no" 1>&6
|
|
8922 with_ldap_nolber=no
|
|
8923 fi
|
|
8924
|
|
8925
|
|
8926 test "$with_ldap_nolber" = "no" && {
|
|
8927 xe_msg_checking="for ldap_open in -lldap"
|
|
8928 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
|
|
8929 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2048
|
8930 echo "configure:8931: checking "$xe_msg_checking"" >&5
|
1470
|
8931 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
8932
|
|
8933 xe_check_libs=" -lldap -llber"
|
|
8934 cat > conftest.$ac_ext <<EOF
|
2048
|
8935 #line 8936 "configure"
|
1470
|
8936 #include "confdefs.h"
|
|
8937 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8938 /* We use char because int might match the return type of a gcc2
|
|
8939 builtin and then its argument prototype would still apply. */
|
|
8940 char ldap_open();
|
|
8941
|
|
8942 int main() {
|
|
8943 ldap_open()
|
|
8944 ; return 0; }
|
|
8945 EOF
|
2048
|
8946 if { (eval echo configure:8947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8947 rm -rf conftest*
|
|
8948 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8949 else
|
|
8950 echo "configure: failed program was:" >&5
|
|
8951 cat conftest.$ac_ext >&5
|
|
8952 rm -rf conftest*
|
|
8953 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8954 fi
|
|
8955 rm -f conftest*
|
|
8956 xe_check_libs=""
|
|
8957
|
|
8958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8959 echo "$ac_t""yes" 1>&6
|
|
8960 with_ldap_lber=yes
|
|
8961 else
|
|
8962 echo "$ac_t""no" 1>&6
|
|
8963 with_ldap_lber=no
|
|
8964 fi
|
|
8965
|
|
8966 }
|
|
8967 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
|
|
8968 xe_msg_checking="for ldap_open in -lldap"
|
|
8969 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
|
|
8970 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2048
|
8971 echo "configure:8972: checking "$xe_msg_checking"" >&5
|
1470
|
8972 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
8973
|
|
8974 xe_check_libs=" -lldap -llber -lkrb"
|
|
8975 cat > conftest.$ac_ext <<EOF
|
2048
|
8976 #line 8977 "configure"
|
1470
|
8977 #include "confdefs.h"
|
|
8978 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8979 /* We use char because int might match the return type of a gcc2
|
|
8980 builtin and then its argument prototype would still apply. */
|
|
8981 char ldap_open();
|
|
8982
|
|
8983 int main() {
|
|
8984 ldap_open()
|
|
8985 ; return 0; }
|
|
8986 EOF
|
2048
|
8987 if { (eval echo configure:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8988 rm -rf conftest*
|
|
8989 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8990 else
|
|
8991 echo "configure: failed program was:" >&5
|
|
8992 cat conftest.$ac_ext >&5
|
|
8993 rm -rf conftest*
|
|
8994 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8995 fi
|
|
8996 rm -f conftest*
|
|
8997 xe_check_libs=""
|
|
8998
|
|
8999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9000 echo "$ac_t""yes" 1>&6
|
|
9001 with_ldap_krb=yes
|
|
9002 else
|
|
9003 echo "$ac_t""no" 1>&6
|
|
9004 with_ldap_krb=no
|
|
9005 fi
|
|
9006
|
|
9007 }
|
|
9008 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
|
|
9009 xe_msg_checking="for ldap_open in -lldap"
|
|
9010 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
|
|
9011 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2048
|
9012 echo "configure:9013: checking "$xe_msg_checking"" >&5
|
1470
|
9013 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
9014
|
|
9015 xe_check_libs=" -lldap -llber -lkrb -ldes"
|
|
9016 cat > conftest.$ac_ext <<EOF
|
2048
|
9017 #line 9018 "configure"
|
1470
|
9018 #include "confdefs.h"
|
|
9019 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9020 /* We use char because int might match the return type of a gcc2
|
|
9021 builtin and then its argument prototype would still apply. */
|
|
9022 char ldap_open();
|
|
9023
|
|
9024 int main() {
|
|
9025 ldap_open()
|
|
9026 ; return 0; }
|
|
9027 EOF
|
2048
|
9028 if { (eval echo configure:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9029 rm -rf conftest*
|
|
9030 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9031 else
|
|
9032 echo "configure: failed program was:" >&5
|
|
9033 cat conftest.$ac_ext >&5
|
|
9034 rm -rf conftest*
|
|
9035 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9036 fi
|
|
9037 rm -f conftest*
|
|
9038 xe_check_libs=""
|
|
9039
|
|
9040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9041 echo "$ac_t""yes" 1>&6
|
|
9042 with_ldap_krbdes=yes
|
|
9043 else
|
|
9044 echo "$ac_t""no" 1>&6
|
|
9045 with_ldap_krbdes=no
|
|
9046 fi
|
|
9047
|
|
9048 }
|
|
9049 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
|
|
9050 fi
|
|
9051 if test "$with_ldap" = "yes"; then
|
|
9052 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9053 Defining HAVE_LDAP
|
|
9054 EOF
|
|
9055 cat >> confdefs.h <<\EOF
|
|
9056 #define HAVE_LDAP 1
|
|
9057 EOF
|
|
9058 }
|
|
9059
|
|
9060 if test "$with_ldap_nolber" = "yes" ; then
|
|
9061 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
|
|
9062 else
|
|
9063 if test "$with_ldap_krb" = "yes" ; then
|
|
9064 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
|
|
9065 fi
|
|
9066 if test "$with_ldap_krbdes" = "yes" ; then
|
|
9067 ldap_libs="-ldes $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$ldap_libs"; fi
|
|
9068 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
|
|
9069 fi
|
|
9070 ldap_libs="-llber $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$ldap_libs"; fi
|
|
9071 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
|
|
9072 fi
|
|
9073 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
|
|
9074 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
|
|
9075 do
|
|
9076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
9077 echo "configure:9078: checking for $ac_func" >&5
|
|
9078
|
|
9079 cat > conftest.$ac_ext <<EOF
|
|
9080 #line 9081 "configure"
|
1470
|
9081 #include "confdefs.h"
|
|
9082 /* System header to define __stub macros and hopefully few prototypes,
|
|
9083 which can conflict with char $ac_func(); below. */
|
|
9084 #include <assert.h>
|
|
9085 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9086 /* We use char because int might match the return type of a gcc2
|
|
9087 builtin and then its argument prototype would still apply. */
|
|
9088 char $ac_func();
|
|
9089
|
|
9090 int main() {
|
|
9091
|
|
9092 /* The GNU C library defines this for functions which it implements
|
|
9093 to always fail with ENOSYS. Some functions are actually named
|
|
9094 something starting with __ and the normal name is an alias. */
|
|
9095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
9096 choke me
|
|
9097 #else
|
|
9098 $ac_func();
|
|
9099 #endif
|
|
9100
|
|
9101 ; return 0; }
|
|
9102 EOF
|
2048
|
9103 if { (eval echo configure:9104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9104 rm -rf conftest*
|
|
9105 eval "ac_cv_func_$ac_func=yes"
|
|
9106 else
|
|
9107 echo "configure: failed program was:" >&5
|
|
9108 cat conftest.$ac_ext >&5
|
|
9109 rm -rf conftest*
|
|
9110 eval "ac_cv_func_$ac_func=no"
|
|
9111 fi
|
|
9112 rm -f conftest*
|
|
9113
|
|
9114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
9115 echo "$ac_t""yes" 1>&6
|
|
9116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
9117 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9118 Defining $ac_tr_func
|
|
9119 EOF
|
|
9120 cat >> confdefs.h <<EOF
|
|
9121 #define $ac_tr_func 1
|
|
9122 EOF
|
|
9123 }
|
|
9124
|
|
9125 else
|
|
9126 echo "$ac_t""no" 1>&6
|
|
9127 fi
|
|
9128 done
|
|
9129
|
|
9130 LIBS="$save_LIBS"
|
|
9131 MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi
|
|
9132 need_modules_common=yes
|
|
9133 if test "$with_modules" = "yes"; then
|
|
9134 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
|
|
9135 fi
|
|
9136 fi
|
|
9137
|
|
9138
|
|
9139 postgresql_libs=
|
|
9140 if test "$with_postgresql" != "no"; then
|
|
9141 echo "checking for PostgreSQL" 1>&6
|
2048
|
9142 echo "configure:9143: checking for PostgreSQL" >&5
|
1470
|
9143
|
|
9144 for header_dir in "" "pgsql/" "postgresql/"; do
|
|
9145 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
|
|
9146 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
|
2048
|
9147 echo "configure:9148: checking for ${header_dir}libpq-fe.h" >&5
|
|
9148
|
|
9149 cat > conftest.$ac_ext <<EOF
|
|
9150 #line 9151 "configure"
|
1470
|
9151 #include "confdefs.h"
|
|
9152 #include <${header_dir}libpq-fe.h>
|
|
9153 EOF
|
|
9154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
9155 { (eval echo configure:9156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1470
|
9156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9157 if test -z "$ac_err"; then
|
|
9158 rm -rf conftest*
|
|
9159 eval "ac_cv_header_$ac_safe=yes"
|
|
9160 else
|
|
9161 echo "$ac_err" >&5
|
|
9162 echo "configure: failed program was:" >&5
|
|
9163 cat conftest.$ac_ext >&5
|
|
9164 rm -rf conftest*
|
|
9165 eval "ac_cv_header_$ac_safe=no"
|
|
9166 fi
|
|
9167 rm -f conftest*
|
|
9168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9169 echo "$ac_t""yes" 1>&6
|
|
9170 libpq_fe_h_file=${header_dir}libpq-fe.h; break
|
|
9171 else
|
|
9172 echo "$ac_t""no" 1>&6
|
|
9173 fi
|
|
9174
|
|
9175 done
|
|
9176
|
|
9177 test -n "$libpq_fe_h_file" && {
|
|
9178 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
|
2048
|
9179 echo "configure:9180: checking for PQconnectdb in -lpq" >&5
|
1470
|
9180 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
|
|
9181
|
|
9182 xe_check_libs=" -lpq "
|
|
9183 cat > conftest.$ac_ext <<EOF
|
2048
|
9184 #line 9185 "configure"
|
1470
|
9185 #include "confdefs.h"
|
|
9186 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9187 /* We use char because int might match the return type of a gcc2
|
|
9188 builtin and then its argument prototype would still apply. */
|
|
9189 char PQconnectdb();
|
|
9190
|
|
9191 int main() {
|
|
9192 PQconnectdb()
|
|
9193 ; return 0; }
|
|
9194 EOF
|
2048
|
9195 if { (eval echo configure:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9196 rm -rf conftest*
|
|
9197 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9198 else
|
|
9199 echo "configure: failed program was:" >&5
|
|
9200 cat conftest.$ac_ext >&5
|
|
9201 rm -rf conftest*
|
|
9202 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9203 fi
|
|
9204 rm -f conftest*
|
|
9205 xe_check_libs=""
|
|
9206
|
|
9207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9208 echo "$ac_t""yes" 1>&6
|
|
9209 have_libpq=yes
|
|
9210 else
|
|
9211 echo "$ac_t""no" 1>&6
|
|
9212 fi
|
|
9213
|
|
9214 }
|
|
9215
|
|
9216 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
|
|
9217 with_postgresql=yes
|
|
9218 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9219 Defining HAVE_POSTGRESQL
|
|
9220 EOF
|
|
9221 cat >> confdefs.h <<\EOF
|
|
9222 #define HAVE_POSTGRESQL 1
|
|
9223 EOF
|
|
9224 }
|
|
9225
|
|
9226
|
|
9227 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
|
2048
|
9228 echo "configure:9229: checking for PQconnectStart in -lpq" >&5
|
1470
|
9229 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
|
|
9230
|
|
9231 xe_check_libs=" -lpq "
|
|
9232 cat > conftest.$ac_ext <<EOF
|
2048
|
9233 #line 9234 "configure"
|
1470
|
9234 #include "confdefs.h"
|
|
9235 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9236 /* We use char because int might match the return type of a gcc2
|
|
9237 builtin and then its argument prototype would still apply. */
|
|
9238 char PQconnectStart();
|
|
9239
|
|
9240 int main() {
|
|
9241 PQconnectStart()
|
|
9242 ; return 0; }
|
|
9243 EOF
|
2048
|
9244 if { (eval echo configure:9245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9245 rm -rf conftest*
|
|
9246 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9247 else
|
|
9248 echo "configure: failed program was:" >&5
|
|
9249 cat conftest.$ac_ext >&5
|
|
9250 rm -rf conftest*
|
|
9251 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9252 fi
|
|
9253 rm -f conftest*
|
|
9254 xe_check_libs=""
|
|
9255
|
|
9256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9257 echo "$ac_t""yes" 1>&6
|
|
9258 with_postgresqlv7=yes;
|
|
9259 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9260 Defining HAVE_POSTGRESQLV7
|
|
9261 EOF
|
|
9262 cat >> confdefs.h <<\EOF
|
|
9263 #define HAVE_POSTGRESQLV7 1
|
|
9264 EOF
|
|
9265 }
|
|
9266
|
|
9267 else
|
|
9268 echo "$ac_t""no" 1>&6
|
|
9269 fi
|
|
9270
|
|
9271
|
|
9272 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9273 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
|
|
9274 EOF
|
|
9275 cat >> confdefs.h <<EOF
|
|
9276 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
|
|
9277 EOF
|
|
9278 }
|
|
9279
|
|
9280 postgresql_libs="-lpq $postgresql_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$postgresql_libs"; fi
|
|
9281 MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi
|
|
9282 need_modules_common=yes
|
|
9283 if test "$with_modules" = "yes"; then
|
|
9284 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
|
|
9285 fi
|
|
9286 elif test "$with_postgresql" = "yes"; then
|
|
9287 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
|
|
9288 fi
|
|
9289 fi
|
|
9290
|
149
|
9291
|
997
|
9292
|
278
|
9293 if test "$window_system" != "none"; then
|
|
9294 echo "checking for graphics libraries" 1>&6
|
2048
|
9295 echo "configure:9296: checking for graphics libraries" >&5
|
724
|
9296
|
|
9297 libpath_xpm=
|
|
9298 incpath_xpm=
|
|
9299 case "$opsys" in
|
|
9300 cygwin*)
|
|
9301 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
|
|
9302 cygwin_top=`eval "dirname ${cygwin_top}"`;
|
|
9303 cygwin_top="${cygwin_top}/..";
|
|
9304 case "$window_system" in
|
|
9305 x11) ;;
|
|
9306 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
|
|
9307 incpath_xpm="-I${cygwin_top}/include/noX"
|
|
9308 ;;
|
|
9309 gtk) ;;
|
|
9310 none) ;;
|
|
9311 *) ;;
|
|
9312 esac
|
|
9313 ;;
|
|
9314 *) ;;
|
|
9315 esac
|
373
|
9316 xpm_problem=""
|
|
9317 if test -z "$with_xpm"; then
|
724
|
9318 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
|
|
9319 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
|
193
|
9320 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
|
2048
|
9321 echo "configure:9322: checking for Xpm - no older than 3.4f" >&5
|
272
|
9322 xe_check_libs=-lXpm
|
|
9323 cat > conftest.$ac_ext <<EOF
|
2048
|
9324 #line 9325 "configure"
|
442
|
9325 #include "confdefs.h"
|
|
9326 #define XPM_NUMBERS
|
149
|
9327 #include <X11/xpm.h>
|
272
|
9328 int main(int c, char **v) {
|
|
9329 return c == 1 ? 0 :
|
|
9330 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
|
|
9331 XpmIncludeVersion < 30406 ? 2 : 0 ;}
|
|
9332 EOF
|
2048
|
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
159
|
9334 then
|
272
|
9335 ./conftest dummy_arg; xpm_status=$?;
|
373
|
9336 if test "$xpm_status" = "0"; then
|
272
|
9337 with_xpm=yes;
|
|
9338 else
|
|
9339 with_xpm=no;
|
373
|
9340 if test "$xpm_status" = "1"; then
|
272
|
9341 xpm_problem="Xpm library version and header file version don't match!"
|
373
|
9342 elif test "$xpm_status" = "2"; then
|
272
|
9343 xpm_problem="Xpm library version is too old!"
|
|
9344 else
|
|
9345 xpm_problem="Internal xpm detection logic error!"
|
|
9346 fi
|
|
9347 echo "
|
373
|
9348 *** WARNING *** $xpm_problem
|
278
|
9349 I'm not touching that with a 10-foot pole!
|
|
9350 If you really want to use the installed version of Xpm, rerun
|
373
|
9351 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
|
278
|
9352 fi
|
159
|
9353 else
|
373
|
9354 conftest_rc="$?"
|
159
|
9355 echo "configure: failed program was:" >&5
|
|
9356 cat conftest.$ac_ext >&5
|
|
9357 rm -fr conftest*
|
|
9358 with_xpm=no
|
|
9359 fi
|
|
9360 rm -fr conftest*
|
272
|
9361 xe_check_libs=
|
|
9362 echo "$ac_t""$with_xpm" 1>&6
|
193
|
9363 fi
|
|
9364 if test "$with_xpm" = "yes"; then
|
458
|
9365 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9366 Defining HAVE_XPM
|
|
9367 EOF
|
|
9368 cat >> confdefs.h <<\EOF
|
|
9369 #define HAVE_XPM 1
|
|
9370 EOF
|
|
9371 }
|
|
9372
|
724
|
9373 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
|
193
|
9374 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
|
724
|
9375 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
|
278
|
9376 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
|
2048
|
9377 echo "configure:9378: checking for \"FOR_MSW\" xpm" >&5
|
278
|
9378 xe_check_libs=-lXpm
|
|
9379 cat > conftest.$ac_ext <<EOF
|
2048
|
9380 #line 9381 "configure"
|
278
|
9381 #include "confdefs.h"
|
|
9382
|
|
9383 int main() {
|
|
9384 XpmCreatePixmapFromData()
|
|
9385 ; return 0; }
|
|
9386 EOF
|
2048
|
9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
9388 rm -rf conftest*
|
|
9389 xpm_for_msw=no
|
|
9390 else
|
|
9391 echo "configure: failed program was:" >&5
|
|
9392 cat conftest.$ac_ext >&5
|
|
9393 rm -rf conftest*
|
|
9394 xpm_for_msw=yes
|
|
9395 fi
|
|
9396 rm -f conftest*
|
|
9397 xe_check_libs=
|
|
9398 echo "$ac_t""$xpm_for_msw" 1>&6
|
|
9399 if test "$xpm_for_msw" = "yes"; then
|
|
9400 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9401 Defining FOR_MSW
|
|
9402 EOF
|
|
9403 cat >> confdefs.h <<\EOF
|
|
9404 #define FOR_MSW 1
|
|
9405 EOF
|
|
9406 }
|
|
9407
|
|
9408 fi
|
|
9409 fi
|
|
9410
|
388
|
9411 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
9412 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
2048
|
9413 echo "configure:9414: checking for compface.h" >&5
|
|
9414
|
|
9415 cat > conftest.$ac_ext <<EOF
|
|
9416 #line 9417 "configure"
|
388
|
9417 #include "confdefs.h"
|
|
9418 #include <compface.h>
|
|
9419 EOF
|
|
9420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
9421 { (eval echo configure:9422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
388
|
9423 if test -z "$ac_err"; then
|
|
9424 rm -rf conftest*
|
|
9425 eval "ac_cv_header_$ac_safe=yes"
|
|
9426 else
|
|
9427 echo "$ac_err" >&5
|
|
9428 echo "configure: failed program was:" >&5
|
|
9429 cat conftest.$ac_ext >&5
|
|
9430 rm -rf conftest*
|
|
9431 eval "ac_cv_header_$ac_safe=no"
|
|
9432 fi
|
|
9433 rm -f conftest*
|
|
9434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9435 echo "$ac_t""yes" 1>&6
|
|
9436 :
|
|
9437 else
|
|
9438 echo "$ac_t""no" 1>&6
|
|
9439 with_xface=no
|
|
9440 fi
|
|
9441 }
|
|
9442 test -z "$with_xface" && {
|
|
9443 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
2048
|
9444 echo "configure:9445: checking for UnGenFace in -lcompface" >&5
|
388
|
9445 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
9446
|
|
9447 xe_check_libs=" -lcompface "
|
|
9448 cat > conftest.$ac_ext <<EOF
|
2048
|
9449 #line 9450 "configure"
|
388
|
9450 #include "confdefs.h"
|
|
9451 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9452 /* We use char because int might match the return type of a gcc2
|
|
9453 builtin and then its argument prototype would still apply. */
|
|
9454 char UnGenFace();
|
|
9455
|
|
9456 int main() {
|
|
9457 UnGenFace()
|
|
9458 ; return 0; }
|
|
9459 EOF
|
2048
|
9460 if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
388
|
9461 rm -rf conftest*
|
|
9462 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9463 else
|
|
9464 echo "configure: failed program was:" >&5
|
|
9465 cat conftest.$ac_ext >&5
|
|
9466 rm -rf conftest*
|
|
9467 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9468 fi
|
|
9469 rm -f conftest*
|
|
9470 xe_check_libs=""
|
|
9471
|
|
9472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9473 echo "$ac_t""yes" 1>&6
|
|
9474 :
|
|
9475 else
|
|
9476 echo "$ac_t""no" 1>&6
|
|
9477 with_xface=no
|
|
9478 fi
|
|
9479
|
|
9480 }
|
|
9481 test -z "$with_xface" && with_xface=yes
|
|
9482 if test "$with_xface" = "yes"; then
|
|
9483 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9484 Defining HAVE_XFACE
|
|
9485 EOF
|
|
9486 cat >> confdefs.h <<\EOF
|
|
9487 #define HAVE_XFACE 1
|
|
9488 EOF
|
|
9489 }
|
|
9490
|
|
9491 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
|
|
9492 fi
|
|
9493
|
373
|
9494 if test "$with_gif" != "no"; then
|
|
9495 with_gif="yes"
|
|
9496 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9497 Defining HAVE_GIF
|
|
9498 EOF
|
|
9499 cat >> confdefs.h <<\EOF
|
|
9500 #define HAVE_GIF 1
|
|
9501 EOF
|
|
9502 }
|
|
9503
|
|
9504 fi
|
|
9505
|
278
|
9506 if test "$with_png $with_tiff" != "no no"; then
|
|
9507
|
|
9508 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
|
2048
|
9509 echo "configure:9510: checking for inflate in -lc" >&5
|
278
|
9510 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
|
|
9511
|
|
9512 xe_check_libs=" -lc "
|
|
9513 cat > conftest.$ac_ext <<EOF
|
2048
|
9514 #line 9515 "configure"
|
149
|
9515 #include "confdefs.h"
|
|
9516 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9517 /* We use char because int might match the return type of a gcc2
|
|
9518 builtin and then its argument prototype would still apply. */
|
278
|
9519 char inflate();
|
|
9520
|
|
9521 int main() {
|
|
9522 inflate()
|
|
9523 ; return 0; }
|
|
9524 EOF
|
2048
|
9525 if { (eval echo configure:9526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
9526 rm -rf conftest*
|
|
9527 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9528 else
|
|
9529 echo "configure: failed program was:" >&5
|
|
9530 cat conftest.$ac_ext >&5
|
|
9531 rm -rf conftest*
|
|
9532 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9533 fi
|
|
9534 rm -f conftest*
|
|
9535 xe_check_libs=""
|
|
9536
|
151
|
9537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
9538 echo "$ac_t""yes" 1>&6
|
278
|
9539 :
|
|
9540 else
|
|
9541 echo "$ac_t""no" 1>&6
|
|
9542
|
|
9543 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
|
2048
|
9544 echo "configure:9545: checking for inflate in -lz" >&5
|
278
|
9545 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
|
|
9546
|
|
9547 xe_check_libs=" -lz "
|
|
9548 cat > conftest.$ac_ext <<EOF
|
2048
|
9549 #line 9550 "configure"
|
278
|
9550 #include "confdefs.h"
|
|
9551 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9552 /* We use char because int might match the return type of a gcc2
|
|
9553 builtin and then its argument prototype would still apply. */
|
|
9554 char inflate();
|
|
9555
|
|
9556 int main() {
|
|
9557 inflate()
|
|
9558 ; return 0; }
|
|
9559 EOF
|
2048
|
9560 if { (eval echo configure:9561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
9561 rm -rf conftest*
|
|
9562 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9563 else
|
|
9564 echo "configure: failed program was:" >&5
|
|
9565 cat conftest.$ac_ext >&5
|
|
9566 rm -rf conftest*
|
|
9567 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9568 fi
|
|
9569 rm -f conftest*
|
|
9570 xe_check_libs=""
|
|
9571
|
|
9572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9573 echo "$ac_t""yes" 1>&6
|
|
9574 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
|
|
9575 else
|
|
9576 echo "$ac_t""no" 1>&6
|
|
9577
|
|
9578 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
|
2048
|
9579 echo "configure:9580: checking for inflate in -lgz" >&5
|
278
|
9580 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
|
|
9581
|
|
9582 xe_check_libs=" -lgz "
|
|
9583 cat > conftest.$ac_ext <<EOF
|
2048
|
9584 #line 9585 "configure"
|
278
|
9585 #include "confdefs.h"
|
|
9586 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9587 /* We use char because int might match the return type of a gcc2
|
|
9588 builtin and then its argument prototype would still apply. */
|
|
9589 char inflate();
|
|
9590
|
|
9591 int main() {
|
|
9592 inflate()
|
|
9593 ; return 0; }
|
|
9594 EOF
|
2048
|
9595 if { (eval echo configure:9596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
9596 rm -rf conftest*
|
|
9597 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9598 else
|
|
9599 echo "configure: failed program was:" >&5
|
|
9600 cat conftest.$ac_ext >&5
|
|
9601 rm -rf conftest*
|
|
9602 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9603 fi
|
|
9604 rm -f conftest*
|
|
9605 xe_check_libs=""
|
|
9606
|
|
9607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9608 echo "$ac_t""yes" 1>&6
|
|
9609 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
|
|
9610 else
|
|
9611 echo "$ac_t""no" 1>&6
|
|
9612 fi
|
|
9613
|
|
9614
|
|
9615 fi
|
|
9616
|
|
9617
|
|
9618 fi
|
|
9619
|
|
9620
|
193
|
9621 fi
|
|
9622
|
251
|
9623 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
|
|
9624 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
|
2048
|
9625 echo "configure:9626: checking for jpeglib.h" >&5
|
|
9626
|
|
9627 cat > conftest.$ac_ext <<EOF
|
|
9628 #line 9629 "configure"
|
251
|
9629 #include "confdefs.h"
|
|
9630 #include <jpeglib.h>
|
0
|
9631 EOF
|
149
|
9632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
9633 { (eval echo configure:9634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
251
|
9635 if test -z "$ac_err"; then
|
|
9636 rm -rf conftest*
|
|
9637 eval "ac_cv_header_$ac_safe=yes"
|
|
9638 else
|
|
9639 echo "$ac_err" >&5
|
|
9640 echo "configure: failed program was:" >&5
|
|
9641 cat conftest.$ac_ext >&5
|
|
9642 rm -rf conftest*
|
|
9643 eval "ac_cv_header_$ac_safe=no"
|
|
9644 fi
|
|
9645 rm -f conftest*
|
|
9646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9647 echo "$ac_t""yes" 1>&6
|
|
9648 :
|
|
9649 else
|
|
9650 echo "$ac_t""no" 1>&6
|
|
9651 with_jpeg=no
|
|
9652 fi
|
|
9653 }
|
|
9654 test -z "$with_jpeg" && {
|
|
9655 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
|
2048
|
9656 echo "configure:9657: checking for jpeg_destroy_decompress in -ljpeg" >&5
|
251
|
9657 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
|
|
9658
|
|
9659 xe_check_libs=" -ljpeg "
|
|
9660 cat > conftest.$ac_ext <<EOF
|
2048
|
9661 #line 9662 "configure"
|
251
|
9662 #include "confdefs.h"
|
|
9663 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9664 /* We use char because int might match the return type of a gcc2
|
|
9665 builtin and then its argument prototype would still apply. */
|
|
9666 char jpeg_destroy_decompress();
|
|
9667
|
|
9668 int main() {
|
|
9669 jpeg_destroy_decompress()
|
|
9670 ; return 0; }
|
|
9671 EOF
|
2048
|
9672 if { (eval echo configure:9673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
251
|
9673 rm -rf conftest*
|
|
9674 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9675 else
|
|
9676 echo "configure: failed program was:" >&5
|
|
9677 cat conftest.$ac_ext >&5
|
|
9678 rm -rf conftest*
|
|
9679 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9680 fi
|
|
9681 rm -f conftest*
|
|
9682 xe_check_libs=""
|
|
9683
|
|
9684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9685 echo "$ac_t""yes" 1>&6
|
|
9686 :
|
|
9687 else
|
|
9688 echo "$ac_t""no" 1>&6
|
|
9689 with_jpeg=no
|
|
9690 fi
|
|
9691
|
|
9692 }
|
|
9693 test -z "$with_jpeg" && with_jpeg=yes
|
|
9694 if test "$with_jpeg" = "yes"; then
|
|
9695 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9696 Defining HAVE_JPEG
|
|
9697 EOF
|
|
9698 cat >> confdefs.h <<\EOF
|
|
9699 #define HAVE_JPEG 1
|
|
9700 EOF
|
|
9701 }
|
|
9702
|
|
9703 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
|
|
9704 fi
|
|
9705
|
373
|
9706 png_problem=""
|
251
|
9707 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
|
2048
|
9708 echo "configure:9709: checking for pow" >&5
|
|
9709
|
|
9710 cat > conftest.$ac_ext <<EOF
|
|
9711 #line 9712 "configure"
|
251
|
9712 #include "confdefs.h"
|
|
9713 /* System header to define __stub macros and hopefully few prototypes,
|
|
9714 which can conflict with char pow(); below. */
|
|
9715 #include <assert.h>
|
243
|
9716 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9717 /* We use char because int might match the return type of a gcc2
|
|
9718 builtin and then its argument prototype would still apply. */
|
251
|
9719 char pow();
|
243
|
9720
|
|
9721 int main() {
|
251
|
9722
|
|
9723 /* The GNU C library defines this for functions which it implements
|
|
9724 to always fail with ENOSYS. Some functions are actually named
|
|
9725 something starting with __ and the normal name is an alias. */
|
|
9726 #if defined (__stub_pow) || defined (__stub___pow)
|
|
9727 choke me
|
|
9728 #else
|
|
9729 pow();
|
|
9730 #endif
|
|
9731
|
243
|
9732 ; return 0; }
|
|
9733 EOF
|
2048
|
9734 if { (eval echo configure:9735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
251
|
9735 rm -rf conftest*
|
|
9736 eval "ac_cv_func_pow=yes"
|
|
9737 else
|
|
9738 echo "configure: failed program was:" >&5
|
|
9739 cat conftest.$ac_ext >&5
|
|
9740 rm -rf conftest*
|
|
9741 eval "ac_cv_func_pow=no"
|
|
9742 fi
|
|
9743 rm -f conftest*
|
|
9744
|
|
9745 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
|
|
9746 echo "$ac_t""yes" 1>&6
|
|
9747 :
|
|
9748 else
|
|
9749 echo "$ac_t""no" 1>&6
|
|
9750 with_png=no
|
|
9751 fi
|
|
9752 }
|
373
|
9753 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
|
|
9754 echo $ac_n "checking for png.h""... $ac_c" 1>&6
|
2048
|
9755 echo "configure:9756: checking for png.h" >&5
|
|
9756
|
|
9757 cat > conftest.$ac_ext <<EOF
|
|
9758 #line 9759 "configure"
|
373
|
9759 #include "confdefs.h"
|
|
9760 #include <png.h>
|
|
9761 EOF
|
|
9762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
9763 { (eval echo configure:9764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
373
|
9765 if test -z "$ac_err"; then
|
|
9766 rm -rf conftest*
|
|
9767 eval "ac_cv_header_$ac_safe=yes"
|
|
9768 else
|
|
9769 echo "$ac_err" >&5
|
|
9770 echo "configure: failed program was:" >&5
|
|
9771 cat conftest.$ac_ext >&5
|
|
9772 rm -rf conftest*
|
|
9773 eval "ac_cv_header_$ac_safe=no"
|
|
9774 fi
|
|
9775 rm -f conftest*
|
|
9776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9777 echo "$ac_t""yes" 1>&6
|
|
9778 :
|
|
9779 else
|
|
9780 echo "$ac_t""no" 1>&6
|
|
9781 with_png=no
|
|
9782 fi
|
|
9783 }
|
272
|
9784 test -z "$with_png" && {
|
|
9785 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
|
2048
|
9786 echo "configure:9787: checking for png_read_image in -lpng" >&5
|
272
|
9787 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
|
|
9788
|
|
9789 xe_check_libs=" -lpng "
|
|
9790 cat > conftest.$ac_ext <<EOF
|
2048
|
9791 #line 9792 "configure"
|
243
|
9792 #include "confdefs.h"
|
|
9793 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9794 /* We use char because int might match the return type of a gcc2
|
|
9795 builtin and then its argument prototype would still apply. */
|
272
|
9796 char png_read_image();
|
|
9797
|
|
9798 int main() {
|
|
9799 png_read_image()
|
|
9800 ; return 0; }
|
|
9801 EOF
|
2048
|
9802 if { (eval echo configure:9803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
217
|
9803 rm -rf conftest*
|
|
9804 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9805 else
|
|
9806 echo "configure: failed program was:" >&5
|
|
9807 cat conftest.$ac_ext >&5
|
|
9808 rm -rf conftest*
|
|
9809 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9810 fi
|
|
9811 rm -f conftest*
|
|
9812 xe_check_libs=""
|
|
9813
|
|
9814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9815 echo "$ac_t""yes" 1>&6
|
272
|
9816 :
|
|
9817 else
|
|
9818 echo "$ac_t""no" 1>&6
|
|
9819 with_png=no
|
|
9820 fi
|
|
9821
|
|
9822 }
|
373
|
9823 if test -z "$with_png"; then
|
|
9824 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
|
2048
|
9825 echo "configure:9826: checking for workable png version information" >&5
|
373
|
9826 xe_check_libs="-lpng -lz"
|
|
9827 cat > conftest.$ac_ext <<EOF
|
2048
|
9828 #line 9829 "configure"
|
373
|
9829 #include "confdefs.h"
|
|
9830 #include <png.h>
|
|
9831 int main(int c, char **v) {
|
|
9832 if (c == 1) return 0;
|
|
9833 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
|
|
9834 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
|
|
9835 EOF
|
2048
|
9836 if { (eval echo configure:9837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
373
|
9837 then
|
|
9838 ./conftest dummy_arg; png_status=$?;
|
|
9839 if test "$png_status" = "0"; then
|
|
9840 with_png=yes;
|
|
9841 else
|
|
9842 with_png=no;
|
|
9843 if test "$png_status" = "1"; then
|
|
9844 png_problem="PNG library version and header file don't match!"
|
|
9845 elif test "$png_status" = "2"; then
|
|
9846 png_problem="PNG library version too old (pre 1.0.2)!"
|
|
9847 fi
|
|
9848 echo "
|
|
9849 *** WARNING *** $png_problem
|
|
9850 I'm not touching that with a 10-foot pole!
|
|
9851 If you really want to use the installed version of libPNG, rerun
|
|
9852 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
|
|
9853 fi
|
|
9854 else
|
|
9855 conftest_rc="$?"
|
|
9856 echo "configure: failed program was:" >&5
|
|
9857 cat conftest.$ac_ext >&5
|
|
9858 rm -fr conftest*
|
|
9859 with_png=no
|
|
9860 fi
|
|
9861 rm -fr conftest*
|
|
9862 xe_check_libs=
|
|
9863 echo "$ac_t""$with_png" 1>&6
|
|
9864 fi
|
251
|
9865 if test "$with_png" = "yes"; then
|
|
9866 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9867 Defining HAVE_PNG
|
|
9868 EOF
|
|
9869 cat >> confdefs.h <<\EOF
|
|
9870 #define HAVE_PNG 1
|
|
9871 EOF
|
|
9872 }
|
|
9873
|
272
|
9874 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
|
251
|
9875 fi
|
|
9876
|
272
|
9877 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
|
|
9878 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
|
2048
|
9879 echo "configure:9880: checking for tiffio.h" >&5
|
|
9880
|
|
9881 cat > conftest.$ac_ext <<EOF
|
|
9882 #line 9883 "configure"
|
272
|
9883 #include "confdefs.h"
|
|
9884 #include <tiffio.h>
|
|
9885 EOF
|
|
9886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
9887 { (eval echo configure:9888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
272
|
9889 if test -z "$ac_err"; then
|
|
9890 rm -rf conftest*
|
|
9891 eval "ac_cv_header_$ac_safe=yes"
|
|
9892 else
|
|
9893 echo "$ac_err" >&5
|
|
9894 echo "configure: failed program was:" >&5
|
|
9895 cat conftest.$ac_ext >&5
|
|
9896 rm -rf conftest*
|
|
9897 eval "ac_cv_header_$ac_safe=no"
|
|
9898 fi
|
|
9899 rm -f conftest*
|
|
9900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9901 echo "$ac_t""yes" 1>&6
|
|
9902 :
|
|
9903 else
|
|
9904 echo "$ac_t""no" 1>&6
|
|
9905 with_tiff=no
|
|
9906 fi
|
|
9907 }
|
|
9908 test -z "$with_tiff" && {
|
286
|
9909 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
|
2048
|
9910 echo "configure:9911: checking for TIFFClientOpen in -ltiff" >&5
|
286
|
9911 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
|
251
|
9912
|
272
|
9913 xe_check_libs=" -ltiff "
|
|
9914 cat > conftest.$ac_ext <<EOF
|
2048
|
9915 #line 9916 "configure"
|
217
|
9916 #include "confdefs.h"
|
|
9917 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9918 /* We use char because int might match the return type of a gcc2
|
|
9919 builtin and then its argument prototype would still apply. */
|
286
|
9920 char TIFFClientOpen();
|
|
9921
|
|
9922 int main() {
|
|
9923 TIFFClientOpen()
|
|
9924 ; return 0; }
|
|
9925 EOF
|
2048
|
9926 if { (eval echo configure:9927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
217
|
9927 rm -rf conftest*
|
|
9928 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9929 else
|
|
9930 echo "configure: failed program was:" >&5
|
|
9931 cat conftest.$ac_ext >&5
|
|
9932 rm -rf conftest*
|
|
9933 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9934 fi
|
|
9935 rm -f conftest*
|
|
9936 xe_check_libs=""
|
|
9937
|
|
9938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9939 echo "$ac_t""yes" 1>&6
|
272
|
9940 :
|
|
9941 else
|
|
9942 echo "$ac_t""no" 1>&6
|
|
9943 with_tiff=no
|
|
9944 fi
|
|
9945
|
|
9946 }
|
|
9947 test -z "$with_tiff" && with_tiff=yes
|
251
|
9948 if test "$with_tiff" = "yes"; then
|
|
9949 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9950 Defining HAVE_TIFF
|
|
9951 EOF
|
|
9952 cat >> confdefs.h <<\EOF
|
|
9953 #define HAVE_TIFF 1
|
|
9954 EOF
|
|
9955 }
|
|
9956
|
272
|
9957 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
|
251
|
9958 fi
|
278
|
9959 fi
|
|
9960
|
|
9961
|
462
|
9962 if test "$with_gtk" = "yes"; then
|
|
9963 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
9964 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
2048
|
9965 echo "configure:9966: checking for compface.h" >&5
|
|
9966
|
|
9967 cat > conftest.$ac_ext <<EOF
|
|
9968 #line 9969 "configure"
|
462
|
9969 #include "confdefs.h"
|
|
9970 #include <compface.h>
|
|
9971 EOF
|
|
9972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
9973 { (eval echo configure:9974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
462
|
9974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9975 if test -z "$ac_err"; then
|
|
9976 rm -rf conftest*
|
|
9977 eval "ac_cv_header_$ac_safe=yes"
|
|
9978 else
|
|
9979 echo "$ac_err" >&5
|
|
9980 echo "configure: failed program was:" >&5
|
|
9981 cat conftest.$ac_ext >&5
|
|
9982 rm -rf conftest*
|
|
9983 eval "ac_cv_header_$ac_safe=no"
|
|
9984 fi
|
|
9985 rm -f conftest*
|
|
9986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9987 echo "$ac_t""yes" 1>&6
|
|
9988 :
|
|
9989 else
|
|
9990 echo "$ac_t""no" 1>&6
|
|
9991 with_xface=no
|
|
9992 fi
|
|
9993 }
|
|
9994 test -z "$with_xface" && {
|
|
9995 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
2048
|
9996 echo "configure:9997: checking for UnGenFace in -lcompface" >&5
|
462
|
9997 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
9998
|
|
9999 xe_check_libs=" -lcompface "
|
|
10000 cat > conftest.$ac_ext <<EOF
|
2048
|
10001 #line 10002 "configure"
|
462
|
10002 #include "confdefs.h"
|
|
10003 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10004 /* We use char because int might match the return type of a gcc2
|
|
10005 builtin and then its argument prototype would still apply. */
|
|
10006 char UnGenFace();
|
|
10007
|
|
10008 int main() {
|
|
10009 UnGenFace()
|
|
10010 ; return 0; }
|
|
10011 EOF
|
2048
|
10012 if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
10013 rm -rf conftest*
|
|
10014 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10015 else
|
|
10016 echo "configure: failed program was:" >&5
|
|
10017 cat conftest.$ac_ext >&5
|
|
10018 rm -rf conftest*
|
|
10019 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10020 fi
|
|
10021 rm -f conftest*
|
|
10022 xe_check_libs=""
|
|
10023
|
|
10024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10025 echo "$ac_t""yes" 1>&6
|
|
10026 :
|
|
10027 else
|
|
10028 echo "$ac_t""no" 1>&6
|
|
10029 with_xface=no
|
|
10030 fi
|
|
10031
|
|
10032 }
|
|
10033 test -z "$with_xface" && with_xface=yes
|
|
10034 if test "$with_xface" = "yes"; then
|
|
10035 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10036 Defining HAVE_XFACE
|
|
10037 EOF
|
|
10038 cat >> confdefs.h <<\EOF
|
|
10039 #define HAVE_XFACE 1
|
|
10040 EOF
|
|
10041 }
|
|
10042
|
|
10043 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
|
|
10044 fi
|
|
10045 fi
|
|
10046
|
|
10047
|
|
10048
|
278
|
10049 if test "$with_x11" = "yes"; then
|
|
10050 echo "checking for X11 graphics libraries" 1>&6
|
2048
|
10051 echo "configure:10052: checking for X11 graphics libraries" >&5
|
726
|
10052 fi
|
|
10053
|
|
10054 case "$with_widgets" in
|
|
10055 "yes" | "athena") detect_athena=yes ;;
|
|
10056 *) detect_athena=no ;;
|
|
10057 esac
|
|
10058
|
|
10059 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
|
434
|
10060 echo "checking for the Athena widgets" 1>&6
|
2048
|
10061 echo "configure:10062: checking for the Athena widgets" >&5
|
434
|
10062
|
|
10063 case "$with_athena" in
|
|
10064 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
|
|
10065 "3d") athena_variant=Xaw3d athena_3d=yes ;;
|
|
10066 "next") athena_variant=neXtaw athena_3d=yes ;;
|
|
10067 "95") athena_variant=Xaw95 athena_3d=yes ;;
|
|
10068 "xpm") athena_variant=XawXpm athena_3d=yes ;;
|
|
10069 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
|
|
10070 esac
|
|
10071
|
|
10072 if test "$athena_3d" = "no"; then
|
193
|
10073
|
434
|
10074 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
|
2048
|
10075 echo "configure:10076: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
|
434
|
10076 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
|
|
10077
|
|
10078 xe_check_libs=" -l$athena_variant "
|
|
10079 cat > conftest.$ac_ext <<EOF
|
2048
|
10080 #line 10081 "configure"
|
193
|
10081 #include "confdefs.h"
|
|
10082 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10083 /* We use char because int might match the return type of a gcc2
|
|
10084 builtin and then its argument prototype would still apply. */
|
|
10085 char XawScrollbarSetThumb();
|
|
10086
|
|
10087 int main() {
|
|
10088 XawScrollbarSetThumb()
|
|
10089 ; return 0; }
|
|
10090 EOF
|
2048
|
10091 if { (eval echo configure:10092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
434
|
10092 rm -rf conftest*
|
|
10093 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10094 else
|
|
10095 echo "configure: failed program was:" >&5
|
|
10096 cat conftest.$ac_ext >&5
|
|
10097 rm -rf conftest*
|
|
10098 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10099 fi
|
|
10100 rm -f conftest*
|
|
10101 xe_check_libs=""
|
|
10102
|
|
10103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10104 echo "$ac_t""yes" 1>&6
|
|
10105
|
|
10106 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
|
2048
|
10107 echo "configure:10108: checking for threeDClassRec in -l$athena_variant" >&5
|
434
|
10108 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
10109
|
|
10110 xe_check_libs=" -l$athena_variant "
|
|
10111 cat > conftest.$ac_ext <<EOF
|
2048
|
10112 #line 10113 "configure"
|
434
|
10113 #include "confdefs.h"
|
|
10114 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10115 /* We use char because int might match the return type of a gcc2
|
|
10116 builtin and then its argument prototype would still apply. */
|
|
10117 char threeDClassRec();
|
|
10118
|
|
10119 int main() {
|
|
10120 threeDClassRec()
|
|
10121 ; return 0; }
|
|
10122 EOF
|
2048
|
10123 if { (eval echo configure:10124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
561
|
10124 rm -rf conftest*
|
|
10125 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10126 else
|
|
10127 echo "configure: failed program was:" >&5
|
|
10128 cat conftest.$ac_ext >&5
|
|
10129 rm -rf conftest*
|
|
10130 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10131 fi
|
|
10132 rm -f conftest*
|
|
10133 xe_check_libs=""
|
|
10134
|
|
10135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10136 echo "$ac_t""yes" 1>&6
|
|
10137 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2
|
434
|
10138 else
|
|
10139 echo "$ac_t""no" 1>&6
|
|
10140 athena_lib=$athena_variant
|
|
10141 fi
|
|
10142
|
|
10143
|
|
10144
|
|
10145 else
|
|
10146 echo "$ac_t""no" 1>&6
|
561
|
10147 echo "configure: warning: Could not find an Athena widget library." 1>&2
|
434
|
10148 fi
|
|
10149
|
|
10150
|
|
10151 else
|
|
10152
|
|
10153 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
|
2048
|
10154 echo "configure:10155: checking for threeDClassRec in -l$athena_variant" >&5
|
434
|
10155 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
10156
|
|
10157 xe_check_libs=" -l$athena_variant "
|
|
10158 cat > conftest.$ac_ext <<EOF
|
2048
|
10159 #line 10160 "configure"
|
434
|
10160 #include "confdefs.h"
|
|
10161 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10162 /* We use char because int might match the return type of a gcc2
|
|
10163 builtin and then its argument prototype would still apply. */
|
|
10164 char threeDClassRec();
|
|
10165
|
|
10166 int main() {
|
|
10167 threeDClassRec()
|
|
10168 ; return 0; }
|
|
10169 EOF
|
2048
|
10170 if { (eval echo configure:10171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
434
|
10171 rm -rf conftest*
|
|
10172 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10173 else
|
|
10174 echo "configure: failed program was:" >&5
|
|
10175 cat conftest.$ac_ext >&5
|
|
10176 rm -rf conftest*
|
|
10177 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10178 fi
|
|
10179 rm -f conftest*
|
|
10180 xe_check_libs=""
|
|
10181
|
|
10182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10183 echo "$ac_t""yes" 1>&6
|
|
10184 athena_lib=$athena_variant
|
|
10185 else
|
|
10186 echo "$ac_t""no" 1>&6
|
|
10187 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
|
2048
|
10188 echo "configure:10189: checking for threeDClassRec in -lXaw" >&5
|
434
|
10189 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
10190
|
|
10191 xe_check_libs=" -lXaw "
|
|
10192 cat > conftest.$ac_ext <<EOF
|
2048
|
10193 #line 10194 "configure"
|
434
|
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 threeDClassRec();
|
|
10199
|
|
10200 int main() {
|
|
10201 threeDClassRec()
|
|
10202 ; return 0; }
|
|
10203 EOF
|
2048
|
10204 if { (eval echo configure:10205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
193
|
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
|
438
|
10218 athena_lib=Xaw;
|
561
|
10219 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2;
|
434
|
10220
|
|
10221 else
|
|
10222 echo "$ac_t""no" 1>&6
|
561
|
10223 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2
|
434
|
10224 fi
|
|
10225
|
|
10226
|
|
10227 fi
|
|
10228
|
|
10229
|
|
10230 fi
|
|
10231
|
|
10232 if test "$athena_3d" = "no"; then
|
|
10233 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10234 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
|
2048
|
10235 echo "configure:10236: checking for X11/Xaw/ThreeD.h" >&5
|
|
10236
|
|
10237 cat > conftest.$ac_ext <<EOF
|
|
10238 #line 10239 "configure"
|
434
|
10239 #include "confdefs.h"
|
|
10240 #include <X11/Xaw/ThreeD.h>
|
|
10241 EOF
|
|
10242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
10243 { (eval echo configure:10244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
561
|
10244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10245 if test -z "$ac_err"; then
|
|
10246 rm -rf conftest*
|
|
10247 eval "ac_cv_header_$ac_safe=yes"
|
|
10248 else
|
|
10249 echo "$ac_err" >&5
|
|
10250 echo "configure: failed program was:" >&5
|
|
10251 cat conftest.$ac_ext >&5
|
|
10252 rm -rf conftest*
|
|
10253 eval "ac_cv_header_$ac_safe=no"
|
|
10254 fi
|
|
10255 rm -f conftest*
|
|
10256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10257 echo "$ac_t""yes" 1>&6
|
|
10258 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
|
434
|
10259 else
|
|
10260 echo "$ac_t""no" 1>&6
|
|
10261 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10262 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
|
2048
|
10263 echo "configure:10264: checking for X11/Xaw/XawInit.h" >&5
|
|
10264
|
|
10265 cat > conftest.$ac_ext <<EOF
|
|
10266 #line 10267 "configure"
|
434
|
10267 #include "confdefs.h"
|
|
10268 #include <X11/Xaw/XawInit.h>
|
|
10269 EOF
|
|
10270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
10271 { (eval echo configure:10272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10273 if test -z "$ac_err"; then
|
|
10274 rm -rf conftest*
|
|
10275 eval "ac_cv_header_$ac_safe=yes"
|
|
10276 else
|
|
10277 echo "$ac_err" >&5
|
|
10278 echo "configure: failed program was:" >&5
|
|
10279 cat conftest.$ac_ext >&5
|
|
10280 rm -rf conftest*
|
|
10281 eval "ac_cv_header_$ac_safe=no"
|
|
10282 fi
|
|
10283 rm -f conftest*
|
|
10284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10285 echo "$ac_t""yes" 1>&6
|
|
10286 athena_h_path=X11/Xaw
|
|
10287 else
|
|
10288 echo "$ac_t""no" 1>&6
|
561
|
10289 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
|
434
|
10290 fi
|
|
10291
|
|
10292 fi
|
|
10293
|
|
10294 else
|
|
10295 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10296 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
|
2048
|
10297 echo "configure:10298: checking for X11/$athena_variant/XawInit.h" >&5
|
|
10298
|
|
10299 cat > conftest.$ac_ext <<EOF
|
|
10300 #line 10301 "configure"
|
434
|
10301 #include "confdefs.h"
|
|
10302 #include <X11/$athena_variant/XawInit.h>
|
|
10303 EOF
|
|
10304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
10305 { (eval echo configure:10306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10307 if test -z "$ac_err"; then
|
|
10308 rm -rf conftest*
|
|
10309 eval "ac_cv_header_$ac_safe=yes"
|
|
10310 else
|
|
10311 echo "$ac_err" >&5
|
|
10312 echo "configure: failed program was:" >&5
|
|
10313 cat conftest.$ac_ext >&5
|
|
10314 rm -rf conftest*
|
|
10315 eval "ac_cv_header_$ac_safe=no"
|
|
10316 fi
|
|
10317 rm -f conftest*
|
|
10318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10319 echo "$ac_t""yes" 1>&6
|
|
10320 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10321 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
|
2048
|
10322 echo "configure:10323: checking for X11/$athena_variant/ThreeD.h" >&5
|
|
10323
|
|
10324 cat > conftest.$ac_ext <<EOF
|
|
10325 #line 10326 "configure"
|
434
|
10326 #include "confdefs.h"
|
|
10327 #include <X11/$athena_variant/ThreeD.h>
|
|
10328 EOF
|
|
10329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
10330 { (eval echo configure:10331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10332 if test -z "$ac_err"; then
|
|
10333 rm -rf conftest*
|
|
10334 eval "ac_cv_header_$ac_safe=yes"
|
|
10335 else
|
|
10336 echo "$ac_err" >&5
|
|
10337 echo "configure: failed program was:" >&5
|
|
10338 cat conftest.$ac_ext >&5
|
|
10339 rm -rf conftest*
|
|
10340 eval "ac_cv_header_$ac_safe=no"
|
|
10341 fi
|
|
10342 rm -f conftest*
|
|
10343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10344 echo "$ac_t""yes" 1>&6
|
|
10345 athena_h_path=X11/$athena_variant
|
|
10346 else
|
|
10347 echo "$ac_t""no" 1>&6
|
|
10348 fi
|
|
10349
|
|
10350 else
|
|
10351 echo "$ac_t""no" 1>&6
|
|
10352 fi
|
|
10353
|
|
10354
|
440
|
10355 if test -z "$athena_h_path"; then
|
|
10356 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10357 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
|
2048
|
10358 echo "configure:10359: checking for $athena_variant/XawInit.h" >&5
|
|
10359
|
|
10360 cat > conftest.$ac_ext <<EOF
|
|
10361 #line 10362 "configure"
|
440
|
10362 #include "confdefs.h"
|
|
10363 #include <$athena_variant/XawInit.h>
|
|
10364 EOF
|
|
10365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
10366 { (eval echo configure:10367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10368 if test -z "$ac_err"; then
|
|
10369 rm -rf conftest*
|
|
10370 eval "ac_cv_header_$ac_safe=yes"
|
|
10371 else
|
|
10372 echo "$ac_err" >&5
|
|
10373 echo "configure: failed program was:" >&5
|
|
10374 cat conftest.$ac_ext >&5
|
|
10375 rm -rf conftest*
|
|
10376 eval "ac_cv_header_$ac_safe=no"
|
|
10377 fi
|
|
10378 rm -f conftest*
|
|
10379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10380 echo "$ac_t""yes" 1>&6
|
|
10381 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10382 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
|
2048
|
10383 echo "configure:10384: checking for $athena_variant/ThreeD.h" >&5
|
|
10384
|
|
10385 cat > conftest.$ac_ext <<EOF
|
|
10386 #line 10387 "configure"
|
440
|
10387 #include "confdefs.h"
|
|
10388 #include <$athena_variant/ThreeD.h>
|
|
10389 EOF
|
|
10390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
10391 { (eval echo configure:10392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10393 if test -z "$ac_err"; then
|
|
10394 rm -rf conftest*
|
|
10395 eval "ac_cv_header_$ac_safe=yes"
|
|
10396 else
|
|
10397 echo "$ac_err" >&5
|
|
10398 echo "configure: failed program was:" >&5
|
|
10399 cat conftest.$ac_ext >&5
|
|
10400 rm -rf conftest*
|
|
10401 eval "ac_cv_header_$ac_safe=no"
|
|
10402 fi
|
|
10403 rm -f conftest*
|
|
10404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10405 echo "$ac_t""yes" 1>&6
|
|
10406 athena_h_path=$athena_variant
|
|
10407 else
|
|
10408 echo "$ac_t""no" 1>&6
|
|
10409 fi
|
|
10410
|
|
10411 else
|
|
10412 echo "$ac_t""no" 1>&6
|
|
10413 fi
|
|
10414
|
|
10415 fi
|
|
10416
|
434
|
10417 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
|
|
10418 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10419 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
|
2048
|
10420 echo "configure:10421: checking for X11/Xaw3d/XawInit.h" >&5
|
|
10421
|
|
10422 cat > conftest.$ac_ext <<EOF
|
|
10423 #line 10424 "configure"
|
434
|
10424 #include "confdefs.h"
|
|
10425 #include <X11/Xaw3d/XawInit.h>
|
|
10426 EOF
|
|
10427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
10428 { (eval echo configure:10429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10430 if test -z "$ac_err"; then
|
|
10431 rm -rf conftest*
|
|
10432 eval "ac_cv_header_$ac_safe=yes"
|
|
10433 else
|
|
10434 echo "$ac_err" >&5
|
|
10435 echo "configure: failed program was:" >&5
|
|
10436 cat conftest.$ac_ext >&5
|
|
10437 rm -rf conftest*
|
|
10438 eval "ac_cv_header_$ac_safe=no"
|
|
10439 fi
|
|
10440 rm -f conftest*
|
|
10441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10442 echo "$ac_t""yes" 1>&6
|
|
10443 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10444 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
|
2048
|
10445 echo "configure:10446: checking for X11/Xaw3d/ThreeD.h" >&5
|
|
10446
|
|
10447 cat > conftest.$ac_ext <<EOF
|
|
10448 #line 10449 "configure"
|
434
|
10449 #include "confdefs.h"
|
|
10450 #include <X11/Xaw3d/ThreeD.h>
|
|
10451 EOF
|
|
10452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
10453 { (eval echo configure:10454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10455 if test -z "$ac_err"; then
|
|
10456 rm -rf conftest*
|
|
10457 eval "ac_cv_header_$ac_safe=yes"
|
|
10458 else
|
|
10459 echo "$ac_err" >&5
|
|
10460 echo "configure: failed program was:" >&5
|
|
10461 cat conftest.$ac_ext >&5
|
|
10462 rm -rf conftest*
|
|
10463 eval "ac_cv_header_$ac_safe=no"
|
|
10464 fi
|
|
10465 rm -f conftest*
|
|
10466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10467 echo "$ac_t""yes" 1>&6
|
|
10468
|
561
|
10469 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2
|
434
|
10470 athena_h_path=X11/Xaw3d
|
|
10471
|
|
10472 else
|
|
10473 echo "$ac_t""no" 1>&6
|
|
10474 fi
|
|
10475
|
|
10476 else
|
|
10477 echo "$ac_t""no" 1>&6
|
|
10478 fi
|
|
10479
|
|
10480 fi
|
|
10481
|
440
|
10482 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
|
|
10483 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10484 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
|
2048
|
10485 echo "configure:10486: checking for Xaw3d/XawInit.h" >&5
|
|
10486
|
|
10487 cat > conftest.$ac_ext <<EOF
|
|
10488 #line 10489 "configure"
|
440
|
10489 #include "confdefs.h"
|
|
10490 #include <Xaw3d/XawInit.h>
|
|
10491 EOF
|
|
10492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
10493 { (eval echo configure:10494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10495 if test -z "$ac_err"; then
|
|
10496 rm -rf conftest*
|
|
10497 eval "ac_cv_header_$ac_safe=yes"
|
|
10498 else
|
|
10499 echo "$ac_err" >&5
|
|
10500 echo "configure: failed program was:" >&5
|
|
10501 cat conftest.$ac_ext >&5
|
|
10502 rm -rf conftest*
|
|
10503 eval "ac_cv_header_$ac_safe=no"
|
|
10504 fi
|
|
10505 rm -f conftest*
|
|
10506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10507 echo "$ac_t""yes" 1>&6
|
|
10508 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10509 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
|
2048
|
10510 echo "configure:10511: checking for Xaw3d/ThreeD.h" >&5
|
|
10511
|
|
10512 cat > conftest.$ac_ext <<EOF
|
|
10513 #line 10514 "configure"
|
440
|
10514 #include "confdefs.h"
|
|
10515 #include <Xaw3d/ThreeD.h>
|
|
10516 EOF
|
|
10517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
10518 { (eval echo configure:10519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10520 if test -z "$ac_err"; then
|
|
10521 rm -rf conftest*
|
|
10522 eval "ac_cv_header_$ac_safe=yes"
|
|
10523 else
|
|
10524 echo "$ac_err" >&5
|
|
10525 echo "configure: failed program was:" >&5
|
|
10526 cat conftest.$ac_ext >&5
|
|
10527 rm -rf conftest*
|
|
10528 eval "ac_cv_header_$ac_safe=no"
|
|
10529 fi
|
|
10530 rm -f conftest*
|
|
10531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10532 echo "$ac_t""yes" 1>&6
|
|
10533
|
561
|
10534 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2
|
440
|
10535 athena_h_path=Xaw3d
|
|
10536
|
|
10537 else
|
|
10538 echo "$ac_t""no" 1>&6
|
|
10539 fi
|
|
10540
|
|
10541 else
|
|
10542 echo "$ac_t""no" 1>&6
|
|
10543 fi
|
|
10544
|
|
10545 fi
|
|
10546
|
434
|
10547 if test -z "$athena_h_path"; then
|
|
10548 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10549 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
|
2048
|
10550 echo "configure:10551: checking for X11/Xaw/ThreeD.h" >&5
|
|
10551
|
|
10552 cat > conftest.$ac_ext <<EOF
|
|
10553 #line 10554 "configure"
|
434
|
10554 #include "confdefs.h"
|
|
10555 #include <X11/Xaw/ThreeD.h>
|
|
10556 EOF
|
|
10557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
10558 { (eval echo configure:10559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
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
|
561
|
10574 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2
|
434
|
10575 athena_h_path=X11/Xaw
|
|
10576
|
|
10577 else
|
|
10578 echo "$ac_t""no" 1>&6
|
561
|
10579 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2
|
434
|
10580 fi
|
|
10581
|
|
10582 fi
|
|
10583 fi
|
|
10584
|
|
10585 if test -n "$athena_lib" -a -n "$athena_h_path"; then
|
|
10586 have_xaw=yes
|
|
10587 else
|
|
10588 have_xaw=no
|
|
10589 fi
|
424
|
10590
|
724
|
10591 else
|
|
10592 have_xaw=no
|
|
10593 fi
|
|
10594 if test "$with_x11" = "yes"; then
|
193
|
10595 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
151
|
10596 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
2048
|
10597 echo "configure:10598: checking for Xm/Xm.h" >&5
|
|
10598
|
|
10599 cat > conftest.$ac_ext <<EOF
|
|
10600 #line 10601 "configure"
|
151
|
10601 #include "confdefs.h"
|
|
10602 #include <Xm/Xm.h>
|
|
10603 EOF
|
|
10604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
10605 { (eval echo configure:10606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
151
|
10607 if test -z "$ac_err"; then
|
|
10608 rm -rf conftest*
|
|
10609 eval "ac_cv_header_$ac_safe=yes"
|
|
10610 else
|
|
10611 echo "$ac_err" >&5
|
|
10612 echo "configure: failed program was:" >&5
|
|
10613 cat conftest.$ac_ext >&5
|
|
10614 rm -rf conftest*
|
|
10615 eval "ac_cv_header_$ac_safe=no"
|
|
10616 fi
|
|
10617 rm -f conftest*
|
|
10618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10619 echo "$ac_t""yes" 1>&6
|
|
10620
|
|
10621 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
2048
|
10622 echo "configure:10623: checking for XmStringFree in -lXm" >&5
|
151
|
10623 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
10624
|
|
10625 xe_check_libs=" -lXm "
|
|
10626 cat > conftest.$ac_ext <<EOF
|
2048
|
10627 #line 10628 "configure"
|
151
|
10628 #include "confdefs.h"
|
|
10629 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10630 /* We use char because int might match the return type of a gcc2
|
|
10631 builtin and then its argument prototype would still apply. */
|
|
10632 char XmStringFree();
|
|
10633
|
|
10634 int main() {
|
|
10635 XmStringFree()
|
|
10636 ; return 0; }
|
|
10637 EOF
|
2048
|
10638 if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
10639 rm -rf conftest*
|
|
10640 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10641 else
|
|
10642 echo "configure: failed program was:" >&5
|
|
10643 cat conftest.$ac_ext >&5
|
|
10644 rm -rf conftest*
|
|
10645 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10646 fi
|
|
10647 rm -f conftest*
|
|
10648 xe_check_libs=""
|
|
10649
|
|
10650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10651 echo "$ac_t""yes" 1>&6
|
|
10652 have_motif=yes
|
|
10653 else
|
|
10654 echo "$ac_t""no" 1>&6
|
|
10655 have_motif=no
|
|
10656 fi
|
|
10657
|
|
10658
|
|
10659 else
|
|
10660 echo "$ac_t""no" 1>&6
|
|
10661 have_motif=no
|
|
10662 fi
|
|
10663
|
149
|
10664
|
272
|
10665 if test "$have_motif" = "yes"; then
|
|
10666 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
|
2048
|
10667 echo "configure:10668: checking for Lesstif" >&5
|
272
|
10668 cat > conftest.$ac_ext <<EOF
|
2048
|
10669 #line 10670 "configure"
|
272
|
10670 #include "confdefs.h"
|
|
10671 #include <Xm/Xm.h>
|
|
10672 #ifdef LESSTIF_VERSION
|
|
10673 yes
|
|
10674 #endif
|
|
10675
|
|
10676 EOF
|
|
10677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
10678 egrep "yes" >/dev/null 2>&1; then
|
|
10679 rm -rf conftest*
|
|
10680 have_lesstif=yes
|
|
10681 else
|
|
10682 rm -rf conftest*
|
|
10683 have_lesstif=no
|
|
10684 fi
|
|
10685 rm -f conftest*
|
|
10686
|
|
10687 echo "$ac_t""$have_lesstif" 1>&6
|
|
10688 fi
|
|
10689
|
193
|
10690 fi
|
149
|
10691
|
434
|
10692 case "$with_menubars" in "" | "yes" | "athena" )
|
149
|
10693 with_menubars="lucid" ;;
|
|
10694 esac
|
243
|
10695 case "$with_dialogs" in "" | "yes" | "lucid" )
|
434
|
10696 if test "$have_motif" = "yes"; then with_dialogs="motif"
|
|
10697 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
|
771
|
10698 elif test "$with_msw" = "yes"; then with_dialogs="msw"
|
149
|
10699 else with_dialogs=no
|
|
10700 fi ;;
|
|
10701 esac
|
|
10702 case "$with_scrollbars" in "" | "yes" )
|
|
10703 with_scrollbars="lucid" ;;
|
|
10704 esac
|
424
|
10705 case "$with_widgets" in "" | "yes" | "lucid")
|
420
|
10706 if test "$have_motif" = "yes"; then with_widgets="motif"
|
424
|
10707 elif test "$have_xaw" = "yes"; then with_widgets="athena"
|
771
|
10708 elif test "$with_msw" = "yes"; then with_widgets="msw"
|
420
|
10709 else with_widgets=no
|
|
10710 fi ;;
|
|
10711 esac
|
|
10712
|
|
10713 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
|
412
|
10714
|
424
|
10715 case "$all_widgets" in
|
434
|
10716 *athena* )
|
|
10717 if test "$have_xaw" != "yes"; then
|
|
10718 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
|
|
10719 fi
|
|
10720
|
|
10721 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
|
|
10722
|
|
10723 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
|
|
10724
|
442
|
10725 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10726 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
|
|
10727 EOF
|
|
10728 cat >> confdefs.h <<EOF
|
|
10729 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
|
|
10730 EOF
|
|
10731 }
|
|
10732
|
|
10733 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10734 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
|
|
10735 EOF
|
|
10736 cat >> confdefs.h <<EOF
|
|
10737 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
|
|
10738 EOF
|
|
10739 }
|
|
10740
|
|
10741 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10742 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
|
|
10743 EOF
|
|
10744 cat >> confdefs.h <<EOF
|
|
10745 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
|
|
10746 EOF
|
|
10747 }
|
|
10748
|
|
10749 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10750 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
|
|
10751 EOF
|
|
10752 cat >> confdefs.h <<EOF
|
|
10753 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
|
|
10754 EOF
|
|
10755 }
|
|
10756
|
|
10757 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10758 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
|
|
10759 EOF
|
|
10760 cat >> confdefs.h <<EOF
|
|
10761 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
|
|
10762 EOF
|
|
10763 }
|
|
10764
|
|
10765 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10766 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
|
|
10767 EOF
|
|
10768 cat >> confdefs.h <<EOF
|
|
10769 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
|
|
10770 EOF
|
|
10771 }
|
|
10772
|
|
10773 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10774 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
|
|
10775 EOF
|
|
10776 cat >> confdefs.h <<EOF
|
|
10777 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
|
|
10778 EOF
|
|
10779 }
|
|
10780
|
|
10781 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10782 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
|
|
10783 EOF
|
|
10784 cat >> confdefs.h <<EOF
|
|
10785 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
|
|
10786 EOF
|
|
10787 }
|
|
10788
|
|
10789 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10790 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
|
|
10791 EOF
|
|
10792 cat >> confdefs.h <<EOF
|
|
10793 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
|
|
10794 EOF
|
|
10795 }
|
|
10796
|
|
10797 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10798 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
|
|
10799 EOF
|
|
10800 cat >> confdefs.h <<EOF
|
|
10801 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
|
434
|
10802 EOF
|
|
10803 }
|
|
10804
|
|
10805
|
|
10806 { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
10807 Defining LWLIB_USES_ATHENA
|
|
10808 EOF
|
|
10809 cat >> confdefs.h <<\EOF
|
|
10810 #define LWLIB_USES_ATHENA 1
|
|
10811 EOF
|
|
10812 }
|
|
10813
|
434
|
10814 { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
10815 Defining NEED_ATHENA
|
|
10816 EOF
|
|
10817 cat >> confdefs.h <<\EOF
|
|
10818 #define NEED_ATHENA 1
|
|
10819 EOF
|
|
10820 }
|
|
10821
|
442
|
10822 need_athena="yes"
|
434
|
10823
|
|
10824 if test "$athena_3d" = "yes"; then
|
|
10825 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10826 Defining HAVE_ATHENA_3D
|
|
10827 EOF
|
|
10828 cat >> confdefs.h <<\EOF
|
|
10829 #define HAVE_ATHENA_3D 1
|
|
10830 EOF
|
|
10831 }
|
|
10832
|
|
10833 fi
|
|
10834 ;;
|
149
|
10835 esac
|
|
10836
|
|
10837 case "$all_widgets" in *motif* )
|
|
10838 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10839 Defining LWLIB_USES_MOTIF
|
|
10840 EOF
|
|
10841 cat >> confdefs.h <<\EOF
|
|
10842 #define LWLIB_USES_MOTIF 1
|
|
10843 EOF
|
|
10844 }
|
|
10845
|
157
|
10846 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10847 Defining NEED_MOTIF
|
|
10848 EOF
|
|
10849 cat >> confdefs.h <<\EOF
|
|
10850 #define NEED_MOTIF 1
|
|
10851 EOF
|
|
10852 }
|
|
10853
|
|
10854 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
|
149
|
10855 need_motif=yes ;;
|
70
|
10856 esac
|
|
10857
|
157
|
10858 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
|
10859 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
|
10860 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
|
10861 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
|
|
10862 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
|
|
10863 case "$with_widgets" in athena* )
|
|
10864 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;;
|
|
10865 esac
|
157
|
10866 case "$all_widgets" in *lucid* )
|
|
10867 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10868 Defining NEED_LUCID
|
|
10869 EOF
|
|
10870 cat >> confdefs.h <<\EOF
|
|
10871 #define NEED_LUCID 1
|
|
10872 EOF
|
|
10873 }
|
|
10874
|
|
10875 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
|
|
10876 esac
|
|
10877
|
|
10878
|
|
10879
|
434
|
10880 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
10881 Defining LWLIB_SCROLLBARS_ATHENA
|
|
10882 EOF
|
|
10883 cat >> confdefs.h <<\EOF
|
|
10884 #define LWLIB_SCROLLBARS_ATHENA 1
|
|
10885 EOF
|
|
10886 }
|
434
|
10887
|
|
10888 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
10889 Defining LWLIB_DIALOGS_ATHENA
|
|
10890 EOF
|
|
10891 cat >> confdefs.h <<\EOF
|
|
10892 #define LWLIB_DIALOGS_ATHENA 1
|
|
10893 EOF
|
|
10894 }
|
434
|
10895
|
|
10896
|
|
10897 if test "$athena_3d" = "yes"; then
|
|
10898 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
10899 Defining LWLIB_SCROLLBARS_ATHENA3D
|
|
10900 EOF
|
|
10901 cat >> confdefs.h <<\EOF
|
|
10902 #define LWLIB_SCROLLBARS_ATHENA3D 1
|
|
10903 EOF
|
|
10904 }
|
|
10905
|
434
|
10906 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
10907 Defining LWLIB_DIALOGS_ATHENA3D
|
|
10908 EOF
|
|
10909 cat >> confdefs.h <<\EOF
|
|
10910 #define LWLIB_DIALOGS_ATHENA3D 1
|
|
10911 EOF
|
|
10912 }
|
|
10913
|
434
|
10914 fi
|
|
10915
|
424
|
10916 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10917 Defining LWLIB_WIDGETS_ATHENA
|
|
10918 EOF
|
|
10919 cat >> confdefs.h <<\EOF
|
|
10920 #define LWLIB_WIDGETS_ATHENA 1
|
|
10921 EOF
|
|
10922 }
|
|
10923 ;; esac
|
|
10924 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
|
|
10925 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10926 Defining LWLIB_TABS_LUCID
|
|
10927 EOF
|
|
10928 cat >> confdefs.h <<\EOF
|
|
10929 #define LWLIB_TABS_LUCID 1
|
|
10930 EOF
|
|
10931 }
|
|
10932
|
149
|
10933
|
|
10934 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10935 Defining HAVE_MENUBARS
|
|
10936 EOF
|
|
10937 cat >> confdefs.h <<\EOF
|
|
10938 #define HAVE_MENUBARS 1
|
|
10939 EOF
|
|
10940 }
|
|
10941
|
|
10942 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10943 Defining HAVE_SCROLLBARS
|
|
10944 EOF
|
|
10945 cat >> confdefs.h <<\EOF
|
|
10946 #define HAVE_SCROLLBARS 1
|
|
10947 EOF
|
|
10948 }
|
|
10949
|
|
10950 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10951 Defining HAVE_DIALOGS
|
|
10952 EOF
|
|
10953 cat >> confdefs.h <<\EOF
|
|
10954 #define HAVE_DIALOGS 1
|
|
10955 EOF
|
|
10956 }
|
|
10957
|
|
10958 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10959 Defining HAVE_TOOLBARS
|
|
10960 EOF
|
|
10961 cat >> confdefs.h <<\EOF
|
|
10962 #define HAVE_TOOLBARS 1
|
|
10963 EOF
|
|
10964 }
|
|
10965
|
440
|
10966 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
10967 Defining HAVE_WIDGETS
|
|
10968 EOF
|
|
10969 cat >> confdefs.h <<\EOF
|
|
10970 #define HAVE_WIDGETS 1
|
|
10971 EOF
|
|
10972 }
|
|
10973
|
149
|
10974
|
|
10975 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10976 Defining LWLIB_MENUBARS_LUCID
|
|
10977 EOF
|
|
10978 cat >> confdefs.h <<\EOF
|
|
10979 #define LWLIB_MENUBARS_LUCID 1
|
|
10980 EOF
|
|
10981 }
|
|
10982
|
|
10983 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10984 Defining LWLIB_SCROLLBARS_LUCID
|
|
10985 EOF
|
|
10986 cat >> confdefs.h <<\EOF
|
|
10987 #define LWLIB_SCROLLBARS_LUCID 1
|
|
10988 EOF
|
|
10989 }
|
|
10990
|
|
10991
|
|
10992 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10993 Defining LWLIB_MENUBARS_MOTIF
|
|
10994 EOF
|
|
10995 cat >> confdefs.h <<\EOF
|
|
10996 #define LWLIB_MENUBARS_MOTIF 1
|
|
10997 EOF
|
|
10998 }
|
|
10999
|
|
11000 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11001 Defining LWLIB_SCROLLBARS_MOTIF
|
|
11002 EOF
|
|
11003 cat >> confdefs.h <<\EOF
|
|
11004 #define LWLIB_SCROLLBARS_MOTIF 1
|
|
11005 EOF
|
|
11006 }
|
|
11007
|
|
11008 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11009 Defining LWLIB_DIALOGS_MOTIF
|
|
11010 EOF
|
|
11011 cat >> confdefs.h <<\EOF
|
|
11012 #define LWLIB_DIALOGS_MOTIF 1
|
|
11013 EOF
|
|
11014 }
|
|
11015
|
424
|
11016 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11017 Defining LWLIB_WIDGETS_MOTIF
|
|
11018 EOF
|
|
11019 cat >> confdefs.h <<\EOF
|
|
11020 #define LWLIB_WIDGETS_MOTIF 1
|
|
11021 EOF
|
|
11022 }
|
|
11023
|
412
|
11024
|
272
|
11025
|
|
11026 test -z "$with_mule" && with_mule=no
|
561
|
11027
|
|
11028
|
771
|
11029 if test "$with_default_eol_detection" = "yes"; then
|
251
|
11030 { test "$extra_verbose" = "yes" && cat << \EOF
|
771
|
11031 Defining HAVE_DEFAULT_EOL_DETECTION
|
|
11032 EOF
|
|
11033 cat >> confdefs.h <<\EOF
|
|
11034 #define HAVE_DEFAULT_EOL_DETECTION 1
|
|
11035 EOF
|
|
11036 }
|
|
11037
|
|
11038 fi
|
594
|
11039
|
149
|
11040 if test "$with_mule" = "yes" ; then
|
151
|
11041 echo "checking for Mule-related features" 1>&6
|
2048
|
11042 echo "configure:11043: checking for Mule-related features" >&5
|
149
|
11043 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11044 Defining MULE
|
|
11045 EOF
|
|
11046 cat >> confdefs.h <<\EOF
|
|
11047 #define MULE 1
|
|
11048 EOF
|
|
11049 }
|
|
11050
|
|
11051
|
155
|
11052 for ac_hdr in libintl.h
|
|
11053 do
|
|
11054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2048
|
11056 echo "configure:11057: checking for $ac_hdr" >&5
|
|
11057
|
|
11058 cat > conftest.$ac_ext <<EOF
|
|
11059 #line 11060 "configure"
|
155
|
11060 #include "confdefs.h"
|
|
11061 #include <$ac_hdr>
|
|
11062 EOF
|
|
11063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
11064 { (eval echo configure:11065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
11066 if test -z "$ac_err"; then
|
|
11067 rm -rf conftest*
|
|
11068 eval "ac_cv_header_$ac_safe=yes"
|
|
11069 else
|
|
11070 echo "$ac_err" >&5
|
|
11071 echo "configure: failed program was:" >&5
|
|
11072 cat conftest.$ac_ext >&5
|
|
11073 rm -rf conftest*
|
|
11074 eval "ac_cv_header_$ac_safe=no"
|
|
11075 fi
|
|
11076 rm -f conftest*
|
|
11077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11078 echo "$ac_t""yes" 1>&6
|
|
11079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11080 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11081 Defining $ac_tr_hdr
|
|
11082 EOF
|
|
11083 cat >> confdefs.h <<EOF
|
|
11084 #define $ac_tr_hdr 1
|
|
11085 EOF
|
|
11086 }
|
|
11087
|
|
11088 else
|
|
11089 echo "$ac_t""no" 1>&6
|
|
11090 fi
|
|
11091 done
|
|
11092
|
|
11093
|
149
|
11094 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
|
2048
|
11095 echo "configure:11096: checking for strerror in -lintl" >&5
|
149
|
11096 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
|
|
11097
|
|
11098 xe_check_libs=" -lintl "
|
|
11099 cat > conftest.$ac_ext <<EOF
|
2048
|
11100 #line 11101 "configure"
|
149
|
11101 #include "confdefs.h"
|
|
11102 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11103 /* We use char because int might match the return type of a gcc2
|
|
11104 builtin and then its argument prototype would still apply. */
|
|
11105 char strerror();
|
|
11106
|
|
11107 int main() {
|
|
11108 strerror()
|
|
11109 ; return 0; }
|
|
11110 EOF
|
2048
|
11111 if { (eval echo configure:11112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11112 rm -rf conftest*
|
|
11113 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11114 else
|
|
11115 echo "configure: failed program was:" >&5
|
|
11116 cat conftest.$ac_ext >&5
|
|
11117 rm -rf conftest*
|
|
11118 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11119 fi
|
|
11120 rm -f conftest*
|
|
11121 xe_check_libs=""
|
|
11122
|
151
|
11123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11124 echo "$ac_t""yes" 1>&6
|
|
11125 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
11126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
11127 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11128 Defining $ac_tr_lib
|
|
11129 EOF
|
|
11130 cat >> confdefs.h <<EOF
|
|
11131 #define $ac_tr_lib 1
|
|
11132 EOF
|
|
11133 }
|
|
11134
|
151
|
11135 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
|
149
|
11136
|
|
11137 else
|
|
11138 echo "$ac_t""no" 1>&6
|
|
11139 fi
|
|
11140
|
|
11141
|
|
11142
|
|
11143 echo "checking for Mule input methods" 1>&6
|
2048
|
11144 echo "configure:11145: checking for Mule input methods" >&5
|
272
|
11145 case "$with_xim" in "" | "yes" )
|
149
|
11146 echo "checking for XIM" 1>&6
|
2048
|
11147 echo "configure:11148: checking for XIM" >&5
|
392
|
11148
|
|
11149 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
|
2048
|
11150 echo "configure:11151: checking for XOpenIM in -lX11" >&5
|
392
|
11151 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
|
|
11152
|
|
11153 xe_check_libs=" -lX11 "
|
|
11154 cat > conftest.$ac_ext <<EOF
|
2048
|
11155 #line 11156 "configure"
|
392
|
11156 #include "confdefs.h"
|
|
11157 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11158 /* We use char because int might match the return type of a gcc2
|
|
11159 builtin and then its argument prototype would still apply. */
|
|
11160 char XOpenIM();
|
|
11161
|
|
11162 int main() {
|
|
11163 XOpenIM()
|
|
11164 ; return 0; }
|
|
11165 EOF
|
2048
|
11166 if { (eval echo configure:11167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
392
|
11167 rm -rf conftest*
|
|
11168 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11169 else
|
|
11170 echo "configure: failed program was:" >&5
|
|
11171 cat conftest.$ac_ext >&5
|
|
11172 rm -rf conftest*
|
|
11173 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11174 fi
|
|
11175 rm -f conftest*
|
|
11176 xe_check_libs=""
|
|
11177
|
|
11178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11179 echo "$ac_t""yes" 1>&6
|
|
11180 with_xim=xlib
|
|
11181 else
|
|
11182 echo "$ac_t""no" 1>&6
|
|
11183 with_xim=no
|
|
11184 fi
|
|
11185
|
|
11186
|
|
11187 if test "$have_motif $have_lesstif" = "yes no"; then
|
|
11188
|
149
|
11189 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
|
2048
|
11190 echo "configure:11191: checking for XmImMbLookupString in -lXm" >&5
|
149
|
11191 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
|
|
11192
|
|
11193 xe_check_libs=" -lXm "
|
|
11194 cat > conftest.$ac_ext <<EOF
|
2048
|
11195 #line 11196 "configure"
|
149
|
11196 #include "confdefs.h"
|
|
11197 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11198 /* We use char because int might match the return type of a gcc2
|
|
11199 builtin and then its argument prototype would still apply. */
|
|
11200 char XmImMbLookupString();
|
|
11201
|
|
11202 int main() {
|
|
11203 XmImMbLookupString()
|
|
11204 ; return 0; }
|
|
11205 EOF
|
2048
|
11206 if { (eval echo configure:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11207 rm -rf conftest*
|
|
11208 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11209 else
|
|
11210 echo "configure: failed program was:" >&5
|
|
11211 cat conftest.$ac_ext >&5
|
|
11212 rm -rf conftest*
|
|
11213 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11214 fi
|
|
11215 rm -f conftest*
|
|
11216 xe_check_libs=""
|
|
11217
|
151
|
11218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11219 echo "$ac_t""yes" 1>&6
|
|
11220 with_xim=motif
|
|
11221 else
|
|
11222 echo "$ac_t""no" 1>&6
|
392
|
11223 fi
|
|
11224
|
|
11225
|
|
11226 fi ;;
|
149
|
11227 esac
|
272
|
11228 if test "$with_xim" != "no"; then
|
149
|
11229 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11230 Defining HAVE_XIM
|
|
11231 EOF
|
|
11232 cat >> confdefs.h <<\EOF
|
|
11233 #define HAVE_XIM 1
|
|
11234 EOF
|
|
11235 }
|
|
11236
|
|
11237 if test "$with_xim" = "xlib"; then
|
|
11238 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11239 Defining XIM_XLIB
|
|
11240 EOF
|
|
11241 cat >> confdefs.h <<\EOF
|
|
11242 #define XIM_XLIB 1
|
|
11243 EOF
|
|
11244 }
|
|
11245
|
151
|
11246 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
11247 echo " xemacs will be linked with \"input-method-xlib.o\""
|
|
11248 fi
|
|
11249 fi
|
149
|
11250 if test "$with_xim" = "motif"; then
|
|
11251 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11252 Defining XIM_MOTIF
|
|
11253 EOF
|
|
11254 cat >> confdefs.h <<\EOF
|
|
11255 #define XIM_MOTIF 1
|
|
11256 EOF
|
|
11257 }
|
|
11258
|
|
11259 need_motif=yes
|
151
|
11260 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
|
|
11261 echo " xemacs will be linked with \"input-method-motif.o\""
|
|
11262 fi
|
149
|
11263 fi
|
215
|
11264 if test "$with_xim" = "motif"; then
|
177
|
11265 with_xfs=no
|
|
11266 fi
|
215
|
11267 fi
|
|
11268
|
|
11269 if test "$with_xfs" = "yes" ; then
|
|
11270 echo "checking for XFontSet" 1>&6
|
2048
|
11271 echo "configure:11272: checking for XFontSet" >&5
|
215
|
11272
|
177
|
11273 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
|
2048
|
11274 echo "configure:11275: checking for XmbDrawString in -lX11" >&5
|
177
|
11275 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
|
|
11276
|
|
11277 xe_check_libs=" -lX11 "
|
|
11278 cat > conftest.$ac_ext <<EOF
|
2048
|
11279 #line 11280 "configure"
|
177
|
11280 #include "confdefs.h"
|
|
11281 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11282 /* We use char because int might match the return type of a gcc2
|
|
11283 builtin and then its argument prototype would still apply. */
|
|
11284 char XmbDrawString();
|
|
11285
|
|
11286 int main() {
|
|
11287 XmbDrawString()
|
|
11288 ; return 0; }
|
|
11289 EOF
|
2048
|
11290 if { (eval echo configure:11291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
177
|
11291 rm -rf conftest*
|
|
11292 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11293 else
|
|
11294 echo "configure: failed program was:" >&5
|
|
11295 cat conftest.$ac_ext >&5
|
|
11296 rm -rf conftest*
|
|
11297 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11298 fi
|
|
11299 rm -f conftest*
|
|
11300 xe_check_libs=""
|
|
11301
|
|
11302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11303 echo "$ac_t""yes" 1>&6
|
|
11304 :
|
|
11305 else
|
|
11306 echo "$ac_t""no" 1>&6
|
|
11307 with_xfs=no
|
|
11308 fi
|
|
11309
|
|
11310
|
|
11311 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
|
|
11312 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11313 Defining USE_XFONTSET
|
|
11314 EOF
|
|
11315 cat >> confdefs.h <<\EOF
|
|
11316 #define USE_XFONTSET 1
|
|
11317 EOF
|
|
11318 }
|
|
11319
|
215
|
11320 if test "$with_xim" = "no" ; then
|
450
|
11321 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
11322 echo " xemacs will be linked with \"input-method-xlib.o\""
|
177
|
11323 fi
|
215
|
11324 fi
|
177
|
11325 fi
|
151
|
11326 fi
|
149
|
11327 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
|
151
|
11328 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
|
|
11329 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
|
2048
|
11330 echo "configure:11331: checking for wnn/jllib.h" >&5
|
|
11331
|
|
11332 cat > conftest.$ac_ext <<EOF
|
|
11333 #line 11334 "configure"
|
151
|
11334 #include "confdefs.h"
|
|
11335 #include <wnn/jllib.h>
|
149
|
11336 EOF
|
|
11337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
11338 { (eval echo configure:11339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
458
|
11339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11340 if test -z "$ac_err"; then
|
|
11341 rm -rf conftest*
|
|
11342 eval "ac_cv_header_$ac_safe=yes"
|
|
11343 else
|
|
11344 echo "$ac_err" >&5
|
|
11345 echo "configure: failed program was:" >&5
|
|
11346 cat conftest.$ac_ext >&5
|
|
11347 rm -rf conftest*
|
|
11348 eval "ac_cv_header_$ac_safe=no"
|
|
11349 fi
|
|
11350 rm -f conftest*
|
|
11351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11352 echo "$ac_t""yes" 1>&6
|
|
11353 :
|
|
11354 else
|
|
11355 echo "$ac_t""no" 1>&6
|
|
11356 with_wnn=no
|
|
11357 fi
|
|
11358 }
|
|
11359 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
|
|
11360 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
|
2048
|
11361 echo "configure:11362: checking for wnn/commonhd.h" >&5
|
|
11362
|
|
11363 cat > conftest.$ac_ext <<EOF
|
|
11364 #line 11365 "configure"
|
458
|
11365 #include "confdefs.h"
|
|
11366 #include <wnn/commonhd.h>
|
|
11367 EOF
|
|
11368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
11369 { (eval echo configure:11370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
11371 if test -z "$ac_err"; then
|
|
11372 rm -rf conftest*
|
|
11373 eval "ac_cv_header_$ac_safe=yes"
|
|
11374 else
|
|
11375 echo "$ac_err" >&5
|
|
11376 echo "configure: failed program was:" >&5
|
|
11377 cat conftest.$ac_ext >&5
|
|
11378 rm -rf conftest*
|
|
11379 eval "ac_cv_header_$ac_safe=no"
|
|
11380 fi
|
|
11381 rm -f conftest*
|
|
11382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11383 echo "$ac_t""yes" 1>&6
|
|
11384 :
|
|
11385 else
|
|
11386 echo "$ac_t""no" 1>&6
|
|
11387 with_wnn=no
|
|
11388 fi
|
|
11389 }
|
167
|
11390 if test "$with_wnn" != "no"; then
|
|
11391 for ac_func in crypt
|
|
11392 do
|
|
11393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
11394 echo "configure:11395: checking for $ac_func" >&5
|
|
11395
|
|
11396 cat > conftest.$ac_ext <<EOF
|
|
11397 #line 11398 "configure"
|
167
|
11398 #include "confdefs.h"
|
|
11399 /* System header to define __stub macros and hopefully few prototypes,
|
|
11400 which can conflict with char $ac_func(); below. */
|
|
11401 #include <assert.h>
|
|
11402 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11403 /* We use char because int might match the return type of a gcc2
|
|
11404 builtin and then its argument prototype would still apply. */
|
|
11405 char $ac_func();
|
|
11406
|
|
11407 int main() {
|
|
11408
|
|
11409 /* The GNU C library defines this for functions which it implements
|
|
11410 to always fail with ENOSYS. Some functions are actually named
|
|
11411 something starting with __ and the normal name is an alias. */
|
|
11412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
11413 choke me
|
|
11414 #else
|
|
11415 $ac_func();
|
|
11416 #endif
|
|
11417
|
|
11418 ; return 0; }
|
|
11419 EOF
|
2048
|
11420 if { (eval echo configure:11421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
167
|
11421 rm -rf conftest*
|
|
11422 eval "ac_cv_func_$ac_func=yes"
|
|
11423 else
|
|
11424 echo "configure: failed program was:" >&5
|
|
11425 cat conftest.$ac_ext >&5
|
|
11426 rm -rf conftest*
|
|
11427 eval "ac_cv_func_$ac_func=no"
|
|
11428 fi
|
|
11429 rm -f conftest*
|
|
11430
|
|
11431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11432 echo "$ac_t""yes" 1>&6
|
|
11433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
11434 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11435 Defining $ac_tr_func
|
|
11436 EOF
|
|
11437 cat >> confdefs.h <<EOF
|
|
11438 #define $ac_tr_func 1
|
|
11439 EOF
|
|
11440 }
|
|
11441
|
|
11442 else
|
|
11443 echo "$ac_t""no" 1>&6
|
|
11444 fi
|
|
11445 done
|
|
11446
|
|
11447 test "$ac_cv_func_crypt" != "yes" && {
|
|
11448 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
2048
|
11449 echo "configure:11450: checking for crypt in -lcrypt" >&5
|
167
|
11450 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
|
11451
|
|
11452 xe_check_libs=" -lcrypt "
|
|
11453 cat > conftest.$ac_ext <<EOF
|
2048
|
11454 #line 11455 "configure"
|
167
|
11455 #include "confdefs.h"
|
|
11456 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11457 /* We use char because int might match the return type of a gcc2
|
|
11458 builtin and then its argument prototype would still apply. */
|
|
11459 char crypt();
|
|
11460
|
|
11461 int main() {
|
|
11462 crypt()
|
|
11463 ; return 0; }
|
|
11464 EOF
|
2048
|
11465 if { (eval echo configure:11466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
167
|
11466 rm -rf conftest*
|
|
11467 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11468 else
|
|
11469 echo "configure: failed program was:" >&5
|
|
11470 cat conftest.$ac_ext >&5
|
|
11471 rm -rf conftest*
|
|
11472 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11473 fi
|
|
11474 rm -f conftest*
|
|
11475 xe_check_libs=""
|
|
11476
|
|
11477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11478 echo "$ac_t""yes" 1>&6
|
|
11479 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
11480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
11481 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11482 Defining $ac_tr_lib
|
|
11483 EOF
|
|
11484 cat >> confdefs.h <<EOF
|
|
11485 #define $ac_tr_lib 1
|
|
11486 EOF
|
|
11487 }
|
|
11488
|
|
11489 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
|
|
11490
|
|
11491 else
|
|
11492 echo "$ac_t""no" 1>&6
|
|
11493 fi
|
|
11494
|
|
11495 }
|
|
11496 fi
|
377
|
11497 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
|
|
11498
|
159
|
11499 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
|
2048
|
11500 echo "configure:11501: checking for jl_dic_list_e in -lwnn" >&5
|
155
|
11501 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
149
|
11502
|
159
|
11503 xe_check_libs=" -lwnn "
|
|
11504 cat > conftest.$ac_ext <<EOF
|
2048
|
11505 #line 11506 "configure"
|
149
|
11506 #include "confdefs.h"
|
|
11507 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11508 /* We use char because int might match the return type of a gcc2
|
|
11509 builtin and then its argument prototype would still apply. */
|
155
|
11510 char jl_dic_list_e();
|
149
|
11511
|
|
11512 int main() {
|
155
|
11513 jl_dic_list_e()
|
149
|
11514 ; return 0; }
|
|
11515 EOF
|
2048
|
11516 if { (eval echo configure:11517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
11517 rm -rf conftest*
|
|
11518 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11519 else
|
|
11520 echo "configure: failed program was:" >&5
|
|
11521 cat conftest.$ac_ext >&5
|
|
11522 rm -rf conftest*
|
|
11523 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11524 fi
|
|
11525 rm -f conftest*
|
|
11526 xe_check_libs=""
|
|
11527
|
|
11528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11529 echo "$ac_t""yes" 1>&6
|
|
11530 libwnn=wnn
|
|
11531 else
|
|
11532 echo "$ac_t""no" 1>&6
|
|
11533 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
|
2048
|
11534 echo "configure:11535: checking for jl_dic_list_e in -lwnn4" >&5
|
377
|
11535 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
11536
|
|
11537 xe_check_libs=" -lwnn4 "
|
|
11538 cat > conftest.$ac_ext <<EOF
|
2048
|
11539 #line 11540 "configure"
|
377
|
11540 #include "confdefs.h"
|
|
11541 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11542 /* We use char because int might match the return type of a gcc2
|
|
11543 builtin and then its argument prototype would still apply. */
|
|
11544 char jl_dic_list_e();
|
|
11545
|
|
11546 int main() {
|
|
11547 jl_dic_list_e()
|
|
11548 ; return 0; }
|
|
11549 EOF
|
2048
|
11550 if { (eval echo configure:11551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11551 rm -rf conftest*
|
|
11552 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11553 else
|
|
11554 echo "configure: failed program was:" >&5
|
|
11555 cat conftest.$ac_ext >&5
|
|
11556 rm -rf conftest*
|
|
11557 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11558 fi
|
|
11559 rm -f conftest*
|
|
11560 xe_check_libs=""
|
|
11561
|
151
|
11562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11563 echo "$ac_t""yes" 1>&6
|
377
|
11564 libwnn=wnn4
|
|
11565 else
|
|
11566 echo "$ac_t""no" 1>&6
|
|
11567 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
|
2048
|
11568 echo "configure:11569: checking for jl_dic_list_e in -lwnn6" >&5
|
377
|
11569 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
11570
|
|
11571 xe_check_libs=" -lwnn6 "
|
|
11572 cat > conftest.$ac_ext <<EOF
|
2048
|
11573 #line 11574 "configure"
|
377
|
11574 #include "confdefs.h"
|
|
11575 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11576 /* We use char because int might match the return type of a gcc2
|
|
11577 builtin and then its argument prototype would still apply. */
|
|
11578 char jl_dic_list_e();
|
|
11579
|
|
11580 int main() {
|
|
11581 jl_dic_list_e()
|
|
11582 ; return 0; }
|
|
11583 EOF
|
2048
|
11584 if { (eval echo configure:11585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
11585 rm -rf conftest*
|
|
11586 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11587 else
|
|
11588 echo "configure: failed program was:" >&5
|
|
11589 cat conftest.$ac_ext >&5
|
|
11590 rm -rf conftest*
|
|
11591 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11592 fi
|
|
11593 rm -f conftest*
|
|
11594 xe_check_libs=""
|
|
11595
|
|
11596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11597 echo "$ac_t""yes" 1>&6
|
|
11598 libwnn=wnn6
|
|
11599 else
|
|
11600 echo "$ac_t""no" 1>&6
|
|
11601 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
|
2048
|
11602 echo "configure:11603: checking for dic_list_e in -lwnn6_fromsrc" >&5
|
377
|
11603 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
|
|
11604
|
|
11605 xe_check_libs=" -lwnn6_fromsrc "
|
|
11606 cat > conftest.$ac_ext <<EOF
|
2048
|
11607 #line 11608 "configure"
|
377
|
11608 #include "confdefs.h"
|
|
11609 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11610 /* We use char because int might match the return type of a gcc2
|
|
11611 builtin and then its argument prototype would still apply. */
|
|
11612 char dic_list_e();
|
|
11613
|
|
11614 int main() {
|
|
11615 dic_list_e()
|
|
11616 ; return 0; }
|
|
11617 EOF
|
2048
|
11618 if { (eval echo configure:11619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
11619 rm -rf conftest*
|
|
11620 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11621 else
|
|
11622 echo "configure: failed program was:" >&5
|
|
11623 cat conftest.$ac_ext >&5
|
|
11624 rm -rf conftest*
|
|
11625 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11626 fi
|
|
11627 rm -f conftest*
|
|
11628 xe_check_libs=""
|
|
11629
|
|
11630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11631 echo "$ac_t""yes" 1>&6
|
|
11632 libwnn=wnn6_fromsrc
|
159
|
11633 else
|
|
11634 echo "$ac_t""no" 1>&6
|
|
11635 with_wnn=no
|
149
|
11636 fi
|
|
11637
|
377
|
11638
|
|
11639 fi
|
|
11640
|
|
11641
|
|
11642 fi
|
|
11643
|
|
11644
|
|
11645 fi
|
|
11646
|
|
11647
|
|
11648 fi
|
149
|
11649 test -z "$with_wnn" && with_wnn=yes
|
|
11650 if test "$with_wnn" = "yes"; then
|
|
11651 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11652 Defining HAVE_WNN
|
|
11653 EOF
|
|
11654 cat >> confdefs.h <<\EOF
|
|
11655 #define HAVE_WNN 1
|
|
11656 EOF
|
|
11657 }
|
|
11658
|
377
|
11659 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
|
284
|
11660 if test "$with_wnn6" != "no"; then
|
|
11661
|
377
|
11662 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
|
2048
|
11663 echo "configure:11664: checking for jl_fi_dic_list in -l$libwnn" >&5
|
377
|
11664 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
|
|
11665
|
|
11666 xe_check_libs=" -l$libwnn "
|
|
11667 cat > conftest.$ac_ext <<EOF
|
2048
|
11668 #line 11669 "configure"
|
149
|
11669 #include "confdefs.h"
|
|
11670 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11671 /* We use char because int might match the return type of a gcc2
|
|
11672 builtin and then its argument prototype would still apply. */
|
|
11673 char jl_fi_dic_list();
|
|
11674
|
|
11675 int main() {
|
|
11676 jl_fi_dic_list()
|
|
11677 ; return 0; }
|
|
11678 EOF
|
2048
|
11679 if { (eval echo configure:11680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11680 rm -rf conftest*
|
|
11681 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11682 else
|
|
11683 echo "configure: failed program was:" >&5
|
|
11684 cat conftest.$ac_ext >&5
|
|
11685 rm -rf conftest*
|
|
11686 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11687 fi
|
|
11688 rm -f conftest*
|
|
11689 xe_check_libs=""
|
|
11690
|
151
|
11691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11692 echo "$ac_t""yes" 1>&6
|
|
11693 with_wnn6=yes
|
|
11694 else
|
|
11695 echo "$ac_t""no" 1>&6
|
|
11696 fi
|
|
11697
|
|
11698
|
284
|
11699 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
151
|
11700 Defining WNN6
|
|
11701 EOF
|
|
11702 cat >> confdefs.h <<\EOF
|
|
11703 #define WNN6 1
|
|
11704 EOF
|
|
11705 }
|
|
11706
|
284
|
11707 fi
|
151
|
11708 fi
|
149
|
11709
|
267
|
11710 canna_includes_found=no
|
|
11711 if test "$with_canna" != "no"; then
|
|
11712 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
11713 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
2048
|
11714 echo "configure:11715: checking for canna/jrkanji.h" >&5
|
|
11715
|
|
11716 cat > conftest.$ac_ext <<EOF
|
|
11717 #line 11718 "configure"
|
267
|
11718 #include "confdefs.h"
|
|
11719 #include <canna/jrkanji.h>
|
|
11720 EOF
|
|
11721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
11722 { (eval echo configure:11723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
267
|
11724 if test -z "$ac_err"; then
|
|
11725 rm -rf conftest*
|
|
11726 eval "ac_cv_header_$ac_safe=yes"
|
|
11727 else
|
|
11728 echo "$ac_err" >&5
|
|
11729 echo "configure: failed program was:" >&5
|
|
11730 cat conftest.$ac_ext >&5
|
|
11731 rm -rf conftest*
|
|
11732 eval "ac_cv_header_$ac_safe=no"
|
|
11733 fi
|
|
11734 rm -f conftest*
|
|
11735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11736 echo "$ac_t""yes" 1>&6
|
|
11737 canna_includes_found=yes
|
|
11738 else
|
|
11739 echo "$ac_t""no" 1>&6
|
|
11740 fi
|
|
11741
|
|
11742 fi
|
|
11743 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
|
|
11744 -d "/usr/local/canna/include"; then
|
|
11745 save_c_switch_site="$c_switch_site"
|
|
11746 c_switch_site="$c_switch_site -I/usr/local/canna/include"
|
|
11747 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
11748 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
2048
|
11749 echo "configure:11750: checking for canna/jrkanji.h" >&5
|
|
11750
|
|
11751 cat > conftest.$ac_ext <<EOF
|
|
11752 #line 11753 "configure"
|
267
|
11753 #include "confdefs.h"
|
|
11754 #include <canna/jrkanji.h>
|
|
11755 EOF
|
|
11756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
11757 { (eval echo configure:11758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
267
|
11759 if test -z "$ac_err"; then
|
|
11760 rm -rf conftest*
|
|
11761 eval "ac_cv_header_$ac_safe=yes"
|
|
11762 else
|
|
11763 echo "$ac_err" >&5
|
|
11764 echo "configure: failed program was:" >&5
|
|
11765 cat conftest.$ac_ext >&5
|
|
11766 rm -rf conftest*
|
|
11767 eval "ac_cv_header_$ac_safe=no"
|
|
11768 fi
|
|
11769 rm -f conftest*
|
|
11770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11771 echo "$ac_t""yes" 1>&6
|
|
11772 canna_includes_found=yes
|
|
11773 else
|
|
11774 echo "$ac_t""no" 1>&6
|
|
11775 fi
|
|
11776
|
|
11777 if test "$canna_includes_found" != "yes"; then
|
|
11778 c_switch_site="$save_c_switch_site"
|
|
11779 with_canna="no"
|
|
11780 fi
|
|
11781 fi
|
|
11782
|
|
11783 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
|
149
|
11784 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
|
2048
|
11785 echo "configure:11786: checking for canna/RK.h" >&5
|
|
11786
|
|
11787 cat > conftest.$ac_ext <<EOF
|
|
11788 #line 11789 "configure"
|
149
|
11789 #include "confdefs.h"
|
|
11790 #include <canna/RK.h>
|
|
11791 EOF
|
|
11792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
11793 { (eval echo configure:11794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
11795 if test -z "$ac_err"; then
|
|
11796 rm -rf conftest*
|
|
11797 eval "ac_cv_header_$ac_safe=yes"
|
|
11798 else
|
|
11799 echo "$ac_err" >&5
|
|
11800 echo "configure: failed program was:" >&5
|
|
11801 cat conftest.$ac_ext >&5
|
|
11802 rm -rf conftest*
|
|
11803 eval "ac_cv_header_$ac_safe=no"
|
|
11804 fi
|
|
11805 rm -f conftest*
|
|
11806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11807 echo "$ac_t""yes" 1>&6
|
|
11808 :
|
|
11809 else
|
|
11810 echo "$ac_t""no" 1>&6
|
|
11811 with_canna=no
|
|
11812 fi
|
|
11813 }
|
|
11814 test -z "$with_canna" && {
|
|
11815 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
|
2048
|
11816 echo "configure:11817: checking for RkBgnBun in -lRKC" >&5
|
149
|
11817 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
|
|
11818
|
|
11819 xe_check_libs=" -lRKC "
|
|
11820 cat > conftest.$ac_ext <<EOF
|
2048
|
11821 #line 11822 "configure"
|
149
|
11822 #include "confdefs.h"
|
|
11823 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11824 /* We use char because int might match the return type of a gcc2
|
|
11825 builtin and then its argument prototype would still apply. */
|
|
11826 char RkBgnBun();
|
|
11827
|
|
11828 int main() {
|
|
11829 RkBgnBun()
|
|
11830 ; return 0; }
|
|
11831 EOF
|
2048
|
11832 if { (eval echo configure:11833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11833 rm -rf conftest*
|
|
11834 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11835 else
|
|
11836 echo "configure: failed program was:" >&5
|
|
11837 cat conftest.$ac_ext >&5
|
|
11838 rm -rf conftest*
|
|
11839 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11840 fi
|
|
11841 rm -f conftest*
|
|
11842 xe_check_libs=""
|
|
11843
|
151
|
11844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11845 echo "$ac_t""yes" 1>&6
|
|
11846 :
|
|
11847 else
|
|
11848 echo "$ac_t""no" 1>&6
|
|
11849 with_canna=no
|
|
11850 fi
|
|
11851
|
|
11852 }
|
|
11853 test -z "$with_canna" && {
|
|
11854 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
|
2048
|
11855 echo "configure:11856: checking for jrKanjiControl in -lcanna" >&5
|
149
|
11856 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
|
|
11857
|
|
11858 xe_check_libs=" -lcanna "
|
|
11859 cat > conftest.$ac_ext <<EOF
|
2048
|
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 jrKanjiControl();
|
|
11866
|
|
11867 int main() {
|
|
11868 jrKanjiControl()
|
|
11869 ; return 0; }
|
|
11870 EOF
|
2048
|
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 :
|
|
11886 else
|
|
11887 echo "$ac_t""no" 1>&6
|
|
11888 with_canna=no
|
|
11889 fi
|
|
11890
|
|
11891 }
|
|
11892 test -z "$with_canna" && with_canna=yes
|
|
11893 if test "$with_canna" = "yes"; then
|
|
11894 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11895 Defining HAVE_CANNA
|
|
11896 EOF
|
|
11897 cat >> confdefs.h <<\EOF
|
|
11898 #define HAVE_CANNA 1
|
|
11899 EOF
|
|
11900 }
|
|
11901
|
151
|
11902 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
|
|
11903 fi
|
155
|
11904
|
151
|
11905 else for feature in xim canna wnn; do
|
149
|
11906 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
561
|
11907 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2
|
149
|
11908 fi
|
|
11909 eval "with_${feature}=no"
|
|
11910 done
|
151
|
11911 fi
|
|
11912
|
|
11913 if test "$need_motif" = "yes" ; then
|
|
11914 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
|
207
|
11915
|
|
11916 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
|
2048
|
11917 echo "configure:11918: checking for layout_object_getvalue in -li18n" >&5
|
207
|
11918 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
|
|
11919
|
|
11920 xe_check_libs=" -li18n "
|
|
11921 cat > conftest.$ac_ext <<EOF
|
2048
|
11922 #line 11923 "configure"
|
207
|
11923 #include "confdefs.h"
|
|
11924 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11925 /* We use char because int might match the return type of a gcc2
|
|
11926 builtin and then its argument prototype would still apply. */
|
|
11927 char layout_object_getvalue();
|
|
11928
|
|
11929 int main() {
|
|
11930 layout_object_getvalue()
|
|
11931 ; return 0; }
|
|
11932 EOF
|
2048
|
11933 if { (eval echo configure:11934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
207
|
11934 rm -rf conftest*
|
|
11935 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11936 else
|
|
11937 echo "configure: failed program was:" >&5
|
|
11938 cat conftest.$ac_ext >&5
|
|
11939 rm -rf conftest*
|
|
11940 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11941 fi
|
|
11942 rm -f conftest*
|
|
11943 xe_check_libs=""
|
|
11944
|
|
11945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11946 echo "$ac_t""yes" 1>&6
|
|
11947 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
|
|
11948 else
|
|
11949 echo "$ac_t""no" 1>&6
|
|
11950 fi
|
|
11951
|
|
11952
|
151
|
11953
|
|
11954 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
11955 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
11956 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
11957
|
163
|
11958 runpath="" runpath_dirs=""
|
155
|
11959 if test -n "$LD_RUN_PATH"; then
|
151
|
11960 runpath="$LD_RUN_PATH"
|
155
|
11961 elif test "$GCC" = "yes"; then
|
163
|
11962 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
11963 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
11964 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
11965 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
11966 case "$arg" in P,* | -L* | -R* )
|
159
|
11967 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
11968 {
|
155
|
11969 xe_runpath_dir="$dir"
|
163
|
11970 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
11971 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
11972 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
11973 eval "$xe_add_unique_runpath_dir"
|
|
11974 }
|
155
|
11975 done ;;
|
|
11976 esac
|
|
11977 done
|
163
|
11978 ld_switch_run="$ld_switch_run_save"
|
155
|
11979 rm -f conftest*
|
151
|
11980 else
|
155
|
11981 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
11982 case "$arg" in -L*) {
|
159
|
11983 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
11984 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
11985 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
11986 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
11987 eval "$xe_add_unique_runpath_dir"
|
|
11988 };; esac
|
151
|
11989 done
|
163
|
11990 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
11991 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
11992 eval "$xe_add_unique_runpath_dir";
|
|
11993 fi
|
155
|
11994 fi
|
151
|
11995 if test -n "$runpath"; then
|
|
11996 ld_switch_run="${dash_r}${runpath}"
|
272
|
11997
|
|
11998 if test "$GCC" = "yes"; then
|
|
11999 set x $ld_switch_run; shift; ld_switch_run=""
|
|
12000 while test -n "$1"; do
|
|
12001 case $1 in
|
380
|
12002 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
12003 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
12004 -Xlinker* ) ;;
|
|
12005 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
12006 esac
|
|
12007 shift
|
|
12008 done
|
|
12009 fi
|
151
|
12010 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
12011 fi
|
|
12012 fi
|
|
12013
|
|
12014 fi
|
|
12015
|
1070
|
12016
|
1202
|
12017 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
|
12018 do
|
|
12019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
12020 echo "configure:12021: checking for $ac_func" >&5
|
|
12021
|
|
12022 cat > conftest.$ac_ext <<EOF
|
|
12023 #line 12024 "configure"
|
410
|
12024 #include "confdefs.h"
|
|
12025 /* System header to define __stub macros and hopefully few prototypes,
|
|
12026 which can conflict with char $ac_func(); below. */
|
|
12027 #include <assert.h>
|
|
12028 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12029 /* We use char because int might match the return type of a gcc2
|
|
12030 builtin and then its argument prototype would still apply. */
|
|
12031 char $ac_func();
|
|
12032
|
|
12033 int main() {
|
|
12034
|
|
12035 /* The GNU C library defines this for functions which it implements
|
|
12036 to always fail with ENOSYS. Some functions are actually named
|
|
12037 something starting with __ and the normal name is an alias. */
|
|
12038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
12039 choke me
|
|
12040 #else
|
|
12041 $ac_func();
|
|
12042 #endif
|
|
12043
|
|
12044 ; return 0; }
|
|
12045 EOF
|
2048
|
12046 if { (eval echo configure:12047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
12047 rm -rf conftest*
|
|
12048 eval "ac_cv_func_$ac_func=yes"
|
|
12049 else
|
|
12050 echo "configure: failed program was:" >&5
|
|
12051 cat conftest.$ac_ext >&5
|
|
12052 rm -rf conftest*
|
|
12053 eval "ac_cv_func_$ac_func=no"
|
|
12054 fi
|
|
12055 rm -f conftest*
|
|
12056
|
|
12057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12058 echo "$ac_t""yes" 1>&6
|
|
12059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12060 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12061 Defining $ac_tr_func
|
|
12062 EOF
|
|
12063 cat >> confdefs.h <<EOF
|
|
12064 #define $ac_tr_func 1
|
|
12065 EOF
|
|
12066 }
|
|
12067
|
|
12068 else
|
|
12069 echo "$ac_t""no" 1>&6
|
|
12070 fi
|
|
12071 done
|
|
12072
|
|
12073
|
1070
|
12074 if test "$ac_cv_func_getaddrinfo" != "no" ; then
|
|
12075 case "$opsys" in
|
|
12076 hpux11 )
|
|
12077 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
|
|
12078 ac_cv_func_getaddrinfo=no
|
|
12079 ;;
|
|
12080 esac
|
|
12081 fi
|
|
12082
|
458
|
12083
|
444
|
12084 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
|
442
|
12085 do
|
|
12086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
12087 echo "configure:12088: checking for $ac_func" >&5
|
|
12088
|
|
12089 cat > conftest.$ac_ext <<EOF
|
|
12090 #line 12091 "configure"
|
442
|
12091 #include "confdefs.h"
|
|
12092 /* System header to define __stub macros and hopefully few prototypes,
|
|
12093 which can conflict with char $ac_func(); below. */
|
|
12094 #include <assert.h>
|
|
12095 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12096 /* We use char because int might match the return type of a gcc2
|
|
12097 builtin and then its argument prototype would still apply. */
|
|
12098 char $ac_func();
|
|
12099
|
|
12100 int main() {
|
|
12101
|
|
12102 /* The GNU C library defines this for functions which it implements
|
|
12103 to always fail with ENOSYS. Some functions are actually named
|
|
12104 something starting with __ and the normal name is an alias. */
|
|
12105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
12106 choke me
|
|
12107 #else
|
|
12108 $ac_func();
|
|
12109 #endif
|
|
12110
|
|
12111 ; return 0; }
|
|
12112 EOF
|
2048
|
12113 if { (eval echo configure:12114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
410
|
12114 rm -rf conftest*
|
|
12115 eval "ac_cv_func_$ac_func=yes"
|
|
12116 else
|
|
12117 echo "configure: failed program was:" >&5
|
|
12118 cat conftest.$ac_ext >&5
|
|
12119 rm -rf conftest*
|
|
12120 eval "ac_cv_func_$ac_func=no"
|
|
12121 fi
|
|
12122 rm -f conftest*
|
|
12123
|
|
12124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12125 echo "$ac_t""yes" 1>&6
|
|
12126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12127 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12128 Defining $ac_tr_func
|
|
12129 EOF
|
|
12130 cat >> confdefs.h <<EOF
|
|
12131 #define $ac_tr_func 1
|
|
12132 EOF
|
|
12133 }
|
|
12134
|
|
12135 else
|
|
12136 echo "$ac_t""no" 1>&6
|
|
12137 fi
|
|
12138 done
|
|
12139
|
|
12140
|
442
|
12141 echo $ac_n "checking for openpty""... $ac_c" 1>&6
|
2048
|
12142 echo "configure:12143: checking for openpty" >&5
|
|
12143
|
|
12144 cat > conftest.$ac_ext <<EOF
|
|
12145 #line 12146 "configure"
|
442
|
12146 #include "confdefs.h"
|
|
12147 /* System header to define __stub macros and hopefully few prototypes,
|
|
12148 which can conflict with char openpty(); below. */
|
|
12149 #include <assert.h>
|
|
12150 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12151 /* We use char because int might match the return type of a gcc2
|
|
12152 builtin and then its argument prototype would still apply. */
|
|
12153 char openpty();
|
|
12154
|
|
12155 int main() {
|
|
12156
|
|
12157 /* The GNU C library defines this for functions which it implements
|
|
12158 to always fail with ENOSYS. Some functions are actually named
|
|
12159 something starting with __ and the normal name is an alias. */
|
|
12160 #if defined (__stub_openpty) || defined (__stub___openpty)
|
|
12161 choke me
|
|
12162 #else
|
|
12163 openpty();
|
|
12164 #endif
|
|
12165
|
|
12166 ; return 0; }
|
|
12167 EOF
|
2048
|
12168 if { (eval echo configure:12169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
12169 rm -rf conftest*
|
|
12170 eval "ac_cv_func_openpty=yes"
|
|
12171 else
|
|
12172 echo "configure: failed program was:" >&5
|
|
12173 cat conftest.$ac_ext >&5
|
|
12174 rm -rf conftest*
|
|
12175 eval "ac_cv_func_openpty=no"
|
|
12176 fi
|
|
12177 rm -f conftest*
|
|
12178
|
|
12179 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
|
|
12180 echo "$ac_t""yes" 1>&6
|
|
12181 have_openpty=yes
|
|
12182 else
|
|
12183 echo "$ac_t""no" 1>&6
|
|
12184
|
|
12185
|
|
12186 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
|
2048
|
12187 echo "configure:12188: checking for openpty in -lutil" >&5
|
442
|
12188 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
|
|
12189
|
|
12190 xe_check_libs=" -lutil "
|
|
12191 cat > conftest.$ac_ext <<EOF
|
2048
|
12192 #line 12193 "configure"
|
442
|
12193 #include "confdefs.h"
|
|
12194 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12195 /* We use char because int might match the return type of a gcc2
|
|
12196 builtin and then its argument prototype would still apply. */
|
|
12197 char openpty();
|
|
12198
|
|
12199 int main() {
|
|
12200 openpty()
|
|
12201 ; return 0; }
|
|
12202 EOF
|
2048
|
12203 if { (eval echo configure:12204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
12204 rm -rf conftest*
|
|
12205 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12206 else
|
|
12207 echo "configure: failed program was:" >&5
|
|
12208 cat conftest.$ac_ext >&5
|
|
12209 rm -rf conftest*
|
|
12210 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12211 fi
|
|
12212 rm -f conftest*
|
|
12213 xe_check_libs=""
|
|
12214
|
|
12215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
12216 echo "$ac_t""yes" 1>&6
|
|
12217 have_openpty=yes need_libutil=yes
|
|
12218 else
|
|
12219 echo "$ac_t""no" 1>&6
|
|
12220 fi
|
|
12221
|
|
12222
|
|
12223 fi
|
|
12224
|
|
12225 if test "$have_openpty" = "yes"; then
|
|
12226 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12227 Defining HAVE_OPENPTY
|
|
12228 EOF
|
|
12229 cat >> confdefs.h <<\EOF
|
|
12230 #define HAVE_OPENPTY 1
|
|
12231 EOF
|
|
12232 }
|
|
12233
|
535
|
12234 for ac_hdr in libutil.h util.h
|
442
|
12235 do
|
|
12236 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2048
|
12238 echo "configure:12239: checking for $ac_hdr" >&5
|
|
12239
|
|
12240 cat > conftest.$ac_ext <<EOF
|
|
12241 #line 12242 "configure"
|
442
|
12242 #include "confdefs.h"
|
|
12243 #include <$ac_hdr>
|
|
12244 EOF
|
|
12245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
12246 { (eval echo configure:12247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
12247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12248 if test -z "$ac_err"; then
|
|
12249 rm -rf conftest*
|
|
12250 eval "ac_cv_header_$ac_safe=yes"
|
|
12251 else
|
|
12252 echo "$ac_err" >&5
|
|
12253 echo "configure: failed program was:" >&5
|
|
12254 cat conftest.$ac_ext >&5
|
|
12255 rm -rf conftest*
|
|
12256 eval "ac_cv_header_$ac_safe=no"
|
|
12257 fi
|
|
12258 rm -f conftest*
|
|
12259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12260 echo "$ac_t""yes" 1>&6
|
|
12261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12262 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12263 Defining $ac_tr_hdr
|
|
12264 EOF
|
|
12265 cat >> confdefs.h <<EOF
|
|
12266 #define $ac_tr_hdr 1
|
|
12267 EOF
|
|
12268 }
|
458
|
12269 break
|
442
|
12270 else
|
|
12271 echo "$ac_t""no" 1>&6
|
|
12272 fi
|
|
12273 done
|
|
12274
|
|
12275 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
|
|
12276 fi
|
|
12277
|
535
|
12278 case "$opsys" in
|
|
12279 hpux*) for ac_hdr in sys/ptyio.h
|
|
12280 do
|
|
12281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2048
|
12283 echo "configure:12284: checking for $ac_hdr" >&5
|
|
12284
|
|
12285 cat > conftest.$ac_ext <<EOF
|
|
12286 #line 12287 "configure"
|
535
|
12287 #include "confdefs.h"
|
|
12288 #include <$ac_hdr>
|
|
12289 EOF
|
|
12290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
12291 { (eval echo configure:12292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
12292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12293 if test -z "$ac_err"; then
|
|
12294 rm -rf conftest*
|
|
12295 eval "ac_cv_header_$ac_safe=yes"
|
|
12296 else
|
|
12297 echo "$ac_err" >&5
|
|
12298 echo "configure: failed program was:" >&5
|
|
12299 cat conftest.$ac_ext >&5
|
|
12300 rm -rf conftest*
|
|
12301 eval "ac_cv_header_$ac_safe=no"
|
|
12302 fi
|
|
12303 rm -f conftest*
|
|
12304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12305 echo "$ac_t""yes" 1>&6
|
|
12306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12307 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12308 Defining $ac_tr_hdr
|
|
12309 EOF
|
|
12310 cat >> confdefs.h <<EOF
|
|
12311 #define $ac_tr_hdr 1
|
|
12312 EOF
|
|
12313 }
|
|
12314
|
|
12315 else
|
|
12316 echo "$ac_t""no" 1>&6
|
|
12317 fi
|
|
12318 done
|
1111
|
12319 ;;
|
|
12320 *) for ac_hdr in pty.h
|
535
|
12321 do
|
|
12322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2048
|
12324 echo "configure:12325: checking for $ac_hdr" >&5
|
|
12325
|
|
12326 cat > conftest.$ac_ext <<EOF
|
|
12327 #line 12328 "configure"
|
771
|
12328 #include "confdefs.h"
|
|
12329 #include <$ac_hdr>
|
|
12330 EOF
|
|
12331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
12332 { (eval echo configure:12333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
771
|
12333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12334 if test -z "$ac_err"; then
|
|
12335 rm -rf conftest*
|
|
12336 eval "ac_cv_header_$ac_safe=yes"
|
|
12337 else
|
|
12338 echo "$ac_err" >&5
|
|
12339 echo "configure: failed program was:" >&5
|
|
12340 cat conftest.$ac_ext >&5
|
|
12341 rm -rf conftest*
|
|
12342 eval "ac_cv_header_$ac_safe=no"
|
|
12343 fi
|
|
12344 rm -f conftest*
|
|
12345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12346 echo "$ac_t""yes" 1>&6
|
|
12347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12348 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12349 Defining $ac_tr_hdr
|
|
12350 EOF
|
|
12351 cat >> confdefs.h <<EOF
|
|
12352 #define $ac_tr_hdr 1
|
|
12353 EOF
|
|
12354 }
|
|
12355
|
|
12356 else
|
|
12357 echo "$ac_t""no" 1>&6
|
|
12358 fi
|
|
12359 done
|
|
12360
|
1889
|
12361 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
|
|
12362 do
|
|
12363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2048
|
12365 echo "configure:12366: checking for $ac_hdr" >&5
|
|
12366
|
|
12367 cat > conftest.$ac_ext <<EOF
|
|
12368 #line 12369 "configure"
|
1889
|
12369 #include "confdefs.h"
|
|
12370 #include <$ac_hdr>
|
|
12371 EOF
|
|
12372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
12373 { (eval echo configure:12374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1889
|
12374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12375 if test -z "$ac_err"; then
|
|
12376 rm -rf conftest*
|
|
12377 eval "ac_cv_header_$ac_safe=yes"
|
|
12378 else
|
|
12379 echo "$ac_err" >&5
|
|
12380 echo "configure: failed program was:" >&5
|
|
12381 cat conftest.$ac_ext >&5
|
|
12382 rm -rf conftest*
|
|
12383 eval "ac_cv_header_$ac_safe=no"
|
|
12384 fi
|
|
12385 rm -f conftest*
|
|
12386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12387 echo "$ac_t""yes" 1>&6
|
|
12388 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12389 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12390 Defining $ac_tr_hdr
|
|
12391 EOF
|
|
12392 cat >> confdefs.h <<EOF
|
|
12393 #define $ac_tr_hdr 1
|
|
12394 EOF
|
|
12395 }
|
|
12396
|
|
12397 else
|
|
12398 echo "$ac_t""no" 1>&6
|
|
12399 fi
|
|
12400 done
|
|
12401
|
1984
|
12402 ;;
|
|
12403 esac
|
|
12404
|
|
12405 for ac_hdr in stropts.h
|
|
12406 do
|
|
12407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2048
|
12409 echo "configure:12410: checking for $ac_hdr" >&5
|
|
12410
|
|
12411 cat > conftest.$ac_ext <<EOF
|
|
12412 #line 12413 "configure"
|
1984
|
12413 #include "confdefs.h"
|
|
12414 #include <$ac_hdr>
|
|
12415 EOF
|
|
12416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
12417 { (eval echo configure:12418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1984
|
12418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12419 if test -z "$ac_err"; then
|
|
12420 rm -rf conftest*
|
|
12421 eval "ac_cv_header_$ac_safe=yes"
|
|
12422 else
|
|
12423 echo "$ac_err" >&5
|
|
12424 echo "configure: failed program was:" >&5
|
|
12425 cat conftest.$ac_ext >&5
|
|
12426 rm -rf conftest*
|
|
12427 eval "ac_cv_header_$ac_safe=no"
|
|
12428 fi
|
|
12429 rm -f conftest*
|
|
12430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12431 echo "$ac_t""yes" 1>&6
|
|
12432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12433 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12434 Defining $ac_tr_hdr
|
|
12435 EOF
|
|
12436 cat >> confdefs.h <<EOF
|
|
12437 #define $ac_tr_hdr 1
|
|
12438 EOF
|
|
12439 }
|
|
12440
|
|
12441 else
|
|
12442 echo "$ac_t""no" 1>&6
|
|
12443 fi
|
|
12444 done
|
|
12445
|
771
|
12446 if test "$ac_cv_header_stropts_h" = "yes"; then
|
|
12447 for ac_func in isastream
|
|
12448 do
|
|
12449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
12450 echo "configure:12451: checking for $ac_func" >&5
|
|
12451
|
|
12452 cat > conftest.$ac_ext <<EOF
|
|
12453 #line 12454 "configure"
|
771
|
12454 #include "confdefs.h"
|
|
12455 /* System header to define __stub macros and hopefully few prototypes,
|
|
12456 which can conflict with char $ac_func(); below. */
|
|
12457 #include <assert.h>
|
|
12458 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12459 /* We use char because int might match the return type of a gcc2
|
|
12460 builtin and then its argument prototype would still apply. */
|
|
12461 char $ac_func();
|
|
12462
|
|
12463 int main() {
|
|
12464
|
|
12465 /* The GNU C library defines this for functions which it implements
|
|
12466 to always fail with ENOSYS. Some functions are actually named
|
|
12467 something starting with __ and the normal name is an alias. */
|
|
12468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
12469 choke me
|
|
12470 #else
|
|
12471 $ac_func();
|
|
12472 #endif
|
|
12473
|
|
12474 ; return 0; }
|
|
12475 EOF
|
2048
|
12476 if { (eval echo configure:12477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
771
|
12477 rm -rf conftest*
|
|
12478 eval "ac_cv_func_$ac_func=yes"
|
|
12479 else
|
|
12480 echo "configure: failed program was:" >&5
|
|
12481 cat conftest.$ac_ext >&5
|
|
12482 rm -rf conftest*
|
|
12483 eval "ac_cv_func_$ac_func=no"
|
|
12484 fi
|
|
12485 rm -f conftest*
|
|
12486
|
|
12487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12488 echo "$ac_t""yes" 1>&6
|
|
12489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12490 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12491 Defining $ac_tr_func
|
|
12492 EOF
|
|
12493 cat >> confdefs.h <<EOF
|
|
12494 #define $ac_tr_func 1
|
|
12495 EOF
|
|
12496 }
|
|
12497
|
|
12498 else
|
|
12499 echo "$ac_t""no" 1>&6
|
|
12500 fi
|
|
12501 done
|
|
12502
|
|
12503 for ac_hdr in strtio.h
|
|
12504 do
|
|
12505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2048
|
12507 echo "configure:12508: checking for $ac_hdr" >&5
|
|
12508
|
|
12509 cat > conftest.$ac_ext <<EOF
|
|
12510 #line 12511 "configure"
|
535
|
12511 #include "confdefs.h"
|
|
12512 #include <$ac_hdr>
|
|
12513 EOF
|
|
12514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
12515 { (eval echo configure:12516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
12516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12517 if test -z "$ac_err"; then
|
|
12518 rm -rf conftest*
|
|
12519 eval "ac_cv_header_$ac_safe=yes"
|
|
12520 else
|
|
12521 echo "$ac_err" >&5
|
|
12522 echo "configure: failed program was:" >&5
|
|
12523 cat conftest.$ac_ext >&5
|
|
12524 rm -rf conftest*
|
|
12525 eval "ac_cv_header_$ac_safe=no"
|
|
12526 fi
|
|
12527 rm -f conftest*
|
|
12528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12529 echo "$ac_t""yes" 1>&6
|
|
12530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12531 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12532 Defining $ac_tr_hdr
|
|
12533 EOF
|
|
12534 cat >> confdefs.h <<EOF
|
|
12535 #define $ac_tr_hdr 1
|
|
12536 EOF
|
|
12537 }
|
|
12538
|
|
12539 else
|
|
12540 echo "$ac_t""no" 1>&6
|
|
12541 fi
|
|
12542 done
|
771
|
12543 fi
|
|
12544
|
|
12545 for ac_func in getloadavg
|
410
|
12546 do
|
|
12547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
12548 echo "configure:12549: checking for $ac_func" >&5
|
|
12549
|
|
12550 cat > conftest.$ac_ext <<EOF
|
|
12551 #line 12552 "configure"
|
149
|
12552 #include "confdefs.h"
|
|
12553 /* System header to define __stub macros and hopefully few prototypes,
|
|
12554 which can conflict with char $ac_func(); below. */
|
|
12555 #include <assert.h>
|
|
12556 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12557 /* We use char because int might match the return type of a gcc2
|
|
12558 builtin and then its argument prototype would still apply. */
|
|
12559 char $ac_func();
|
|
12560
|
|
12561 int main() {
|
|
12562
|
70
|
12563 /* The GNU C library defines this for functions which it implements
|
|
12564 to always fail with ENOSYS. Some functions are actually named
|
|
12565 something starting with __ and the normal name is an alias. */
|
149
|
12566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
70
|
12567 choke me
|
|
12568 #else
|
149
|
12569 $ac_func();
|
70
|
12570 #endif
|
149
|
12571
|
70
|
12572 ; return 0; }
|
|
12573 EOF
|
2048
|
12574 if { (eval echo configure:12575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
12575 rm -rf conftest*
|
|
12576 eval "ac_cv_func_$ac_func=yes"
|
|
12577 else
|
|
12578 echo "configure: failed program was:" >&5
|
|
12579 cat conftest.$ac_ext >&5
|
|
12580 rm -rf conftest*
|
|
12581 eval "ac_cv_func_$ac_func=no"
|
|
12582 fi
|
|
12583 rm -f conftest*
|
|
12584
|
|
12585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12586 echo "$ac_t""yes" 1>&6
|
|
12587 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12588 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12589 Defining $ac_tr_func
|
|
12590 EOF
|
|
12591 cat >> confdefs.h <<EOF
|
|
12592 #define $ac_tr_func 1
|
|
12593 EOF
|
|
12594 }
|
|
12595
|
|
12596 else
|
|
12597 echo "$ac_t""no" 1>&6
|
|
12598 fi
|
|
12599 done
|
|
12600
|
|
12601
|
|
12602 if test "$ac_cv_func_getloadavg" = "yes"; then
|
|
12603 for ac_hdr in sys/loadavg.h
|
|
12604 do
|
|
12605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2048
|
12607 echo "configure:12608: checking for $ac_hdr" >&5
|
|
12608
|
|
12609 cat > conftest.$ac_ext <<EOF
|
|
12610 #line 12611 "configure"
|
442
|
12611 #include "confdefs.h"
|
|
12612 #include <$ac_hdr>
|
|
12613 EOF
|
|
12614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
12615 { (eval echo configure:12616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
12616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12617 if test -z "$ac_err"; then
|
|
12618 rm -rf conftest*
|
|
12619 eval "ac_cv_header_$ac_safe=yes"
|
|
12620 else
|
|
12621 echo "$ac_err" >&5
|
|
12622 echo "configure: failed program was:" >&5
|
|
12623 cat conftest.$ac_ext >&5
|
|
12624 rm -rf conftest*
|
|
12625 eval "ac_cv_header_$ac_safe=no"
|
|
12626 fi
|
|
12627 rm -f conftest*
|
|
12628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12629 echo "$ac_t""yes" 1>&6
|
|
12630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12631 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12632 Defining $ac_tr_hdr
|
|
12633 EOF
|
|
12634 cat >> confdefs.h <<EOF
|
|
12635 #define $ac_tr_hdr 1
|
|
12636 EOF
|
|
12637 }
|
|
12638
|
|
12639 else
|
|
12640 echo "$ac_t""no" 1>&6
|
|
12641 fi
|
|
12642 done
|
|
12643
|
|
12644 else
|
|
12645 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
|
398
|
12646 echo " xemacs will be linked with \"getloadavg.o\""
|
|
12647 fi
|
|
12648
|
|
12649
|
|
12650 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
|
2048
|
12651 echo "configure:12652: checking for kstat_open in -lkstat" >&5
|
398
|
12652 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
|
|
12653
|
|
12654 xe_check_libs=" -lkstat "
|
|
12655 cat > conftest.$ac_ext <<EOF
|
2048
|
12656 #line 12657 "configure"
|
398
|
12657 #include "confdefs.h"
|
|
12658 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12659 /* We use char because int might match the return type of a gcc2
|
|
12660 builtin and then its argument prototype would still apply. */
|
|
12661 char kstat_open();
|
|
12662
|
|
12663 int main() {
|
|
12664 kstat_open()
|
|
12665 ; return 0; }
|
|
12666 EOF
|
2048
|
12667 if { (eval echo configure:12668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
12668 rm -rf conftest*
|
|
12669 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12670 else
|
|
12671 echo "configure: failed program was:" >&5
|
|
12672 cat conftest.$ac_ext >&5
|
|
12673 rm -rf conftest*
|
|
12674 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12675 fi
|
|
12676 rm -f conftest*
|
|
12677 xe_check_libs=""
|
|
12678
|
|
12679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
12680 echo "$ac_t""yes" 1>&6
|
|
12681 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
12682 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
369
|
12683 { test "$extra_verbose" = "yes" && cat << EOF
|
398
|
12684 Defining $ac_tr_lib
|
369
|
12685 EOF
|
|
12686 cat >> confdefs.h <<EOF
|
398
|
12687 #define $ac_tr_lib 1
|
|
12688 EOF
|
|
12689 }
|
|
12690
|
|
12691 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
|
|
12692
|
|
12693 else
|
|
12694 echo "$ac_t""no" 1>&6
|
|
12695 fi
|
|
12696
|
|
12697
|
442
|
12698 for ac_hdr in kstat.h
|
|
12699 do
|
|
12700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2048
|
12702 echo "configure:12703: checking for $ac_hdr" >&5
|
|
12703
|
|
12704 cat > conftest.$ac_ext <<EOF
|
|
12705 #line 12706 "configure"
|
442
|
12706 #include "confdefs.h"
|
|
12707 #include <$ac_hdr>
|
|
12708 EOF
|
|
12709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
12710 { (eval echo configure:12711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
12711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12712 if test -z "$ac_err"; then
|
|
12713 rm -rf conftest*
|
|
12714 eval "ac_cv_header_$ac_safe=yes"
|
|
12715 else
|
|
12716 echo "$ac_err" >&5
|
|
12717 echo "configure: failed program was:" >&5
|
|
12718 cat conftest.$ac_ext >&5
|
|
12719 rm -rf conftest*
|
|
12720 eval "ac_cv_header_$ac_safe=no"
|
|
12721 fi
|
|
12722 rm -f conftest*
|
|
12723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12724 echo "$ac_t""yes" 1>&6
|
|
12725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12726 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12727 Defining $ac_tr_hdr
|
|
12728 EOF
|
|
12729 cat >> confdefs.h <<EOF
|
|
12730 #define $ac_tr_hdr 1
|
|
12731 EOF
|
|
12732 }
|
|
12733
|
|
12734 else
|
|
12735 echo "$ac_t""no" 1>&6
|
|
12736 fi
|
|
12737 done
|
|
12738
|
398
|
12739
|
|
12740
|
|
12741 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
|
2048
|
12742 echo "configure:12743: checking for kvm_read in -lkvm" >&5
|
398
|
12743 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
|
|
12744
|
|
12745 xe_check_libs=" -lkvm "
|
|
12746 cat > conftest.$ac_ext <<EOF
|
2048
|
12747 #line 12748 "configure"
|
398
|
12748 #include "confdefs.h"
|
|
12749 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12750 /* We use char because int might match the return type of a gcc2
|
|
12751 builtin and then its argument prototype would still apply. */
|
|
12752 char kvm_read();
|
|
12753
|
|
12754 int main() {
|
|
12755 kvm_read()
|
|
12756 ; return 0; }
|
|
12757 EOF
|
2048
|
12758 if { (eval echo configure:12759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
12759 rm -rf conftest*
|
|
12760 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12761 else
|
|
12762 echo "configure: failed program was:" >&5
|
|
12763 cat conftest.$ac_ext >&5
|
|
12764 rm -rf conftest*
|
|
12765 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12766 fi
|
|
12767 rm -f conftest*
|
|
12768 xe_check_libs=""
|
|
12769
|
|
12770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
12771 echo "$ac_t""yes" 1>&6
|
|
12772 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
12773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
12774 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12775 Defining $ac_tr_lib
|
|
12776 EOF
|
|
12777 cat >> confdefs.h <<EOF
|
|
12778 #define $ac_tr_lib 1
|
|
12779 EOF
|
|
12780 }
|
|
12781
|
|
12782 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
|
|
12783
|
|
12784 else
|
|
12785 echo "$ac_t""no" 1>&6
|
|
12786 fi
|
|
12787
|
|
12788
|
|
12789 fi
|
151
|
12790
|
149
|
12791 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
|
2048
|
12792 echo "configure:12793: checking whether netdb declares h_errno" >&5
|
|
12793 cat > conftest.$ac_ext <<EOF
|
|
12794 #line 12795 "configure"
|
0
|
12795 #include "confdefs.h"
|
|
12796 #include <netdb.h>
|
149
|
12797 int main() {
|
|
12798 return h_errno;
|
|
12799 ; return 0; }
|
|
12800 EOF
|
2048
|
12801 if { (eval echo configure:12802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12802 rm -rf conftest*
|
|
12803 echo "$ac_t""yes" 1>&6
|
|
12804 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12805 Defining HAVE_H_ERRNO
|
|
12806 EOF
|
|
12807 cat >> confdefs.h <<\EOF
|
|
12808 #define HAVE_H_ERRNO 1
|
|
12809 EOF
|
|
12810 }
|
|
12811
|
|
12812 else
|
|
12813 echo "configure: failed program was:" >&5
|
|
12814 cat conftest.$ac_ext >&5
|
|
12815 rm -rf conftest*
|
|
12816 echo "$ac_t""no" 1>&6
|
|
12817 fi
|
|
12818 rm -f conftest*
|
|
12819
|
|
12820 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
2048
|
12821 echo "configure:12822: checking for sigsetjmp" >&5
|
|
12822 cat > conftest.$ac_ext <<EOF
|
|
12823 #line 12824 "configure"
|
0
|
12824 #include "confdefs.h"
|
|
12825 #include <setjmp.h>
|
149
|
12826 int main() {
|
|
12827 sigjmp_buf bar; sigsetjmp (bar, 0);
|
|
12828 ; return 0; }
|
|
12829 EOF
|
2048
|
12830 if { (eval echo configure:12831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
12831 rm -rf conftest*
|
|
12832 echo "$ac_t""yes" 1>&6
|
|
12833 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12834 Defining HAVE_SIGSETJMP
|
|
12835 EOF
|
|
12836 cat >> confdefs.h <<\EOF
|
|
12837 #define HAVE_SIGSETJMP 1
|
|
12838 EOF
|
|
12839 }
|
|
12840
|
|
12841 else
|
|
12842 echo "configure: failed program was:" >&5
|
|
12843 cat conftest.$ac_ext >&5
|
|
12844 rm -rf conftest*
|
|
12845 echo "$ac_t""no" 1>&6
|
|
12846 fi
|
|
12847 rm -f conftest*
|
|
12848
|
|
12849 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
|
2048
|
12850 echo "configure:12851: checking whether localtime caches TZ" >&5
|
149
|
12851
|
|
12852 if test "$ac_cv_func_tzset" = "yes"; then
|
|
12853 cat > conftest.$ac_ext <<EOF
|
2048
|
12854 #line 12855 "configure"
|
0
|
12855 #include "confdefs.h"
|
|
12856 #include <time.h>
|
149
|
12857 #if STDC_HEADERS
|
0
|
12858 # include <stdlib.h>
|
|
12859 #endif
|
|
12860 extern char **environ;
|
|
12861 unset_TZ ()
|
|
12862 {
|
|
12863 char **from, **to;
|
|
12864 for (to = from = environ; (*to = *from); from++)
|
|
12865 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
12866 to++;
|
|
12867 }
|
149
|
12868 char TZ_GMT0[] = "TZ=GMT0";
|
|
12869 char TZ_PST8[] = "TZ=PST8";
|
0
|
12870 main()
|
|
12871 {
|
|
12872 time_t now = time ((time_t *) 0);
|
|
12873 int hour_GMT0, hour_unset;
|
149
|
12874 if (putenv (TZ_GMT0) != 0)
|
0
|
12875 exit (1);
|
|
12876 hour_GMT0 = localtime (&now)->tm_hour;
|
|
12877 unset_TZ ();
|
|
12878 hour_unset = localtime (&now)->tm_hour;
|
149
|
12879 if (putenv (TZ_PST8) != 0)
|
0
|
12880 exit (1);
|
|
12881 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
12882 exit (1);
|
|
12883 unset_TZ ();
|
|
12884 if (localtime (&now)->tm_hour != hour_unset)
|
|
12885 exit (1);
|
|
12886 exit (0);
|
|
12887 }
|
|
12888 EOF
|
2048
|
12889 if { (eval echo configure:12890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
12890 then
|
0
|
12891 emacs_cv_localtime_cache=no
|
149
|
12892 else
|
373
|
12893 conftest_rc="$?"
|
149
|
12894 echo "configure: failed program was:" >&5
|
|
12895 cat conftest.$ac_ext >&5
|
|
12896 rm -fr conftest*
|
0
|
12897 emacs_cv_localtime_cache=yes
|
|
12898 fi
|
|
12899 rm -fr conftest*
|
149
|
12900 else
|
|
12901 # If we lack tzset, report that localtime does not cache TZ,
|
|
12902 # since we can't invalidate the cache if we don't have tzset.
|
|
12903 emacs_cv_localtime_cache=no
|
|
12904 fi
|
|
12905 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
|
|
12906 if test $emacs_cv_localtime_cache = yes; then
|
|
12907 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12908 Defining LOCALTIME_CACHE
|
|
12909 EOF
|
|
12910 cat >> confdefs.h <<\EOF
|
|
12911 #define LOCALTIME_CACHE 1
|
|
12912 EOF
|
|
12913 }
|
|
12914
|
|
12915 fi
|
|
12916
|
|
12917 if test "$HAVE_TIMEVAL" = "yes"; then
|
274
|
12918 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
|
2048
|
12919 echo "configure:12920: checking whether gettimeofday accepts one or two arguments" >&5
|
|
12920 cat > conftest.$ac_ext <<EOF
|
|
12921 #line 12922 "configure"
|
0
|
12922 #include "confdefs.h"
|
|
12923
|
|
12924 #ifdef TIME_WITH_SYS_TIME
|
|
12925 #include <sys/time.h>
|
|
12926 #include <time.h>
|
|
12927 #else
|
|
12928 #ifdef HAVE_SYS_TIME_H
|
|
12929 #include <sys/time.h>
|
|
12930 #else
|
|
12931 #include <time.h>
|
|
12932 #endif
|
|
12933 #endif
|
|
12934
|
149
|
12935 int main() {
|
|
12936
|
0
|
12937 struct timeval time;
|
442
|
12938 gettimeofday (&time, 0);
|
|
12939
|
|
12940 ; return 0; }
|
|
12941 EOF
|
2048
|
12942 if { (eval echo configure:12943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
274
|
12943 rm -rf conftest*
|
|
12944 echo "$ac_t""two" 1>&6
|
|
12945 else
|
|
12946 echo "configure: failed program was:" >&5
|
|
12947 cat conftest.$ac_ext >&5
|
|
12948 rm -rf conftest*
|
|
12949 echo "$ac_t""one" 1>&6
|
149
|
12950 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12951 Defining GETTIMEOFDAY_ONE_ARGUMENT
|
|
12952 EOF
|
|
12953 cat >> confdefs.h <<\EOF
|
|
12954 #define GETTIMEOFDAY_ONE_ARGUMENT 1
|
|
12955 EOF
|
|
12956 }
|
|
12957
|
|
12958 fi
|
|
12959 rm -f conftest*
|
|
12960 fi
|
|
12961
|
|
12962
|
|
12963 echo $ac_n "checking for inline""... $ac_c" 1>&6
|
2048
|
12964 echo "configure:12965: checking for inline" >&5
|
149
|
12965
|
|
12966 ac_cv_c_inline=no
|
|
12967 for ac_kw in inline __inline__ __inline; do
|
|
12968 cat > conftest.$ac_ext <<EOF
|
2048
|
12969 #line 12970 "configure"
|
744
|
12970 #include "confdefs.h"
|
|
12971
|
|
12972 int main() {
|
|
12973 } $ac_kw foo() {
|
|
12974 ; return 0; }
|
|
12975 EOF
|
2048
|
12976 if { (eval echo configure:12977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
12977 rm -rf conftest*
|
|
12978 ac_cv_c_inline=$ac_kw; break
|
|
12979 else
|
|
12980 echo "configure: failed program was:" >&5
|
|
12981 cat conftest.$ac_ext >&5
|
|
12982 fi
|
|
12983 rm -f conftest*
|
|
12984 done
|
|
12985
|
|
12986
|
|
12987 echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
12988 case "$ac_cv_c_inline" in
|
|
12989 inline | yes) ;;
|
|
12990 no) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12991 Defining inline =
|
|
12992 EOF
|
|
12993 cat >> confdefs.h <<\EOF
|
|
12994 #define inline
|
|
12995 EOF
|
|
12996 }
|
|
12997 ;;
|
|
12998 *) { test "$extra_verbose" = "yes" && cat << EOF
|
|
12999 Defining inline = $ac_cv_c_inline
|
|
13000 EOF
|
|
13001 cat >> confdefs.h <<EOF
|
|
13002 #define inline $ac_cv_c_inline
|
|
13003 EOF
|
|
13004 }
|
|
13005 ;;
|
|
13006 esac
|
|
13007
|
442
|
13008 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
|
155
|
13009 echo " xemacs will be linked with \"inline.o\""
|
|
13010 fi
|
149
|
13011
|
1800
|
13012 echo $ac_n "checking for typeof""... $ac_c" 1>&6
|
2048
|
13013 echo "configure:13014: checking for typeof" >&5
|
|
13014 cat > conftest.$ac_ext <<EOF
|
|
13015 #line 13016 "configure"
|
1800
|
13016 #include "confdefs.h"
|
|
13017
|
|
13018 int main() {
|
|
13019 int i; __typeof__(i) j;
|
|
13020 ; return 0; }
|
|
13021 EOF
|
2048
|
13022 if { (eval echo configure:13023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1800
|
13023 rm -rf conftest*
|
|
13024 typeofname="__typeof__"
|
|
13025 else
|
|
13026 echo "configure: failed program was:" >&5
|
|
13027 cat conftest.$ac_ext >&5
|
|
13028 rm -rf conftest*
|
|
13029 cat > conftest.$ac_ext <<EOF
|
2048
|
13030 #line 13031 "configure"
|
1800
|
13031 #include "confdefs.h"
|
|
13032
|
|
13033 int main() {
|
|
13034 int i; typeof(i) j;
|
|
13035 ; return 0; }
|
|
13036 EOF
|
2048
|
13037 if { (eval echo configure:13038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1800
|
13038 rm -rf conftest*
|
|
13039 typeofname="typeof"
|
|
13040 else
|
|
13041 echo "configure: failed program was:" >&5
|
|
13042 cat conftest.$ac_ext >&5
|
|
13043 rm -rf conftest*
|
|
13044 typeofname=no
|
|
13045 fi
|
|
13046 rm -f conftest*
|
|
13047 fi
|
|
13048 rm -f conftest*
|
|
13049 echo "$ac_t""$typeofname" 1>&6
|
|
13050 if test "$typeofname" != "no"; then
|
|
13051 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13052 Defining TYPEOF = $typeofname
|
|
13053 EOF
|
|
13054 cat >> confdefs.h <<EOF
|
|
13055 #define TYPEOF $typeofname
|
|
13056 EOF
|
|
13057 }
|
|
13058
|
|
13059 fi
|
|
13060
|
149
|
13061
|
444
|
13062 if test "$__DECC" != "yes"; then
|
|
13063 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
0
|
13064 # for constant arguments. Useless!
|
149
|
13065 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
2048
|
13066 echo "configure:13067: checking for working alloca.h" >&5
|
|
13067
|
|
13068 cat > conftest.$ac_ext <<EOF
|
|
13069 #line 13070 "configure"
|
0
|
13070 #include "confdefs.h"
|
|
13071 #include <alloca.h>
|
149
|
13072 int main() {
|
744
|
13073 char *p = alloca(2 * sizeof(int));
|
|
13074 ; return 0; }
|
|
13075 EOF
|
2048
|
13076 if { (eval echo configure:13077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13077 rm -rf conftest*
|
|
13078 ac_cv_header_alloca_h=yes
|
|
13079 else
|
|
13080 echo "configure: failed program was:" >&5
|
|
13081 cat conftest.$ac_ext >&5
|
|
13082 rm -rf conftest*
|
|
13083 ac_cv_header_alloca_h=no
|
|
13084 fi
|
|
13085 rm -f conftest*
|
|
13086
|
|
13087 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
13088 if test $ac_cv_header_alloca_h = yes; then
|
|
13089 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13090 Defining HAVE_ALLOCA_H
|
|
13091 EOF
|
|
13092 cat >> confdefs.h <<\EOF
|
|
13093 #define HAVE_ALLOCA_H 1
|
|
13094 EOF
|
|
13095 }
|
|
13096
|
|
13097 fi
|
|
13098
|
|
13099 echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
2048
|
13100 echo "configure:13101: checking for alloca" >&5
|
|
13101
|
|
13102 cat > conftest.$ac_ext <<EOF
|
|
13103 #line 13104 "configure"
|
149
|
13104 #include "confdefs.h"
|
|
13105
|
|
13106 #ifdef __GNUC__
|
|
13107 # define alloca __builtin_alloca
|
0
|
13108 #else
|
420
|
13109 # ifdef _MSC_VER
|
|
13110 # include <malloc.h>
|
|
13111 # define alloca _alloca
|
149
|
13112 # else
|
420
|
13113 # if HAVE_ALLOCA_H
|
|
13114 # include <alloca.h>
|
149
|
13115 # else
|
420
|
13116 # ifdef _AIX
|
|
13117 #pragma alloca
|
|
13118 # else
|
|
13119 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
149
|
13120 char *alloca ();
|
420
|
13121 # endif
|
149
|
13122 # endif
|
|
13123 # endif
|
|
13124 # endif
|
0
|
13125 #endif
|
149
|
13126
|
|
13127 int main() {
|
|
13128 char *p = (char *) alloca(1);
|
0
|
13129 ; return 0; }
|
|
13130 EOF
|
2048
|
13131 if { (eval echo configure:13132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13132 rm -rf conftest*
|
|
13133 ac_cv_func_alloca_works=yes
|
|
13134 else
|
|
13135 echo "configure: failed program was:" >&5
|
|
13136 cat conftest.$ac_ext >&5
|
|
13137 rm -rf conftest*
|
|
13138 ac_cv_func_alloca_works=no
|
|
13139 fi
|
|
13140 rm -f conftest*
|
|
13141
|
|
13142 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
13143 if test $ac_cv_func_alloca_works = yes; then
|
|
13144 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13145 Defining HAVE_ALLOCA
|
|
13146 EOF
|
|
13147 cat >> confdefs.h <<\EOF
|
|
13148 #define HAVE_ALLOCA 1
|
|
13149 EOF
|
|
13150 }
|
|
13151
|
|
13152 fi
|
|
13153
|
|
13154 if test $ac_cv_func_alloca_works = no; then
|
0
|
13155 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
13156 # that cause trouble. Some versions do not even contain alloca or
|
|
13157 # contain a buggy version. If you still want to use their alloca,
|
|
13158 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
420
|
13159 ALLOCA=alloca.${ac_objext}
|
149
|
13160 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13161 Defining C_ALLOCA
|
|
13162 EOF
|
|
13163 cat >> confdefs.h <<\EOF
|
|
13164 #define C_ALLOCA 1
|
|
13165 EOF
|
|
13166 }
|
|
13167
|
|
13168
|
|
13169 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
2048
|
13170 echo "configure:13171: checking whether alloca needs Cray hooks" >&5
|
|
13171
|
|
13172 cat > conftest.$ac_ext <<EOF
|
|
13173 #line 13174 "configure"
|
149
|
13174 #include "confdefs.h"
|
|
13175 #if defined(CRAY) && ! defined(CRAY2)
|
|
13176 webecray
|
|
13177 #else
|
|
13178 wenotbecray
|
|
13179 #endif
|
|
13180
|
|
13181 EOF
|
|
13182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
13183 egrep "webecray" >/dev/null 2>&1; then
|
|
13184 rm -rf conftest*
|
|
13185 ac_cv_os_cray=yes
|
|
13186 else
|
|
13187 rm -rf conftest*
|
|
13188 ac_cv_os_cray=no
|
|
13189 fi
|
|
13190 rm -f conftest*
|
|
13191
|
|
13192
|
|
13193 echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
13194 if test $ac_cv_os_cray = yes; then
|
|
13195 for ac_func in _getb67 GETB67 getb67; do
|
|
13196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
13197 echo "configure:13198: checking for $ac_func" >&5
|
|
13198
|
|
13199 cat > conftest.$ac_ext <<EOF
|
|
13200 #line 13201 "configure"
|
149
|
13201 #include "confdefs.h"
|
|
13202 /* System header to define __stub macros and hopefully few prototypes,
|
|
13203 which can conflict with char $ac_func(); below. */
|
|
13204 #include <assert.h>
|
|
13205 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13206 /* We use char because int might match the return type of a gcc2
|
|
13207 builtin and then its argument prototype would still apply. */
|
|
13208 char $ac_func();
|
|
13209
|
|
13210 int main() {
|
|
13211
|
|
13212 /* The GNU C library defines this for functions which it implements
|
|
13213 to always fail with ENOSYS. Some functions are actually named
|
|
13214 something starting with __ and the normal name is an alias. */
|
|
13215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
13216 choke me
|
|
13217 #else
|
|
13218 $ac_func();
|
|
13219 #endif
|
|
13220
|
|
13221 ; return 0; }
|
|
13222 EOF
|
2048
|
13223 if { (eval echo configure:13224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13224 rm -rf conftest*
|
|
13225 eval "ac_cv_func_$ac_func=yes"
|
|
13226 else
|
|
13227 echo "configure: failed program was:" >&5
|
|
13228 cat conftest.$ac_ext >&5
|
|
13229 rm -rf conftest*
|
|
13230 eval "ac_cv_func_$ac_func=no"
|
|
13231 fi
|
|
13232 rm -f conftest*
|
|
13233
|
|
13234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
13235 echo "$ac_t""yes" 1>&6
|
|
13236 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13237 Defining CRAY_STACKSEG_END = $ac_func
|
|
13238 EOF
|
|
13239 cat >> confdefs.h <<EOF
|
|
13240 #define CRAY_STACKSEG_END $ac_func
|
|
13241 EOF
|
|
13242 }
|
|
13243
|
|
13244 break
|
|
13245 else
|
|
13246 echo "$ac_t""no" 1>&6
|
|
13247 fi
|
|
13248
|
|
13249 done
|
|
13250 fi
|
|
13251
|
|
13252 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
2048
|
13253 echo "configure:13254: checking stack direction for C alloca" >&5
|
|
13254
|
|
13255 cat > conftest.$ac_ext <<EOF
|
|
13256 #line 13257 "configure"
|
0
|
13257 #include "confdefs.h"
|
|
13258 find_stack_direction ()
|
|
13259 {
|
|
13260 static char *addr = 0;
|
|
13261 auto char dummy;
|
|
13262 if (addr == 0)
|
|
13263 {
|
|
13264 addr = &dummy;
|
|
13265 return find_stack_direction ();
|
|
13266 }
|
|
13267 else
|
|
13268 return (&dummy > addr) ? 1 : -1;
|
|
13269 }
|
|
13270 main ()
|
|
13271 {
|
|
13272 exit (find_stack_direction() < 0);
|
|
13273 }
|
|
13274 EOF
|
2048
|
13275 if { (eval echo configure:13276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
13276 then
|
|
13277 ac_cv_c_stack_direction=1
|
|
13278 else
|
373
|
13279 conftest_rc="$?"
|
149
|
13280 echo "configure: failed program was:" >&5
|
|
13281 cat conftest.$ac_ext >&5
|
|
13282 rm -fr conftest*
|
|
13283 ac_cv_c_stack_direction=-1
|
0
|
13284 fi
|
|
13285 rm -fr conftest*
|
149
|
13286
|
|
13287 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
13288 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13289 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
|
|
13290 EOF
|
|
13291 cat >> confdefs.h <<EOF
|
|
13292 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
13293 EOF
|
|
13294 }
|
|
13295
|
|
13296 fi
|
|
13297
|
444
|
13298 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
|
151
|
13299 echo " xemacs will be linked with \"$ALLOCA\""
|
|
13300 fi
|
444
|
13301 fi
|
149
|
13302
|
1332
|
13303 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6
|
2048
|
13304 echo "configure:13305: checking for working alloca in function calls" >&5
|
|
13305 cat > conftest.$ac_ext <<EOF
|
|
13306 #line 13307 "configure"
|
1332
|
13307 #include "confdefs.h"
|
|
13308
|
|
13309 #if defined (__CYGWIN__)
|
|
13310 #include <alloca.h>
|
|
13311 #elif defined (__GNUC__)
|
|
13312 #define alloca __builtin_alloca
|
|
13313 #elif defined (__DECC)
|
|
13314 #include <alloca.h>
|
|
13315 #pragma intrinsic(alloca)
|
|
13316 #elif defined (HAVE_ALLOCA_H)
|
|
13317 #include <alloca.h>
|
|
13318 #elif defined (_AIX)
|
|
13319 #pragma alloca
|
|
13320 #elif ! defined (alloca)
|
|
13321 #ifdef C_ALLOCA
|
|
13322 #define alloca xemacs_c_alloca
|
|
13323 #else
|
|
13324 void *alloca ();
|
|
13325 #endif /* C_ALLOCA */
|
|
13326 #endif /* !defined (alloca) */
|
|
13327
|
|
13328 void
|
|
13329 f1 (double a, void *ptr, int b)
|
|
13330 {
|
|
13331 unsigned char *ptr2 = (unsigned char *) ptr;
|
|
13332 if (ptr2[0] != 0xBF || ptr2[1] != 0xBF || ptr2[3000] != 0xBF)
|
|
13333 exit (1);
|
|
13334 if (a != 3.1415 || b != -5490)
|
|
13335 exit (1);
|
|
13336 }
|
|
13337
|
|
13338 int
|
|
13339 f2 (short c, void *ptr, long e)
|
|
13340 {
|
|
13341 unsigned char *ptr2 = (unsigned char *) ptr;
|
|
13342 if (ptr2[0] != 0xFB || ptr2[1] != 0xFB || ptr2[1000] != 0xFB)
|
|
13343 exit (1);
|
|
13344 if (c != 665 || e != 776776776)
|
|
13345 exit (1);
|
|
13346 f1 (3.1415, memset (alloca (3001), 0xBF, 3001), -5490);
|
|
13347 return 42;
|
|
13348 }
|
|
13349
|
|
13350 int
|
|
13351 main (int argc, char *argv[])
|
|
13352 {
|
|
13353 if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42)
|
|
13354 return 1;
|
|
13355 return 0;
|
|
13356 }
|
|
13357
|
|
13358 EOF
|
2048
|
13359 if { (eval echo configure:13360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
1332
|
13360 then
|
|
13361 working_alloca_in_function_calls=yes
|
|
13362 else
|
|
13363 conftest_rc="$?"
|
|
13364 echo "configure: failed program was:" >&5
|
|
13365 cat conftest.$ac_ext >&5
|
|
13366 rm -fr conftest*
|
|
13367 working_alloca_in_function_calls=no
|
|
13368 fi
|
|
13369 rm -fr conftest*
|
|
13370 echo "$ac_t""$working_alloca_in_function_calls" 1>&6
|
|
13371 test "$working_alloca_in_function_calls" != "yes" && \
|
|
13372 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13373 Defining BROKEN_ALLOCA_IN_FUNCTION_CALLS
|
|
13374 EOF
|
|
13375 cat >> confdefs.h <<\EOF
|
|
13376 #define BROKEN_ALLOCA_IN_FUNCTION_CALLS 1
|
|
13377 EOF
|
|
13378 }
|
|
13379
|
|
13380
|
149
|
13381 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
|
2048
|
13382 echo "configure:13383: checking for working strcoll" >&5
|
|
13383
|
|
13384 cat > conftest.$ac_ext <<EOF
|
|
13385 #line 13386 "configure"
|
0
|
13386 #include "confdefs.h"
|
|
13387 #include <string.h>
|
|
13388 main ()
|
|
13389 {
|
|
13390 exit (strcoll ("abc", "def") >= 0 ||
|
|
13391 strcoll ("ABC", "DEF") >= 0 ||
|
|
13392 strcoll ("123", "456") >= 0);
|
|
13393 }
|
|
13394 EOF
|
2048
|
13395 if { (eval echo configure:13396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
13396 then
|
|
13397 ac_cv_func_strcoll_works=yes
|
|
13398 else
|
373
|
13399 conftest_rc="$?"
|
149
|
13400 echo "configure: failed program was:" >&5
|
|
13401 cat conftest.$ac_ext >&5
|
|
13402 rm -fr conftest*
|
|
13403 ac_cv_func_strcoll_works=no
|
0
|
13404 fi
|
|
13405 rm -fr conftest*
|
|
13406
|
149
|
13407 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
|
|
13408 if test $ac_cv_func_strcoll_works = yes; then
|
|
13409 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13410 Defining HAVE_STRCOLL
|
|
13411 EOF
|
|
13412 cat >> confdefs.h <<\EOF
|
|
13413 #define HAVE_STRCOLL 1
|
|
13414 EOF
|
|
13415 }
|
|
13416
|
|
13417 fi
|
|
13418
|
|
13419
|
163
|
13420 for ac_func in getpgrp
|
|
13421 do
|
|
13422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2048
|
13423 echo "configure:13424: checking for $ac_func" >&5
|
|
13424
|
|
13425 cat > conftest.$ac_ext <<EOF
|
|
13426 #line 13427 "configure"
|
163
|
13427 #include "confdefs.h"
|
|
13428 /* System header to define __stub macros and hopefully few prototypes,
|
|
13429 which can conflict with char $ac_func(); below. */
|
|
13430 #include <assert.h>
|
|
13431 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13432 /* We use char because int might match the return type of a gcc2
|
|
13433 builtin and then its argument prototype would still apply. */
|
|
13434 char $ac_func();
|
|
13435
|
|
13436 int main() {
|
|
13437
|
|
13438 /* The GNU C library defines this for functions which it implements
|
|
13439 to always fail with ENOSYS. Some functions are actually named
|
|
13440 something starting with __ and the normal name is an alias. */
|
|
13441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
13442 choke me
|
|
13443 #else
|
|
13444 $ac_func();
|
|
13445 #endif
|
|
13446
|
|
13447 ; return 0; }
|
|
13448 EOF
|
2048
|
13449 if { (eval echo configure:13450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
163
|
13450 rm -rf conftest*
|
|
13451 eval "ac_cv_func_$ac_func=yes"
|
|
13452 else
|
|
13453 echo "configure: failed program was:" >&5
|
|
13454 cat conftest.$ac_ext >&5
|
|
13455 rm -rf conftest*
|
|
13456 eval "ac_cv_func_$ac_func=no"
|
|
13457 fi
|
|
13458 rm -f conftest*
|
|
13459
|
|
13460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
13461 echo "$ac_t""yes" 1>&6
|
|
13462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
13463 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13464 Defining $ac_tr_func
|
|
13465 EOF
|
|
13466 cat >> confdefs.h <<EOF
|
|
13467 #define $ac_tr_func 1
|
|
13468 EOF
|
|
13469 }
|
|
13470
|
|
13471 else
|
|
13472 echo "$ac_t""no" 1>&6
|
|
13473 fi
|
|
13474 done
|
|
13475
|
|
13476 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
|
2048
|
13477 echo "configure:13478: checking whether getpgrp takes no argument" >&5
|
|
13478
|
|
13479 cat > conftest.$ac_ext <<EOF
|
|
13480 #line 13481 "configure"
|
163
|
13481 #include "confdefs.h"
|
|
13482
|
|
13483 /*
|
|
13484 * If this system has a BSD-style getpgrp(),
|
|
13485 * which takes a pid argument, exit unsuccessfully.
|
|
13486 *
|
|
13487 * Snarfed from Chet Ramey's bash pgrp.c test program
|
|
13488 */
|
|
13489 #include <stdio.h>
|
|
13490 #include <sys/types.h>
|
|
13491
|
|
13492 int pid;
|
|
13493 int pg1, pg2, pg3, pg4;
|
|
13494 int ng, np, s, child;
|
|
13495
|
|
13496 main()
|
|
13497 {
|
|
13498 pid = getpid();
|
|
13499 pg1 = getpgrp(0);
|
|
13500 pg2 = getpgrp();
|
|
13501 pg3 = getpgrp(pid);
|
|
13502 pg4 = getpgrp(1);
|
|
13503
|
|
13504 /*
|
|
13505 * If all of these values are the same, it's pretty sure that
|
|
13506 * we're on a system that ignores getpgrp's first argument.
|
|
13507 */
|
|
13508 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
|
|
13509 exit(0);
|
|
13510
|
|
13511 child = fork();
|
|
13512 if (child < 0)
|
|
13513 exit(1);
|
|
13514 else if (child == 0) {
|
|
13515 np = getpid();
|
|
13516 /*
|
|
13517 * If this is Sys V, this will not work; pgrp will be
|
|
13518 * set to np because setpgrp just changes a pgrp to be
|
|
13519 * the same as the pid.
|
|
13520 */
|
|
13521 setpgrp(np, pg1);
|
|
13522 ng = getpgrp(0); /* Same result for Sys V and BSD */
|
|
13523 if (ng == pg1) {
|
|
13524 exit(1);
|
|
13525 } else {
|
|
13526 exit(0);
|
|
13527 }
|
|
13528 } else {
|
|
13529 wait(&s);
|
|
13530 exit(s>>8);
|
|
13531 }
|
|
13532 }
|
|
13533
|
|
13534 EOF
|
2048
|
13535 if { (eval echo configure:13536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
13536 then
|
|
13537 ac_cv_func_getpgrp_void=yes
|
|
13538 else
|
373
|
13539 conftest_rc="$?"
|
163
|
13540 echo "configure: failed program was:" >&5
|
|
13541 cat conftest.$ac_ext >&5
|
|
13542 rm -fr conftest*
|
|
13543 ac_cv_func_getpgrp_void=no
|
|
13544 fi
|
|
13545 rm -fr conftest*
|
|
13546
|
|
13547
|
|
13548 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
|
|
13549 if test $ac_cv_func_getpgrp_void = yes; then
|
|
13550 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13551 Defining GETPGRP_VOID
|
|
13552 EOF
|
|
13553 cat >> confdefs.h <<\EOF
|
|
13554 #define GETPGRP_VOID 1
|
|
13555 EOF
|
|
13556 }
|
|
13557
|
|
13558 fi
|
|
13559
|
|
13560
|
149
|
13561 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
2048
|
13562 echo "configure:13563: checking for working mmap" >&5
|
155
|
13563 case "$opsys" in ultrix* ) have_mmap=no ;; *)
|
|
13564 cat > conftest.$ac_ext <<EOF
|
2048
|
13565 #line 13566 "configure"
|
153
|
13566 #include "confdefs.h"
|
|
13567 #include <stdio.h>
|
|
13568 #include <unistd.h>
|
149
|
13569 #include <fcntl.h>
|
|
13570 #include <sys/mman.h>
|
|
13571
|
153
|
13572 #ifndef MAP_VARIABLE
|
|
13573 #define MAP_VARIABLE 0
|
0
|
13574 #endif
|
149
|
13575
|
153
|
13576 #ifndef MAP_FAILED
|
|
13577 #define MAP_FAILED -1
|
|
13578 #endif
|
|
13579
|
|
13580 int main (int argc, char *argv[])
|
0
|
13581 {
|
153
|
13582 int fd = -1;
|
|
13583 caddr_t p;
|
|
13584 #ifndef MAP_ANONYMOUS
|
|
13585 fd = open ("/dev/zero", O_RDWR);
|
|
13586 if (fd < 0)
|
|
13587 return 1;
|
|
13588 #define MAP_ANONYMOUS 0
|
|
13589 #endif
|
|
13590 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
|
|
13591 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
|
|
13592 fd, 0) != (void *) MAP_FAILED)
|
|
13593 return 0;
|
|
13594 perror ("conftest: mmap failed");
|
|
13595 return 1;
|
|
13596 }
|
|
13597 EOF
|
2048
|
13598 if { (eval echo configure:13599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
13599 then
|
153
|
13600 have_mmap=yes
|
149
|
13601 else
|
373
|
13602 conftest_rc="$?"
|
149
|
13603 echo "configure: failed program was:" >&5
|
|
13604 cat conftest.$ac_ext >&5
|
|
13605 rm -fr conftest*
|
153
|
13606 have_mmap=no
|
149
|
13607 fi
|
155
|
13608 rm -fr conftest* ;;
|
|
13609 esac
|
153
|
13610 echo "$ac_t""$have_mmap" 1>&6
|
|
13611 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
13612 Defining HAVE_MMAP
|
|
13613 EOF
|
|
13614 cat >> confdefs.h <<\EOF
|
|
13615 #define HAVE_MMAP 1
|
|
13616 EOF
|
|
13617 }
|
|
13618
|
412
|
13619
|
535
|
13620 case "$opsys" in cygwin*)
|
462
|
13621 test "$rel_alloc" = "default" && rel_alloc=no ;;
|
|
13622 esac
|
442
|
13623 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
|
|
13624 if test "$rel_alloc $have_mmap" = "default yes"; then
|
|
13625 if test "$doug_lea_malloc" = "yes"; then
|
|
13626 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
|
2048
|
13627 echo "configure:13628: checking for M_MMAP_THRESHOLD" >&5
|
442
|
13628 cat > conftest.$ac_ext <<EOF
|
2048
|
13629 #line 13630 "configure"
|
442
|
13630 #include "confdefs.h"
|
|
13631 #include <malloc.h>
|
|
13632 int main() {
|
|
13633
|
|
13634 #ifndef M_MMAP_THRESHOLD
|
|
13635 #error No M_MMAP_THRESHOLD :-(
|
|
13636 !@+$%^&*_)(_ - unlikely to compile...
|
|
13637 #endif
|
|
13638
|
|
13639 ; return 0; }
|
|
13640 EOF
|
2048
|
13641 if { (eval echo configure:13642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
13642 rm -rf conftest*
|
|
13643 rel_alloc=no; echo "$ac_t""yes" 1>&6;
|
|
13644 else
|
|
13645 echo "configure: failed program was:" >&5
|
|
13646 cat conftest.$ac_ext >&5
|
|
13647 rm -rf conftest*
|
|
13648 rel_alloc=yes; echo "$ac_t""no" 1>&6;
|
|
13649 fi
|
|
13650 rm -f conftest*
|
|
13651 else
|
|
13652 rel_alloc=yes
|
|
13653 fi
|
|
13654 fi
|
149
|
13655 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13656 Defining REL_ALLOC
|
|
13657 EOF
|
|
13658 cat >> confdefs.h <<\EOF
|
|
13659 #define REL_ALLOC 1
|
|
13660 EOF
|
|
13661 }
|
|
13662
|
|
13663
|
175
|
13664 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
|
|
13665 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
|
2048
|
13666 echo "configure:13667: checking for termios.h" >&5
|
|
13667
|
|
13668 cat > conftest.$ac_ext <<EOF
|
|
13669 #line 13670 "configure"
|
175
|
13670 #include "confdefs.h"
|
|
13671 #include <termios.h>
|
|
13672 EOF
|
|
13673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
13674 { (eval echo configure:13675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
175
|
13676 if test -z "$ac_err"; then
|
|
13677 rm -rf conftest*
|
|
13678 eval "ac_cv_header_$ac_safe=yes"
|
|
13679 else
|
|
13680 echo "$ac_err" >&5
|
|
13681 echo "configure: failed program was:" >&5
|
|
13682 cat conftest.$ac_ext >&5
|
|
13683 rm -rf conftest*
|
|
13684 eval "ac_cv_header_$ac_safe=no"
|
|
13685 fi
|
|
13686 rm -f conftest*
|
|
13687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13688 echo "$ac_t""yes" 1>&6
|
|
13689 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13690 Defining HAVE_TERMIOS
|
|
13691 EOF
|
|
13692 cat >> confdefs.h <<\EOF
|
|
13693 #define HAVE_TERMIOS 1
|
|
13694 EOF
|
|
13695 }
|
|
13696
|
|
13697 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13698 Defining SIGNALS_VIA_CHARACTERS
|
|
13699 EOF
|
|
13700 cat >> confdefs.h <<\EOF
|
|
13701 #define SIGNALS_VIA_CHARACTERS 1
|
|
13702 EOF
|
|
13703 }
|
|
13704
|
|
13705 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13706 Defining NO_TERMIO
|
|
13707 EOF
|
|
13708 cat >> confdefs.h <<\EOF
|
|
13709 #define NO_TERMIO 1
|
|
13710 EOF
|
|
13711 }
|
|
13712
|
|
13713 else
|
|
13714 echo "$ac_t""no" 1>&6
|
|
13715 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
|
|
13716 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
|
2048
|
13717 echo "configure:13718: checking for termio.h" >&5
|
|
13718
|
|
13719 cat > conftest.$ac_ext <<EOF
|
|
13720 #line 13721 "configure"
|
175
|
13721 #include "confdefs.h"
|
|
13722 #include <termio.h>
|
|
13723 EOF
|
|
13724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
13725 { (eval echo configure:13726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
175
|
13727 if test -z "$ac_err"; then
|
|
13728 rm -rf conftest*
|
|
13729 eval "ac_cv_header_$ac_safe=yes"
|
|
13730 else
|
|
13731 echo "$ac_err" >&5
|
|
13732 echo "configure: failed program was:" >&5
|
|
13733 cat conftest.$ac_ext >&5
|
|
13734 rm -rf conftest*
|
|
13735 eval "ac_cv_header_$ac_safe=no"
|
|
13736 fi
|
|
13737 rm -f conftest*
|
|
13738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13739 echo "$ac_t""yes" 1>&6
|
|
13740 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13741 Defining HAVE_TERMIO
|
|
13742 EOF
|
|
13743 cat >> confdefs.h <<\EOF
|
|
13744 #define HAVE_TERMIO 1
|
|
13745 EOF
|
|
13746 }
|
|
13747
|
|
13748 else
|
|
13749 echo "$ac_t""no" 1>&6
|
|
13750 fi
|
|
13751
|
|
13752 fi
|
|
13753
|
|
13754
|
|
13755
|
149
|
13756 echo $ac_n "checking for socket""... $ac_c" 1>&6
|
2048
|
13757 echo "configure:13758: checking for socket" >&5
|
|
13758
|
|
13759 cat > conftest.$ac_ext <<EOF
|
|
13760 #line 13761 "configure"
|
149
|
13761 #include "confdefs.h"
|
|
13762 /* System header to define __stub macros and hopefully few prototypes,
|
|
13763 which can conflict with char socket(); below. */
|
|
13764 #include <assert.h>
|
|
13765 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13766 /* We use char because int might match the return type of a gcc2
|
|
13767 builtin and then its argument prototype would still apply. */
|
|
13768 char socket();
|
|
13769
|
|
13770 int main() {
|
|
13771
|
0
|
13772 /* The GNU C library defines this for functions which it implements
|
|
13773 to always fail with ENOSYS. Some functions are actually named
|
|
13774 something starting with __ and the normal name is an alias. */
|
|
13775 #if defined (__stub_socket) || defined (__stub___socket)
|
|
13776 choke me
|
|
13777 #else
|
149
|
13778 socket();
|
0
|
13779 #endif
|
149
|
13780
|
0
|
13781 ; return 0; }
|
|
13782 EOF
|
2048
|
13783 if { (eval echo configure:13784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13784 rm -rf conftest*
|
|
13785 eval "ac_cv_func_socket=yes"
|
|
13786 else
|
|
13787 echo "configure: failed program was:" >&5
|
|
13788 cat conftest.$ac_ext >&5
|
|
13789 rm -rf conftest*
|
|
13790 eval "ac_cv_func_socket=no"
|
|
13791 fi
|
|
13792 rm -f conftest*
|
|
13793
|
|
13794 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
|
|
13795 echo "$ac_t""yes" 1>&6
|
|
13796 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
|
|
13797 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
|
2048
|
13798 echo "configure:13799: checking for netinet/in.h" >&5
|
|
13799
|
|
13800 cat > conftest.$ac_ext <<EOF
|
|
13801 #line 13802 "configure"
|
0
|
13802 #include "confdefs.h"
|
|
13803 #include <netinet/in.h>
|
|
13804 EOF
|
149
|
13805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
13806 { (eval echo configure:13807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13808 if test -z "$ac_err"; then
|
149
|
13809 rm -rf conftest*
|
|
13810 eval "ac_cv_header_$ac_safe=yes"
|
|
13811 else
|
|
13812 echo "$ac_err" >&5
|
|
13813 echo "configure: failed program was:" >&5
|
|
13814 cat conftest.$ac_ext >&5
|
|
13815 rm -rf conftest*
|
|
13816 eval "ac_cv_header_$ac_safe=no"
|
|
13817 fi
|
|
13818 rm -f conftest*
|
|
13819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13820 echo "$ac_t""yes" 1>&6
|
|
13821 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
|
|
13822 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
|
2048
|
13823 echo "configure:13824: checking for arpa/inet.h" >&5
|
|
13824
|
|
13825 cat > conftest.$ac_ext <<EOF
|
|
13826 #line 13827 "configure"
|
0
|
13827 #include "confdefs.h"
|
|
13828 #include <arpa/inet.h>
|
|
13829 EOF
|
149
|
13830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
13831 { (eval echo configure:13832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13833 if test -z "$ac_err"; then
|
149
|
13834 rm -rf conftest*
|
|
13835 eval "ac_cv_header_$ac_safe=yes"
|
|
13836 else
|
|
13837 echo "$ac_err" >&5
|
|
13838 echo "configure: failed program was:" >&5
|
|
13839 cat conftest.$ac_ext >&5
|
|
13840 rm -rf conftest*
|
|
13841 eval "ac_cv_header_$ac_safe=no"
|
|
13842 fi
|
|
13843 rm -f conftest*
|
|
13844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13845 echo "$ac_t""yes" 1>&6
|
0
|
13846
|
149
|
13847 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13848 Defining HAVE_SOCKETS
|
|
13849 EOF
|
|
13850 cat >> confdefs.h <<\EOF
|
|
13851 #define HAVE_SOCKETS 1
|
|
13852 EOF
|
|
13853 }
|
|
13854
|
|
13855 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
|
2048
|
13856 echo "configure:13857: checking "for sun_len member in struct sockaddr_un"" >&5
|
149
|
13857 cat > conftest.$ac_ext <<EOF
|
2048
|
13858 #line 13859 "configure"
|
149
|
13859 #include "confdefs.h"
|
|
13860
|
0
|
13861 #include <sys/types.h>
|
149
|
13862 #include <sys/socket.h>
|
|
13863 #include <sys/un.h>
|
|
13864
|
|
13865 int main() {
|
|
13866 static struct sockaddr_un x; x.sun_len = 1;
|
|
13867 ; return 0; }
|
|
13868 EOF
|
2048
|
13869 if { (eval echo configure:13870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13870 rm -rf conftest*
|
|
13871 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13872 Defining HAVE_SOCKADDR_SUN_LEN
|
|
13873 EOF
|
|
13874 cat >> confdefs.h <<\EOF
|
|
13875 #define HAVE_SOCKADDR_SUN_LEN 1
|
|
13876 EOF
|
|
13877 }
|
|
13878
|
|
13879 else
|
|
13880 echo "configure: failed program was:" >&5
|
|
13881 cat conftest.$ac_ext >&5
|
|
13882 rm -rf conftest*
|
|
13883 echo "$ac_t""no" 1>&6
|
|
13884 fi
|
|
13885 rm -f conftest*
|
259
|
13886 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
|
2048
|
13887 echo "configure:13888: checking "for ip_mreq struct in netinet/in.h"" >&5
|
259
|
13888 cat > conftest.$ac_ext <<EOF
|
2048
|
13889 #line 13890 "configure"
|
284
|
13890 #include "confdefs.h"
|
|
13891
|
|
13892 #include <sys/types.h>
|
259
|
13893 #include <netinet/in.h>
|
|
13894
|
|
13895 int main() {
|
|
13896 static struct ip_mreq x;
|
|
13897 ; return 0; }
|
|
13898 EOF
|
2048
|
13899 if { (eval echo configure:13900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
13900 rm -rf conftest*
|
|
13901 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13902 Defining HAVE_MULTICAST
|
|
13903 EOF
|
|
13904 cat >> confdefs.h <<\EOF
|
|
13905 #define HAVE_MULTICAST 1
|
|
13906 EOF
|
|
13907 }
|
|
13908
|
|
13909 else
|
|
13910 echo "configure: failed program was:" >&5
|
|
13911 cat conftest.$ac_ext >&5
|
|
13912 rm -rf conftest*
|
|
13913 echo "$ac_t""no" 1>&6
|
|
13914 fi
|
|
13915 rm -f conftest*
|
149
|
13916 else
|
|
13917 echo "$ac_t""no" 1>&6
|
|
13918 fi
|
|
13919
|
|
13920 else
|
|
13921 echo "$ac_t""no" 1>&6
|
|
13922 fi
|
|
13923
|
|
13924 else
|
|
13925 echo "$ac_t""no" 1>&6
|
|
13926 fi
|
|
13927
|
|
13928
|
|
13929 echo $ac_n "checking for msgget""... $ac_c" 1>&6
|
2048
|
13930 echo "configure:13931: checking for msgget" >&5
|
|
13931
|
|
13932 cat > conftest.$ac_ext <<EOF
|
|
13933 #line 13934 "configure"
|
149
|
13934 #include "confdefs.h"
|
|
13935 /* System header to define __stub macros and hopefully few prototypes,
|
|
13936 which can conflict with char msgget(); below. */
|
|
13937 #include <assert.h>
|
|
13938 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13939 /* We use char because int might match the return type of a gcc2
|
|
13940 builtin and then its argument prototype would still apply. */
|
|
13941 char msgget();
|
|
13942
|
|
13943 int main() {
|
|
13944
|
0
|
13945 /* The GNU C library defines this for functions which it implements
|
|
13946 to always fail with ENOSYS. Some functions are actually named
|
|
13947 something starting with __ and the normal name is an alias. */
|
|
13948 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
13949 choke me
|
|
13950 #else
|
149
|
13951 msgget();
|
0
|
13952 #endif
|
149
|
13953
|
0
|
13954 ; return 0; }
|
|
13955 EOF
|
2048
|
13956 if { (eval echo configure:13957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13957 rm -rf conftest*
|
|
13958 eval "ac_cv_func_msgget=yes"
|
|
13959 else
|
|
13960 echo "configure: failed program was:" >&5
|
|
13961 cat conftest.$ac_ext >&5
|
|
13962 rm -rf conftest*
|
|
13963 eval "ac_cv_func_msgget=no"
|
|
13964 fi
|
|
13965 rm -f conftest*
|
|
13966
|
|
13967 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
|
|
13968 echo "$ac_t""yes" 1>&6
|
|
13969 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
|
|
13970 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
|
2048
|
13971 echo "configure:13972: checking for sys/ipc.h" >&5
|
|
13972
|
|
13973 cat > conftest.$ac_ext <<EOF
|
|
13974 #line 13975 "configure"
|
0
|
13975 #include "confdefs.h"
|
|
13976 #include <sys/ipc.h>
|
|
13977 EOF
|
149
|
13978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
13979 { (eval echo configure:13980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13981 if test -z "$ac_err"; then
|
149
|
13982 rm -rf conftest*
|
|
13983 eval "ac_cv_header_$ac_safe=yes"
|
|
13984 else
|
|
13985 echo "$ac_err" >&5
|
|
13986 echo "configure: failed program was:" >&5
|
|
13987 cat conftest.$ac_ext >&5
|
|
13988 rm -rf conftest*
|
|
13989 eval "ac_cv_header_$ac_safe=no"
|
|
13990 fi
|
|
13991 rm -f conftest*
|
|
13992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13993 echo "$ac_t""yes" 1>&6
|
|
13994 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
|
|
13995 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
|
2048
|
13996 echo "configure:13997: checking for sys/msg.h" >&5
|
|
13997
|
|
13998 cat > conftest.$ac_ext <<EOF
|
|
13999 #line 14000 "configure"
|
0
|
14000 #include "confdefs.h"
|
|
14001 #include <sys/msg.h>
|
|
14002 EOF
|
149
|
14003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
14004 { (eval echo configure:14005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14006 if test -z "$ac_err"; then
|
149
|
14007 rm -rf conftest*
|
|
14008 eval "ac_cv_header_$ac_safe=yes"
|
|
14009 else
|
|
14010 echo "$ac_err" >&5
|
|
14011 echo "configure: failed program was:" >&5
|
|
14012 cat conftest.$ac_ext >&5
|
|
14013 rm -rf conftest*
|
|
14014 eval "ac_cv_header_$ac_safe=no"
|
|
14015 fi
|
|
14016 rm -f conftest*
|
|
14017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14018 echo "$ac_t""yes" 1>&6
|
|
14019 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14020 Defining HAVE_SYSVIPC
|
|
14021 EOF
|
|
14022 cat >> confdefs.h <<\EOF
|
|
14023 #define HAVE_SYSVIPC 1
|
|
14024 EOF
|
|
14025 }
|
|
14026
|
|
14027 else
|
|
14028 echo "$ac_t""no" 1>&6
|
|
14029 fi
|
|
14030
|
|
14031 else
|
|
14032 echo "$ac_t""no" 1>&6
|
|
14033 fi
|
|
14034
|
|
14035 else
|
|
14036 echo "$ac_t""no" 1>&6
|
|
14037 fi
|
|
14038
|
|
14039
|
|
14040 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
|
|
14041 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
|
2048
|
14042 echo "configure:14043: checking for dirent.h" >&5
|
|
14043
|
|
14044 cat > conftest.$ac_ext <<EOF
|
|
14045 #line 14046 "configure"
|
0
|
14046 #include "confdefs.h"
|
|
14047 #include <dirent.h>
|
|
14048 EOF
|
149
|
14049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
14050 { (eval echo configure:14051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14052 if test -z "$ac_err"; then
|
|
14053 rm -rf conftest*
|
149
|
14054 eval "ac_cv_header_$ac_safe=yes"
|
|
14055 else
|
|
14056 echo "$ac_err" >&5
|
|
14057 echo "configure: failed program was:" >&5
|
|
14058 cat conftest.$ac_ext >&5
|
|
14059 rm -rf conftest*
|
|
14060 eval "ac_cv_header_$ac_safe=no"
|
|
14061 fi
|
|
14062 rm -f conftest*
|
|
14063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14064 echo "$ac_t""yes" 1>&6
|
|
14065 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14066 Defining SYSV_SYSTEM_DIR
|
|
14067 EOF
|
|
14068 cat >> confdefs.h <<\EOF
|
|
14069 #define SYSV_SYSTEM_DIR 1
|
|
14070 EOF
|
|
14071 }
|
|
14072
|
|
14073 else
|
|
14074 echo "$ac_t""no" 1>&6
|
|
14075 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
|
|
14076 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
|
2048
|
14077 echo "configure:14078: checking for sys/dir.h" >&5
|
|
14078
|
|
14079 cat > conftest.$ac_ext <<EOF
|
|
14080 #line 14081 "configure"
|
0
|
14081 #include "confdefs.h"
|
|
14082 #include <sys/dir.h>
|
|
14083 EOF
|
149
|
14084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
14085 { (eval echo configure:14086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14087 if test -z "$ac_err"; then
|
149
|
14088 rm -rf conftest*
|
|
14089 eval "ac_cv_header_$ac_safe=yes"
|
|
14090 else
|
|
14091 echo "$ac_err" >&5
|
|
14092 echo "configure: failed program was:" >&5
|
|
14093 cat conftest.$ac_ext >&5
|
|
14094 rm -rf conftest*
|
|
14095 eval "ac_cv_header_$ac_safe=no"
|
|
14096 fi
|
|
14097 rm -f conftest*
|
|
14098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14099 echo "$ac_t""yes" 1>&6
|
0
|
14100 :
|
|
14101 else
|
149
|
14102 echo "$ac_t""no" 1>&6
|
|
14103 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14104 Defining NONSYSTEM_DIR_LIBRARY
|
|
14105 EOF
|
|
14106 cat >> confdefs.h <<\EOF
|
|
14107 #define NONSYSTEM_DIR_LIBRARY 1
|
|
14108 EOF
|
|
14109 }
|
|
14110
|
|
14111 fi
|
|
14112
|
|
14113 fi
|
|
14114
|
|
14115
|
|
14116 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
|
|
14117 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
|
2048
|
14118 echo "configure:14119: checking for nlist.h" >&5
|
|
14119
|
|
14120 cat > conftest.$ac_ext <<EOF
|
|
14121 #line 14122 "configure"
|
0
|
14122 #include "confdefs.h"
|
|
14123 #include <nlist.h>
|
|
14124 EOF
|
149
|
14125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
14126 { (eval echo configure:14127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14128 if test -z "$ac_err"; then
|
|
14129 rm -rf conftest*
|
149
|
14130 eval "ac_cv_header_$ac_safe=yes"
|
|
14131 else
|
|
14132 echo "$ac_err" >&5
|
|
14133 echo "configure: failed program was:" >&5
|
|
14134 cat conftest.$ac_ext >&5
|
|
14135 rm -rf conftest*
|
|
14136 eval "ac_cv_header_$ac_safe=no"
|
|
14137 fi
|
|
14138 rm -f conftest*
|
|
14139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14140 echo "$ac_t""yes" 1>&6
|
|
14141 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14142 Defining NLIST_STRUCT
|
|
14143 EOF
|
|
14144 cat >> confdefs.h <<\EOF
|
|
14145 #define NLIST_STRUCT 1
|
|
14146 EOF
|
|
14147 }
|
|
14148
|
|
14149 else
|
|
14150 echo "$ac_t""no" 1>&6
|
|
14151 fi
|
|
14152
|
|
14153
|
0
|
14154
|
149
|
14155 echo "checking "for sound support"" 1>&6
|
2048
|
14156 echo "configure:14157: checking "for sound support"" >&5
|
155
|
14157 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
|
|
14158
|
149
|
14159 if test "$with_native_sound" != "no"; then
|
155
|
14160 if test -n "$native_sound_lib"; then
|
|
14161 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
|
|
14162 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
|
2048
|
14163 echo "configure:14164: checking for multimedia/audio_device.h" >&5
|
|
14164
|
|
14165 cat > conftest.$ac_ext <<EOF
|
|
14166 #line 14167 "configure"
|
155
|
14167 #include "confdefs.h"
|
|
14168 #include <multimedia/audio_device.h>
|
|
14169 EOF
|
|
14170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
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}\$"`
|
155
|
14173 if test -z "$ac_err"; then
|
|
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 sound_found=yes sound_cflags=""
|
|
14187 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14188 echo " xemacs will be linked with \"sunplay.o\""
|
|
14189 fi
|
|
14190 else
|
|
14191 echo "$ac_t""no" 1>&6
|
|
14192 fi
|
|
14193
|
|
14194 fi
|
|
14195
|
|
14196 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
|
1696
|
14197 if test -d "/usr/demo/SOUND/include/multimedia"; then
|
|
14198 sun_sound_cflags="-I/usr/demo/SOUND/include"
|
|
14199 elif test -d "/usr/demo/SOUND/multimedia"; then
|
|
14200 sun_sound_cflags="-I/usr/demo/SOUND"
|
|
14201 fi
|
|
14202
|
|
14203 if test -n "$native_sound_lib"; then
|
|
14204 sun_sound_lib="$native_sound_lib"
|
|
14205 elif test -r "/usr/demo/SOUND/lib/libaudio.a"; then
|
|
14206 sun_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
|
|
14207 elif test -r "/usr/demo/SOUND/libaudio.a"; then
|
|
14208 sun_sound_lib="/usr/demo/SOUND/libaudio.a"
|
|
14209 fi
|
|
14210
|
|
14211 if test -n "$sun_sound_cflags" -a -n "$sun_sound_lib"; then
|
|
14212 native_sound_lib="$sun_sound_lib"
|
|
14213 sound_cflags="$sun_sound_cflags"
|
|
14214 sound_found=yes
|
|
14215 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
151
|
14216 echo " xemacs will be linked with \"sunplay.o\""
|
|
14217 fi
|
149
|
14218 fi
|
155
|
14219 fi
|
|
14220
|
|
14221 if test -z "$sound_found"; then
|
|
14222 case "$canonical" in
|
149
|
14223 *-sgi-* )
|
155
|
14224 if test -z "$native_sound_lib"; then
|
|
14225
|
149
|
14226 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
|
2048
|
14227 echo "configure:14228: checking for ALopenport in -laudio" >&5
|
149
|
14228 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
|
|
14229
|
|
14230 xe_check_libs=" -laudio "
|
|
14231 cat > conftest.$ac_ext <<EOF
|
2048
|
14232 #line 14233 "configure"
|
149
|
14233 #include "confdefs.h"
|
|
14234 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14235 /* We use char because int might match the return type of a gcc2
|
|
14236 builtin and then its argument prototype would still apply. */
|
|
14237 char ALopenport();
|
|
14238
|
|
14239 int main() {
|
|
14240 ALopenport()
|
|
14241 ; return 0; }
|
|
14242 EOF
|
2048
|
14243 if { (eval echo configure:14244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14244 rm -rf conftest*
|
|
14245 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14246 else
|
|
14247 echo "configure: failed program was:" >&5
|
|
14248 cat conftest.$ac_ext >&5
|
|
14249 rm -rf conftest*
|
|
14250 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14251 fi
|
|
14252 rm -f conftest*
|
|
14253 xe_check_libs=""
|
|
14254
|
151
|
14255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14256 echo "$ac_t""yes" 1>&6
|
|
14257 native_sound_lib="-laudio"
|
|
14258 else
|
|
14259 echo "$ac_t""no" 1>&6
|
|
14260 fi
|
|
14261
|
|
14262
|
155
|
14263 fi
|
|
14264 if test -n "$native_sound_lib"; then
|
|
14265 sound_found=yes sound_cflags=""
|
151
|
14266 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14267 echo " xemacs will be linked with \"sgiplay.o\""
|
|
14268 fi
|
149
|
14269 fi ;;
|
|
14270 hppa*-hp-hpux* )
|
155
|
14271 if test -z "$native_sound_lib"; then
|
|
14272
|
149
|
14273 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
|
2048
|
14274 echo "configure:14275: checking for AOpenAudio in -lAlib" >&5
|
149
|
14275 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
|
|
14276
|
|
14277 xe_check_libs=" -lAlib "
|
|
14278 cat > conftest.$ac_ext <<EOF
|
2048
|
14279 #line 14280 "configure"
|
149
|
14280 #include "confdefs.h"
|
|
14281 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14282 /* We use char because int might match the return type of a gcc2
|
|
14283 builtin and then its argument prototype would still apply. */
|
|
14284 char AOpenAudio();
|
|
14285
|
|
14286 int main() {
|
|
14287 AOpenAudio()
|
|
14288 ; return 0; }
|
|
14289 EOF
|
2048
|
14290 if { (eval echo configure:14291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14291 rm -rf conftest*
|
|
14292 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14293 else
|
|
14294 echo "configure: failed program was:" >&5
|
|
14295 cat conftest.$ac_ext >&5
|
|
14296 rm -rf conftest*
|
|
14297 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14298 fi
|
|
14299 rm -f conftest*
|
|
14300 xe_check_libs=""
|
|
14301
|
151
|
14302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14303 echo "$ac_t""yes" 1>&6
|
|
14304 native_sound_lib="-lAlib"
|
|
14305 else
|
|
14306 echo "$ac_t""no" 1>&6
|
|
14307 fi
|
|
14308
|
|
14309
|
155
|
14310 fi
|
|
14311 if test -n "$native_sound_lib"; then
|
|
14312 sound_found=yes
|
151
|
14313 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14314 echo " xemacs will be linked with \"hpplay.o\""
|
|
14315 fi
|
169
|
14316 if test "$GCC" = "yes" # Kludge city
|
149
|
14317 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
|
|
14318 else sound_cflags="+e -I/usr/audio/examples"
|
|
14319 fi
|
|
14320 fi ;;
|
0
|
14321 esac
|
|
14322 fi
|
149
|
14323
|
155
|
14324 if test -z "$sound_found"; then
|
553
|
14325 if test "$with_msw" = "yes"; then
|
594
|
14326 sound_found=yes
|
|
14327 native_sound_lib=
|
|
14328 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14329 echo " xemacs will be linked with \"ntplay.o\""
|
|
14330 fi
|
553
|
14331 fi
|
|
14332 fi
|
|
14333
|
|
14334 if test -z "$sound_found"; then
|
149
|
14335 for dir in "machine" "sys" "linux"; do
|
|
14336 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
|
|
14337 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
|
2048
|
14338 echo "configure:14339: checking for ${dir}/soundcard.h" >&5
|
|
14339
|
|
14340 cat > conftest.$ac_ext <<EOF
|
|
14341 #line 14342 "configure"
|
149
|
14342 #include "confdefs.h"
|
|
14343 #include <${dir}/soundcard.h>
|
|
14344 EOF
|
|
14345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
14346 { (eval echo configure:14347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
14348 if test -z "$ac_err"; then
|
|
14349 rm -rf conftest*
|
|
14350 eval "ac_cv_header_$ac_safe=yes"
|
|
14351 else
|
|
14352 echo "$ac_err" >&5
|
|
14353 echo "configure: failed program was:" >&5
|
|
14354 cat conftest.$ac_ext >&5
|
|
14355 rm -rf conftest*
|
|
14356 eval "ac_cv_header_$ac_safe=no"
|
|
14357 fi
|
|
14358 rm -f conftest*
|
|
14359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14360 echo "$ac_t""yes" 1>&6
|
|
14361 sound_found=yes
|
426
|
14362 need_miscplay=yes
|
151
|
14363 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14364 echo " xemacs will be linked with \"linuxplay.o\""
|
|
14365 fi
|
149
|
14366 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
14367 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
|
|
14368 EOF
|
|
14369 cat >> confdefs.h <<EOF
|
|
14370 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
|
149
|
14371 EOF
|
|
14372 }
|
|
14373
|
|
14374 break
|
|
14375 else
|
|
14376 echo "$ac_t""no" 1>&6
|
|
14377 fi
|
|
14378
|
|
14379 done
|
100
|
14380 fi
|
149
|
14381
|
|
14382 test "$sound_found" = "yes" && with_native_sound=yes
|
|
14383 fi
|
|
14384
|
|
14385 if test "$with_native_sound" = "yes"; then
|
|
14386 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14387 Defining HAVE_NATIVE_SOUND
|
|
14388 EOF
|
|
14389 cat >> confdefs.h <<\EOF
|
|
14390 #define HAVE_NATIVE_SOUND 1
|
|
14391 EOF
|
|
14392 }
|
|
14393
|
151
|
14394 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
|
14395 fi
|
|
14396
|
432
|
14397 if test "$with_nas_sound" != "no"; then
|
|
14398 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
|
|
14399 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
|
2048
|
14400 echo "configure:14401: checking for audio/audiolib.h" >&5
|
|
14401
|
|
14402 cat > conftest.$ac_ext <<EOF
|
|
14403 #line 14404 "configure"
|
432
|
14404 #include "confdefs.h"
|
|
14405 #include <audio/audiolib.h>
|
|
14406 EOF
|
|
14407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
14408 { (eval echo configure:14409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
432
|
14409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
14410 if test -z "$ac_err"; then
|
|
14411 rm -rf conftest*
|
|
14412 eval "ac_cv_header_$ac_safe=yes"
|
|
14413 else
|
|
14414 echo "$ac_err" >&5
|
|
14415 echo "configure: failed program was:" >&5
|
|
14416 cat conftest.$ac_ext >&5
|
|
14417 rm -rf conftest*
|
|
14418 eval "ac_cv_header_$ac_safe=no"
|
|
14419 fi
|
|
14420 rm -f conftest*
|
|
14421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14422 echo "$ac_t""yes" 1>&6
|
|
14423
|
|
14424
|
|
14425 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
|
2048
|
14426 echo "configure:14427: checking for AuOpenServer in -laudio" >&5
|
432
|
14427 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
|
|
14428
|
|
14429 xe_check_libs=" -laudio "
|
|
14430 cat > conftest.$ac_ext <<EOF
|
2048
|
14431 #line 14432 "configure"
|
432
|
14432 #include "confdefs.h"
|
|
14433 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14434 /* We use char because int might match the return type of a gcc2
|
|
14435 builtin and then its argument prototype would still apply. */
|
|
14436 char AuOpenServer();
|
|
14437
|
|
14438 int main() {
|
|
14439 AuOpenServer()
|
|
14440 ; return 0; }
|
|
14441 EOF
|
2048
|
14442 if { (eval echo configure:14443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
432
|
14443 rm -rf conftest*
|
|
14444 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14445 else
|
|
14446 echo "configure: failed program was:" >&5
|
|
14447 cat conftest.$ac_ext >&5
|
|
14448 rm -rf conftest*
|
|
14449 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14450 fi
|
|
14451 rm -f conftest*
|
|
14452 xe_check_libs=""
|
|
14453
|
|
14454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14455 echo "$ac_t""yes" 1>&6
|
|
14456 have_nas_sound=yes
|
|
14457 else
|
|
14458 echo "$ac_t""no" 1>&6
|
|
14459 fi
|
|
14460
|
|
14461
|
|
14462 else
|
|
14463 echo "$ac_t""no" 1>&6
|
|
14464 fi
|
|
14465
|
|
14466 if test "$have_nas_sound" = "yes"; then
|
|
14467 with_nas_sound=yes
|
|
14468 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
14469 Defining HAVE_NAS_SOUND
|
|
14470 EOF
|
|
14471 cat >> confdefs.h <<\EOF
|
|
14472 #define HAVE_NAS_SOUND 1
|
|
14473 EOF
|
|
14474 }
|
|
14475
|
432
|
14476 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
|
151
|
14477 echo " xemacs will be linked with \"nas.o\""
|
|
14478 fi
|
432
|
14479 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
|
|
14480 cat > conftest.$ac_ext <<EOF
|
2048
|
14481 #line 14482 "configure"
|
149
|
14482 #include "confdefs.h"
|
|
14483 #include <audio/Xtutil.h>
|
|
14484 EOF
|
|
14485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
14486 egrep "AuXtErrorJump" >/dev/null 2>&1; then
|
|
14487 :
|
|
14488 else
|
|
14489 rm -rf conftest*
|
432
|
14490 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
14491 Defining NAS_NO_ERROR_JUMP
|
|
14492 EOF
|
|
14493 cat >> confdefs.h <<\EOF
|
|
14494 #define NAS_NO_ERROR_JUMP 1
|
|
14495 EOF
|
|
14496 }
|
|
14497
|
|
14498 fi
|
|
14499 rm -f conftest*
|
|
14500
|
432
|
14501 else
|
|
14502 test "$with_nas_sound" = "yes" && \
|
|
14503 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
|
|
14504 with_nas_sound=no
|
|
14505 fi
|
|
14506 fi
|
|
14507
|
1464
|
14508 if test "$with_esd_sound" != "no"; then
|
432
|
14509 # Extract the first word of "esd-config", so it can be a program name with args.
|
426
|
14510 set dummy esd-config; ac_word=$2
|
|
14511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2048
|
14512 echo "configure:14513: checking for $ac_word" >&5
|
426
|
14513
|
|
14514 if test -n "$have_esd_config"; then
|
|
14515 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
|
|
14516 else
|
|
14517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
14518 ac_dummy="$PATH"
|
|
14519 for ac_dir in $ac_dummy; do
|
|
14520 test -z "$ac_dir" && ac_dir=.
|
|
14521 if test -f $ac_dir/$ac_word; then
|
|
14522 ac_cv_prog_have_esd_config="yes"
|
|
14523 break
|
|
14524 fi
|
|
14525 done
|
|
14526 IFS="$ac_save_ifs"
|
|
14527 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
|
|
14528 fi
|
|
14529 have_esd_config="$ac_cv_prog_have_esd_config"
|
|
14530 if test -n "$have_esd_config"; then
|
|
14531 echo "$ac_t""$have_esd_config" 1>&6
|
|
14532 else
|
|
14533 echo "$ac_t""no" 1>&6
|
|
14534 fi
|
|
14535
|
432
|
14536 if test "$have_esd_config" = "yes"; then
|
|
14537 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
|
|
14538 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
|
|
14539 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
|
|
14540 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
|
2048
|
14541 echo "configure:14542: checking for esd_play_stream" >&5
|
|
14542
|
|
14543 cat > conftest.$ac_ext <<EOF
|
|
14544 #line 14545 "configure"
|
432
|
14545 #include "confdefs.h"
|
|
14546 /* System header to define __stub macros and hopefully few prototypes,
|
|
14547 which can conflict with char esd_play_stream(); below. */
|
|
14548 #include <assert.h>
|
|
14549 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14550 /* We use char because int might match the return type of a gcc2
|
|
14551 builtin and then its argument prototype would still apply. */
|
|
14552 char esd_play_stream();
|
|
14553
|
|
14554 int main() {
|
|
14555
|
|
14556 /* The GNU C library defines this for functions which it implements
|
|
14557 to always fail with ENOSYS. Some functions are actually named
|
|
14558 something starting with __ and the normal name is an alias. */
|
|
14559 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
|
|
14560 choke me
|
|
14561 #else
|
|
14562 esd_play_stream();
|
|
14563 #endif
|
|
14564
|
|
14565 ; return 0; }
|
|
14566 EOF
|
2048
|
14567 if { (eval echo configure:14568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
432
|
14568 rm -rf conftest*
|
|
14569 eval "ac_cv_func_esd_play_stream=yes"
|
|
14570 else
|
|
14571 echo "configure: failed program was:" >&5
|
|
14572 cat conftest.$ac_ext >&5
|
|
14573 rm -rf conftest*
|
|
14574 eval "ac_cv_func_esd_play_stream=no"
|
|
14575 fi
|
|
14576 rm -f conftest*
|
|
14577
|
|
14578 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
|
|
14579 echo "$ac_t""yes" 1>&6
|
|
14580 have_esd_sound=yes
|
|
14581 else
|
|
14582 echo "$ac_t""no" 1>&6
|
|
14583 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
|
|
14584 fi
|
|
14585
|
|
14586 fi
|
|
14587
|
|
14588 if test "$have_esd_sound" = "yes"; then
|
|
14589 with_esd_sound=yes
|
|
14590 need_miscplay=yes
|
|
14591 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
|
|
14592 echo " xemacs will be linked with \"esd.o\""
|
|
14593 fi
|
426
|
14594 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14595 Defining HAVE_ESD_SOUND
|
|
14596 EOF
|
|
14597 cat >> confdefs.h <<\EOF
|
|
14598 #define HAVE_ESD_SOUND 1
|
|
14599 EOF
|
|
14600 }
|
|
14601
|
432
|
14602 else
|
|
14603 test "$with_esd_sound" = "yes" && \
|
|
14604 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
|
|
14605 with_esd_sound=no
|
|
14606 fi
|
|
14607 fi
|
|
14608
|
|
14609 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
|
426
|
14610 echo " xemacs will be linked with \"miscplay.o\""
|
|
14611 fi
|
149
|
14612
|
|
14613
|
|
14614 test -z "$with_tty" && with_tty=yes
|
|
14615
|
|
14616 if test "$with_tty" = "yes" ; then
|
151
|
14617 echo "checking for TTY-related features" 1>&6
|
2048
|
14618 echo "configure:14619: checking for TTY-related features" >&5
|
149
|
14619 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14620 Defining HAVE_TTY
|
|
14621 EOF
|
|
14622 cat >> confdefs.h <<\EOF
|
|
14623 #define HAVE_TTY 1
|
|
14624 EOF
|
|
14625 }
|
|
14626
|
|
14627
|
|
14628 if test -z "$with_ncurses"; then
|
70
|
14629
|
151
|
14630 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
|
2048
|
14631 echo "configure:14632: checking for tgetent in -lncurses" >&5
|
151
|
14632 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
|
149
|
14633
|
|
14634 xe_check_libs=" -lncurses "
|
|
14635 cat > conftest.$ac_ext <<EOF
|
2048
|
14636 #line 14637 "configure"
|
149
|
14637 #include "confdefs.h"
|
|
14638 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14639 /* We use char because int might match the return type of a gcc2
|
|
14640 builtin and then its argument prototype would still apply. */
|
151
|
14641 char tgetent();
|
149
|
14642
|
|
14643 int main() {
|
151
|
14644 tgetent()
|
149
|
14645 ; return 0; }
|
|
14646 EOF
|
2048
|
14647 if { (eval echo configure:14648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14648 rm -rf conftest*
|
|
14649 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14650 else
|
|
14651 echo "configure: failed program was:" >&5
|
|
14652 cat conftest.$ac_ext >&5
|
|
14653 rm -rf conftest*
|
|
14654 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14655 fi
|
|
14656 rm -f conftest*
|
|
14657 xe_check_libs=""
|
|
14658
|
151
|
14659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14660 echo "$ac_t""yes" 1>&6
|
|
14661 with_ncurses=yes
|
|
14662 else
|
|
14663 echo "$ac_t""no" 1>&6
|
|
14664 with_ncurses=no
|
|
14665 fi
|
|
14666
|
|
14667
|
|
14668 fi
|
|
14669 if test "$with_ncurses" = "yes"; then
|
|
14670 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14671 Defining HAVE_NCURSES
|
|
14672 EOF
|
|
14673 cat >> confdefs.h <<\EOF
|
|
14674 #define HAVE_NCURSES 1
|
|
14675 EOF
|
|
14676 }
|
|
14677
|
|
14678 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
14679 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
2048
|
14680 echo "configure:14681: checking for ncurses/curses.h" >&5
|
|
14681
|
|
14682 cat > conftest.$ac_ext <<EOF
|
|
14683 #line 14684 "configure"
|
149
|
14684 #include "confdefs.h"
|
|
14685 #include <ncurses/curses.h>
|
|
14686 EOF
|
|
14687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
14688 { (eval echo configure:14689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
14690 if test -z "$ac_err"; then
|
|
14691 rm -rf conftest*
|
|
14692 eval "ac_cv_header_$ac_safe=yes"
|
|
14693 else
|
|
14694 echo "$ac_err" >&5
|
|
14695 echo "configure: failed program was:" >&5
|
|
14696 cat conftest.$ac_ext >&5
|
|
14697 rm -rf conftest*
|
|
14698 eval "ac_cv_header_$ac_safe=no"
|
|
14699 fi
|
|
14700 rm -f conftest*
|
|
14701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14702 echo "$ac_t""yes" 1>&6
|
442
|
14703 curses_h_file=ncurses/curses.h
|
149
|
14704 else
|
|
14705 echo "$ac_t""no" 1>&6
|
|
14706 fi
|
|
14707
|
|
14708 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
|
|
14709 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
|
2048
|
14710 echo "configure:14711: checking for ncurses/term.h" >&5
|
|
14711
|
|
14712 cat > conftest.$ac_ext <<EOF
|
|
14713 #line 14714 "configure"
|
0
|
14714 #include "confdefs.h"
|
|
14715 #include <ncurses/term.h>
|
|
14716 EOF
|
149
|
14717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
14718 { (eval echo configure:14719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14720 if test -z "$ac_err"; then
|
|
14721 rm -rf conftest*
|
149
|
14722 eval "ac_cv_header_$ac_safe=yes"
|
|
14723 else
|
|
14724 echo "$ac_err" >&5
|
|
14725 echo "configure: failed program was:" >&5
|
|
14726 cat conftest.$ac_ext >&5
|
|
14727 rm -rf conftest*
|
|
14728 eval "ac_cv_header_$ac_safe=no"
|
|
14729 fi
|
|
14730 rm -f conftest*
|
|
14731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14732 echo "$ac_t""yes" 1>&6
|
442
|
14733 term_h_file=ncurses/term.h
|
149
|
14734 else
|
|
14735 echo "$ac_t""no" 1>&6
|
|
14736 fi
|
|
14737
|
151
|
14738 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
14739 echo " xemacs will be linked with \"terminfo.o\""
|
|
14740 fi
|
|
14741 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
|
149
|
14742
|
153
|
14743 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
|
149
|
14744 save_c_switch_site="$c_switch_site"
|
|
14745 c_switch_site="$c_switch_site -I/usr/include/ncurses"
|
|
14746 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
14747 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
2048
|
14748 echo "configure:14749: checking for ncurses/curses.h" >&5
|
|
14749
|
|
14750 cat > conftest.$ac_ext <<EOF
|
|
14751 #line 14752 "configure"
|
0
|
14752 #include "confdefs.h"
|
|
14753 #include <ncurses/curses.h>
|
|
14754 EOF
|
149
|
14755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
14756 { (eval echo configure:14757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14758 if test -z "$ac_err"; then
|
|
14759 rm -rf conftest*
|
149
|
14760 eval "ac_cv_header_$ac_safe=yes"
|
|
14761 else
|
|
14762 echo "$ac_err" >&5
|
|
14763 echo "configure: failed program was:" >&5
|
|
14764 cat conftest.$ac_ext >&5
|
|
14765 rm -rf conftest*
|
|
14766 eval "ac_cv_header_$ac_safe=no"
|
|
14767 fi
|
|
14768 rm -f conftest*
|
|
14769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14770 echo "$ac_t""yes" 1>&6
|
442
|
14771 curses_h_file=ncurses/curses.h
|
149
|
14772 else
|
|
14773 echo "$ac_t""no" 1>&6
|
|
14774 fi
|
|
14775
|
153
|
14776 if test "$ac_cv_header_ncurses_curses_h" = "yes"
|
561
|
14777 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2
|
149
|
14778 else c_switch_site="$save_c_switch_site"
|
|
14779 fi
|
|
14780 fi
|
151
|
14781 else if test "$have_terminfo" = "yes"; then
|
|
14782 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
14783 echo " xemacs will be linked with \"terminfo.o\""
|
|
14784 fi
|
|
14785 if test -n "$libs_termcap"; then
|
|
14786 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
14787 else
|
|
14788 for lib in curses termlib termcap; do
|
|
14789
|
|
14790 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
|
2048
|
14791 echo "configure:14792: checking for tgetent in -l$lib" >&5
|
151
|
14792 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
|
|
14793
|
|
14794 xe_check_libs=" -l$lib "
|
|
14795 cat > conftest.$ac_ext <<EOF
|
2048
|
14796 #line 14797 "configure"
|
149
|
14797 #include "confdefs.h"
|
|
14798 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14799 /* We use char because int might match the return type of a gcc2
|
|
14800 builtin and then its argument prototype would still apply. */
|
151
|
14801 char tgetent();
|
149
|
14802
|
|
14803 int main() {
|
151
|
14804 tgetent()
|
149
|
14805 ; return 0; }
|
|
14806 EOF
|
2048
|
14807 if { (eval echo configure:14808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14808 rm -rf conftest*
|
|
14809 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14810 else
|
|
14811 echo "configure: failed program was:" >&5
|
|
14812 cat conftest.$ac_ext >&5
|
|
14813 rm -rf conftest*
|
|
14814 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14815 fi
|
|
14816 rm -f conftest*
|
|
14817 xe_check_libs=""
|
|
14818
|
151
|
14819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14820 echo "$ac_t""yes" 1>&6
|
|
14821 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
|
|
14822 else
|
|
14823 echo "$ac_t""no" 1>&6
|
|
14824 fi
|
|
14825
|
|
14826
|
|
14827 done
|
|
14828 fi
|
|
14829 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
|
|
14830 echo " xemacs will be linked with \"tparam.o\""
|
|
14831 fi
|
|
14832 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
|
|
14833 if test -n "$libs_termcap"; then
|
|
14834 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
14835 else
|
|
14836
|
|
14837 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
|
2048
|
14838 echo "configure:14839: checking for tgetent in -lcurses" >&5
|
151
|
14839 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
14840
|
|
14841 xe_check_libs=" -lcurses "
|
|
14842 cat > conftest.$ac_ext <<EOF
|
2048
|
14843 #line 14844 "configure"
|
149
|
14844 #include "confdefs.h"
|
|
14845 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14846 /* We use char because int might match the return type of a gcc2
|
|
14847 builtin and then its argument prototype would still apply. */
|
151
|
14848 char tgetent();
|
149
|
14849
|
|
14850 int main() {
|
151
|
14851 tgetent()
|
149
|
14852 ; return 0; }
|
|
14853 EOF
|
2048
|
14854 if { (eval echo configure:14855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14855 rm -rf conftest*
|
|
14856 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14857 else
|
|
14858 echo "configure: failed program was:" >&5
|
|
14859 cat conftest.$ac_ext >&5
|
|
14860 rm -rf conftest*
|
|
14861 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14862 fi
|
|
14863 rm -f conftest*
|
|
14864 xe_check_libs=""
|
|
14865
|
151
|
14866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14867 echo "$ac_t""yes" 1>&6
|
|
14868 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
|
|
14869 else
|
|
14870 echo "$ac_t""no" 1>&6
|
|
14871 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
2048
|
14872 echo "configure:14873: checking for tgetent in -ltermcap" >&5
|
151
|
14873 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
|
14874
|
|
14875 xe_check_libs=" -ltermcap "
|
|
14876 cat > conftest.$ac_ext <<EOF
|
2048
|
14877 #line 14878 "configure"
|
149
|
14878 #include "confdefs.h"
|
|
14879 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14880 /* We use char because int might match the return type of a gcc2
|
|
14881 builtin and then its argument prototype would still apply. */
|
151
|
14882 char tgetent();
|
149
|
14883
|
|
14884 int main() {
|
151
|
14885 tgetent()
|
149
|
14886 ; return 0; }
|
|
14887 EOF
|
2048
|
14888 if { (eval echo configure:14889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14889 rm -rf conftest*
|
|
14890 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14891 else
|
|
14892 echo "configure: failed program was:" >&5
|
|
14893 cat conftest.$ac_ext >&5
|
|
14894 rm -rf conftest*
|
|
14895 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14896 fi
|
|
14897 rm -f conftest*
|
|
14898 xe_check_libs=""
|
|
14899
|
151
|
14900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14901 echo "$ac_t""yes" 1>&6
|
|
14902 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
|
|
14903 else
|
|
14904 echo "$ac_t""no" 1>&6
|
|
14905 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
|
|
14906 echo " xemacs will be linked with \"termcap.o\""
|
|
14907 fi
|
|
14908 fi
|
|
14909
|
|
14910
|
|
14911 fi
|
|
14912
|
|
14913
|
0
|
14914 fi
|
|
14915 fi
|
149
|
14916 fi
|
|
14917 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
14918 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
|
|
14919 EOF
|
|
14920 cat >> confdefs.h <<EOF
|
|
14921 #define CURSES_H_FILE "${curses_h_file-curses.h}"
|
149
|
14922 EOF
|
|
14923 }
|
|
14924
|
|
14925 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
14926 Defining TERM_H_FILE = "${term_h_file-term.h}"
|
|
14927 EOF
|
|
14928 cat >> confdefs.h <<EOF
|
|
14929 #define TERM_H_FILE "${term_h_file-term.h}"
|
149
|
14930 EOF
|
|
14931 }
|
|
14932
|
155
|
14933
|
|
14934 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
|
|
14935 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
|
2048
|
14936 echo "configure:14937: checking for gpm.h" >&5
|
|
14937
|
|
14938 cat > conftest.$ac_ext <<EOF
|
|
14939 #line 14940 "configure"
|
155
|
14940 #include "confdefs.h"
|
|
14941 #include <gpm.h>
|
|
14942 EOF
|
|
14943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
14944 { (eval echo configure:14945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
14946 if test -z "$ac_err"; then
|
|
14947 rm -rf conftest*
|
|
14948 eval "ac_cv_header_$ac_safe=yes"
|
|
14949 else
|
|
14950 echo "$ac_err" >&5
|
|
14951 echo "configure: failed program was:" >&5
|
|
14952 cat conftest.$ac_ext >&5
|
|
14953 rm -rf conftest*
|
|
14954 eval "ac_cv_header_$ac_safe=no"
|
|
14955 fi
|
|
14956 rm -f conftest*
|
|
14957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14958 echo "$ac_t""yes" 1>&6
|
|
14959 :
|
|
14960 else
|
|
14961 echo "$ac_t""no" 1>&6
|
|
14962 with_gpm=no
|
|
14963 fi
|
|
14964 }
|
|
14965 test -z "$with_gpm" && {
|
|
14966 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
|
2048
|
14967 echo "configure:14968: checking for Gpm_Open in -lgpm" >&5
|
155
|
14968 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
|
|
14969
|
|
14970 xe_check_libs=" -lgpm "
|
|
14971 cat > conftest.$ac_ext <<EOF
|
2048
|
14972 #line 14973 "configure"
|
155
|
14973 #include "confdefs.h"
|
|
14974 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14975 /* We use char because int might match the return type of a gcc2
|
|
14976 builtin and then its argument prototype would still apply. */
|
|
14977 char Gpm_Open();
|
|
14978
|
|
14979 int main() {
|
|
14980 Gpm_Open()
|
|
14981 ; return 0; }
|
|
14982 EOF
|
2048
|
14983 if { (eval echo configure:14984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
155
|
14984 rm -rf conftest*
|
|
14985 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14986 else
|
|
14987 echo "configure: failed program was:" >&5
|
|
14988 cat conftest.$ac_ext >&5
|
|
14989 rm -rf conftest*
|
|
14990 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14991 fi
|
|
14992 rm -f conftest*
|
|
14993 xe_check_libs=""
|
|
14994
|
|
14995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14996 echo "$ac_t""yes" 1>&6
|
|
14997 with_gpm=yes
|
|
14998 else
|
|
14999 echo "$ac_t""no" 1>&6
|
|
15000 with_gpm=no
|
|
15001 fi
|
|
15002
|
|
15003 }
|
|
15004 if test "$with_gpm" = "yes"; then
|
|
15005 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15006 Defining HAVE_GPM
|
|
15007 EOF
|
|
15008 cat >> confdefs.h <<\EOF
|
|
15009 #define HAVE_GPM 1
|
|
15010 EOF
|
|
15011 }
|
|
15012
|
|
15013 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
|
|
15014 fi
|
|
15015
|
151
|
15016 else for feature in ncurses gpm; do
|
149
|
15017 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
561
|
15018 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
|
149
|
15019 fi
|
|
15020 eval "with_${feature}=no"
|
|
15021 done
|
151
|
15022 fi
|
149
|
15023
|
426
|
15024 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
|
384
|
15025 != "no no no" && echo "checking for database support" 1>&6
|
2048
|
15026 echo "configure:15027: checking for database support" >&5
|
426
|
15027
|
|
15028 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
|
384
|
15029 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
|
|
15030 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
|
2048
|
15031 echo "configure:15032: checking for ndbm.h" >&5
|
|
15032
|
|
15033 cat > conftest.$ac_ext <<EOF
|
|
15034 #line 15035 "configure"
|
384
|
15035 #include "confdefs.h"
|
|
15036 #include <ndbm.h>
|
265
|
15037 EOF
|
|
15038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
15039 { (eval echo configure:15040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
15040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
265
|
15041 if test -z "$ac_err"; then
|
|
15042 rm -rf conftest*
|
|
15043 eval "ac_cv_header_$ac_safe=yes"
|
|
15044 else
|
|
15045 echo "$ac_err" >&5
|
|
15046 echo "configure: failed program was:" >&5
|
|
15047 cat conftest.$ac_ext >&5
|
|
15048 rm -rf conftest*
|
|
15049 eval "ac_cv_header_$ac_safe=no"
|
|
15050 fi
|
|
15051 rm -f conftest*
|
|
15052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
15053 echo "$ac_t""yes" 1>&6
|
384
|
15054 :
|
|
15055 else
|
|
15056 echo "$ac_t""no" 1>&6
|
|
15057
|
426
|
15058 test "$with_database_gdbm" = "yes" -o \
|
|
15059 "$with_database_dbm" = "yes" && \
|
384
|
15060 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
|
426
|
15061 with_database_gdbm=no with_database_dbm=no
|
|
15062 fi
|
|
15063
|
|
15064 fi
|
|
15065
|
|
15066 if test "$with_database_gdbm" != "no"; then
|
384
|
15067
|
149
|
15068 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
|
2048
|
15069 echo "configure:15070: checking for dbm_open in -lgdbm" >&5
|
149
|
15070 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
15071
|
|
15072 xe_check_libs=" -lgdbm "
|
|
15073 cat > conftest.$ac_ext <<EOF
|
2048
|
15074 #line 15075 "configure"
|
149
|
15075 #include "confdefs.h"
|
|
15076 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15077 /* We use char because int might match the return type of a gcc2
|
|
15078 builtin and then its argument prototype would still apply. */
|
|
15079 char dbm_open();
|
|
15080
|
|
15081 int main() {
|
|
15082 dbm_open()
|
|
15083 ; return 0; }
|
|
15084 EOF
|
2048
|
15085 if { (eval echo configure:15086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15086 rm -rf conftest*
|
|
15087 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15088 else
|
|
15089 echo "configure: failed program was:" >&5
|
|
15090 cat conftest.$ac_ext >&5
|
|
15091 rm -rf conftest*
|
|
15092 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15093 fi
|
|
15094 rm -f conftest*
|
|
15095 xe_check_libs=""
|
|
15096
|
151
|
15097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
15098 echo "$ac_t""yes" 1>&6
|
426
|
15099 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
|
|
15100 else
|
|
15101 echo "$ac_t""no" 1>&6
|
|
15102 if test "$with_database_gdbm" = "yes"; then
|
384
|
15103 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
|
|
15104 fi
|
426
|
15105 with_database_gdbm=no
|
384
|
15106 fi
|
|
15107
|
|
15108
|
149
|
15109 fi
|
|
15110
|
151
|
15111 if test "$with_database_dbm" != "no"; then
|
149
|
15112 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
2048
|
15113 echo "configure:15114: checking for dbm_open" >&5
|
|
15114
|
|
15115 cat > conftest.$ac_ext <<EOF
|
|
15116 #line 15117 "configure"
|
149
|
15117 #include "confdefs.h"
|
|
15118 /* System header to define __stub macros and hopefully few prototypes,
|
|
15119 which can conflict with char dbm_open(); below. */
|
|
15120 #include <assert.h>
|
|
15121 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15122 /* We use char because int might match the return type of a gcc2
|
|
15123 builtin and then its argument prototype would still apply. */
|
|
15124 char dbm_open();
|
|
15125
|
|
15126 int main() {
|
|
15127
|
|
15128 /* The GNU C library defines this for functions which it implements
|
|
15129 to always fail with ENOSYS. Some functions are actually named
|
|
15130 something starting with __ and the normal name is an alias. */
|
|
15131 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
15132 choke me
|
|
15133 #else
|
|
15134 dbm_open();
|
|
15135 #endif
|
|
15136
|
|
15137 ; return 0; }
|
|
15138 EOF
|
2048
|
15139 if { (eval echo configure:15140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15140 rm -rf conftest*
|
|
15141 eval "ac_cv_func_dbm_open=yes"
|
|
15142 else
|
|
15143 echo "configure: failed program was:" >&5
|
|
15144 cat conftest.$ac_ext >&5
|
|
15145 rm -rf conftest*
|
|
15146 eval "ac_cv_func_dbm_open=no"
|
|
15147 fi
|
|
15148 rm -f conftest*
|
|
15149
|
|
15150 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
15151 echo "$ac_t""yes" 1>&6
|
384
|
15152 with_database_dbm=yes libdbm=
|
|
15153 else
|
|
15154 echo "$ac_t""no" 1>&6
|
|
15155
|
149
|
15156
|
|
15157 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
|
2048
|
15158 echo "configure:15159: checking for dbm_open in -ldbm" >&5
|
149
|
15159 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
15160
|
|
15161 xe_check_libs=" -ldbm "
|
|
15162 cat > conftest.$ac_ext <<EOF
|
2048
|
15163 #line 15164 "configure"
|
149
|
15164 #include "confdefs.h"
|
|
15165 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15166 /* We use char because int might match the return type of a gcc2
|
|
15167 builtin and then its argument prototype would still apply. */
|
|
15168 char dbm_open();
|
|
15169
|
|
15170 int main() {
|
|
15171 dbm_open()
|
|
15172 ; return 0; }
|
|
15173 EOF
|
2048
|
15174 if { (eval echo configure:15175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15175 rm -rf conftest*
|
|
15176 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15177 else
|
|
15178 echo "configure: failed program was:" >&5
|
|
15179 cat conftest.$ac_ext >&5
|
|
15180 rm -rf conftest*
|
|
15181 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15182 fi
|
|
15183 rm -f conftest*
|
|
15184 xe_check_libs=""
|
|
15185
|
151
|
15186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
15187 echo "$ac_t""yes" 1>&6
|
384
|
15188 with_database_dbm=yes libdbm=-ldbm
|
|
15189 else
|
|
15190 echo "$ac_t""no" 1>&6
|
|
15191 test "$with_database_dbm" = "yes" && \
|
|
15192 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
|
|
15193 with_database_dbm=no
|
|
15194 fi
|
|
15195
|
|
15196
|
|
15197 fi
|
|
15198
|
|
15199 fi
|
|
15200
|
|
15201 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
|
426
|
15202 test "$with_database_gdbm" = "yes" -o \
|
|
15203 "$with_database_dbm" = "yes" && \
|
384
|
15204 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15205 Defining HAVE_DBM
|
|
15206 EOF
|
|
15207 cat >> confdefs.h <<\EOF
|
|
15208 #define HAVE_DBM 1
|
|
15209 EOF
|
|
15210 }
|
|
15211
|
|
15212
|
|
15213 if test "$with_database_berkdb" != "no"; then
|
298
|
15214 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
|
2048
|
15215 echo "configure:15216: checking for Berkeley db.h" >&5
|
442
|
15216 for header in "db/db.h" "db.h"; do
|
298
|
15217 cat > conftest.$ac_ext <<EOF
|
2048
|
15218 #line 15219 "configure"
|
442
|
15219 #include "confdefs.h"
|
|
15220
|
|
15221 #include <stdlib.h>
|
|
15222 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
|
298
|
15223 #ifdef HAVE_INTTYPES_H
|
|
15224 #define __BIT_TYPES_DEFINED__
|
|
15225 #include <inttypes.h>
|
|
15226 typedef uint8_t u_int8_t;
|
|
15227 typedef uint16_t u_int16_t;
|
|
15228 typedef uint32_t u_int32_t;
|
|
15229 #ifdef WE_DONT_NEED_QUADS
|
|
15230 typedef uint64_t u_int64_t;
|
|
15231 #endif
|
|
15232 #endif
|
442
|
15233 #endif
|
|
15234 #include <$header>
|
|
15235
|
|
15236 int main() {
|
|
15237
|
|
15238 ; return 0; }
|
|
15239 EOF
|
2048
|
15240 if { (eval echo configure:15241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
15241 rm -rf conftest*
|
|
15242 db_h_file="$header"; break
|
298
|
15243 else
|
|
15244 echo "configure: failed program was:" >&5
|
|
15245 cat conftest.$ac_ext >&5
|
|
15246 fi
|
|
15247 rm -f conftest*
|
|
15248 done
|
442
|
15249 if test -z "$db_h_file"
|
298
|
15250 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
|
442
|
15251 else echo "$ac_t""$db_h_file" 1>&6
|
298
|
15252 fi
|
|
15253
|
|
15254 if test "$with_database_berkdb" != "no"; then
|
|
15255 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
|
2048
|
15256 echo "configure:15257: checking for Berkeley DB version" >&5
|
298
|
15257 cat > conftest.$ac_ext <<EOF
|
2048
|
15258 #line 15259 "configure"
|
442
|
15259 #include "confdefs.h"
|
|
15260 #include <$db_h_file>
|
298
|
15261 #if DB_VERSION_MAJOR > 1
|
|
15262 yes
|
|
15263 #endif
|
|
15264
|
|
15265 EOF
|
|
15266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
15267 egrep "yes" >/dev/null 2>&1; then
|
|
15268 rm -rf conftest*
|
448
|
15269 cat > conftest.$ac_ext <<EOF
|
2048
|
15270 #line 15271 "configure"
|
448
|
15271 #include "confdefs.h"
|
|
15272 #include <$db_h_file>
|
|
15273 #if DB_VERSION_MAJOR > 2
|
|
15274 yes
|
|
15275 #endif
|
|
15276
|
|
15277 EOF
|
|
15278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
15279 egrep "yes" >/dev/null 2>&1; then
|
|
15280 rm -rf conftest*
|
1443
|
15281 cat > conftest.$ac_ext <<EOF
|
2048
|
15282 #line 15283 "configure"
|
1443
|
15283 #include "confdefs.h"
|
|
15284 #include <$db_h_file>
|
|
15285 #if DB_VERSION_MAJOR > 3
|
|
15286 yes
|
|
15287 #endif
|
|
15288
|
|
15289 EOF
|
|
15290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
15291 egrep "yes" >/dev/null 2>&1; then
|
|
15292 rm -rf conftest*
|
|
15293 echo "$ac_t""4" 1>&6; dbfunc=db_create; dbver=4
|
448
|
15294 else
|
|
15295 rm -rf conftest*
|
|
15296
|
1443
|
15297 echo "$ac_t""3" 1>&6; dbfunc=db_create; dbver=3
|
448
|
15298 fi
|
|
15299 rm -f conftest*
|
|
15300
|
|
15301 else
|
|
15302 rm -rf conftest*
|
|
15303
|
1443
|
15304 echo "$ac_t""2" 1>&6; dbfunc=db_open; dbver=2
|
|
15305 fi
|
|
15306 rm -f conftest*
|
|
15307
|
|
15308 else
|
|
15309 rm -rf conftest*
|
|
15310
|
|
15311 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1
|
298
|
15312 fi
|
|
15313 rm -f conftest*
|
|
15314
|
|
15315 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
|
2048
|
15316 echo "configure:15317: checking for $dbfunc" >&5
|
|
15317
|
|
15318 cat > conftest.$ac_ext <<EOF
|
|
15319 #line 15320 "configure"
|
298
|
15320 #include "confdefs.h"
|
149
|
15321 /* System header to define __stub macros and hopefully few prototypes,
|
298
|
15322 which can conflict with char $dbfunc(); below. */
|
149
|
15323 #include <assert.h>
|
|
15324 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15325 /* We use char because int might match the return type of a gcc2
|
|
15326 builtin and then its argument prototype would still apply. */
|
298
|
15327 char $dbfunc();
|
149
|
15328
|
|
15329 int main() {
|
|
15330
|
0
|
15331 /* The GNU C library defines this for functions which it implements
|
|
15332 to always fail with ENOSYS. Some functions are actually named
|
|
15333 something starting with __ and the normal name is an alias. */
|
298
|
15334 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
|
0
|
15335 choke me
|
|
15336 #else
|
298
|
15337 $dbfunc();
|
0
|
15338 #endif
|
149
|
15339
|
0
|
15340 ; return 0; }
|
|
15341 EOF
|
2048
|
15342 if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
298
|
15343 rm -rf conftest*
|
|
15344 eval "ac_cv_func_$dbfunc=yes"
|
|
15345 else
|
|
15346 echo "configure: failed program was:" >&5
|
|
15347 cat conftest.$ac_ext >&5
|
|
15348 rm -rf conftest*
|
|
15349 eval "ac_cv_func_$dbfunc=no"
|
|
15350 fi
|
|
15351 rm -f conftest*
|
|
15352
|
|
15353 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
|
149
|
15354 echo "$ac_t""yes" 1>&6
|
|
15355 with_database_berkdb=yes need_libdb=no
|
|
15356 else
|
|
15357 echo "$ac_t""no" 1>&6
|
298
|
15358
|
|
15359
|
|
15360 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
|
2048
|
15361 echo "configure:15362: checking for $dbfunc in -ldb" >&5
|
298
|
15362 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
|
149
|
15363
|
|
15364 xe_check_libs=" -ldb "
|
|
15365 cat > conftest.$ac_ext <<EOF
|
2048
|
15366 #line 15367 "configure"
|
149
|
15367 #include "confdefs.h"
|
0
|
15368 /* Override any gcc2 internal prototype to avoid an error. */
|
149
|
15369 /* We use char because int might match the return type of a gcc2
|
|
15370 builtin and then its argument prototype would still apply. */
|
298
|
15371 char $dbfunc();
|
|
15372
|
|
15373 int main() {
|
|
15374 $dbfunc()
|
|
15375 ; return 0; }
|
|
15376 EOF
|
2048
|
15377 if { (eval echo configure:15378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15378 rm -rf conftest*
|
|
15379 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15380 else
|
|
15381 echo "configure: failed program was:" >&5
|
|
15382 cat conftest.$ac_ext >&5
|
|
15383 rm -rf conftest*
|
|
15384 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15385 fi
|
|
15386 rm -f conftest*
|
|
15387 xe_check_libs=""
|
|
15388
|
151
|
15389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
15390 echo "$ac_t""yes" 1>&6
|
|
15391 with_database_berkdb=yes need_libdb=yes
|
|
15392 else
|
|
15393 echo "$ac_t""no" 1>&6
|
298
|
15394 fi
|
|
15395
|
|
15396
|
|
15397 fi
|
|
15398
|
|
15399 fi
|
|
15400
|
1443
|
15401 if test "$with_database_berkdb" != "yes" -a "$dbver" = "4"; then
|
|
15402 rm -f $tempcname
|
|
15403 echo "#include <$db_h_file>" > $tempcname
|
|
15404 echo "configure___ dbfunc=db_create" >> $tempcname
|
|
15405 eval `$CPP -Isrc $tempcname \
|
|
15406 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
|
|
15407 rm -f $tempcname
|
|
15408 echo "configure: warning: "db_create is really $dbfunc"" 1>&2
|
|
15409
|
|
15410 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
|
2048
|
15411 echo "configure:15412: checking for $dbfunc in -ldb" >&5
|
1443
|
15412 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
|
|
15413
|
|
15414 xe_check_libs=" -ldb "
|
|
15415 cat > conftest.$ac_ext <<EOF
|
2048
|
15416 #line 15417 "configure"
|
1443
|
15417 #include "confdefs.h"
|
|
15418 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15419 /* We use char because int might match the return type of a gcc2
|
|
15420 builtin and then its argument prototype would still apply. */
|
|
15421 char $dbfunc();
|
|
15422
|
|
15423 int main() {
|
|
15424 $dbfunc()
|
|
15425 ; return 0; }
|
|
15426 EOF
|
2048
|
15427 if { (eval echo configure:15428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1443
|
15428 rm -rf conftest*
|
|
15429 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15430 else
|
|
15431 echo "configure: failed program was:" >&5
|
|
15432 cat conftest.$ac_ext >&5
|
|
15433 rm -rf conftest*
|
|
15434 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15435 fi
|
|
15436 rm -f conftest*
|
|
15437 xe_check_libs=""
|
|
15438
|
|
15439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15440 echo "$ac_t""yes" 1>&6
|
|
15441 with_database_berkdb=yes need_libdb=yes
|
|
15442 else
|
|
15443 echo "$ac_t""no" 1>&6
|
|
15444 fi
|
|
15445
|
|
15446
|
|
15447 fi
|
|
15448
|
149
|
15449 if test "$with_database_berkdb" = "yes"; then
|
|
15450 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
15451 Defining DB_H_FILE = "$db_h_file"
|
|
15452 EOF
|
|
15453 cat >> confdefs.h <<EOF
|
|
15454 #define DB_H_FILE "$db_h_file"
|
149
|
15455 EOF
|
|
15456 }
|
|
15457
|
|
15458 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15459 Defining HAVE_BERKELEY_DB
|
|
15460 EOF
|
|
15461 cat >> confdefs.h <<\EOF
|
|
15462 #define HAVE_BERKELEY_DB 1
|
|
15463 EOF
|
|
15464 }
|
|
15465
|
151
|
15466 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
|
149
|
15467 else with_database_berkdb=no
|
|
15468 fi
|
|
15469 fi
|
|
15470
|
426
|
15471 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
|
272
|
15472 != "no no no"; then
|
149
|
15473 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15474 Defining HAVE_DATABASE
|
|
15475 EOF
|
|
15476 cat >> confdefs.h <<\EOF
|
|
15477 #define HAVE_DATABASE 1
|
|
15478 EOF
|
|
15479 }
|
|
15480
|
|
15481 fi
|
|
15482
|
|
15483 if test "$with_socks" = "yes"; then
|
|
15484
|
|
15485 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
|
2048
|
15486 echo "configure:15487: checking for SOCKSinit in -lsocks" >&5
|
149
|
15487 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
|
|
15488
|
|
15489 xe_check_libs=" -lsocks "
|
|
15490 cat > conftest.$ac_ext <<EOF
|
2048
|
15491 #line 15492 "configure"
|
149
|
15492 #include "confdefs.h"
|
|
15493 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15494 /* We use char because int might match the return type of a gcc2
|
|
15495 builtin and then its argument prototype would still apply. */
|
|
15496 char SOCKSinit();
|
|
15497
|
|
15498 int main() {
|
|
15499 SOCKSinit()
|
|
15500 ; return 0; }
|
|
15501 EOF
|
2048
|
15502 if { (eval echo configure:15503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15503 rm -rf conftest*
|
|
15504 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15505 else
|
|
15506 echo "configure: failed program was:" >&5
|
|
15507 cat conftest.$ac_ext >&5
|
|
15508 rm -rf conftest*
|
|
15509 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15510 fi
|
|
15511 rm -f conftest*
|
|
15512 xe_check_libs=""
|
|
15513
|
151
|
15514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
15515 echo "$ac_t""yes" 1>&6
|
|
15516 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
15517 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
15518 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15519 Defining $ac_tr_lib
|
|
15520 EOF
|
|
15521 cat >> confdefs.h <<EOF
|
|
15522 #define $ac_tr_lib 1
|
|
15523 EOF
|
|
15524 }
|
|
15525
|
151
|
15526 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
|
149
|
15527
|
|
15528 else
|
|
15529 echo "$ac_t""no" 1>&6
|
|
15530 fi
|
|
15531
|
|
15532
|
|
15533 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15534 Defining HAVE_SOCKS
|
|
15535 EOF
|
|
15536 cat >> confdefs.h <<\EOF
|
|
15537 #define HAVE_SOCKS 1
|
|
15538 EOF
|
|
15539 }
|
|
15540
|
|
15541 fi
|
|
15542
|
|
15543 if test "$usage_tracking" = "yes"; then
|
|
15544 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15545 Defining USAGE_TRACKING
|
|
15546 EOF
|
|
15547 cat >> confdefs.h <<\EOF
|
|
15548 #define USAGE_TRACKING 1
|
|
15549 EOF
|
|
15550 }
|
|
15551
|
151
|
15552 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
|
149
|
15553 fi
|
|
15554
|
1984
|
15555 if test "$use_number_lib" = "gmp"; then
|
|
15556 ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
|
|
15557 echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
|
2048
|
15558 echo "configure:15559: checking for gmp.h" >&5
|
|
15559
|
|
15560 cat > conftest.$ac_ext <<EOF
|
|
15561 #line 15562 "configure"
|
1984
|
15562 #include "confdefs.h"
|
|
15563 #include <gmp.h>
|
|
15564 EOF
|
|
15565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
15566 { (eval echo configure:15567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1984
|
15567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
15568 if test -z "$ac_err"; then
|
|
15569 rm -rf conftest*
|
|
15570 eval "ac_cv_header_$ac_safe=yes"
|
|
15571 else
|
|
15572 echo "$ac_err" >&5
|
|
15573 echo "configure: failed program was:" >&5
|
|
15574 cat conftest.$ac_ext >&5
|
|
15575 rm -rf conftest*
|
|
15576 eval "ac_cv_header_$ac_safe=no"
|
|
15577 fi
|
|
15578 rm -f conftest*
|
|
15579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
15580 echo "$ac_t""yes" 1>&6
|
|
15581
|
|
15582
|
|
15583 echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6
|
2048
|
15584 echo "configure:15585: checking for __gmpz_init in -lgmp" >&5
|
1984
|
15585 ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
|
|
15586
|
|
15587 xe_check_libs=" -lgmp "
|
|
15588 cat > conftest.$ac_ext <<EOF
|
2048
|
15589 #line 15590 "configure"
|
1984
|
15590 #include "confdefs.h"
|
|
15591 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15592 /* We use char because int might match the return type of a gcc2
|
|
15593 builtin and then its argument prototype would still apply. */
|
|
15594 char __gmpz_init();
|
|
15595
|
|
15596 int main() {
|
|
15597 __gmpz_init()
|
|
15598 ; return 0; }
|
|
15599 EOF
|
2048
|
15600 if { (eval echo configure:15601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1984
|
15601 rm -rf conftest*
|
|
15602 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15603 else
|
|
15604 echo "configure: failed program was:" >&5
|
|
15605 cat conftest.$ac_ext >&5
|
|
15606 rm -rf conftest*
|
|
15607 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15608 fi
|
|
15609 rm -f conftest*
|
|
15610 xe_check_libs=""
|
|
15611
|
|
15612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15613 echo "$ac_t""yes" 1>&6
|
|
15614 have_mpz_init=yes
|
|
15615 else
|
|
15616 echo "$ac_t""no" 1>&6
|
|
15617 fi
|
|
15618
|
|
15619
|
|
15620 else
|
|
15621 echo "$ac_t""no" 1>&6
|
|
15622 fi
|
|
15623
|
|
15624 if test "$have_mpz_init" = "yes"; then
|
|
15625 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15626 Defining WITH_NUMBER_TYPES
|
|
15627 EOF
|
|
15628 cat >> confdefs.h <<\EOF
|
|
15629 #define WITH_NUMBER_TYPES 1
|
|
15630 EOF
|
|
15631 }
|
|
15632
|
|
15633 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15634 Defining WITH_GMP
|
|
15635 EOF
|
|
15636 cat >> confdefs.h <<\EOF
|
|
15637 #define WITH_GMP 1
|
|
15638 EOF
|
|
15639 }
|
|
15640
|
|
15641 LIBS="-lgmp $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgmp\" to \$LIBS"; fi
|
|
15642 else
|
|
15643 { echo "Error:" "Required GMP numeric support cannot be provided." >&2; exit 1; }
|
|
15644 fi
|
|
15645 elif test "$use_number_lib" = "mp"; then
|
1997
|
15646 for library in "" "-lcrypto"; do
|
|
15647 ac_safe=`echo "mp.h" | sed 'y%./+-%__p_%'`
|
1984
|
15648 echo $ac_n "checking for mp.h""... $ac_c" 1>&6
|
2048
|
15649 echo "configure:15650: checking for mp.h" >&5
|
|
15650
|
|
15651 cat > conftest.$ac_ext <<EOF
|
|
15652 #line 15653 "configure"
|
1984
|
15653 #include "confdefs.h"
|
|
15654 #include <mp.h>
|
|
15655 EOF
|
|
15656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2048
|
15657 { (eval echo configure:15658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1984
|
15658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
15659 if test -z "$ac_err"; then
|
|
15660 rm -rf conftest*
|
|
15661 eval "ac_cv_header_$ac_safe=yes"
|
|
15662 else
|
|
15663 echo "$ac_err" >&5
|
|
15664 echo "configure: failed program was:" >&5
|
|
15665 cat conftest.$ac_ext >&5
|
|
15666 rm -rf conftest*
|
|
15667 eval "ac_cv_header_$ac_safe=no"
|
|
15668 fi
|
|
15669 rm -f conftest*
|
|
15670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
15671 echo "$ac_t""yes" 1>&6
|
|
15672
|
1997
|
15673
|
|
15674 xe_msg_checking="for mp_mfree in -lmp"
|
|
15675 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library"
|
|
15676 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2048
|
15677 echo "configure:15678: checking "$xe_msg_checking"" >&5
|
1984
|
15678 ac_lib_var=`echo mp'_'mp_mfree | sed 'y%./+-%__p_%'`
|
|
15679
|
1997
|
15680 xe_check_libs=" -lmp $library"
|
|
15681 cat > conftest.$ac_ext <<EOF
|
2048
|
15682 #line 15683 "configure"
|
1984
|
15683 #include "confdefs.h"
|
|
15684 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15685 /* We use char because int might match the return type of a gcc2
|
|
15686 builtin and then its argument prototype would still apply. */
|
|
15687 char mp_mfree();
|
|
15688
|
|
15689 int main() {
|
|
15690 mp_mfree()
|
|
15691 ; return 0; }
|
|
15692 EOF
|
2048
|
15693 if { (eval echo configure:15694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2009
|
15694 rm -rf conftest*
|
|
15695 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15696 else
|
|
15697 echo "configure: failed program was:" >&5
|
|
15698 cat conftest.$ac_ext >&5
|
|
15699 rm -rf conftest*
|
|
15700 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15701 fi
|
|
15702 rm -f conftest*
|
|
15703 xe_check_libs=""
|
|
15704
|
|
15705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15706 echo "$ac_t""yes" 1>&6
|
|
15707 have_mp_mfree=yes; break
|
1997
|
15708 else
|
|
15709 echo "$ac_t""no" 1>&6
|
|
15710
|
|
15711 xe_msg_checking="for mfree in -lmp"
|
|
15712 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library"
|
|
15713 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
2048
|
15714 echo "configure:15715: checking "$xe_msg_checking"" >&5
|
1984
|
15715 ac_lib_var=`echo mp'_'mfree | sed 'y%./+-%__p_%'`
|
|
15716
|
1997
|
15717 xe_check_libs=" -lmp $library"
|
|
15718 cat > conftest.$ac_ext <<EOF
|
2048
|
15719 #line 15720 "configure"
|
1984
|
15720 #include "confdefs.h"
|
|
15721 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15722 /* We use char because int might match the return type of a gcc2
|
|
15723 builtin and then its argument prototype would still apply. */
|
|
15724 char mfree();
|
|
15725
|
|
15726 int main() {
|
|
15727 mfree()
|
|
15728 ; return 0; }
|
|
15729 EOF
|
2048
|
15730 if { (eval echo configure:15731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2009
|
15731 rm -rf conftest*
|
|
15732 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15733 else
|
|
15734 echo "configure: failed program was:" >&5
|
|
15735 cat conftest.$ac_ext >&5
|
|
15736 rm -rf conftest*
|
|
15737 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15738 fi
|
|
15739 rm -f conftest*
|
|
15740 xe_check_libs=""
|
|
15741
|
|
15742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15743 echo "$ac_t""yes" 1>&6
|
|
15744 have_mfree=yes; break
|
1997
|
15745 else
|
|
15746 echo "$ac_t""no" 1>&6
|
|
15747 fi
|
|
15748
|
|
15749
|
|
15750 fi
|
|
15751
|
|
15752
|
|
15753 else
|
|
15754 echo "$ac_t""no" 1>&6
|
|
15755 fi
|
|
15756
|
|
15757 done
|
1984
|
15758 if test "$have_mp_mfree" = "yes"; then
|
|
15759 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15760 Defining MP_PREFIX
|
|
15761 EOF
|
|
15762 cat >> confdefs.h <<\EOF
|
|
15763 #define MP_PREFIX 1
|
|
15764 EOF
|
|
15765 }
|
|
15766
|
1997
|
15767 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi
|
2009
|
15768 if test "$library" != ""; then
|
|
15769 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi
|
|
15770 fi
|
1984
|
15771 echo $ac_n "checking for mp_move""... $ac_c" 1>&6
|
2048
|
15772 echo "configure:15773: checking for mp_move" >&5
|
|
15773
|
|
15774 cat > conftest.$ac_ext <<EOF
|
|
15775 #line 15776 "configure"
|
1984
|
15776 #include "confdefs.h"
|
|
15777 /* System header to define __stub macros and hopefully few prototypes,
|
|
15778 which can conflict with char mp_move(); below. */
|
|
15779 #include <assert.h>
|
|
15780 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15781 /* We use char because int might match the return type of a gcc2
|
|
15782 builtin and then its argument prototype would still apply. */
|
|
15783 char mp_move();
|
|
15784
|
|
15785 int main() {
|
|
15786
|
|
15787 /* The GNU C library defines this for functions which it implements
|
|
15788 to always fail with ENOSYS. Some functions are actually named
|
|
15789 something starting with __ and the normal name is an alias. */
|
|
15790 #if defined (__stub_mp_move) || defined (__stub___mp_move)
|
|
15791 choke me
|
|
15792 #else
|
|
15793 mp_move();
|
|
15794 #endif
|
|
15795
|
|
15796 ; return 0; }
|
|
15797 EOF
|
2048
|
15798 if { (eval echo configure:15799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1984
|
15799 rm -rf conftest*
|
|
15800 eval "ac_cv_func_mp_move=yes"
|
|
15801 else
|
|
15802 echo "configure: failed program was:" >&5
|
|
15803 cat conftest.$ac_ext >&5
|
|
15804 rm -rf conftest*
|
|
15805 eval "ac_cv_func_mp_move=no"
|
|
15806 fi
|
|
15807 rm -f conftest*
|
|
15808
|
|
15809 if eval "test \"`echo '$ac_cv_func_'mp_move`\" = yes"; then
|
|
15810 echo "$ac_t""yes" 1>&6
|
|
15811 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15812 Defining HAVE_MP_MOVE
|
|
15813 EOF
|
|
15814 cat >> confdefs.h <<\EOF
|
|
15815 #define HAVE_MP_MOVE 1
|
|
15816 EOF
|
|
15817 }
|
|
15818
|
|
15819 else
|
|
15820 echo "$ac_t""no" 1>&6
|
|
15821 fi
|
|
15822
|
|
15823 elif test "$have_mfree" = "yes"; then
|
1997
|
15824 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi
|
2009
|
15825 if test "$library" != ""; then
|
|
15826 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi
|
|
15827 fi
|
1984
|
15828 echo $ac_n "checking for move""... $ac_c" 1>&6
|
2048
|
15829 echo "configure:15830: checking for move" >&5
|
|
15830
|
|
15831 cat > conftest.$ac_ext <<EOF
|
|
15832 #line 15833 "configure"
|
1984
|
15833 #include "confdefs.h"
|
|
15834 /* System header to define __stub macros and hopefully few prototypes,
|
|
15835 which can conflict with char move(); below. */
|
|
15836 #include <assert.h>
|
|
15837 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15838 /* We use char because int might match the return type of a gcc2
|
|
15839 builtin and then its argument prototype would still apply. */
|
|
15840 char move();
|
|
15841
|
|
15842 int main() {
|
|
15843
|
|
15844 /* The GNU C library defines this for functions which it implements
|
|
15845 to always fail with ENOSYS. Some functions are actually named
|
|
15846 something starting with __ and the normal name is an alias. */
|
|
15847 #if defined (__stub_move) || defined (__stub___move)
|
|
15848 choke me
|
|
15849 #else
|
|
15850 move();
|
|
15851 #endif
|
|
15852
|
|
15853 ; return 0; }
|
|
15854 EOF
|
2048
|
15855 if { (eval echo configure:15856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1984
|
15856 rm -rf conftest*
|
|
15857 eval "ac_cv_func_move=yes"
|
|
15858 else
|
|
15859 echo "configure: failed program was:" >&5
|
|
15860 cat conftest.$ac_ext >&5
|
|
15861 rm -rf conftest*
|
|
15862 eval "ac_cv_func_move=no"
|
|
15863 fi
|
|
15864 rm -f conftest*
|
|
15865
|
|
15866 if eval "test \"`echo '$ac_cv_func_'move`\" = yes"; then
|
|
15867 echo "$ac_t""yes" 1>&6
|
|
15868 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15869 Defining HAVE_MP_MOVE
|
|
15870 EOF
|
|
15871 cat >> confdefs.h <<\EOF
|
|
15872 #define HAVE_MP_MOVE 1
|
|
15873 EOF
|
|
15874 }
|
|
15875
|
|
15876 else
|
|
15877 echo "$ac_t""no" 1>&6
|
|
15878 fi
|
|
15879
|
|
15880 else
|
|
15881 { echo "Error:" "Required MP numeric support cannot be provided." >&2; exit 1; }
|
|
15882 fi
|
|
15883 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15884 Defining WITH_NUMBER_TYPES
|
|
15885 EOF
|
|
15886 cat >> confdefs.h <<\EOF
|
|
15887 #define WITH_NUMBER_TYPES 1
|
|
15888 EOF
|
|
15889 }
|
|
15890
|
|
15891 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15892 Defining WITH_MP
|
|
15893 EOF
|
|
15894 cat >> confdefs.h <<\EOF
|
|
15895 #define WITH_MP 1
|
|
15896 EOF
|
|
15897 }
|
|
15898
|
|
15899 fi
|
|
15900
|
|
15901 cat > conftest.$ac_ext <<EOF
|
2048
|
15902 #line 15903 "configure"
|
272
|
15903 #include "confdefs.h"
|
|
15904 int main(int c,char *v[]){return 0;}
|
|
15905 EOF
|
2048
|
15906 if { (eval echo configure:15907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
272
|
15907 then
|
|
15908 :
|
|
15909 else
|
373
|
15910 conftest_rc="$?"
|
272
|
15911 echo "configure: failed program was:" >&5
|
|
15912 cat conftest.$ac_ext >&5
|
|
15913 rm -fr conftest*
|
|
15914
|
|
15915 echo ""
|
|
15916 echo "*** PANIC *** The C compiler can no longer build working executables."
|
|
15917 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
|
|
15918 echo "*** PANIC *** The most likely reason for this problem is that configure"
|
|
15919 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
|
|
15920 echo "*** PANIC *** found at run time."
|
|
15921 echo "*** PANIC ***"
|
|
15922 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
|
|
15923 echo "*** PANIC *** On other systems, try telling configure where to find the"
|
|
15924 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
|
|
15925 echo "*** PANIC ***"
|
|
15926 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
|
|
15927 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
|
|
15928 echo "*** PANIC *** on your system. Don't do that."
|
|
15929 exit 1
|
|
15930 fi
|
|
15931 rm -fr conftest*
|
|
15932
|
771
|
15933 if test "$win32_processes" != "yes"; then
|
398
|
15934 { test "$extra_verbose" = "yes" && cat << \EOF
|
263
|
15935 Defining HAVE_UNIX_PROCESSES
|
|
15936 EOF
|
|
15937 cat >> confdefs.h <<\EOF
|
|
15938 #define HAVE_UNIX_PROCESSES 1
|
|
15939 EOF
|
|
15940 }
|
|
15941
|
398
|
15942 fi
|
261
|
15943
|
155
|
15944
|
997
|
15945 if test "$with_modules" = "yes"; then
|
|
15946 ld_libs_module=
|
|
15947 else
|
|
15948
|
|
15949 T=""
|
|
15950 for W in $ldap_libs $postgresql_libs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15951 ld_libs_module="$T"
|
|
15952
|
|
15953 fi
|
|
15954
|
155
|
15955
|
|
15956 T=""
|
175
|
15957 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15958 CFLAGS="$T"
|
|
15959
|
|
15960
|
|
15961 T=""
|
155
|
15962 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15963 extra_objs="$T"
|
|
15964
|
|
15965
|
|
15966 T=""
|
|
15967 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
|
|
15968 c_switch_general="$T"
|
|
15969
|
|
15970
|
|
15971 T=""
|
462
|
15972 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
|
15973 c_switch_window_system="$T"
|
|
15974
|
|
15975
|
|
15976 T=""
|
|
15977 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15978 c_switch_all="$T"
|
|
15979
|
|
15980
|
|
15981 T=""
|
|
15982 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
|
|
15983 ld_switch_general="$T"
|
|
15984
|
|
15985
|
|
15986 T=""
|
|
15987 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15988 ld_switch_window_system="$T"
|
|
15989
|
|
15990
|
|
15991 T=""
|
|
15992 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15993 ld_switch_all="$T"
|
|
15994
|
|
15995
|
|
15996 T=""
|
|
15997 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15998 ld_libs_general="$T"
|
|
15999
|
|
16000
|
|
16001 T=""
|
462
|
16002 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
|
16003 ld_libs_window_system="$T"
|
|
16004
|
|
16005
|
|
16006 T=""
|
997
|
16007 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
|
16008 ld_libs_all="$T"
|
|
16009
|
149
|
16010
|
1491
|
16011 if test "$with_modules" = "no"; then
|
|
16012 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
|
16013 fi
|
|
16014
|
|
16015
|
380
|
16016 internal_makefile_list="Makefile.in"
|
149
|
16017 SUBDIR_MAKEFILES=''
|
151
|
16018 test -d lock || mkdir lock
|
149
|
16019 for dir in $MAKE_SUBDIR; do
|
167
|
16020 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
|
|
16021 test -d "$d" || mkdir "$d"; cd "$d"
|
|
16022 done ) ;;
|
|
16023 * ) test -d "$dir" || mkdir "$dir" ;;
|
|
16024 esac
|
155
|
16025
|
|
16026 T=""
|
384
|
16027 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
155
|
16028 SUBDIR_MAKEFILES="$T"
|
|
16029
|
|
16030
|
|
16031 T=""
|
|
16032 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
16033 internal_makefile_list="$T"
|
|
16034
|
149
|
16035 done
|
|
16036
|
|
16037
|
|
16038
|
167
|
16039
|
157
|
16040 for dir in src/s src/m; do
|
|
16041 if test ! -d "$dir" ; then
|
|
16042 echo Making symbolic link to "$srcdir/$dir"
|
|
16043 ${LN_S} "$srcdir/$dir" "$dir"
|
|
16044 fi
|
|
16045 done
|
|
16046
|
1111
|
16047 if test "$need_modules_common" = "yes"; then
|
|
16048 for dir in modules/common; do
|
|
16049 if test ! -d "$dir" ; then
|
|
16050 echo Making symbolic link to "$srcdir/$dir"
|
|
16051 ${LN_S} "$srcdir/$dir" "$dir"
|
|
16052 fi
|
|
16053 done
|
|
16054 fi
|
|
16055
|
149
|
16056 if test "$extra_verbose" = "yes"; then
|
151
|
16057 echo ""
|
163
|
16058 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
|
16059 echo ""
|
|
16060 fi
|
|
16061
|
438
|
16062
|
|
16063 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
|
|
16064 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
|
|
16065 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
|
|
16066 fi
|
|
16067
|
|
16068 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
|
|
16069 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
|
|
16070 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
|
|
16071 fi
|
|
16072
|
|
16073 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
|
|
16074 test "$extra_verbose" = "yes" && echo "creating TAGS"
|
|
16075 echo "
|
|
16076 $srcdir/TAGS,include" > "TAGS"
|
151
|
16077 fi
|
|
16078
|
373
|
16079 if test "$__SUNPRO_C" = "yes"; then
|
438
|
16080 test "$extra_verbose" = "yes" && echo "creating .sbinit"
|
157
|
16081 ( echo "# For use with Sun WorkShop's Source browser."
|
|
16082 echo "# See sbquery(1) and sbinit(4) for more information"
|
|
16083 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
|
|
16084 ) > .sbinit
|
|
16085 fi
|
151
|
16086
|
|
16087 rm -f core
|
|
16088
|
149
|
16089
|
|
16090
|
|
16091
|
|
16092
|
|
16093
|
|
16094
|
|
16095
|
|
16096
|
|
16097
|
|
16098
|
|
16099
|
|
16100
|
|
16101
|
|
16102
|
280
|
16103
|
420
|
16104
|
422
|
16105
|
|
16106
|
278
|
16107 PREFIX=$prefix
|
|
16108 while true; do
|
|
16109 case "$PREFIX" in
|
|
16110 *\$* ) eval "PREFIX=$PREFIX" ;;
|
|
16111 *) break ;;
|
|
16112 esac
|
|
16113 done
|
|
16114
|
|
16115
|
|
16116
|
420
|
16117
|
278
|
16118 EXEC_PREFIX=$exec_prefix
|
|
16119 while true; do
|
|
16120 case "$EXEC_PREFIX" in
|
|
16121 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
|
|
16122 *) break ;;
|
|
16123 esac
|
|
16124 done
|
|
16125
|
149
|
16126
|
|
16127
|
|
16128
|
274
|
16129 INFODIR=$infodir
|
|
16130 while true; do
|
|
16131 case "$INFODIR" in
|
|
16132 *\$* ) eval "INFODIR=$INFODIR" ;;
|
|
16133 *) break ;;
|
|
16134 esac
|
|
16135 done
|
|
16136
|
|
16137
|
|
16138
|
|
16139
|
|
16140 INFOPATH=$infopath
|
|
16141 while true; do
|
|
16142 case "$INFOPATH" in
|
|
16143 *\$* ) eval "INFOPATH=$INFOPATH" ;;
|
|
16144 *) break ;;
|
|
16145 esac
|
|
16146 done
|
|
16147
|
|
16148
|
|
16149
|
|
16150
|
|
16151 PACKAGE_PATH=$package_path
|
|
16152 while true; do
|
|
16153 case "$PACKAGE_PATH" in
|
|
16154 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
|
|
16155 *) break ;;
|
|
16156 esac
|
|
16157 done
|
|
16158
|
|
16159
|
|
16160
|
|
16161
|
|
16162 LISPDIR=$lispdir
|
|
16163 while true; do
|
|
16164 case "$LISPDIR" in
|
|
16165 *\$* ) eval "LISPDIR=$LISPDIR" ;;
|
|
16166 *) break ;;
|
|
16167 esac
|
|
16168 done
|
|
16169
|
|
16170
|
|
16171
|
|
16172
|
388
|
16173 MODULEDIR=$moduledir
|
|
16174 while true; do
|
|
16175 case "$MODULEDIR" in
|
|
16176 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
|
|
16177 *) break ;;
|
|
16178 esac
|
|
16179 done
|
|
16180
|
|
16181
|
|
16182
|
|
16183
|
|
16184 SITELISPDIR=$sitelispdir
|
|
16185 while true; do
|
|
16186 case "$SITELISPDIR" in
|
|
16187 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
|
|
16188 *) break ;;
|
|
16189 esac
|
|
16190 done
|
|
16191
|
|
16192
|
|
16193
|
|
16194
|
|
16195 SITEMODULEDIR=$sitemoduledir
|
|
16196 while true; do
|
|
16197 case "$SITEMODULEDIR" in
|
|
16198 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
|
|
16199 *) break ;;
|
|
16200 esac
|
|
16201 done
|
|
16202
|
|
16203
|
|
16204
|
274
|
16205
|
|
16206 ETCDIR=$etcdir
|
|
16207 while true; do
|
|
16208 case "$ETCDIR" in
|
|
16209 *\$* ) eval "ETCDIR=$ETCDIR" ;;
|
|
16210 *) break ;;
|
|
16211 esac
|
|
16212 done
|
|
16213
|
|
16214
|
|
16215
|
|
16216
|
420
|
16217 DOCDIR=$docdir
|
|
16218 while true; do
|
|
16219 case "$DOCDIR" in
|
|
16220 *\$* ) eval "DOCDIR=$DOCDIR" ;;
|
|
16221 *) break ;;
|
|
16222 esac
|
|
16223 done
|
|
16224
|
|
16225
|
|
16226
|
|
16227
|
274
|
16228 ARCHLIBDIR=$archlibdir
|
|
16229 while true; do
|
|
16230 case "$ARCHLIBDIR" in
|
|
16231 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
|
|
16232 *) break ;;
|
|
16233 esac
|
|
16234 done
|
149
|
16235
|
|
16236
|
|
16237
|
|
16238
|
|
16239
|
|
16240
|
|
16241
|
|
16242
|
|
16243
|
|
16244
|
|
16245
|
|
16246
|
|
16247
|
|
16248
|
|
16249
|
|
16250
|
203
|
16251
|
207
|
16252
|
263
|
16253
|
267
|
16254
|
173
|
16255 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
|
|
16256
|
|
16257
|
|
16258
|
|
16259
|
|
16260
|
|
16261
|
|
16262
|
594
|
16263
|
380
|
16264
|
1889
|
16265
|
420
|
16266 if test "$with_prefix" = "yes"; then
|
|
16267 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16268 Defining PREFIX_USER_DEFINED
|
|
16269 EOF
|
|
16270 cat >> confdefs.h <<\EOF
|
|
16271 #define PREFIX_USER_DEFINED 1
|
|
16272 EOF
|
|
16273 }
|
|
16274
|
|
16275 fi
|
380
|
16276
|
267
|
16277 if test "$with_site_lisp" = "no"; then
|
|
16278 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16279 Defining INHIBIT_SITE_LISP
|
|
16280 EOF
|
|
16281 cat >> confdefs.h <<\EOF
|
|
16282 #define INHIBIT_SITE_LISP 1
|
|
16283 EOF
|
|
16284 }
|
|
16285
|
|
16286 fi
|
388
|
16287 if test "$with_site_modules" = "no"; then
|
|
16288 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16289 Defining INHIBIT_SITE_MODULES
|
|
16290 EOF
|
|
16291 cat >> confdefs.h <<\EOF
|
|
16292 #define INHIBIT_SITE_MODULES 1
|
|
16293 EOF
|
|
16294 }
|
|
16295
|
|
16296 fi
|
155
|
16297
|
207
|
16298
|
|
16299 T=""
|
|
16300 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
16301 ac_configure_args="$T"
|
|
16302
|
149
|
16303 { test "$extra_verbose" = "yes" && cat << EOF
|
424
|
16304 Defining EMACS_CONFIGURATION = "$configuration"
|
149
|
16305 EOF
|
|
16306 cat >> confdefs.h <<EOF
|
424
|
16307 #define EMACS_CONFIGURATION "$configuration"
|
149
|
16308 EOF
|
|
16309 }
|
|
16310
|
|
16311 { test "$extra_verbose" = "yes" && cat << EOF
|
207
|
16312 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
|
173
|
16313 EOF
|
|
16314 cat >> confdefs.h <<EOF
|
207
|
16315 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
|
173
|
16316 EOF
|
|
16317 }
|
|
16318
|
149
|
16319
|
|
16320
|
|
16321 null_string=""
|
|
16322 { test "$extra_verbose" = "yes" && cat << EOF
|
|
16323 Defining LD_SWITCH_X_SITE = $null_string
|
|
16324 EOF
|
|
16325 cat >> confdefs.h <<EOF
|
|
16326 #define LD_SWITCH_X_SITE $null_string
|
|
16327 EOF
|
|
16328 }
|
|
16329
|
|
16330 { test "$extra_verbose" = "yes" && cat << EOF
|
|
16331 Defining LD_SWITCH_X_SITE_AUX = $null_string
|
|
16332 EOF
|
|
16333 cat >> confdefs.h <<EOF
|
|
16334 #define LD_SWITCH_X_SITE_AUX $null_string
|
|
16335 EOF
|
|
16336 }
|
|
16337
|
|
16338 { test "$extra_verbose" = "yes" && cat << EOF
|
|
16339 Defining C_SWITCH_X_SITE = $null_string
|
|
16340 EOF
|
|
16341 cat >> confdefs.h <<EOF
|
|
16342 #define C_SWITCH_X_SITE $null_string
|
|
16343 EOF
|
|
16344 }
|
|
16345
|
|
16346 { test "$extra_verbose" = "yes" && cat << EOF
|
|
16347 Defining LD_SWITCH_SITE = $null_string
|
|
16348 EOF
|
|
16349 cat >> confdefs.h <<EOF
|
|
16350 #define LD_SWITCH_SITE $null_string
|
|
16351 EOF
|
|
16352 }
|
|
16353
|
|
16354 { test "$extra_verbose" = "yes" && cat << EOF
|
|
16355 Defining C_SWITCH_SITE = $null_string
|
|
16356 EOF
|
|
16357 cat >> confdefs.h <<EOF
|
|
16358 #define C_SWITCH_SITE $null_string
|
|
16359 EOF
|
|
16360 }
|
|
16361
|
|
16362
|
|
16363
|
181
|
16364 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
16365 Defining GNU_MALLOC
|
|
16366 EOF
|
|
16367 cat >> confdefs.h <<\EOF
|
|
16368 #define GNU_MALLOC 1
|
|
16369 EOF
|
|
16370 }
|
|
16371
|
181
|
16372 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
16373 Defining USE_SYSTEM_MALLOC
|
|
16374 EOF
|
|
16375 cat >> confdefs.h <<\EOF
|
|
16376 #define USE_SYSTEM_MALLOC 1
|
|
16377 EOF
|
|
16378 }
|
|
16379
|
181
|
16380 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
16381 Defining USE_DEBUG_MALLOC
|
|
16382 EOF
|
|
16383 cat >> confdefs.h <<\EOF
|
|
16384 #define USE_DEBUG_MALLOC 1
|
|
16385 EOF
|
|
16386 }
|
|
16387
|
181
|
16388 { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
16389 Defining USE_SYSTEM_MALLOC
|
|
16390 EOF
|
|
16391 cat >> confdefs.h <<\EOF
|
|
16392 #define USE_SYSTEM_MALLOC 1
|
|
16393 EOF
|
|
16394 }
|
|
16395
|
149
|
16396 fi
|
169
|
16397 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
16398 Defining USE_GCC
|
|
16399 EOF
|
|
16400 cat >> confdefs.h <<\EOF
|
|
16401 #define USE_GCC 1
|
|
16402 EOF
|
|
16403 }
|
|
16404
|
|
16405 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16406 Defining EXTERNAL_WIDGET
|
|
16407 EOF
|
|
16408 cat >> confdefs.h <<\EOF
|
|
16409 #define EXTERNAL_WIDGET 1
|
|
16410 EOF
|
|
16411 }
|
|
16412
|
925
|
16413 test "$use_kkcc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16414 Defining USE_KKCC
|
|
16415 EOF
|
|
16416 cat >> confdefs.h <<\EOF
|
|
16417 #define USE_KKCC 1
|
|
16418 EOF
|
|
16419 }
|
|
16420
|
442
|
16421 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16422 Defining QUICK_BUILD
|
|
16423 EOF
|
|
16424 cat >> confdefs.h <<\EOF
|
|
16425 #define QUICK_BUILD 1
|
149
|
16426 EOF
|
|
16427 }
|
|
16428
|
380
|
16429 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16430 Defining PURIFY
|
|
16431 EOF
|
|
16432 cat >> confdefs.h <<\EOF
|
|
16433 #define PURIFY 1
|
|
16434 EOF
|
|
16435 }
|
|
16436
|
149
|
16437 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16438 Defining QUANTIFY
|
|
16439 EOF
|
|
16440 cat >> confdefs.h <<\EOF
|
|
16441 #define QUANTIFY 1
|
|
16442 EOF
|
|
16443 }
|
|
16444
|
|
16445 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16446 Defining MAIL_USE_POP
|
|
16447 EOF
|
|
16448 cat >> confdefs.h <<\EOF
|
|
16449 #define MAIL_USE_POP 1
|
|
16450 EOF
|
|
16451 }
|
|
16452
|
|
16453 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16454 Defining KERBEROS
|
|
16455 EOF
|
|
16456 cat >> confdefs.h <<\EOF
|
|
16457 #define KERBEROS 1
|
|
16458 EOF
|
|
16459 }
|
|
16460
|
|
16461 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16462 Defining HESIOD
|
|
16463 EOF
|
|
16464 cat >> confdefs.h <<\EOF
|
|
16465 #define HESIOD 1
|
|
16466 EOF
|
|
16467 }
|
|
16468
|
272
|
16469 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16470 Defining USE_UNION_TYPE
|
|
16471 EOF
|
|
16472 cat >> confdefs.h <<\EOF
|
|
16473 #define USE_UNION_TYPE 1
|
149
|
16474 EOF
|
0
|
16475 }
|
70
|
16476
|
424
|
16477 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16478 Defining PDUMP
|
|
16479 EOF
|
|
16480 cat >> confdefs.h <<\EOF
|
|
16481 #define PDUMP 1
|
|
16482 EOF
|
|
16483 }
|
|
16484
|
724
|
16485 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16486 Defining IPV6_CANONICALIZE
|
|
16487 EOF
|
|
16488 cat >> confdefs.h <<\EOF
|
|
16489 #define IPV6_CANONICALIZE 1
|
|
16490 EOF
|
|
16491 }
|
|
16492
|
70
|
16493
|
0
|
16494
|
1889
|
16495
|
118
|
16496 (
|
149
|
16497 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
|
|
16498 else
|
|
16499 echo "uname -a: `uname -a`"
|
|
16500 fi
|
|
16501 echo ""
|
|
16502 echo "$0 $quoted_arguments"
|
261
|
16503 ) > Installation
|
|
16504
|
414
|
16505 if test ! -z ${emacs_beta_version} ; then
|
|
16506 if test -z "${emacs_is_beta}" ; then
|
|
16507 xemacs_betaname=".${emacs_beta_version}"
|
|
16508 else
|
|
16509 xemacs_betaname="-b${emacs_beta_version}"
|
|
16510 fi
|
|
16511 else
|
430
|
16512 xemacs_betaname=""
|
414
|
16513 fi
|
149
|
16514
|
116
|
16515 (
|
0
|
16516 echo "
|
|
16517
|
975
|
16518 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" $xemacs_extra_name configured for \`$canonical'.
|
442
|
16519 "
|
|
16520 echo "
|
1889
|
16521 Compilation Environment and Installation Defaults:"
|
442
|
16522 echo " Source code location: $srcdir"
|
|
16523 echo " Installation prefix: $prefix"
|
70
|
16524 if test -n "$site_includes"; then
|
442
|
16525 echo " Additional header files: $site_includes"
|
149
|
16526 fi
|
|
16527 if test -n "$site_libraries"; then
|
442
|
16528 echo " Additional libraries: $site_libraries"
|
149
|
16529 fi
|
209
|
16530 if test -n "$site_prefixes"; then
|
442
|
16531 echo " Additional prefixes: $site_prefixes"
|
209
|
16532 fi
|
149
|
16533 if test -n "$runpath"; then
|
442
|
16534 echo " Runtime library search path: $runpath"
|
|
16535 fi
|
|
16536
|
|
16537 if test -n "$opsysfile"
|
|
16538 then echo " Operating system description file: \`$opsysfile'"
|
|
16539 else echo " Not using any operating system description file"
|
|
16540 fi
|
|
16541 if test -n "$machfile"
|
|
16542 then echo " Machine description file: \`$machfile'"
|
|
16543 else echo " Not using any machine description file"
|
|
16544 fi
|
|
16545
|
1889
|
16546 echo " Compiler version: $compiler_version"
|
|
16547 if test -n "$gcc_compiler_specs"; then
|
|
16548 echo " - GCC specs file: $gcc_compiler_specs"
|
|
16549 fi
|
|
16550 echo " - Compiler command: $XEMACS_CC $XE_CFLAGS"
|
|
16551 if test "$CC" != "$XEMACS_CC"; then
|
|
16552 echo " Compiler version for lib-src: (detection code unimplemented)"
|
|
16553 echo " - Compiler command for lib-src: $CC $CFLAGS"
|
|
16554 if test "$xemacs_cc_cc_mismatch" = "yes"; then
|
|
16555 echo " WARNING: CC and XEMACS_CC mismatched; check CFLAGS carefully."
|
|
16556 fi
|
|
16557 fi
|
|
16558 echo " libc version: $libc_version"
|
442
|
16559 echo " Relocating allocator for buffers: $rel_alloc"
|
|
16560 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
|
708
|
16561 case "$ld_switch_site" in
|
|
16562 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
|
|
16563 - Consider configuring with --pdump." ;;
|
|
16564 esac
|
442
|
16565
|
|
16566 echo "
|
|
16567 Window System:"
|
|
16568 if test "$with_msw" = "yes"; then
|
|
16569 echo " Compiling in support for the Microsoft window system."
|
|
16570 fi
|
|
16571 if test "$with_x11" = "yes"; then
|
|
16572 echo " Compiling in support for the X window system:"
|
|
16573 echo " - X Windows headers location: $x_includes"
|
|
16574 echo " - X Windows libraries location: $x_libraries"
|
|
16575 if test "$with_xauth" != yes; then
|
|
16576 echo " - Xau (X authority) not available."
|
|
16577 fi
|
|
16578 if test "$with_xmu" != yes; then
|
|
16579 echo " - Xmu library not available; substituting equivalent routines."
|
|
16580 fi
|
|
16581 if test "$with_wmcommand" != no; then
|
|
16582 echo " - Handling WM_COMMAND properly."
|
|
16583 fi
|
|
16584 fi
|
|
16585 if test "$need_athena" = "yes"; then
|
|
16586 echo " Compiling in support for the Athena widget set:"
|
|
16587 echo " - Athena headers location: $athena_h_path"
|
|
16588 echo " - Athena library to link: $athena_lib"
|
|
16589 fi
|
|
16590 case "$with_menubars" in
|
462
|
16591 gtk ) echo " Using GTK menubars." ;;
|
442
|
16592 lucid ) echo " Using Lucid menubars." ;;
|
|
16593 motif ) echo " Using Motif menubars."
|
|
16594 echo " *WARNING* The Motif menubar implementation is currently buggy."
|
|
16595 echo " We recommend using the Lucid menubar instead."
|
|
16596 echo " Re-run configure with --with-menubars='lucid'." ;;
|
|
16597 msw ) echo " Using MS-Windows menubars." ;;
|
|
16598 esac
|
|
16599 case "$with_scrollbars" in
|
462
|
16600 gtk ) echo " Using GTK scrollbars." ;;
|
442
|
16601 lucid ) echo " Using Lucid scrollbars." ;;
|
|
16602 motif ) echo " Using Motif scrollbars." ;;
|
|
16603 athena ) echo " Using Athena scrollbars." ;;
|
|
16604 msw ) echo " Using MS-Windows scrollbars." ;;
|
|
16605 esac
|
|
16606 case "$with_dialogs" in
|
462
|
16607 gtk ) echo " Using GTK dialog boxes." ;;
|
442
|
16608 motif ) echo " Using Motif dialog boxes."
|
|
16609 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
|
|
16610 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
|
|
16611 echo " We recommend using the Athena dialog boxes instead."
|
|
16612 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
|
|
16613 echo " Read the PROBLEMS file for more information."
|
|
16614 fi; fi ;;
|
|
16615 athena ) echo " Using Athena dialog boxes." ;;
|
|
16616 msw ) echo " Using MS-Windows dialog boxes." ;;
|
|
16617 esac
|
|
16618 case "$with_widgets" in
|
462
|
16619 gtk ) echo " Using GTK native widgets." ;;
|
442
|
16620 motif ) echo " Using Motif native widgets." ;;
|
|
16621 athena ) echo " Using Athena native widgets." ;;
|
|
16622 msw ) echo " Using MS-Windows native widgets." ;;
|
|
16623 esac
|
|
16624 if test "$with_dragndrop" = yes; then
|
|
16625 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
|
|
16626 echo " - Drag'n'Drop prototype: $dragndrop_proto."
|
|
16627 fi
|
|
16628
|
|
16629 echo "
|
|
16630 TTY:"
|
|
16631 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
16632 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
|
|
16633
|
|
16634 echo "
|
|
16635 Images:"
|
|
16636 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
|
153
|
16637 if test "$with_xpm" = yes; then
|
442
|
16638 echo " Compiling in support for XPM images."
|
175
|
16639 elif test "$with_x11" = yes; then
|
442
|
16640 echo " WARNING: -----------------------------------------------------------"
|
|
16641 echo " WARNING: Compiling without XPM image support."
|
373
|
16642 if test "$xpm_problem" != ""; then
|
|
16643 echo " Reason: $xpm_problem"
|
|
16644 fi
|
|
16645 echo " WARNING: You should strongly consider installing XPM."
|
151
|
16646 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
|
373
|
16647 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
442
|
16648 echo " WARNING: -----------------------------------------------------------"
|
371
|
16649 fi
|
373
|
16650 if test "$with_png" = yes; then
|
442
|
16651 echo " Compiling in support for PNG images."
|
373
|
16652 elif test "$window_system" != "none"; then
|
442
|
16653 echo " WARNING: -----------------------------------------------------------"
|
373
|
16654 echo " WARNING: Compiling without PNG image support."
|
|
16655 if test "$png_problem" != ""; then
|
|
16656 echo " Reason: $png_problem"
|
|
16657 fi
|
|
16658 echo " WARNING: You should strongly consider installing the PNG libraries."
|
|
16659 echo " WARNING: Otherwise certain images and glyphs may not display."
|
|
16660 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
442
|
16661 echo " WARNING: -----------------------------------------------------------"
|
|
16662 fi
|
|
16663 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
|
|
16664 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
|
310
|
16665 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
|
432
|
16666
|
442
|
16667 echo "
|
|
16668 Sound:"
|
|
16669 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
|
|
16670 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
|
|
16671 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
|
|
16672 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
|
|
16673
|
|
16674 echo "
|
|
16675 Databases:"
|
|
16676 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
|
116
|
16677 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
426
|
16678 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
|
442
|
16679 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
|
|
16680 if test "$with_postgresql" = yes; then
|
|
16681 echo " Compiling in support for PostgreSQL."
|
|
16682 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
|
|
16683 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
|
|
16684 fi
|
|
16685
|
|
16686 echo "
|
|
16687 Internationalization:"
|
|
16688 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
|
|
16689 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
|
|
16690 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
|
|
16691 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
|
|
16692 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
|
|
16693 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
120
|
16694 if test "$with_wnn" = yes; then
|
|
16695 echo " Compiling in support for the WNN input method on Mule."
|
442
|
16696 test "$with_wnn6" = yes && echo " - Using WNN version 6."
|
|
16697 fi
|
|
16698
|
|
16699 echo "
|
|
16700 Mail:"
|
|
16701 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
|
|
16702 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
|
|
16703 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
|
|
16704 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
|
|
16705
|
|
16706 echo "
|
|
16707 Other Features:"
|
708
|
16708 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
|
116
|
16709 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
149
|
16710 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
|
442
|
16711 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
16712 test "$with_dnet" = yes && echo " Compiling in support for DNET."
|
|
16713 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
|
1984
|
16714 test "$use_number_lib" = "gmp" && echo " Compiling in support for more number types using the GNU MP library."
|
|
16715 test "$use_number_lib" = "mp" && echo " Compiling in support for more number types using the BSD MP library."
|
1202
|
16716 if test "$use_union_type" = yes ; then
|
|
16717 echo " Using the union type for Lisp_Objects."
|
|
16718 echo " WARNING: ---------------------------------------------------------"
|
|
16719 echo " WARNING: This tends to trigger compiler bugs, especially when"
|
|
16720 echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have"
|
|
16721 echo " WARNING: been seen with various versions of GCC, and recently"
|
|
16722 echo " WARNING: with Visual C++ as well."
|
|
16723 echo " WARNING: ---------------------------------------------------------"
|
|
16724 fi
|
|
16725 test "$use_union_type" = yes && echo " WARNING: Use of the union type may cause crashes due to compiler bugs."
|
925
|
16726 test "$use_kkcc" = yes && echo " Using the new GC algorithms."
|
442
|
16727 test "$pdump" = yes && echo " Using the new portable dumper."
|
|
16728 test "$debug" = yes && echo " Compiling in support for extra debugging code."
|
|
16729 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
|
800
|
16730 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
|
16731 != "no no no no no no no no no"; then
|
151
|
16732 echo " WARNING: ---------------------------------------------------------"
|
|
16733 echo " WARNING: Compiling in support for runtime error checking."
|
|
16734 echo " WARNING: XEmacs will run noticeably more slowly as a result."
|
|
16735 echo " WARNING: Error checking is on by default for XEmacs beta releases."
|
|
16736 echo " WARNING: ---------------------------------------------------------"
|
|
16737 fi
|
118
|
16738 echo ""
|
116
|
16739 ) | tee -a Installation
|
118
|
16740 echo ""
|
|
16741
|
70
|
16742
|
0
|
16743 # Remove any trailing slashes in these variables.
|
149
|
16744 test -n "$prefix" &&
|
159
|
16745 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
16746 test -n "$exec_prefix" &&
|
159
|
16747 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
16748
|
|
16749
|
272
|
16750 for file in $internal_makefile_list; do
|
1111
|
16751 case $file in
|
|
16752 src/Makefile.in ) file="src/Makefile.in:src/Makefile.in.in:src/depend" ;;
|
|
16753 modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;;
|
|
16754 esac
|
430
|
16755 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
|
272
|
16756 done
|
1633
|
16757 ac_output_files="$ac_output_files src/paths.h src/xemacs.def.in lib-src/config.values"
|
430
|
16758 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
|
16759
|
149
|
16760 trap '' 1 2 15
|
|
16761
|
|
16762 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
16763
|
|
16764 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
16765 # Let make expand exec_prefix.
|
|
16766 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
0
|
16767
|
|
16768 # Any assignment to VPATH causes Sun make to only execute
|
|
16769 # the first set of double-colon rules, so remove it if not needed.
|
|
16770 # If there is a colon in the path, we need to keep it.
|
|
16771 if test "x$srcdir" = x.; then
|
|
16772 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
16773 fi
|
|
16774
|
149
|
16775 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
16776
|
|
16777 DEFS=-DHAVE_CONFIG_H
|
|
16778
|
|
16779 # Without the "./", some shells look in PATH for config.status.
|
|
16780 : ${CONFIG_STATUS=./config.status}
|
|
16781
|
|
16782 echo creating $CONFIG_STATUS
|
|
16783 rm -f $CONFIG_STATUS
|
|
16784 cat > $CONFIG_STATUS <<EOF
|
|
16785 #! /bin/sh
|
0
|
16786 # Generated automatically by configure.
|
|
16787 # Run this file to recreate the current configuration.
|
|
16788 # This directory was configured as follows,
|
|
16789 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
16790 #
|
149
|
16791 # $0 $ac_configure_args
|
|
16792 #
|
|
16793 # Compiler output produced by configure, useful for debugging
|
|
16794 # configure, is in ./config.log if it exists.
|
|
16795
|
|
16796 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
0
|
16797 for ac_option
|
|
16798 do
|
|
16799 case "\$ac_option" in
|
|
16800 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
149
|
16801 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
16802 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
0
|
16803 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
420
|
16804 echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
0
|
16805 exit 0 ;;
|
|
16806 -help | --help | --hel | --he | --h)
|
|
16807 echo "\$ac_cs_usage"; exit 0 ;;
|
|
16808 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
16809 esac
|
|
16810 done
|
|
16811
|
|
16812 ac_given_srcdir=$srcdir
|
149
|
16813 ac_given_INSTALL="$INSTALL"
|
|
16814
|
276
|
16815 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
149
|
16816 EOF
|
|
16817 cat >> $CONFIG_STATUS <<EOF
|
|
16818
|
|
16819 # Protect against being on the right side of a sed subst in config.status.
|
|
16820 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
16821 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
0
|
16822 $ac_vpsub
|
|
16823 $extrasub
|
420
|
16824 s%@SHELL@%$SHELL%g
|
149
|
16825 s%@CFLAGS@%$CFLAGS%g
|
|
16826 s%@CPPFLAGS@%$CPPFLAGS%g
|
|
16827 s%@CXXFLAGS@%$CXXFLAGS%g
|
420
|
16828 s%@FFLAGS@%$FFLAGS%g
|
149
|
16829 s%@DEFS@%$DEFS%g
|
|
16830 s%@LDFLAGS@%$LDFLAGS%g
|
|
16831 s%@LIBS@%$LIBS%g
|
|
16832 s%@exec_prefix@%$exec_prefix%g
|
|
16833 s%@prefix@%$prefix%g
|
|
16834 s%@program_transform_name@%$program_transform_name%g
|
|
16835 s%@bindir@%$bindir%g
|
|
16836 s%@sbindir@%$sbindir%g
|
|
16837 s%@libexecdir@%$libexecdir%g
|
|
16838 s%@datadir@%$datadir%g
|
|
16839 s%@sysconfdir@%$sysconfdir%g
|
|
16840 s%@sharedstatedir@%$sharedstatedir%g
|
|
16841 s%@localstatedir@%$localstatedir%g
|
|
16842 s%@libdir@%$libdir%g
|
|
16843 s%@includedir@%$includedir%g
|
|
16844 s%@oldincludedir@%$oldincludedir%g
|
|
16845 s%@infodir@%$infodir%g
|
|
16846 s%@mandir@%$mandir%g
|
0
|
16847 s%@LN_S@%$LN_S%g
|
181
|
16848 s%@blddir@%$blddir%g
|
0
|
16849 s%@CC@%$CC%g
|
|
16850 s%@CPP@%$CPP%g
|
207
|
16851 s%@start_flags@%$start_flags%g
|
163
|
16852 s%@ld_switch_shared@%$ld_switch_shared%g
|
|
16853 s%@start_files@%$start_files%g
|
|
16854 s%@ld@%$ld%g
|
|
16855 s%@lib_gcc@%$lib_gcc%g
|
0
|
16856 s%@RANLIB@%$RANLIB%g
|
|
16857 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
420
|
16858 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
0
|
16859 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
16860 s%@YACC@%$YACC%g
|
|
16861 s%@SET_MAKE@%$SET_MAKE%g
|
462
|
16862 s%@GTK_CONFIG@%$GTK_CONFIG%g
|
149
|
16863 s%@X_CFLAGS@%$X_CFLAGS%g
|
|
16864 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
|
16865 s%@X_LIBS@%$X_LIBS%g
|
|
16866 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
276
|
16867 s%@install_pp@%$install_pp%g
|
159
|
16868 s%@libs_xauth@%$libs_xauth%g
|
274
|
16869 s%@dnd_objs@%$dnd_objs%g
|
1651
|
16870 s%@LIBSTDCPP@%$LIBSTDCPP%g
|
265
|
16871 s%@dll_ld@%$dll_ld%g
|
|
16872 s%@dll_cflags@%$dll_cflags%g
|
388
|
16873 s%@dll_ldflags@%$dll_ldflags%g
|
|
16874 s%@dll_post@%$dll_post%g
|
|
16875 s%@dll_ldo@%$dll_ldo%g
|
|
16876 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
|
997
|
16877 s%@with_modules@%$with_modules%g
|
|
16878 s%@MOD_CC@%$MOD_CC%g
|
|
16879 s%@MODARCHDIR@%$MODARCHDIR%g
|
|
16880 s%@MAKE_DOCFILE@%$MAKE_DOCFILE%g
|
|
16881 s%@MODCFLAGS@%$MODCFLAGS%g
|
|
16882 s%@INSTALLPATH@%$INSTALLPATH%g
|
|
16883 s%@MOD_INSTALL_PROGRAM@%$MOD_INSTALL_PROGRAM%g
|
|
16884 s%@OBJECT_TO_BUILD@%$OBJECT_TO_BUILD%g
|
|
16885 s%@ldap_libs@%$ldap_libs%g
|
|
16886 s%@postgresql_libs@%$postgresql_libs%g
|
1470
|
16887 s%@lwlib_objs@%$lwlib_objs%g
|
|
16888 s%@ALLOCA@%$ALLOCA%g
|
|
16889 s%@have_esd_config@%$have_esd_config%g
|
|
16890 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
|
167
|
16891 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
|
149
|
16892 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
|
|
16893 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
|
280
|
16894 s%@PROGNAME@%$PROGNAME%g
|
0
|
16895 s%@version@%$version%g
|
|
16896 s%@configuration@%$configuration%g
|
|
16897 s%@canonical@%$canonical%g
|
422
|
16898 s%@inststaticdir@%$inststaticdir%g
|
|
16899 s%@instvardir@%$instvardir%g
|
0
|
16900 s%@srcdir@%$srcdir%g
|
|
16901 s%@statedir@%$statedir%g
|
452
|
16902 s%@extra_includes@%$extra_includes%g
|
420
|
16903 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
|
278
|
16904 s%@PREFIX@%$PREFIX%g
|
420
|
16905 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
|
278
|
16906 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
|
274
|
16907 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
|
|
16908 s%@INFODIR@%$INFODIR%g
|
203
|
16909 s%@infopath@%$infopath%g
|
274
|
16910 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
|
|
16911 s%@INFOPATH@%$INFOPATH%g
|
269
|
16912 s%@package_path@%$package_path%g
|
274
|
16913 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
|
|
16914 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
|
0
|
16915 s%@lispdir@%$lispdir%g
|
274
|
16916 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
|
|
16917 s%@LISPDIR@%$LISPDIR%g
|
388
|
16918 s%@moduledir@%$moduledir%g
|
|
16919 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
|
|
16920 s%@MODULEDIR@%$MODULEDIR%g
|
|
16921 s%@sitelispdir@%$sitelispdir%g
|
|
16922 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
|
|
16923 s%@SITELISPDIR@%$SITELISPDIR%g
|
|
16924 s%@sitemoduledir@%$sitemoduledir%g
|
|
16925 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
|
|
16926 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
|
0
|
16927 s%@etcdir@%$etcdir%g
|
274
|
16928 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
|
|
16929 s%@ETCDIR@%$ETCDIR%g
|
420
|
16930 s%@docdir@%$docdir%g
|
|
16931 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
|
|
16932 s%@DOCDIR@%$DOCDIR%g
|
0
|
16933 s%@archlibdir@%$archlibdir%g
|
274
|
16934 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
|
|
16935 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
|
0
|
16936 s%@bitmapdir@%$bitmapdir%g
|
149
|
16937 s%@extra_objs@%$extra_objs%g
|
0
|
16938 s%@machfile@%$machfile%g
|
|
16939 s%@opsysfile@%$opsysfile%g
|
149
|
16940 s%@c_switch_general@%$c_switch_general%g
|
|
16941 s%@c_switch_window_system@%$c_switch_window_system%g
|
|
16942 s%@c_switch_all@%$c_switch_all%g
|
|
16943 s%@ld_switch_general@%$ld_switch_general%g
|
|
16944 s%@ld_switch_window_system@%$ld_switch_window_system%g
|
|
16945 s%@ld_switch_all@%$ld_switch_all%g
|
|
16946 s%@ld_libs_general@%$ld_libs_general%g
|
|
16947 s%@ld_libs_window_system@%$ld_libs_window_system%g
|
|
16948 s%@ld_libs_all@%$ld_libs_all%g
|
173
|
16949 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
|
149
|
16950 s%@native_sound_lib@%$native_sound_lib%g
|
|
16951 s%@sound_cflags@%$sound_cflags%g
|
0
|
16952 s%@dynodump_arch@%$dynodump_arch%g
|
380
|
16953 s%@XEMACS_CC@%$XEMACS_CC%g
|
1889
|
16954 s%@XE_CFLAGS@%$XE_CFLAGS%g
|
0
|
16955 s%@internal_makefile_list@%$internal_makefile_list%g
|
149
|
16956
|
|
16957 CEOF
|
|
16958 EOF
|
|
16959
|
|
16960 cat >> $CONFIG_STATUS <<\EOF
|
|
16961
|
|
16962 # Split the substitutions into bite-sized pieces for seds with
|
|
16963 # small command number limits, like on Digital OSF/1 and HP-UX.
|
|
16964 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
16965 ac_file=1 # Number of current file.
|
|
16966 ac_beg=1 # First line for current file.
|
|
16967 ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
16968 ac_more_lines=:
|
|
16969 ac_sed_cmds=""
|
|
16970 while $ac_more_lines; do
|
|
16971 if test $ac_beg -gt 1; then
|
|
16972 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
16973 else
|
|
16974 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
16975 fi
|
|
16976 if test ! -s conftest.s$ac_file; then
|
|
16977 ac_more_lines=false
|
|
16978 rm -f conftest.s$ac_file
|
|
16979 else
|
|
16980 if test -z "$ac_sed_cmds"; then
|
|
16981 ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
16982 else
|
|
16983 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
16984 fi
|
|
16985 ac_file=`expr $ac_file + 1`
|
|
16986 ac_beg=$ac_end
|
|
16987 ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
16988 fi
|
|
16989 done
|
|
16990 if test -z "$ac_sed_cmds"; then
|
|
16991 ac_sed_cmds=cat
|
|
16992 fi
|
|
16993 EOF
|
|
16994
|
|
16995 cat >> $CONFIG_STATUS <<EOF
|
|
16996
|
272
|
16997 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
|
149
|
16998 EOF
|
|
16999 cat >> $CONFIG_STATUS <<\EOF
|
|
17000 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
17001 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
17002 case "$ac_file" in
|
|
17003 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
17004 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
17005 *) ac_file_in="${ac_file}.in" ;;
|
|
17006 esac
|
|
17007
|
|
17008 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
17009
|
|
17010 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
17011 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
17012 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
17013 # The file is in a subdirectory.
|
|
17014 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
17015 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
17016 # A "../" for each directory in $ac_dir_suffix.
|
|
17017 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
17018 else
|
|
17019 ac_dir_suffix= ac_dots=
|
|
17020 fi
|
|
17021
|
|
17022 case "$ac_given_srcdir" in
|
|
17023 .) srcdir=.
|
|
17024 if test -z "$ac_dots"; then top_srcdir=.
|
|
17025 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
17026 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
17027 *) # Relative path.
|
|
17028 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
17029 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
17030 esac
|
|
17031
|
|
17032 case "$ac_given_INSTALL" in
|
|
17033 [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
17034 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
17035 esac
|
|
17036
|
|
17037 echo creating "$ac_file"
|
|
17038 rm -f "$ac_file"
|
|
17039 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
17040 case "$ac_file" in
|
|
17041 *Makefile*) ac_comsub="1i\\
|
|
17042 # $configure_input" ;;
|
|
17043 *) ac_comsub= ;;
|
|
17044 esac
|
|
17045
|
|
17046 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
17047 sed -e "$ac_comsub
|
|
17048 s%@configure_input@%$configure_input%g
|
|
17049 s%@srcdir@%$srcdir%g
|
0
|
17050 s%@top_srcdir@%$top_srcdir%g
|
149
|
17051 s%@INSTALL@%$INSTALL%g
|
|
17052 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
0
|
17053 fi; done
|
149
|
17054 rm -f conftest.s*
|
|
17055
|
|
17056 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
17057 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
0
|
17058 #
|
|
17059 # ac_d sets the value in "#define NAME VALUE" lines.
|
149
|
17060 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
17061 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
0
|
17062 ac_dC='\3'
|
149
|
17063 ac_dD='%g'
|
0
|
17064 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
149
|
17065 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
17066 ac_uB='\([ ]\)%\1#\2define\3'
|
0
|
17067 ac_uC=' '
|
149
|
17068 ac_uD='\4%g'
|
0
|
17069 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
149
|
17070 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
17071 ac_eB='$%\1#\2define\3'
|
0
|
17072 ac_eC=' '
|
149
|
17073 ac_eD='%g'
|
|
17074
|
|
17075 if test "${CONFIG_HEADERS+set}" != set; then
|
|
17076 EOF
|
|
17077 cat >> $CONFIG_STATUS <<EOF
|
276
|
17078 CONFIG_HEADERS="src/config.h lwlib/config.h"
|
149
|
17079 EOF
|
|
17080 cat >> $CONFIG_STATUS <<\EOF
|
|
17081 fi
|
|
17082 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
17083 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
17084 case "$ac_file" in
|
|
17085 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
17086 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
17087 *) ac_file_in="${ac_file}.in" ;;
|
|
17088 esac
|
|
17089
|
|
17090 echo creating $ac_file
|
|
17091
|
|
17092 rm -f conftest.frag conftest.in conftest.out
|
|
17093 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
17094 cat $ac_file_inputs > conftest.in
|
|
17095
|
|
17096 EOF
|
|
17097
|
|
17098 # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
17099 # the proper values into config.h.in to produce config.h. And first:
|
|
17100 # Protect against being on the right side of a sed subst in config.status.
|
|
17101 # Protect against being in an unquoted here document in config.status.
|
|
17102 rm -f conftest.vals
|
|
17103 cat > conftest.hdr <<\EOF
|
|
17104 s/[\\&%]/\\&/g
|
|
17105 s%[\\$`]%\\&%g
|
|
17106 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
17107 s%ac_d%ac_u%gp
|
|
17108 s%ac_u%ac_e%gp
|
|
17109 EOF
|
|
17110 sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
17111 rm -f conftest.hdr
|
|
17112
|
|
17113 # This sed command replaces #undef with comments. This is necessary, for
|
|
17114 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
17115 # on some systems where configure will not decide to define it.
|
|
17116 cat >> conftest.vals <<\EOF
|
|
17117 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
17118 EOF
|
|
17119
|
|
17120 # Break up conftest.vals because some shells have a limit on
|
|
17121 # the size of here documents, and old seds have small limits too.
|
|
17122
|
|
17123 rm -f conftest.tail
|
0
|
17124 while :
|
|
17125 do
|
149
|
17126 ac_lines=`grep -c . conftest.vals`
|
|
17127 # grep -c gives empty output for an empty file on some AIX systems.
|
0
|
17128 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
149
|
17129 # Write a limited-size here document to conftest.frag.
|
|
17130 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
17131 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
17132 echo 'CEOF
|
|
17133 sed -f conftest.frag conftest.in > conftest.out
|
|
17134 rm -f conftest.in
|
|
17135 mv conftest.out conftest.in
|
|
17136 ' >> $CONFIG_STATUS
|
|
17137 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
17138 rm -f conftest.vals
|
|
17139 mv conftest.tail conftest.vals
|
0
|
17140 done
|
149
|
17141 rm -f conftest.vals
|
|
17142
|
|
17143 cat >> $CONFIG_STATUS <<\EOF
|
|
17144 rm -f conftest.frag conftest.h
|
0
|
17145 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
149
|
17146 cat conftest.in >> conftest.h
|
|
17147 rm -f conftest.in
|
0
|
17148 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
17149 echo "$ac_file is unchanged"
|
|
17150 rm -f conftest.h
|
|
17151 else
|
149
|
17152 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
17153 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
17154 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
17155 # The file is in a subdirectory.
|
|
17156 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
17157 fi
|
0
|
17158 rm -f $ac_file
|
|
17159 mv conftest.h $ac_file
|
|
17160 fi
|
|
17161 fi; done
|
149
|
17162
|
|
17163 EOF
|
|
17164 cat >> $CONFIG_STATUS <<EOF
|
|
17165 CPP="$CPP"
|
|
17166 top_srcdir="$srcdir"
|
|
17167 MAKE_SUBDIR="$MAKE_SUBDIR"
|
|
17168
|
|
17169 EOF
|
|
17170 cat >> $CONFIG_STATUS <<\EOF
|
380
|
17171 for dir in . $MAKE_SUBDIR; do
|
151
|
17172 (
|
149
|
17173 cd $dir
|
|
17174 rm -f junk.c
|
163
|
17175 < Makefile.in \
|
165
|
17176 sed -e '/^# Generated/d' \
|
163
|
17177 -e 's%/\*\*/#.*%%' \
|
165
|
17178 -e 's/^ *# */#/' \
|
163
|
17179 -e '/^##/d' \
|
|
17180 -e '/^#/ {
|
|
17181 p
|
|
17182 d
|
380
|
17183 }' \
|
|
17184 -e '/./ {
|
163
|
17185 s/\([\"]\)/\\\1/g
|
|
17186 s/^/"/
|
|
17187 s/$/"/
|
|
17188 }' > junk.c;
|
380
|
17189
|
|
17190
|
|
17191
|
|
17192 echo creating $dir/Makefile
|
|
17193 $CPP -I. -I${top_srcdir}/src junk.c \
|
|
17194 | sed -e 's/^\#.*//' \
|
|
17195 -e 's/^[ ][ ]*$//'\
|
|
17196 -e 's/^ / /' \
|
442
|
17197 -e '/^[ ]*$/d' \
|
|
17198 -e '/^\"/ {
|
380
|
17199 s/\\\([\"]\)/\1/g
|
|
17200 s/^[ ]*\"//
|
|
17201 s/\"[ ]*$//
|
|
17202 }' > Makefile.new
|
149
|
17203 chmod 444 Makefile.new
|
|
17204 mv -f Makefile.new Makefile
|
380
|
17205
|
|
17206 echo creating $dir/GNUmakefile
|
|
17207 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
|
|
17208 | sed -e 's/^\#.*//' \
|
|
17209 -e 's/^[ ][ ]*$//'\
|
|
17210 -e 's/^ / /' \
|
442
|
17211 -e '/^[ ]*$/d' \
|
|
17212 -e '/^\"/ {
|
380
|
17213 s/\\\([\"]\)/\1/g
|
|
17214 s/^[ ]*\"//
|
|
17215 s/\"[ ]*$//
|
|
17216 }' > Makefile.new
|
|
17217 chmod 444 Makefile.new
|
|
17218 mv -f Makefile.new GNUmakefile
|
|
17219
|
1988
|
17220 if test -r "xemacs.def.in"; then
|
1633
|
17221 cp -f xemacs.def.in junk.c
|
|
17222 echo creating $dir/xemacs.def
|
|
17223 $CPP -I. -I${top_srcdir}/src junk.c \
|
|
17224 | sed -e 's/^\#.*//' \
|
|
17225 -e 's/^[ ][ ]*$//'\
|
|
17226 -e 's/^ / /' \
|
|
17227 -e '/^[ ]*$/d' \
|
|
17228 -e '/^\"/ {
|
|
17229 s/\\\([\"]\)/\1/g
|
|
17230 s/^[ ]*\"//
|
|
17231 s/\"[ ]*$//
|
|
17232 }' > Makefile.new
|
|
17233 chmod 444 Makefile.new
|
|
17234 mv -f Makefile.new xemacs.def
|
|
17235
|
|
17236 fi
|
380
|
17237 rm -f junk.c
|
|
17238 )
|
149
|
17239 done
|
0
|
17240
|
181
|
17241 sed < config.status >> lib-src/config.values \
|
|
17242 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
|
|
17243 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
|
|
17244 -e 's/^\([^ ]*\) $/\1 ""/' \
|
|
17245 -e 's/ 1$/ t/'
|
175
|
17246
|
|
17247
|
0
|
17248 exit 0
|
|
17249 EOF
|
149
|
17250 chmod +x $CONFIG_STATUS
|
|
17251 rm -fr confdefs* $ac_clean_files
|
|
17252 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|