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
|
1259
|
65 for xe_parse_arg in ""; do
|
|
66 case $xe_parse_arg in
|
|
67 --srcdir) (echo "$progname: Usage error:"
|
|
68 echo " " "The \`--srcdir' option requires a boolean value: \`yes' or \`no'."
|
|
69 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
70 --srcdir=*) srcdir=`echo $xe_parse_arg | sed -e 's/--srcdir=//'` ;;
|
|
71 *) ;;
|
|
72 esac
|
|
73 done
|
|
74
|
149
|
75 exec_prefix=NONE
|
|
76 host=NONE
|
|
77 no_create=
|
|
78 nonopt=NONE
|
|
79 no_recursion=
|
|
80 prefix=NONE
|
|
81 program_prefix=NONE
|
|
82 program_suffix=NONE
|
|
83 program_transform_name=s,x,x,
|
|
84 silent=
|
|
85 site=
|
|
86 target=NONE
|
|
87 verbose=
|
|
88 x_includes=NONE
|
|
89 x_libraries=NONE
|
153
|
90
|
149
|
91 subdirs=
|
|
92 MFLAGS= MAKEFLAGS=
|
442
|
93 SHELL=${CONFIG_SHELL-/bin/sh}
|
149
|
94 ac_max_here_lines=12
|
|
95
|
|
96 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
97
|
|
98 # File descriptor usage:
|
|
99 # 0 standard input
|
|
100 # 1 file creation
|
|
101 # 2 errors and warnings
|
|
102 # 3 some systems may open it to /dev/tty
|
|
103 # 4 used on the Kubota Titan
|
|
104 # 6 checking for... messages and results
|
|
105 # 5 compiler messages saved in config.log
|
|
106 if test "$silent" = yes; then
|
|
107 exec 6>/dev/null
|
|
108 else
|
|
109 exec 6>&1
|
|
110 fi
|
|
111 exec 5>./config.log
|
|
112
|
|
113 echo "\
|
|
114 This file contains any messages produced by compilers while
|
|
115 running configure, to aid debugging if configure makes a mistake.
|
|
116 " 1>&5
|
|
117
|
|
118 # Strip out --no-create and --no-recursion so they do not pile up.
|
|
119 # Also quote any args containing shell metacharacters.
|
|
120 ac_configure_args=
|
|
121 for ac_arg
|
|
122 do
|
|
123 case "$ac_arg" in
|
|
124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
125 | --no-cr | --no-c) ;;
|
|
126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
128 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
129 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
130 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
131 esac
|
|
132 done
|
|
133
|
|
134 # NLS nuisances.
|
|
135 # Only set these to C if already set. These must not be set unconditionally
|
|
136 # because not all systems understand e.g. LANG=C (notably SCO).
|
|
137 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|
138 # Non-C LC_CTYPE values break the ctype check.
|
|
139 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
140 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
141 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
142 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|
143
|
|
144 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
145 rm -rf conftest* confdefs.h
|
|
146 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
147 echo > confdefs.h
|
|
148
|
|
149 # A filename unique to this package, relative to the directory that
|
|
150 # configure is in, which we can look for to find out if srcdir is correct.
|
|
151 ac_unique_file=src/lisp.h
|
|
152
|
|
153 # Find the source files, if location was not specified.
|
|
154 if test -z "$srcdir"; then
|
|
155 ac_srcdir_defaulted=yes
|
|
156 # Try the directory containing this script, then its parent.
|
|
157 ac_prog=$0
|
|
158 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
159 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
160 srcdir=$ac_confdir
|
|
161 if test ! -r $srcdir/$ac_unique_file; then
|
|
162 srcdir=..
|
|
163 fi
|
|
164 else
|
|
165 ac_srcdir_defaulted=no
|
|
166 fi
|
|
167 if test ! -r $srcdir/$ac_unique_file; then
|
|
168 if test "$ac_srcdir_defaulted" = yes; then
|
|
169 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
170 else
|
|
171 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
172 fi
|
|
173 fi
|
|
174 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
175
|
|
176 # Prefer explicitly selected file to automatically selected ones.
|
|
177 if test -z "$CONFIG_SITE"; then
|
|
178 if test "x$prefix" != xNONE; then
|
|
179 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|
180 else
|
|
181 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
182 fi
|
|
183 fi
|
|
184 for ac_site_file in $CONFIG_SITE; do
|
|
185 if test -r "$ac_site_file"; then
|
|
186 echo "loading site script $ac_site_file"
|
|
187 . "$ac_site_file"
|
|
188 fi
|
|
189 done
|
|
190
|
|
191
|
|
192 ac_ext=c
|
151
|
193 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
194 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
195 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
|
196 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
197 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
198 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
199 cross_compiling=no
|
|
200
|
420
|
201 ac_exeext=
|
|
202 ac_objext=o
|
149
|
203 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|
204 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|
205 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|
206 ac_n= ac_c='
|
|
207 ' ac_t=' '
|
|
208 else
|
|
209 ac_n=-n ac_c= ac_t=
|
|
210 fi
|
|
211 else
|
|
212 ac_n= ac_c='\c' ac_t=
|
|
213 fi
|
|
214
|
|
215
|
0
|
216 progname="`echo $0 | sed 's:^\./\./:\./:'`"
|
|
217
|
149
|
218
|
151
|
219 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
|
167
|
220 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
|
221
|
0
|
222 prefix='/usr/local'
|
|
223 exec_prefix='${prefix}'
|
|
224 bindir='${exec_prefix}/bin'
|
|
225 datadir='${prefix}/lib'
|
|
226 statedir='${prefix}/lib'
|
|
227 libdir='${exec_prefix}/lib'
|
|
228 mandir='${prefix}/man/man1'
|
422
|
229 inststaticdir='${PROGNAME}'
|
|
230 instvardir='${PROGNAME}-${version}'
|
|
231 infodir='${datadir}/${instvardir}/info'
|
274
|
232 infopath=''
|
276
|
233 install_pp=''
|
422
|
234 lispdir='${datadir}/${instvardir}/lisp'
|
670
|
235 moduledir='${libdir}/${instvardir}/${configuration}/modules'
|
422
|
236 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
|
670
|
237 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
|
274
|
238 package_path=''
|
422
|
239 etcdir='${datadir}/${instvardir}/etc'
|
670
|
240 archlibdir='${libdir}/${instvardir}/${configuration}'
|
420
|
241 docdir='${archlibdir}'
|
462
|
242 with_netinstall="no"
|
420
|
243 with_prefix='yes'
|
269
|
244 with_site_lisp='no'
|
388
|
245 with_site_modules='yes'
|
1111
|
246 need_modules_common=''
|
0
|
247 with_menubars=''
|
|
248 with_scrollbars=''
|
420
|
249 with_widgets=''
|
0
|
250 with_dialogs=''
|
272
|
251 cpp='' cppflags='' libs='' ldflags=''
|
452
|
252 extra_includes=''
|
0
|
253 dynamic=''
|
|
254 with_x11=''
|
263
|
255 with_msw=''
|
0
|
256 rel_alloc='default'
|
181
|
257 with_system_malloc='default'
|
261
|
258 with_dlmalloc='default'
|
1464
|
259 with_native_sound=''
|
|
260 with_nas_sound=''
|
|
261 with_esd_sound='no'
|
0
|
262 native_sound_lib=''
|
462
|
263 with_gtk='no'
|
|
264 with_gnome='no'
|
153
|
265 use_assertions="yes"
|
|
266 with_toolbars=""
|
157
|
267 with_tty=""
|
153
|
268 use_union_type="no"
|
|
269 with_dnet=""
|
1161
|
270 pdump=""
|
771
|
271 with_dragndrop_default="no"
|
708
|
272 with_ipv6_cname="no"
|
0
|
273
|
149
|
274
|
0
|
275 arguments="$@"
|
|
276
|
120
|
277 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
|
0
|
278 quoted_arguments=
|
|
279 for i in "$@"; do
|
120
|
280 case "$i" in
|
|
281 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
282 | --no-cr | --no-c) ;;
|
153
|
283 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
284 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
120
|
285 *)
|
159
|
286 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
|
120
|
287 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
|
|
288 esac
|
0
|
289 done
|
|
290
|
70
|
291 while test $# != 0; do
|
0
|
292 arg="$1"; shift
|
149
|
293 case "$arg" in
|
157
|
294 --no-create|--no-recursion) ;;
|
1259
|
295 --srcdir=*) ;;
|
149
|
296 -* )
|
|
297 case "$arg" in
|
0
|
298 -*=*)
|
149
|
299 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
300 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
0
|
301 valomitted=no
|
|
302 ;;
|
149
|
303 -*)
|
|
304 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
243
|
305 val="yes" valomitted=yes
|
0
|
306 ;;
|
|
307 esac
|
|
308
|
274
|
309 optname="$opt"
|
|
310 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
|
|
311
|
243
|
312 case "${valomitted}-${opt}" in yes-without_* )
|
|
313 opt=`echo $opt | sed 's/without/with/'`
|
|
314 valomitted="no" val="no" ;;
|
|
315 esac
|
|
316
|
149
|
317 case "$opt" in
|
|
318
|
380
|
319 with_site_lisp | \
|
420
|
320 with_prefix | \
|
|
321 with_site_modules | \
|
70
|
322 with_x | \
|
|
323 with_x11 | \
|
462
|
324 with_gtk | \
|
|
325 with_gnome | \
|
263
|
326 with_msw | \
|
70
|
327 with_gcc | \
|
|
328 dynamic | \
|
149
|
329 with_ncurses | \
|
|
330 with_dnet | \
|
|
331 with_socks | \
|
282
|
332 with_dragndrop | \
|
70
|
333 with_cde | \
|
|
334 with_offix | \
|
149
|
335 with_gpm | \
|
|
336 with_xpm | \
|
|
337 with_xface | \
|
251
|
338 with_gif | \
|
|
339 with_jpeg | \
|
|
340 with_png | \
|
|
341 with_tiff | \
|
771
|
342 with_zlib | \
|
414
|
343 with_wmcommand | \
|
70
|
344 with_xmu | \
|
380
|
345 with_purify | \
|
149
|
346 with_quantify | \
|
70
|
347 with_toolbars | \
|
|
348 with_tty | \
|
215
|
349 with_xfs | \
|
70
|
350 with_mule | \
|
771
|
351 with_default_eol_detection | \
|
70
|
352 with_canna | \
|
|
353 with_wnn | \
|
98
|
354 with_wnn6 | \
|
149
|
355 with_workshop | \
|
70
|
356 with_sparcworks | \
|
380
|
357 with_tooltalk | \
|
259
|
358 with_ldap | \
|
442
|
359 with_postgresql | \
|
118
|
360 with_pop | \
|
|
361 with_kerberos | \
|
|
362 with_hesiod | \
|
136
|
363 with_dnet | \
|
280
|
364 with_infodock | \
|
724
|
365 with_netinstall | \
|
|
366 with_ipv6_cname | \
|
70
|
367 external_widget | \
|
925
|
368 use_kkcc | \
|
120
|
369 verbose | \
|
|
370 extra_verbose | \
|
380
|
371 usage_tracking | \
|
|
372 use_union_type | \
|
424
|
373 pdump | \
|
70
|
374 debug | \
|
|
375 use_assertions | \
|
|
376 memory_usage_stats | \
|
173
|
377 with_clash_detection | \
|
422
|
378 with_modules | \
|
442
|
379 quick_build )
|
149
|
380 case "$val" in
|
0
|
381 y | ye | yes ) val=yes ;;
|
380
|
382 n | no ) val=no ;;
|
149
|
383 * ) (echo "$progname: Usage error:"
|
|
384 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
|
|
385 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
386 esac
|
380
|
387 eval "$opt=\"$val\"" ;;
|
149
|
388
|
|
389
|
1259
|
390 compiler | \
|
596
|
391 xemacs_compiler | \
|
157
|
392 cflags | \
|
1111
|
393 cflags_warning | \
|
272
|
394 cpp | \
|
|
395 cppflags | \
|
|
396 libs | \
|
|
397 ldflags | \
|
153
|
398 cache_file | \
|
380
|
399 native_sound_lib| \
|
267
|
400 site_lisp | \
|
70
|
401 x_includes | \
|
|
402 x_libraries | \
|
|
403 site_includes | \
|
|
404 site_libraries | \
|
209
|
405 site_prefixes | \
|
149
|
406 site_runtime_libraries )
|
|
407 if test "$valomitted" = "yes" ; then
|
|
408 if test "$#" = 0 ; then
|
|
409 (echo "$progname: Usage error:"
|
|
410 echo " " "The \`--$optname' option requires a value."
|
|
411 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
0
|
412 fi
|
|
413 val="$1"; shift
|
|
414 fi
|
149
|
415 eval "$opt=\"$val\""
|
0
|
416 ;;
|
|
417
|
149
|
418 rel_alloc | \
|
261
|
419 with_dlmalloc | \
|
181
|
420 with_debug_malloc | use_debug_malloc | \
|
|
421 with_system_malloc | use_system_malloc )
|
149
|
422 case "$val" in
|
0
|
423 y | ye | yes ) val=yes ;;
|
|
424 n | no ) val=no ;;
|
181
|
425 d | de | def | defa | defau | defaul | default ) val=default ;;
|
149
|
426 * ) (echo "$progname: Usage error:"
|
|
427 echo " " "The \`--$optname' option requires one of these values:
|
120
|
428 \`yes', \`no', or \`default'."
|
149
|
429 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
430 esac
|
265
|
431 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
|
149
|
432 eval "$opt=\"$val\""
|
0
|
433 ;;
|
|
434
|
149
|
435 "with_database" )
|
120
|
436 with_database_berkdb=no
|
|
437 with_database_dbm=no
|
426
|
438 with_database_gdbm=no
|
300
|
439 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
149
|
440 case "$x" in
|
426
|
441 no ) ;;
|
|
442 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
|
|
443 d | db | dbm ) with_database_dbm=yes ;;
|
|
444 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
|
|
445 * ) (echo "$progname: Usage error:"
|
149
|
446 echo " " "The \`--$optname' option value
|
120
|
447 must be either \`no' or a comma-separated list
|
380
|
448 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
|
149
|
449 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
120
|
450 esac
|
|
451 done
|
426
|
452 if test "$with_database_dbm" = "yes" -a \
|
|
453 "$with_database_gdbm" = "yes"; then
|
149
|
454 (echo "$progname: Usage error:"
|
120
|
455 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
|
149
|
456 with the \`--$optname' option."
|
|
457 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
0
|
458 fi
|
70
|
459 ;;
|
0
|
460
|
149
|
461 "with_sound" )
|
426
|
462 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
|
463 case "$x" in
|
|
464 n | no | non | none ) new_sdefault=no ;;
|
|
465 a | al | all | both ) new_sdefault=yes ;;
|
|
466
|
|
467 native ) with_native_sound=yes ;;
|
|
468 nonative ) with_native_sound=no ;;
|
|
469
|
|
470 nas ) with_nas_sound=yes ;;
|
|
471 nonas ) with_nas_sound=no ;;
|
|
472
|
432
|
473 esd ) with_esd_sound=yes ;;
|
|
474 noesd ) with_esd_sound=no ;;
|
426
|
475
|
|
476 * ) bogus_sound=yes ;;
|
|
477 esac
|
|
478 if test "$bogus_sound" -o \
|
|
479 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
|
|
480 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
|
|
481 (echo "$progname: Usage error:"
|
|
482 echo " " "Valid types for the \`--$optname' option are:
|
|
483 $types.
|
724
|
484 Option \`all' or \`none' must be first in the list.
|
|
485 The default is to autodetect native and NAS sound support."
|
426
|
486 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
487 elif test -n "$new_sdefault" ; then
|
|
488 with_native_sound=$new_sdefault
|
|
489 with_nas_sound=$new_sdefault
|
432
|
490 with_esd_sound=$new_sdefault
|
426
|
491 new_sdefault= # reset this
|
|
492 fi
|
|
493 sound_notfirst=true
|
|
494 done
|
0
|
495 ;;
|
|
496
|
434
|
497 "with_athena" )
|
|
498 case "$val" in
|
|
499 xa | xaw ) val=xaw ;;
|
|
500 3 | 3d | xaw3d ) val=3d ;;
|
|
501 ne | nex | next | naxtaw) val=next ;;
|
|
502 9 | 95 | xaw95 ) val=95 ;;
|
|
503 xp | xpm | xawxpm ) val=xpm ;;
|
|
504 * ) (echo "$progname: Usage error:"
|
|
505 echo " " "The \`--$optname' option must have one of these values:
|
|
506 \`xaw', \`3d', \`next', \`95', or \`xpm'."
|
|
507 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
508 esac
|
|
509 eval "$opt=\"$val\""
|
|
510 ;;
|
|
511
|
149
|
512 "with_xim" )
|
|
513 case "$val" in
|
|
514 y | ye | yes ) val=yes ;;
|
|
515 n | no | non | none ) val=no ;;
|
|
516 x | xl | xli | xlib ) val=xlib ;;
|
|
517 m | mo | mot | moti | motif ) val=motif ;;
|
|
518 * ) (echo "$progname: Usage error:"
|
|
519 echo " " "The \`--$optname' option must have one of these values:
|
|
520 \`motif', \`xlib', \`yes', or \`no'."
|
|
521 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
522 esac
|
149
|
523 eval "$opt=\"$val\""
|
0
|
524 ;;
|
|
525
|
149
|
526 "mail_locking" )
|
|
527 case "$val" in
|
|
528 lockf ) val=lockf ;;
|
|
529 flock ) val=flock ;;
|
438
|
530 file | dot ) val=file ;;
|
|
531 locking ) val=locking ;;
|
149
|
532 * ) (echo "$progname: Usage error:"
|
|
533 echo " " "The \`--$optname' option must have one of these values:
|
438
|
534 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
|
149
|
535 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
536 esac
|
|
537 eval "$opt=\"$val\""
|
|
538 ;;
|
|
539
|
|
540 "error_checking" )
|
|
541
|
267
|
542 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
149
|
543 case "$x" in
|
|
544 n | no | non | none ) new_default=no ;;
|
0
|
545 a | al | all ) new_default=yes ;;
|
|
546
|
|
547 extents ) error_check_extents=yes ;;
|
|
548 noextents ) error_check_extents=no ;;
|
|
549
|
800
|
550 types ) error_check_types=yes ;;
|
|
551 notypes ) error_check_types=no ;;
|
|
552
|
|
553 text ) error_check_text=yes ;;
|
|
554 notext ) error_check_text=no ;;
|
0
|
555
|
|
556 gc ) error_check_gc=yes ;;
|
|
557 nogc ) error_check_gc=no ;;
|
|
558
|
|
559 malloc ) error_check_malloc=yes ;;
|
|
560 nomalloc ) error_check_malloc=no ;;
|
149
|
561
|
414
|
562 byte_code ) error_check_byte_code=yes ;;
|
|
563 nobyte_code ) error_check_byte_code=no ;;
|
|
564
|
800
|
565 glyphs ) error_check_glyphs=yes ;;
|
|
566 noglyphs ) error_check_glyphs=no ;;
|
|
567
|
|
568 display ) error_check_display=yes ;;
|
|
569 nodisplay ) error_check_display=no ;;
|
|
570
|
|
571 structures ) error_check_structures=yes ;;
|
|
572 nostructures ) error_check_structures=no ;;
|
442
|
573
|
0
|
574 * ) bogus_error_check=yes ;;
|
|
575 esac
|
70
|
576 if test "$bogus_error_check" -o \
|
|
577 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
|
267
|
578 if test "$error_check_default" = yes ; then
|
800
|
579 types="\`all' (default), \`none', \`noextents', \`notypes', \`notext', \`nogc', \`nomalloc', \`noglyphs', \`nobyte-code', \`nodisplay', \`nostructures'."
|
0
|
580 else
|
800
|
581 types="\`all', \`none' (default), \`extents', \`types', \`text', \`gc', \`malloc', \`glyphs', \`byte-code', \`display', \`structures'."
|
0
|
582 fi
|
149
|
583 (echo "$progname: Usage error:"
|
|
584 echo " " "Valid types for the \`--$optname' option are:
|
120
|
585 $types."
|
149
|
586 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
151
|
587 elif test -n "$new_default" ; then
|
0
|
588 error_check_extents=$new_default
|
800
|
589 error_check_types=$new_default
|
|
590 error_check_text=$new_default
|
0
|
591 error_check_gc=$new_default
|
|
592 error_check_malloc=$new_default
|
414
|
593 error_check_byte_code=$new_default
|
442
|
594 error_check_glyphs=$new_default
|
800
|
595 error_check_display=$new_default
|
|
596 error_check_structures=$new_default
|
0
|
597 new_default= # reset this
|
|
598 fi
|
|
599 echeck_notfirst=true
|
|
600 done
|
|
601 ;;
|
|
602
|
149
|
603
|
|
604 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
1349
|
605 mandir | infodir | infopath | lispdir | etcdir | \
|
867
|
606 archlibdir | docdir | package_path | moduledir )
|
151
|
607 if test "$valomitted" = "yes"; then
|
|
608 if test "$#" = 0; then
|
149
|
609 (echo "$progname: Usage error:"
|
|
610 echo " " "The \`--$optname' option requires a value."
|
|
611 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
120
|
612 fi
|
|
613 val="$1"; shift
|
0
|
614 fi
|
149
|
615 eval "$opt=\"$val\""
|
|
616
|
278
|
617 case "$opt" in
|
420
|
618 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
619 Defining EXEC_PREFIX_USER_DEFINED
|
|
620 EOF
|
|
621 cat >> confdefs.h <<\EOF
|
|
622 #define EXEC_PREFIX_USER_DEFINED 1
|
|
623 EOF
|
|
624 }
|
|
625 ;;
|
274
|
626 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
627 Defining LISPDIR_USER_DEFINED
|
|
628 EOF
|
|
629 cat >> confdefs.h <<\EOF
|
|
630 #define LISPDIR_USER_DEFINED 1
|
|
631 EOF
|
|
632 }
|
|
633 ;;
|
388
|
634 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
635 Defining SITELISPDIR_USER_DEFINED
|
|
636 EOF
|
|
637 cat >> confdefs.h <<\EOF
|
|
638 #define SITELISPDIR_USER_DEFINED 1
|
|
639 EOF
|
|
640 }
|
|
641 ;;
|
|
642 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
643 Defining MODULEDIR_USER_DEFINED
|
|
644 EOF
|
|
645 cat >> confdefs.h <<\EOF
|
|
646 #define MODULEDIR_USER_DEFINED 1
|
|
647 EOF
|
|
648 }
|
|
649 ;;
|
274
|
650 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
651 Defining ETCDIR_USER_DEFINED
|
|
652 EOF
|
|
653 cat >> confdefs.h <<\EOF
|
|
654 #define ETCDIR_USER_DEFINED 1
|
|
655 EOF
|
|
656 }
|
|
657 ;;
|
|
658 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
659 Defining INFODIR_USER_DEFINED
|
|
660 EOF
|
|
661 cat >> confdefs.h <<\EOF
|
|
662 #define INFODIR_USER_DEFINED 1
|
|
663 EOF
|
|
664 }
|
|
665 ;;
|
|
666 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
667 Defining INFOPATH_USER_DEFINED
|
|
668 EOF
|
|
669 cat >> confdefs.h <<\EOF
|
|
670 #define INFOPATH_USER_DEFINED 1
|
|
671 EOF
|
|
672 }
|
|
673 ;;
|
|
674 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
675 Defining PACKAGE_PATH_USER_DEFINED
|
|
676 EOF
|
|
677 cat >> confdefs.h <<\EOF
|
|
678 #define PACKAGE_PATH_USER_DEFINED 1
|
|
679 EOF
|
|
680 }
|
|
681 ;;
|
278
|
682 datadir )
|
462
|
683 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
684 Defining INFODIR_USER_DEFINED
|
|
685 EOF
|
|
686 cat >> confdefs.h <<\EOF
|
|
687 #define INFODIR_USER_DEFINED 1
|
|
688 EOF
|
|
689 }
|
|
690
|
462
|
691 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
692 Defining LISPDIR_USER_DEFINED
|
|
693 EOF
|
|
694 cat >> confdefs.h <<\EOF
|
|
695 #define LISPDIR_USER_DEFINED 1
|
|
696 EOF
|
|
697 }
|
|
698
|
462
|
699 { test "$extra_verbose" = "yes" && cat << \EOF
|
388
|
700 Defining MODULEDIR_USER_DEFINED
|
|
701 EOF
|
|
702 cat >> confdefs.h <<\EOF
|
|
703 #define MODULEDIR_USER_DEFINED 1
|
|
704 EOF
|
|
705 }
|
|
706
|
278
|
707 { test "$extra_verbose" = "yes" && cat << \EOF
|
274
|
708 Defining ETCDIR_USER_DEFINED
|
|
709 EOF
|
|
710 cat >> confdefs.h <<\EOF
|
|
711 #define ETCDIR_USER_DEFINED 1
|
|
712 EOF
|
|
713 }
|
458
|
714
|
|
715 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
716 Defining DOCDIR_USER_DEFINED
|
|
717 EOF
|
|
718 cat >> confdefs.h <<\EOF
|
|
719 #define DOCDIR_USER_DEFINED 1
|
|
720 EOF
|
|
721 }
|
|
722
|
|
723 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
724 Defining ARCHLIBDIR_USER_DEFINED
|
|
725 EOF
|
|
726 cat >> confdefs.h <<\EOF
|
|
727 #define ARCHLIBDIR_USER_DEFINED 1
|
|
728 EOF
|
|
729 }
|
274
|
730 ;;
|
420
|
731 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
732 Defining DOCDIR_USER_DEFINED
|
|
733 EOF
|
|
734 cat >> confdefs.h <<\EOF
|
|
735 #define DOCDIR_USER_DEFINED 1
|
|
736 EOF
|
|
737 }
|
|
738 ;;
|
274
|
739 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
740 Defining ARCHLIBDIR_USER_DEFINED
|
|
741 EOF
|
|
742 cat >> confdefs.h <<\EOF
|
|
743 #define ARCHLIBDIR_USER_DEFINED 1
|
|
744 EOF
|
|
745 }
|
|
746 ;;
|
149
|
747 esac
|
0
|
748 ;;
|
|
749
|
149
|
750 "no_create" ) ;;
|
|
751
|
215
|
752 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
|
149
|
753
|
380
|
754 "with_menubars" | \
|
|
755 "with_scrollbars" | \
|
442
|
756 "with_dialogs" | \
|
420
|
757 "with_widgets" )
|
149
|
758 case "$val" in
|
0
|
759 l | lu | luc | luci | lucid ) val=lucid ;;
|
724
|
760 mo | mot | moti | motif ) val=motif ;;
|
0
|
761 a | at | ath | athe | athen | athena ) val=athena ;;
|
442
|
762 n | no | non | none ) val=no ;;
|
|
763 y | ye | yes ) val=yes ;;
|
726
|
764 "") val=yes ;;
|
462
|
765 g | gt | gtk ) val=gtk ;;
|
724
|
766 ms | msw ) val=msw ;;
|
149
|
767 * ) (echo "$progname: Usage error:"
|
|
768 echo " " "The \`--$optname' option must have one of these values:
|
585
|
769 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
|
149
|
770 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
771 esac
|
149
|
772 eval "$opt=\"$val\""
|
0
|
773 ;;
|
|
774
|
424
|
775 "use_minimal_tagbits" | \
|
|
776 "use_indexed_lrecord_implementation" | \
|
|
777 "run_in_place" | \
|
442
|
778 "const_is_losing" | \
|
380
|
779 "with_gnu_make" )
|
|
780 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
|
|
781 ;;
|
|
782
|
149
|
783 * ) (echo "$progname: Usage error:"
|
|
784 echo " " "Unrecognized option: $arg"
|
|
785 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
786
|
|
787 esac
|
|
788 ;;
|
|
789
|
243
|
790 *-*-*) configuration="$arg" ;;
|
|
791
|
|
792 *) (echo "$progname: Usage error:"
|
|
793 echo " " "Unrecognized argument: $arg"
|
|
794 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
795
|
|
796 esac
|
|
797 done
|
|
798
|
149
|
799
|
272
|
800 test -n "$cpp" && CPP="$cpp"
|
|
801 test -n "$cppflags" && CPPFLAGS="$cppflags"
|
|
802 test -n "$libs" && LIBS="$libs"
|
|
803 test -n "$ldflags" && LDFLAGS="$ldflags"
|
|
804
|
0
|
805 eval set x "$quoted_arguments"; shift
|
|
806
|
149
|
807 test "$extra_verbose" = "yes" && verbose=yes
|
|
808
|
|
809 test -n "$with_x" && with_x11="$with_x"
|
|
810
|
380
|
811 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
|
|
812 test "$with_system_malloc" = "default" && with_system_malloc=yes
|
|
813 fi
|
272
|
814
|
284
|
815
|
|
816
|
|
817 if test "$with_cde $with_tooltalk" = "yes no"; then
|
|
818 (echo "$progname: Usage error:"
|
|
819 echo " " "--with-cde requires --with-tooltalk"
|
|
820 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
821 elif test "$with_tooltalk" = "no" ; then with_cde=no
|
|
822 elif test "$with_cde" = "yes"; then with_tooltalk=yes
|
|
823 fi
|
|
824
|
|
825
|
149
|
826 case "$srcdir" in
|
|
827
|
|
828 "" )
|
70
|
829 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
|
120
|
830 if test -f "$dir/src/lisp.h" -a \
|
|
831 -f "$dir/lisp/version.el" ; then
|
149
|
832 srcdir="$dir"
|
70
|
833 break
|
|
834 fi
|
|
835 done
|
149
|
836 if test -z "$srcdir" ; then
|
|
837 (echo "$progname: Usage error:"
|
1259
|
838 echo " " "None of the path to configure, the current directory,
|
|
839 and its parent seem to contain the XEmacs sources. If you do not want
|
|
840 to build XEmacs in its source tree, you should run \`$progname' in the
|
|
841 directory in which you wish to build XEmacs, using the \`--srcdir' option
|
|
842 to say where the sources may be found."
|
149
|
843 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
120
|
844 fi
|
0
|
845 ;;
|
|
846
|
149
|
847 * )
|
243
|
848 if test ! -f "$srcdir/src/lisp.h" -o \
|
149
|
849 ! -f "$srcdir/lisp/version.el" ; then
|
|
850 (echo "$progname: Usage error:"
|
120
|
851 echo " " "The directory specified with the \`--srcdir' option,
|
149
|
852 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
|
|
853 either run the \`$progname' script at the top of the XEmacs source
|
120
|
854 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
|
149
|
855 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
0
|
856 fi
|
|
857 ;;
|
|
858 esac
|
|
859
|
243
|
860 if test -z "$configuration"; then
|
380
|
861 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
|
|
862 if test -z "$configuration"; then
|
243
|
863 (echo "$progname: Usage error:"
|
|
864 echo " " "XEmacs has not been ported to this host type.
|
|
865 Try explicitly specifying the CONFIGURATION when rerunning configure."
|
|
866 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
867 fi
|
|
868 fi
|
|
869
|
149
|
870 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
1464
|
871 echo "configure:872: checking whether ln -s works" >&5
|
149
|
872
|
0
|
873 rm -f conftestdata
|
|
874 if ln -s X conftestdata 2>/dev/null
|
|
875 then
|
|
876 rm -f conftestdata
|
149
|
877 ac_cv_prog_LN_S="ln -s"
|
|
878 else
|
|
879 ac_cv_prog_LN_S=ln
|
|
880 fi
|
|
881 LN_S="$ac_cv_prog_LN_S"
|
|
882 if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|
883 echo "$ac_t""yes" 1>&6
|
|
884 else
|
|
885 echo "$ac_t""no" 1>&6
|
|
886 fi
|
|
887
|
|
888
|
438
|
889 for dir in lisp etc man info tests; do
|
149
|
890 if test ! -d "$dir" ; then
|
|
891 echo Making symbolic link to "$srcdir/$dir"
|
157
|
892 ${LN_S} "$srcdir/$dir" "$dir"
|
0
|
893 fi
|
|
894 done
|
|
895
|
392
|
896
|
181
|
897 absolute_pwd="`pwd`";
|
187
|
898 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
|
181
|
899 then blddir="$PWD"
|
392
|
900 else blddir="$absolute_pwd"; if test -d "/net"; then
|
|
901 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
|
|
902 blddir=`echo "$blddir" | \
|
|
903 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
|
|
904 fi
|
181
|
905 fi
|
|
906
|
|
907
|
149
|
908 case "$srcdir" in
|
0
|
909 /* ) ;;
|
181
|
910 . ) srcdir="$blddir" ;;
|
392
|
911 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
|
|
912 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
|
|
913 srcdir=`echo "$srcdir" | \
|
|
914 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
|
|
915 fi ;;
|
0
|
916 esac
|
|
917
|
149
|
918 if test `pwd` != `sh -c cd $srcdir && pwd` \
|
|
919 && test -f "$srcdir/src/config.h"; then
|
|
920 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
|
0
|
921 echo " as a build directory right now; it has been configured in its own"
|
|
922 echo " right. To configure in another directory as well, you MUST"
|
|
923 echo " use GNU make. If you do not have GNU make, then you must"
|
149
|
924 echo " now do \`make distclean' in $srcdir,"
|
|
925 echo " and then run $progname again.") >&2
|
0
|
926 extrasub='/^VPATH[ ]*=/c\
|
|
927 vpath %.c $(srcdir)\
|
|
928 vpath %.h $(srcdir)\
|
|
929 vpath %.y $(srcdir)\
|
|
930 vpath %.l $(srcdir)\
|
|
931 vpath %.s $(srcdir)\
|
|
932 vpath %.in $(srcdir)'
|
|
933 fi
|
|
934
|
171
|
935 . "$srcdir/version.sh" || exit 1;
|
414
|
936 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
|
173
|
937 : "${extra_verbose=$beta}"
|
171
|
938 version="${emacs_major_version}.${emacs_minor_version}"
|
|
939 { test "$extra_verbose" = "yes" && cat << EOF
|
|
940 Defining EMACS_MAJOR_VERSION = $emacs_major_version
|
|
941 EOF
|
|
942 cat >> confdefs.h <<EOF
|
|
943 #define EMACS_MAJOR_VERSION $emacs_major_version
|
|
944 EOF
|
|
945 }
|
|
946
|
|
947 { test "$extra_verbose" = "yes" && cat << EOF
|
|
948 Defining EMACS_MINOR_VERSION = $emacs_minor_version
|
|
949 EOF
|
|
950 cat >> confdefs.h <<EOF
|
|
951 #define EMACS_MINOR_VERSION $emacs_minor_version
|
|
952 EOF
|
|
953 }
|
|
954
|
414
|
955 if test -n "$emacs_beta_version" ; then
|
|
956 if test "$beta" = "yes"; then
|
|
957 version="${version}-b${emacs_beta_version}"
|
|
958 { test "$extra_verbose" = "yes" && cat << EOF
|
171
|
959 Defining EMACS_BETA_VERSION = $emacs_beta_version
|
|
960 EOF
|
|
961 cat >> confdefs.h <<EOF
|
|
962 #define EMACS_BETA_VERSION $emacs_beta_version
|
|
963 EOF
|
|
964 }
|
|
965
|
414
|
966 else
|
|
967 version="${version}.${emacs_beta_version}"
|
|
968 { test "$extra_verbose" = "yes" && cat << EOF
|
|
969 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
|
|
970 EOF
|
|
971 cat >> confdefs.h <<EOF
|
|
972 #define EMACS_PATCH_LEVEL $emacs_beta_version
|
|
973 EOF
|
|
974 }
|
|
975
|
|
976 fi
|
171
|
977 fi
|
|
978 { test "$extra_verbose" = "yes" && cat << EOF
|
|
979 Defining XEMACS_CODENAME = "$xemacs_codename"
|
|
980 EOF
|
|
981 cat >> confdefs.h <<EOF
|
|
982 #define XEMACS_CODENAME "$xemacs_codename"
|
|
983 EOF
|
|
984 }
|
|
985
|
975
|
986 if test "X$xemacs_extra_name" != "X"; then
|
|
987 { test "$extra_verbose" = "yes" && cat << EOF
|
|
988 Defining XEMACS_EXTRA_NAME = "$xemacs_extra_name"
|
|
989 EOF
|
|
990 cat >> confdefs.h <<EOF
|
|
991 #define XEMACS_EXTRA_NAME "$xemacs_extra_name"
|
|
992 EOF
|
|
993 }
|
|
994
|
|
995 fi
|
171
|
996 { test "$extra_verbose" = "yes" && cat << EOF
|
|
997 Defining EMACS_VERSION = "$version"
|
|
998 EOF
|
|
999 cat >> confdefs.h <<EOF
|
|
1000 #define EMACS_VERSION "$version"
|
|
1001 EOF
|
|
1002 }
|
|
1003
|
|
1004
|
280
|
1005 if test "$with_infodock" = "yes"; then
|
420
|
1006 if test ! -f ../../ID-INSTALL; then
|
280
|
1007 echo "Cannot build InfoDock without InfoDock sources"
|
|
1008 with_infodock=no
|
|
1009 fi
|
|
1010 fi
|
|
1011
|
|
1012 if test "$with_infodock" = "yes"; then
|
|
1013 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
1014 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
|
|
1015 EOF
|
|
1016 cat >> confdefs.h <<EOF
|
|
1017 #define INFODOCK_MAJOR_VERSION $infodock_major_version
|
|
1018 EOF
|
|
1019 }
|
|
1020
|
280
|
1021 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
1022 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
|
|
1023 EOF
|
|
1024 cat >> confdefs.h <<EOF
|
|
1025 #define INFODOCK_MINOR_VERSION $infodock_minor_version
|
|
1026 EOF
|
|
1027 }
|
|
1028
|
280
|
1029 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
1030 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
|
|
1031 EOF
|
|
1032 cat >> confdefs.h <<EOF
|
|
1033 #define INFODOCK_BUILD_VERSION $infodock_build_version
|
|
1034 EOF
|
|
1035 }
|
|
1036
|
280
|
1037 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
|
|
1038 PROGNAME=infodock
|
|
1039 CPPFLAGS="$CPPFLAGS -DINFODOCK"
|
|
1040 else
|
|
1041 PROGNAME=xemacs
|
|
1042 fi
|
278
|
1043
|
442
|
1044 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1045 Defining EMACS_PROGNAME = "$PROGNAME"
|
|
1046 EOF
|
|
1047 cat >> confdefs.h <<EOF
|
|
1048 #define EMACS_PROGNAME "$PROGNAME"
|
|
1049 EOF
|
|
1050 }
|
|
1051
|
|
1052
|
414
|
1053 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
|
800
|
1054 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
171
|
1055 Defining ERROR_CHECK_EXTENTS
|
|
1056 EOF
|
|
1057 cat >> confdefs.h <<\EOF
|
|
1058 #define ERROR_CHECK_EXTENTS 1
|
|
1059 EOF
|
|
1060 }
|
|
1061
|
800
|
1062 test "${error_check_types=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1063 Defining ERROR_CHECK_TYPES
|
|
1064 EOF
|
|
1065 cat >> confdefs.h <<\EOF
|
|
1066 #define ERROR_CHECK_TYPES 1
|
|
1067 EOF
|
|
1068 }
|
|
1069
|
|
1070 test "${error_check_text=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1071 Defining ERROR_CHECK_TEXT
|
|
1072 EOF
|
|
1073 cat >> confdefs.h <<\EOF
|
|
1074 #define ERROR_CHECK_TEXT 1
|
|
1075 EOF
|
|
1076 }
|
|
1077
|
|
1078 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
171
|
1079 Defining ERROR_CHECK_GC
|
|
1080 EOF
|
|
1081 cat >> confdefs.h <<\EOF
|
|
1082 #define ERROR_CHECK_GC 1
|
|
1083 EOF
|
|
1084 }
|
|
1085
|
800
|
1086 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
171
|
1087 Defining ERROR_CHECK_MALLOC
|
|
1088 EOF
|
|
1089 cat >> confdefs.h <<\EOF
|
|
1090 #define ERROR_CHECK_MALLOC 1
|
|
1091 EOF
|
|
1092 }
|
|
1093
|
800
|
1094 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
414
|
1095 Defining ERROR_CHECK_BYTE_CODE
|
|
1096 EOF
|
|
1097 cat >> confdefs.h <<\EOF
|
|
1098 #define ERROR_CHECK_BYTE_CODE 1
|
|
1099 EOF
|
|
1100 }
|
|
1101
|
800
|
1102 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
442
|
1103 Defining ERROR_CHECK_GLYPHS
|
|
1104 EOF
|
|
1105 cat >> confdefs.h <<\EOF
|
|
1106 #define ERROR_CHECK_GLYPHS 1
|
|
1107 EOF
|
|
1108 }
|
|
1109
|
800
|
1110 test "${error_check_display=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1111 Defining ERROR_CHECK_DISPLAY
|
|
1112 EOF
|
|
1113 cat >> confdefs.h <<\EOF
|
|
1114 #define ERROR_CHECK_DISPLAY 1
|
|
1115 EOF
|
|
1116 }
|
|
1117
|
|
1118 test "${error_check_structures=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1119 Defining ERROR_CHECK_STRUCTURES
|
|
1120 EOF
|
|
1121 cat >> confdefs.h <<\EOF
|
|
1122 #define ERROR_CHECK_STRUCTURES 1
|
|
1123 EOF
|
|
1124 }
|
|
1125
|
272
|
1126 if test "${debug:=$beta}" = "yes"; then
|
771
|
1127 use_assertions=yes
|
|
1128 memory_usage_stats=yes
|
171
|
1129 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1130 Defining DEBUG_XEMACS
|
|
1131 EOF
|
|
1132 cat >> confdefs.h <<\EOF
|
|
1133 #define DEBUG_XEMACS 1
|
|
1134 EOF
|
|
1135 }
|
|
1136
|
|
1137 fi
|
|
1138 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1139 Defining USE_ASSERTIONS
|
|
1140 EOF
|
|
1141 cat >> confdefs.h <<\EOF
|
|
1142 #define USE_ASSERTIONS 1
|
|
1143 EOF
|
|
1144 }
|
|
1145
|
|
1146 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1147 Defining MEMORY_USAGE_STATS
|
|
1148 EOF
|
|
1149 cat >> confdefs.h <<\EOF
|
|
1150 #define MEMORY_USAGE_STATS 1
|
|
1151 EOF
|
|
1152 }
|
|
1153
|
|
1154
|
149
|
1155
|
380
|
1156 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
|
1464
|
1157 echo "configure:1158: checking "host system type"" >&5
|
217
|
1158 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
|
380
|
1159 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
|
|
1160 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
|
|
1161 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
|
|
1162 echo "$ac_t""$configuration" 1>&6
|
0
|
1163
|
149
|
1164
|
|
1165
|
|
1166
|
|
1167
|
151
|
1168 machine='' opsys=''
|
149
|
1169
|
|
1170 case "$canonical" in
|
|
1171 sparc-*-* ) machine=sparc ;;
|
373
|
1172 alpha*-*-* ) machine=alpha ;;
|
149
|
1173 vax-*-* ) machine=vax ;;
|
|
1174 mips-dec-* ) machine=pmax ;;
|
440
|
1175 mips-sgi-irix6* ) machine=iris6d ;;
|
149
|
1176 mips-sgi-* ) machine=iris4d ;;
|
424
|
1177 mips*-linux ) machine=mips ;;
|
149
|
1178 romp-ibm-* ) machine=ibmrt ;;
|
|
1179 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
|
|
1180 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
|
163
|
1181 powerpc*-* ) machine=powerpc ;;
|
149
|
1182 hppa-*-* ) machine=hp800 ;;
|
|
1183 m88k-dg-* ) machine=aviion ;;
|
|
1184 m68*-sony-* ) machine=news ;;
|
|
1185 mips-sony-* ) machine=news-risc ;;
|
|
1186 clipper-* ) machine=clipper ;;
|
442
|
1187 arm* ) machine=arm ;;
|
380
|
1188 ns32k-* ) machine=ns32000 ;;
|
149
|
1189 esac
|
|
1190
|
|
1191 case "$canonical" in
|
|
1192 *-*-linux* ) opsys=linux ;;
|
|
1193 *-*-netbsd* ) opsys=netbsd ;;
|
286
|
1194 *-*-openbsd* ) opsys=openbsd ;;
|
149
|
1195 *-*-nextstep* ) opsys=nextstep ;;
|
|
1196 *-*-vms ) opsys=vms ;;
|
|
1197
|
|
1198 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
|
|
1199 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
|
|
1200 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
|
|
1201 *-dec-osf3* ) opsys=decosf3-1 ;;
|
444
|
1202 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
|
149
|
1203
|
|
1204 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
1205 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
|
|
1206 *-*-ultrix* ) opsys=ultrix4-3 ;;
|
|
1207
|
1300
|
1208 *-*-aix3.1* ) opsys=aix3-1 ;;
|
|
1209 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
|
|
1210 *-*-aix3* ) opsys=aix3-2 ;;
|
|
1211 *-*-aix4.0* ) opsys=aix4 ;;
|
|
1212 *-*-aix4.1* ) opsys=aix4-1 ;;
|
|
1213 *-*-aix[4-9]* ) opsys=aix4-2 ;;
|
149
|
1214
|
|
1215 *-gnu* ) opsys=gnu ;;
|
|
1216 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
1217 *-*-bsd4.2 ) opsys=bsd4-2 ;;
|
|
1218 *-*-bsd4.3 ) opsys=bsd4-3 ;;
|
|
1219 *-*-aos4.2 ) opsys=bsd4-2 ;;
|
|
1220 *-*-aos* ) opsys=bsd4-3 ;;
|
|
1221 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
|
|
1222 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
|
|
1223 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
1224 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
|
|
1225 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1226 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
|
1227 if test -z "$NON_GNU_CPP" ; then
|
151
|
1228 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
|
|
1229 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
|
|
1230 done
|
149
|
1231 fi
|
|
1232 opsys=usg5-4-2 ;;
|
|
1233 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
1234 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
|
|
1235 esac
|
|
1236
|
|
1237 case "$canonical" in
|
|
1238
|
|
1239 *-*-netbsd* )
|
|
1240 case "$canonical" in
|
0
|
1241 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
1242 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
149
|
1243 machine=hp9000s300 ;;
|
70
|
1244 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
1245 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
0
|
1246 esac
|
|
1247 ;;
|
|
1248
|
286
|
1249 *-*-openbsd* )
|
|
1250 case "${canonical}" in
|
|
1251 i386-*-openbsd*) machine=intel386 ;;
|
|
1252 m68k-*-openbsd*) machine=hp9000s300 ;;
|
|
1253 mipsel-*-openbsd*) machine=pmax ;;
|
|
1254 esac
|
|
1255 ;;
|
|
1256
|
149
|
1257 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
|
70
|
1258 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
|
0
|
1259
|
149
|
1260 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
|
70
|
1261 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
|
0
|
1262
|
149
|
1263 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
|
|
1264
|
|
1265 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
|
|
1266
|
|
1267 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
|
|
1268
|
|
1269 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
|
|
1270
|
|
1271 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
|
|
1272
|
|
1273 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
|
74
|
1274 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
|
|
1275 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
|
0
|
1276
|
149
|
1277
|
|
1278 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
|
|
1279
|
|
1280 *-convex-bsd* | *-convex-convexos* )
|
0
|
1281 machine=convex opsys=bsd4-3
|
|
1282 NON_GNU_CPP="cc -E -P"
|
|
1283 ;;
|
|
1284
|
149
|
1285 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
|
|
1286
|
867
|
1287 *-*-darwin*)
|
|
1288 opsys=darwin
|
1443
|
1289 ;;
|
867
|
1290
|
149
|
1291 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
|
|
1292 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
|
|
1293 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
|
|
1294 m88k-dg-dgux* ) opsys=dgux ;;
|
|
1295
|
|
1296 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
|
0
|
1297 m88k-motorola-sysv4* )
|
149
|
1298 machine=delta88k opsys=usg5-4-2
|
0
|
1299 ;;
|
70
|
1300 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
|
0
|
1301
|
149
|
1302 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
|
70
|
1303 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
|
0
|
1304
|
149
|
1305 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
|
|
1306
|
|
1307 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
|
70
|
1308 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
|
|
1309 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
|
0
|
1310
|
149
|
1311 m88k-harris-cxux* )
|
|
1312 case "`uname -r`" in
|
74
|
1313 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
70
|
1314 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
0
|
1315 esac
|
|
1316 NON_GNU_CPP="/lib/cpp"
|
|
1317 ;;
|
149
|
1318 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
|
|
1319 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
|
|
1320
|
|
1321 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
|
|
1322
|
|
1323 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
|
|
1324
|
|
1325 *-hp-hpux* )
|
|
1326 case "$canonical" in
|
70
|
1327 m68* ) machine=hp9000s300 ;;
|
|
1328 hppa* ) machine=hp800 ;;
|
|
1329 esac
|
|
1330
|
149
|
1331 case "$canonical" in
|
|
1332 *-hp-hpux7* ) opsys=hpux ;;
|
|
1333 *-hp-hpux8* ) opsys=hpux8 ;;
|
|
1334 *-hp-hpux9* ) opsys=hpux9 ;;
|
|
1335 *-hp-hpux10* ) opsys=hpux10 ;;
|
269
|
1336 *-hp-hpux11* ) opsys=hpux11 ;;
|
151
|
1337 * ) opsys=hpux ;;
|
0
|
1338 esac
|
72
|
1339
|
151
|
1340 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
|
|
1341 echo " xemacs will be linked with \"strcat.o\""
|
|
1342 fi ;; esac
|
149
|
1343
|
269
|
1344 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
|
|
1345 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
|
149
|
1346 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
|
|
1347
|
|
1348 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
|
0
|
1349 ;;
|
|
1350
|
149
|
1351 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
|
70
|
1352 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
|
0
|
1353
|
149
|
1354 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
|
70
|
1355 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
|
|
1356 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
|
149
|
1357 romp-ibm-aos* ) opsys=bsd4-3 ;;
|
|
1358 romp-ibm-bsd* ) opsys=bsd4-3 ;;
|
|
1359 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
|
|
1360
|
|
1361 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
|
70
|
1362 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
|
0
|
1363
|
149
|
1364 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
|
|
1365
|
|
1366 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
|
|
1367
|
|
1368 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
|
|
1369
|
|
1370 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
|
|
1371
|
|
1372 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
|
|
1373
|
|
1374 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
|
|
1375
|
|
1376 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
|
|
1377
|
|
1378 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
|
|
1379
|
|
1380 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
|
|
1381
|
|
1382 mips-mips-usg* ) machine=mips4 ;;
|
70
|
1383 mips-mips-riscos4 )
|
|
1384 machine=mips4
|
0
|
1385 NON_GNU_CC="cc -systype bsd43"
|
|
1386 NON_GNU_CPP="cc -systype bsd43 -E"
|
149
|
1387 case "$canonical" in
|
70
|
1388 mips-mips-riscos4* ) opsys=bsd4-3 ;;
|
|
1389 mips-mips-riscos5* ) opsys=riscos5 ;;
|
|
1390 esac
|
0
|
1391 ;;
|
70
|
1392 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
|
|
1393 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
|
0
|
1394
|
149
|
1395 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
|
|
1396
|
|
1397 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
|
|
1398
|
|
1399 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
|
70
|
1400 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
|
0
|
1401
|
149
|
1402 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
|
|
1403
|
|
1404 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
|
|
1405
|
|
1406 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
|
|
1407
|
|
1408 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
|
|
1409
|
|
1410 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
|
70
|
1411 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
|
0
|
1412
|
149
|
1413 mips-siemens-sysv* | mips-sni-sysv*)
|
0
|
1414 machine=mips-siemens opsys=usg5-4
|
|
1415 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1416 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1417 ;;
|
|
1418
|
377
|
1419 mips-nec-sysv*)
|
|
1420 machine=mips-nec
|
|
1421 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1422 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1423 ;;
|
|
1424
|
149
|
1425 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
70
|
1426 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
149
|
1427 mips-sgi-irix3.* ) opsys=irix3-3 ;;
|
|
1428 mips-sgi-irix4.* ) opsys=irix4-0 ;;
|
207
|
1429 mips-sgi-irix6* ) opsys=irix6-0 ;;
|
149
|
1430 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
|
|
1431 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
|
|
1432 mips-sgi-irix5.* ) opsys=irix5-3 ;;
|
|
1433 mips-sgi-irix* ) opsys=irix5-0 ;;
|
|
1434
|
|
1435 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
|
|
1436 *-sony-news* ) opsys=newsos5 ;;
|
|
1437
|
|
1438 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
|
1439
|
|
1440 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
1441 case "$canonical" in
|
0
|
1442 m68*-sunos1* ) machine=sun1 ;;
|
|
1443 m68*-sunos2* ) machine=sun2 ;;
|
|
1444 m68* ) machine=sun3 ;;
|
163
|
1445 i*86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
1446 i*86-*-* ) machine=intel386 ;;
|
0
|
1447 rs6000* ) machine=rs6000 ;;
|
|
1448 esac
|
149
|
1449
|
|
1450 case "$canonical" in *-sunos5*)
|
163
|
1451 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
|
0
|
1452 esac
|
|
1453
|
149
|
1454 case "$canonical" in
|
0
|
1455 *-sunos4* )
|
157
|
1456 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1457 : ;;
|
70
|
1458 *-solaris2* )
|
157
|
1459 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1460 RANLIB=':' ;;
|
151
|
1461 esac
|
149
|
1462
|
|
1463 case "$canonical" in
|
1692
|
1464 *-solaris* )
|
163
|
1465 opsys=sol2
|
1692
|
1466 os_release_major=`uname -r | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1/'`
|
|
1467 os_release_minor=`uname -r | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\2/'`
|
|
1468 case "$os_release_minor" in [0-9])
|
|
1469 os_release_minor="0${os_release_minor}";;
|
|
1470 esac
|
|
1471 os_release="${os_release_major}${os_release_minor}"
|
163
|
1472 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1473 Defining OS_RELEASE = $os_release
|
|
1474 EOF
|
|
1475 cat >> confdefs.h <<EOF
|
|
1476 #define OS_RELEASE $os_release
|
|
1477 EOF
|
|
1478 }
|
|
1479 ;;
|
|
1480
|
|
1481 i*86-*-sunos4* ) opsys=sunos4-0 ;;
|
74
|
1482 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
1483 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
110
|
1484 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
120
|
1485 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
74
|
1486 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
1487 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1488 * ) opsys=bsd4-2 ;;
|
0
|
1489 esac
|
70
|
1490
|
149
|
1491 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
1492
|
163
|
1493 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
|
0
|
1494 ;;
|
70
|
1495
|
149
|
1496 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
|
1497
|
|
1498 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
70
|
1499 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
0
|
1500
|
149
|
1501 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
|
1502
|
|
1503 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
|
1504
|
|
1505 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
|
1506 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
|
1507
|
|
1508 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
|
1509
|
|
1510 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
|
1511
|
|
1512 vax-dec-* )
|
|
1513 case "$canonical" in
|
|
1514 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
1515 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
1516 *-mach* ) opsys=mach-bsd4-3 ;;
|
0
|
1517 esac
|
|
1518 ;;
|
|
1519
|
149
|
1520 ns16k-whitechapel-* ) machine=mg1 ;;
|
|
1521
|
|
1522 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
|
1523
|
|
1524 i[3-9]86-*-* )
|
0
|
1525 machine=intel386
|
149
|
1526 case "$canonical" in
|
120
|
1527 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
0
|
1528 *-isc2.2* ) opsys=isc2-2 ;;
|
|
1529 *-isc4.0* ) opsys=isc4-0 ;;
|
|
1530 *-isc4.* ) opsys=isc4-1
|
|
1531 GCC_TEST_OPTIONS=-posix
|
|
1532 NON_GCC_TEST_OPTIONS=-Xp
|
|
1533 ;;
|
|
1534 *-isc* ) opsys=isc3-0 ;;
|
149
|
1535 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
|
0
|
1536 *-esix* ) opsys=esix ;;
|
|
1537 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1538 *-xenix* ) opsys=xenix ;;
|
149
|
1539 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
|
0
|
1540 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
392
|
1541 *-bsdi4* ) opsys=bsdos4 ;;
|
110
|
1542 *-bsdi3* ) opsys=bsdos3 ;;
|
0
|
1543 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
1544 *-bsdi2* ) opsys=bsdos2 ;;
|
460
|
1545 *-sco3.2v5* ) opsys=sco5 ;;
|
422
|
1546 *-sysv5* ) opsys=sco7 ;;
|
70
|
1547 *-386bsd* ) opsys=386bsd ;;
|
|
1548 *-freebsd* ) opsys=freebsd ;;
|
0
|
1549 *-nextstep* ) opsys=nextstep ;;
|
398
|
1550 *-pc-cygwin* ) opsys=cygwin32 ;;
|
|
1551 *-pc-mingw* ) opsys=mingw32 ;
|
|
1552 test -z "$with_tty" && with_tty="no";;
|
149
|
1553 esac
|
0
|
1554 ;;
|
|
1555
|
149
|
1556 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
1557
|
0
|
1558 esac
|
|
1559
|
442
|
1560 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
|
505
|
1561
|
|
1562 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
442
|
1563
|
|
1564 if test -r "${srcdir}/src/m/${machine}.h"; then
|
|
1565 machfile="m/${machine}.h"
|
|
1566 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1567 Defining config_machfile = "$machfile"
|
|
1568 EOF
|
|
1569 cat >> confdefs.h <<EOF
|
|
1570 #define config_machfile "$machfile"
|
|
1571 EOF
|
|
1572 }
|
|
1573
|
|
1574 else
|
|
1575 echo "XEmacs has no builtin knowledge of \`$machine' machines."
|
|
1576 echo "Using configure-time autodetection only."
|
|
1577 fi
|
|
1578
|
|
1579 if test -r "${srcdir}/src/s/${opsys}.h"; then
|
|
1580 opsysfile="s/${opsys}.h"
|
|
1581 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1582 Defining config_opsysfile = "$opsysfile"
|
|
1583 EOF
|
|
1584 cat >> confdefs.h <<EOF
|
|
1585 #define config_opsysfile "$opsysfile"
|
|
1586 EOF
|
|
1587 }
|
|
1588
|
|
1589 else
|
|
1590 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
|
|
1591 echo "Using configure-time autodetection only."
|
|
1592 fi
|
|
1593
|
0
|
1594
|
1161
|
1595 if test -z "$pdump"; then
|
|
1596 case "$opsys" in
|
1443
|
1597 linux* ) pdump=yes ;; darwin ) pdump=yes ;; * ) pdump=no ;;
|
1161
|
1598 esac
|
|
1599 fi
|
|
1600
|
173
|
1601 if test -z "$dynamic"; then
|
|
1602 case "$opsys" in
|
388
|
1603 hpux* | sunos4* ) dynamic=no ;;
|
173
|
1604 *) dynamic=yes ;;
|
|
1605 esac
|
|
1606 fi
|
|
1607 if test "$dynamic" = "yes"; then
|
149
|
1608 case "$opsys" in
|
72
|
1609 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
173
|
1610 decosf* ) ld_call_shared="-call_shared" ;;
|
1259
|
1611 darwin ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1612 Defining DLSYM_NEEDS_UNDERSCORE
|
|
1613 EOF
|
|
1614 cat >> confdefs.h <<\EOF
|
|
1615 #define DLSYM_NEEDS_UNDERSCORE 1
|
|
1616 EOF
|
|
1617 }
|
|
1618 ;;
|
0
|
1619 esac
|
173
|
1620 else case "$opsys" in
|
187
|
1621 sol2 )
|
173
|
1622 echo "Static linking is not supported on Solaris 2."
|
|
1623 echo "Rerun configure without specifying --dynamic=no."
|
|
1624 exit 1 ;;
|
|
1625 linux ) ld_call_shared="-Bstatic" ;;
|
|
1626 decosf* ) ld_call_shared="-non_shared" ;;
|
0
|
1627 esac
|
|
1628 fi
|
|
1629
|
1443
|
1630 case "$opsys" in
|
|
1631 aix* ) NON_GNU_CC=xlc ;; darwin ) RANLIB="ranlib -c" ;; esac
|
207
|
1632
|
280
|
1633 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
|
173
|
1634 { test "$extra_verbose" = "yes" && cat << EOF
|
177
|
1635 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
|
173
|
1636 EOF
|
|
1637 cat >> confdefs.h <<EOF
|
177
|
1638 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
|
173
|
1639 EOF
|
|
1640 }
|
|
1641
|
|
1642
|
0
|
1643
|
151
|
1644 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
|
284
|
1645 if test "$with_workshop $with_tooltalk" = "yes no"; then
|
|
1646 (echo "$progname: Usage error:"
|
|
1647 echo " " "--with-workshop requires --with-tooltalk"
|
|
1648 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
1649 elif test "$with_tooltalk" = "no" ; then with_workshop=no
|
|
1650 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
|
|
1651 fi
|
|
1652
|
151
|
1653 if test "$with_workshop" = "yes"; then
|
|
1654 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1655 Defining SUNPRO
|
|
1656 EOF
|
|
1657 cat >> confdefs.h <<\EOF
|
|
1658 #define SUNPRO 1
|
|
1659 EOF
|
|
1660 }
|
|
1661
|
|
1662 fi
|
|
1663
|
442
|
1664 if test "$with_clash_detection" != "no"; then
|
175
|
1665 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1666 Defining CLASH_DETECTION
|
|
1667 EOF
|
|
1668 cat >> confdefs.h <<\EOF
|
|
1669 #define CLASH_DETECTION 1
|
|
1670 EOF
|
|
1671 }
|
|
1672
|
|
1673 fi
|
|
1674
|
169
|
1675 test -n "$compiler" && CC="$compiler"
|
|
1676 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
|
|
1677 fi
|
149
|
1678
|
272
|
1679 test "${cflags-unset}" != unset && CFLAGS="$cflags"
|
|
1680 if test "${CFLAGS-unset}" != unset
|
|
1681 then cflags_specified=yes;
|
|
1682 else cflags_specified=no;
|
|
1683 fi
|
|
1684
|
1111
|
1685 if test "${cflags_warning-unset}" != unset
|
|
1686 then cflags_warning_specified=yes;
|
|
1687 else cflags_warning_specified=no;
|
|
1688 fi
|
|
1689
|
157
|
1690 xe_save_CFLAGS="$CFLAGS"
|
|
1691
|
149
|
1692 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1693 set dummy gcc; ac_word=$2
|
|
1694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1692
|
1695 echo "configure:1696: checking for $ac_word" >&5
|
149
|
1696
|
|
1697 if test -n "$CC"; then
|
|
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1699 else
|
420
|
1700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1701 ac_dummy="$PATH"
|
|
1702 for ac_dir in $ac_dummy; do
|
149
|
1703 test -z "$ac_dir" && ac_dir=.
|
|
1704 if test -f $ac_dir/$ac_word; then
|
|
1705 ac_cv_prog_CC="gcc"
|
|
1706 break
|
|
1707 fi
|
|
1708 done
|
|
1709 IFS="$ac_save_ifs"
|
|
1710 fi
|
|
1711 CC="$ac_cv_prog_CC"
|
|
1712 if test -n "$CC"; then
|
|
1713 echo "$ac_t""$CC" 1>&6
|
|
1714 else
|
|
1715 echo "$ac_t""no" 1>&6
|
|
1716 fi
|
|
1717
|
|
1718 if test -z "$CC"; then
|
|
1719 # Extract the first word of "cc", so it can be a program name with args.
|
|
1720 set dummy cc; ac_word=$2
|
|
1721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1692
|
1722 echo "configure:1723: checking for $ac_word" >&5
|
149
|
1723
|
|
1724 if test -n "$CC"; then
|
|
1725 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1726 else
|
420
|
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
149
|
1728 ac_prog_rejected=no
|
420
|
1729 ac_dummy="$PATH"
|
|
1730 for ac_dir in $ac_dummy; do
|
149
|
1731 test -z "$ac_dir" && ac_dir=.
|
|
1732 if test -f $ac_dir/$ac_word; then
|
|
1733 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1734 ac_prog_rejected=yes
|
|
1735 continue
|
|
1736 fi
|
|
1737 ac_cv_prog_CC="cc"
|
|
1738 break
|
|
1739 fi
|
|
1740 done
|
|
1741 IFS="$ac_save_ifs"
|
|
1742 if test $ac_prog_rejected = yes; then
|
|
1743 # We found a bogon in the path, so make sure we never use it.
|
|
1744 set dummy $ac_cv_prog_CC
|
|
1745 shift
|
|
1746 if test $# -gt 0; then
|
|
1747 # We chose a different compiler from the bogus one.
|
|
1748 # However, it has the same basename, so the bogon will be chosen
|
|
1749 # first if we set CC to just the basename; use the full file name.
|
|
1750 shift
|
|
1751 set dummy "$ac_dir/$ac_word" "$@"
|
|
1752 shift
|
|
1753 ac_cv_prog_CC="$@"
|
|
1754 fi
|
|
1755 fi
|
|
1756 fi
|
|
1757 CC="$ac_cv_prog_CC"
|
|
1758 if test -n "$CC"; then
|
|
1759 echo "$ac_t""$CC" 1>&6
|
|
1760 else
|
|
1761 echo "$ac_t""no" 1>&6
|
|
1762 fi
|
|
1763
|
420
|
1764 if test -z "$CC"; then
|
|
1765 case "`uname -s`" in
|
|
1766 *win32* | *WIN32*)
|
|
1767 # Extract the first word of "cl", so it can be a program name with args.
|
|
1768 set dummy cl; ac_word=$2
|
|
1769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1692
|
1770 echo "configure:1771: checking for $ac_word" >&5
|
420
|
1771
|
|
1772 if test -n "$CC"; then
|
|
1773 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1774 else
|
|
1775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1776 ac_dummy="$PATH"
|
|
1777 for ac_dir in $ac_dummy; do
|
|
1778 test -z "$ac_dir" && ac_dir=.
|
|
1779 if test -f $ac_dir/$ac_word; then
|
|
1780 ac_cv_prog_CC="cl"
|
|
1781 break
|
|
1782 fi
|
|
1783 done
|
|
1784 IFS="$ac_save_ifs"
|
|
1785 fi
|
|
1786 CC="$ac_cv_prog_CC"
|
|
1787 if test -n "$CC"; then
|
|
1788 echo "$ac_t""$CC" 1>&6
|
|
1789 else
|
|
1790 echo "$ac_t""no" 1>&6
|
|
1791 fi
|
|
1792 ;;
|
|
1793 esac
|
|
1794 fi
|
149
|
1795 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1796 fi
|
|
1797
|
|
1798 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
1692
|
1799 echo "configure:1800: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
70
|
1800
|
0
|
1801 ac_ext=c
|
151
|
1802 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1803 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1804 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
|
1805 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
1806 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1807 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
1808 cross_compiling=no
|
|
1809
|
420
|
1810 cat > conftest.$ac_ext << EOF
|
|
1811
|
1692
|
1812 #line 1813 "configure"
|
420
|
1813 #include "confdefs.h"
|
|
1814
|
149
|
1815 main(){return(0);}
|
|
1816 EOF
|
1692
|
1817 if { (eval echo configure:1818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
1818 ac_cv_prog_cc_works=yes
|
|
1819 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
1820 if (./conftest; exit) 2>/dev/null; then
|
|
1821 ac_cv_prog_cc_cross=no
|
|
1822 else
|
|
1823 ac_cv_prog_cc_cross=yes
|
0
|
1824 fi
|
149
|
1825 else
|
|
1826 echo "configure: failed program was:" >&5
|
|
1827 cat conftest.$ac_ext >&5
|
|
1828 ac_cv_prog_cc_works=no
|
|
1829 fi
|
|
1830 rm -fr conftest*
|
420
|
1831 ac_ext=c
|
|
1832 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1833 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1834 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
|
1835 ac_cpp='$CPP '"$xe_cppflags"
|
|
1836 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1837 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
1838 cross_compiling=no
|
149
|
1839
|
|
1840 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
1841 if test $ac_cv_prog_cc_works = no; then
|
|
1842 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
1843 fi
|
|
1844 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
1692
|
1845 echo "configure:1846: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
149
|
1846 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
1847 cross_compiling=$ac_cv_prog_cc_cross
|
|
1848
|
|
1849 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
1692
|
1850 echo "configure:1851: checking whether we are using GNU C" >&5
|
149
|
1851
|
|
1852 cat > conftest.c <<EOF
|
|
1853 #ifdef __GNUC__
|
|
1854 yes;
|
|
1855 #endif
|
|
1856 EOF
|
1692
|
1857 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
149
|
1858 ac_cv_prog_gcc=yes
|
|
1859 else
|
|
1860 ac_cv_prog_gcc=no
|
|
1861 fi
|
|
1862
|
|
1863 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
1864
|
|
1865 if test $ac_cv_prog_gcc = yes; then
|
|
1866 GCC=yes
|
420
|
1867 else
|
|
1868 GCC=
|
|
1869 fi
|
|
1870
|
|
1871 ac_test_CFLAGS="${CFLAGS+set}"
|
|
1872 ac_save_CFLAGS="$CFLAGS"
|
|
1873 CFLAGS=
|
|
1874 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
1692
|
1875 echo "configure:1876: checking whether ${CC-cc} accepts -g" >&5
|
149
|
1876
|
|
1877 echo 'void f(){}' > conftest.c
|
|
1878 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
1879 ac_cv_prog_cc_g=yes
|
|
1880 else
|
|
1881 ac_cv_prog_cc_g=no
|
|
1882 fi
|
|
1883 rm -f conftest*
|
|
1884
|
|
1885
|
|
1886 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
1887 if test "$ac_test_CFLAGS" = set; then
|
|
1888 CFLAGS="$ac_save_CFLAGS"
|
|
1889 elif test $ac_cv_prog_cc_g = yes; then
|
|
1890 if test "$GCC" = yes; then
|
149
|
1891 CFLAGS="-g -O2"
|
0
|
1892 else
|
420
|
1893 CFLAGS="-g"
|
|
1894 fi
|
|
1895 else
|
|
1896 if test "$GCC" = yes; then
|
149
|
1897 CFLAGS="-O2"
|
420
|
1898 else
|
|
1899 CFLAGS=
|
|
1900 fi
|
149
|
1901 fi
|
169
|
1902
|
|
1903 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
|
149
|
1904 CC=${NON_GNU_CC-cc}
|
|
1905 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1906 set dummy gcc; ac_word=$2
|
|
1907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1692
|
1908 echo "configure:1909: checking for $ac_word" >&5
|
149
|
1909
|
|
1910 if test -n "$CC"; then
|
|
1911 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1912 else
|
420
|
1913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1914 ac_dummy="$PATH"
|
|
1915 for ac_dir in $ac_dummy; do
|
0
|
1916 test -z "$ac_dir" && ac_dir=.
|
|
1917 if test -f $ac_dir/$ac_word; then
|
149
|
1918 ac_cv_prog_CC="gcc"
|
|
1919 break
|
|
1920 fi
|
|
1921 done
|
|
1922 IFS="$ac_save_ifs"
|
|
1923 fi
|
|
1924 CC="$ac_cv_prog_CC"
|
|
1925 if test -n "$CC"; then
|
|
1926 echo "$ac_t""$CC" 1>&6
|
|
1927 else
|
|
1928 echo "$ac_t""no" 1>&6
|
|
1929 fi
|
|
1930
|
|
1931 if test -z "$CC"; then
|
|
1932 # Extract the first word of "cc", so it can be a program name with args.
|
|
1933 set dummy cc; ac_word=$2
|
|
1934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1692
|
1935 echo "configure:1936: checking for $ac_word" >&5
|
157
|
1936
|
|
1937 if test -n "$CC"; then
|
|
1938 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1939 else
|
420
|
1940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
157
|
1941 ac_prog_rejected=no
|
420
|
1942 ac_dummy="$PATH"
|
|
1943 for ac_dir in $ac_dummy; do
|
157
|
1944 test -z "$ac_dir" && ac_dir=.
|
|
1945 if test -f $ac_dir/$ac_word; then
|
|
1946 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1947 ac_prog_rejected=yes
|
|
1948 continue
|
|
1949 fi
|
|
1950 ac_cv_prog_CC="cc"
|
|
1951 break
|
|
1952 fi
|
|
1953 done
|
|
1954 IFS="$ac_save_ifs"
|
|
1955 if test $ac_prog_rejected = yes; then
|
|
1956 # We found a bogon in the path, so make sure we never use it.
|
|
1957 set dummy $ac_cv_prog_CC
|
|
1958 shift
|
|
1959 if test $# -gt 0; then
|
|
1960 # We chose a different compiler from the bogus one.
|
|
1961 # However, it has the same basename, so the bogon will be chosen
|
|
1962 # first if we set CC to just the basename; use the full file name.
|
|
1963 shift
|
|
1964 set dummy "$ac_dir/$ac_word" "$@"
|
|
1965 shift
|
|
1966 ac_cv_prog_CC="$@"
|
|
1967 fi
|
|
1968 fi
|
|
1969 fi
|
|
1970 CC="$ac_cv_prog_CC"
|
|
1971 if test -n "$CC"; then
|
|
1972 echo "$ac_t""$CC" 1>&6
|
|
1973 else
|
|
1974 echo "$ac_t""no" 1>&6
|
|
1975 fi
|
|
1976
|
420
|
1977 if test -z "$CC"; then
|
|
1978 case "`uname -s`" in
|
|
1979 *win32* | *WIN32*)
|
|
1980 # Extract the first word of "cl", so it can be a program name with args.
|
|
1981 set dummy cl; ac_word=$2
|
|
1982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1692
|
1983 echo "configure:1984: checking for $ac_word" >&5
|
420
|
1984
|
|
1985 if test -n "$CC"; then
|
|
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1987 else
|
|
1988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1989 ac_dummy="$PATH"
|
|
1990 for ac_dir in $ac_dummy; do
|
|
1991 test -z "$ac_dir" && ac_dir=.
|
|
1992 if test -f $ac_dir/$ac_word; then
|
|
1993 ac_cv_prog_CC="cl"
|
|
1994 break
|
|
1995 fi
|
|
1996 done
|
|
1997 IFS="$ac_save_ifs"
|
|
1998 fi
|
|
1999 CC="$ac_cv_prog_CC"
|
|
2000 if test -n "$CC"; then
|
|
2001 echo "$ac_t""$CC" 1>&6
|
|
2002 else
|
|
2003 echo "$ac_t""no" 1>&6
|
|
2004 fi
|
|
2005 ;;
|
|
2006 esac
|
|
2007 fi
|
157
|
2008 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
2009 fi
|
|
2010
|
|
2011 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
1692
|
2012 echo "configure:2013: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
157
|
2013
|
|
2014 ac_ext=c
|
|
2015 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2016 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2017 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
|
2018 ac_cpp='$CPP '"$xe_cppflags"
|
|
2019 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2020 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
2021 cross_compiling=no
|
|
2022
|
420
|
2023 cat > conftest.$ac_ext << EOF
|
|
2024
|
1692
|
2025 #line 2026 "configure"
|
420
|
2026 #include "confdefs.h"
|
|
2027
|
157
|
2028 main(){return(0);}
|
|
2029 EOF
|
1692
|
2030 if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
157
|
2031 ac_cv_prog_cc_works=yes
|
|
2032 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
2033 if (./conftest; exit) 2>/dev/null; then
|
|
2034 ac_cv_prog_cc_cross=no
|
|
2035 else
|
|
2036 ac_cv_prog_cc_cross=yes
|
|
2037 fi
|
|
2038 else
|
|
2039 echo "configure: failed program was:" >&5
|
|
2040 cat conftest.$ac_ext >&5
|
|
2041 ac_cv_prog_cc_works=no
|
|
2042 fi
|
|
2043 rm -fr conftest*
|
420
|
2044 ac_ext=c
|
|
2045 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2046 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2047 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
|
2048 ac_cpp='$CPP '"$xe_cppflags"
|
|
2049 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2050 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
2051 cross_compiling=no
|
157
|
2052
|
|
2053 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
2054 if test $ac_cv_prog_cc_works = no; then
|
|
2055 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
2056 fi
|
|
2057 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
1692
|
2058 echo "configure:2059: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
157
|
2059 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
2060 cross_compiling=$ac_cv_prog_cc_cross
|
|
2061
|
|
2062 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
1692
|
2063 echo "configure:2064: checking whether we are using GNU C" >&5
|
157
|
2064
|
|
2065 cat > conftest.c <<EOF
|
|
2066 #ifdef __GNUC__
|
|
2067 yes;
|
|
2068 #endif
|
|
2069 EOF
|
1692
|
2070 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
157
|
2071 ac_cv_prog_gcc=yes
|
|
2072 else
|
|
2073 ac_cv_prog_gcc=no
|
|
2074 fi
|
|
2075
|
|
2076 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
2077
|
|
2078 if test $ac_cv_prog_gcc = yes; then
|
|
2079 GCC=yes
|
420
|
2080 else
|
|
2081 GCC=
|
|
2082 fi
|
|
2083
|
|
2084 ac_test_CFLAGS="${CFLAGS+set}"
|
|
2085 ac_save_CFLAGS="$CFLAGS"
|
|
2086 CFLAGS=
|
|
2087 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
1692
|
2088 echo "configure:2089: checking whether ${CC-cc} accepts -g" >&5
|
157
|
2089
|
|
2090 echo 'void f(){}' > conftest.c
|
|
2091 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
2092 ac_cv_prog_cc_g=yes
|
|
2093 else
|
|
2094 ac_cv_prog_cc_g=no
|
|
2095 fi
|
|
2096 rm -f conftest*
|
|
2097
|
|
2098
|
|
2099 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
2100 if test "$ac_test_CFLAGS" = set; then
|
|
2101 CFLAGS="$ac_save_CFLAGS"
|
|
2102 elif test $ac_cv_prog_cc_g = yes; then
|
|
2103 if test "$GCC" = yes; then
|
157
|
2104 CFLAGS="-g -O2"
|
|
2105 else
|
420
|
2106 CFLAGS="-g"
|
|
2107 fi
|
|
2108 else
|
|
2109 if test "$GCC" = yes; then
|
157
|
2110 CFLAGS="-O2"
|
420
|
2111 else
|
|
2112 CFLAGS=
|
|
2113 fi
|
157
|
2114 fi
|
|
2115
|
169
|
2116 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
|
157
|
2117 CC=gcc
|
|
2118 # Extract the first word of "gcc", so it can be a program name with args.
|
|
2119 set dummy gcc; ac_word=$2
|
|
2120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1692
|
2121 echo "configure:2122: checking for $ac_word" >&5
|
157
|
2122
|
|
2123 if test -n "$CC"; then
|
|
2124 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2125 else
|
420
|
2126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2127 ac_dummy="$PATH"
|
|
2128 for ac_dir in $ac_dummy; do
|
157
|
2129 test -z "$ac_dir" && ac_dir=.
|
|
2130 if test -f $ac_dir/$ac_word; then
|
|
2131 ac_cv_prog_CC="gcc"
|
|
2132 break
|
|
2133 fi
|
|
2134 done
|
|
2135 IFS="$ac_save_ifs"
|
|
2136 fi
|
|
2137 CC="$ac_cv_prog_CC"
|
|
2138 if test -n "$CC"; then
|
|
2139 echo "$ac_t""$CC" 1>&6
|
|
2140 else
|
|
2141 echo "$ac_t""no" 1>&6
|
|
2142 fi
|
|
2143
|
|
2144 if test -z "$CC"; then
|
|
2145 # Extract the first word of "cc", so it can be a program name with args.
|
|
2146 set dummy cc; ac_word=$2
|
|
2147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1692
|
2148 echo "configure:2149: checking for $ac_word" >&5
|
149
|
2149
|
|
2150 if test -n "$CC"; then
|
|
2151 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2152 else
|
420
|
2153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
149
|
2154 ac_prog_rejected=no
|
420
|
2155 ac_dummy="$PATH"
|
|
2156 for ac_dir in $ac_dummy; do
|
149
|
2157 test -z "$ac_dir" && ac_dir=.
|
|
2158 if test -f $ac_dir/$ac_word; then
|
|
2159 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
2160 ac_prog_rejected=yes
|
|
2161 continue
|
|
2162 fi
|
|
2163 ac_cv_prog_CC="cc"
|
|
2164 break
|
|
2165 fi
|
|
2166 done
|
|
2167 IFS="$ac_save_ifs"
|
|
2168 if test $ac_prog_rejected = yes; then
|
|
2169 # We found a bogon in the path, so make sure we never use it.
|
|
2170 set dummy $ac_cv_prog_CC
|
|
2171 shift
|
|
2172 if test $# -gt 0; then
|
|
2173 # We chose a different compiler from the bogus one.
|
|
2174 # However, it has the same basename, so the bogon will be chosen
|
|
2175 # first if we set CC to just the basename; use the full file name.
|
|
2176 shift
|
|
2177 set dummy "$ac_dir/$ac_word" "$@"
|
|
2178 shift
|
|
2179 ac_cv_prog_CC="$@"
|
|
2180 fi
|
|
2181 fi
|
|
2182 fi
|
|
2183 CC="$ac_cv_prog_CC"
|
|
2184 if test -n "$CC"; then
|
|
2185 echo "$ac_t""$CC" 1>&6
|
|
2186 else
|
|
2187 echo "$ac_t""no" 1>&6
|
|
2188 fi
|
|
2189
|
420
|
2190 if test -z "$CC"; then
|
|
2191 case "`uname -s`" in
|
|
2192 *win32* | *WIN32*)
|
|
2193 # Extract the first word of "cl", so it can be a program name with args.
|
|
2194 set dummy cl; ac_word=$2
|
|
2195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1692
|
2196 echo "configure:2197: checking for $ac_word" >&5
|
420
|
2197
|
|
2198 if test -n "$CC"; then
|
|
2199 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2200 else
|
|
2201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2202 ac_dummy="$PATH"
|
|
2203 for ac_dir in $ac_dummy; do
|
|
2204 test -z "$ac_dir" && ac_dir=.
|
|
2205 if test -f $ac_dir/$ac_word; then
|
|
2206 ac_cv_prog_CC="cl"
|
|
2207 break
|
|
2208 fi
|
|
2209 done
|
|
2210 IFS="$ac_save_ifs"
|
|
2211 fi
|
|
2212 CC="$ac_cv_prog_CC"
|
|
2213 if test -n "$CC"; then
|
|
2214 echo "$ac_t""$CC" 1>&6
|
|
2215 else
|
|
2216 echo "$ac_t""no" 1>&6
|
|
2217 fi
|
|
2218 ;;
|
|
2219 esac
|
|
2220 fi
|
149
|
2221 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
2222 fi
|
|
2223
|
|
2224 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
1692
|
2225 echo "configure:2226: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
149
|
2226
|
|
2227 ac_ext=c
|
151
|
2228 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2229 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2230 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
|
2231 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
2232 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2233 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
2234 cross_compiling=no
|
|
2235
|
420
|
2236 cat > conftest.$ac_ext << EOF
|
|
2237
|
1692
|
2238 #line 2239 "configure"
|
420
|
2239 #include "confdefs.h"
|
|
2240
|
149
|
2241 main(){return(0);}
|
|
2242 EOF
|
1692
|
2243 if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
2244 ac_cv_prog_cc_works=yes
|
|
2245 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
2246 if (./conftest; exit) 2>/dev/null; then
|
|
2247 ac_cv_prog_cc_cross=no
|
|
2248 else
|
|
2249 ac_cv_prog_cc_cross=yes
|
|
2250 fi
|
|
2251 else
|
|
2252 echo "configure: failed program was:" >&5
|
|
2253 cat conftest.$ac_ext >&5
|
|
2254 ac_cv_prog_cc_works=no
|
|
2255 fi
|
|
2256 rm -fr conftest*
|
420
|
2257 ac_ext=c
|
|
2258 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2259 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2260 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
|
2261 ac_cpp='$CPP '"$xe_cppflags"
|
|
2262 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2263 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
2264 cross_compiling=no
|
149
|
2265
|
|
2266 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
2267 if test $ac_cv_prog_cc_works = no; then
|
|
2268 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
2269 fi
|
|
2270 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
1692
|
2271 echo "configure:2272: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
149
|
2272 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
2273 cross_compiling=$ac_cv_prog_cc_cross
|
|
2274
|
|
2275 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
1692
|
2276 echo "configure:2277: checking whether we are using GNU C" >&5
|
149
|
2277
|
|
2278 cat > conftest.c <<EOF
|
|
2279 #ifdef __GNUC__
|
|
2280 yes;
|
|
2281 #endif
|
|
2282 EOF
|
1692
|
2283 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
149
|
2284 ac_cv_prog_gcc=yes
|
|
2285 else
|
|
2286 ac_cv_prog_gcc=no
|
|
2287 fi
|
|
2288
|
|
2289 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
2290
|
|
2291 if test $ac_cv_prog_gcc = yes; then
|
|
2292 GCC=yes
|
420
|
2293 else
|
|
2294 GCC=
|
|
2295 fi
|
|
2296
|
|
2297 ac_test_CFLAGS="${CFLAGS+set}"
|
|
2298 ac_save_CFLAGS="$CFLAGS"
|
|
2299 CFLAGS=
|
|
2300 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
1692
|
2301 echo "configure:2302: checking whether ${CC-cc} accepts -g" >&5
|
149
|
2302
|
|
2303 echo 'void f(){}' > conftest.c
|
|
2304 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
2305 ac_cv_prog_cc_g=yes
|
|
2306 else
|
|
2307 ac_cv_prog_cc_g=no
|
|
2308 fi
|
|
2309 rm -f conftest*
|
|
2310
|
|
2311
|
|
2312 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
2313 if test "$ac_test_CFLAGS" = set; then
|
|
2314 CFLAGS="$ac_save_CFLAGS"
|
|
2315 elif test $ac_cv_prog_cc_g = yes; then
|
|
2316 if test "$GCC" = yes; then
|
149
|
2317 CFLAGS="-g -O2"
|
|
2318 else
|
420
|
2319 CFLAGS="-g"
|
|
2320 fi
|
|
2321 else
|
|
2322 if test "$GCC" = yes; then
|
149
|
2323 CFLAGS="-O2"
|
420
|
2324 else
|
|
2325 CFLAGS=
|
|
2326 fi
|
149
|
2327 fi
|
|
2328
|
157
|
2329 fi
|
|
2330 CFLAGS="$xe_save_CFLAGS"
|
149
|
2331
|
1123
|
2332 if test "$GCC" = "yes"; then
|
|
2333 cat > conftest.$ac_ext <<EOF
|
1692
|
2334 #line 2335 "configure"
|
1123
|
2335 #include "confdefs.h"
|
|
2336 int main () {
|
|
2337 #if __GNUC__ >= 3
|
|
2338 return 11;
|
|
2339 #else
|
|
2340 return 0;
|
|
2341 #endif
|
|
2342 }
|
|
2343 EOF
|
1692
|
2344 if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
1123
|
2345 then
|
|
2346 :
|
|
2347 else
|
|
2348 conftest_rc="$?"
|
|
2349 echo "configure: failed program was:" >&5
|
|
2350 cat conftest.$ac_ext >&5
|
|
2351 rm -fr conftest*
|
|
2352 case "$conftest_rc" in
|
|
2353 11) echo "You appear to be using GCC version 3 or above."; __GCC3=yes ;;
|
|
2354 esac
|
|
2355 fi
|
|
2356 rm -fr conftest*
|
|
2357 fi
|
|
2358
|
171
|
2359
|
|
2360 test -n "$CPP" -a -d "$CPP" && CPP=
|
|
2361
|
169
|
2362 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
|
149
|
2363
|
|
2364 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
1692
|
2365 echo "configure:2366: checking how to run the C preprocessor" >&5
|
149
|
2366 # On Suns, sometimes $CPP names a directory.
|
|
2367 if test -n "$CPP" && test -d "$CPP"; then
|
|
2368 CPP=
|
|
2369 fi
|
0
|
2370 if test -z "$CPP"; then
|
149
|
2371
|
0
|
2372 # This must be in double quotes, not single quotes, because CPP may get
|
149
|
2373 # substituted into the Makefile and "${CC-cc}" will confuse make.
|
0
|
2374 CPP="${CC-cc} -E"
|
149
|
2375 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
2376 # not just through cpp.
|
|
2377 cat > conftest.$ac_ext <<EOF
|
1692
|
2378 #line 2379 "configure"
|
149
|
2379 #include "confdefs.h"
|
|
2380 #include <assert.h>
|
0
|
2381 Syntax Error
|
|
2382 EOF
|
149
|
2383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
2384 { (eval echo configure:2385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
2386 if test -z "$ac_err"; then
|
|
2387 :
|
|
2388 else
|
|
2389 echo "$ac_err" >&5
|
|
2390 echo "configure: failed program was:" >&5
|
|
2391 cat conftest.$ac_ext >&5
|
|
2392 rm -rf conftest*
|
|
2393 CPP="${CC-cc} -E -traditional-cpp"
|
|
2394 cat > conftest.$ac_ext <<EOF
|
1692
|
2395 #line 2396 "configure"
|
149
|
2396 #include "confdefs.h"
|
|
2397 #include <assert.h>
|
|
2398 Syntax Error
|
|
2399 EOF
|
|
2400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
2401 { (eval echo configure:2402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
2403 if test -z "$ac_err"; then
|
|
2404 :
|
|
2405 else
|
|
2406 echo "$ac_err" >&5
|
|
2407 echo "configure: failed program was:" >&5
|
|
2408 cat conftest.$ac_ext >&5
|
|
2409 rm -rf conftest*
|
|
2410 CPP="${CC-cc} -nologo -E"
|
|
2411 cat > conftest.$ac_ext <<EOF
|
1692
|
2412 #line 2413 "configure"
|
420
|
2413 #include "confdefs.h"
|
|
2414 #include <assert.h>
|
|
2415 Syntax Error
|
|
2416 EOF
|
|
2417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
2418 { (eval echo configure:2419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
2420 if test -z "$ac_err"; then
|
|
2421 :
|
|
2422 else
|
149
|
2423 echo "$ac_err" >&5
|
|
2424 echo "configure: failed program was:" >&5
|
|
2425 cat conftest.$ac_ext >&5
|
0
|
2426 rm -rf conftest*
|
|
2427 CPP=/lib/cpp
|
|
2428 fi
|
|
2429 rm -f conftest*
|
|
2430 fi
|
|
2431 rm -f conftest*
|
420
|
2432 fi
|
|
2433 rm -f conftest*
|
149
|
2434 ac_cv_prog_CPP="$CPP"
|
|
2435 CPP="$ac_cv_prog_CPP"
|
|
2436 else
|
|
2437 ac_cv_prog_CPP="$CPP"
|
|
2438 fi
|
|
2439 echo "$ac_t""$CPP" 1>&6
|
|
2440
|
|
2441
|
442
|
2442
|
157
|
2443 echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
1692
|
2444 echo "configure:2445: checking for AIX" >&5
|
|
2445 cat > conftest.$ac_ext <<EOF
|
|
2446 #line 2447 "configure"
|
157
|
2447 #include "confdefs.h"
|
|
2448 #ifdef _AIX
|
|
2449 yes
|
|
2450 #endif
|
|
2451
|
|
2452 EOF
|
|
2453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
2454 egrep "yes" >/dev/null 2>&1; then
|
|
2455 rm -rf conftest*
|
|
2456 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2457 Defining _ALL_SOURCE
|
|
2458 EOF
|
|
2459 cat >> confdefs.h <<\EOF
|
|
2460 #define _ALL_SOURCE 1
|
|
2461 EOF
|
|
2462 }
|
|
2463
|
|
2464 else
|
|
2465 rm -rf conftest*
|
|
2466 echo "$ac_t""no" 1>&6
|
|
2467 fi
|
|
2468 rm -f conftest*
|
|
2469
|
442
|
2470
|
410
|
2471
|
|
2472 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
|
1692
|
2473 echo "configure:2474: checking for GNU libc" >&5
|
|
2474 cat > conftest.$ac_ext <<EOF
|
|
2475 #line 2476 "configure"
|
406
|
2476 #include "confdefs.h"
|
243
|
2477 #include <features.h>
|
|
2478 int main() {
|
|
2479
|
|
2480 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
|
|
2481 #error Not a GNU libc system :-(
|
|
2482 ******* ======= ******** &&&&&&&&
|
|
2483 #endif
|
|
2484
|
|
2485 ; return 0; }
|
|
2486 EOF
|
1692
|
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
243
|
2488 rm -rf conftest*
|
|
2489 have_glibc=yes
|
|
2490 else
|
|
2491 echo "configure: failed program was:" >&5
|
|
2492 cat conftest.$ac_ext >&5
|
|
2493 rm -rf conftest*
|
|
2494 have_glibc=no
|
|
2495 fi
|
|
2496 rm -f conftest*
|
|
2497 echo "$ac_t""$have_glibc" 1>&6
|
272
|
2498 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2499 Defining _GNU_SOURCE
|
|
2500 EOF
|
|
2501 cat >> confdefs.h <<\EOF
|
|
2502 #define _GNU_SOURCE 1
|
|
2503 EOF
|
|
2504 }
|
|
2505
|
243
|
2506
|
442
|
2507 case "$opsys" in
|
|
2508 sol2)
|
|
2509 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2510 Defining __EXTENSIONS__
|
|
2511 EOF
|
|
2512 cat >> confdefs.h <<\EOF
|
|
2513 #define __EXTENSIONS__ 1
|
|
2514 EOF
|
|
2515 }
|
|
2516
|
1692
|
2517 if test "$os_release" -ge 505; then
|
442
|
2518 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2519 Defining _XOPEN_SOURCE = 500
|
|
2520 EOF
|
|
2521 cat >> confdefs.h <<\EOF
|
|
2522 #define _XOPEN_SOURCE 500
|
|
2523 EOF
|
|
2524 }
|
|
2525
|
|
2526 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2527 Defining _XOPEN_SOURCE_EXTENDED
|
|
2528 EOF
|
|
2529 cat >> confdefs.h <<\EOF
|
|
2530 #define _XOPEN_SOURCE_EXTENDED 1
|
|
2531 EOF
|
|
2532 }
|
|
2533
|
|
2534 fi ;;
|
|
2535 linux)
|
|
2536 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2537 Defining _POSIX_C_SOURCE = 199506L
|
|
2538 EOF
|
|
2539 cat >> confdefs.h <<\EOF
|
|
2540 #define _POSIX_C_SOURCE 199506L
|
|
2541 EOF
|
|
2542 }
|
|
2543
|
|
2544 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2545 Defining _XOPEN_SOURCE = 500
|
|
2546 EOF
|
|
2547 cat >> confdefs.h <<\EOF
|
|
2548 #define _XOPEN_SOURCE 500
|
|
2549 EOF
|
|
2550 }
|
|
2551
|
|
2552 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2553 Defining _XOPEN_SOURCE_EXTENDED
|
|
2554 EOF
|
|
2555 cat >> confdefs.h <<\EOF
|
|
2556 #define _XOPEN_SOURCE_EXTENDED 1
|
|
2557 EOF
|
|
2558 }
|
|
2559
|
|
2560 ;;
|
|
2561 esac
|
|
2562
|
|
2563 cat > conftest.$ac_ext <<EOF
|
1692
|
2564 #line 2565 "configure"
|
373
|
2565 #include "confdefs.h"
|
|
2566 int main () {
|
|
2567 #if defined __SUNPRO_C
|
|
2568 return 11;
|
|
2569 #elif defined __DECC
|
|
2570 return 12;
|
442
|
2571 #elif defined __USLC__ && defined __SCO_VERSION__
|
|
2572 return 13;
|
373
|
2573 #else
|
|
2574 return 0;
|
|
2575 #endif
|
|
2576 }
|
|
2577 EOF
|
1692
|
2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
373
|
2579 then
|
|
2580 :
|
|
2581 else
|
|
2582 conftest_rc="$?"
|
|
2583 echo "configure: failed program was:" >&5
|
|
2584 cat conftest.$ac_ext >&5
|
|
2585 rm -fr conftest*
|
|
2586 case "$conftest_rc" in
|
|
2587 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
|
|
2588 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
|
442
|
2589 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
|
373
|
2590 esac
|
|
2591 fi
|
|
2592 rm -fr conftest*
|
|
2593
|
157
|
2594
|
0
|
2595
|
149
|
2596
|
|
2597 echo "Extracting information from the machine- and system-dependent headers..."
|
|
2598
|
|
2599 tempcname="conftest.c"
|
|
2600
|
|
2601
|
|
2602
|
442
|
2603 cat > $tempcname < confdefs.h
|
|
2604 cat >> $tempcname <<EOF
|
149
|
2605 #define NOT_C_CODE
|
|
2606 #define C_SWITCH_SITE
|
|
2607 #define C_SWITCH_X_SITE
|
|
2608 #define LD_SWITCH_SITE
|
|
2609 #define LD_SWITCH_X_SITE
|
|
2610 #define LD_SWITCH_X_SITE_AUX
|
284
|
2611 #define OS_RELEASE $os_release
|
442
|
2612
|
|
2613 #ifdef config_opsysfile
|
284
|
2614 #include "$srcdir/src/$opsysfile"
|
442
|
2615 #endif
|
|
2616
|
|
2617 #ifdef config_machfile
|
284
|
2618 #include "$srcdir/src/$machfile"
|
442
|
2619 #endif
|
149
|
2620
|
|
2621 #ifndef LIBS_MACHINE
|
151
|
2622 #define LIBS_MACHINE
|
149
|
2623 #endif
|
|
2624 configure___ libs_machine=LIBS_MACHINE
|
|
2625
|
|
2626 #ifndef LIBS_SYSTEM
|
151
|
2627 #define LIBS_SYSTEM
|
149
|
2628 #endif
|
|
2629 configure___ libs_system=LIBS_SYSTEM
|
|
2630
|
|
2631 #ifndef LIBS_TERMCAP
|
151
|
2632 #define LIBS_TERMCAP
|
149
|
2633 #endif
|
|
2634 configure___ libs_termcap=LIBS_TERMCAP
|
|
2635
|
|
2636 #ifndef LIB_STANDARD
|
151
|
2637 #define LIB_STANDARD
|
149
|
2638 #endif
|
|
2639 configure___ libs_standard=LIB_STANDARD
|
|
2640
|
|
2641
|
163
|
2642 #ifndef OBJECTS_MACHINE
|
|
2643 #define OBJECTS_MACHINE
|
|
2644 #endif
|
|
2645 configure___ objects_machine=OBJECTS_MACHINE
|
|
2646
|
|
2647 #ifndef OBJECTS_SYSTEM
|
|
2648 #define OBJECTS_SYSTEM
|
|
2649 #endif
|
|
2650 configure___ objects_system=OBJECTS_SYSTEM
|
|
2651
|
|
2652
|
149
|
2653 #ifndef C_SWITCH_MACHINE
|
151
|
2654 #define C_SWITCH_MACHINE
|
149
|
2655 #endif
|
|
2656 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
2657
|
157
|
2658 #ifndef C_SWITCH_SYSTEM
|
|
2659 #define C_SWITCH_SYSTEM
|
|
2660 #endif
|
|
2661 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
2662
|
|
2663
|
|
2664 #ifndef LD_SWITCH_MACHINE
|
|
2665 #define LD_SWITCH_MACHINE
|
|
2666 #endif
|
|
2667 configure___ ld_switch_machine=LD_SWITCH_MACHINE
|
|
2668
|
|
2669 #ifndef LD_SWITCH_SYSTEM
|
|
2670 #define LD_SWITCH_SYSTEM
|
|
2671 #endif
|
|
2672 configure___ ld_switch_system=LD_SWITCH_SYSTEM
|
|
2673
|
149
|
2674
|
|
2675 #ifndef UNEXEC
|
561
|
2676 #define UNEXEC
|
149
|
2677 #endif
|
|
2678 configure___ unexec=UNEXEC
|
|
2679
|
|
2680
|
561
|
2681 #ifndef SYSTEM_TYPE
|
|
2682 #define SYSTEM_TYPE
|
|
2683 #endif
|
|
2684 configure___ system_type=SYSTEM_TYPE
|
|
2685
|
|
2686
|
163
|
2687 #ifndef LD_SWITCH_SHARED
|
|
2688 #define LD_SWITCH_SHARED "-c"
|
|
2689 #endif
|
|
2690 configure___ ld_switch_shared=LD_SWITCH_SHARED
|
|
2691
|
|
2692
|
442
|
2693 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
|
|
2694 configure___ ordinary_ld=ORDINARY_LD
|
|
2695
|
163
|
2696 #ifdef ORDINARY_LINK
|
442
|
2697 #define LD ORDINARY_LD
|
163
|
2698 #else /* no ORDINARY LINK */
|
|
2699 #ifdef COFF_ENCAPSULATE
|
284
|
2700 #define LD "\$(CC) -nostdlib"
|
163
|
2701 #else /* not COFF_ENCAPSULATE */
|
|
2702 #ifdef LINKER
|
|
2703 #define LD LINKER
|
|
2704 #else /* ! defined (LINKER) */
|
|
2705 #define LD "ld"
|
|
2706 #endif /* ! defined (LINKER) */
|
|
2707 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
2708 #endif /* not ORDINARY_LINK */
|
|
2709 configure___ ld=LD
|
|
2710
|
|
2711 #ifndef LIB_GCC
|
|
2712 #define LIB_GCC
|
|
2713 #endif
|
|
2714 configure___ lib_gcc=LIB_GCC
|
|
2715
|
|
2716 #ifndef LD_TEXT_START_ADDR
|
|
2717 #define LD_TEXT_START_ADDR
|
|
2718 #endif
|
|
2719 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
|
|
2720
|
|
2721
|
|
2722 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
|
|
2723 #ifdef NO_REMAP
|
|
2724 #ifdef COFF_ENCAPSULATE
|
|
2725 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
|
|
2726 #else /* ! defined (COFF_ENCAPSULATE) */
|
|
2727 #define START_FILES "pre-crt0.o /lib/crt0.o"
|
|
2728 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
2729 #else /* ! defined (NO_REMAP) */
|
|
2730 #define START_FILES "ecrt0.o"
|
|
2731 #endif /* ! defined (NO_REMAP) */
|
|
2732 #endif /* no ORDINARY_LINK */
|
|
2733 #ifndef START_FILES
|
|
2734 #define START_FILES
|
|
2735 #endif
|
|
2736 configure___ start_files=START_FILES
|
|
2737
|
153
|
2738 #ifdef ORDINARY_LINK
|
|
2739 configure___ ordinary_link=yes
|
|
2740 #else
|
|
2741 configure___ ordinary_link=no
|
|
2742 #endif
|
|
2743
|
149
|
2744 #ifdef SYSTEM_MALLOC
|
|
2745 configure___ system_malloc=yes
|
|
2746 #else
|
|
2747 configure___ system_malloc=no
|
|
2748 #endif
|
|
2749
|
|
2750 #ifdef TERMINFO
|
|
2751 configure___ have_terminfo=yes
|
|
2752 #else
|
|
2753 configure___ have_terminfo=no
|
|
2754 #endif
|
|
2755
|
|
2756 #ifdef MAIL_USE_FLOCK
|
|
2757 configure___ mail_use_flock=yes
|
|
2758 #else
|
|
2759 configure___ mail_use_flock=no
|
|
2760 #endif
|
|
2761
|
|
2762 #ifdef MAIL_USE_LOCKF
|
|
2763 configure___ mail_use_lockf=yes
|
|
2764 #else
|
|
2765 configure___ mail_use_lockf=no
|
|
2766 #endif
|
|
2767
|
438
|
2768 #ifdef MAIL_USE_LOCKING
|
|
2769 configure___ mail_use_locking=yes
|
|
2770 #else
|
|
2771 configure___ mail_use_locking=no
|
|
2772 #endif
|
|
2773
|
398
|
2774 #ifdef HAVE_WIN32_PROCESSES
|
|
2775 configure___ win32_processes=yes
|
|
2776 #else
|
|
2777 configure___ win32_processes=no
|
|
2778 #endif
|
|
2779
|
284
|
2780 EOF
|
|
2781
|
380
|
2782 CPP=`eval "echo $CPP $CPPFLAGS"`
|
149
|
2783 eval `$CPP -Isrc $tempcname \
|
165
|
2784 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
|
153
|
2785
|
149
|
2786 rm $tempcname
|
|
2787
|
561
|
2788 test -z "$system_type" && \
|
|
2789 { test "$extra_verbose" = "yes" && cat << EOF
|
|
2790 Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
|
|
2791 EOF
|
|
2792 cat >> confdefs.h <<EOF
|
|
2793 #define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
|
|
2794 EOF
|
|
2795 }
|
|
2796
|
|
2797
|
|
2798 test -z "$unexec" && pdump=yes
|
|
2799
|
442
|
2800 if test "$pdump" = "yes"; then
|
|
2801 ordinary_link="yes"
|
|
2802 ld="${ordinary_ld}"
|
|
2803 start_files=
|
|
2804 libs_standard=
|
|
2805 unexec=
|
|
2806 lib_gcc=
|
|
2807 fi
|
|
2808
|
163
|
2809 test "$extra_verbose" = "yes" && \
|
201
|
2810 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
|
2811
|
458
|
2812 case "$opsys" in mingw* | cygwin*)
|
452
|
2813 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
|
|
2814 cygwin_include=`eval "dirname $cygwin_include"` ;
|
|
2815 cygwin_include="-I$cygwin_include/../include" ;
|
462
|
2816 extra_includes="$cygwin_include/mingw $cygwin_include" ;
|
458
|
2817 case "$opsys" in mingw*)
|
452
|
2818 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
|
|
2819 esac
|
458
|
2820 ;;
|
438
|
2821 esac
|
|
2822
|
153
|
2823 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
|
|
2824
|
442
|
2825
|
|
2826 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
|
|
2827
|
|
2828 if test "$__USLC__" = yes; then
|
|
2829 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
|
1692
|
2830 echo "configure:2831: checking for whether the -Kalloca compiler flag is needed" >&5
|
442
|
2831 need_kalloca=no
|
|
2832 cat > conftest.$ac_ext <<EOF
|
1692
|
2833 #line 2834 "configure"
|
442
|
2834 #include "confdefs.h"
|
|
2835
|
|
2836 int main() {
|
|
2837 void *x = alloca(4);
|
|
2838 ; return 0; }
|
|
2839 EOF
|
1692
|
2840 if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
2841 rm -rf conftest*
|
|
2842 :
|
|
2843 else
|
|
2844 echo "configure: failed program was:" >&5
|
|
2845 cat conftest.$ac_ext >&5
|
|
2846 rm -rf conftest*
|
|
2847
|
|
2848 xe_save_c_switch_system="$c_switch_system"
|
|
2849 c_switch_system="$c_switch_system -Kalloca"
|
|
2850 cat > conftest.$ac_ext <<EOF
|
1692
|
2851 #line 2852 "configure"
|
442
|
2852 #include "confdefs.h"
|
|
2853
|
|
2854 int main() {
|
|
2855 void *x = alloca(4);
|
|
2856 ; return 0; }
|
|
2857 EOF
|
1692
|
2858 if { (eval echo configure:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
2859 rm -rf conftest*
|
|
2860 need_kalloca=yes
|
|
2861 else
|
|
2862 echo "configure: failed program was:" >&5
|
|
2863 cat conftest.$ac_ext >&5
|
|
2864 fi
|
|
2865 rm -f conftest*
|
|
2866 c_switch_system="$xe_save_c_switch_system"
|
|
2867 fi
|
|
2868 rm -f conftest*
|
|
2869 echo "$ac_t""$need_kalloca" 1>&6
|
|
2870 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
|
|
2871 fi
|
373
|
2872
|
272
|
2873 if test "$cflags_specified" = "no"; then
|
1123
|
2874 if test "$GCC" = "yes"; then
|
1111
|
2875 CFLAGS="-g -O3"
|
398
|
2876 elif test "$__SUNPRO_C" = "yes"; then
|
157
|
2877 case "$opsys" in
|
1111
|
2878 sol2 ) CFLAGS="-xO4" ;;
|
|
2879 sunos4* ) CFLAGS="-xO2" ;;
|
157
|
2880 esac
|
373
|
2881 elif test "$__DECC" = "yes"; then
|
|
2882 CFLAGS="-O3"
|
207
|
2883 elif test "$CC" = "xlc"; then
|
1111
|
2884 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qro -qmaxmem=20000"
|
373
|
2885 else
|
|
2886 CFLAGS="-O" ; fi
|
272
|
2887 fi
|
|
2888
|
1111
|
2889
|
|
2890 if test "$cflags_warning_specified" = "no"; then
|
1123
|
2891 if test "$GCC" = "yes"; then
|
1111
|
2892 cflags_warning="-Wall -Wno-switch -Winline -Wmissing-prototypes"
|
|
2893 cflags_warning="$cflags_warning -Wsign-compare"
|
1123
|
2894 cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes"
|
|
2895 if test "$__GCC3" = "yes"; then
|
|
2896 cflags_warning="$cflags_warning -Wpacked"
|
|
2897 fi
|
1111
|
2898 if test "$xemacs_compiler" != "g++"; then
|
|
2899 cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations"
|
|
2900 else
|
|
2901 cflags_warning="$cflags_warning -Weffc++"
|
|
2902 fi
|
|
2903 test "$have_glibc" != "yes" && \
|
|
2904 cflags_warning="$cflags_warning -Wpointer-arith"
|
|
2905 elif test "$__SUNPRO_C" = "yes"; then
|
|
2906 case "$opsys" in
|
|
2907 sol2 ) cflags_warning="-v" ;;
|
|
2908 esac
|
|
2909 elif test "$CC" = "xlc"; then
|
|
2910 cflags_warning="-qinfo"
|
|
2911 fi
|
|
2912 fi
|
|
2913
|
|
2914 CFLAGS="$cflags_warning $CFLAGS"
|
|
2915
|
442
|
2916 if test "$GCC" = "yes"; then
|
|
2917 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
|
1692
|
2918 echo "configure:2919: checking for buggy gcc versions" >&5
|
442
|
2919 GCC_VERSION=`$CC --version`
|
|
2920 case `uname -s`:`uname -m`:$GCC_VERSION in
|
|
2921 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
|
|
2922 case "$CFLAGS" in
|
|
2923 *-O2*|*-O3*)
|
|
2924 case "$CFLAGS" in
|
|
2925 *-fno-schedule-insns*) ;;
|
|
2926 *)
|
|
2927 echo "$ac_t""yes" 1>&6
|
|
2928 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
|
|
2929 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
|
|
2930 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2931 ;;
|
|
2932 esac
|
|
2933 ;;
|
|
2934 esac
|
|
2935 ;;
|
|
2936 Linux:alpha:egcs-2.91.*)
|
|
2937 echo "$ac_t""yes" 1>&6
|
|
2938 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
|
|
2939 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
|
|
2940 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2941 ;;
|
|
2942 *:i*86*:2.7.2*)
|
448
|
2943 case "$CFLAGS" in
|
|
2944 *-O2*|*-O3*)
|
|
2945 case "$GCC_VERSION" in
|
|
2946 2.7.2)
|
442
|
2947 case "$CFLAGS" in
|
|
2948 *-fno-strength-reduce*) ;;
|
|
2949 *)
|
|
2950 echo "$ac_t""yes" 1>&6
|
|
2951 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
|
|
2952 echo "configure: warning: -fno-strength-reduce." 1>&2
|
|
2953 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2954 ;;
|
|
2955 esac
|
|
2956 ;;
|
|
2957 esac
|
448
|
2958 case "$CFLAGS" in
|
|
2959 *-fno-caller-saves*) ;;
|
|
2960 *)
|
|
2961 echo "$ac_t""yes" 1>&6
|
|
2962 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
|
|
2963 echo "configure: warning: -fno-caller-saves." 1>&2
|
|
2964 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2965 ;;
|
|
2966 esac
|
442
|
2967 ;;
|
|
2968 esac
|
|
2969 ;;
|
|
2970 esac
|
|
2971 echo "$ac_t""no" 1>&6
|
|
2972 fi
|
|
2973
|
853
|
2974 if test "$pdump" != "yes"; then
|
|
2975 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
|
1692
|
2976 echo "configure:2977: checking for \"-z nocombreloc\" linker flag" >&5
|
853
|
2977 case "`ld --help 2>&1`" in
|
|
2978 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
|
|
2979 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
|
|
2980 *) echo "$ac_t""no" 1>&6 ;;
|
|
2981 esac
|
|
2982 fi
|
|
2983
|
|
2984
|
272
|
2985
|
|
2986 if test "$GCC" = "yes"; then
|
|
2987 set x $ld_switch_system; shift; ld_switch_system=""
|
|
2988 while test -n "$1"; do
|
|
2989 case $1 in
|
380
|
2990 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
|
|
2991 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
|
272
|
2992 -Xlinker* ) ;;
|
|
2993 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
|
|
2994 esac
|
|
2995 shift
|
|
2996 done
|
157
|
2997 fi
|
151
|
2998
|
163
|
2999 if test "$GCC" = "yes"; then
|
272
|
3000 set x $ld_switch_machine; shift; ld_switch_machine=""
|
|
3001 while test -n "$1"; do
|
|
3002 case $1 in
|
380
|
3003 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
|
|
3004 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
|
163
|
3005 -Xlinker* ) ;;
|
272
|
3006 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
|
163
|
3007 esac
|
272
|
3008 shift
|
163
|
3009 done
|
272
|
3010 fi
|
|
3011
|
|
3012 if test "$GCC" = "yes"; then
|
853
|
3013 set x $ld_switch_site; shift; ld_switch_site=""
|
|
3014 while test -n "$1"; do
|
|
3015 case $1 in
|
|
3016 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
|
|
3017 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
|
|
3018 -Xlinker* ) ;;
|
|
3019 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
|
|
3020 esac
|
|
3021 shift
|
|
3022 done
|
|
3023 fi
|
|
3024
|
|
3025 if test "$GCC" = "yes"; then
|
272
|
3026 set x $LDFLAGS; shift; LDFLAGS=""
|
|
3027 while test -n "$1"; do
|
|
3028 case $1 in
|
380
|
3029 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
|
|
3030 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
|
163
|
3031 -Xlinker* ) ;;
|
272
|
3032 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
|
163
|
3033 esac
|
272
|
3034 shift
|
163
|
3035 done
|
272
|
3036 fi
|
|
3037
|
|
3038 if test "$GCC" = "yes"; then
|
|
3039 set x $ld_call_shared; shift; ld_call_shared=""
|
|
3040 while test -n "$1"; do
|
|
3041 case $1 in
|
380
|
3042 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
|
|
3043 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
|
173
|
3044 -Xlinker* ) ;;
|
272
|
3045 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
|
173
|
3046 esac
|
272
|
3047 shift
|
173
|
3048 done
|
163
|
3049 fi
|
|
3050
|
|
3051 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
|
|
3052 echo " xemacs will be linked with \"$objects_machine\""
|
|
3053 fi
|
|
3054 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
|
|
3055 echo " xemacs will be linked with \"$objects_system\""
|
|
3056 fi
|
442
|
3057 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
|
151
|
3058 echo " xemacs will be linked with \"$unexec\""
|
|
3059 fi
|
442
|
3060 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
|
|
3061 echo " xemacs will be linked with \"dumper.o\""
|
|
3062 fi
|
151
|
3063
|
163
|
3064 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
|
1692
|
3065 echo "configure:3066: checking for dynodump" >&5
|
163
|
3066 if test "$unexec" != "unexsol2.o"; then
|
|
3067 echo "$ac_t""no" 1>&6
|
|
3068 else
|
|
3069 echo "$ac_t""yes" 1>&6
|
|
3070 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3071 Defining DYNODUMP
|
|
3072 EOF
|
|
3073 cat >> confdefs.h <<\EOF
|
|
3074 #define DYNODUMP 1
|
|
3075 EOF
|
|
3076 }
|
|
3077
|
|
3078 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
|
175
|
3079 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
|
163
|
3080 case "$machine" in
|
|
3081 sparc ) dynodump_arch=sparc ;;
|
|
3082 *86* ) dynodump_arch=i386 ;;
|
|
3083 powerpc ) dynodump_arch=ppc ;;
|
|
3084 esac
|
|
3085 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
|
|
3086 fi
|
|
3087
|
|
3088
|
274
|
3089 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
|
272
|
3090
|
207
|
3091 if test "$unexec" = "unexaix.o"; then
|
219
|
3092 if test "$dynamic" = "no"; then
|
207
|
3093 start_flags="-Wl,-bnso,-bnodelcsect"
|
209
|
3094 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
|
272
|
3095 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
|
207
|
3096 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
|
|
3097 done
|
|
3098 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
|
|
3099 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
|
|
3100 done
|
294
|
3101
|
|
3102 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
|
1692
|
3103 echo "configure:3104: checking for terminateAndUnload in -lC" >&5
|
294
|
3104 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
|
|
3105
|
|
3106 xe_check_libs=" -lC "
|
|
3107 cat > conftest.$ac_ext <<EOF
|
1692
|
3108 #line 3109 "configure"
|
294
|
3109 #include "confdefs.h"
|
|
3110 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3111 /* We use char because int might match the return type of a gcc2
|
|
3112 builtin and then its argument prototype would still apply. */
|
|
3113 char terminateAndUnload();
|
|
3114
|
|
3115 int main() {
|
|
3116 terminateAndUnload()
|
|
3117 ; return 0; }
|
|
3118 EOF
|
1692
|
3119 if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
294
|
3120 rm -rf conftest*
|
|
3121 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3122 else
|
|
3123 echo "configure: failed program was:" >&5
|
|
3124 cat conftest.$ac_ext >&5
|
|
3125 rm -rf conftest*
|
|
3126 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3127 fi
|
|
3128 rm -f conftest*
|
|
3129 xe_check_libs=""
|
|
3130
|
|
3131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
3132 echo "$ac_t""yes" 1>&6
|
|
3133 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
|
|
3134 else
|
|
3135 echo "$ac_t""no" 1>&6
|
|
3136 fi
|
|
3137
|
|
3138
|
272
|
3139 fi
|
207
|
3140 elif test -n "$ld_text_start_addr"; then
|
|
3141 start_flags="-T $ld_text_start_addr -e __start"
|
|
3142 fi
|
|
3143
|
|
3144
|
|
3145
|
163
|
3146
|
|
3147 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
|
|
3148 test -z "$linker" && linker='$(CC) -nostdlib'
|
175
|
3149 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
|
163
|
3150 fi
|
|
3151 test "$GCC" != "yes" && lib_gcc=
|
|
3152
|
|
3153
|
|
3154
|
151
|
3155
|
209
|
3156
|
380
|
3157 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
151
|
3158 if test -n "$site_libraries"; then
|
|
3159 for arg in $site_libraries; do
|
380
|
3160 case "$arg" in
|
|
3161 -* ) ;;
|
|
3162 * ) test -d "$arg" || \
|
384
|
3163 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
|
380
|
3164 arg="-L${arg}" ;;
|
|
3165 esac
|
151
|
3166 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
|
|
3167 done
|
|
3168 fi
|
|
3169
|
380
|
3170 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
272
|
3171 if test -n "$site_includes"; then
|
151
|
3172 for arg in $site_includes; do
|
380
|
3173 case "$arg" in
|
|
3174 -* ) ;;
|
|
3175 * ) test -d "$arg" || \
|
384
|
3176 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
|
380
|
3177 arg="-I${arg}" ;;
|
|
3178 esac
|
151
|
3179 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
|
|
3180 done
|
|
3181 fi
|
|
3182
|
380
|
3183 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
3184 if test -n "$site_prefixes"; then
|
|
3185 for dir in $site_prefixes; do
|
398
|
3186 lib_dir="${dir}/lib"
|
416
|
3187 inc_dir="${dir}/include"
|
380
|
3188 if test ! -d "$dir"; then
|
384
|
3189 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
|
380
|
3190 elif test ! -d "$lib_dir"; then
|
384
|
3191 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
|
380
|
3192 else
|
414
|
3193 if test -d "$inc_dir"; then
|
|
3194 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
|
|
3195 fi
|
380
|
3196 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
|
|
3197 fi
|
|
3198 done
|
|
3199 fi
|
|
3200
|
157
|
3201
|
151
|
3202 for dir in "/usr/ccs/lib"; do
|
440
|
3203 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
|
3204 done
|
|
3205
|
380
|
3206 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
272
|
3207 if test -n "$site_runtime_libraries"; then
|
165
|
3208 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
|
151
|
3209 export LD_RUN_PATH
|
|
3210 fi
|
|
3211
|
|
3212
|
440
|
3213
|
|
3214
|
|
3215
|
|
3216 if test -n "$add_runtime_path"; then :;
|
|
3217 elif test "$dynamic" = "no"; then add_runtime_path=no
|
151
|
3218 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
|
163
|
3219 else case "$opsys" in
|
373
|
3220 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
|
151
|
3221 * ) add_runtime_path=no ;;
|
|
3222 esac
|
|
3223 fi
|
|
3224
|
|
3225 if test "$add_runtime_path" = "yes"; then
|
|
3226 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
|
1692
|
3227 echo "configure:3228: checking "for runtime libraries flag"" >&5
|
373
|
3228 case "$opsys" in
|
377
|
3229 sol2 ) dash_r="-R" ;;
|
392
|
3230 decosf* | linux* | irix*) dash_r="-rpath " ;;
|
373
|
3231 *)
|
|
3232 dash_r=""
|
|
3233 for try_dash_r in "-R" "-R " "-rpath "; do
|
|
3234 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
|
|
3235
|
272
|
3236 if test "$GCC" = "yes"; then
|
|
3237 set x $xe_check_libs; shift; xe_check_libs=""
|
|
3238 while test -n "$1"; do
|
|
3239 case $1 in
|
380
|
3240 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
|
|
3241 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
|
272
|
3242 -Xlinker* ) ;;
|
|
3243 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
|
|
3244 esac
|
|
3245 shift
|
|
3246 done
|
|
3247 fi
|
373
|
3248 cat > conftest.$ac_ext <<EOF
|
1692
|
3249 #line 3250 "configure"
|
|
3250 #include "confdefs.h"
|
|
3251
|
|
3252 int main() {
|
|
3253
|
|
3254 ; return 0; }
|
|
3255 EOF
|
|
3256 if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
3257 rm -rf conftest*
|
|
3258 dash_r="$try_dash_r"
|
|
3259 else
|
|
3260 echo "configure: failed program was:" >&5
|
|
3261 cat conftest.$ac_ext >&5
|
|
3262 fi
|
|
3263 rm -f conftest*
|
373
|
3264 xe_check_libs=""
|
|
3265 test -n "$dash_r" && break
|
|
3266 done ;;
|
|
3267 esac
|
151
|
3268 if test -n "$dash_r";
|
|
3269 then echo "$ac_t"""\"${dash_r}\""" 1>&6
|
|
3270 else echo "$ac_t""NONE" 1>&6
|
|
3271 fi
|
|
3272 fi
|
|
3273
|
163
|
3274 xe_add_unique_runpath_dir='
|
|
3275 xe_add_p=yes
|
|
3276 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
|
|
3277 done
|
|
3278 if test "$xe_add_p" = "yes"; then
|
|
3279 test -n "$runpath" && runpath="${runpath}:"
|
|
3280 runpath="${runpath}${xe_runpath_dir}"
|
|
3281 runpath_dirs="$runpath_dirs $xe_runpath_dir"
|
|
3282 fi'
|
|
3283
|
|
3284
|
151
|
3285
|
155
|
3286
|
151
|
3287 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
3288 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
3289 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
3290
|
163
|
3291 runpath="" runpath_dirs=""
|
155
|
3292 if test -n "$LD_RUN_PATH"; then
|
151
|
3293 runpath="$LD_RUN_PATH"
|
155
|
3294 elif test "$GCC" = "yes"; then
|
163
|
3295 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
3296 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
3297 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
3298 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
3299 case "$arg" in P,* | -L* | -R* )
|
159
|
3300 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
3301 {
|
155
|
3302 xe_runpath_dir="$dir"
|
163
|
3303 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
3304 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
3305 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
3306 eval "$xe_add_unique_runpath_dir"
|
|
3307 }
|
155
|
3308 done ;;
|
|
3309 esac
|
|
3310 done
|
163
|
3311 ld_switch_run="$ld_switch_run_save"
|
155
|
3312 rm -f conftest*
|
151
|
3313 else
|
155
|
3314 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
3315 case "$arg" in -L*) {
|
159
|
3316 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
3317 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
3318 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
3319 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
3320 eval "$xe_add_unique_runpath_dir"
|
|
3321 };; esac
|
151
|
3322 done
|
163
|
3323 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
3324 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
3325 eval "$xe_add_unique_runpath_dir";
|
|
3326 fi
|
155
|
3327 fi
|
151
|
3328 if test -n "$runpath"; then
|
|
3329 ld_switch_run="${dash_r}${runpath}"
|
272
|
3330
|
|
3331 if test "$GCC" = "yes"; then
|
|
3332 set x $ld_switch_run; shift; ld_switch_run=""
|
|
3333 while test -n "$1"; do
|
|
3334 case $1 in
|
380
|
3335 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
3336 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
3337 -Xlinker* ) ;;
|
|
3338 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
3339 esac
|
|
3340 shift
|
|
3341 done
|
|
3342 fi
|
151
|
3343 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
3344 fi
|
|
3345 fi
|
|
3346
|
|
3347
|
149
|
3348
|
|
3349 GNU_MALLOC=yes
|
261
|
3350 if test "$with_dlmalloc" != "no"; then
|
|
3351 doug_lea_malloc=yes
|
|
3352 else
|
|
3353 doug_lea_malloc=no
|
|
3354 fi
|
259
|
3355 after_morecore_hook_exists=yes
|
255
|
3356 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
|
1692
|
3357 echo "configure:3358: checking for malloc_set_state" >&5
|
|
3358
|
|
3359 cat > conftest.$ac_ext <<EOF
|
|
3360 #line 3361 "configure"
|
255
|
3361 #include "confdefs.h"
|
|
3362 /* System header to define __stub macros and hopefully few prototypes,
|
|
3363 which can conflict with char malloc_set_state(); below. */
|
|
3364 #include <assert.h>
|
|
3365 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3366 /* We use char because int might match the return type of a gcc2
|
|
3367 builtin and then its argument prototype would still apply. */
|
|
3368 char malloc_set_state();
|
|
3369
|
|
3370 int main() {
|
|
3371
|
|
3372 /* The GNU C library defines this for functions which it implements
|
|
3373 to always fail with ENOSYS. Some functions are actually named
|
|
3374 something starting with __ and the normal name is an alias. */
|
|
3375 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
|
|
3376 choke me
|
|
3377 #else
|
|
3378 malloc_set_state();
|
|
3379 #endif
|
|
3380
|
|
3381 ; return 0; }
|
|
3382 EOF
|
1692
|
3383 if { (eval echo configure:3384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
255
|
3384 rm -rf conftest*
|
|
3385 eval "ac_cv_func_malloc_set_state=yes"
|
|
3386 else
|
|
3387 echo "configure: failed program was:" >&5
|
|
3388 cat conftest.$ac_ext >&5
|
|
3389 rm -rf conftest*
|
|
3390 eval "ac_cv_func_malloc_set_state=no"
|
|
3391 fi
|
|
3392 rm -f conftest*
|
|
3393
|
|
3394 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
|
|
3395 echo "$ac_t""yes" 1>&6
|
|
3396 :
|
|
3397 else
|
|
3398 echo "$ac_t""no" 1>&6
|
|
3399 doug_lea_malloc=no
|
|
3400 fi
|
|
3401
|
|
3402 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
|
1692
|
3403 echo "configure:3404: checking whether __after_morecore_hook exists" >&5
|
|
3404 cat > conftest.$ac_ext <<EOF
|
|
3405 #line 3406 "configure"
|
255
|
3406 #include "confdefs.h"
|
|
3407 extern void (* __after_morecore_hook)();
|
|
3408 int main() {
|
|
3409 __after_morecore_hook = 0
|
|
3410 ; return 0; }
|
|
3411 EOF
|
1692
|
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
3413 rm -rf conftest*
|
|
3414 echo "$ac_t""yes" 1>&6
|
|
3415 else
|
|
3416 echo "configure: failed program was:" >&5
|
|
3417 cat conftest.$ac_ext >&5
|
|
3418 rm -rf conftest*
|
|
3419 echo "$ac_t""no" 1>&6
|
|
3420 after_morecore_hook_exists=no
|
255
|
3421 fi
|
|
3422 rm -f conftest*
|
149
|
3423 if test "$system_malloc" = "yes" ; then
|
|
3424 GNU_MALLOC=no
|
|
3425 GNU_MALLOC_reason="
|
442
|
3426 - The GNU allocators don't work with this system configuration."
|
181
|
3427 elif test "$with_system_malloc" = "yes" ; then
|
149
|
3428 GNU_MALLOC=no
|
|
3429 GNU_MALLOC_reason="
|
442
|
3430 - User chose not to use GNU allocators."
|
181
|
3431 elif test "$with_debug_malloc" = "yes" ; then
|
177
|
3432 GNU_MALLOC=no
|
|
3433 GNU_MALLOC_reason="
|
442
|
3434 - User chose to use Debugging Malloc."
|
|
3435 fi
|
|
3436
|
|
3437 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
|
|
3438 GNU_MALLOC_reason="
|
|
3439 - Using Doug Lea's new malloc from the GNU C Library."
|
255
|
3440 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3441 Defining DOUG_LEA_MALLOC
|
|
3442 EOF
|
|
3443 cat >> confdefs.h <<\EOF
|
|
3444 #define DOUG_LEA_MALLOC 1
|
|
3445 EOF
|
|
3446 }
|
|
3447
|
259
|
3448 if test "$after_morecore_hook_exists" = "no" ; then
|
|
3449 GNU_MALLOC_reason="
|
442
|
3450 - Using Doug Lea's new malloc from the Linux C Library."
|
259
|
3451 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3452 Defining _NO_MALLOC_WARNING_
|
|
3453 EOF
|
|
3454 cat >> confdefs.h <<\EOF
|
|
3455 #define _NO_MALLOC_WARNING_ 1
|
|
3456 EOF
|
|
3457 }
|
|
3458
|
|
3459 fi
|
255
|
3460 fi
|
|
3461
|
149
|
3462
|
267
|
3463
|
|
3464
|
149
|
3465 # Extract the first word of "ranlib", so it can be a program name with args.
|
|
3466 set dummy ranlib; ac_word=$2
|
|
3467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1692
|
3468 echo "configure:3469: checking for $ac_word" >&5
|
149
|
3469
|
|
3470 if test -n "$RANLIB"; then
|
|
3471 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
3472 else
|
420
|
3473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
3474 ac_dummy="$PATH"
|
|
3475 for ac_dir in $ac_dummy; do
|
0
|
3476 test -z "$ac_dir" && ac_dir=.
|
|
3477 if test -f $ac_dir/$ac_word; then
|
149
|
3478 ac_cv_prog_RANLIB="ranlib"
|
0
|
3479 break
|
|
3480 fi
|
|
3481 done
|
|
3482 IFS="$ac_save_ifs"
|
149
|
3483 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
3484 fi
|
|
3485 RANLIB="$ac_cv_prog_RANLIB"
|
|
3486 if test -n "$RANLIB"; then
|
|
3487 echo "$ac_t""$RANLIB" 1>&6
|
|
3488 else
|
|
3489 echo "$ac_t""no" 1>&6
|
|
3490 fi
|
|
3491
|
|
3492 ac_aux_dir=
|
|
3493 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|
3494 if test -f $ac_dir/install-sh; then
|
|
3495 ac_aux_dir=$ac_dir
|
|
3496 ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
3497 break
|
|
3498 elif test -f $ac_dir/install.sh; then
|
|
3499 ac_aux_dir=$ac_dir
|
|
3500 ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
3501 break
|
|
3502 fi
|
|
3503 done
|
|
3504 if test -z "$ac_aux_dir"; then
|
|
3505 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|
3506 fi
|
|
3507 ac_config_guess=$ac_aux_dir/config.guess
|
|
3508 ac_config_sub=$ac_aux_dir/config.sub
|
|
3509 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
3510
|
|
3511 # Find a good install program. We prefer a C program (faster),
|
|
3512 # so one script is as good as another. But avoid the broken or
|
|
3513 # incompatible versions:
|
|
3514 # SysV /etc/install, /usr/sbin/install
|
|
3515 # SunOS /usr/etc/install
|
|
3516 # IRIX /sbin/install
|
|
3517 # AIX /bin/install
|
420
|
3518 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
149
|
3519 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
3520 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
3521 # ./install, which can be erroneously created by make from ./install.sh.
|
|
3522 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
1692
|
3523 echo "configure:3524: checking for a BSD compatible install" >&5
|
149
|
3524 if test -z "$INSTALL"; then
|
|
3525
|
420
|
3526 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
0
|
3527 for ac_dir in $PATH; do
|
149
|
3528 # Account for people who put trailing slashes in PATH elements.
|
|
3529 case "$ac_dir/" in
|
|
3530 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
0
|
3531 *)
|
|
3532 # OSF1 and SCO ODT 3.0 have their own names for install.
|
420
|
3533 # Don't use installbsd from OSF since it installs stuff as root
|
|
3534 # by default.
|
|
3535 for ac_prog in ginstall scoinst install; do
|
0
|
3536 if test -f $ac_dir/$ac_prog; then
|
|
3537 if test $ac_prog = install &&
|
|
3538 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
3539 # AIX install. It has an incompatible calling convention.
|
|
3540 :
|
|
3541 else
|
149
|
3542 ac_cv_path_install="$ac_dir/$ac_prog -c"
|
0
|
3543 break 2
|
|
3544 fi
|
|
3545 fi
|
|
3546 done
|
|
3547 ;;
|
|
3548 esac
|
|
3549 done
|
149
|
3550 IFS="$ac_save_IFS"
|
|
3551
|
|
3552 if test "${ac_cv_path_install+set}" = set; then
|
|
3553 INSTALL="$ac_cv_path_install"
|
|
3554 else
|
|
3555 # As a last resort, use the slow shell script. We don't cache a
|
|
3556 # path for INSTALL within a source directory, because that will
|
|
3557 # break other packages using the cache if that directory is
|
|
3558 # removed, or if the path is relative.
|
|
3559 INSTALL="$ac_install_sh"
|
|
3560 fi
|
|
3561 fi
|
|
3562 echo "$ac_t""$INSTALL" 1>&6
|
|
3563
|
|
3564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
0
|
3565 # It thinks the first close brace ends the variable substitution.
|
|
3566 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
3567
|
420
|
3568 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|
3569
|
0
|
3570 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
3571
|
|
3572 for ac_prog in 'bison -y' byacc
|
|
3573 do
|
149
|
3574 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
3575 set dummy $ac_prog; ac_word=$2
|
|
3576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1692
|
3577 echo "configure:3578: checking for $ac_word" >&5
|
149
|
3578
|
|
3579 if test -n "$YACC"; then
|
|
3580 ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
|
3581 else
|
420
|
3582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
3583 ac_dummy="$PATH"
|
|
3584 for ac_dir in $ac_dummy; do
|
0
|
3585 test -z "$ac_dir" && ac_dir=.
|
|
3586 if test -f $ac_dir/$ac_word; then
|
149
|
3587 ac_cv_prog_YACC="$ac_prog"
|
0
|
3588 break
|
|
3589 fi
|
|
3590 done
|
|
3591 IFS="$ac_save_ifs"
|
|
3592 fi
|
149
|
3593 YACC="$ac_cv_prog_YACC"
|
|
3594 if test -n "$YACC"; then
|
|
3595 echo "$ac_t""$YACC" 1>&6
|
|
3596 else
|
|
3597 echo "$ac_t""no" 1>&6
|
|
3598 fi
|
0
|
3599
|
|
3600 test -n "$YACC" && break
|
|
3601 done
|
|
3602 test -n "$YACC" || YACC="yacc"
|
|
3603
|
|
3604
|
911
|
3605 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
|
3606 do
|
149
|
3607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
3608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1692
|
3609 echo "configure:3610: checking for $ac_hdr" >&5
|
|
3610
|
|
3611 cat > conftest.$ac_ext <<EOF
|
|
3612 #line 3613 "configure"
|
149
|
3613 #include "confdefs.h"
|
|
3614 #include <$ac_hdr>
|
|
3615 EOF
|
|
3616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
3617 { (eval echo configure:3618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
3618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
3619 if test -z "$ac_err"; then
|
|
3620 rm -rf conftest*
|
149
|
3621 eval "ac_cv_header_$ac_safe=yes"
|
|
3622 else
|
|
3623 echo "$ac_err" >&5
|
|
3624 echo "configure: failed program was:" >&5
|
|
3625 cat conftest.$ac_ext >&5
|
|
3626 rm -rf conftest*
|
|
3627 eval "ac_cv_header_$ac_safe=no"
|
|
3628 fi
|
|
3629 rm -f conftest*
|
|
3630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
3631 echo "$ac_t""yes" 1>&6
|
|
3632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
3633 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3634 Defining $ac_tr_hdr
|
|
3635 EOF
|
|
3636 cat >> confdefs.h <<EOF
|
|
3637 #define $ac_tr_hdr 1
|
|
3638 EOF
|
|
3639 }
|
|
3640
|
|
3641 else
|
|
3642 echo "$ac_t""no" 1>&6
|
|
3643 fi
|
0
|
3644 done
|
|
3645
|
155
|
3646 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
1692
|
3647 echo "configure:3648: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
3648
|
|
3649 cat > conftest.$ac_ext <<EOF
|
|
3650 #line 3651 "configure"
|
155
|
3651 #include "confdefs.h"
|
|
3652 #include <sys/types.h>
|
|
3653 #include <sys/wait.h>
|
|
3654 #ifndef WEXITSTATUS
|
|
3655 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
3656 #endif
|
|
3657 #ifndef WIFEXITED
|
|
3658 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
3659 #endif
|
|
3660 int main() {
|
|
3661 int s;
|
|
3662 wait (&s);
|
|
3663 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
3664 ; return 0; }
|
|
3665 EOF
|
1692
|
3666 if { (eval echo configure:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
155
|
3667 rm -rf conftest*
|
|
3668 ac_cv_header_sys_wait_h=yes
|
|
3669 else
|
|
3670 echo "configure: failed program was:" >&5
|
|
3671 cat conftest.$ac_ext >&5
|
|
3672 rm -rf conftest*
|
|
3673 ac_cv_header_sys_wait_h=no
|
|
3674 fi
|
|
3675 rm -f conftest*
|
|
3676
|
|
3677 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
3678 if test $ac_cv_header_sys_wait_h = yes; then
|
|
3679 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3680 Defining HAVE_SYS_WAIT_H
|
|
3681 EOF
|
|
3682 cat >> confdefs.h <<\EOF
|
|
3683 #define HAVE_SYS_WAIT_H 1
|
|
3684 EOF
|
|
3685 }
|
|
3686
|
|
3687 fi
|
|
3688
|
149
|
3689 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
1692
|
3690 echo "configure:3691: checking for ANSI C header files" >&5
|
|
3691
|
|
3692 cat > conftest.$ac_ext <<EOF
|
|
3693 #line 3694 "configure"
|
0
|
3694 #include "confdefs.h"
|
|
3695 #include <stdlib.h>
|
|
3696 #include <stdarg.h>
|
|
3697 #include <string.h>
|
|
3698 #include <float.h>
|
|
3699 EOF
|
149
|
3700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
3701 { (eval echo configure:3702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
3702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
3703 if test -z "$ac_err"; then
|
|
3704 rm -rf conftest*
|
149
|
3705 ac_cv_header_stdc=yes
|
|
3706 else
|
|
3707 echo "$ac_err" >&5
|
|
3708 echo "configure: failed program was:" >&5
|
|
3709 cat conftest.$ac_ext >&5
|
|
3710 rm -rf conftest*
|
|
3711 ac_cv_header_stdc=no
|
|
3712 fi
|
|
3713 rm -f conftest*
|
|
3714
|
|
3715 if test $ac_cv_header_stdc = yes; then
|
0
|
3716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
149
|
3717 cat > conftest.$ac_ext <<EOF
|
1692
|
3718 #line 3719 "configure"
|
149
|
3719 #include "confdefs.h"
|
|
3720 #include <string.h>
|
|
3721 EOF
|
|
3722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3723 egrep "memchr" >/dev/null 2>&1; then
|
|
3724 :
|
|
3725 else
|
|
3726 rm -rf conftest*
|
|
3727 ac_cv_header_stdc=no
|
|
3728 fi
|
|
3729 rm -f conftest*
|
|
3730
|
|
3731 fi
|
|
3732
|
|
3733 if test $ac_cv_header_stdc = yes; then
|
|
3734 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
3735 cat > conftest.$ac_ext <<EOF
|
1692
|
3736 #line 3737 "configure"
|
149
|
3737 #include "confdefs.h"
|
|
3738 #include <stdlib.h>
|
|
3739 EOF
|
|
3740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3741 egrep "free" >/dev/null 2>&1; then
|
|
3742 :
|
|
3743 else
|
|
3744 rm -rf conftest*
|
|
3745 ac_cv_header_stdc=no
|
|
3746 fi
|
|
3747 rm -f conftest*
|
|
3748
|
|
3749 fi
|
|
3750
|
|
3751 if test $ac_cv_header_stdc = yes; then
|
|
3752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
3753 cat > conftest.$ac_ext <<EOF
|
1692
|
3754 #line 3755 "configure"
|
0
|
3755 #include "confdefs.h"
|
|
3756 #include <ctype.h>
|
|
3757 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
3758 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
149
|
3759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
0
|
3760 int main () { int i; for (i = 0; i < 256; i++)
|
|
3761 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
3762 exit (0); }
|
|
3763
|
|
3764 EOF
|
1692
|
3765 if { (eval echo configure:3766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
3766 then
|
|
3767 :
|
|
3768 else
|
373
|
3769 conftest_rc="$?"
|
149
|
3770 echo "configure: failed program was:" >&5
|
|
3771 cat conftest.$ac_ext >&5
|
|
3772 rm -fr conftest*
|
|
3773 ac_cv_header_stdc=no
|
0
|
3774 fi
|
|
3775 rm -fr conftest*
|
149
|
3776 fi
|
|
3777
|
|
3778 echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
3779 if test $ac_cv_header_stdc = yes; then
|
|
3780 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3781 Defining STDC_HEADERS
|
|
3782 EOF
|
|
3783 cat >> confdefs.h <<\EOF
|
|
3784 #define STDC_HEADERS 1
|
|
3785 EOF
|
|
3786 }
|
|
3787
|
|
3788 fi
|
|
3789
|
|
3790 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
1692
|
3791 echo "configure:3792: checking whether time.h and sys/time.h may both be included" >&5
|
|
3792
|
|
3793 cat > conftest.$ac_ext <<EOF
|
|
3794 #line 3795 "configure"
|
0
|
3795 #include "confdefs.h"
|
|
3796 #include <sys/types.h>
|
|
3797 #include <sys/time.h>
|
|
3798 #include <time.h>
|
149
|
3799 int main() {
|
|
3800 struct tm *tp;
|
|
3801 ; return 0; }
|
|
3802 EOF
|
1692
|
3803 if { (eval echo configure:3804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3804 rm -rf conftest*
|
|
3805 ac_cv_header_time=yes
|
|
3806 else
|
|
3807 echo "configure: failed program was:" >&5
|
|
3808 cat conftest.$ac_ext >&5
|
|
3809 rm -rf conftest*
|
|
3810 ac_cv_header_time=no
|
|
3811 fi
|
|
3812 rm -f conftest*
|
|
3813
|
|
3814 echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
3815 if test $ac_cv_header_time = yes; then
|
|
3816 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3817 Defining TIME_WITH_SYS_TIME
|
|
3818 EOF
|
|
3819 cat >> confdefs.h <<\EOF
|
|
3820 #define TIME_WITH_SYS_TIME 1
|
|
3821 EOF
|
|
3822 }
|
|
3823
|
|
3824 fi
|
|
3825
|
|
3826 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
|
1692
|
3827 echo "configure:3828: checking for sys_siglist declaration in signal.h or unistd.h" >&5
|
|
3828
|
|
3829 cat > conftest.$ac_ext <<EOF
|
|
3830 #line 3831 "configure"
|
149
|
3831 #include "confdefs.h"
|
|
3832 #include <sys/types.h>
|
0
|
3833 #include <signal.h>
|
149
|
3834 /* NetBSD declares sys_siglist in unistd.h. */
|
0
|
3835 #ifdef HAVE_UNISTD_H
|
|
3836 #include <unistd.h>
|
|
3837 #endif
|
149
|
3838 int main() {
|
|
3839 char *msg = *(sys_siglist + 1);
|
|
3840 ; return 0; }
|
|
3841 EOF
|
1692
|
3842 if { (eval echo configure:3843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3843 rm -rf conftest*
|
|
3844 ac_cv_decl_sys_siglist=yes
|
|
3845 else
|
|
3846 echo "configure: failed program was:" >&5
|
|
3847 cat conftest.$ac_ext >&5
|
|
3848 rm -rf conftest*
|
|
3849 ac_cv_decl_sys_siglist=no
|
|
3850 fi
|
|
3851 rm -f conftest*
|
|
3852
|
|
3853 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
|
|
3854 if test $ac_cv_decl_sys_siglist = yes; then
|
|
3855 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3856 Defining SYS_SIGLIST_DECLARED
|
|
3857 EOF
|
|
3858 cat >> confdefs.h <<\EOF
|
|
3859 #define SYS_SIGLIST_DECLARED 1
|
|
3860 EOF
|
|
3861 }
|
|
3862
|
|
3863 fi
|
|
3864
|
|
3865
|
460
|
3866
|
|
3867 echo $ac_n "checking for utime""... $ac_c" 1>&6
|
1692
|
3868 echo "configure:3869: checking for utime" >&5
|
|
3869 cat > conftest.$ac_ext <<EOF
|
|
3870 #line 3871 "configure"
|
460
|
3871 #include "confdefs.h"
|
|
3872 #include <sys/types.h>
|
0
|
3873 #include <utime.h>
|
460
|
3874 int main() {
|
|
3875 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
|
|
3876 ; return 0; }
|
|
3877 EOF
|
1692
|
3878 if { (eval echo configure:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3879 rm -rf conftest*
|
|
3880 echo "$ac_t""yes" 1>&6
|
|
3881 { test "$extra_verbose" = "yes" && cat << \EOF
|
460
|
3882 Defining HAVE_UTIME
|
|
3883 EOF
|
|
3884 cat >> confdefs.h <<\EOF
|
|
3885 #define HAVE_UTIME 1
|
|
3886 EOF
|
|
3887 }
|
|
3888
|
|
3889 else
|
|
3890 echo "configure: failed program was:" >&5
|
|
3891 cat conftest.$ac_ext >&5
|
|
3892 rm -rf conftest*
|
|
3893 echo "$ac_t""no" 1>&6
|
|
3894 for ac_func in utimes
|
|
3895 do
|
|
3896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
3897 echo "configure:3898: checking for $ac_func" >&5
|
|
3898
|
|
3899 cat > conftest.$ac_ext <<EOF
|
|
3900 #line 3901 "configure"
|
460
|
3901 #include "confdefs.h"
|
|
3902 /* System header to define __stub macros and hopefully few prototypes,
|
|
3903 which can conflict with char $ac_func(); below. */
|
|
3904 #include <assert.h>
|
|
3905 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3906 /* We use char because int might match the return type of a gcc2
|
|
3907 builtin and then its argument prototype would still apply. */
|
|
3908 char $ac_func();
|
|
3909
|
|
3910 int main() {
|
|
3911
|
|
3912 /* The GNU C library defines this for functions which it implements
|
|
3913 to always fail with ENOSYS. Some functions are actually named
|
|
3914 something starting with __ and the normal name is an alias. */
|
|
3915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
3916 choke me
|
|
3917 #else
|
|
3918 $ac_func();
|
|
3919 #endif
|
|
3920
|
|
3921 ; return 0; }
|
|
3922 EOF
|
1692
|
3923 if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
460
|
3924 rm -rf conftest*
|
|
3925 eval "ac_cv_func_$ac_func=yes"
|
|
3926 else
|
|
3927 echo "configure: failed program was:" >&5
|
|
3928 cat conftest.$ac_ext >&5
|
|
3929 rm -rf conftest*
|
|
3930 eval "ac_cv_func_$ac_func=no"
|
|
3931 fi
|
|
3932 rm -f conftest*
|
|
3933
|
|
3934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
3935 echo "$ac_t""yes" 1>&6
|
|
3936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
3937 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3938 Defining $ac_tr_func
|
|
3939 EOF
|
|
3940 cat >> confdefs.h <<EOF
|
|
3941 #define $ac_tr_func 1
|
|
3942 EOF
|
|
3943 }
|
|
3944
|
|
3945 else
|
|
3946 echo "$ac_t""no" 1>&6
|
|
3947 fi
|
|
3948 done
|
|
3949
|
|
3950 fi
|
|
3951 rm -f conftest*
|
|
3952
|
149
|
3953
|
|
3954 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
1692
|
3955 echo "configure:3956: checking return type of signal handlers" >&5
|
|
3956
|
|
3957 cat > conftest.$ac_ext <<EOF
|
|
3958 #line 3959 "configure"
|
0
|
3959 #include "confdefs.h"
|
|
3960 #include <sys/types.h>
|
|
3961 #include <signal.h>
|
|
3962 #ifdef signal
|
|
3963 #undef signal
|
|
3964 #endif
|
149
|
3965 #ifdef __cplusplus
|
|
3966 extern "C" void (*signal (int, void (*)(int)))(int);
|
|
3967 #else
|
|
3968 void (*signal ()) ();
|
|
3969 #endif
|
|
3970
|
|
3971 int main() {
|
|
3972 int i;
|
|
3973 ; return 0; }
|
|
3974 EOF
|
1692
|
3975 if { (eval echo configure:3976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3976 rm -rf conftest*
|
|
3977 ac_cv_type_signal=void
|
|
3978 else
|
|
3979 echo "configure: failed program was:" >&5
|
|
3980 cat conftest.$ac_ext >&5
|
|
3981 rm -rf conftest*
|
|
3982 ac_cv_type_signal=int
|
|
3983 fi
|
|
3984 rm -f conftest*
|
|
3985
|
|
3986 echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
3987 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3988 Defining RETSIGTYPE = $ac_cv_type_signal
|
|
3989 EOF
|
|
3990 cat >> confdefs.h <<EOF
|
|
3991 #define RETSIGTYPE $ac_cv_type_signal
|
|
3992 EOF
|
|
3993 }
|
|
3994
|
|
3995
|
163
|
3996 echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
1692
|
3997 echo "configure:3998: checking for size_t" >&5
|
|
3998
|
|
3999 cat > conftest.$ac_ext <<EOF
|
|
4000 #line 4001 "configure"
|
163
|
4001 #include "confdefs.h"
|
|
4002 #include <sys/types.h>
|
|
4003 #if STDC_HEADERS
|
|
4004 #include <stdlib.h>
|
|
4005 #include <stddef.h>
|
|
4006 #endif
|
|
4007 EOF
|
|
4008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4009 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4010 rm -rf conftest*
|
|
4011 ac_cv_type_size_t=yes
|
|
4012 else
|
|
4013 rm -rf conftest*
|
|
4014 ac_cv_type_size_t=no
|
|
4015 fi
|
|
4016 rm -f conftest*
|
|
4017
|
|
4018 echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
4019 if test $ac_cv_type_size_t = no; then
|
|
4020 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4021 Defining size_t = unsigned
|
|
4022 EOF
|
|
4023 cat >> confdefs.h <<\EOF
|
|
4024 #define size_t unsigned
|
|
4025 EOF
|
|
4026 }
|
|
4027
|
|
4028 fi
|
|
4029
|
|
4030 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
1692
|
4031 echo "configure:4032: checking for pid_t" >&5
|
|
4032
|
|
4033 cat > conftest.$ac_ext <<EOF
|
|
4034 #line 4035 "configure"
|
163
|
4035 #include "confdefs.h"
|
|
4036 #include <sys/types.h>
|
|
4037 #if STDC_HEADERS
|
|
4038 #include <stdlib.h>
|
|
4039 #include <stddef.h>
|
|
4040 #endif
|
|
4041 EOF
|
|
4042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4043 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4044 rm -rf conftest*
|
|
4045 ac_cv_type_pid_t=yes
|
|
4046 else
|
|
4047 rm -rf conftest*
|
|
4048 ac_cv_type_pid_t=no
|
|
4049 fi
|
|
4050 rm -f conftest*
|
|
4051
|
|
4052 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
4053 if test $ac_cv_type_pid_t = no; then
|
|
4054 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4055 Defining pid_t = int
|
|
4056 EOF
|
|
4057 cat >> confdefs.h <<\EOF
|
|
4058 #define pid_t int
|
|
4059 EOF
|
|
4060 }
|
|
4061
|
|
4062 fi
|
|
4063
|
|
4064 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
|
1692
|
4065 echo "configure:4066: checking for uid_t in sys/types.h" >&5
|
|
4066
|
|
4067 cat > conftest.$ac_ext <<EOF
|
|
4068 #line 4069 "configure"
|
163
|
4069 #include "confdefs.h"
|
|
4070 #include <sys/types.h>
|
|
4071 EOF
|
|
4072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
4073 egrep "uid_t" >/dev/null 2>&1; then
|
|
4074 rm -rf conftest*
|
|
4075 ac_cv_type_uid_t=yes
|
|
4076 else
|
|
4077 rm -rf conftest*
|
|
4078 ac_cv_type_uid_t=no
|
|
4079 fi
|
|
4080 rm -f conftest*
|
|
4081
|
|
4082
|
|
4083 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
|
|
4084 if test $ac_cv_type_uid_t = no; then
|
|
4085 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4086 Defining uid_t = int
|
|
4087 EOF
|
|
4088 cat >> confdefs.h <<\EOF
|
|
4089 #define uid_t int
|
|
4090 EOF
|
|
4091 }
|
|
4092
|
|
4093 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4094 Defining gid_t = int
|
|
4095 EOF
|
|
4096 cat >> confdefs.h <<\EOF
|
|
4097 #define gid_t int
|
|
4098 EOF
|
|
4099 }
|
|
4100
|
|
4101 fi
|
|
4102
|
|
4103 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
1692
|
4104 echo "configure:4105: checking for mode_t" >&5
|
|
4105
|
|
4106 cat > conftest.$ac_ext <<EOF
|
|
4107 #line 4108 "configure"
|
163
|
4108 #include "confdefs.h"
|
|
4109 #include <sys/types.h>
|
|
4110 #if STDC_HEADERS
|
|
4111 #include <stdlib.h>
|
|
4112 #include <stddef.h>
|
|
4113 #endif
|
|
4114 EOF
|
|
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4116 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4117 rm -rf conftest*
|
|
4118 ac_cv_type_mode_t=yes
|
|
4119 else
|
|
4120 rm -rf conftest*
|
|
4121 ac_cv_type_mode_t=no
|
|
4122 fi
|
|
4123 rm -f conftest*
|
|
4124
|
|
4125 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|
4126 if test $ac_cv_type_mode_t = no; then
|
|
4127 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4128 Defining mode_t = int
|
|
4129 EOF
|
|
4130 cat >> confdefs.h <<\EOF
|
|
4131 #define mode_t int
|
|
4132 EOF
|
|
4133 }
|
|
4134
|
|
4135 fi
|
|
4136
|
|
4137 echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
1692
|
4138 echo "configure:4139: checking for off_t" >&5
|
|
4139
|
|
4140 cat > conftest.$ac_ext <<EOF
|
|
4141 #line 4142 "configure"
|
163
|
4142 #include "confdefs.h"
|
|
4143 #include <sys/types.h>
|
|
4144 #if STDC_HEADERS
|
|
4145 #include <stdlib.h>
|
|
4146 #include <stddef.h>
|
|
4147 #endif
|
|
4148 EOF
|
|
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4150 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4151 rm -rf conftest*
|
|
4152 ac_cv_type_off_t=yes
|
|
4153 else
|
|
4154 rm -rf conftest*
|
|
4155 ac_cv_type_off_t=no
|
|
4156 fi
|
|
4157 rm -f conftest*
|
|
4158
|
|
4159 echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
4160 if test $ac_cv_type_off_t = no; then
|
|
4161 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4162 Defining off_t = long
|
|
4163 EOF
|
|
4164 cat >> confdefs.h <<\EOF
|
|
4165 #define off_t long
|
|
4166 EOF
|
|
4167 }
|
|
4168
|
|
4169 fi
|
|
4170
|
426
|
4171 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
|
1692
|
4172 echo "configure:4173: checking for ssize_t" >&5
|
|
4173
|
|
4174 cat > conftest.$ac_ext <<EOF
|
|
4175 #line 4176 "configure"
|
426
|
4176 #include "confdefs.h"
|
|
4177 #include <sys/types.h>
|
|
4178 #if STDC_HEADERS
|
|
4179 #include <stdlib.h>
|
|
4180 #include <stddef.h>
|
|
4181 #endif
|
|
4182 EOF
|
|
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
4184 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
4185 rm -rf conftest*
|
|
4186 ac_cv_type_ssize_t=yes
|
|
4187 else
|
|
4188 rm -rf conftest*
|
|
4189 ac_cv_type_ssize_t=no
|
|
4190 fi
|
|
4191 rm -f conftest*
|
|
4192
|
|
4193 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
|
|
4194 if test $ac_cv_type_ssize_t = no; then
|
|
4195 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4196 Defining ssize_t = int
|
|
4197 EOF
|
|
4198 cat >> confdefs.h <<\EOF
|
|
4199 #define ssize_t int
|
|
4200 EOF
|
|
4201 }
|
|
4202
|
|
4203 fi
|
|
4204
|
410
|
4205
|
1443
|
4206 if test "$ac_cv_header_inttypes_h" != "yes"; then
|
|
4207 echo $ac_n "checking for intptr_t in sys/types.h""... $ac_c" 1>&6
|
1692
|
4208 echo "configure:4209: checking for intptr_t in sys/types.h" >&5
|
|
4209 cat > conftest.$ac_ext <<EOF
|
|
4210 #line 4211 "configure"
|
1443
|
4211 #include "confdefs.h"
|
|
4212 #include <sys/types.h>
|
|
4213 intptr_t x;
|
|
4214
|
|
4215 int main() {
|
|
4216
|
|
4217 ; return 0; }
|
|
4218 EOF
|
1692
|
4219 if { (eval echo configure:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1443
|
4220 rm -rf conftest*
|
|
4221 echo "$ac_t""yes" 1>&6
|
|
4222 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4223 Defining HAVE_INTPTR_T_IN_SYS_TYPES_H = 1
|
|
4224 EOF
|
|
4225 cat >> confdefs.h <<\EOF
|
|
4226 #define HAVE_INTPTR_T_IN_SYS_TYPES_H 1
|
|
4227 EOF
|
|
4228 }
|
|
4229
|
|
4230 else
|
|
4231 echo "configure: failed program was:" >&5
|
|
4232 cat conftest.$ac_ext >&5
|
|
4233 rm -rf conftest*
|
|
4234 echo "$ac_t""no" 1>&6
|
|
4235 fi
|
|
4236 rm -f conftest*
|
|
4237 fi
|
|
4238
|
442
|
4239 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
|
1692
|
4240 echo "configure:4241: checking for socklen_t" >&5
|
|
4241 cat > conftest.$ac_ext <<EOF
|
|
4242 #line 4243 "configure"
|
442
|
4243 #include "confdefs.h"
|
1427
|
4244 #include <sys/types.h>
|
442
|
4245 #include <sys/socket.h>
|
|
4246 socklen_t x;
|
|
4247
|
|
4248 int main() {
|
|
4249
|
|
4250 ; return 0; }
|
|
4251 EOF
|
1692
|
4252 if { (eval echo configure:4253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
4253 rm -rf conftest*
|
|
4254 echo "$ac_t""yes" 1>&6
|
|
4255 else
|
|
4256 echo "configure: failed program was:" >&5
|
|
4257 cat conftest.$ac_ext >&5
|
|
4258 rm -rf conftest*
|
|
4259
|
|
4260 cat > conftest.$ac_ext <<EOF
|
1692
|
4261 #line 4262 "configure"
|
1427
|
4262 #include "confdefs.h"
|
|
4263 #include <sys/types.h>
|
442
|
4264 #include <sys/socket.h>
|
|
4265 int accept (int, struct sockaddr *, size_t *);
|
|
4266
|
|
4267 int main() {
|
|
4268
|
|
4269 ; return 0; }
|
|
4270 EOF
|
1692
|
4271 if { (eval echo configure:4272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
4272 rm -rf conftest*
|
|
4273
|
|
4274 echo "$ac_t""size_t" 1>&6
|
|
4275 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4276 Defining socklen_t = size_t
|
|
4277 EOF
|
|
4278 cat >> confdefs.h <<\EOF
|
|
4279 #define socklen_t size_t
|
|
4280 EOF
|
|
4281 }
|
|
4282
|
|
4283 else
|
|
4284 echo "configure: failed program was:" >&5
|
|
4285 cat conftest.$ac_ext >&5
|
|
4286 rm -rf conftest*
|
|
4287
|
|
4288 echo "$ac_t""int" 1>&6
|
|
4289 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4290 Defining socklen_t = int
|
|
4291 EOF
|
|
4292 cat >> confdefs.h <<\EOF
|
|
4293 #define socklen_t int
|
|
4294 EOF
|
|
4295 }
|
|
4296
|
|
4297 fi
|
|
4298 rm -f conftest*
|
|
4299 fi
|
|
4300 rm -f conftest*
|
|
4301
|
149
|
4302 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
|
1692
|
4303 echo "configure:4304: checking for struct timeval" >&5
|
|
4304 cat > conftest.$ac_ext <<EOF
|
|
4305 #line 4306 "configure"
|
0
|
4306 #include "confdefs.h"
|
|
4307 #ifdef TIME_WITH_SYS_TIME
|
|
4308 #include <sys/time.h>
|
|
4309 #include <time.h>
|
|
4310 #else
|
|
4311 #ifdef HAVE_SYS_TIME_H
|
|
4312 #include <sys/time.h>
|
|
4313 #else
|
|
4314 #include <time.h>
|
|
4315 #endif
|
|
4316 #endif
|
149
|
4317 int main() {
|
|
4318 static struct timeval x; x.tv_sec = x.tv_usec;
|
|
4319 ; return 0; }
|
|
4320 EOF
|
1692
|
4321 if { (eval echo configure:4322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4322 rm -rf conftest*
|
|
4323 echo "$ac_t""yes" 1>&6
|
0
|
4324 HAVE_TIMEVAL=yes
|
149
|
4325 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4326 Defining HAVE_TIMEVAL
|
|
4327 EOF
|
|
4328 cat >> confdefs.h <<\EOF
|
|
4329 #define HAVE_TIMEVAL 1
|
|
4330 EOF
|
|
4331 }
|
|
4332
|
|
4333 else
|
|
4334 echo "configure: failed program was:" >&5
|
|
4335 cat conftest.$ac_ext >&5
|
|
4336 rm -rf conftest*
|
|
4337 echo "$ac_t""no" 1>&6
|
|
4338 HAVE_TIMEVAL=no
|
|
4339 fi
|
|
4340 rm -f conftest*
|
|
4341
|
|
4342 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
1692
|
4343 echo "configure:4344: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
4344
|
|
4345 cat > conftest.$ac_ext <<EOF
|
|
4346 #line 4347 "configure"
|
0
|
4347 #include "confdefs.h"
|
|
4348 #include <sys/types.h>
|
|
4349 #include <time.h>
|
149
|
4350 int main() {
|
|
4351 struct tm *tp; tp->tm_sec;
|
|
4352 ; return 0; }
|
|
4353 EOF
|
1692
|
4354 if { (eval echo configure:4355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4355 rm -rf conftest*
|
|
4356 ac_cv_struct_tm=time.h
|
|
4357 else
|
|
4358 echo "configure: failed program was:" >&5
|
|
4359 cat conftest.$ac_ext >&5
|
|
4360 rm -rf conftest*
|
|
4361 ac_cv_struct_tm=sys/time.h
|
|
4362 fi
|
|
4363 rm -f conftest*
|
|
4364
|
|
4365 echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
4366 if test $ac_cv_struct_tm = sys/time.h; then
|
|
4367 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4368 Defining TM_IN_SYS_TIME
|
|
4369 EOF
|
|
4370 cat >> confdefs.h <<\EOF
|
|
4371 #define TM_IN_SYS_TIME 1
|
|
4372 EOF
|
|
4373 }
|
|
4374
|
|
4375 fi
|
|
4376
|
|
4377 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
1692
|
4378 echo "configure:4379: checking for tm_zone in struct tm" >&5
|
|
4379
|
|
4380 cat > conftest.$ac_ext <<EOF
|
|
4381 #line 4382 "configure"
|
149
|
4382 #include "confdefs.h"
|
|
4383 #include <sys/types.h>
|
|
4384 #include <$ac_cv_struct_tm>
|
|
4385 int main() {
|
|
4386 struct tm tm; tm.tm_zone;
|
|
4387 ; return 0; }
|
|
4388 EOF
|
1692
|
4389 if { (eval echo configure:4390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4390 rm -rf conftest*
|
|
4391 ac_cv_struct_tm_zone=yes
|
|
4392 else
|
|
4393 echo "configure: failed program was:" >&5
|
|
4394 cat conftest.$ac_ext >&5
|
|
4395 rm -rf conftest*
|
|
4396 ac_cv_struct_tm_zone=no
|
|
4397 fi
|
|
4398 rm -f conftest*
|
|
4399
|
|
4400 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
|
4401 if test "$ac_cv_struct_tm_zone" = yes; then
|
|
4402 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4403 Defining HAVE_TM_ZONE
|
|
4404 EOF
|
|
4405 cat >> confdefs.h <<\EOF
|
|
4406 #define HAVE_TM_ZONE 1
|
|
4407 EOF
|
|
4408 }
|
|
4409
|
|
4410 else
|
|
4411 echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
1692
|
4412 echo "configure:4413: checking for tzname" >&5
|
|
4413
|
|
4414 cat > conftest.$ac_ext <<EOF
|
|
4415 #line 4416 "configure"
|
0
|
4416 #include "confdefs.h"
|
|
4417 #include <time.h>
|
|
4418 #ifndef tzname /* For SGI. */
|
149
|
4419 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
0
|
4420 #endif
|
149
|
4421 int main() {
|
|
4422 atoi(*tzname);
|
|
4423 ; return 0; }
|
|
4424 EOF
|
1692
|
4425 if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
4426 rm -rf conftest*
|
|
4427 ac_cv_var_tzname=yes
|
|
4428 else
|
|
4429 echo "configure: failed program was:" >&5
|
|
4430 cat conftest.$ac_ext >&5
|
|
4431 rm -rf conftest*
|
|
4432 ac_cv_var_tzname=no
|
|
4433 fi
|
|
4434 rm -f conftest*
|
|
4435
|
|
4436 echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
|
4437 if test $ac_cv_var_tzname = yes; then
|
|
4438 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4439 Defining HAVE_TZNAME
|
|
4440 EOF
|
|
4441 cat >> confdefs.h <<\EOF
|
|
4442 #define HAVE_TZNAME 1
|
|
4443 EOF
|
|
4444 }
|
|
4445
|
|
4446 fi
|
|
4447 fi
|
|
4448
|
|
4449
|
|
4450 echo $ac_n "checking for working const""... $ac_c" 1>&6
|
1692
|
4451 echo "configure:4452: checking for working const" >&5
|
|
4452
|
|
4453 cat > conftest.$ac_ext <<EOF
|
|
4454 #line 4455 "configure"
|
149
|
4455 #include "confdefs.h"
|
|
4456
|
|
4457 int main() {
|
|
4458
|
|
4459 /* Ultrix mips cc rejects this. */
|
744
|
4460 typedef int charset[2]; const charset x;
|
0
|
4461 /* SunOS 4.1.1 cc rejects this. */
|
|
4462 char const *const *ccp;
|
|
4463 char **p;
|
149
|
4464 /* NEC SVR4.0.2 mips cc rejects this. */
|
|
4465 struct point {int x, y;};
|
|
4466 static struct point const zero = {0,0};
|
0
|
4467 /* AIX XL C 1.02.0.0 rejects this.
|
|
4468 It does not let you subtract one const X* pointer from another in an arm
|
|
4469 of an if-expression whose if-part is not a constant expression */
|
|
4470 const char *g = "string";
|
|
4471 ccp = &g + (g ? g-g : 0);
|
|
4472 /* HPUX 7.0 cc rejects these. */
|
|
4473 ++ccp;
|
|
4474 p = (char**) ccp;
|
|
4475 ccp = (char const *const *) p;
|
|
4476 { /* SCO 3.2v4 cc rejects this. */
|
|
4477 char *t;
|
|
4478 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
4479
|
|
4480 *t++ = 0;
|
|
4481 }
|
|
4482 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
149
|
4483 int x[] = {25, 17};
|
0
|
4484 const int *foo = &x[0];
|
|
4485 ++foo;
|
|
4486 }
|
|
4487 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
4488 typedef const int *iptr;
|
|
4489 iptr p = 0;
|
|
4490 ++p;
|
|
4491 }
|
|
4492 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
4493 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
4494 struct s { int j; const int *ap[3]; };
|
|
4495 struct s *b; b->j = 5;
|
|
4496 }
|
|
4497 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
4498 const int foo = 10;
|
149
|
4499 }
|
|
4500
|
|
4501 ; return 0; }
|
|
4502 EOF
|
1692
|
4503 if { (eval echo configure:4504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4504 rm -rf conftest*
|
|
4505 ac_cv_c_const=yes
|
|
4506 else
|
|
4507 echo "configure: failed program was:" >&5
|
|
4508 cat conftest.$ac_ext >&5
|
|
4509 rm -rf conftest*
|
|
4510 ac_cv_c_const=no
|
|
4511 fi
|
|
4512 rm -f conftest*
|
|
4513
|
|
4514 echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
4515 if test $ac_cv_c_const = no; then
|
|
4516 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4517 Defining const =
|
|
4518 EOF
|
|
4519 cat >> confdefs.h <<\EOF
|
|
4520 #define const
|
|
4521 EOF
|
|
4522 }
|
|
4523
|
|
4524 fi
|
|
4525
|
|
4526
|
|
4527 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
1692
|
4528 echo "configure:4529: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
149
|
4529 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
4530
|
|
4531 cat > conftestmake <<\EOF
|
0
|
4532 all:
|
|
4533 @echo 'ac_maketemp="${MAKE}"'
|
|
4534 EOF
|
|
4535 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
4536 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
149
|
4537 if test -n "$ac_maketemp"; then
|
|
4538 eval ac_cv_prog_make_${ac_make}_set=yes
|
|
4539 else
|
|
4540 eval ac_cv_prog_make_${ac_make}_set=no
|
|
4541 fi
|
0
|
4542 rm -f conftestmake
|
149
|
4543 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
4544 echo "$ac_t""yes" 1>&6
|
|
4545 SET_MAKE=
|
|
4546 else
|
|
4547 echo "$ac_t""no" 1>&6
|
|
4548 SET_MAKE="MAKE=${MAKE-make}"
|
|
4549 fi
|
|
4550
|
|
4551
|
|
4552 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
1692
|
4553 echo "configure:4554: checking whether byte ordering is bigendian" >&5
|
149
|
4554
|
|
4555 ac_cv_c_bigendian=unknown
|
|
4556 # See if sys/param.h defines the BYTE_ORDER macro.
|
|
4557 cat > conftest.$ac_ext <<EOF
|
1692
|
4558 #line 4559 "configure"
|
149
|
4559 #include "confdefs.h"
|
|
4560 #include <sys/types.h>
|
|
4561 #include <sys/param.h>
|
|
4562 int main() {
|
|
4563
|
|
4564 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
4565 bogus endian macros
|
|
4566 #endif
|
|
4567 ; return 0; }
|
|
4568 EOF
|
1692
|
4569 if { (eval echo configure:4570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4570 rm -rf conftest*
|
|
4571 # It does; now see whether it defined to BIG_ENDIAN or not.
|
|
4572 cat > conftest.$ac_ext <<EOF
|
1692
|
4573 #line 4574 "configure"
|
149
|
4574 #include "confdefs.h"
|
|
4575 #include <sys/types.h>
|
|
4576 #include <sys/param.h>
|
|
4577 int main() {
|
|
4578
|
|
4579 #if BYTE_ORDER != BIG_ENDIAN
|
|
4580 not big endian
|
|
4581 #endif
|
|
4582 ; return 0; }
|
|
4583 EOF
|
1692
|
4584 if { (eval echo configure:4585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4585 rm -rf conftest*
|
|
4586 ac_cv_c_bigendian=yes
|
|
4587 else
|
|
4588 echo "configure: failed program was:" >&5
|
|
4589 cat conftest.$ac_ext >&5
|
|
4590 rm -rf conftest*
|
|
4591 ac_cv_c_bigendian=no
|
|
4592 fi
|
|
4593 rm -f conftest*
|
|
4594 else
|
|
4595 echo "configure: failed program was:" >&5
|
|
4596 cat conftest.$ac_ext >&5
|
|
4597 fi
|
|
4598 rm -f conftest*
|
|
4599 if test $ac_cv_c_bigendian = unknown; then
|
|
4600 cat > conftest.$ac_ext <<EOF
|
1692
|
4601 #line 4602 "configure"
|
0
|
4602 #include "confdefs.h"
|
|
4603 main () {
|
|
4604 /* Are we little or big endian? From Harbison&Steele. */
|
|
4605 union
|
|
4606 {
|
|
4607 long l;
|
|
4608 char c[sizeof (long)];
|
|
4609 } u;
|
|
4610 u.l = 1;
|
|
4611 exit (u.c[sizeof (long) - 1] == 1);
|
|
4612 }
|
|
4613 EOF
|
1692
|
4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
4615 then
|
|
4616 ac_cv_c_bigendian=no
|
|
4617 else
|
373
|
4618 conftest_rc="$?"
|
149
|
4619 echo "configure: failed program was:" >&5
|
|
4620 cat conftest.$ac_ext >&5
|
|
4621 rm -fr conftest*
|
|
4622 ac_cv_c_bigendian=yes
|
0
|
4623 fi
|
|
4624 rm -fr conftest*
|
149
|
4625 fi
|
|
4626
|
|
4627 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|
4628 if test $ac_cv_c_bigendian = yes; then
|
|
4629 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4630 Defining WORDS_BIGENDIAN
|
|
4631 EOF
|
|
4632 cat >> confdefs.h <<\EOF
|
|
4633 #define WORDS_BIGENDIAN 1
|
|
4634 EOF
|
|
4635 }
|
|
4636
|
|
4637 fi
|
|
4638
|
|
4639
|
151
|
4640 echo $ac_n "checking size of short""... $ac_c" 1>&6
|
1692
|
4641 echo "configure:4642: checking size of short" >&5
|
|
4642
|
|
4643 cat > conftest.$ac_ext <<EOF
|
|
4644 #line 4645 "configure"
|
151
|
4645 #include "confdefs.h"
|
|
4646 #include <stdio.h>
|
1692
|
4647 main()
|
151
|
4648 {
|
|
4649 FILE *f=fopen("conftestval", "w");
|
1692
|
4650 if (!f) exit(1);
|
151
|
4651 fprintf(f, "%d\n", sizeof(short));
|
1692
|
4652 exit(0);
|
|
4653 }
|
|
4654 EOF
|
|
4655 if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4656 then
|
|
4657 ac_cv_sizeof_short=`cat conftestval`
|
|
4658 else
|
373
|
4659 conftest_rc="$?"
|
151
|
4660 echo "configure: failed program was:" >&5
|
|
4661 cat conftest.$ac_ext >&5
|
|
4662 rm -fr conftest*
|
|
4663 ac_cv_sizeof_short=0
|
|
4664 fi
|
|
4665 rm -fr conftest*
|
|
4666 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|
4667 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4668 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
|
|
4669 EOF
|
|
4670 cat >> confdefs.h <<EOF
|
|
4671 #define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
4672 EOF
|
|
4673 }
|
|
4674
|
|
4675
|
163
|
4676 if test "$ac_cv_sizeof_short" = 0; then
|
|
4677 echo ""
|
|
4678 echo "*** PANIC *** Configure tests are not working - compiler is broken."
|
|
4679 echo "*** PANIC *** Please examine config.log for compilation errors."
|
|
4680 exit 1
|
|
4681 fi
|
151
|
4682 echo $ac_n "checking size of int""... $ac_c" 1>&6
|
1692
|
4683 echo "configure:4684: checking size of int" >&5
|
|
4684
|
|
4685 cat > conftest.$ac_ext <<EOF
|
|
4686 #line 4687 "configure"
|
151
|
4687 #include "confdefs.h"
|
|
4688 #include <stdio.h>
|
1692
|
4689 main()
|
151
|
4690 {
|
|
4691 FILE *f=fopen("conftestval", "w");
|
1692
|
4692 if (!f) exit(1);
|
151
|
4693 fprintf(f, "%d\n", sizeof(int));
|
1692
|
4694 exit(0);
|
|
4695 }
|
|
4696 EOF
|
|
4697 if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4698 then
|
|
4699 ac_cv_sizeof_int=`cat conftestval`
|
|
4700 else
|
373
|
4701 conftest_rc="$?"
|
151
|
4702 echo "configure: failed program was:" >&5
|
|
4703 cat conftest.$ac_ext >&5
|
|
4704 rm -fr conftest*
|
|
4705 ac_cv_sizeof_int=0
|
|
4706 fi
|
|
4707 rm -fr conftest*
|
|
4708 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
4709 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4710 Defining SIZEOF_INT = $ac_cv_sizeof_int
|
|
4711 EOF
|
|
4712 cat >> confdefs.h <<EOF
|
|
4713 #define SIZEOF_INT $ac_cv_sizeof_int
|
|
4714 EOF
|
|
4715 }
|
|
4716
|
|
4717
|
|
4718 echo $ac_n "checking size of long""... $ac_c" 1>&6
|
1692
|
4719 echo "configure:4720: checking size of long" >&5
|
|
4720
|
|
4721 cat > conftest.$ac_ext <<EOF
|
|
4722 #line 4723 "configure"
|
151
|
4723 #include "confdefs.h"
|
|
4724 #include <stdio.h>
|
1692
|
4725 main()
|
151
|
4726 {
|
|
4727 FILE *f=fopen("conftestval", "w");
|
1692
|
4728 if (!f) exit(1);
|
151
|
4729 fprintf(f, "%d\n", sizeof(long));
|
1692
|
4730 exit(0);
|
|
4731 }
|
|
4732 EOF
|
|
4733 if { (eval echo configure:4734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4734 then
|
|
4735 ac_cv_sizeof_long=`cat conftestval`
|
|
4736 else
|
373
|
4737 conftest_rc="$?"
|
151
|
4738 echo "configure: failed program was:" >&5
|
|
4739 cat conftest.$ac_ext >&5
|
|
4740 rm -fr conftest*
|
|
4741 ac_cv_sizeof_long=0
|
|
4742 fi
|
|
4743 rm -fr conftest*
|
|
4744 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
4745 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4746 Defining SIZEOF_LONG = $ac_cv_sizeof_long
|
|
4747 EOF
|
|
4748 cat >> confdefs.h <<EOF
|
|
4749 #define SIZEOF_LONG $ac_cv_sizeof_long
|
|
4750 EOF
|
|
4751 }
|
|
4752
|
|
4753
|
163
|
4754 echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
1692
|
4755 echo "configure:4756: checking size of long long" >&5
|
|
4756
|
|
4757 cat > conftest.$ac_ext <<EOF
|
|
4758 #line 4759 "configure"
|
163
|
4759 #include "confdefs.h"
|
|
4760 #include <stdio.h>
|
1692
|
4761 main()
|
163
|
4762 {
|
|
4763 FILE *f=fopen("conftestval", "w");
|
1692
|
4764 if (!f) exit(1);
|
163
|
4765 fprintf(f, "%d\n", sizeof(long long));
|
1692
|
4766 exit(0);
|
|
4767 }
|
|
4768 EOF
|
|
4769 if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4770 then
|
|
4771 ac_cv_sizeof_long_long=`cat conftestval`
|
|
4772 else
|
373
|
4773 conftest_rc="$?"
|
163
|
4774 echo "configure: failed program was:" >&5
|
|
4775 cat conftest.$ac_ext >&5
|
|
4776 rm -fr conftest*
|
|
4777 ac_cv_sizeof_long_long=0
|
|
4778 fi
|
|
4779 rm -fr conftest*
|
|
4780 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|
4781 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4782 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
|
|
4783 EOF
|
|
4784 cat >> confdefs.h <<EOF
|
|
4785 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|
4786 EOF
|
|
4787 }
|
|
4788
|
|
4789
|
|
4790 echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
1692
|
4791 echo "configure:4792: checking size of void *" >&5
|
|
4792
|
|
4793 cat > conftest.$ac_ext <<EOF
|
|
4794 #line 4795 "configure"
|
163
|
4795 #include "confdefs.h"
|
|
4796 #include <stdio.h>
|
1692
|
4797 main()
|
163
|
4798 {
|
|
4799 FILE *f=fopen("conftestval", "w");
|
1692
|
4800 if (!f) exit(1);
|
163
|
4801 fprintf(f, "%d\n", sizeof(void *));
|
1692
|
4802 exit(0);
|
|
4803 }
|
|
4804 EOF
|
|
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4806 then
|
|
4807 ac_cv_sizeof_void_p=`cat conftestval`
|
|
4808 else
|
373
|
4809 conftest_rc="$?"
|
163
|
4810 echo "configure: failed program was:" >&5
|
|
4811 cat conftest.$ac_ext >&5
|
|
4812 rm -fr conftest*
|
|
4813 ac_cv_sizeof_void_p=0
|
|
4814 fi
|
|
4815 rm -fr conftest*
|
|
4816 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|
4817 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4818 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
|
|
4819 EOF
|
|
4820 cat >> confdefs.h <<EOF
|
|
4821 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
4822 EOF
|
|
4823 }
|
|
4824
|
|
4825
|
151
|
4826
|
149
|
4827 echo $ac_n "checking for long file names""... $ac_c" 1>&6
|
1692
|
4828 echo "configure:4829: checking for long file names" >&5
|
149
|
4829
|
|
4830 ac_cv_sys_long_file_names=yes
|
0
|
4831 # Test for long file names in all the places we know might matter:
|
|
4832 # . the current directory, where building will happen
|
149
|
4833 # $prefix/lib where we will be installing things
|
|
4834 # $exec_prefix/lib likewise
|
|
4835 # eval it to expand exec_prefix.
|
|
4836 # $TMPDIR if set, where it might want to write temporary files
|
|
4837 # if $TMPDIR is not set:
|
0
|
4838 # /tmp where it might want to write temporary files
|
|
4839 # /var/tmp likewise
|
|
4840 # /usr/tmp likewise
|
149
|
4841 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
|
|
4842 ac_tmpdirs="$TMPDIR"
|
|
4843 else
|
|
4844 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
|
|
4845 fi
|
|
4846 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
|
0
|
4847 test -d $ac_dir || continue
|
149
|
4848 test -w $ac_dir || continue # It is less confusing to not echo anything here.
|
0
|
4849 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
|
|
4850 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
|
|
4851 val=`cat $ac_dir/conftest9012345 2>/dev/null`
|
149
|
4852 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
|
|
4853 ac_cv_sys_long_file_names=no
|
|
4854 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
4855 break
|
0
|
4856 fi
|
149
|
4857 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
4858 done
|
|
4859
|
|
4860 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
|
|
4861 if test $ac_cv_sys_long_file_names = yes; then
|
|
4862 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4863 Defining HAVE_LONG_FILE_NAMES
|
|
4864 EOF
|
|
4865 cat >> confdefs.h <<\EOF
|
|
4866 #define HAVE_LONG_FILE_NAMES 1
|
|
4867 EOF
|
|
4868 }
|
|
4869
|
|
4870 fi
|
|
4871
|
|
4872
|
398
|
4873 echo $ac_n "checking for sin""... $ac_c" 1>&6
|
1692
|
4874 echo "configure:4875: checking for sin" >&5
|
|
4875
|
|
4876 cat > conftest.$ac_ext <<EOF
|
|
4877 #line 4878 "configure"
|
398
|
4878 #include "confdefs.h"
|
|
4879 /* System header to define __stub macros and hopefully few prototypes,
|
|
4880 which can conflict with char sin(); below. */
|
|
4881 #include <assert.h>
|
|
4882 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4883 /* We use char because int might match the return type of a gcc2
|
|
4884 builtin and then its argument prototype would still apply. */
|
|
4885 char sin();
|
|
4886
|
|
4887 int main() {
|
|
4888
|
|
4889 /* The GNU C library defines this for functions which it implements
|
|
4890 to always fail with ENOSYS. Some functions are actually named
|
|
4891 something starting with __ and the normal name is an alias. */
|
|
4892 #if defined (__stub_sin) || defined (__stub___sin)
|
|
4893 choke me
|
|
4894 #else
|
|
4895 sin();
|
|
4896 #endif
|
|
4897
|
|
4898 ; return 0; }
|
|
4899 EOF
|
1692
|
4900 if { (eval echo configure:4901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
4901 rm -rf conftest*
|
|
4902 eval "ac_cv_func_sin=yes"
|
|
4903 else
|
|
4904 echo "configure: failed program was:" >&5
|
|
4905 cat conftest.$ac_ext >&5
|
|
4906 rm -rf conftest*
|
|
4907 eval "ac_cv_func_sin=no"
|
|
4908 fi
|
|
4909 rm -f conftest*
|
|
4910
|
|
4911 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
|
|
4912 echo "$ac_t""yes" 1>&6
|
|
4913 :
|
|
4914 else
|
|
4915 echo "$ac_t""no" 1>&6
|
149
|
4916
|
207
|
4917 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
1692
|
4918 echo "configure:4919: checking for sin in -lm" >&5
|
207
|
4919 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
149
|
4920
|
|
4921 xe_check_libs=" -lm "
|
|
4922 cat > conftest.$ac_ext <<EOF
|
1692
|
4923 #line 4924 "configure"
|
149
|
4924 #include "confdefs.h"
|
|
4925 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4926 /* We use char because int might match the return type of a gcc2
|
|
4927 builtin and then its argument prototype would still apply. */
|
207
|
4928 char sin();
|
149
|
4929
|
|
4930 int main() {
|
207
|
4931 sin()
|
149
|
4932 ; return 0; }
|
|
4933 EOF
|
1692
|
4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
4935 rm -rf conftest*
|
|
4936 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4937 else
|
|
4938 echo "configure: failed program was:" >&5
|
|
4939 cat conftest.$ac_ext >&5
|
|
4940 rm -rf conftest*
|
|
4941 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4942 fi
|
|
4943 rm -f conftest*
|
|
4944 xe_check_libs=""
|
|
4945
|
151
|
4946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
4947 echo "$ac_t""yes" 1>&6
|
398
|
4948 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
|
149
|
4949 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
4950 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4951 Defining $ac_tr_lib
|
|
4952 EOF
|
|
4953 cat >> confdefs.h <<EOF
|
|
4954 #define $ac_tr_lib 1
|
|
4955 EOF
|
|
4956 }
|
|
4957
|
151
|
4958 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
|
|
4959
|
|
4960 else
|
|
4961 echo "$ac_t""no" 1>&6
|
|
4962 fi
|
|
4963
|
|
4964
|
398
|
4965 fi
|
|
4966
|
151
|
4967
|
1123
|
4968 cat > conftest.$ac_ext <<EOF
|
1692
|
4969 #line 4970 "configure"
|
243
|
4970 #include "confdefs.h"
|
|
4971 #include <math.h>
|
|
4972 int main() {
|
|
4973 return atanh(1.0) + asinh(1.0) + acosh(1.0);
|
|
4974 ; return 0; }
|
|
4975 EOF
|
1692
|
4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
243
|
4977 rm -rf conftest*
|
|
4978 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4979 Defining HAVE_INVERSE_HYPERBOLIC
|
|
4980 EOF
|
|
4981 cat >> confdefs.h <<\EOF
|
|
4982 #define HAVE_INVERSE_HYPERBOLIC 1
|
|
4983 EOF
|
|
4984 }
|
|
4985
|
|
4986 else
|
|
4987 echo "configure: failed program was:" >&5
|
|
4988 cat conftest.$ac_ext >&5
|
|
4989 fi
|
|
4990 rm -f conftest*
|
|
4991
|
567
|
4992 for ac_func in mkstemp
|
438
|
4993 do
|
|
4994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
4995 echo "configure:4996: checking for $ac_func" >&5
|
|
4996
|
|
4997 cat > conftest.$ac_ext <<EOF
|
|
4998 #line 4999 "configure"
|
438
|
4999 #include "confdefs.h"
|
|
5000 /* System header to define __stub macros and hopefully few prototypes,
|
|
5001 which can conflict with char $ac_func(); below. */
|
|
5002 #include <assert.h>
|
|
5003 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5004 /* We use char because int might match the return type of a gcc2
|
|
5005 builtin and then its argument prototype would still apply. */
|
|
5006 char $ac_func();
|
|
5007
|
|
5008 int main() {
|
|
5009
|
|
5010 /* The GNU C library defines this for functions which it implements
|
|
5011 to always fail with ENOSYS. Some functions are actually named
|
|
5012 something starting with __ and the normal name is an alias. */
|
|
5013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5014 choke me
|
|
5015 #else
|
|
5016 $ac_func();
|
|
5017 #endif
|
|
5018
|
|
5019 ; return 0; }
|
|
5020 EOF
|
1692
|
5021 if { (eval echo configure:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
567
|
5022 rm -rf conftest*
|
|
5023 eval "ac_cv_func_$ac_func=yes"
|
|
5024 else
|
|
5025 echo "configure: failed program was:" >&5
|
|
5026 cat conftest.$ac_ext >&5
|
|
5027 rm -rf conftest*
|
|
5028 eval "ac_cv_func_$ac_func=no"
|
|
5029 fi
|
|
5030 rm -f conftest*
|
|
5031
|
|
5032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5033 echo "$ac_t""yes" 1>&6
|
|
5034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5035 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5036 Defining $ac_tr_func
|
|
5037 EOF
|
|
5038 cat >> confdefs.h <<EOF
|
|
5039 #define $ac_tr_func 1
|
|
5040 EOF
|
|
5041 }
|
|
5042
|
|
5043 else
|
|
5044 echo "$ac_t""no" 1>&6
|
|
5045 fi
|
|
5046 done
|
|
5047
|
|
5048
|
|
5049 echo "checking type of mail spool file locking" 1>&6
|
1692
|
5050 echo "configure:5051: checking type of mail spool file locking" >&5
|
567
|
5051 for ac_func in lockf flock
|
|
5052 do
|
|
5053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
5054 echo "configure:5055: checking for $ac_func" >&5
|
|
5055
|
|
5056 cat > conftest.$ac_ext <<EOF
|
|
5057 #line 5058 "configure"
|
567
|
5058 #include "confdefs.h"
|
|
5059 /* System header to define __stub macros and hopefully few prototypes,
|
|
5060 which can conflict with char $ac_func(); below. */
|
|
5061 #include <assert.h>
|
|
5062 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5063 /* We use char because int might match the return type of a gcc2
|
|
5064 builtin and then its argument prototype would still apply. */
|
|
5065 char $ac_func();
|
|
5066
|
|
5067 int main() {
|
|
5068
|
|
5069 /* The GNU C library defines this for functions which it implements
|
|
5070 to always fail with ENOSYS. Some functions are actually named
|
|
5071 something starting with __ and the normal name is an alias. */
|
|
5072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5073 choke me
|
|
5074 #else
|
|
5075 $ac_func();
|
|
5076 #endif
|
|
5077
|
|
5078 ; return 0; }
|
|
5079 EOF
|
1692
|
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
438
|
5081 rm -rf conftest*
|
|
5082 eval "ac_cv_func_$ac_func=yes"
|
|
5083 else
|
|
5084 echo "configure: failed program was:" >&5
|
|
5085 cat conftest.$ac_ext >&5
|
|
5086 rm -rf conftest*
|
|
5087 eval "ac_cv_func_$ac_func=no"
|
|
5088 fi
|
|
5089 rm -f conftest*
|
|
5090
|
|
5091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5092 echo "$ac_t""yes" 1>&6
|
|
5093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5094 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5095 Defining $ac_tr_func
|
|
5096 EOF
|
|
5097 cat >> confdefs.h <<EOF
|
|
5098 #define $ac_tr_func 1
|
|
5099 EOF
|
|
5100 }
|
|
5101
|
|
5102 else
|
|
5103 echo "$ac_t""no" 1>&6
|
|
5104 fi
|
|
5105 done
|
|
5106
|
149
|
5107 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
|
|
5108 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
|
438
|
5109 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
|
442
|
5110 if test -z "$mail_locking"; then
|
|
5111 case "$opsys" in cygwin* | mingw*)
|
|
5112 mail_locking=pop ;;
|
|
5113 esac
|
|
5114 fi
|
|
5115
|
149
|
5116 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
438
|
5117 Defining MAIL_LOCK_LOCKF
|
|
5118 EOF
|
|
5119 cat >> confdefs.h <<\EOF
|
|
5120 #define MAIL_LOCK_LOCKF 1
|
149
|
5121 EOF
|
|
5122 }
|
|
5123
|
|
5124 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
438
|
5125 Defining MAIL_LOCK_FLOCK
|
|
5126 EOF
|
|
5127 cat >> confdefs.h <<\EOF
|
|
5128 #define MAIL_LOCK_FLOCK 1
|
|
5129 EOF
|
|
5130 }
|
|
5131
|
|
5132 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5133 Defining MAIL_LOCK_LOCKING
|
|
5134 EOF
|
|
5135 cat >> confdefs.h <<\EOF
|
|
5136 #define MAIL_LOCK_LOCKING 1
|
|
5137 EOF
|
|
5138 }
|
|
5139
|
442
|
5140 elif test "$mail_locking" = "pop"; then
|
|
5141 with_pop=yes
|
|
5142 mail_locking=
|
438
|
5143 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5144 Defining MAIL_LOCK_DOT
|
|
5145 EOF
|
|
5146 cat >> confdefs.h <<\EOF
|
|
5147 #define MAIL_LOCK_DOT 1
|
|
5148 EOF
|
|
5149 }
|
|
5150
|
|
5151 fi
|
|
5152 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
|
|
5153 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
|
|
5154 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
|
|
5155 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
|
|
5156 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
|
|
5157 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
|
151
|
5158
|
278
|
5159 case "$opsys" in decosf*)
|
|
5160
|
151
|
5161 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
|
1692
|
5162 echo "configure:5163: checking for cma_open in -lpthreads" >&5
|
151
|
5163 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
|
|
5164
|
|
5165 xe_check_libs=" -lpthreads "
|
|
5166 cat > conftest.$ac_ext <<EOF
|
1692
|
5167 #line 5168 "configure"
|
151
|
5168 #include "confdefs.h"
|
|
5169 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5170 /* We use char because int might match the return type of a gcc2
|
|
5171 builtin and then its argument prototype would still apply. */
|
|
5172 char cma_open();
|
|
5173
|
|
5174 int main() {
|
|
5175 cma_open()
|
|
5176 ; return 0; }
|
|
5177 EOF
|
1692
|
5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
5179 rm -rf conftest*
|
|
5180 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5181 else
|
|
5182 echo "configure: failed program was:" >&5
|
|
5183 cat conftest.$ac_ext >&5
|
|
5184 rm -rf conftest*
|
|
5185 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5186 fi
|
|
5187 rm -f conftest*
|
|
5188 xe_check_libs=""
|
|
5189
|
|
5190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5191 echo "$ac_t""yes" 1>&6
|
|
5192 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
5193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
5194 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5195 Defining $ac_tr_lib
|
|
5196 EOF
|
|
5197 cat >> confdefs.h <<EOF
|
|
5198 #define $ac_tr_lib 1
|
|
5199 EOF
|
|
5200 }
|
|
5201
|
|
5202 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
|
|
5203
|
|
5204 else
|
|
5205 echo "$ac_t""no" 1>&6
|
|
5206 fi
|
|
5207
|
|
5208
|
278
|
5209 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
|
|
5210 c_switch_site="$c_switch_site -threads" ;;
|
|
5211 esac
|
151
|
5212
|
708
|
5213
|
151
|
5214 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
|
1692
|
5215 echo "configure:5216: checking whether the -xildoff compiler flag is required" >&5
|
151
|
5216 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
5217 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
|
|
5218 then echo "$ac_t""no" 1>&6;
|
|
5219 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
|
|
5220 fi
|
|
5221 else echo "$ac_t""no" 1>&6
|
|
5222 fi
|
|
5223
|
442
|
5224 if test "$opsys" = "sol2"; then
|
1692
|
5225 if test "$os_release" -ge 506; then
|
442
|
5226 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
|
1692
|
5227 echo "configure:5228: checking for \"-z ignore\" linker flag" >&5
|
442
|
5228 case "`ld -h 2>&1`" in
|
|
5229 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
|
|
5230 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
|
|
5231 *) echo "$ac_t""no" 1>&6 ;;
|
|
5232 esac
|
|
5233 fi
|
163
|
5234 fi
|
155
|
5235
|
149
|
5236
|
|
5237 echo "checking "for specified window system"" 1>&6
|
1692
|
5238 echo "configure:5239: checking "for specified window system"" >&5
|
462
|
5239
|
|
5240
|
|
5241 GNOME_CONFIG=no
|
|
5242 GTK_CONFIG=no
|
|
5243
|
|
5244 if test "$with_gnome" != "no"; then
|
|
5245 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
|
1692
|
5246 echo "configure:5247: checking for GNOME configuration script" >&5
|
462
|
5247 for possible in gnome-config
|
|
5248 do
|
|
5249 possible_version=`${possible} --version 2> /dev/null`
|
|
5250 if test "x${possible_version}" != "x"; then
|
|
5251 GNOME_CONFIG="${possible}"
|
|
5252 with_gnome=yes
|
|
5253 with_gtk=yes
|
|
5254 break
|
|
5255 fi
|
|
5256 done
|
|
5257 echo "$ac_t""${GNOME_CONFIG}" 1>&6
|
|
5258 fi
|
|
5259
|
|
5260 if test "${GNOME_CONFIG}" != "no"; then
|
|
5261 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
|
|
5262 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
|
|
5263 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5264 Defining HAVE_GNOME
|
|
5265 EOF
|
|
5266 cat >> confdefs.h <<\EOF
|
|
5267 #define HAVE_GNOME 1
|
|
5268 EOF
|
|
5269 }
|
|
5270
|
|
5271 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
|
|
5272 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
|
|
5273 fi
|
|
5274
|
|
5275 if test "$with_gtk" != "no";then
|
|
5276 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
|
1692
|
5277 echo "configure:5278: checking for GTK configuration script" >&5
|
462
|
5278 for possible in gtk12-config gtk14-config gtk-config
|
|
5279 do
|
|
5280 possible_version=`${possible} --version 2> /dev/null`
|
|
5281 if test "x${possible_version}" != "x"; then
|
|
5282 GTK_CONFIG="${possible}"
|
527
|
5283 case "${possible_version}" in
|
|
5284 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
|
|
5285 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
|
|
5286 1.2.*)
|
|
5287 with_gtk=yes
|
|
5288 break
|
|
5289 ;;
|
|
5290 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
|
|
5291 esac
|
462
|
5292 fi
|
|
5293 done
|
|
5294 echo "$ac_t""${GTK_CONFIG}" 1>&6
|
|
5295 fi
|
|
5296
|
|
5297 if test "${GTK_CONFIG}" != "no"; then
|
|
5298 echo $ac_n "checking gtk version""... $ac_c" 1>&6
|
1692
|
5299 echo "configure:5300: checking gtk version" >&5
|
462
|
5300 GTK_VERSION=`${GTK_CONFIG} --version`
|
|
5301 echo "$ac_t""${GTK_VERSION}" 1>&6
|
|
5302
|
|
5303 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
|
1692
|
5304 echo "configure:5305: checking gtk libs" >&5
|
462
|
5305 GTK_LIBS=`${GTK_CONFIG} --libs`
|
|
5306 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
|
|
5307 echo "$ac_t""${GTK_LIBS}" 1>&6
|
|
5308
|
|
5309 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
|
1692
|
5310 echo "configure:5311: checking gtk cflags" >&5
|
462
|
5311 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
|
720
|
5312 if test "$GCC" = "yes"; then
|
|
5313 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
|
|
5314 fi
|
462
|
5315 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
|
|
5316 echo "$ac_t""${GTK_CFLAGS}" 1>&6
|
|
5317
|
|
5318
|
|
5319 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
|
1692
|
5320 echo "configure:5321: checking for main in -lgdk_imlib" >&5
|
462
|
5321 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
|
|
5322
|
|
5323 xe_check_libs=" -lgdk_imlib "
|
|
5324 cat > conftest.$ac_ext <<EOF
|
1692
|
5325 #line 5326 "configure"
|
462
|
5326 #include "confdefs.h"
|
|
5327
|
|
5328 int main() {
|
|
5329 main()
|
|
5330 ; return 0; }
|
|
5331 EOF
|
1692
|
5332 if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5333 rm -rf conftest*
|
|
5334 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5335 else
|
|
5336 echo "configure: failed program was:" >&5
|
|
5337 cat conftest.$ac_ext >&5
|
|
5338 rm -rf conftest*
|
|
5339 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5340 fi
|
|
5341 rm -f conftest*
|
|
5342 xe_check_libs=""
|
|
5343
|
|
5344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5345 echo "$ac_t""yes" 1>&6
|
|
5346 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
|
|
5347 else
|
|
5348 echo "$ac_t""no" 1>&6
|
|
5349 fi
|
|
5350
|
|
5351
|
|
5352
|
|
5353 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
|
1692
|
5354 echo "configure:5355: checking for Imlib_init in -lImlib" >&5
|
462
|
5355 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
|
|
5356
|
|
5357 xe_check_libs=" -lImlib "
|
|
5358 cat > conftest.$ac_ext <<EOF
|
1692
|
5359 #line 5360 "configure"
|
462
|
5360 #include "confdefs.h"
|
|
5361 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5362 /* We use char because int might match the return type of a gcc2
|
|
5363 builtin and then its argument prototype would still apply. */
|
|
5364 char Imlib_init();
|
|
5365
|
|
5366 int main() {
|
|
5367 Imlib_init()
|
|
5368 ; return 0; }
|
|
5369 EOF
|
1692
|
5370 if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5371 rm -rf conftest*
|
|
5372 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5373 else
|
|
5374 echo "configure: failed program was:" >&5
|
|
5375 cat conftest.$ac_ext >&5
|
|
5376 rm -rf conftest*
|
|
5377 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5378 fi
|
|
5379 rm -f conftest*
|
|
5380 xe_check_libs=""
|
|
5381
|
|
5382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5383 echo "$ac_t""yes" 1>&6
|
|
5384 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
|
|
5385 else
|
|
5386 echo "$ac_t""no" 1>&6
|
|
5387 fi
|
|
5388
|
|
5389
|
|
5390 for ac_func in gdk_imlib_init
|
|
5391 do
|
|
5392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
5393 echo "configure:5394: checking for $ac_func" >&5
|
|
5394
|
|
5395 cat > conftest.$ac_ext <<EOF
|
|
5396 #line 5397 "configure"
|
462
|
5397 #include "confdefs.h"
|
|
5398 /* System header to define __stub macros and hopefully few prototypes,
|
|
5399 which can conflict with char $ac_func(); below. */
|
|
5400 #include <assert.h>
|
|
5401 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5402 /* We use char because int might match the return type of a gcc2
|
|
5403 builtin and then its argument prototype would still apply. */
|
|
5404 char $ac_func();
|
|
5405
|
|
5406 int main() {
|
|
5407
|
|
5408 /* The GNU C library defines this for functions which it implements
|
|
5409 to always fail with ENOSYS. Some functions are actually named
|
|
5410 something starting with __ and the normal name is an alias. */
|
|
5411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5412 choke me
|
|
5413 #else
|
|
5414 $ac_func();
|
|
5415 #endif
|
|
5416
|
|
5417 ; return 0; }
|
|
5418 EOF
|
1692
|
5419 if { (eval echo configure:5420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5420 rm -rf conftest*
|
|
5421 eval "ac_cv_func_$ac_func=yes"
|
|
5422 else
|
|
5423 echo "configure: failed program was:" >&5
|
|
5424 cat conftest.$ac_ext >&5
|
|
5425 rm -rf conftest*
|
|
5426 eval "ac_cv_func_$ac_func=no"
|
|
5427 fi
|
|
5428 rm -f conftest*
|
|
5429
|
|
5430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5431 echo "$ac_t""yes" 1>&6
|
|
5432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5433 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5434 Defining $ac_tr_func
|
|
5435 EOF
|
|
5436 cat >> confdefs.h <<EOF
|
|
5437 #define $ac_tr_func 1
|
|
5438 EOF
|
|
5439 }
|
|
5440
|
|
5441 else
|
|
5442 echo "$ac_t""no" 1>&6
|
|
5443 fi
|
|
5444 done
|
|
5445
|
|
5446
|
|
5447 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5448 Defining HAVE_XPM
|
|
5449 EOF
|
|
5450 cat >> confdefs.h <<\EOF
|
|
5451 #define HAVE_XPM 1
|
|
5452 EOF
|
|
5453 }
|
|
5454
|
|
5455 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5456 Defining HAVE_GTK
|
|
5457 EOF
|
|
5458 cat >> confdefs.h <<\EOF
|
|
5459 #define HAVE_GTK 1
|
|
5460 EOF
|
|
5461 }
|
|
5462
|
|
5463
|
|
5464
|
|
5465 window_system=gtk
|
|
5466 with_gtk=yes
|
|
5467 with_x11=no
|
|
5468
|
|
5469 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
|
|
5470 test "${with_toolbars}" != no && with_toolbars=gtk
|
|
5471 test "${with_menubars}" != "no" && with_menubars=gtk
|
|
5472 test "${with_dialogs}" != "no" && with_dialogs=gtk
|
|
5473 test "${with_widgets}" != "no" && with_widgets=gtk
|
|
5474
|
|
5475 OLD_CFLAGS="${CFLAGS}"
|
724
|
5476 OLD_CPPFLAGS="${CPPFLAGS}"
|
462
|
5477 OLD_LDFLAGS="${LDFLAGS}"
|
|
5478 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
|
724
|
5479 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
|
462
|
5480 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
|
|
5481 for ac_hdr in glade/glade.h glade.h
|
|
5482 do
|
|
5483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
5484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1692
|
5485 echo "configure:5486: checking for $ac_hdr" >&5
|
|
5486
|
|
5487 cat > conftest.$ac_ext <<EOF
|
|
5488 #line 5489 "configure"
|
462
|
5489 #include "confdefs.h"
|
|
5490 #include <$ac_hdr>
|
|
5491 EOF
|
|
5492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
5493 { (eval echo configure:5494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
462
|
5494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
5495 if test -z "$ac_err"; then
|
|
5496 rm -rf conftest*
|
|
5497 eval "ac_cv_header_$ac_safe=yes"
|
|
5498 else
|
|
5499 echo "$ac_err" >&5
|
|
5500 echo "configure: failed program was:" >&5
|
|
5501 cat conftest.$ac_ext >&5
|
|
5502 rm -rf conftest*
|
|
5503 eval "ac_cv_header_$ac_safe=no"
|
|
5504 fi
|
|
5505 rm -f conftest*
|
|
5506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5507 echo "$ac_t""yes" 1>&6
|
|
5508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
5509 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5510 Defining $ac_tr_hdr
|
|
5511 EOF
|
|
5512 cat >> confdefs.h <<EOF
|
|
5513 #define $ac_tr_hdr 1
|
|
5514 EOF
|
|
5515 }
|
|
5516
|
|
5517 else
|
|
5518 echo "$ac_t""no" 1>&6
|
|
5519 fi
|
|
5520 done
|
|
5521
|
|
5522
|
|
5523 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
|
1692
|
5524 echo "configure:5525: checking for main in -lxml" >&5
|
462
|
5525 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
|
|
5526
|
|
5527 xe_check_libs=" -lxml "
|
|
5528 cat > conftest.$ac_ext <<EOF
|
1692
|
5529 #line 5530 "configure"
|
462
|
5530 #include "confdefs.h"
|
|
5531
|
|
5532 int main() {
|
|
5533 main()
|
|
5534 ; return 0; }
|
|
5535 EOF
|
1692
|
5536 if { (eval echo configure:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5537 rm -rf conftest*
|
|
5538 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5539 else
|
|
5540 echo "configure: failed program was:" >&5
|
|
5541 cat conftest.$ac_ext >&5
|
|
5542 rm -rf conftest*
|
|
5543 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5544 fi
|
|
5545 rm -f conftest*
|
|
5546 xe_check_libs=""
|
|
5547
|
|
5548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5549 echo "$ac_t""yes" 1>&6
|
|
5550 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
|
|
5551 else
|
|
5552 echo "$ac_t""no" 1>&6
|
|
5553 fi
|
|
5554
|
|
5555
|
|
5556
|
|
5557 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
|
1692
|
5558 echo "configure:5559: checking for main in -lglade" >&5
|
462
|
5559 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
|
|
5560
|
|
5561 xe_check_libs=" -lglade "
|
|
5562 cat > conftest.$ac_ext <<EOF
|
1692
|
5563 #line 5564 "configure"
|
462
|
5564 #include "confdefs.h"
|
|
5565
|
|
5566 int main() {
|
|
5567 main()
|
|
5568 ; return 0; }
|
|
5569 EOF
|
1692
|
5570 if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5571 rm -rf conftest*
|
|
5572 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5573 else
|
|
5574 echo "configure: failed program was:" >&5
|
|
5575 cat conftest.$ac_ext >&5
|
|
5576 rm -rf conftest*
|
|
5577 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5578 fi
|
|
5579 rm -f conftest*
|
|
5580 xe_check_libs=""
|
|
5581
|
|
5582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5583 echo "$ac_t""yes" 1>&6
|
|
5584 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
|
|
5585 else
|
|
5586 echo "$ac_t""no" 1>&6
|
|
5587 fi
|
|
5588
|
|
5589
|
|
5590
|
|
5591 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
|
1692
|
5592 echo "configure:5593: checking for main in -lglade-gnome" >&5
|
462
|
5593 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
|
|
5594
|
|
5595 xe_check_libs=" -lglade-gnome "
|
|
5596 cat > conftest.$ac_ext <<EOF
|
1692
|
5597 #line 5598 "configure"
|
462
|
5598 #include "confdefs.h"
|
|
5599
|
|
5600 int main() {
|
|
5601 main()
|
|
5602 ; return 0; }
|
|
5603 EOF
|
1692
|
5604 if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5605 rm -rf conftest*
|
|
5606 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5607 else
|
|
5608 echo "configure: failed program was:" >&5
|
|
5609 cat conftest.$ac_ext >&5
|
|
5610 rm -rf conftest*
|
|
5611 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5612 fi
|
|
5613 rm -f conftest*
|
|
5614 xe_check_libs=""
|
|
5615
|
|
5616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5617 echo "$ac_t""yes" 1>&6
|
|
5618 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
|
|
5619 else
|
|
5620 echo "$ac_t""no" 1>&6
|
|
5621 fi
|
|
5622
|
|
5623
|
|
5624 cat > conftest.$ac_ext <<EOF
|
1692
|
5625 #line 5626 "configure"
|
462
|
5626 #include "confdefs.h"
|
|
5627 #include <glade/glade-xml.h>
|
|
5628 EOF
|
|
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5630 egrep "char \*txtdomain;" >/dev/null 2>&1; then
|
|
5631 rm -rf conftest*
|
|
5632 echo "$ac_t""yes" 1>&6
|
|
5633 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5634 Defining LIBGLADE_XML_TXTDOMAIN = 1
|
|
5635 EOF
|
|
5636 cat >> confdefs.h <<\EOF
|
|
5637 #define LIBGLADE_XML_TXTDOMAIN 1
|
|
5638 EOF
|
|
5639 }
|
|
5640
|
|
5641 else
|
|
5642 rm -rf conftest*
|
|
5643 echo "$ac_t""no" 1>&6
|
|
5644 fi
|
|
5645 rm -f conftest*
|
|
5646
|
|
5647 CFLAGS="${OLD_CFLAGS}"
|
724
|
5648 CPPFLAGS="${OLD_CPPFLAGS}"
|
462
|
5649 LDFLAGS="${OLD_LDFLAGS}"
|
|
5650 fi
|
|
5651
|
149
|
5652
|
187
|
5653 if test "$with_x11" != "no"; then
|
|
5654 test "$x_includes $x_libraries" != "NONE NONE" && \
|
|
5655 window_system=x11 with_x11=yes
|
|
5656
|
272
|
5657
|
|
5658 if test "$x_includes $x_libraries" = "NONE NONE" \
|
|
5659 -a -n "$OPENWINHOME" \
|
|
5660 -a "$OPENWINHOME" != "/usr/openwin" \
|
|
5661 -a -d "$OPENWINHOME"; then
|
187
|
5662 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
|
|
5663 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
|
|
5664 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
|
272
|
5665 fi
|
|
5666
|
|
5667 if test "$x_includes" = "NONE"; then
|
|
5668 for dir in "/usr/X11" "/usr/X11R6"; do
|
|
5669 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
|
|
5670 done
|
|
5671 fi
|
|
5672
|
|
5673 if test "$x_libraries" = "NONE"; then
|
|
5674 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
|
|
5675 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
|
|
5676 done
|
149
|
5677 fi
|
187
|
5678
|
149
|
5679 # If we find X, set shell vars x_includes and x_libraries to the
|
|
5680 # paths, otherwise set no_x=yes.
|
|
5681 # Uses ac_ vars as temps to allow command line to override cache and checks.
|
|
5682 # --without-x overrides everything else, but does not touch the cache.
|
|
5683 echo $ac_n "checking for X""... $ac_c" 1>&6
|
1692
|
5684 echo "configure:5685: checking for X" >&5
|
149
|
5685
|
|
5686 # Check whether --with-x or --without-x was given.
|
|
5687 if test "${with_x+set}" = set; then
|
|
5688 withval="$with_x"
|
|
5689 :
|
|
5690 fi
|
|
5691
|
|
5692 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
5693 if test "x$with_x" = xno; then
|
|
5694 # The user explicitly disabled X.
|
|
5695 have_x=disabled
|
|
5696 else
|
|
5697 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|
5698 # Both variables are already set.
|
|
5699 have_x=yes
|
|
5700 else
|
|
5701
|
|
5702 # One or both of the vars are not set, and there is no cached value.
|
|
5703 ac_x_includes=NO ac_x_libraries=NO
|
0
|
5704 rm -fr conftestdir
|
|
5705 if mkdir conftestdir; then
|
|
5706 cd conftestdir
|
|
5707 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
5708 cat > Imakefile <<'EOF'
|
|
5709 acfindx:
|
|
5710 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
5711 EOF
|
|
5712 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
5713 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
149
|
5714 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
0
|
5715 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
149
|
5716 for ac_extension in a so sl; do
|
|
5717 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
|
5718 test -f $ac_im_libdir/libX11.$ac_extension; then
|
|
5719 ac_im_usrlibdir=$ac_im_libdir; break
|
|
5720 fi
|
|
5721 done
|
|
5722 # Screen out bogus values from the imake configuration. They are
|
|
5723 # bogus both because they are the default anyway, and because
|
|
5724 # using them would break gcc on systems where it needs fixed includes.
|
0
|
5725 case "$ac_im_incroot" in
|
|
5726 /usr/include) ;;
|
149
|
5727 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
0
|
5728 esac
|
|
5729 case "$ac_im_usrlibdir" in
|
|
5730 /usr/lib | /lib) ;;
|
149
|
5731 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
0
|
5732 esac
|
|
5733 fi
|
|
5734 cd ..
|
|
5735 rm -fr conftestdir
|
|
5736 fi
|
|
5737
|
149
|
5738 if test "$ac_x_includes" = NO; then
|
|
5739 # Guess where to find include files, by looking for this one X11 .h file.
|
|
5740 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|
5741
|
|
5742 # First, try using that file with no special directory specified.
|
|
5743 cat > conftest.$ac_ext <<EOF
|
1692
|
5744 #line 5745 "configure"
|
0
|
5745 #include "confdefs.h"
|
|
5746 #include <$x_direct_test_include>
|
|
5747 EOF
|
149
|
5748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
5749 { (eval echo configure:5750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
5750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
5751 if test -z "$ac_err"; then
|
|
5752 rm -rf conftest*
|
149
|
5753 # We can compile using X headers with no special include directory.
|
|
5754 ac_x_includes=
|
|
5755 else
|
|
5756 echo "$ac_err" >&5
|
|
5757 echo "configure: failed program was:" >&5
|
|
5758 cat conftest.$ac_ext >&5
|
|
5759 rm -rf conftest*
|
|
5760 # Look for the header file in a standard set of common directories.
|
|
5761 # Check X11 before X11Rn because it is often a symlink to the current release.
|
0
|
5762 for ac_dir in \
|
149
|
5763 /usr/X11/include \
|
0
|
5764 /usr/X11R6/include \
|
|
5765 /usr/X11R5/include \
|
|
5766 /usr/X11R4/include \
|
|
5767 \
|
149
|
5768 /usr/include/X11 \
|
0
|
5769 /usr/include/X11R6 \
|
|
5770 /usr/include/X11R5 \
|
|
5771 /usr/include/X11R4 \
|
|
5772 \
|
149
|
5773 /usr/local/X11/include \
|
0
|
5774 /usr/local/X11R6/include \
|
|
5775 /usr/local/X11R5/include \
|
|
5776 /usr/local/X11R4/include \
|
|
5777 \
|
149
|
5778 /usr/local/include/X11 \
|
0
|
5779 /usr/local/include/X11R6 \
|
|
5780 /usr/local/include/X11R5 \
|
|
5781 /usr/local/include/X11R4 \
|
|
5782 \
|
|
5783 /usr/X386/include \
|
|
5784 /usr/x386/include \
|
|
5785 /usr/XFree86/include/X11 \
|
|
5786 \
|
|
5787 /usr/include \
|
|
5788 /usr/local/include \
|
|
5789 /usr/unsupported/include \
|
|
5790 /usr/athena/include \
|
|
5791 /usr/local/x11r5/include \
|
|
5792 /usr/lpp/Xamples/include \
|
|
5793 \
|
|
5794 /usr/openwin/include \
|
|
5795 /usr/openwin/share/include \
|
|
5796 ; \
|
|
5797 do
|
|
5798 if test -r "$ac_dir/$x_direct_test_include"; then
|
149
|
5799 ac_x_includes=$ac_dir
|
0
|
5800 break
|
|
5801 fi
|
|
5802 done
|
|
5803 fi
|
|
5804 rm -f conftest*
|
149
|
5805 fi # $ac_x_includes = NO
|
|
5806
|
|
5807 if test "$ac_x_libraries" = NO; then
|
|
5808 # Check for the libraries.
|
|
5809
|
|
5810 test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|
5811 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|
5812
|
|
5813 # See if we find them without any special options.
|
|
5814 # Don't add to $LIBS permanently.
|
|
5815 ac_save_LIBS="$LIBS"
|
|
5816 LIBS="-l$x_direct_test_library $LIBS"
|
|
5817 cat > conftest.$ac_ext <<EOF
|
1692
|
5818 #line 5819 "configure"
|
149
|
5819 #include "confdefs.h"
|
|
5820
|
|
5821 int main() {
|
|
5822 ${x_direct_test_function}()
|
|
5823 ; return 0; }
|
|
5824 EOF
|
1692
|
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5826 rm -rf conftest*
|
|
5827 LIBS="$ac_save_LIBS"
|
|
5828 # We can link X programs with no special library path.
|
|
5829 ac_x_libraries=
|
|
5830 else
|
|
5831 echo "configure: failed program was:" >&5
|
|
5832 cat conftest.$ac_ext >&5
|
|
5833 rm -rf conftest*
|
|
5834 LIBS="$ac_save_LIBS"
|
|
5835 # First see if replacing the include by lib works.
|
|
5836 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
5837 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|
5838 /usr/X11/lib \
|
0
|
5839 /usr/X11R6/lib \
|
|
5840 /usr/X11R5/lib \
|
|
5841 /usr/X11R4/lib \
|
|
5842 \
|
149
|
5843 /usr/lib/X11 \
|
0
|
5844 /usr/lib/X11R6 \
|
|
5845 /usr/lib/X11R5 \
|
|
5846 /usr/lib/X11R4 \
|
|
5847 \
|
149
|
5848 /usr/local/X11/lib \
|
0
|
5849 /usr/local/X11R6/lib \
|
|
5850 /usr/local/X11R5/lib \
|
|
5851 /usr/local/X11R4/lib \
|
|
5852 \
|
149
|
5853 /usr/local/lib/X11 \
|
0
|
5854 /usr/local/lib/X11R6 \
|
|
5855 /usr/local/lib/X11R5 \
|
|
5856 /usr/local/lib/X11R4 \
|
|
5857 \
|
|
5858 /usr/X386/lib \
|
|
5859 /usr/x386/lib \
|
|
5860 /usr/XFree86/lib/X11 \
|
|
5861 \
|
|
5862 /usr/lib \
|
|
5863 /usr/local/lib \
|
|
5864 /usr/unsupported/lib \
|
|
5865 /usr/athena/lib \
|
|
5866 /usr/local/x11r5/lib \
|
|
5867 /usr/lpp/Xamples/lib \
|
149
|
5868 /lib/usr/lib/X11 \
|
0
|
5869 \
|
|
5870 /usr/openwin/lib \
|
|
5871 /usr/openwin/share/lib \
|
|
5872 ; \
|
|
5873 do
|
|
5874 for ac_extension in a so sl; do
|
|
5875 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
149
|
5876 ac_x_libraries=$ac_dir
|
0
|
5877 break 2
|
|
5878 fi
|
|
5879 done
|
|
5880 done
|
|
5881 fi
|
149
|
5882 rm -f conftest*
|
|
5883 fi # $ac_x_libraries = NO
|
|
5884
|
|
5885 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|
5886 # Didn't find X anywhere. Cache the known absence of X.
|
|
5887 ac_cv_have_x="have_x=no"
|
|
5888 else
|
|
5889 # Record where we found X for the cache.
|
|
5890 ac_cv_have_x="have_x=yes \
|
|
5891 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|
5892 fi
|
|
5893 fi
|
|
5894 eval "$ac_cv_have_x"
|
|
5895 fi # $with_x != no
|
|
5896
|
|
5897 if test "$have_x" != yes; then
|
|
5898 echo "$ac_t""$have_x" 1>&6
|
|
5899 no_x=yes
|
|
5900 else
|
|
5901 # If each of the values was on the command line, it overrides each guess.
|
|
5902 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|
5903 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|
5904 # Update the cache value to reflect the command line values.
|
|
5905 ac_cv_have_x="have_x=yes \
|
|
5906 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|
5907 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|
5908 fi
|
|
5909
|
|
5910 if test "$no_x" = yes; then
|
|
5911 # Not all programs may use this symbol, but it does not hurt to define it.
|
|
5912 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5913 Defining X_DISPLAY_MISSING
|
|
5914 EOF
|
|
5915 cat >> confdefs.h <<\EOF
|
|
5916 #define X_DISPLAY_MISSING 1
|
|
5917 EOF
|
|
5918 }
|
|
5919
|
|
5920 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
|
5921 else
|
|
5922 if test -n "$x_includes"; then
|
|
5923 X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|
5924 fi
|
|
5925
|
|
5926 # It would also be nice to do this for all -L options, not just this one.
|
|
5927 if test -n "$x_libraries"; then
|
|
5928 X_LIBS="$X_LIBS -L$x_libraries"
|
|
5929 # For Solaris; some versions of Sun CC require a space after -R and
|
|
5930 # others require no space. Words are not sufficient . . . .
|
|
5931 case "`(uname -sr) 2>/dev/null`" in
|
|
5932 "SunOS 5"*)
|
|
5933 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
1692
|
5934 echo "configure:5935: checking whether -R must be followed by a space" >&5
|
149
|
5935 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
|
5936 cat > conftest.$ac_ext <<EOF
|
1692
|
5937 #line 5938 "configure"
|
|
5938 #include "confdefs.h"
|
|
5939
|
|
5940 int main() {
|
|
5941
|
|
5942 ; return 0; }
|
|
5943 EOF
|
|
5944 if { (eval echo configure:5945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5945 rm -rf conftest*
|
|
5946 ac_R_nospace=yes
|
|
5947 else
|
|
5948 echo "configure: failed program was:" >&5
|
|
5949 cat conftest.$ac_ext >&5
|
|
5950 rm -rf conftest*
|
|
5951 ac_R_nospace=no
|
|
5952 fi
|
|
5953 rm -f conftest*
|
|
5954 if test $ac_R_nospace = yes; then
|
|
5955 echo "$ac_t""no" 1>&6
|
|
5956 X_LIBS="$X_LIBS -R$x_libraries"
|
|
5957 else
|
|
5958 LIBS="$ac_xsave_LIBS -R $x_libraries"
|
|
5959 cat > conftest.$ac_ext <<EOF
|
1692
|
5960 #line 5961 "configure"
|
|
5961 #include "confdefs.h"
|
|
5962
|
|
5963 int main() {
|
|
5964
|
|
5965 ; return 0; }
|
|
5966 EOF
|
|
5967 if { (eval echo configure:5968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5968 rm -rf conftest*
|
|
5969 ac_R_space=yes
|
|
5970 else
|
|
5971 echo "configure: failed program was:" >&5
|
|
5972 cat conftest.$ac_ext >&5
|
|
5973 rm -rf conftest*
|
|
5974 ac_R_space=no
|
|
5975 fi
|
|
5976 rm -f conftest*
|
|
5977 if test $ac_R_space = yes; then
|
|
5978 echo "$ac_t""yes" 1>&6
|
|
5979 X_LIBS="$X_LIBS -R $x_libraries"
|
|
5980 else
|
|
5981 echo "$ac_t""neither works" 1>&6
|
|
5982 fi
|
|
5983 fi
|
|
5984 LIBS="$ac_xsave_LIBS"
|
|
5985 esac
|
|
5986 fi
|
|
5987
|
|
5988 # Check for system-dependent libraries X programs must link with.
|
|
5989 # Do this before checking for the system-independent R6 libraries
|
|
5990 # (-lICE), since we may need -lsocket or whatever for X linking.
|
|
5991
|
|
5992 if test "$ISC" = yes; then
|
|
5993 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
|
5994 else
|
|
5995 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
|
5996 # libraries were built with DECnet support. And karl@cs.umb.edu says
|
|
5997 # the Alpha needs dnet_stub (dnet does not exist).
|
151
|
5998 if test "$with_dnet" = "no" ; then
|
149
|
5999 ac_cv_lib_dnet_dnet_ntoa=no
|
|
6000 else
|
|
6001
|
|
6002 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
1692
|
6003 echo "configure:6004: checking for dnet_ntoa in -ldnet" >&5
|
149
|
6004 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
6005
|
|
6006 xe_check_libs=" -ldnet "
|
|
6007 cat > conftest.$ac_ext <<EOF
|
1692
|
6008 #line 6009 "configure"
|
149
|
6009 #include "confdefs.h"
|
|
6010 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6011 /* We use char because int might match the return type of a gcc2
|
|
6012 builtin and then its argument prototype would still apply. */
|
|
6013 char dnet_ntoa();
|
|
6014
|
|
6015 int main() {
|
|
6016 dnet_ntoa()
|
|
6017 ; return 0; }
|
|
6018 EOF
|
1692
|
6019 if { (eval echo configure:6020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6020 rm -rf conftest*
|
|
6021 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6022 else
|
|
6023 echo "configure: failed program was:" >&5
|
|
6024 cat conftest.$ac_ext >&5
|
|
6025 rm -rf conftest*
|
|
6026 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6027 fi
|
|
6028 rm -f conftest*
|
|
6029 xe_check_libs=""
|
|
6030
|
151
|
6031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6032 echo "$ac_t""yes" 1>&6
|
|
6033 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
|
6034 else
|
|
6035 echo "$ac_t""no" 1>&6
|
|
6036 fi
|
|
6037
|
|
6038 fi
|
|
6039
|
|
6040 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
|
6041
|
|
6042 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
1692
|
6043 echo "configure:6044: checking for dnet_ntoa in -ldnet_stub" >&5
|
149
|
6044 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
6045
|
|
6046 xe_check_libs=" -ldnet_stub "
|
|
6047 cat > conftest.$ac_ext <<EOF
|
1692
|
6048 #line 6049 "configure"
|
149
|
6049 #include "confdefs.h"
|
|
6050 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6051 /* We use char because int might match the return type of a gcc2
|
|
6052 builtin and then its argument prototype would still apply. */
|
|
6053 char dnet_ntoa();
|
|
6054
|
|
6055 int main() {
|
|
6056 dnet_ntoa()
|
|
6057 ; return 0; }
|
|
6058 EOF
|
1692
|
6059 if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6060 rm -rf conftest*
|
|
6061 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6062 else
|
|
6063 echo "configure: failed program was:" >&5
|
|
6064 cat conftest.$ac_ext >&5
|
|
6065 rm -rf conftest*
|
|
6066 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6067 fi
|
|
6068 rm -f conftest*
|
|
6069 xe_check_libs=""
|
|
6070
|
151
|
6071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6072 echo "$ac_t""yes" 1>&6
|
|
6073 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
|
6074 else
|
|
6075 echo "$ac_t""no" 1>&6
|
|
6076 fi
|
|
6077
|
|
6078
|
|
6079 fi
|
|
6080
|
|
6081 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|
6082 # to get the SysV transport functions.
|
|
6083 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|
6084 # needs -lnsl.
|
|
6085 # The nsl library prevents programs from opening the X display
|
|
6086 # on Irix 5.2, according to dickey@clark.net.
|
|
6087 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
1692
|
6088 echo "configure:6089: checking for gethostbyname" >&5
|
|
6089
|
|
6090 cat > conftest.$ac_ext <<EOF
|
|
6091 #line 6092 "configure"
|
149
|
6092 #include "confdefs.h"
|
|
6093 /* System header to define __stub macros and hopefully few prototypes,
|
|
6094 which can conflict with char gethostbyname(); below. */
|
|
6095 #include <assert.h>
|
|
6096 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6097 /* We use char because int might match the return type of a gcc2
|
|
6098 builtin and then its argument prototype would still apply. */
|
|
6099 char gethostbyname();
|
|
6100
|
|
6101 int main() {
|
|
6102
|
|
6103 /* The GNU C library defines this for functions which it implements
|
|
6104 to always fail with ENOSYS. Some functions are actually named
|
|
6105 something starting with __ and the normal name is an alias. */
|
|
6106 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|
6107 choke me
|
|
6108 #else
|
|
6109 gethostbyname();
|
|
6110 #endif
|
|
6111
|
|
6112 ; return 0; }
|
|
6113 EOF
|
1692
|
6114 if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6115 rm -rf conftest*
|
|
6116 eval "ac_cv_func_gethostbyname=yes"
|
|
6117 else
|
|
6118 echo "configure: failed program was:" >&5
|
|
6119 cat conftest.$ac_ext >&5
|
|
6120 rm -rf conftest*
|
|
6121 eval "ac_cv_func_gethostbyname=no"
|
|
6122 fi
|
|
6123 rm -f conftest*
|
|
6124
|
|
6125 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|
6126 echo "$ac_t""yes" 1>&6
|
|
6127 :
|
|
6128 else
|
|
6129 echo "$ac_t""no" 1>&6
|
|
6130 fi
|
|
6131
|
|
6132 if test $ac_cv_func_gethostbyname = no; then
|
|
6133
|
|
6134 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
1692
|
6135 echo "configure:6136: checking for gethostbyname in -lnsl" >&5
|
149
|
6136 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
6137
|
|
6138 xe_check_libs=" -lnsl "
|
|
6139 cat > conftest.$ac_ext <<EOF
|
1692
|
6140 #line 6141 "configure"
|
149
|
6141 #include "confdefs.h"
|
|
6142 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6143 /* We use char because int might match the return type of a gcc2
|
|
6144 builtin and then its argument prototype would still apply. */
|
|
6145 char gethostbyname();
|
|
6146
|
|
6147 int main() {
|
|
6148 gethostbyname()
|
|
6149 ; return 0; }
|
|
6150 EOF
|
1692
|
6151 if { (eval echo configure:6152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6152 rm -rf conftest*
|
|
6153 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6154 else
|
|
6155 echo "configure: failed program was:" >&5
|
|
6156 cat conftest.$ac_ext >&5
|
|
6157 rm -rf conftest*
|
|
6158 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6159 fi
|
|
6160 rm -f conftest*
|
|
6161 xe_check_libs=""
|
|
6162
|
151
|
6163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6164 echo "$ac_t""yes" 1>&6
|
|
6165 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
|
6166 else
|
|
6167 echo "$ac_t""no" 1>&6
|
|
6168 fi
|
|
6169
|
|
6170
|
|
6171 fi
|
|
6172
|
|
6173 # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|
6174 # socket/setsockopt and other routines are undefined under SCO ODT
|
|
6175 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|
6176 # on later versions), says simon@lia.di.epfl.ch: it contains
|
|
6177 # gethostby* variants that don't use the nameserver (or something).
|
|
6178 # -lsocket must be given before -lnsl if both are needed.
|
|
6179 # We assume that if connect needs -lnsl, so does gethostbyname.
|
|
6180 echo $ac_n "checking for connect""... $ac_c" 1>&6
|
1692
|
6181 echo "configure:6182: checking for connect" >&5
|
|
6182
|
|
6183 cat > conftest.$ac_ext <<EOF
|
|
6184 #line 6185 "configure"
|
149
|
6185 #include "confdefs.h"
|
|
6186 /* System header to define __stub macros and hopefully few prototypes,
|
|
6187 which can conflict with char connect(); below. */
|
|
6188 #include <assert.h>
|
|
6189 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6190 /* We use char because int might match the return type of a gcc2
|
|
6191 builtin and then its argument prototype would still apply. */
|
|
6192 char connect();
|
|
6193
|
|
6194 int main() {
|
|
6195
|
|
6196 /* The GNU C library defines this for functions which it implements
|
|
6197 to always fail with ENOSYS. Some functions are actually named
|
|
6198 something starting with __ and the normal name is an alias. */
|
|
6199 #if defined (__stub_connect) || defined (__stub___connect)
|
|
6200 choke me
|
|
6201 #else
|
|
6202 connect();
|
|
6203 #endif
|
|
6204
|
|
6205 ; return 0; }
|
|
6206 EOF
|
1692
|
6207 if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6208 rm -rf conftest*
|
|
6209 eval "ac_cv_func_connect=yes"
|
|
6210 else
|
|
6211 echo "configure: failed program was:" >&5
|
|
6212 cat conftest.$ac_ext >&5
|
|
6213 rm -rf conftest*
|
|
6214 eval "ac_cv_func_connect=no"
|
|
6215 fi
|
|
6216 rm -f conftest*
|
|
6217
|
|
6218 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|
6219 echo "$ac_t""yes" 1>&6
|
|
6220 :
|
|
6221 else
|
|
6222 echo "$ac_t""no" 1>&6
|
|
6223 fi
|
|
6224
|
|
6225 if test $ac_cv_func_connect = no; then
|
|
6226
|
|
6227 xe_msg_checking="for connect in -lsocket"
|
|
6228 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
6229 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1692
|
6230 echo "configure:6231: checking "$xe_msg_checking"" >&5
|
149
|
6231 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|
6232
|
|
6233 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
|
|
6234 cat > conftest.$ac_ext <<EOF
|
1692
|
6235 #line 6236 "configure"
|
149
|
6236 #include "confdefs.h"
|
|
6237 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6238 /* We use char because int might match the return type of a gcc2
|
|
6239 builtin and then its argument prototype would still apply. */
|
|
6240 char connect();
|
|
6241
|
|
6242 int main() {
|
|
6243 connect()
|
|
6244 ; return 0; }
|
|
6245 EOF
|
1692
|
6246 if { (eval echo configure:6247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6247 rm -rf conftest*
|
|
6248 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6249 else
|
|
6250 echo "configure: failed program was:" >&5
|
|
6251 cat conftest.$ac_ext >&5
|
|
6252 rm -rf conftest*
|
|
6253 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6254 fi
|
|
6255 rm -f conftest*
|
|
6256 xe_check_libs=""
|
|
6257
|
151
|
6258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6259 echo "$ac_t""yes" 1>&6
|
|
6260 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
|
6261 else
|
|
6262 echo "$ac_t""no" 1>&6
|
|
6263 fi
|
|
6264
|
|
6265
|
|
6266 fi
|
|
6267
|
|
6268 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
|
6269 echo $ac_n "checking for remove""... $ac_c" 1>&6
|
1692
|
6270 echo "configure:6271: checking for remove" >&5
|
|
6271
|
|
6272 cat > conftest.$ac_ext <<EOF
|
|
6273 #line 6274 "configure"
|
149
|
6274 #include "confdefs.h"
|
|
6275 /* System header to define __stub macros and hopefully few prototypes,
|
|
6276 which can conflict with char remove(); below. */
|
|
6277 #include <assert.h>
|
|
6278 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6279 /* We use char because int might match the return type of a gcc2
|
|
6280 builtin and then its argument prototype would still apply. */
|
|
6281 char remove();
|
|
6282
|
|
6283 int main() {
|
|
6284
|
|
6285 /* The GNU C library defines this for functions which it implements
|
|
6286 to always fail with ENOSYS. Some functions are actually named
|
|
6287 something starting with __ and the normal name is an alias. */
|
|
6288 #if defined (__stub_remove) || defined (__stub___remove)
|
|
6289 choke me
|
|
6290 #else
|
|
6291 remove();
|
|
6292 #endif
|
|
6293
|
|
6294 ; return 0; }
|
|
6295 EOF
|
1692
|
6296 if { (eval echo configure:6297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6297 rm -rf conftest*
|
|
6298 eval "ac_cv_func_remove=yes"
|
|
6299 else
|
|
6300 echo "configure: failed program was:" >&5
|
|
6301 cat conftest.$ac_ext >&5
|
|
6302 rm -rf conftest*
|
|
6303 eval "ac_cv_func_remove=no"
|
|
6304 fi
|
|
6305 rm -f conftest*
|
|
6306
|
|
6307 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
|
6308 echo "$ac_t""yes" 1>&6
|
|
6309 :
|
|
6310 else
|
|
6311 echo "$ac_t""no" 1>&6
|
|
6312 fi
|
|
6313
|
|
6314 if test $ac_cv_func_remove = no; then
|
|
6315
|
|
6316 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
1692
|
6317 echo "configure:6318: checking for remove in -lposix" >&5
|
149
|
6318 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
|
6319
|
|
6320 xe_check_libs=" -lposix "
|
|
6321 cat > conftest.$ac_ext <<EOF
|
1692
|
6322 #line 6323 "configure"
|
149
|
6323 #include "confdefs.h"
|
|
6324 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6325 /* We use char because int might match the return type of a gcc2
|
|
6326 builtin and then its argument prototype would still apply. */
|
|
6327 char remove();
|
|
6328
|
|
6329 int main() {
|
|
6330 remove()
|
|
6331 ; return 0; }
|
|
6332 EOF
|
1692
|
6333 if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6334 rm -rf conftest*
|
|
6335 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6336 else
|
|
6337 echo "configure: failed program was:" >&5
|
|
6338 cat conftest.$ac_ext >&5
|
|
6339 rm -rf conftest*
|
|
6340 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6341 fi
|
|
6342 rm -f conftest*
|
|
6343 xe_check_libs=""
|
|
6344
|
151
|
6345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6346 echo "$ac_t""yes" 1>&6
|
|
6347 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
|
6348 else
|
|
6349 echo "$ac_t""no" 1>&6
|
|
6350 fi
|
|
6351
|
|
6352
|
|
6353 fi
|
|
6354
|
|
6355 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|
6356 echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
1692
|
6357 echo "configure:6358: checking for shmat" >&5
|
|
6358
|
|
6359 cat > conftest.$ac_ext <<EOF
|
|
6360 #line 6361 "configure"
|
149
|
6361 #include "confdefs.h"
|
|
6362 /* System header to define __stub macros and hopefully few prototypes,
|
|
6363 which can conflict with char shmat(); below. */
|
|
6364 #include <assert.h>
|
|
6365 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6366 /* We use char because int might match the return type of a gcc2
|
|
6367 builtin and then its argument prototype would still apply. */
|
|
6368 char shmat();
|
|
6369
|
|
6370 int main() {
|
|
6371
|
|
6372 /* The GNU C library defines this for functions which it implements
|
|
6373 to always fail with ENOSYS. Some functions are actually named
|
|
6374 something starting with __ and the normal name is an alias. */
|
|
6375 #if defined (__stub_shmat) || defined (__stub___shmat)
|
|
6376 choke me
|
|
6377 #else
|
|
6378 shmat();
|
|
6379 #endif
|
|
6380
|
|
6381 ; return 0; }
|
|
6382 EOF
|
1692
|
6383 if { (eval echo configure:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6384 rm -rf conftest*
|
|
6385 eval "ac_cv_func_shmat=yes"
|
|
6386 else
|
|
6387 echo "configure: failed program was:" >&5
|
|
6388 cat conftest.$ac_ext >&5
|
|
6389 rm -rf conftest*
|
|
6390 eval "ac_cv_func_shmat=no"
|
|
6391 fi
|
|
6392 rm -f conftest*
|
|
6393
|
|
6394 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
|
6395 echo "$ac_t""yes" 1>&6
|
|
6396 :
|
|
6397 else
|
|
6398 echo "$ac_t""no" 1>&6
|
|
6399 fi
|
|
6400
|
|
6401 if test $ac_cv_func_shmat = no; then
|
|
6402
|
|
6403 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
1692
|
6404 echo "configure:6405: checking for shmat in -lipc" >&5
|
149
|
6405 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
|
6406
|
|
6407 xe_check_libs=" -lipc "
|
|
6408 cat > conftest.$ac_ext <<EOF
|
1692
|
6409 #line 6410 "configure"
|
149
|
6410 #include "confdefs.h"
|
|
6411 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6412 /* We use char because int might match the return type of a gcc2
|
|
6413 builtin and then its argument prototype would still apply. */
|
|
6414 char shmat();
|
|
6415
|
|
6416 int main() {
|
|
6417 shmat()
|
|
6418 ; return 0; }
|
|
6419 EOF
|
1692
|
6420 if { (eval echo configure:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6421 rm -rf conftest*
|
|
6422 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6423 else
|
|
6424 echo "configure: failed program was:" >&5
|
|
6425 cat conftest.$ac_ext >&5
|
|
6426 rm -rf conftest*
|
|
6427 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6428 fi
|
|
6429 rm -f conftest*
|
|
6430 xe_check_libs=""
|
|
6431
|
151
|
6432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6433 echo "$ac_t""yes" 1>&6
|
|
6434 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
|
6435 else
|
|
6436 echo "$ac_t""no" 1>&6
|
|
6437 fi
|
|
6438
|
0
|
6439
|
|
6440 fi
|
149
|
6441 fi
|
|
6442
|
|
6443 # Check for libraries that X11R6 Xt/Xaw programs need.
|
|
6444 ac_save_LDFLAGS="$LDFLAGS"
|
|
6445 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
|
6446 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|
6447 # check for ICE first), but we must link in the order -lSM -lICE or
|
|
6448 # we get undefined symbols. So assume we have SM if we have ICE.
|
|
6449 # These have to be linked with before -lX11, unlike the other
|
|
6450 # libraries we check for below, so use a different variable.
|
|
6451 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
|
6452
|
420
|
6453 xe_msg_checking="for IceConnectionNumber in -lICE"
|
|
6454 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
6455 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1692
|
6456 echo "configure:6457: checking "$xe_msg_checking"" >&5
|
149
|
6457 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
|
6458
|
420
|
6459 xe_check_libs=" -lICE $X_EXTRA_LIBS"
|
|
6460 cat > conftest.$ac_ext <<EOF
|
1692
|
6461 #line 6462 "configure"
|
149
|
6462 #include "confdefs.h"
|
|
6463 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6464 /* We use char because int might match the return type of a gcc2
|
|
6465 builtin and then its argument prototype would still apply. */
|
|
6466 char IceConnectionNumber();
|
|
6467
|
|
6468 int main() {
|
|
6469 IceConnectionNumber()
|
|
6470 ; return 0; }
|
|
6471 EOF
|
1692
|
6472 if { (eval echo configure:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6473 rm -rf conftest*
|
|
6474 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6475 else
|
|
6476 echo "configure: failed program was:" >&5
|
|
6477 cat conftest.$ac_ext >&5
|
|
6478 rm -rf conftest*
|
|
6479 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6480 fi
|
|
6481 rm -f conftest*
|
|
6482 xe_check_libs=""
|
|
6483
|
151
|
6484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6485 echo "$ac_t""yes" 1>&6
|
|
6486 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
|
6487 else
|
|
6488 echo "$ac_t""no" 1>&6
|
|
6489 fi
|
|
6490
|
|
6491
|
|
6492 LDFLAGS="$ac_save_LDFLAGS"
|
|
6493
|
|
6494 fi
|
|
6495 # Autoconf claims to find X library and include dirs for us.
|
|
6496 if test "$no_x" = "yes"
|
|
6497 then with_x11=no window_system=none HAVE_X_WINDOWS=no
|
|
6498 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
|
|
6499 fi
|
|
6500 fi
|
|
6501
|
0
|
6502
|
149
|
6503 if test "$with_x11" = "yes"; then
|
|
6504 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6505 Defining HAVE_X_WINDOWS
|
|
6506 EOF
|
|
6507 cat >> confdefs.h <<\EOF
|
|
6508 #define HAVE_X_WINDOWS 1
|
|
6509 EOF
|
|
6510 }
|
|
6511
|
151
|
6512 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
|
175
|
6513 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
|
149
|
6514
|
1454
|
6515
|
|
6516 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
|
6517 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
1692
|
6518 echo "configure:6519: checking for Xm/Xm.h" >&5
|
|
6519
|
|
6520 cat > conftest.$ac_ext <<EOF
|
|
6521 #line 6522 "configure"
|
1454
|
6522 #include "confdefs.h"
|
|
6523 #include <Xm/Xm.h>
|
|
6524 EOF
|
|
6525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
6526 { (eval echo configure:6527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1454
|
6527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
6528 if test -z "$ac_err"; then
|
|
6529 rm -rf conftest*
|
|
6530 eval "ac_cv_header_$ac_safe=yes"
|
|
6531 else
|
|
6532 echo "$ac_err" >&5
|
|
6533 echo "configure: failed program was:" >&5
|
|
6534 cat conftest.$ac_ext >&5
|
|
6535 rm -rf conftest*
|
|
6536 eval "ac_cv_header_$ac_safe=no"
|
|
6537 fi
|
|
6538 rm -f conftest*
|
|
6539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6540 echo "$ac_t""yes" 1>&6
|
|
6541
|
|
6542 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
1692
|
6543 echo "configure:6544: checking for XmStringFree in -lXm" >&5
|
1454
|
6544 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
6545
|
|
6546 xe_check_libs=" -lXm "
|
|
6547 cat > conftest.$ac_ext <<EOF
|
1692
|
6548 #line 6549 "configure"
|
1454
|
6549 #include "confdefs.h"
|
|
6550 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6551 /* We use char because int might match the return type of a gcc2
|
|
6552 builtin and then its argument prototype would still apply. */
|
|
6553 char XmStringFree();
|
|
6554
|
|
6555 int main() {
|
|
6556 XmStringFree()
|
|
6557 ; return 0; }
|
|
6558 EOF
|
1692
|
6559 if { (eval echo configure:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1454
|
6560 rm -rf conftest*
|
|
6561 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6562 else
|
|
6563 echo "configure: failed program was:" >&5
|
|
6564 cat conftest.$ac_ext >&5
|
|
6565 rm -rf conftest*
|
|
6566 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6567 fi
|
|
6568 rm -f conftest*
|
|
6569 xe_check_libs=""
|
|
6570
|
|
6571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6572 echo "$ac_t""yes" 1>&6
|
|
6573 got_motif=yes
|
|
6574 else
|
|
6575 echo "$ac_t""no" 1>&6
|
|
6576 fi
|
|
6577
|
|
6578
|
|
6579 else
|
|
6580 echo "$ac_t""no" 1>&6
|
|
6581 fi
|
|
6582
|
|
6583
|
|
6584 if test "$got_motif" != "yes"; then
|
|
6585 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
|
|
6586 "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
|
|
6587 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
|
|
6588 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
|
6589 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
6590 x_libraries="$lib_dir $x_libraries"
|
|
6591 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
|
|
6592 esac
|
|
6593 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
6594 x_includes="$inc_dir $x_includes"
|
|
6595 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
|
|
6596 esac
|
|
6597 break; fi
|
|
6598 done
|
|
6599 fi
|
149
|
6600
|
|
6601 for rel in "X11R6" "X11R5" "X11R4"; do
|
|
6602 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
|
|
6603 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
151
|
6604 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
6605 x_libraries="$x_libraries $lib_dir"
|
|
6606 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
|
149
|
6607 esac
|
151
|
6608 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
6609 x_includes="$x_includes $inc_dir"
|
|
6610 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
|
149
|
6611 esac
|
|
6612 break; fi
|
|
6613 done
|
|
6614
|
442
|
6615 case "$opsys" in
|
|
6616 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 ;;
|
|
6617 esac
|
373
|
6618
|
149
|
6619 ld_switch_x_site="$X_LIBS"
|
|
6620
|
151
|
6621
|
|
6622 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
6623 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
6624 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
6625
|
163
|
6626 runpath="" runpath_dirs=""
|
155
|
6627 if test -n "$LD_RUN_PATH"; then
|
151
|
6628 runpath="$LD_RUN_PATH"
|
155
|
6629 elif test "$GCC" = "yes"; then
|
163
|
6630 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
6631 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
6632 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
6633 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
6634 case "$arg" in P,* | -L* | -R* )
|
159
|
6635 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
6636 {
|
155
|
6637 xe_runpath_dir="$dir"
|
163
|
6638 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
6639 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
6640 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
6641 eval "$xe_add_unique_runpath_dir"
|
|
6642 }
|
155
|
6643 done ;;
|
|
6644 esac
|
|
6645 done
|
163
|
6646 ld_switch_run="$ld_switch_run_save"
|
155
|
6647 rm -f conftest*
|
151
|
6648 else
|
155
|
6649 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
6650 case "$arg" in -L*) {
|
159
|
6651 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
6652 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
6653 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
6654 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
6655 eval "$xe_add_unique_runpath_dir"
|
|
6656 };; esac
|
151
|
6657 done
|
163
|
6658 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
6659 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
6660 eval "$xe_add_unique_runpath_dir";
|
|
6661 fi
|
155
|
6662 fi
|
151
|
6663 if test -n "$runpath"; then
|
|
6664 ld_switch_run="${dash_r}${runpath}"
|
272
|
6665
|
|
6666 if test "$GCC" = "yes"; then
|
|
6667 set x $ld_switch_run; shift; ld_switch_run=""
|
|
6668 while test -n "$1"; do
|
|
6669 case $1 in
|
380
|
6670 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
6671 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
6672 -Xlinker* ) ;;
|
|
6673 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
6674 esac
|
|
6675 shift
|
|
6676 done
|
|
6677 fi
|
151
|
6678 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
6679 fi
|
|
6680 fi
|
|
6681
|
|
6682
|
149
|
6683 if test "$extra_verbose" = "yes"; then
|
|
6684 echo; echo "X11 compilation variables:"
|
163
|
6685 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
|
149
|
6686 echo
|
|
6687 fi
|
|
6688
|
265
|
6689 bitmapdirs=
|
|
6690 if test "$x_includes" != NONE; then
|
|
6691 for i in $x_includes; do
|
|
6692 if test -d "$i/bitmaps"; then
|
|
6693 bitmapdirs="$i/bitmaps:$bitmapdirs"
|
|
6694 fi
|
|
6695 if test -d "$i/X11/bitmaps"; then
|
|
6696 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
|
|
6697 fi
|
|
6698 done
|
|
6699 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
|
|
6700 fi
|
|
6701 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
|
|
6702 Defining BITMAPDIR = "$bitmapdirs"
|
|
6703 EOF
|
|
6704 cat >> confdefs.h <<EOF
|
|
6705 #define BITMAPDIR "$bitmapdirs"
|
|
6706 EOF
|
|
6707 }
|
|
6708
|
|
6709
|
163
|
6710 echo "checking for X defines extracted by xmkmf" 1>&6
|
1692
|
6711 echo "configure:6712: checking for X defines extracted by xmkmf" >&5
|
163
|
6712 rm -fr conftestdir
|
|
6713 if mkdir conftestdir; then
|
|
6714 cd conftestdir
|
|
6715 cat > Imakefile <<'EOF'
|
|
6716 xetest:
|
|
6717 @echo ${PROTO_DEFINES} ${STD_DEFINES}
|
|
6718 EOF
|
|
6719 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
6720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
6721 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
|
|
6722 fi
|
|
6723 cd ..
|
|
6724 rm -fr conftestdir
|
|
6725 for word in $xmkmf_defines; do
|
535
|
6726 case "$word" in
|
473
|
6727 -D__STDC__*) ;;
|
|
6728 -D* )
|
442
|
6729 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
|
|
6730 case "$word" in
|
|
6731 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
|
|
6732 * ) val=1 ;;
|
|
6733 esac
|
|
6734 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
|
|
6735 if test "$val" = "1"
|
|
6736 then { test "$extra_verbose" = "yes" && cat << EOF
|
|
6737 Defining $sym
|
|
6738 EOF
|
|
6739 cat >> confdefs.h <<EOF
|
|
6740 #define $sym 1
|
|
6741 EOF
|
|
6742 }
|
|
6743
|
|
6744 else { test "$extra_verbose" = "yes" && cat << EOF
|
|
6745 Defining $sym = $val
|
|
6746 EOF
|
|
6747 cat >> confdefs.h <<EOF
|
|
6748 #define $sym $val
|
|
6749 EOF
|
|
6750 }
|
|
6751
|
|
6752 fi
|
|
6753 fi ;;
|
163
|
6754 esac
|
|
6755 done
|
|
6756 fi
|
|
6757
|
149
|
6758 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
|
|
6759 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
|
1692
|
6760 echo "configure:6761: checking for X11/Intrinsic.h" >&5
|
|
6761
|
|
6762 cat > conftest.$ac_ext <<EOF
|
|
6763 #line 6764 "configure"
|
149
|
6764 #include "confdefs.h"
|
|
6765 #include <X11/Intrinsic.h>
|
|
6766 EOF
|
|
6767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
6768 { (eval echo configure:6769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
6769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
6770 if test -z "$ac_err"; then
|
|
6771 rm -rf conftest*
|
|
6772 eval "ac_cv_header_$ac_safe=yes"
|
|
6773 else
|
|
6774 echo "$ac_err" >&5
|
|
6775 echo "configure: failed program was:" >&5
|
|
6776 cat conftest.$ac_ext >&5
|
|
6777 rm -rf conftest*
|
|
6778 eval "ac_cv_header_$ac_safe=no"
|
|
6779 fi
|
|
6780 rm -f conftest*
|
|
6781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6782 echo "$ac_t""yes" 1>&6
|
|
6783 :
|
|
6784 else
|
|
6785 echo "$ac_t""no" 1>&6
|
561
|
6786 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; }
|
149
|
6787 fi
|
|
6788
|
|
6789
|
|
6790
|
|
6791 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
|
1692
|
6792 echo "configure:6793: checking for XOpenDisplay in -lX11" >&5
|
149
|
6793 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
|
|
6794
|
|
6795 xe_check_libs=" -lX11 "
|
|
6796 cat > conftest.$ac_ext <<EOF
|
1692
|
6797 #line 6798 "configure"
|
149
|
6798 #include "confdefs.h"
|
|
6799 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6800 /* We use char because int might match the return type of a gcc2
|
|
6801 builtin and then its argument prototype would still apply. */
|
|
6802 char XOpenDisplay();
|
|
6803
|
|
6804 int main() {
|
|
6805 XOpenDisplay()
|
|
6806 ; return 0; }
|
|
6807 EOF
|
1692
|
6808 if { (eval echo configure:6809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6809 rm -rf conftest*
|
|
6810 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6811 else
|
|
6812 echo "configure: failed program was:" >&5
|
|
6813 cat conftest.$ac_ext >&5
|
|
6814 rm -rf conftest*
|
|
6815 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6816 fi
|
|
6817 rm -f conftest*
|
|
6818 xe_check_libs=""
|
|
6819
|
151
|
6820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6821 echo "$ac_t""yes" 1>&6
|
|
6822 have_lib_x11=yes
|
|
6823 else
|
|
6824 echo "$ac_t""no" 1>&6
|
|
6825 fi
|
|
6826
|
|
6827
|
|
6828 if test "$have_lib_x11" != "yes"; then
|
|
6829
|
|
6830 xe_msg_checking="for XGetFontProperty in -lX11"
|
|
6831 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
|
|
6832 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1692
|
6833 echo "configure:6834: checking "$xe_msg_checking"" >&5
|
149
|
6834 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
|
|
6835
|
|
6836 xe_check_libs=" -lX11 -b i486-linuxaout"
|
|
6837 cat > conftest.$ac_ext <<EOF
|
1692
|
6838 #line 6839 "configure"
|
149
|
6839 #include "confdefs.h"
|
|
6840 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6841 /* We use char because int might match the return type of a gcc2
|
|
6842 builtin and then its argument prototype would still apply. */
|
|
6843 char XGetFontProperty();
|
|
6844
|
|
6845 int main() {
|
|
6846 XGetFontProperty()
|
|
6847 ; return 0; }
|
|
6848 EOF
|
1692
|
6849 if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6850 rm -rf conftest*
|
|
6851 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6852 else
|
|
6853 echo "configure: failed program was:" >&5
|
|
6854 cat conftest.$ac_ext >&5
|
|
6855 rm -rf conftest*
|
|
6856 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6857 fi
|
|
6858 rm -f conftest*
|
|
6859 xe_check_libs=""
|
|
6860
|
151
|
6861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6862 echo "$ac_t""yes" 1>&6
|
|
6863 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
|
|
6864 else
|
|
6865 echo "$ac_t""no" 1>&6
|
561
|
6866 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
|
149
|
6867 fi
|
|
6868
|
|
6869
|
0
|
6870 fi
|
149
|
6871 libs_x="-lX11"
|
151
|
6872 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
|
149
|
6873
|
153
|
6874
|
|
6875 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
|
1692
|
6876 echo "configure:6877: checking for XShapeSelectInput in -lXext" >&5
|
153
|
6877 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
|
|
6878
|
|
6879 xe_check_libs=" -lXext "
|
|
6880 cat > conftest.$ac_ext <<EOF
|
1692
|
6881 #line 6882 "configure"
|
153
|
6882 #include "confdefs.h"
|
|
6883 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6884 /* We use char because int might match the return type of a gcc2
|
|
6885 builtin and then its argument prototype would still apply. */
|
|
6886 char XShapeSelectInput();
|
|
6887
|
|
6888 int main() {
|
|
6889 XShapeSelectInput()
|
|
6890 ; return 0; }
|
|
6891 EOF
|
1692
|
6892 if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
153
|
6893 rm -rf conftest*
|
|
6894 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6895 else
|
|
6896 echo "configure: failed program was:" >&5
|
|
6897 cat conftest.$ac_ext >&5
|
|
6898 rm -rf conftest*
|
|
6899 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6900 fi
|
|
6901 rm -f conftest*
|
|
6902 xe_check_libs=""
|
|
6903
|
|
6904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6905 echo "$ac_t""yes" 1>&6
|
|
6906 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
|
|
6907 else
|
|
6908 echo "$ac_t""no" 1>&6
|
|
6909 fi
|
|
6910
|
|
6911
|
|
6912
|
169
|
6913
|
149
|
6914 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
|
1692
|
6915 echo "configure:6916: checking for XtOpenDisplay in -lXt" >&5
|
149
|
6916 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
|
|
6917
|
|
6918 xe_check_libs=" -lXt "
|
|
6919 cat > conftest.$ac_ext <<EOF
|
1692
|
6920 #line 6921 "configure"
|
149
|
6921 #include "confdefs.h"
|
|
6922 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6923 /* We use char because int might match the return type of a gcc2
|
|
6924 builtin and then its argument prototype would still apply. */
|
|
6925 char XtOpenDisplay();
|
|
6926
|
|
6927 int main() {
|
|
6928 XtOpenDisplay()
|
|
6929 ; return 0; }
|
|
6930 EOF
|
1692
|
6931 if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6932 rm -rf conftest*
|
|
6933 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6934 else
|
|
6935 echo "configure: failed program was:" >&5
|
|
6936 cat conftest.$ac_ext >&5
|
|
6937 rm -rf conftest*
|
|
6938 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6939 fi
|
|
6940 rm -f conftest*
|
|
6941 xe_check_libs=""
|
|
6942
|
151
|
6943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6944 echo "$ac_t""yes" 1>&6
|
|
6945 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
|
149
|
6946 else
|
|
6947 echo "$ac_t""no" 1>&6
|
561
|
6948 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
|
149
|
6949 fi
|
|
6950
|
169
|
6951
|
149
|
6952
|
|
6953 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
|
1692
|
6954 echo "configure:6955: checking the version of X11 being used" >&5
|
149
|
6955 cat > conftest.$ac_ext <<EOF
|
1692
|
6956 #line 6957 "configure"
|
149
|
6957 #include "confdefs.h"
|
|
6958 #include <X11/Intrinsic.h>
|
272
|
6959 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
|
|
6960 EOF
|
1692
|
6961 if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
6962 then
|
151
|
6963 ./conftest foobar; x11_release=$?
|
149
|
6964 else
|
373
|
6965 conftest_rc="$?"
|
149
|
6966 echo "configure: failed program was:" >&5
|
|
6967 cat conftest.$ac_ext >&5
|
|
6968 rm -fr conftest*
|
151
|
6969 x11_release=4
|
149
|
6970 fi
|
|
6971 rm -fr conftest*
|
151
|
6972 echo "$ac_t""R${x11_release}" 1>&6
|
149
|
6973 { test "$extra_verbose" = "yes" && cat << EOF
|
151
|
6974 Defining THIS_IS_X11R${x11_release}
|
149
|
6975 EOF
|
|
6976 cat >> confdefs.h <<EOF
|
151
|
6977 #define THIS_IS_X11R${x11_release} 1
|
149
|
6978 EOF
|
|
6979 }
|
|
6980
|
|
6981
|
442
|
6982 if test "${x11_release}" = "4"; then
|
|
6983 case "$with_widgets" in
|
|
6984 "" | "no") with_widgets=no ;;
|
|
6985 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
|
|
6986 esac
|
|
6987 fi
|
|
6988
|
|
6989 for ac_func in XConvertCase
|
|
6990 do
|
|
6991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
6992 echo "configure:6993: checking for $ac_func" >&5
|
|
6993
|
|
6994 cat > conftest.$ac_ext <<EOF
|
|
6995 #line 6996 "configure"
|
442
|
6996 #include "confdefs.h"
|
|
6997 /* System header to define __stub macros and hopefully few prototypes,
|
|
6998 which can conflict with char $ac_func(); below. */
|
|
6999 #include <assert.h>
|
|
7000 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7001 /* We use char because int might match the return type of a gcc2
|
|
7002 builtin and then its argument prototype would still apply. */
|
|
7003 char $ac_func();
|
|
7004
|
|
7005 int main() {
|
|
7006
|
|
7007 /* The GNU C library defines this for functions which it implements
|
|
7008 to always fail with ENOSYS. Some functions are actually named
|
|
7009 something starting with __ and the normal name is an alias. */
|
|
7010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
7011 choke me
|
|
7012 #else
|
|
7013 $ac_func();
|
|
7014 #endif
|
|
7015
|
|
7016 ; return 0; }
|
|
7017 EOF
|
1692
|
7018 if { (eval echo configure:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
7019 rm -rf conftest*
|
|
7020 eval "ac_cv_func_$ac_func=yes"
|
|
7021 else
|
|
7022 echo "configure: failed program was:" >&5
|
|
7023 cat conftest.$ac_ext >&5
|
|
7024 rm -rf conftest*
|
|
7025 eval "ac_cv_func_$ac_func=no"
|
|
7026 fi
|
|
7027 rm -f conftest*
|
|
7028
|
|
7029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
7030 echo "$ac_t""yes" 1>&6
|
|
7031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
7032 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7033 Defining $ac_tr_func
|
|
7034 EOF
|
|
7035 cat >> confdefs.h <<EOF
|
|
7036 #define $ac_tr_func 1
|
|
7037 EOF
|
|
7038 }
|
|
7039
|
|
7040 else
|
|
7041 echo "$ac_t""no" 1>&6
|
|
7042 fi
|
|
7043 done
|
|
7044
|
|
7045
|
149
|
7046 for ac_hdr in X11/Xlocale.h
|
|
7047 do
|
|
7048 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
7049 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1692
|
7050 echo "configure:7051: checking for $ac_hdr" >&5
|
|
7051
|
|
7052 cat > conftest.$ac_ext <<EOF
|
|
7053 #line 7054 "configure"
|
149
|
7054 #include "confdefs.h"
|
|
7055 #include <$ac_hdr>
|
|
7056 EOF
|
|
7057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
7058 { (eval echo configure:7059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7060 if test -z "$ac_err"; then
|
|
7061 rm -rf conftest*
|
|
7062 eval "ac_cv_header_$ac_safe=yes"
|
|
7063 else
|
|
7064 echo "$ac_err" >&5
|
|
7065 echo "configure: failed program was:" >&5
|
|
7066 cat conftest.$ac_ext >&5
|
|
7067 rm -rf conftest*
|
|
7068 eval "ac_cv_header_$ac_safe=no"
|
|
7069 fi
|
|
7070 rm -f conftest*
|
|
7071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7072 echo "$ac_t""yes" 1>&6
|
|
7073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
7074 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7075 Defining $ac_tr_hdr
|
|
7076 EOF
|
|
7077 cat >> confdefs.h <<EOF
|
|
7078 #define $ac_tr_hdr 1
|
|
7079 EOF
|
|
7080 }
|
|
7081
|
|
7082 else
|
|
7083 echo "$ac_t""no" 1>&6
|
|
7084 fi
|
|
7085 done
|
|
7086
|
|
7087
|
444
|
7088 for ac_func in XRegisterIMInstantiateCallback
|
|
7089 do
|
|
7090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
7091 echo "configure:7092: checking for $ac_func" >&5
|
|
7092
|
|
7093 cat > conftest.$ac_ext <<EOF
|
|
7094 #line 7095 "configure"
|
444
|
7095 #include "confdefs.h"
|
|
7096 /* System header to define __stub macros and hopefully few prototypes,
|
|
7097 which can conflict with char $ac_func(); below. */
|
|
7098 #include <assert.h>
|
|
7099 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7100 /* We use char because int might match the return type of a gcc2
|
|
7101 builtin and then its argument prototype would still apply. */
|
|
7102 char $ac_func();
|
|
7103
|
|
7104 int main() {
|
|
7105
|
|
7106 /* The GNU C library defines this for functions which it implements
|
|
7107 to always fail with ENOSYS. Some functions are actually named
|
|
7108 something starting with __ and the normal name is an alias. */
|
|
7109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
7110 choke me
|
|
7111 #else
|
|
7112 $ac_func();
|
|
7113 #endif
|
|
7114
|
|
7115 ; return 0; }
|
|
7116 EOF
|
1692
|
7117 if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
444
|
7118 rm -rf conftest*
|
|
7119 eval "ac_cv_func_$ac_func=yes"
|
|
7120 else
|
|
7121 echo "configure: failed program was:" >&5
|
|
7122 cat conftest.$ac_ext >&5
|
|
7123 rm -rf conftest*
|
|
7124 eval "ac_cv_func_$ac_func=no"
|
|
7125 fi
|
|
7126 rm -f conftest*
|
|
7127
|
|
7128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
7129 echo "$ac_t""yes" 1>&6
|
|
7130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
7131 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7132 Defining $ac_tr_func
|
|
7133 EOF
|
|
7134 cat >> confdefs.h <<EOF
|
|
7135 #define $ac_tr_func 1
|
|
7136 EOF
|
|
7137 }
|
|
7138
|
|
7139 else
|
|
7140 echo "$ac_t""no" 1>&6
|
|
7141 fi
|
|
7142 done
|
|
7143
|
|
7144 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
|
1692
|
7145 echo "configure:7146: checking for standard XRegisterIMInstantiateCallback prototype" >&5
|
444
|
7146 cat > conftest.$ac_ext <<EOF
|
1692
|
7147 #line 7148 "configure"
|
444
|
7148 #include "confdefs.h"
|
|
7149
|
|
7150 #define NeedFunctionPrototypes 1
|
|
7151 #include <X11/Xlib.h>
|
|
7152 extern Bool XRegisterIMInstantiateCallback(
|
|
7153 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
|
|
7154
|
|
7155 int main() {
|
|
7156
|
|
7157 ; return 0; }
|
|
7158 EOF
|
1692
|
7159 if { (eval echo configure:7160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
444
|
7160 rm -rf conftest*
|
|
7161 echo "$ac_t""yes" 1>&6
|
|
7162 else
|
|
7163 echo "configure: failed program was:" >&5
|
|
7164 cat conftest.$ac_ext >&5
|
|
7165 rm -rf conftest*
|
|
7166 echo "$ac_t""no" 1>&6
|
|
7167 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7168 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
|
|
7169 EOF
|
|
7170 cat >> confdefs.h <<\EOF
|
|
7171 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
|
|
7172 EOF
|
|
7173 }
|
|
7174
|
|
7175 fi
|
|
7176 rm -f conftest*
|
149
|
7177
|
169
|
7178 test -z "$with_xmu" && {
|
|
7179 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
|
1692
|
7180 echo "configure:7181: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
|
169
|
7181 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
|
149
|
7182
|
|
7183 xe_check_libs=" -lXmu "
|
|
7184 cat > conftest.$ac_ext <<EOF
|
1692
|
7185 #line 7186 "configure"
|
149
|
7186 #include "confdefs.h"
|
|
7187 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7188 /* We use char because int might match the return type of a gcc2
|
|
7189 builtin and then its argument prototype would still apply. */
|
169
|
7190 char XmuReadBitmapDataFromFile();
|
149
|
7191
|
|
7192 int main() {
|
169
|
7193 XmuReadBitmapDataFromFile()
|
149
|
7194 ; return 0; }
|
|
7195 EOF
|
1692
|
7196 if { (eval echo configure:7197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7197 rm -rf conftest*
|
|
7198 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7199 else
|
|
7200 echo "configure: failed program was:" >&5
|
|
7201 cat conftest.$ac_ext >&5
|
|
7202 rm -rf conftest*
|
|
7203 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7204 fi
|
|
7205 rm -f conftest*
|
|
7206 xe_check_libs=""
|
|
7207
|
151
|
7208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7209 echo "$ac_t""yes" 1>&6
|
|
7210 with_xmu=yes
|
|
7211 else
|
|
7212 echo "$ac_t""no" 1>&6
|
|
7213 with_xmu=no
|
|
7214 fi
|
|
7215
|
169
|
7216 }
|
185
|
7217 if test "$with_xmu" = "no"; then
|
|
7218 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
|
151
|
7219 echo " xemacs will be linked with \"xmu.o\""
|
|
7220 fi
|
187
|
7221 else
|
185
|
7222 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
|
|
7223 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7224 Defining HAVE_XMU
|
|
7225 EOF
|
|
7226 cat >> confdefs.h <<\EOF
|
|
7227 #define HAVE_XMU 1
|
|
7228 EOF
|
|
7229 }
|
|
7230
|
169
|
7231 fi
|
151
|
7232
|
|
7233
|
|
7234 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
|
1692
|
7235 echo "configure:7236: checking for main in -lXbsd" >&5
|
151
|
7236 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
|
|
7237
|
|
7238 xe_check_libs=" -lXbsd "
|
|
7239 cat > conftest.$ac_ext <<EOF
|
1692
|
7240 #line 7241 "configure"
|
151
|
7241 #include "confdefs.h"
|
149
|
7242
|
|
7243 int main() {
|
151
|
7244 main()
|
149
|
7245 ; return 0; }
|
|
7246 EOF
|
1692
|
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7248 rm -rf conftest*
|
|
7249 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7250 else
|
|
7251 echo "configure: failed program was:" >&5
|
|
7252 cat conftest.$ac_ext >&5
|
|
7253 rm -rf conftest*
|
|
7254 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7255 fi
|
|
7256 rm -f conftest*
|
|
7257 xe_check_libs=""
|
|
7258
|
151
|
7259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7260 echo "$ac_t""yes" 1>&6
|
|
7261 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
|
|
7262 else
|
|
7263 echo "$ac_t""no" 1>&6
|
|
7264 fi
|
|
7265
|
149
|
7266
|
|
7267
|
243
|
7268 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
|
274
|
7269 if test "$GCC" = "yes"; then
|
|
7270 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
|
|
7271 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
|
|
7272 else
|
|
7273 case "$CC" in
|
|
7274 "xlc" ) CC="xlc_r" ;;
|
|
7275 "xlC" ) CC="xlC_r" ;;
|
|
7276 "cc" ) CC="cc_r" ;;
|
|
7277 esac
|
|
7278 fi
|
243
|
7279 fi
|
|
7280
|
149
|
7281 fi
|
265
|
7282 if test "$with_msw" != "no"; then
|
|
7283 echo "checking for MS-Windows" 1>&6
|
1692
|
7284 echo "configure:7285: checking for MS-Windows" >&5
|
265
|
7285
|
|
7286 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
|
1692
|
7287 echo "configure:7288: checking for main in -lgdi32" >&5
|
265
|
7288 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
|
|
7289
|
|
7290 xe_check_libs=" -lgdi32 "
|
|
7291 cat > conftest.$ac_ext <<EOF
|
1692
|
7292 #line 7293 "configure"
|
265
|
7293 #include "confdefs.h"
|
|
7294
|
|
7295 int main() {
|
|
7296 main()
|
|
7297 ; return 0; }
|
|
7298 EOF
|
1692
|
7299 if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
265
|
7300 rm -rf conftest*
|
|
7301 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7302 else
|
|
7303 echo "configure: failed program was:" >&5
|
|
7304 cat conftest.$ac_ext >&5
|
|
7305 rm -rf conftest*
|
|
7306 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7307 fi
|
|
7308 rm -f conftest*
|
|
7309 xe_check_libs=""
|
|
7310
|
|
7311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7312 echo "$ac_t""yes" 1>&6
|
|
7313 with_msw=yes
|
|
7314 else
|
|
7315 echo "$ac_t""no" 1>&6
|
|
7316 fi
|
|
7317
|
|
7318
|
|
7319 if test "$with_msw" = "yes"; then
|
|
7320 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7321 Defining HAVE_MS_WINDOWS
|
|
7322 EOF
|
|
7323 cat >> confdefs.h <<\EOF
|
|
7324 #define HAVE_MS_WINDOWS 1
|
|
7325 EOF
|
|
7326 }
|
|
7327
|
448
|
7328
|
462
|
7329 if test "$with_netinstall" = "yes"; then
|
|
7330 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
|
|
7331 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
|
|
7332 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
7333 fi
|
458
|
7334
|
276
|
7335 install_pp="$blddir/lib-src/installexe.sh"
|
771
|
7336 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
|
|
7337 if test "$with_dragndrop" != no; then
|
|
7338 dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
|
|
7339 with_dragndrop=yes
|
|
7340 fi
|
265
|
7341 if test "$window_system" != x11; then
|
771
|
7342 window_system=msw
|
|
7343 test "$with_scrollbars" != "no" && with_scrollbars=msw
|
|
7344 test "$with_menubars" != "no" && with_menubars=msw
|
|
7345 test "$with_toolbars" != "no" && with_toolbars=msw
|
|
7346 test "$with_dialogs" != "no" && with_dialogs=msw
|
|
7347 test "$with_widgets" != "no" && with_widgets=msw
|
265
|
7348 fi
|
278
|
7349 cat > conftest.$ac_ext <<EOF
|
1692
|
7350 #line 7351 "configure"
|
278
|
7351 #include "confdefs.h"
|
|
7352 #include <fcntl.h>
|
|
7353 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
|
|
7354 EOF
|
1692
|
7355 if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
278
|
7356 then
|
771
|
7357 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
7358 Defining HAVE_MSG_SELECT
|
|
7359 EOF
|
|
7360 cat >> confdefs.h <<\EOF
|
|
7361 #define HAVE_MSG_SELECT 1
|
|
7362 EOF
|
|
7363 }
|
|
7364
|
|
7365 else
|
373
|
7366 conftest_rc="$?"
|
278
|
7367 echo "configure: failed program was:" >&5
|
|
7368 cat conftest.$ac_ext >&5
|
|
7369 fi
|
|
7370 rm -fr conftest*
|
771
|
7371 fi
|
|
7372 fi
|
|
7373
|
|
7374
|
|
7375
|
|
7376 test -z "$with_dragndrop" && with_dragndrop="$with_dragndrop_default"
|
149
|
7377 test -z "$window_system" && window_system="none"
|
|
7378
|
272
|
7379 if test "$window_system" = "none"; then
|
388
|
7380 for feature in menubars scrollbars toolbars dialogs dragndrop xface
|
272
|
7381 do
|
|
7382 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7383 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
|
|
7384 fi
|
|
7385 eval "with_${feature}=no"
|
|
7386 done
|
|
7387 else
|
|
7388 test -z "$with_toolbars" && with_toolbars=yes
|
|
7389 fi
|
|
7390
|
|
7391 if test "$with_msw" != "yes"; then
|
|
7392 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
|
|
7393 do
|
|
7394 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7395 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
|
|
7396 fi
|
|
7397 eval "with_${feature}=no"
|
|
7398 done
|
|
7399 else
|
|
7400 :
|
|
7401 fi
|
|
7402
|
|
7403 if test "$with_x11" != "yes"; then
|
434
|
7404 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
|
70
|
7405 do
|
149
|
7406 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7407 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
|
70
|
7408 fi
|
149
|
7409 eval "with_${feature}=no"
|
70
|
7410 done
|
149
|
7411 fi
|
|
7412
|
442
|
7413 if test "$with_x11" = "yes"; then
|
|
7414 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
|
|
7415 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
|
1692
|
7416 echo "configure:7417: checking for X11/extensions/shape.h" >&5
|
|
7417
|
|
7418 cat > conftest.$ac_ext <<EOF
|
|
7419 #line 7420 "configure"
|
442
|
7420 #include "confdefs.h"
|
|
7421 #include <X11/extensions/shape.h>
|
|
7422 EOF
|
|
7423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
7424 { (eval echo configure:7425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
7425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7426 if test -z "$ac_err"; then
|
|
7427 rm -rf conftest*
|
|
7428 eval "ac_cv_header_$ac_safe=yes"
|
|
7429 else
|
|
7430 echo "$ac_err" >&5
|
|
7431 echo "configure: failed program was:" >&5
|
|
7432 cat conftest.$ac_ext >&5
|
|
7433 rm -rf conftest*
|
|
7434 eval "ac_cv_header_$ac_safe=no"
|
|
7435 fi
|
|
7436 rm -f conftest*
|
|
7437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7438 echo "$ac_t""yes" 1>&6
|
|
7439
|
|
7440 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7441 Defining HAVE_BALLOON_HELP
|
|
7442 EOF
|
|
7443 cat >> confdefs.h <<\EOF
|
|
7444 #define HAVE_BALLOON_HELP 1
|
|
7445 EOF
|
|
7446 }
|
|
7447
|
771
|
7448
|
442
|
7449 else
|
|
7450 echo "$ac_t""no" 1>&6
|
|
7451 fi
|
|
7452
|
|
7453 fi
|
|
7454
|
0
|
7455 bitmapdir=
|
|
7456
|
149
|
7457 case "$window_system" in
|
70
|
7458 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
272
|
7459 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
|
462
|
7460 gtk )
|
|
7461 HAVE_X_WINDOWS=no
|
|
7462 test "$with_gnome" = "yes" && echo " Using GNOME."
|
|
7463 test "$with_gnome" = "no" && echo " Using GTK."
|
|
7464 ;;
|
70
|
7465 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
0
|
7466 esac
|
|
7467
|
149
|
7468 case "$x_libraries" in *X11R4* )
|
|
7469 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
|
|
7470 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
|
|
7471 esac
|
|
7472
|
414
|
7473 echo "checking for WM_COMMAND option" 1>&6
|
1692
|
7474 echo "configure:7475: checking for WM_COMMAND option" >&5;
|
414
|
7475 if test "$with_wmcommand" != "no"; then
|
|
7476 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7477 Defining HAVE_WMCOMMAND
|
|
7478 EOF
|
|
7479 cat >> confdefs.h <<\EOF
|
|
7480 #define HAVE_WMCOMMAND 1
|
177
|
7481 EOF
|
|
7482 }
|
|
7483
|
|
7484 fi
|
|
7485
|
149
|
7486 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
|
|
7487 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
|
|
7488 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
|
1692
|
7489 echo "configure:7490: checking for X11/Xauth.h" >&5
|
|
7490
|
|
7491 cat > conftest.$ac_ext <<EOF
|
|
7492 #line 7493 "configure"
|
149
|
7493 #include "confdefs.h"
|
|
7494 #include <X11/Xauth.h>
|
|
7495 EOF
|
|
7496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
7497 { (eval echo configure:7498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7499 if test -z "$ac_err"; then
|
|
7500 rm -rf conftest*
|
|
7501 eval "ac_cv_header_$ac_safe=yes"
|
|
7502 else
|
|
7503 echo "$ac_err" >&5
|
|
7504 echo "configure: failed program was:" >&5
|
|
7505 cat conftest.$ac_ext >&5
|
|
7506 rm -rf conftest*
|
|
7507 eval "ac_cv_header_$ac_safe=no"
|
|
7508 fi
|
|
7509 rm -f conftest*
|
|
7510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7511 echo "$ac_t""yes" 1>&6
|
|
7512 :
|
|
7513 else
|
|
7514 echo "$ac_t""no" 1>&6
|
|
7515 with_xauth=no
|
|
7516 fi
|
|
7517 }
|
|
7518 test -z "$with_xauth" && {
|
|
7519 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
|
1692
|
7520 echo "configure:7521: checking for XauGetAuthByAddr in -lXau" >&5
|
149
|
7521 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
|
|
7522
|
|
7523 xe_check_libs=" -lXau "
|
|
7524 cat > conftest.$ac_ext <<EOF
|
1692
|
7525 #line 7526 "configure"
|
149
|
7526 #include "confdefs.h"
|
|
7527 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7528 /* We use char because int might match the return type of a gcc2
|
|
7529 builtin and then its argument prototype would still apply. */
|
|
7530 char XauGetAuthByAddr();
|
|
7531
|
|
7532 int main() {
|
|
7533 XauGetAuthByAddr()
|
|
7534 ; return 0; }
|
|
7535 EOF
|
1692
|
7536 if { (eval echo configure:7537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7537 rm -rf conftest*
|
|
7538 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7539 else
|
|
7540 echo "configure: failed program was:" >&5
|
|
7541 cat conftest.$ac_ext >&5
|
|
7542 rm -rf conftest*
|
|
7543 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7544 fi
|
|
7545 rm -f conftest*
|
|
7546 xe_check_libs=""
|
|
7547
|
151
|
7548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7549 echo "$ac_t""yes" 1>&6
|
|
7550 :
|
|
7551 else
|
|
7552 echo "$ac_t""no" 1>&6
|
|
7553 with_xauth=no
|
|
7554 fi
|
|
7555
|
|
7556 }
|
|
7557 test -z "$with_xauth" && with_xauth=yes
|
|
7558 if test "$with_xauth" = "yes"; then
|
|
7559 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7560 Defining HAVE_XAUTH
|
|
7561 EOF
|
|
7562 cat >> confdefs.h <<\EOF
|
|
7563 #define HAVE_XAUTH 1
|
|
7564 EOF
|
|
7565 }
|
|
7566
|
159
|
7567
|
|
7568 T=""
|
462
|
7569 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
|
7570 libs_xauth="$T"
|
|
7571
|
|
7572 fi
|
|
7573
|
149
|
7574
|
274
|
7575
|
149
|
7576
|
1111
|
7577
|
|
7578 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
|
|
7579 : ${XEMACS_CC:="$CC"}
|
|
7580
|
1651
|
7581 if test "$xemacs_compiler" = "g++"; then
|
|
7582 LIBSTDCPP=-lstdc++
|
|
7583 else
|
|
7584 LIBSTDCPP=
|
|
7585 fi
|
|
7586
|
|
7587
|
1470
|
7588 if test "$with_modules" != "no"; then
|
|
7589 echo "checking for module support" 1>&6
|
1692
|
7590 echo "configure:7591: checking for module support" >&5
|
1470
|
7591
|
|
7592 if test "$with_msw" = "yes"; then
|
|
7593 have_dl=yes;
|
|
7594 else
|
|
7595 case "$opsys" in
|
|
7596 darwin ) have_dl=yes; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7597 Defining HAVE_DYLD
|
|
7598 EOF
|
|
7599 cat >> confdefs.h <<\EOF
|
|
7600 #define HAVE_DYLD 1
|
|
7601 EOF
|
|
7602 }
|
|
7603 ;;
|
|
7604 * )
|
|
7605 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
|
|
7606 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
|
1692
|
7607 echo "configure:7608: checking for dlfcn.h" >&5
|
|
7608
|
|
7609 cat > conftest.$ac_ext <<EOF
|
|
7610 #line 7611 "configure"
|
1470
|
7611 #include "confdefs.h"
|
|
7612 #include <dlfcn.h>
|
|
7613 EOF
|
|
7614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
7615 { (eval echo configure:7616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1470
|
7616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7617 if test -z "$ac_err"; then
|
|
7618 rm -rf conftest*
|
|
7619 eval "ac_cv_header_$ac_safe=yes"
|
|
7620 else
|
|
7621 echo "$ac_err" >&5
|
|
7622 echo "configure: failed program was:" >&5
|
|
7623 cat conftest.$ac_ext >&5
|
|
7624 rm -rf conftest*
|
|
7625 eval "ac_cv_header_$ac_safe=no"
|
|
7626 fi
|
|
7627 rm -f conftest*
|
|
7628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7629 echo "$ac_t""yes" 1>&6
|
|
7630
|
|
7631 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
|
1692
|
7632 echo "configure:7633: checking for dlopen in -lc" >&5
|
1470
|
7633 cat > conftest.$ac_ext <<EOF
|
1692
|
7634 #line 7635 "configure"
|
1470
|
7635 #include "confdefs.h"
|
|
7636 #include <dlfcn.h>
|
|
7637 int main() {
|
|
7638 dlopen ("", 0);
|
|
7639 ; return 0; }
|
|
7640 EOF
|
1692
|
7641 if { (eval echo configure:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
7642 rm -rf conftest*
|
|
7643 have_dl=yes
|
|
7644 else
|
|
7645 echo "configure: failed program was:" >&5
|
|
7646 cat conftest.$ac_ext >&5
|
|
7647 rm -rf conftest*
|
|
7648
|
|
7649 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
1692
|
7650 echo "configure:7651: checking for dlopen in -ldl" >&5
|
1470
|
7651 ac_save_LIBS="$LIBS"
|
|
7652 LIBS="-ldl $LIBS"
|
|
7653 cat > conftest.$ac_ext <<EOF
|
1692
|
7654 #line 7655 "configure"
|
1470
|
7655 #include "confdefs.h"
|
|
7656 #include <dlfcn.h>
|
|
7657 int main() {
|
|
7658 dlopen ("", 0);
|
|
7659 ; return 0; }
|
|
7660 EOF
|
1692
|
7661 if { (eval echo configure:7662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
7662 rm -rf conftest*
|
|
7663 have_dl=yes
|
|
7664 else
|
|
7665 echo "configure: failed program was:" >&5
|
|
7666 cat conftest.$ac_ext >&5
|
|
7667 rm -rf conftest*
|
|
7668 LIBS="$ac_save_LIBS"
|
|
7669 fi
|
|
7670 rm -f conftest*
|
|
7671 ac_save_LIBS=
|
|
7672 fi
|
|
7673 rm -f conftest*
|
|
7674 else
|
|
7675 echo "$ac_t""no" 1>&6
|
|
7676 fi
|
|
7677
|
|
7678 if test -n "$have_dl"; then
|
|
7679 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7680 Defining HAVE_DLOPEN
|
|
7681 EOF
|
|
7682 cat >> confdefs.h <<\EOF
|
|
7683 #define HAVE_DLOPEN 1
|
|
7684 EOF
|
|
7685 }
|
|
7686
|
|
7687 else
|
|
7688
|
|
7689 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
|
1692
|
7690 echo "configure:7691: checking for shl_load in -ldld" >&5
|
1470
|
7691 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
|
|
7692
|
|
7693 xe_check_libs=" -ldld "
|
|
7694 cat > conftest.$ac_ext <<EOF
|
1692
|
7695 #line 7696 "configure"
|
1470
|
7696 #include "confdefs.h"
|
|
7697 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7698 /* We use char because int might match the return type of a gcc2
|
|
7699 builtin and then its argument prototype would still apply. */
|
|
7700 char shl_load();
|
|
7701
|
|
7702 int main() {
|
|
7703 shl_load()
|
|
7704 ; return 0; }
|
|
7705 EOF
|
1692
|
7706 if { (eval echo configure:7707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
7707 rm -rf conftest*
|
|
7708 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7709 else
|
|
7710 echo "configure: failed program was:" >&5
|
|
7711 cat conftest.$ac_ext >&5
|
|
7712 rm -rf conftest*
|
|
7713 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7714 fi
|
|
7715 rm -f conftest*
|
|
7716 xe_check_libs=""
|
|
7717
|
|
7718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7719 echo "$ac_t""yes" 1>&6
|
|
7720 libdl=dld have_dl=yes;
|
|
7721 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7722 Defining HAVE_SHL_LOAD
|
|
7723 EOF
|
|
7724 cat >> confdefs.h <<\EOF
|
|
7725 #define HAVE_SHL_LOAD 1
|
|
7726 EOF
|
|
7727 }
|
|
7728
|
|
7729 else
|
|
7730 echo "$ac_t""no" 1>&6
|
|
7731
|
|
7732 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
|
1692
|
7733 echo "configure:7734: checking for dld_init in -ldld" >&5
|
1470
|
7734 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
|
|
7735
|
|
7736 xe_check_libs=" -ldld "
|
|
7737 cat > conftest.$ac_ext <<EOF
|
1692
|
7738 #line 7739 "configure"
|
1470
|
7739 #include "confdefs.h"
|
|
7740 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7741 /* We use char because int might match the return type of a gcc2
|
|
7742 builtin and then its argument prototype would still apply. */
|
|
7743 char dld_init();
|
|
7744
|
|
7745 int main() {
|
|
7746 dld_init()
|
|
7747 ; return 0; }
|
|
7748 EOF
|
1692
|
7749 if { (eval echo configure:7750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
7750 rm -rf conftest*
|
|
7751 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7752 else
|
|
7753 echo "configure: failed program was:" >&5
|
|
7754 cat conftest.$ac_ext >&5
|
|
7755 rm -rf conftest*
|
|
7756 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7757 fi
|
|
7758 rm -f conftest*
|
|
7759 xe_check_libs=""
|
|
7760
|
|
7761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7762 echo "$ac_t""yes" 1>&6
|
|
7763 libdl=dld have_dl=yes;
|
|
7764 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7765 Defining HAVE_DLD_INIT
|
|
7766 EOF
|
|
7767 cat >> confdefs.h <<\EOF
|
|
7768 #define HAVE_DLD_INIT 1
|
|
7769 EOF
|
|
7770 }
|
|
7771
|
|
7772 else
|
|
7773 echo "$ac_t""no" 1>&6
|
|
7774 fi
|
|
7775
|
|
7776
|
|
7777 fi
|
|
7778
|
|
7779
|
|
7780 fi
|
|
7781 esac fi
|
|
7782 if test -n "$have_dl"; then
|
|
7783
|
|
7784 dll_ld=
|
|
7785 dll_ldflags=
|
|
7786 dll_cflags=
|
|
7787 dll_post=
|
|
7788 dll_ldo="-o"
|
|
7789 ld_dynamic_link_flags=
|
|
7790 xehost=$canonical
|
|
7791 xealias=$internal_configuration
|
|
7792
|
|
7793 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
|
1692
|
7794 echo "configure:7795: checking how to build dynamic libraries for ${xehost}" >&5
|
1470
|
7795 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
|
|
7796 case "$xehost" in
|
|
7797 *-*-linux-gnu*) ;;
|
|
7798 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
|
7799 esac
|
|
7800
|
|
7801 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
7802 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
7803 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
7804
|
|
7805 case "$xehost_os" in
|
|
7806 aix3*)
|
|
7807 # AIX sometimes has problems with the GCC collect2 program. For some
|
|
7808 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
7809 # vanish in a puff of smoke.
|
|
7810 if test "${COLLECT_NAMES+set}" != set; then
|
|
7811 COLLECT_NAMES=
|
|
7812 export COLLECT_NAMES
|
|
7813 fi
|
|
7814 ;;
|
|
7815 esac
|
|
7816
|
|
7817 # Now see if the compiler is really GCC.
|
|
7818 if test "$GCC" = "yes"; then
|
|
7819 XEGCC=yes
|
|
7820 else
|
|
7821 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
|
1692
|
7822 echo "configure:7823: checking checking whether we are using GNU C" >&5
|
1470
|
7823 cat > conftest.$ac_ext <<EOF
|
1692
|
7824 #line 7825 "configure"
|
1470
|
7825 #include "confdefs.h"
|
|
7826
|
|
7827 #ifdef __GNUC__
|
|
7828 yes;
|
|
7829 #endif
|
|
7830
|
|
7831 EOF
|
|
7832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
7833 egrep "yes" >/dev/null 2>&1; then
|
|
7834 rm -rf conftest*
|
|
7835 XEGCC=yes
|
|
7836 else
|
|
7837 rm -rf conftest*
|
|
7838 XEGCC=no
|
|
7839 fi
|
|
7840 rm -f conftest*
|
|
7841
|
|
7842 echo "$ac_t""${XEGCC}" 1>&6
|
|
7843 fi
|
|
7844
|
|
7845 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
|
1692
|
7846 echo "configure:7847: checking how to produce PIC code" >&5
|
1470
|
7847 wl=
|
|
7848
|
|
7849 can_build_shared=yes
|
|
7850 if test "$XEGCC" = yes; then
|
|
7851 wl='-Wl,'
|
|
7852
|
|
7853 case "$xehost_os" in
|
|
7854 aix[3-9]* | irix[5-9]* | osf[3-9])
|
|
7855 # PIC is the default for these OSes.
|
|
7856 ;;
|
|
7857
|
1692
|
7858 *darwin*) dll_cflags='-dynamic'
|
|
7859 ;;
|
|
7860
|
1470
|
7861 os2*)
|
|
7862 # We can build DLLs from non-PIC.
|
|
7863 ;;
|
|
7864 amigaos*)
|
|
7865 # FIXME: we need at least 68020 code to build shared libraries, but
|
|
7866 # adding the `-m68020' flag to GCC prevents building anything better,
|
|
7867 # like `-m68040'.
|
|
7868 dll_cflags='-m68020 -resident32 -malways-restore-a4'
|
|
7869 ;;
|
|
7870 *cygwin* | *mingw* )
|
|
7871 # PIC is the default
|
|
7872 ;;
|
|
7873 *)
|
|
7874 dll_cflags='-fPIC'
|
|
7875 ;;
|
|
7876 esac
|
|
7877 else
|
|
7878 # PORTME Check for PIC flags for the system compiler.
|
|
7879 case "$xehost_os" in
|
|
7880 hpux9* | hpux1[0-9]*)
|
|
7881 # Is there a better link_static_flag that works with the bundled CC?
|
|
7882 wl='-Wl,'
|
|
7883 dll_cflags='+Z'
|
|
7884 ;;
|
|
7885
|
|
7886 irix[5-9]*)
|
|
7887 wl='-Wl,'
|
|
7888 # PIC (with -KPIC) is the default.
|
|
7889 ;;
|
|
7890
|
|
7891 os2*)
|
|
7892 # We can build DLLs from non-PIC.
|
|
7893 ;;
|
|
7894
|
|
7895 osf[3-9]*)
|
|
7896 # All OSF/1 code is PIC.
|
|
7897 wl='-Wl,'
|
|
7898 ;;
|
|
7899
|
|
7900 aix[3-9]*)
|
|
7901 # All AIX code is PIC.
|
|
7902 wl='-Wl,'
|
|
7903 ;;
|
|
7904
|
|
7905 sco3.2v5*)
|
|
7906 dll_cflags='-belf -Kpic'
|
|
7907 wl='-Wl,'
|
|
7908 ;;
|
|
7909
|
|
7910 unixware*)
|
|
7911 dll_cflags="-KPIC"
|
|
7912 wl="-Wl,"
|
|
7913 ;;
|
|
7914
|
|
7915 sysv4*)
|
|
7916 dll_cflags="-KPIC"
|
|
7917 wl="-Wl,"
|
|
7918 ;;
|
|
7919
|
|
7920 sysv5*)
|
|
7921 dll_cflags="-KPIC"
|
|
7922 wl="-Wl,"
|
|
7923 ;;
|
|
7924
|
|
7925 solaris2*)
|
|
7926 dll_cflags='-KPIC'
|
|
7927 wl='-Wl,'
|
|
7928 ;;
|
|
7929
|
|
7930 sunos4*)
|
|
7931 dll_cflags='-PIC'
|
|
7932 wl='-Qoption ld '
|
|
7933 ;;
|
|
7934
|
|
7935 uts4*)
|
|
7936 dll_cflags='-pic'
|
|
7937 ;;
|
|
7938
|
|
7939 *)
|
|
7940 can_build_shared=no
|
|
7941 ;;
|
|
7942 esac
|
|
7943 fi
|
|
7944
|
|
7945 if test -n "$dll_cflags"; then
|
|
7946 echo "$ac_t""${dll_cflags}" 1>&6
|
|
7947
|
|
7948 # Check to make sure the dll_cflags actually works.
|
|
7949 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
|
1692
|
7950 echo "configure:7951: checking if PIC flag ${dll_cflags} really works" >&5
|
1470
|
7951 save_CFLAGS="$CFLAGS"
|
|
7952 CFLAGS="$CFLAGS $dll_cflags -DPIC"
|
|
7953 cat > conftest.$ac_ext <<EOF
|
1692
|
7954 #line 7955 "configure"
|
1470
|
7955 #include "confdefs.h"
|
|
7956
|
|
7957 int main() {
|
|
7958 int x=0;
|
|
7959 ; return 0; }
|
|
7960 EOF
|
1692
|
7961 if { (eval echo configure:7962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1470
|
7962 rm -rf conftest*
|
|
7963
|
|
7964 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
|
|
7965 # reports no error. So, we need to grep stderr for (Bundled).
|
|
7966 if grep '(Bundled)' config.log >/dev/null; then
|
|
7967 echo "$ac_t""no" 1>&6
|
|
7968 can_build_shared=no
|
|
7969 dll_cflags=
|
|
7970 else
|
|
7971 echo "$ac_t""yes" 1>&6
|
|
7972 fi
|
|
7973 else
|
|
7974 echo "configure: failed program was:" >&5
|
|
7975 cat conftest.$ac_ext >&5
|
|
7976 rm -rf conftest*
|
|
7977 echo "$ac_t""no" 1>&6
|
|
7978 can_build_shared=no
|
|
7979 dll_cflags=
|
|
7980 fi
|
|
7981 rm -f conftest*
|
|
7982 CFLAGS="$save_CFLAGS"
|
|
7983 else
|
|
7984 echo "$ac_t""none" 1>&6
|
|
7985 fi
|
|
7986
|
|
7987 if test "$can_build_shared" = "yes"; then
|
|
7988 cc_produces_so=no
|
|
7989 xldf=
|
|
7990 xcldf=
|
|
7991 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
|
1692
|
7992 echo "configure:7993: checking if C compiler can produce shared libraries" >&5
|
1470
|
7993 if test "$XEGCC" = yes; then
|
1692
|
7994 case "$xehost_os" in
|
|
7995 *darwin*)
|
|
7996 xcldf='-bundle'
|
|
7997 xldf='-bundle -bundle_loader ../../src/xemacs'
|
|
7998 ;;
|
|
7999 *)
|
|
8000 xcldf="-shared"
|
|
8001 xldf="-shared"
|
|
8002 ;;
|
|
8003 esac
|
1470
|
8004 else # Not using GCC
|
|
8005 case "$xehost_os" in
|
|
8006 aix[3-9]*)
|
|
8007 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
|
|
8008 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
|
|
8009 ;;
|
|
8010
|
|
8011 freebsd2* | netbsd* | openbsd*)
|
|
8012 xldf="-Bshareable"
|
|
8013 xcldf="${wl}-Bshareable"
|
|
8014 ;;
|
|
8015
|
|
8016 freebsd3*)
|
|
8017 xcldf="-shared"
|
|
8018 ;;
|
|
8019
|
|
8020 hpux*)
|
|
8021 xldf="-b +s"
|
|
8022 xcldf="${wl}-b ${wl}+s"
|
|
8023 ;;
|
|
8024
|
|
8025 irix[5-9]* | osf[3-9]*)
|
|
8026 xcldf="${wl}-shared"
|
|
8027 xldf="-shared"
|
|
8028 ;;
|
|
8029
|
|
8030 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
|
|
8031 xcldf="-G"
|
|
8032 xldf="-G"
|
|
8033 ;;
|
|
8034
|
|
8035 sunos4*)
|
|
8036 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
|
|
8037 xldf="-assert pure-text -Bstatic"
|
|
8038 ;;
|
|
8039 esac
|
|
8040 fi # End if if we are using gcc
|
|
8041
|
|
8042 if test -n "$xcldf"; then
|
|
8043 save_LDFLAGS=$LDFLAGS
|
|
8044 save_LIBS=$LIBS
|
|
8045 save_xe_libs=$xe_libs
|
|
8046 LDFLAGS="$xcldf $LDFLAGS"
|
|
8047 LIBS=
|
|
8048 xe_libs=
|
|
8049 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
8050 cat > conftest.$ac_ext <<EOF
|
1692
|
8051 #line 8052 "configure"
|
1470
|
8052 #include "confdefs.h"
|
|
8053
|
|
8054 int main() {
|
|
8055 int x=0;
|
|
8056 ; return 0; }
|
|
8057 EOF
|
1692
|
8058 if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8059 rm -rf conftest*
|
|
8060 cc_produces_so=yes
|
|
8061 else
|
|
8062 echo "configure: failed program was:" >&5
|
|
8063 cat conftest.$ac_ext >&5
|
|
8064 rm -rf conftest*
|
|
8065 cc_produces_so=no
|
|
8066 fi
|
|
8067 rm -f conftest*
|
|
8068 LDFLAGS=$save_LDFLAGS
|
|
8069 LIBS=$save_LIBS
|
|
8070 xe_libs=$save_xe_libs
|
|
8071 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
8072 else
|
|
8073 cc_produces_so=no
|
|
8074 fi
|
|
8075 echo "$ac_t""${cc_produces_so}" 1>&6
|
|
8076
|
|
8077 LTLD=$LD
|
|
8078 if test -z "$LTLD"; then
|
|
8079 ac_prog=ld
|
|
8080 if test "$XEGCC" = yes; then
|
|
8081 # Check if gcc -print-prog-name=ld gives a path.
|
|
8082 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
1692
|
8083 echo "configure:8084: checking for ld used by GCC" >&5
|
1470
|
8084 ac_prog=`($CC -print-prog-name=ld) 2>&5`
|
|
8085 case "$ac_prog" in
|
|
8086 # Accept absolute paths.
|
|
8087 /*)
|
|
8088 if test -z "$LTLD"; then
|
|
8089 # case "$ac_prog" in
|
|
8090 # *gcc-lib*) LTLD="$CC"
|
|
8091 # ;;
|
|
8092 # *)
|
|
8093 LTLD="$ac_prog"
|
|
8094 # ;;
|
|
8095 # esac
|
|
8096 fi
|
|
8097 ;;
|
|
8098 "")
|
|
8099 # If it fails, then pretend we aren't using GCC.
|
|
8100 ac_prog=ld
|
|
8101 ;;
|
|
8102 *)
|
|
8103 # If it is relative, then search for the first ld in PATH.
|
|
8104 with_gnu_ld=unknown
|
|
8105 ;;
|
|
8106 esac
|
|
8107 else
|
|
8108 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
1692
|
8109 echo "configure:8110: checking for GNU ld" >&5
|
1470
|
8110 fi
|
|
8111
|
|
8112 if test -z "$LTLD"; then
|
|
8113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
8114 for ac_dir in $PATH; do
|
|
8115 test -z "$ac_dir" && ac_dir=.
|
|
8116 if test -f "$ac_dir/$ac_prog"; then
|
|
8117 LTLD="$ac_dir/$ac_prog"
|
|
8118 # Check to see if the program is GNU ld. I'd rather use --version,
|
|
8119 # but apparently some GNU ld's only accept -v.
|
|
8120 # Break only if it was the GNU/non-GNU ld that we prefer.
|
|
8121 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|
8122 xe_gnu_ld=yes
|
|
8123 else
|
|
8124 xe_gnu_ld=no
|
|
8125 fi
|
|
8126 fi
|
|
8127 done
|
|
8128 IFS="$ac_save_ifs"
|
|
8129 fi
|
|
8130
|
|
8131 if test -n "$LTLD"; then
|
|
8132 echo "$ac_t""${LTLD}" 1>&6
|
|
8133 else
|
|
8134 echo "$ac_t""no" 1>&6
|
|
8135 fi
|
|
8136
|
|
8137 if test -z "$LTLD" -a "$cc_produces_so" = no; then
|
|
8138 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
|
|
8139 exit 1
|
|
8140 fi
|
|
8141 fi
|
|
8142
|
|
8143 ld_dynamic_link_flags=
|
|
8144
|
|
8145 # Check to see if it really is or isn't GNU ld.
|
|
8146 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
|
1692
|
8147 echo "configure:8148: checking if the linker is GNU ld" >&5
|
1470
|
8148 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|
8149 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|
8150 xe_gnu_ld=yes
|
|
8151 else
|
|
8152 xe_gnu_ld=no
|
|
8153 fi
|
|
8154 echo "$ac_t""${xe_gnu_ld}" 1>&6
|
|
8155
|
|
8156 case "$xehost_os" in
|
|
8157 amigaos* | sunos4*)
|
|
8158 # On these operating systems, we should treat GNU ld like the system ld.
|
|
8159 gnu_ld_acts_native=yes
|
|
8160 ;;
|
|
8161 *)
|
|
8162 gnu_ld_acts_native=no
|
|
8163 ;;
|
|
8164 esac
|
|
8165
|
|
8166 if test "$cc_produces_so" = "yes"; then
|
|
8167 dll_ld=$CC
|
1692
|
8168 case "$xehost_os" in
|
|
8169 *darwin*)
|
|
8170 dll_ldflags=$xldf
|
|
8171 ;;
|
|
8172 *)
|
|
8173 dll_ldflags=$xcldf
|
|
8174 ;;
|
|
8175 esac
|
1470
|
8176 can_build_shared=yes
|
|
8177 ld_shlibs=yes
|
|
8178 else
|
|
8179 # OK - only NOW do we futz about with ld.
|
|
8180 # See if the linker supports building shared libraries.
|
|
8181 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
|
1692
|
8182 echo "configure:8183: checking whether the linker supports shared libraries" >&5
|
1470
|
8183 dll_ld=$CC
|
|
8184 dll_ldflags=$LDFLAGS
|
|
8185 ld_shlibs=yes
|
|
8186 can_build_shared=yes
|
|
8187 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
|
|
8188 # See if GNU ld supports shared libraries.
|
|
8189 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
|
8190 dll_ld=$CC
|
|
8191 dll_ldflags="-shared"
|
|
8192 ld_shlibs=yes
|
|
8193 else
|
|
8194 ld_shlibs=no
|
|
8195 fi
|
|
8196 else
|
|
8197 # PORTME fill in a description of your system's linker (not GNU ld)
|
|
8198 case "$xehost_os" in
|
|
8199 aix3*)
|
|
8200 dll_ld=$LTLD
|
|
8201 dll_ldflags=$xldf
|
|
8202 ;;
|
|
8203
|
|
8204 aix[4-9]*)
|
|
8205 dll_ldflags=$xcldf
|
|
8206 ;;
|
|
8207
|
|
8208 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
8209 # support. Future versions do this automatically, but an explicit c++rt0.o
|
|
8210 # doesn't break anything, and helps significantly (at the cost of a little
|
|
8211 # extra space).
|
|
8212 freebsd2.2*)
|
|
8213 dll_ld=$LTLD
|
|
8214 dll_ldflags=$xldf
|
|
8215 dll_post="/usr/lib/c++rt0.o"
|
|
8216 ;;
|
|
8217
|
|
8218 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
|
|
8219 freebsd2*)
|
|
8220 dll_ld=$LTLD
|
|
8221 dll_ldflags="-Bshareable"
|
|
8222 ;;
|
|
8223
|
|
8224 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
|
|
8225 freebsd3*)
|
|
8226 dll_ldflags="-shared"
|
|
8227 ;;
|
|
8228
|
|
8229 hpux*)
|
|
8230 dll_ld=$LTLD
|
|
8231 dll_ldflags=$xldf
|
|
8232 ;;
|
|
8233
|
|
8234 irix[5-9]*)
|
|
8235 dll_ld=$LTLD
|
|
8236 dll_ldflags=$xldf
|
|
8237 ;;
|
|
8238
|
|
8239 netbsd*)
|
|
8240 # Tested with NetBSD 1.2 ld
|
|
8241 dll_ld=$LTLD
|
|
8242 dll_ldflags=$xldf
|
|
8243 ;;
|
|
8244
|
|
8245 openbsd*)
|
|
8246 dll_ld=$LTLD
|
|
8247 dll_ldflags=$xldf
|
|
8248 ;;
|
|
8249
|
|
8250 osf3* | osf4*)
|
|
8251 dll_ld=$LTLD
|
|
8252 dll_ldflags=$xldf
|
|
8253 ;;
|
|
8254
|
|
8255 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
|
|
8256 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
|
|
8257 dll_ld=$LTLD
|
|
8258 case "$dll_ld" in
|
|
8259 *gcc*) dll_ldflags="-shared"
|
|
8260 dll_ld=$CC
|
|
8261 ;;
|
|
8262 *) dll_ldflags="-G"
|
|
8263 ;;
|
|
8264 esac
|
|
8265 ;;
|
|
8266
|
|
8267 sunos4*)
|
|
8268 if test "$XEGCC" = yes; then
|
|
8269 dll_ld=$CC
|
|
8270 else
|
|
8271 dll_ld=$LTLD
|
|
8272 fi
|
|
8273 dll_ldflags=$xldf
|
|
8274 ;;
|
|
8275
|
|
8276 uts4*)
|
|
8277 dll_ld=$LTLD
|
|
8278 dll_ldflags="-G"
|
|
8279 ;;
|
|
8280
|
|
8281 bsdi*)
|
|
8282 dll_ldflags="-r"
|
|
8283 dll_ld="shlicc2"
|
|
8284 ;;
|
|
8285
|
|
8286 *)
|
|
8287 ld_shlibs=no
|
|
8288 can_build_shared=no
|
|
8289 ;;
|
|
8290 esac
|
|
8291 fi
|
|
8292 echo "$ac_t""${ld_shlibs}" 1>&6
|
|
8293 if test "$ld_shlibs" = "no"; then
|
|
8294 can_build_shared=no
|
|
8295 fi
|
|
8296 fi # End of if cc_produces_so = no
|
|
8297
|
|
8298
|
|
8299 if test "$xe_gnu_ld" = yes; then
|
|
8300 if test "$ld_shlibs" = yes; then
|
|
8301 ld_dynamic_link_flags="${wl}-export-dynamic"
|
|
8302 fi
|
|
8303 fi
|
|
8304
|
|
8305 if test -z "$ld_dynamic_link_flags"; then
|
|
8306 case "$xehost_os" in
|
|
8307 aix[3-9]*)
|
|
8308 ld_dynamic_link_flags=
|
|
8309 ;;
|
|
8310
|
1692
|
8311 *darwin*)
|
|
8312 ld_dynamic_link_flags=
|
|
8313 ;;
|
|
8314
|
1470
|
8315 freebsd2.2*)
|
|
8316 ld_dynamic_link_flags=
|
|
8317 ;;
|
|
8318
|
|
8319 freebsd2*)
|
|
8320 ld_dynamic_link_flags=
|
|
8321 ;;
|
|
8322
|
|
8323 freebsd3*)
|
|
8324 ld_dynamic_link_flags=
|
|
8325 ;;
|
|
8326
|
|
8327 hpux*)
|
|
8328 ld_dynamic_link_flags="${wl}-E"
|
|
8329 ;;
|
|
8330
|
|
8331 irix[5-9]*)
|
|
8332 ld_dynamic_link_flags=
|
|
8333 ;;
|
|
8334
|
|
8335 netbsd*)
|
|
8336 ld_dynamic_link_flags=
|
|
8337 ;;
|
|
8338
|
|
8339 openbsd*)
|
|
8340 ld_dynamic_link_flags=
|
|
8341 ;;
|
|
8342
|
|
8343 osf3* | osf4*)
|
|
8344 ld_dynamic_link_flags=
|
|
8345 ;;
|
|
8346
|
|
8347 solaris2* | solaris7*)
|
|
8348 ld_dynamic_link_flags=
|
|
8349 ;;
|
|
8350
|
|
8351 sco3.2v5* | unixware* | sysv5* | sysv4*)
|
|
8352 ld_dynamic_link_flags="${wl}-Bexport"
|
|
8353 ;;
|
|
8354
|
|
8355 sunos4*)
|
|
8356 ld_dynamic_link_flags=
|
|
8357 ;;
|
|
8358
|
|
8359 uts4*)
|
|
8360 ld_dynamic_link_flags=
|
|
8361 ;;
|
|
8362
|
|
8363 bsdi*)
|
|
8364 ld_dynamic_link_flags=
|
|
8365 ;;
|
|
8366
|
|
8367 esac
|
|
8368 fi # End of if -z ld_dynamic_link_flags
|
|
8369 fi # End of if test "$can_build_shared" = "yes"
|
|
8370
|
|
8371
|
|
8372
|
|
8373
|
|
8374
|
|
8375
|
|
8376
|
|
8377
|
|
8378 fi
|
|
8379
|
|
8380 if test "$can_build_shared" = "yes"; then
|
|
8381 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8382 Defining HAVE_SHLIB
|
|
8383 EOF
|
|
8384 cat >> confdefs.h <<\EOF
|
|
8385 #define HAVE_SHLIB 1
|
|
8386 EOF
|
|
8387 }
|
|
8388
|
1491
|
8389 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
1470
|
8390 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
8391 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
|
|
8392 for ac_func in dlerror _dlerror
|
|
8393 do
|
|
8394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
8395 echo "configure:8396: checking for $ac_func" >&5
|
|
8396
|
|
8397 cat > conftest.$ac_ext <<EOF
|
|
8398 #line 8399 "configure"
|
1470
|
8399 #include "confdefs.h"
|
|
8400 /* System header to define __stub macros and hopefully few prototypes,
|
|
8401 which can conflict with char $ac_func(); below. */
|
|
8402 #include <assert.h>
|
|
8403 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8404 /* We use char because int might match the return type of a gcc2
|
|
8405 builtin and then its argument prototype would still apply. */
|
|
8406 char $ac_func();
|
|
8407
|
|
8408 int main() {
|
|
8409
|
|
8410 /* The GNU C library defines this for functions which it implements
|
|
8411 to always fail with ENOSYS. Some functions are actually named
|
|
8412 something starting with __ and the normal name is an alias. */
|
|
8413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
8414 choke me
|
|
8415 #else
|
|
8416 $ac_func();
|
|
8417 #endif
|
|
8418
|
|
8419 ; return 0; }
|
|
8420 EOF
|
1692
|
8421 if { (eval echo configure:8422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8422 rm -rf conftest*
|
|
8423 eval "ac_cv_func_$ac_func=yes"
|
|
8424 else
|
|
8425 echo "configure: failed program was:" >&5
|
|
8426 cat conftest.$ac_ext >&5
|
|
8427 rm -rf conftest*
|
|
8428 eval "ac_cv_func_$ac_func=no"
|
|
8429 fi
|
|
8430 rm -f conftest*
|
|
8431
|
|
8432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
8433 echo "$ac_t""yes" 1>&6
|
|
8434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
8435 { test "$extra_verbose" = "yes" && cat << EOF
|
|
8436 Defining $ac_tr_func
|
|
8437 EOF
|
|
8438 cat >> confdefs.h <<EOF
|
|
8439 #define $ac_tr_func 1
|
|
8440 EOF
|
|
8441 }
|
|
8442
|
|
8443 else
|
|
8444 echo "$ac_t""no" 1>&6
|
|
8445 fi
|
|
8446 done
|
|
8447
|
|
8448 with_modules=yes
|
|
8449 MOD_CC="../../lib-src/ellcc"
|
|
8450 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src"
|
|
8451 INSTALLPATH="\$(moduledir)"
|
|
8452 MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM}
|
|
8453 OBJECT_TO_BUILD="\$(MODNAME).ell"
|
|
8454 else
|
|
8455 if test "$with_modules" = "yes"; then
|
|
8456 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
|
|
8457 else
|
|
8458 echo " No module support."
|
|
8459 fi
|
|
8460 with_modules=no
|
1491
|
8461 fi
|
|
8462 fi
|
|
8463 if test "$with_modules" != "yes"; then
|
|
8464 MOD_CC="$XEMACS_CC"
|
|
8465 MODCFLAGS="\$(CFLAGS) -I../../src -I\$(srcdir)/../../src"
|
|
8466 INSTALLPATH=""
|
|
8467 MOD_INSTALL_PROGRAM="true"
|
|
8468 OBJECT_TO_BUILD="\$(MODNAME).o"
|
1470
|
8469 fi
|
|
8470 MODARCHDIR=
|
|
8471 MAKE_DOCFILE="../../lib-src/make-docfile"
|
|
8472
|
|
8473
|
|
8474
|
|
8475
|
|
8476
|
|
8477
|
|
8478
|
|
8479
|
997
|
8480
|
149
|
8481 if test "$with_tooltalk" != "no" ; then
|
|
8482 for dir in "" "Tt/" "desktop/" ; do
|
|
8483 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
|
|
8484 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
|
1692
|
8485 echo "configure:8486: checking for ${dir}tt_c.h" >&5
|
|
8486
|
|
8487 cat > conftest.$ac_ext <<EOF
|
|
8488 #line 8489 "configure"
|
149
|
8489 #include "confdefs.h"
|
|
8490 #include <${dir}tt_c.h>
|
|
8491 EOF
|
|
8492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
8493 { (eval echo configure:8494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
8495 if test -z "$ac_err"; then
|
|
8496 rm -rf conftest*
|
|
8497 eval "ac_cv_header_$ac_safe=yes"
|
|
8498 else
|
|
8499 echo "$ac_err" >&5
|
|
8500 echo "configure: failed program was:" >&5
|
|
8501 cat conftest.$ac_ext >&5
|
|
8502 rm -rf conftest*
|
|
8503 eval "ac_cv_header_$ac_safe=no"
|
|
8504 fi
|
|
8505 rm -f conftest*
|
|
8506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8507 echo "$ac_t""yes" 1>&6
|
442
|
8508 tt_c_h_file="${dir}tt_c.h"; break
|
149
|
8509 else
|
|
8510 echo "$ac_t""no" 1>&6
|
|
8511 fi
|
|
8512
|
|
8513 done
|
442
|
8514 if test -z "$tt_c_h_file"; then
|
284
|
8515 if test "$with_tooltalk" = "yes"; then
|
|
8516 (echo "$progname: Usage error:"
|
|
8517 echo " " "Unable to find required tooltalk header files."
|
|
8518 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
8519 fi
|
|
8520 with_tooltalk=no
|
|
8521 fi
|
149
|
8522 fi
|
|
8523 if test "$with_tooltalk" != "no" ; then
|
|
8524 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
|
|
8525
|
|
8526 xe_msg_checking="for tt_message_create in -ltt"
|
|
8527 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
|
|
8528 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1692
|
8529 echo "configure:8530: checking "$xe_msg_checking"" >&5
|
149
|
8530 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
|
|
8531
|
|
8532 xe_check_libs=" -ltt $extra_libs"
|
|
8533 cat > conftest.$ac_ext <<EOF
|
1692
|
8534 #line 8535 "configure"
|
149
|
8535 #include "confdefs.h"
|
|
8536 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8537 /* We use char because int might match the return type of a gcc2
|
|
8538 builtin and then its argument prototype would still apply. */
|
|
8539 char tt_message_create();
|
|
8540
|
|
8541 int main() {
|
|
8542 tt_message_create()
|
|
8543 ; return 0; }
|
|
8544 EOF
|
1692
|
8545 if { (eval echo configure:8546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
8546 rm -rf conftest*
|
|
8547 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8548 else
|
|
8549 echo "configure: failed program was:" >&5
|
|
8550 cat conftest.$ac_ext >&5
|
|
8551 rm -rf conftest*
|
|
8552 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8553 fi
|
|
8554 rm -f conftest*
|
|
8555 xe_check_libs=""
|
|
8556
|
151
|
8557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
8558 echo "$ac_t""yes" 1>&6
|
284
|
8559 tt_libs="-ltt $extra_libs"; break
|
149
|
8560 else
|
|
8561 echo "$ac_t""no" 1>&6
|
|
8562 :
|
|
8563 fi
|
|
8564
|
|
8565
|
|
8566 done
|
284
|
8567 if test -z "$tt_libs"; then
|
|
8568 if test "$with_tooltalk" = "yes"; then
|
|
8569 (echo "$progname: Usage error:"
|
|
8570 echo " " "Unable to find required tooltalk libraries."
|
|
8571 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
8572 fi
|
|
8573 with_tooltalk=no
|
|
8574 fi
|
|
8575 fi
|
|
8576 test -z "$with_tooltalk" && with_tooltalk=yes
|
149
|
8577 if test "$with_tooltalk" = "yes"; then
|
|
8578 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8579 Defining TOOLTALK
|
|
8580 EOF
|
|
8581 cat >> confdefs.h <<\EOF
|
|
8582 #define TOOLTALK 1
|
|
8583 EOF
|
|
8584 }
|
|
8585
|
|
8586 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
8587 Defining TT_C_H_FILE = "$tt_c_h_file"
|
|
8588 EOF
|
|
8589 cat >> confdefs.h <<EOF
|
|
8590 #define TT_C_H_FILE "$tt_c_h_file"
|
149
|
8591 EOF
|
|
8592 }
|
|
8593
|
151
|
8594 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
|
149
|
8595 fi
|
|
8596
|
|
8597 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
|
|
8598 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
|
1692
|
8599 echo "configure:8600: checking for Dt/Dt.h" >&5
|
|
8600
|
|
8601 cat > conftest.$ac_ext <<EOF
|
|
8602 #line 8603 "configure"
|
149
|
8603 #include "confdefs.h"
|
|
8604 #include <Dt/Dt.h>
|
|
8605 EOF
|
|
8606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
8607 { (eval echo configure:8608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
8609 if test -z "$ac_err"; then
|
|
8610 rm -rf conftest*
|
|
8611 eval "ac_cv_header_$ac_safe=yes"
|
|
8612 else
|
|
8613 echo "$ac_err" >&5
|
|
8614 echo "configure: failed program was:" >&5
|
|
8615 cat conftest.$ac_ext >&5
|
|
8616 rm -rf conftest*
|
|
8617 eval "ac_cv_header_$ac_safe=no"
|
|
8618 fi
|
|
8619 rm -f conftest*
|
|
8620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8621 echo "$ac_t""yes" 1>&6
|
|
8622 :
|
|
8623 else
|
|
8624 echo "$ac_t""no" 1>&6
|
|
8625 with_cde=no
|
136
|
8626 fi
|
|
8627 }
|
149
|
8628 test -z "$with_cde" && {
|
|
8629 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
|
1692
|
8630 echo "configure:8631: checking for DtDndDragStart in -lDtSvc" >&5
|
149
|
8631 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
|
|
8632
|
|
8633 xe_check_libs=" -lDtSvc "
|
|
8634 cat > conftest.$ac_ext <<EOF
|
1692
|
8635 #line 8636 "configure"
|
149
|
8636 #include "confdefs.h"
|
|
8637 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8638 /* We use char because int might match the return type of a gcc2
|
|
8639 builtin and then its argument prototype would still apply. */
|
|
8640 char DtDndDragStart();
|
|
8641
|
|
8642 int main() {
|
|
8643 DtDndDragStart()
|
|
8644 ; return 0; }
|
|
8645 EOF
|
1692
|
8646 if { (eval echo configure:8647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
8647 rm -rf conftest*
|
|
8648 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8649 else
|
|
8650 echo "configure: failed program was:" >&5
|
|
8651 cat conftest.$ac_ext >&5
|
|
8652 rm -rf conftest*
|
|
8653 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8654 fi
|
|
8655 rm -f conftest*
|
|
8656 xe_check_libs=""
|
|
8657
|
151
|
8658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
8659 echo "$ac_t""yes" 1>&6
|
|
8660 :
|
|
8661 else
|
|
8662 echo "$ac_t""no" 1>&6
|
|
8663 with_cde=no
|
|
8664 fi
|
|
8665
|
|
8666 }
|
582
|
8667 if test "$with_dragndrop" = "no" ; then
|
|
8668 if test "$with_cde" = "yes" ; then
|
|
8669 echo "configure: warning: --with-cde forced to \`no'; no generic Drag'n'Drop support" 1>&2
|
|
8670 fi
|
|
8671 with_cde=no
|
|
8672 fi
|
149
|
8673 test -z "$with_cde" && with_cde=yes
|
|
8674 if test "$with_cde" = "yes" ; then
|
|
8675 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8676 Defining HAVE_CDE
|
|
8677 EOF
|
|
8678 cat >> confdefs.h <<\EOF
|
|
8679 #define HAVE_CDE 1
|
|
8680 EOF
|
|
8681 }
|
|
8682
|
151
|
8683 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
|
282
|
8684 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
|
149
|
8685 with_tooltalk=yes # CDE requires Tooltalk
|
167
|
8686 need_motif=yes # CDE requires Motif
|
149
|
8687 fi
|
|
8688
|
288
|
8689 test "$window_system" != "x11" && with_offix=no
|
|
8690 if test "$with_xmu" != yes -a "$with_x11" = yes; then
|
582
|
8691 if test "$with_offix" = "yes" ; then
|
|
8692 echo "configure: warning: --with-offix forced to \`no'; no real Xmu support" 1>&2
|
|
8693 fi
|
288
|
8694 with_offix=no
|
|
8695 fi
|
|
8696 if test "$with_dragndrop" = no; then
|
582
|
8697 if test "$with_offix" = "yes" ; then
|
|
8698 echo "configure: warning: --with-offix forced to \`no'; no generic Drag'n'Drop support" 1>&2
|
|
8699 fi
|
288
|
8700 with_offix=no
|
|
8701 fi
|
|
8702 if test "$with_cde" = yes; then
|
582
|
8703 if test "$with_offix" = "yes" ; then
|
|
8704 echo "configure: warning: --with-offix forced to \`no'; CDE already found" 1>&2
|
|
8705 fi
|
288
|
8706 with_offix=no
|
|
8707 fi
|
300
|
8708 test -z "$with_offix" && with_offix=no
|
288
|
8709 if test "$with_offix" = "yes"; then
|
|
8710 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8711 Defining HAVE_OFFIX_DND
|
|
8712 EOF
|
|
8713 cat >> confdefs.h <<\EOF
|
|
8714 #define HAVE_OFFIX_DND 1
|
|
8715 EOF
|
|
8716 }
|
|
8717
|
|
8718 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
|
|
8719 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
|
|
8720 fi
|
462
|
8721 if test "$with_gtk" = "yes"; then
|
|
8722 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
|
|
8723 fi
|
288
|
8724
|
282
|
8725 if test "$with_dragndrop" != "no" ; then
|
446
|
8726 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
|
1692
|
8727 echo "configure:8728: checking if drag and drop API is needed" >&5
|
282
|
8728 if test -n "$dragndrop_proto" ; then
|
|
8729 with_dragndrop=yes
|
|
8730 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
|
|
8731 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8732 Defining HAVE_DRAGNDROP
|
|
8733 EOF
|
|
8734 cat >> confdefs.h <<\EOF
|
|
8735 #define HAVE_DRAGNDROP 1
|
|
8736 EOF
|
|
8737 }
|
|
8738
|
|
8739 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
|
|
8740 else
|
|
8741 with_dragndrop=no
|
|
8742 echo "$ac_t""no" 1>&6
|
|
8743 fi
|
|
8744 fi
|
|
8745
|
1470
|
8746 echo "checking for LDAP" 1>&6
|
1692
|
8747 echo "configure:8748: checking for LDAP" >&5
|
1470
|
8748 ldap_libs=
|
|
8749 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
|
|
8750 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
|
1692
|
8751 echo "configure:8752: checking for ldap.h" >&5
|
|
8752
|
|
8753 cat > conftest.$ac_ext <<EOF
|
|
8754 #line 8755 "configure"
|
1470
|
8755 #include "confdefs.h"
|
|
8756 #include <ldap.h>
|
|
8757 EOF
|
|
8758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
8759 { (eval echo configure:8760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1470
|
8760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
8761 if test -z "$ac_err"; then
|
|
8762 rm -rf conftest*
|
|
8763 eval "ac_cv_header_$ac_safe=yes"
|
|
8764 else
|
|
8765 echo "$ac_err" >&5
|
|
8766 echo "configure: failed program was:" >&5
|
|
8767 cat conftest.$ac_ext >&5
|
|
8768 rm -rf conftest*
|
|
8769 eval "ac_cv_header_$ac_safe=no"
|
|
8770 fi
|
|
8771 rm -f conftest*
|
|
8772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8773 echo "$ac_t""yes" 1>&6
|
|
8774 :
|
|
8775 else
|
|
8776 echo "$ac_t""no" 1>&6
|
|
8777 with_ldap=no
|
|
8778 fi
|
|
8779 }
|
|
8780 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
|
|
8781 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
|
1692
|
8782 echo "configure:8783: checking for lber.h" >&5
|
|
8783
|
|
8784 cat > conftest.$ac_ext <<EOF
|
|
8785 #line 8786 "configure"
|
1470
|
8786 #include "confdefs.h"
|
|
8787 #include <lber.h>
|
|
8788 EOF
|
|
8789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
8790 { (eval echo configure:8791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1470
|
8791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
8792 if test -z "$ac_err"; then
|
|
8793 rm -rf conftest*
|
|
8794 eval "ac_cv_header_$ac_safe=yes"
|
|
8795 else
|
|
8796 echo "$ac_err" >&5
|
|
8797 echo "configure: failed program was:" >&5
|
|
8798 cat conftest.$ac_ext >&5
|
|
8799 rm -rf conftest*
|
|
8800 eval "ac_cv_header_$ac_safe=no"
|
|
8801 fi
|
|
8802 rm -f conftest*
|
|
8803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8804 echo "$ac_t""yes" 1>&6
|
|
8805 :
|
|
8806 else
|
|
8807 echo "$ac_t""no" 1>&6
|
|
8808 with_ldap=no
|
|
8809 fi
|
|
8810 }
|
|
8811 if test "$with_ldap" != "no"; then
|
|
8812
|
|
8813 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
|
1692
|
8814 echo "configure:8815: checking for ldap_search in -lldap" >&5
|
1470
|
8815 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
|
|
8816
|
|
8817 xe_check_libs=" -lldap "
|
|
8818 cat > conftest.$ac_ext <<EOF
|
1692
|
8819 #line 8820 "configure"
|
1470
|
8820 #include "confdefs.h"
|
|
8821 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8822 /* We use char because int might match the return type of a gcc2
|
|
8823 builtin and then its argument prototype would still apply. */
|
|
8824 char ldap_search();
|
|
8825
|
|
8826 int main() {
|
|
8827 ldap_search()
|
|
8828 ; return 0; }
|
|
8829 EOF
|
1692
|
8830 if { (eval echo configure:8831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8831 rm -rf conftest*
|
|
8832 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8833 else
|
|
8834 echo "configure: failed program was:" >&5
|
|
8835 cat conftest.$ac_ext >&5
|
|
8836 rm -rf conftest*
|
|
8837 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8838 fi
|
|
8839 rm -f conftest*
|
|
8840 xe_check_libs=""
|
|
8841
|
|
8842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8843 echo "$ac_t""yes" 1>&6
|
|
8844 with_ldap_nolber=yes
|
|
8845 else
|
|
8846 echo "$ac_t""no" 1>&6
|
|
8847 with_ldap_nolber=no
|
|
8848 fi
|
|
8849
|
|
8850
|
|
8851 test "$with_ldap_nolber" = "no" && {
|
|
8852 xe_msg_checking="for ldap_open in -lldap"
|
|
8853 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
|
|
8854 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1692
|
8855 echo "configure:8856: checking "$xe_msg_checking"" >&5
|
1470
|
8856 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
8857
|
|
8858 xe_check_libs=" -lldap -llber"
|
|
8859 cat > conftest.$ac_ext <<EOF
|
1692
|
8860 #line 8861 "configure"
|
1470
|
8861 #include "confdefs.h"
|
|
8862 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8863 /* We use char because int might match the return type of a gcc2
|
|
8864 builtin and then its argument prototype would still apply. */
|
|
8865 char ldap_open();
|
|
8866
|
|
8867 int main() {
|
|
8868 ldap_open()
|
|
8869 ; return 0; }
|
|
8870 EOF
|
1692
|
8871 if { (eval echo configure:8872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8872 rm -rf conftest*
|
|
8873 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8874 else
|
|
8875 echo "configure: failed program was:" >&5
|
|
8876 cat conftest.$ac_ext >&5
|
|
8877 rm -rf conftest*
|
|
8878 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8879 fi
|
|
8880 rm -f conftest*
|
|
8881 xe_check_libs=""
|
|
8882
|
|
8883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8884 echo "$ac_t""yes" 1>&6
|
|
8885 with_ldap_lber=yes
|
|
8886 else
|
|
8887 echo "$ac_t""no" 1>&6
|
|
8888 with_ldap_lber=no
|
|
8889 fi
|
|
8890
|
|
8891 }
|
|
8892 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
|
|
8893 xe_msg_checking="for ldap_open in -lldap"
|
|
8894 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
|
|
8895 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1692
|
8896 echo "configure:8897: checking "$xe_msg_checking"" >&5
|
1470
|
8897 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
8898
|
|
8899 xe_check_libs=" -lldap -llber -lkrb"
|
|
8900 cat > conftest.$ac_ext <<EOF
|
1692
|
8901 #line 8902 "configure"
|
1470
|
8902 #include "confdefs.h"
|
|
8903 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8904 /* We use char because int might match the return type of a gcc2
|
|
8905 builtin and then its argument prototype would still apply. */
|
|
8906 char ldap_open();
|
|
8907
|
|
8908 int main() {
|
|
8909 ldap_open()
|
|
8910 ; return 0; }
|
|
8911 EOF
|
1692
|
8912 if { (eval echo configure:8913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8913 rm -rf conftest*
|
|
8914 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8915 else
|
|
8916 echo "configure: failed program was:" >&5
|
|
8917 cat conftest.$ac_ext >&5
|
|
8918 rm -rf conftest*
|
|
8919 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8920 fi
|
|
8921 rm -f conftest*
|
|
8922 xe_check_libs=""
|
|
8923
|
|
8924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8925 echo "$ac_t""yes" 1>&6
|
|
8926 with_ldap_krb=yes
|
|
8927 else
|
|
8928 echo "$ac_t""no" 1>&6
|
|
8929 with_ldap_krb=no
|
|
8930 fi
|
|
8931
|
|
8932 }
|
|
8933 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
|
|
8934 xe_msg_checking="for ldap_open in -lldap"
|
|
8935 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
|
|
8936 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1692
|
8937 echo "configure:8938: checking "$xe_msg_checking"" >&5
|
1470
|
8938 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
8939
|
|
8940 xe_check_libs=" -lldap -llber -lkrb -ldes"
|
|
8941 cat > conftest.$ac_ext <<EOF
|
1692
|
8942 #line 8943 "configure"
|
1470
|
8943 #include "confdefs.h"
|
|
8944 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8945 /* We use char because int might match the return type of a gcc2
|
|
8946 builtin and then its argument prototype would still apply. */
|
|
8947 char ldap_open();
|
|
8948
|
|
8949 int main() {
|
|
8950 ldap_open()
|
|
8951 ; return 0; }
|
|
8952 EOF
|
1692
|
8953 if { (eval echo configure:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
8954 rm -rf conftest*
|
|
8955 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8956 else
|
|
8957 echo "configure: failed program was:" >&5
|
|
8958 cat conftest.$ac_ext >&5
|
|
8959 rm -rf conftest*
|
|
8960 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8961 fi
|
|
8962 rm -f conftest*
|
|
8963 xe_check_libs=""
|
|
8964
|
|
8965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8966 echo "$ac_t""yes" 1>&6
|
|
8967 with_ldap_krbdes=yes
|
|
8968 else
|
|
8969 echo "$ac_t""no" 1>&6
|
|
8970 with_ldap_krbdes=no
|
|
8971 fi
|
|
8972
|
|
8973 }
|
|
8974 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
|
|
8975 fi
|
|
8976 if test "$with_ldap" = "yes"; then
|
|
8977 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8978 Defining HAVE_LDAP
|
|
8979 EOF
|
|
8980 cat >> confdefs.h <<\EOF
|
|
8981 #define HAVE_LDAP 1
|
|
8982 EOF
|
|
8983 }
|
|
8984
|
|
8985 if test "$with_ldap_nolber" = "yes" ; then
|
|
8986 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
|
|
8987 else
|
|
8988 if test "$with_ldap_krb" = "yes" ; then
|
|
8989 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
|
|
8990 fi
|
|
8991 if test "$with_ldap_krbdes" = "yes" ; then
|
|
8992 ldap_libs="-ldes $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$ldap_libs"; fi
|
|
8993 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
|
|
8994 fi
|
|
8995 ldap_libs="-llber $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$ldap_libs"; fi
|
|
8996 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
|
|
8997 fi
|
|
8998 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
|
|
8999 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
|
|
9000 do
|
|
9001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
9002 echo "configure:9003: checking for $ac_func" >&5
|
|
9003
|
|
9004 cat > conftest.$ac_ext <<EOF
|
|
9005 #line 9006 "configure"
|
1470
|
9006 #include "confdefs.h"
|
|
9007 /* System header to define __stub macros and hopefully few prototypes,
|
|
9008 which can conflict with char $ac_func(); below. */
|
|
9009 #include <assert.h>
|
|
9010 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9011 /* We use char because int might match the return type of a gcc2
|
|
9012 builtin and then its argument prototype would still apply. */
|
|
9013 char $ac_func();
|
|
9014
|
|
9015 int main() {
|
|
9016
|
|
9017 /* The GNU C library defines this for functions which it implements
|
|
9018 to always fail with ENOSYS. Some functions are actually named
|
|
9019 something starting with __ and the normal name is an alias. */
|
|
9020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
9021 choke me
|
|
9022 #else
|
|
9023 $ac_func();
|
|
9024 #endif
|
|
9025
|
|
9026 ; return 0; }
|
|
9027 EOF
|
1692
|
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_func_$ac_func=yes"
|
|
9031 else
|
|
9032 echo "configure: failed program was:" >&5
|
|
9033 cat conftest.$ac_ext >&5
|
|
9034 rm -rf conftest*
|
|
9035 eval "ac_cv_func_$ac_func=no"
|
|
9036 fi
|
|
9037 rm -f conftest*
|
|
9038
|
|
9039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
9040 echo "$ac_t""yes" 1>&6
|
|
9041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
9042 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9043 Defining $ac_tr_func
|
|
9044 EOF
|
|
9045 cat >> confdefs.h <<EOF
|
|
9046 #define $ac_tr_func 1
|
|
9047 EOF
|
|
9048 }
|
|
9049
|
|
9050 else
|
|
9051 echo "$ac_t""no" 1>&6
|
|
9052 fi
|
|
9053 done
|
|
9054
|
|
9055 LIBS="$save_LIBS"
|
|
9056 MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi
|
|
9057 need_modules_common=yes
|
|
9058 if test "$with_modules" = "yes"; then
|
|
9059 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
|
|
9060 fi
|
|
9061 fi
|
|
9062
|
|
9063
|
|
9064 postgresql_libs=
|
|
9065 if test "$with_postgresql" != "no"; then
|
|
9066 echo "checking for PostgreSQL" 1>&6
|
1692
|
9067 echo "configure:9068: checking for PostgreSQL" >&5
|
1470
|
9068
|
|
9069 for header_dir in "" "pgsql/" "postgresql/"; do
|
|
9070 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
|
|
9071 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
|
1692
|
9072 echo "configure:9073: checking for ${header_dir}libpq-fe.h" >&5
|
|
9073
|
|
9074 cat > conftest.$ac_ext <<EOF
|
|
9075 #line 9076 "configure"
|
1470
|
9076 #include "confdefs.h"
|
|
9077 #include <${header_dir}libpq-fe.h>
|
|
9078 EOF
|
|
9079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
9080 { (eval echo configure:9081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1470
|
9081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9082 if test -z "$ac_err"; then
|
|
9083 rm -rf conftest*
|
|
9084 eval "ac_cv_header_$ac_safe=yes"
|
|
9085 else
|
|
9086 echo "$ac_err" >&5
|
|
9087 echo "configure: failed program was:" >&5
|
|
9088 cat conftest.$ac_ext >&5
|
|
9089 rm -rf conftest*
|
|
9090 eval "ac_cv_header_$ac_safe=no"
|
|
9091 fi
|
|
9092 rm -f conftest*
|
|
9093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9094 echo "$ac_t""yes" 1>&6
|
|
9095 libpq_fe_h_file=${header_dir}libpq-fe.h; break
|
|
9096 else
|
|
9097 echo "$ac_t""no" 1>&6
|
|
9098 fi
|
|
9099
|
|
9100 done
|
|
9101
|
|
9102 test -n "$libpq_fe_h_file" && {
|
|
9103 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
|
1692
|
9104 echo "configure:9105: checking for PQconnectdb in -lpq" >&5
|
1470
|
9105 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
|
|
9106
|
|
9107 xe_check_libs=" -lpq "
|
|
9108 cat > conftest.$ac_ext <<EOF
|
1692
|
9109 #line 9110 "configure"
|
1470
|
9110 #include "confdefs.h"
|
|
9111 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9112 /* We use char because int might match the return type of a gcc2
|
|
9113 builtin and then its argument prototype would still apply. */
|
|
9114 char PQconnectdb();
|
|
9115
|
|
9116 int main() {
|
|
9117 PQconnectdb()
|
|
9118 ; return 0; }
|
|
9119 EOF
|
1692
|
9120 if { (eval echo configure:9121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9121 rm -rf conftest*
|
|
9122 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9123 else
|
|
9124 echo "configure: failed program was:" >&5
|
|
9125 cat conftest.$ac_ext >&5
|
|
9126 rm -rf conftest*
|
|
9127 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9128 fi
|
|
9129 rm -f conftest*
|
|
9130 xe_check_libs=""
|
|
9131
|
|
9132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9133 echo "$ac_t""yes" 1>&6
|
|
9134 have_libpq=yes
|
|
9135 else
|
|
9136 echo "$ac_t""no" 1>&6
|
|
9137 fi
|
|
9138
|
|
9139 }
|
|
9140
|
|
9141 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
|
|
9142 with_postgresql=yes
|
|
9143 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9144 Defining HAVE_POSTGRESQL
|
|
9145 EOF
|
|
9146 cat >> confdefs.h <<\EOF
|
|
9147 #define HAVE_POSTGRESQL 1
|
|
9148 EOF
|
|
9149 }
|
|
9150
|
|
9151
|
|
9152 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
|
1692
|
9153 echo "configure:9154: checking for PQconnectStart in -lpq" >&5
|
1470
|
9154 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
|
|
9155
|
|
9156 xe_check_libs=" -lpq "
|
|
9157 cat > conftest.$ac_ext <<EOF
|
1692
|
9158 #line 9159 "configure"
|
1470
|
9159 #include "confdefs.h"
|
|
9160 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9161 /* We use char because int might match the return type of a gcc2
|
|
9162 builtin and then its argument prototype would still apply. */
|
|
9163 char PQconnectStart();
|
|
9164
|
|
9165 int main() {
|
|
9166 PQconnectStart()
|
|
9167 ; return 0; }
|
|
9168 EOF
|
1692
|
9169 if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1470
|
9170 rm -rf conftest*
|
|
9171 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9172 else
|
|
9173 echo "configure: failed program was:" >&5
|
|
9174 cat conftest.$ac_ext >&5
|
|
9175 rm -rf conftest*
|
|
9176 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9177 fi
|
|
9178 rm -f conftest*
|
|
9179 xe_check_libs=""
|
|
9180
|
|
9181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9182 echo "$ac_t""yes" 1>&6
|
|
9183 with_postgresqlv7=yes;
|
|
9184 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9185 Defining HAVE_POSTGRESQLV7
|
|
9186 EOF
|
|
9187 cat >> confdefs.h <<\EOF
|
|
9188 #define HAVE_POSTGRESQLV7 1
|
|
9189 EOF
|
|
9190 }
|
|
9191
|
|
9192 else
|
|
9193 echo "$ac_t""no" 1>&6
|
|
9194 fi
|
|
9195
|
|
9196
|
|
9197 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9198 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
|
|
9199 EOF
|
|
9200 cat >> confdefs.h <<EOF
|
|
9201 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
|
|
9202 EOF
|
|
9203 }
|
|
9204
|
|
9205 postgresql_libs="-lpq $postgresql_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$postgresql_libs"; fi
|
|
9206 MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi
|
|
9207 need_modules_common=yes
|
|
9208 if test "$with_modules" = "yes"; then
|
|
9209 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
|
|
9210 fi
|
|
9211 elif test "$with_postgresql" = "yes"; then
|
|
9212 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
|
|
9213 fi
|
|
9214 fi
|
|
9215
|
149
|
9216
|
997
|
9217
|
278
|
9218 if test "$window_system" != "none"; then
|
|
9219 echo "checking for graphics libraries" 1>&6
|
1692
|
9220 echo "configure:9221: checking for graphics libraries" >&5
|
724
|
9221
|
|
9222 libpath_xpm=
|
|
9223 incpath_xpm=
|
|
9224 case "$opsys" in
|
|
9225 cygwin*)
|
|
9226 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
|
|
9227 cygwin_top=`eval "dirname ${cygwin_top}"`;
|
|
9228 cygwin_top="${cygwin_top}/..";
|
|
9229 case "$window_system" in
|
|
9230 x11) ;;
|
|
9231 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
|
|
9232 incpath_xpm="-I${cygwin_top}/include/noX"
|
|
9233 ;;
|
|
9234 gtk) ;;
|
|
9235 none) ;;
|
|
9236 *) ;;
|
|
9237 esac
|
|
9238 ;;
|
|
9239 *) ;;
|
|
9240 esac
|
373
|
9241 xpm_problem=""
|
|
9242 if test -z "$with_xpm"; then
|
724
|
9243 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
|
|
9244 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
|
193
|
9245 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
|
1692
|
9246 echo "configure:9247: checking for Xpm - no older than 3.4f" >&5
|
272
|
9247 xe_check_libs=-lXpm
|
|
9248 cat > conftest.$ac_ext <<EOF
|
1692
|
9249 #line 9250 "configure"
|
442
|
9250 #include "confdefs.h"
|
|
9251 #define XPM_NUMBERS
|
149
|
9252 #include <X11/xpm.h>
|
272
|
9253 int main(int c, char **v) {
|
|
9254 return c == 1 ? 0 :
|
|
9255 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
|
|
9256 XpmIncludeVersion < 30406 ? 2 : 0 ;}
|
|
9257 EOF
|
1692
|
9258 if { (eval echo configure:9259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
159
|
9259 then
|
272
|
9260 ./conftest dummy_arg; xpm_status=$?;
|
373
|
9261 if test "$xpm_status" = "0"; then
|
272
|
9262 with_xpm=yes;
|
|
9263 else
|
|
9264 with_xpm=no;
|
373
|
9265 if test "$xpm_status" = "1"; then
|
272
|
9266 xpm_problem="Xpm library version and header file version don't match!"
|
373
|
9267 elif test "$xpm_status" = "2"; then
|
272
|
9268 xpm_problem="Xpm library version is too old!"
|
|
9269 else
|
|
9270 xpm_problem="Internal xpm detection logic error!"
|
|
9271 fi
|
|
9272 echo "
|
373
|
9273 *** WARNING *** $xpm_problem
|
278
|
9274 I'm not touching that with a 10-foot pole!
|
|
9275 If you really want to use the installed version of Xpm, rerun
|
373
|
9276 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
|
278
|
9277 fi
|
159
|
9278 else
|
373
|
9279 conftest_rc="$?"
|
159
|
9280 echo "configure: failed program was:" >&5
|
|
9281 cat conftest.$ac_ext >&5
|
|
9282 rm -fr conftest*
|
|
9283 with_xpm=no
|
|
9284 fi
|
|
9285 rm -fr conftest*
|
272
|
9286 xe_check_libs=
|
|
9287 echo "$ac_t""$with_xpm" 1>&6
|
193
|
9288 fi
|
|
9289 if test "$with_xpm" = "yes"; then
|
458
|
9290 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9291 Defining HAVE_XPM
|
|
9292 EOF
|
|
9293 cat >> confdefs.h <<\EOF
|
|
9294 #define HAVE_XPM 1
|
|
9295 EOF
|
|
9296 }
|
|
9297
|
724
|
9298 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
|
193
|
9299 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
|
724
|
9300 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
|
278
|
9301 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
|
1692
|
9302 echo "configure:9303: checking for \"FOR_MSW\" xpm" >&5
|
278
|
9303 xe_check_libs=-lXpm
|
|
9304 cat > conftest.$ac_ext <<EOF
|
1692
|
9305 #line 9306 "configure"
|
278
|
9306 #include "confdefs.h"
|
|
9307
|
|
9308 int main() {
|
|
9309 XpmCreatePixmapFromData()
|
|
9310 ; return 0; }
|
|
9311 EOF
|
1692
|
9312 if { (eval echo configure:9313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
9313 rm -rf conftest*
|
|
9314 xpm_for_msw=no
|
|
9315 else
|
|
9316 echo "configure: failed program was:" >&5
|
|
9317 cat conftest.$ac_ext >&5
|
|
9318 rm -rf conftest*
|
|
9319 xpm_for_msw=yes
|
|
9320 fi
|
|
9321 rm -f conftest*
|
|
9322 xe_check_libs=
|
|
9323 echo "$ac_t""$xpm_for_msw" 1>&6
|
|
9324 if test "$xpm_for_msw" = "yes"; then
|
|
9325 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9326 Defining FOR_MSW
|
|
9327 EOF
|
|
9328 cat >> confdefs.h <<\EOF
|
|
9329 #define FOR_MSW 1
|
|
9330 EOF
|
|
9331 }
|
|
9332
|
|
9333 fi
|
|
9334 fi
|
|
9335
|
388
|
9336 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
9337 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
1692
|
9338 echo "configure:9339: checking for compface.h" >&5
|
|
9339
|
|
9340 cat > conftest.$ac_ext <<EOF
|
|
9341 #line 9342 "configure"
|
388
|
9342 #include "confdefs.h"
|
|
9343 #include <compface.h>
|
|
9344 EOF
|
|
9345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
9346 { (eval echo configure:9347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
388
|
9348 if test -z "$ac_err"; then
|
|
9349 rm -rf conftest*
|
|
9350 eval "ac_cv_header_$ac_safe=yes"
|
|
9351 else
|
|
9352 echo "$ac_err" >&5
|
|
9353 echo "configure: failed program was:" >&5
|
|
9354 cat conftest.$ac_ext >&5
|
|
9355 rm -rf conftest*
|
|
9356 eval "ac_cv_header_$ac_safe=no"
|
|
9357 fi
|
|
9358 rm -f conftest*
|
|
9359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9360 echo "$ac_t""yes" 1>&6
|
|
9361 :
|
|
9362 else
|
|
9363 echo "$ac_t""no" 1>&6
|
|
9364 with_xface=no
|
|
9365 fi
|
|
9366 }
|
|
9367 test -z "$with_xface" && {
|
|
9368 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
1692
|
9369 echo "configure:9370: checking for UnGenFace in -lcompface" >&5
|
388
|
9370 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
9371
|
|
9372 xe_check_libs=" -lcompface "
|
|
9373 cat > conftest.$ac_ext <<EOF
|
1692
|
9374 #line 9375 "configure"
|
388
|
9375 #include "confdefs.h"
|
|
9376 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9377 /* We use char because int might match the return type of a gcc2
|
|
9378 builtin and then its argument prototype would still apply. */
|
|
9379 char UnGenFace();
|
|
9380
|
|
9381 int main() {
|
|
9382 UnGenFace()
|
|
9383 ; return 0; }
|
|
9384 EOF
|
1692
|
9385 if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
388
|
9386 rm -rf conftest*
|
|
9387 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9388 else
|
|
9389 echo "configure: failed program was:" >&5
|
|
9390 cat conftest.$ac_ext >&5
|
|
9391 rm -rf conftest*
|
|
9392 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9393 fi
|
|
9394 rm -f conftest*
|
|
9395 xe_check_libs=""
|
|
9396
|
|
9397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9398 echo "$ac_t""yes" 1>&6
|
|
9399 :
|
|
9400 else
|
|
9401 echo "$ac_t""no" 1>&6
|
|
9402 with_xface=no
|
|
9403 fi
|
|
9404
|
|
9405 }
|
|
9406 test -z "$with_xface" && with_xface=yes
|
|
9407 if test "$with_xface" = "yes"; then
|
|
9408 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9409 Defining HAVE_XFACE
|
|
9410 EOF
|
|
9411 cat >> confdefs.h <<\EOF
|
|
9412 #define HAVE_XFACE 1
|
|
9413 EOF
|
|
9414 }
|
|
9415
|
|
9416 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
|
|
9417 fi
|
|
9418
|
373
|
9419 if test "$with_gif" != "no"; then
|
|
9420 with_gif="yes"
|
|
9421 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9422 Defining HAVE_GIF
|
|
9423 EOF
|
|
9424 cat >> confdefs.h <<\EOF
|
|
9425 #define HAVE_GIF 1
|
|
9426 EOF
|
|
9427 }
|
|
9428
|
|
9429 fi
|
|
9430
|
278
|
9431 if test "$with_png $with_tiff" != "no no"; then
|
|
9432
|
|
9433 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
|
1692
|
9434 echo "configure:9435: checking for inflate in -lc" >&5
|
278
|
9435 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
|
|
9436
|
|
9437 xe_check_libs=" -lc "
|
|
9438 cat > conftest.$ac_ext <<EOF
|
1692
|
9439 #line 9440 "configure"
|
149
|
9440 #include "confdefs.h"
|
|
9441 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9442 /* We use char because int might match the return type of a gcc2
|
|
9443 builtin and then its argument prototype would still apply. */
|
278
|
9444 char inflate();
|
|
9445
|
|
9446 int main() {
|
|
9447 inflate()
|
|
9448 ; return 0; }
|
|
9449 EOF
|
1692
|
9450 if { (eval echo configure:9451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
9451 rm -rf conftest*
|
|
9452 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9453 else
|
|
9454 echo "configure: failed program was:" >&5
|
|
9455 cat conftest.$ac_ext >&5
|
|
9456 rm -rf conftest*
|
|
9457 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9458 fi
|
|
9459 rm -f conftest*
|
|
9460 xe_check_libs=""
|
|
9461
|
151
|
9462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
9463 echo "$ac_t""yes" 1>&6
|
278
|
9464 :
|
|
9465 else
|
|
9466 echo "$ac_t""no" 1>&6
|
|
9467
|
|
9468 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
|
1692
|
9469 echo "configure:9470: checking for inflate in -lz" >&5
|
278
|
9470 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
|
|
9471
|
|
9472 xe_check_libs=" -lz "
|
|
9473 cat > conftest.$ac_ext <<EOF
|
1692
|
9474 #line 9475 "configure"
|
278
|
9475 #include "confdefs.h"
|
|
9476 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9477 /* We use char because int might match the return type of a gcc2
|
|
9478 builtin and then its argument prototype would still apply. */
|
|
9479 char inflate();
|
|
9480
|
|
9481 int main() {
|
|
9482 inflate()
|
|
9483 ; return 0; }
|
|
9484 EOF
|
1692
|
9485 if { (eval echo configure:9486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
9486 rm -rf conftest*
|
|
9487 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9488 else
|
|
9489 echo "configure: failed program was:" >&5
|
|
9490 cat conftest.$ac_ext >&5
|
|
9491 rm -rf conftest*
|
|
9492 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9493 fi
|
|
9494 rm -f conftest*
|
|
9495 xe_check_libs=""
|
|
9496
|
|
9497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9498 echo "$ac_t""yes" 1>&6
|
|
9499 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
|
|
9500 else
|
|
9501 echo "$ac_t""no" 1>&6
|
|
9502
|
|
9503 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
|
1692
|
9504 echo "configure:9505: checking for inflate in -lgz" >&5
|
278
|
9505 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
|
|
9506
|
|
9507 xe_check_libs=" -lgz "
|
|
9508 cat > conftest.$ac_ext <<EOF
|
1692
|
9509 #line 9510 "configure"
|
278
|
9510 #include "confdefs.h"
|
|
9511 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9512 /* We use char because int might match the return type of a gcc2
|
|
9513 builtin and then its argument prototype would still apply. */
|
|
9514 char inflate();
|
|
9515
|
|
9516 int main() {
|
|
9517 inflate()
|
|
9518 ; return 0; }
|
|
9519 EOF
|
1692
|
9520 if { (eval echo configure:9521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
9521 rm -rf conftest*
|
|
9522 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9523 else
|
|
9524 echo "configure: failed program was:" >&5
|
|
9525 cat conftest.$ac_ext >&5
|
|
9526 rm -rf conftest*
|
|
9527 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9528 fi
|
|
9529 rm -f conftest*
|
|
9530 xe_check_libs=""
|
|
9531
|
|
9532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9533 echo "$ac_t""yes" 1>&6
|
|
9534 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
|
|
9535 else
|
|
9536 echo "$ac_t""no" 1>&6
|
|
9537 fi
|
|
9538
|
|
9539
|
|
9540 fi
|
|
9541
|
|
9542
|
|
9543 fi
|
|
9544
|
|
9545
|
193
|
9546 fi
|
|
9547
|
251
|
9548 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
|
|
9549 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
|
1692
|
9550 echo "configure:9551: checking for jpeglib.h" >&5
|
|
9551
|
|
9552 cat > conftest.$ac_ext <<EOF
|
|
9553 #line 9554 "configure"
|
251
|
9554 #include "confdefs.h"
|
|
9555 #include <jpeglib.h>
|
0
|
9556 EOF
|
149
|
9557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
9558 { (eval echo configure:9559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
251
|
9560 if test -z "$ac_err"; then
|
|
9561 rm -rf conftest*
|
|
9562 eval "ac_cv_header_$ac_safe=yes"
|
|
9563 else
|
|
9564 echo "$ac_err" >&5
|
|
9565 echo "configure: failed program was:" >&5
|
|
9566 cat conftest.$ac_ext >&5
|
|
9567 rm -rf conftest*
|
|
9568 eval "ac_cv_header_$ac_safe=no"
|
|
9569 fi
|
|
9570 rm -f conftest*
|
|
9571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9572 echo "$ac_t""yes" 1>&6
|
|
9573 :
|
|
9574 else
|
|
9575 echo "$ac_t""no" 1>&6
|
|
9576 with_jpeg=no
|
|
9577 fi
|
|
9578 }
|
|
9579 test -z "$with_jpeg" && {
|
|
9580 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
|
1692
|
9581 echo "configure:9582: checking for jpeg_destroy_decompress in -ljpeg" >&5
|
251
|
9582 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
|
|
9583
|
|
9584 xe_check_libs=" -ljpeg "
|
|
9585 cat > conftest.$ac_ext <<EOF
|
1692
|
9586 #line 9587 "configure"
|
251
|
9587 #include "confdefs.h"
|
|
9588 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9589 /* We use char because int might match the return type of a gcc2
|
|
9590 builtin and then its argument prototype would still apply. */
|
|
9591 char jpeg_destroy_decompress();
|
|
9592
|
|
9593 int main() {
|
|
9594 jpeg_destroy_decompress()
|
|
9595 ; return 0; }
|
|
9596 EOF
|
1692
|
9597 if { (eval echo configure:9598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
251
|
9598 rm -rf conftest*
|
|
9599 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9600 else
|
|
9601 echo "configure: failed program was:" >&5
|
|
9602 cat conftest.$ac_ext >&5
|
|
9603 rm -rf conftest*
|
|
9604 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9605 fi
|
|
9606 rm -f conftest*
|
|
9607 xe_check_libs=""
|
|
9608
|
|
9609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9610 echo "$ac_t""yes" 1>&6
|
|
9611 :
|
|
9612 else
|
|
9613 echo "$ac_t""no" 1>&6
|
|
9614 with_jpeg=no
|
|
9615 fi
|
|
9616
|
|
9617 }
|
|
9618 test -z "$with_jpeg" && with_jpeg=yes
|
|
9619 if test "$with_jpeg" = "yes"; then
|
|
9620 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9621 Defining HAVE_JPEG
|
|
9622 EOF
|
|
9623 cat >> confdefs.h <<\EOF
|
|
9624 #define HAVE_JPEG 1
|
|
9625 EOF
|
|
9626 }
|
|
9627
|
|
9628 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
|
|
9629 fi
|
|
9630
|
373
|
9631 png_problem=""
|
251
|
9632 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
|
1692
|
9633 echo "configure:9634: checking for pow" >&5
|
|
9634
|
|
9635 cat > conftest.$ac_ext <<EOF
|
|
9636 #line 9637 "configure"
|
251
|
9637 #include "confdefs.h"
|
|
9638 /* System header to define __stub macros and hopefully few prototypes,
|
|
9639 which can conflict with char pow(); below. */
|
|
9640 #include <assert.h>
|
243
|
9641 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9642 /* We use char because int might match the return type of a gcc2
|
|
9643 builtin and then its argument prototype would still apply. */
|
251
|
9644 char pow();
|
243
|
9645
|
|
9646 int main() {
|
251
|
9647
|
|
9648 /* The GNU C library defines this for functions which it implements
|
|
9649 to always fail with ENOSYS. Some functions are actually named
|
|
9650 something starting with __ and the normal name is an alias. */
|
|
9651 #if defined (__stub_pow) || defined (__stub___pow)
|
|
9652 choke me
|
|
9653 #else
|
|
9654 pow();
|
|
9655 #endif
|
|
9656
|
243
|
9657 ; return 0; }
|
|
9658 EOF
|
1692
|
9659 if { (eval echo configure:9660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
251
|
9660 rm -rf conftest*
|
|
9661 eval "ac_cv_func_pow=yes"
|
|
9662 else
|
|
9663 echo "configure: failed program was:" >&5
|
|
9664 cat conftest.$ac_ext >&5
|
|
9665 rm -rf conftest*
|
|
9666 eval "ac_cv_func_pow=no"
|
|
9667 fi
|
|
9668 rm -f conftest*
|
|
9669
|
|
9670 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
|
|
9671 echo "$ac_t""yes" 1>&6
|
|
9672 :
|
|
9673 else
|
|
9674 echo "$ac_t""no" 1>&6
|
|
9675 with_png=no
|
|
9676 fi
|
|
9677 }
|
373
|
9678 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
|
|
9679 echo $ac_n "checking for png.h""... $ac_c" 1>&6
|
1692
|
9680 echo "configure:9681: checking for png.h" >&5
|
|
9681
|
|
9682 cat > conftest.$ac_ext <<EOF
|
|
9683 #line 9684 "configure"
|
373
|
9684 #include "confdefs.h"
|
|
9685 #include <png.h>
|
|
9686 EOF
|
|
9687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
9688 { (eval echo configure:9689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
373
|
9690 if test -z "$ac_err"; then
|
|
9691 rm -rf conftest*
|
|
9692 eval "ac_cv_header_$ac_safe=yes"
|
|
9693 else
|
|
9694 echo "$ac_err" >&5
|
|
9695 echo "configure: failed program was:" >&5
|
|
9696 cat conftest.$ac_ext >&5
|
|
9697 rm -rf conftest*
|
|
9698 eval "ac_cv_header_$ac_safe=no"
|
|
9699 fi
|
|
9700 rm -f conftest*
|
|
9701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9702 echo "$ac_t""yes" 1>&6
|
|
9703 :
|
|
9704 else
|
|
9705 echo "$ac_t""no" 1>&6
|
|
9706 with_png=no
|
|
9707 fi
|
|
9708 }
|
272
|
9709 test -z "$with_png" && {
|
|
9710 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
|
1692
|
9711 echo "configure:9712: checking for png_read_image in -lpng" >&5
|
272
|
9712 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
|
|
9713
|
|
9714 xe_check_libs=" -lpng "
|
|
9715 cat > conftest.$ac_ext <<EOF
|
1692
|
9716 #line 9717 "configure"
|
243
|
9717 #include "confdefs.h"
|
|
9718 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9719 /* We use char because int might match the return type of a gcc2
|
|
9720 builtin and then its argument prototype would still apply. */
|
272
|
9721 char png_read_image();
|
|
9722
|
|
9723 int main() {
|
|
9724 png_read_image()
|
|
9725 ; return 0; }
|
|
9726 EOF
|
1692
|
9727 if { (eval echo configure:9728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
217
|
9728 rm -rf conftest*
|
|
9729 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9730 else
|
|
9731 echo "configure: failed program was:" >&5
|
|
9732 cat conftest.$ac_ext >&5
|
|
9733 rm -rf conftest*
|
|
9734 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9735 fi
|
|
9736 rm -f conftest*
|
|
9737 xe_check_libs=""
|
|
9738
|
|
9739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9740 echo "$ac_t""yes" 1>&6
|
272
|
9741 :
|
|
9742 else
|
|
9743 echo "$ac_t""no" 1>&6
|
|
9744 with_png=no
|
|
9745 fi
|
|
9746
|
|
9747 }
|
373
|
9748 if test -z "$with_png"; then
|
|
9749 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
|
1692
|
9750 echo "configure:9751: checking for workable png version information" >&5
|
373
|
9751 xe_check_libs="-lpng -lz"
|
|
9752 cat > conftest.$ac_ext <<EOF
|
1692
|
9753 #line 9754 "configure"
|
373
|
9754 #include "confdefs.h"
|
|
9755 #include <png.h>
|
|
9756 int main(int c, char **v) {
|
|
9757 if (c == 1) return 0;
|
|
9758 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
|
|
9759 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
|
|
9760 EOF
|
1692
|
9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
373
|
9762 then
|
|
9763 ./conftest dummy_arg; png_status=$?;
|
|
9764 if test "$png_status" = "0"; then
|
|
9765 with_png=yes;
|
|
9766 else
|
|
9767 with_png=no;
|
|
9768 if test "$png_status" = "1"; then
|
|
9769 png_problem="PNG library version and header file don't match!"
|
|
9770 elif test "$png_status" = "2"; then
|
|
9771 png_problem="PNG library version too old (pre 1.0.2)!"
|
|
9772 fi
|
|
9773 echo "
|
|
9774 *** WARNING *** $png_problem
|
|
9775 I'm not touching that with a 10-foot pole!
|
|
9776 If you really want to use the installed version of libPNG, rerun
|
|
9777 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
|
|
9778 fi
|
|
9779 else
|
|
9780 conftest_rc="$?"
|
|
9781 echo "configure: failed program was:" >&5
|
|
9782 cat conftest.$ac_ext >&5
|
|
9783 rm -fr conftest*
|
|
9784 with_png=no
|
|
9785 fi
|
|
9786 rm -fr conftest*
|
|
9787 xe_check_libs=
|
|
9788 echo "$ac_t""$with_png" 1>&6
|
|
9789 fi
|
251
|
9790 if test "$with_png" = "yes"; then
|
|
9791 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9792 Defining HAVE_PNG
|
|
9793 EOF
|
|
9794 cat >> confdefs.h <<\EOF
|
|
9795 #define HAVE_PNG 1
|
|
9796 EOF
|
|
9797 }
|
|
9798
|
272
|
9799 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
|
251
|
9800 fi
|
|
9801
|
272
|
9802 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
|
|
9803 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
|
1692
|
9804 echo "configure:9805: checking for tiffio.h" >&5
|
|
9805
|
|
9806 cat > conftest.$ac_ext <<EOF
|
|
9807 #line 9808 "configure"
|
272
|
9808 #include "confdefs.h"
|
|
9809 #include <tiffio.h>
|
|
9810 EOF
|
|
9811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
9812 { (eval echo configure:9813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
272
|
9814 if test -z "$ac_err"; then
|
|
9815 rm -rf conftest*
|
|
9816 eval "ac_cv_header_$ac_safe=yes"
|
|
9817 else
|
|
9818 echo "$ac_err" >&5
|
|
9819 echo "configure: failed program was:" >&5
|
|
9820 cat conftest.$ac_ext >&5
|
|
9821 rm -rf conftest*
|
|
9822 eval "ac_cv_header_$ac_safe=no"
|
|
9823 fi
|
|
9824 rm -f conftest*
|
|
9825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9826 echo "$ac_t""yes" 1>&6
|
|
9827 :
|
|
9828 else
|
|
9829 echo "$ac_t""no" 1>&6
|
|
9830 with_tiff=no
|
|
9831 fi
|
|
9832 }
|
|
9833 test -z "$with_tiff" && {
|
286
|
9834 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
|
1692
|
9835 echo "configure:9836: checking for TIFFClientOpen in -ltiff" >&5
|
286
|
9836 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
|
251
|
9837
|
272
|
9838 xe_check_libs=" -ltiff "
|
|
9839 cat > conftest.$ac_ext <<EOF
|
1692
|
9840 #line 9841 "configure"
|
217
|
9841 #include "confdefs.h"
|
|
9842 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9843 /* We use char because int might match the return type of a gcc2
|
|
9844 builtin and then its argument prototype would still apply. */
|
286
|
9845 char TIFFClientOpen();
|
|
9846
|
|
9847 int main() {
|
|
9848 TIFFClientOpen()
|
|
9849 ; return 0; }
|
|
9850 EOF
|
1692
|
9851 if { (eval echo configure:9852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
217
|
9852 rm -rf conftest*
|
|
9853 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9854 else
|
|
9855 echo "configure: failed program was:" >&5
|
|
9856 cat conftest.$ac_ext >&5
|
|
9857 rm -rf conftest*
|
|
9858 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9859 fi
|
|
9860 rm -f conftest*
|
|
9861 xe_check_libs=""
|
|
9862
|
|
9863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9864 echo "$ac_t""yes" 1>&6
|
272
|
9865 :
|
|
9866 else
|
|
9867 echo "$ac_t""no" 1>&6
|
|
9868 with_tiff=no
|
|
9869 fi
|
|
9870
|
|
9871 }
|
|
9872 test -z "$with_tiff" && with_tiff=yes
|
251
|
9873 if test "$with_tiff" = "yes"; then
|
|
9874 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9875 Defining HAVE_TIFF
|
|
9876 EOF
|
|
9877 cat >> confdefs.h <<\EOF
|
|
9878 #define HAVE_TIFF 1
|
|
9879 EOF
|
|
9880 }
|
|
9881
|
272
|
9882 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
|
251
|
9883 fi
|
278
|
9884 fi
|
|
9885
|
|
9886
|
462
|
9887 if test "$with_gtk" = "yes"; then
|
|
9888 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
9889 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
1692
|
9890 echo "configure:9891: checking for compface.h" >&5
|
|
9891
|
|
9892 cat > conftest.$ac_ext <<EOF
|
|
9893 #line 9894 "configure"
|
462
|
9894 #include "confdefs.h"
|
|
9895 #include <compface.h>
|
|
9896 EOF
|
|
9897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
9898 { (eval echo configure:9899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
462
|
9899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9900 if test -z "$ac_err"; then
|
|
9901 rm -rf conftest*
|
|
9902 eval "ac_cv_header_$ac_safe=yes"
|
|
9903 else
|
|
9904 echo "$ac_err" >&5
|
|
9905 echo "configure: failed program was:" >&5
|
|
9906 cat conftest.$ac_ext >&5
|
|
9907 rm -rf conftest*
|
|
9908 eval "ac_cv_header_$ac_safe=no"
|
|
9909 fi
|
|
9910 rm -f conftest*
|
|
9911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9912 echo "$ac_t""yes" 1>&6
|
|
9913 :
|
|
9914 else
|
|
9915 echo "$ac_t""no" 1>&6
|
|
9916 with_xface=no
|
|
9917 fi
|
|
9918 }
|
|
9919 test -z "$with_xface" && {
|
|
9920 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
1692
|
9921 echo "configure:9922: checking for UnGenFace in -lcompface" >&5
|
462
|
9922 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
9923
|
|
9924 xe_check_libs=" -lcompface "
|
|
9925 cat > conftest.$ac_ext <<EOF
|
1692
|
9926 #line 9927 "configure"
|
462
|
9927 #include "confdefs.h"
|
|
9928 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9929 /* We use char because int might match the return type of a gcc2
|
|
9930 builtin and then its argument prototype would still apply. */
|
|
9931 char UnGenFace();
|
|
9932
|
|
9933 int main() {
|
|
9934 UnGenFace()
|
|
9935 ; return 0; }
|
|
9936 EOF
|
1692
|
9937 if { (eval echo configure:9938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
9938 rm -rf conftest*
|
|
9939 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9940 else
|
|
9941 echo "configure: failed program was:" >&5
|
|
9942 cat conftest.$ac_ext >&5
|
|
9943 rm -rf conftest*
|
|
9944 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9945 fi
|
|
9946 rm -f conftest*
|
|
9947 xe_check_libs=""
|
|
9948
|
|
9949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9950 echo "$ac_t""yes" 1>&6
|
|
9951 :
|
|
9952 else
|
|
9953 echo "$ac_t""no" 1>&6
|
|
9954 with_xface=no
|
|
9955 fi
|
|
9956
|
|
9957 }
|
|
9958 test -z "$with_xface" && with_xface=yes
|
|
9959 if test "$with_xface" = "yes"; then
|
|
9960 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9961 Defining HAVE_XFACE
|
|
9962 EOF
|
|
9963 cat >> confdefs.h <<\EOF
|
|
9964 #define HAVE_XFACE 1
|
|
9965 EOF
|
|
9966 }
|
|
9967
|
|
9968 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
|
|
9969 fi
|
|
9970 fi
|
|
9971
|
|
9972
|
|
9973
|
278
|
9974 if test "$with_x11" = "yes"; then
|
|
9975 echo "checking for X11 graphics libraries" 1>&6
|
1692
|
9976 echo "configure:9977: checking for X11 graphics libraries" >&5
|
726
|
9977 fi
|
|
9978
|
|
9979 case "$with_widgets" in
|
|
9980 "yes" | "athena") detect_athena=yes ;;
|
|
9981 *) detect_athena=no ;;
|
|
9982 esac
|
|
9983
|
|
9984 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
|
434
|
9985 echo "checking for the Athena widgets" 1>&6
|
1692
|
9986 echo "configure:9987: checking for the Athena widgets" >&5
|
434
|
9987
|
|
9988 case "$with_athena" in
|
|
9989 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
|
|
9990 "3d") athena_variant=Xaw3d athena_3d=yes ;;
|
|
9991 "next") athena_variant=neXtaw athena_3d=yes ;;
|
|
9992 "95") athena_variant=Xaw95 athena_3d=yes ;;
|
|
9993 "xpm") athena_variant=XawXpm athena_3d=yes ;;
|
|
9994 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
|
|
9995 esac
|
|
9996
|
|
9997 if test "$athena_3d" = "no"; then
|
193
|
9998
|
434
|
9999 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
|
1692
|
10000 echo "configure:10001: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
|
434
|
10001 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
|
|
10002
|
|
10003 xe_check_libs=" -l$athena_variant "
|
|
10004 cat > conftest.$ac_ext <<EOF
|
1692
|
10005 #line 10006 "configure"
|
193
|
10006 #include "confdefs.h"
|
|
10007 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10008 /* We use char because int might match the return type of a gcc2
|
|
10009 builtin and then its argument prototype would still apply. */
|
|
10010 char XawScrollbarSetThumb();
|
|
10011
|
|
10012 int main() {
|
|
10013 XawScrollbarSetThumb()
|
|
10014 ; return 0; }
|
|
10015 EOF
|
1692
|
10016 if { (eval echo configure:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
434
|
10017 rm -rf conftest*
|
|
10018 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10019 else
|
|
10020 echo "configure: failed program was:" >&5
|
|
10021 cat conftest.$ac_ext >&5
|
|
10022 rm -rf conftest*
|
|
10023 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10024 fi
|
|
10025 rm -f conftest*
|
|
10026 xe_check_libs=""
|
|
10027
|
|
10028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10029 echo "$ac_t""yes" 1>&6
|
|
10030
|
|
10031 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
|
1692
|
10032 echo "configure:10033: checking for threeDClassRec in -l$athena_variant" >&5
|
434
|
10033 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
10034
|
|
10035 xe_check_libs=" -l$athena_variant "
|
|
10036 cat > conftest.$ac_ext <<EOF
|
1692
|
10037 #line 10038 "configure"
|
434
|
10038 #include "confdefs.h"
|
|
10039 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10040 /* We use char because int might match the return type of a gcc2
|
|
10041 builtin and then its argument prototype would still apply. */
|
|
10042 char threeDClassRec();
|
|
10043
|
|
10044 int main() {
|
|
10045 threeDClassRec()
|
|
10046 ; return 0; }
|
|
10047 EOF
|
1692
|
10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
561
|
10049 rm -rf conftest*
|
|
10050 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10051 else
|
|
10052 echo "configure: failed program was:" >&5
|
|
10053 cat conftest.$ac_ext >&5
|
|
10054 rm -rf conftest*
|
|
10055 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10056 fi
|
|
10057 rm -f conftest*
|
|
10058 xe_check_libs=""
|
|
10059
|
|
10060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10061 echo "$ac_t""yes" 1>&6
|
|
10062 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2
|
434
|
10063 else
|
|
10064 echo "$ac_t""no" 1>&6
|
|
10065 athena_lib=$athena_variant
|
|
10066 fi
|
|
10067
|
|
10068
|
|
10069
|
|
10070 else
|
|
10071 echo "$ac_t""no" 1>&6
|
561
|
10072 echo "configure: warning: Could not find an Athena widget library." 1>&2
|
434
|
10073 fi
|
|
10074
|
|
10075
|
|
10076 else
|
|
10077
|
|
10078 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
|
1692
|
10079 echo "configure:10080: checking for threeDClassRec in -l$athena_variant" >&5
|
434
|
10080 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
10081
|
|
10082 xe_check_libs=" -l$athena_variant "
|
|
10083 cat > conftest.$ac_ext <<EOF
|
1692
|
10084 #line 10085 "configure"
|
434
|
10085 #include "confdefs.h"
|
|
10086 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10087 /* We use char because int might match the return type of a gcc2
|
|
10088 builtin and then its argument prototype would still apply. */
|
|
10089 char threeDClassRec();
|
|
10090
|
|
10091 int main() {
|
|
10092 threeDClassRec()
|
|
10093 ; return 0; }
|
|
10094 EOF
|
1692
|
10095 if { (eval echo configure:10096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
434
|
10096 rm -rf conftest*
|
|
10097 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10098 else
|
|
10099 echo "configure: failed program was:" >&5
|
|
10100 cat conftest.$ac_ext >&5
|
|
10101 rm -rf conftest*
|
|
10102 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10103 fi
|
|
10104 rm -f conftest*
|
|
10105 xe_check_libs=""
|
|
10106
|
|
10107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10108 echo "$ac_t""yes" 1>&6
|
|
10109 athena_lib=$athena_variant
|
|
10110 else
|
|
10111 echo "$ac_t""no" 1>&6
|
|
10112 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
|
1692
|
10113 echo "configure:10114: checking for threeDClassRec in -lXaw" >&5
|
434
|
10114 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
10115
|
|
10116 xe_check_libs=" -lXaw "
|
|
10117 cat > conftest.$ac_ext <<EOF
|
1692
|
10118 #line 10119 "configure"
|
434
|
10119 #include "confdefs.h"
|
|
10120 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10121 /* We use char because int might match the return type of a gcc2
|
|
10122 builtin and then its argument prototype would still apply. */
|
|
10123 char threeDClassRec();
|
|
10124
|
|
10125 int main() {
|
|
10126 threeDClassRec()
|
|
10127 ; return 0; }
|
|
10128 EOF
|
1692
|
10129 if { (eval echo configure:10130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
193
|
10130 rm -rf conftest*
|
|
10131 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10132 else
|
|
10133 echo "configure: failed program was:" >&5
|
|
10134 cat conftest.$ac_ext >&5
|
|
10135 rm -rf conftest*
|
|
10136 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10137 fi
|
|
10138 rm -f conftest*
|
|
10139 xe_check_libs=""
|
|
10140
|
|
10141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10142 echo "$ac_t""yes" 1>&6
|
438
|
10143 athena_lib=Xaw;
|
561
|
10144 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2;
|
434
|
10145
|
|
10146 else
|
|
10147 echo "$ac_t""no" 1>&6
|
561
|
10148 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2
|
434
|
10149 fi
|
|
10150
|
|
10151
|
|
10152 fi
|
|
10153
|
|
10154
|
|
10155 fi
|
|
10156
|
|
10157 if test "$athena_3d" = "no"; then
|
|
10158 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10159 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
|
1692
|
10160 echo "configure:10161: checking for X11/Xaw/ThreeD.h" >&5
|
|
10161
|
|
10162 cat > conftest.$ac_ext <<EOF
|
|
10163 #line 10164 "configure"
|
434
|
10164 #include "confdefs.h"
|
|
10165 #include <X11/Xaw/ThreeD.h>
|
|
10166 EOF
|
|
10167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10168 { (eval echo configure:10169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
561
|
10169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10170 if test -z "$ac_err"; then
|
|
10171 rm -rf conftest*
|
|
10172 eval "ac_cv_header_$ac_safe=yes"
|
|
10173 else
|
|
10174 echo "$ac_err" >&5
|
|
10175 echo "configure: failed program was:" >&5
|
|
10176 cat conftest.$ac_ext >&5
|
|
10177 rm -rf conftest*
|
|
10178 eval "ac_cv_header_$ac_safe=no"
|
|
10179 fi
|
|
10180 rm -f conftest*
|
|
10181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10182 echo "$ac_t""yes" 1>&6
|
|
10183 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
|
434
|
10184 else
|
|
10185 echo "$ac_t""no" 1>&6
|
|
10186 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10187 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
|
1692
|
10188 echo "configure:10189: checking for X11/Xaw/XawInit.h" >&5
|
|
10189
|
|
10190 cat > conftest.$ac_ext <<EOF
|
|
10191 #line 10192 "configure"
|
434
|
10192 #include "confdefs.h"
|
|
10193 #include <X11/Xaw/XawInit.h>
|
|
10194 EOF
|
|
10195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10196 { (eval echo configure:10197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10198 if test -z "$ac_err"; then
|
|
10199 rm -rf conftest*
|
|
10200 eval "ac_cv_header_$ac_safe=yes"
|
|
10201 else
|
|
10202 echo "$ac_err" >&5
|
|
10203 echo "configure: failed program was:" >&5
|
|
10204 cat conftest.$ac_ext >&5
|
|
10205 rm -rf conftest*
|
|
10206 eval "ac_cv_header_$ac_safe=no"
|
|
10207 fi
|
|
10208 rm -f conftest*
|
|
10209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10210 echo "$ac_t""yes" 1>&6
|
|
10211 athena_h_path=X11/Xaw
|
|
10212 else
|
|
10213 echo "$ac_t""no" 1>&6
|
561
|
10214 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
|
434
|
10215 fi
|
|
10216
|
|
10217 fi
|
|
10218
|
|
10219 else
|
|
10220 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10221 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
|
1692
|
10222 echo "configure:10223: checking for X11/$athena_variant/XawInit.h" >&5
|
|
10223
|
|
10224 cat > conftest.$ac_ext <<EOF
|
|
10225 #line 10226 "configure"
|
434
|
10226 #include "confdefs.h"
|
|
10227 #include <X11/$athena_variant/XawInit.h>
|
|
10228 EOF
|
|
10229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10230 { (eval echo configure:10231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10232 if test -z "$ac_err"; then
|
|
10233 rm -rf conftest*
|
|
10234 eval "ac_cv_header_$ac_safe=yes"
|
|
10235 else
|
|
10236 echo "$ac_err" >&5
|
|
10237 echo "configure: failed program was:" >&5
|
|
10238 cat conftest.$ac_ext >&5
|
|
10239 rm -rf conftest*
|
|
10240 eval "ac_cv_header_$ac_safe=no"
|
|
10241 fi
|
|
10242 rm -f conftest*
|
|
10243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10244 echo "$ac_t""yes" 1>&6
|
|
10245 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10246 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
|
1692
|
10247 echo "configure:10248: checking for X11/$athena_variant/ThreeD.h" >&5
|
|
10248
|
|
10249 cat > conftest.$ac_ext <<EOF
|
|
10250 #line 10251 "configure"
|
434
|
10251 #include "confdefs.h"
|
|
10252 #include <X11/$athena_variant/ThreeD.h>
|
|
10253 EOF
|
|
10254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10255 { (eval echo configure:10256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10257 if test -z "$ac_err"; then
|
|
10258 rm -rf conftest*
|
|
10259 eval "ac_cv_header_$ac_safe=yes"
|
|
10260 else
|
|
10261 echo "$ac_err" >&5
|
|
10262 echo "configure: failed program was:" >&5
|
|
10263 cat conftest.$ac_ext >&5
|
|
10264 rm -rf conftest*
|
|
10265 eval "ac_cv_header_$ac_safe=no"
|
|
10266 fi
|
|
10267 rm -f conftest*
|
|
10268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10269 echo "$ac_t""yes" 1>&6
|
|
10270 athena_h_path=X11/$athena_variant
|
|
10271 else
|
|
10272 echo "$ac_t""no" 1>&6
|
|
10273 fi
|
|
10274
|
|
10275 else
|
|
10276 echo "$ac_t""no" 1>&6
|
|
10277 fi
|
|
10278
|
|
10279
|
440
|
10280 if test -z "$athena_h_path"; then
|
|
10281 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10282 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
|
1692
|
10283 echo "configure:10284: checking for $athena_variant/XawInit.h" >&5
|
|
10284
|
|
10285 cat > conftest.$ac_ext <<EOF
|
|
10286 #line 10287 "configure"
|
440
|
10287 #include "confdefs.h"
|
|
10288 #include <$athena_variant/XawInit.h>
|
|
10289 EOF
|
|
10290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10291 { (eval echo configure:10292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10293 if test -z "$ac_err"; then
|
|
10294 rm -rf conftest*
|
|
10295 eval "ac_cv_header_$ac_safe=yes"
|
|
10296 else
|
|
10297 echo "$ac_err" >&5
|
|
10298 echo "configure: failed program was:" >&5
|
|
10299 cat conftest.$ac_ext >&5
|
|
10300 rm -rf conftest*
|
|
10301 eval "ac_cv_header_$ac_safe=no"
|
|
10302 fi
|
|
10303 rm -f conftest*
|
|
10304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10305 echo "$ac_t""yes" 1>&6
|
|
10306 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10307 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
|
1692
|
10308 echo "configure:10309: checking for $athena_variant/ThreeD.h" >&5
|
|
10309
|
|
10310 cat > conftest.$ac_ext <<EOF
|
|
10311 #line 10312 "configure"
|
440
|
10312 #include "confdefs.h"
|
|
10313 #include <$athena_variant/ThreeD.h>
|
|
10314 EOF
|
|
10315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10316 { (eval echo configure:10317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10318 if test -z "$ac_err"; then
|
|
10319 rm -rf conftest*
|
|
10320 eval "ac_cv_header_$ac_safe=yes"
|
|
10321 else
|
|
10322 echo "$ac_err" >&5
|
|
10323 echo "configure: failed program was:" >&5
|
|
10324 cat conftest.$ac_ext >&5
|
|
10325 rm -rf conftest*
|
|
10326 eval "ac_cv_header_$ac_safe=no"
|
|
10327 fi
|
|
10328 rm -f conftest*
|
|
10329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10330 echo "$ac_t""yes" 1>&6
|
|
10331 athena_h_path=$athena_variant
|
|
10332 else
|
|
10333 echo "$ac_t""no" 1>&6
|
|
10334 fi
|
|
10335
|
|
10336 else
|
|
10337 echo "$ac_t""no" 1>&6
|
|
10338 fi
|
|
10339
|
|
10340 fi
|
|
10341
|
434
|
10342 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
|
|
10343 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10344 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
|
1692
|
10345 echo "configure:10346: checking for X11/Xaw3d/XawInit.h" >&5
|
|
10346
|
|
10347 cat > conftest.$ac_ext <<EOF
|
|
10348 #line 10349 "configure"
|
434
|
10349 #include "confdefs.h"
|
|
10350 #include <X11/Xaw3d/XawInit.h>
|
|
10351 EOF
|
|
10352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10353 { (eval echo configure:10354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10355 if test -z "$ac_err"; then
|
|
10356 rm -rf conftest*
|
|
10357 eval "ac_cv_header_$ac_safe=yes"
|
|
10358 else
|
|
10359 echo "$ac_err" >&5
|
|
10360 echo "configure: failed program was:" >&5
|
|
10361 cat conftest.$ac_ext >&5
|
|
10362 rm -rf conftest*
|
|
10363 eval "ac_cv_header_$ac_safe=no"
|
|
10364 fi
|
|
10365 rm -f conftest*
|
|
10366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10367 echo "$ac_t""yes" 1>&6
|
|
10368 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10369 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
|
1692
|
10370 echo "configure:10371: checking for X11/Xaw3d/ThreeD.h" >&5
|
|
10371
|
|
10372 cat > conftest.$ac_ext <<EOF
|
|
10373 #line 10374 "configure"
|
434
|
10374 #include "confdefs.h"
|
|
10375 #include <X11/Xaw3d/ThreeD.h>
|
|
10376 EOF
|
|
10377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10378 { (eval echo configure:10379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10380 if test -z "$ac_err"; then
|
|
10381 rm -rf conftest*
|
|
10382 eval "ac_cv_header_$ac_safe=yes"
|
|
10383 else
|
|
10384 echo "$ac_err" >&5
|
|
10385 echo "configure: failed program was:" >&5
|
|
10386 cat conftest.$ac_ext >&5
|
|
10387 rm -rf conftest*
|
|
10388 eval "ac_cv_header_$ac_safe=no"
|
|
10389 fi
|
|
10390 rm -f conftest*
|
|
10391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10392 echo "$ac_t""yes" 1>&6
|
|
10393
|
561
|
10394 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2
|
434
|
10395 athena_h_path=X11/Xaw3d
|
|
10396
|
|
10397 else
|
|
10398 echo "$ac_t""no" 1>&6
|
|
10399 fi
|
|
10400
|
|
10401 else
|
|
10402 echo "$ac_t""no" 1>&6
|
|
10403 fi
|
|
10404
|
|
10405 fi
|
|
10406
|
440
|
10407 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
|
|
10408 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10409 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
|
1692
|
10410 echo "configure:10411: checking for Xaw3d/XawInit.h" >&5
|
|
10411
|
|
10412 cat > conftest.$ac_ext <<EOF
|
|
10413 #line 10414 "configure"
|
440
|
10414 #include "confdefs.h"
|
|
10415 #include <Xaw3d/XawInit.h>
|
|
10416 EOF
|
|
10417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10418 { (eval echo configure:10419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10420 if test -z "$ac_err"; then
|
|
10421 rm -rf conftest*
|
|
10422 eval "ac_cv_header_$ac_safe=yes"
|
|
10423 else
|
|
10424 echo "$ac_err" >&5
|
|
10425 echo "configure: failed program was:" >&5
|
|
10426 cat conftest.$ac_ext >&5
|
|
10427 rm -rf conftest*
|
|
10428 eval "ac_cv_header_$ac_safe=no"
|
|
10429 fi
|
|
10430 rm -f conftest*
|
|
10431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10432 echo "$ac_t""yes" 1>&6
|
|
10433 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10434 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
|
1692
|
10435 echo "configure:10436: checking for Xaw3d/ThreeD.h" >&5
|
|
10436
|
|
10437 cat > conftest.$ac_ext <<EOF
|
|
10438 #line 10439 "configure"
|
440
|
10439 #include "confdefs.h"
|
|
10440 #include <Xaw3d/ThreeD.h>
|
|
10441 EOF
|
|
10442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10443 { (eval echo configure:10444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10445 if test -z "$ac_err"; then
|
|
10446 rm -rf conftest*
|
|
10447 eval "ac_cv_header_$ac_safe=yes"
|
|
10448 else
|
|
10449 echo "$ac_err" >&5
|
|
10450 echo "configure: failed program was:" >&5
|
|
10451 cat conftest.$ac_ext >&5
|
|
10452 rm -rf conftest*
|
|
10453 eval "ac_cv_header_$ac_safe=no"
|
|
10454 fi
|
|
10455 rm -f conftest*
|
|
10456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10457 echo "$ac_t""yes" 1>&6
|
|
10458
|
561
|
10459 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2
|
440
|
10460 athena_h_path=Xaw3d
|
|
10461
|
|
10462 else
|
|
10463 echo "$ac_t""no" 1>&6
|
|
10464 fi
|
|
10465
|
|
10466 else
|
|
10467 echo "$ac_t""no" 1>&6
|
|
10468 fi
|
|
10469
|
|
10470 fi
|
|
10471
|
434
|
10472 if test -z "$athena_h_path"; then
|
|
10473 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10474 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
|
1692
|
10475 echo "configure:10476: checking for X11/Xaw/ThreeD.h" >&5
|
|
10476
|
|
10477 cat > conftest.$ac_ext <<EOF
|
|
10478 #line 10479 "configure"
|
434
|
10479 #include "confdefs.h"
|
|
10480 #include <X11/Xaw/ThreeD.h>
|
|
10481 EOF
|
|
10482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10483 { (eval echo configure:10484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10485 if test -z "$ac_err"; then
|
|
10486 rm -rf conftest*
|
|
10487 eval "ac_cv_header_$ac_safe=yes"
|
|
10488 else
|
|
10489 echo "$ac_err" >&5
|
|
10490 echo "configure: failed program was:" >&5
|
|
10491 cat conftest.$ac_ext >&5
|
|
10492 rm -rf conftest*
|
|
10493 eval "ac_cv_header_$ac_safe=no"
|
|
10494 fi
|
|
10495 rm -f conftest*
|
|
10496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10497 echo "$ac_t""yes" 1>&6
|
|
10498
|
561
|
10499 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2
|
434
|
10500 athena_h_path=X11/Xaw
|
|
10501
|
|
10502 else
|
|
10503 echo "$ac_t""no" 1>&6
|
561
|
10504 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2
|
434
|
10505 fi
|
|
10506
|
|
10507 fi
|
|
10508 fi
|
|
10509
|
|
10510 if test -n "$athena_lib" -a -n "$athena_h_path"; then
|
|
10511 have_xaw=yes
|
|
10512 else
|
|
10513 have_xaw=no
|
|
10514 fi
|
424
|
10515
|
724
|
10516 else
|
|
10517 have_xaw=no
|
|
10518 fi
|
|
10519 if test "$with_x11" = "yes"; then
|
193
|
10520 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
151
|
10521 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
1692
|
10522 echo "configure:10523: checking for Xm/Xm.h" >&5
|
|
10523
|
|
10524 cat > conftest.$ac_ext <<EOF
|
|
10525 #line 10526 "configure"
|
151
|
10526 #include "confdefs.h"
|
|
10527 #include <Xm/Xm.h>
|
|
10528 EOF
|
|
10529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10530 { (eval echo configure:10531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
151
|
10532 if test -z "$ac_err"; then
|
|
10533 rm -rf conftest*
|
|
10534 eval "ac_cv_header_$ac_safe=yes"
|
|
10535 else
|
|
10536 echo "$ac_err" >&5
|
|
10537 echo "configure: failed program was:" >&5
|
|
10538 cat conftest.$ac_ext >&5
|
|
10539 rm -rf conftest*
|
|
10540 eval "ac_cv_header_$ac_safe=no"
|
|
10541 fi
|
|
10542 rm -f conftest*
|
|
10543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10544 echo "$ac_t""yes" 1>&6
|
|
10545
|
|
10546 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
1692
|
10547 echo "configure:10548: checking for XmStringFree in -lXm" >&5
|
151
|
10548 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
10549
|
|
10550 xe_check_libs=" -lXm "
|
|
10551 cat > conftest.$ac_ext <<EOF
|
1692
|
10552 #line 10553 "configure"
|
151
|
10553 #include "confdefs.h"
|
|
10554 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10555 /* We use char because int might match the return type of a gcc2
|
|
10556 builtin and then its argument prototype would still apply. */
|
|
10557 char XmStringFree();
|
|
10558
|
|
10559 int main() {
|
|
10560 XmStringFree()
|
|
10561 ; return 0; }
|
|
10562 EOF
|
1692
|
10563 if { (eval echo configure:10564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
10564 rm -rf conftest*
|
|
10565 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10566 else
|
|
10567 echo "configure: failed program was:" >&5
|
|
10568 cat conftest.$ac_ext >&5
|
|
10569 rm -rf conftest*
|
|
10570 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10571 fi
|
|
10572 rm -f conftest*
|
|
10573 xe_check_libs=""
|
|
10574
|
|
10575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10576 echo "$ac_t""yes" 1>&6
|
|
10577 have_motif=yes
|
|
10578 else
|
|
10579 echo "$ac_t""no" 1>&6
|
|
10580 have_motif=no
|
|
10581 fi
|
|
10582
|
|
10583
|
|
10584 else
|
|
10585 echo "$ac_t""no" 1>&6
|
|
10586 have_motif=no
|
|
10587 fi
|
|
10588
|
149
|
10589
|
272
|
10590 if test "$have_motif" = "yes"; then
|
|
10591 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
|
1692
|
10592 echo "configure:10593: checking for Lesstif" >&5
|
272
|
10593 cat > conftest.$ac_ext <<EOF
|
1692
|
10594 #line 10595 "configure"
|
272
|
10595 #include "confdefs.h"
|
|
10596 #include <Xm/Xm.h>
|
|
10597 #ifdef LESSTIF_VERSION
|
|
10598 yes
|
|
10599 #endif
|
|
10600
|
|
10601 EOF
|
|
10602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
10603 egrep "yes" >/dev/null 2>&1; then
|
|
10604 rm -rf conftest*
|
|
10605 have_lesstif=yes
|
|
10606 else
|
|
10607 rm -rf conftest*
|
|
10608 have_lesstif=no
|
|
10609 fi
|
|
10610 rm -f conftest*
|
|
10611
|
|
10612 echo "$ac_t""$have_lesstif" 1>&6
|
|
10613 fi
|
|
10614
|
193
|
10615 fi
|
149
|
10616
|
434
|
10617 case "$with_menubars" in "" | "yes" | "athena" )
|
149
|
10618 with_menubars="lucid" ;;
|
|
10619 esac
|
243
|
10620 case "$with_dialogs" in "" | "yes" | "lucid" )
|
434
|
10621 if test "$have_motif" = "yes"; then with_dialogs="motif"
|
|
10622 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
|
771
|
10623 elif test "$with_msw" = "yes"; then with_dialogs="msw"
|
149
|
10624 else with_dialogs=no
|
|
10625 fi ;;
|
|
10626 esac
|
|
10627 case "$with_scrollbars" in "" | "yes" )
|
|
10628 with_scrollbars="lucid" ;;
|
|
10629 esac
|
424
|
10630 case "$with_widgets" in "" | "yes" | "lucid")
|
420
|
10631 if test "$have_motif" = "yes"; then with_widgets="motif"
|
424
|
10632 elif test "$have_xaw" = "yes"; then with_widgets="athena"
|
771
|
10633 elif test "$with_msw" = "yes"; then with_widgets="msw"
|
420
|
10634 else with_widgets=no
|
|
10635 fi ;;
|
|
10636 esac
|
|
10637
|
|
10638 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
|
412
|
10639
|
424
|
10640 case "$all_widgets" in
|
434
|
10641 *athena* )
|
|
10642 if test "$have_xaw" != "yes"; then
|
|
10643 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
|
|
10644 fi
|
|
10645
|
|
10646 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
|
|
10647
|
|
10648 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
|
|
10649
|
442
|
10650 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10651 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
|
|
10652 EOF
|
|
10653 cat >> confdefs.h <<EOF
|
|
10654 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
|
|
10655 EOF
|
|
10656 }
|
|
10657
|
|
10658 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10659 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
|
|
10660 EOF
|
|
10661 cat >> confdefs.h <<EOF
|
|
10662 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
|
|
10663 EOF
|
|
10664 }
|
|
10665
|
|
10666 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10667 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
|
|
10668 EOF
|
|
10669 cat >> confdefs.h <<EOF
|
|
10670 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
|
|
10671 EOF
|
|
10672 }
|
|
10673
|
|
10674 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10675 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
|
|
10676 EOF
|
|
10677 cat >> confdefs.h <<EOF
|
|
10678 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
|
|
10679 EOF
|
|
10680 }
|
|
10681
|
|
10682 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10683 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
|
|
10684 EOF
|
|
10685 cat >> confdefs.h <<EOF
|
|
10686 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
|
|
10687 EOF
|
|
10688 }
|
|
10689
|
|
10690 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10691 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
|
|
10692 EOF
|
|
10693 cat >> confdefs.h <<EOF
|
|
10694 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
|
|
10695 EOF
|
|
10696 }
|
|
10697
|
|
10698 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10699 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
|
|
10700 EOF
|
|
10701 cat >> confdefs.h <<EOF
|
|
10702 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
|
|
10703 EOF
|
|
10704 }
|
|
10705
|
|
10706 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10707 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
|
|
10708 EOF
|
|
10709 cat >> confdefs.h <<EOF
|
|
10710 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
|
|
10711 EOF
|
|
10712 }
|
|
10713
|
|
10714 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10715 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
|
|
10716 EOF
|
|
10717 cat >> confdefs.h <<EOF
|
|
10718 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
|
|
10719 EOF
|
|
10720 }
|
|
10721
|
|
10722 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10723 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
|
|
10724 EOF
|
|
10725 cat >> confdefs.h <<EOF
|
|
10726 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
|
434
|
10727 EOF
|
|
10728 }
|
|
10729
|
|
10730
|
|
10731 { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
10732 Defining LWLIB_USES_ATHENA
|
|
10733 EOF
|
|
10734 cat >> confdefs.h <<\EOF
|
|
10735 #define LWLIB_USES_ATHENA 1
|
|
10736 EOF
|
|
10737 }
|
|
10738
|
434
|
10739 { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
10740 Defining NEED_ATHENA
|
|
10741 EOF
|
|
10742 cat >> confdefs.h <<\EOF
|
|
10743 #define NEED_ATHENA 1
|
|
10744 EOF
|
|
10745 }
|
|
10746
|
442
|
10747 need_athena="yes"
|
434
|
10748
|
|
10749 if test "$athena_3d" = "yes"; then
|
|
10750 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10751 Defining HAVE_ATHENA_3D
|
|
10752 EOF
|
|
10753 cat >> confdefs.h <<\EOF
|
|
10754 #define HAVE_ATHENA_3D 1
|
|
10755 EOF
|
|
10756 }
|
|
10757
|
|
10758 fi
|
|
10759 ;;
|
149
|
10760 esac
|
|
10761
|
|
10762 case "$all_widgets" in *motif* )
|
|
10763 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10764 Defining LWLIB_USES_MOTIF
|
|
10765 EOF
|
|
10766 cat >> confdefs.h <<\EOF
|
|
10767 #define LWLIB_USES_MOTIF 1
|
|
10768 EOF
|
|
10769 }
|
|
10770
|
157
|
10771 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10772 Defining NEED_MOTIF
|
|
10773 EOF
|
|
10774 cat >> confdefs.h <<\EOF
|
|
10775 #define NEED_MOTIF 1
|
|
10776 EOF
|
|
10777 }
|
|
10778
|
|
10779 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
|
149
|
10780 need_motif=yes ;;
|
70
|
10781 esac
|
|
10782
|
157
|
10783 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
|
10784 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
|
10785 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
|
10786 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
|
|
10787 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
|
|
10788 case "$with_widgets" in athena* )
|
|
10789 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;;
|
|
10790 esac
|
157
|
10791 case "$all_widgets" in *lucid* )
|
|
10792 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10793 Defining NEED_LUCID
|
|
10794 EOF
|
|
10795 cat >> confdefs.h <<\EOF
|
|
10796 #define NEED_LUCID 1
|
|
10797 EOF
|
|
10798 }
|
|
10799
|
|
10800 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
|
|
10801 esac
|
|
10802
|
|
10803
|
|
10804
|
434
|
10805 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
10806 Defining LWLIB_SCROLLBARS_ATHENA
|
|
10807 EOF
|
|
10808 cat >> confdefs.h <<\EOF
|
|
10809 #define LWLIB_SCROLLBARS_ATHENA 1
|
|
10810 EOF
|
|
10811 }
|
434
|
10812
|
|
10813 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
10814 Defining LWLIB_DIALOGS_ATHENA
|
|
10815 EOF
|
|
10816 cat >> confdefs.h <<\EOF
|
|
10817 #define LWLIB_DIALOGS_ATHENA 1
|
|
10818 EOF
|
|
10819 }
|
434
|
10820
|
|
10821
|
|
10822 if test "$athena_3d" = "yes"; then
|
|
10823 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
10824 Defining LWLIB_SCROLLBARS_ATHENA3D
|
|
10825 EOF
|
|
10826 cat >> confdefs.h <<\EOF
|
|
10827 #define LWLIB_SCROLLBARS_ATHENA3D 1
|
|
10828 EOF
|
|
10829 }
|
|
10830
|
434
|
10831 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
10832 Defining LWLIB_DIALOGS_ATHENA3D
|
|
10833 EOF
|
|
10834 cat >> confdefs.h <<\EOF
|
|
10835 #define LWLIB_DIALOGS_ATHENA3D 1
|
|
10836 EOF
|
|
10837 }
|
|
10838
|
434
|
10839 fi
|
|
10840
|
424
|
10841 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10842 Defining LWLIB_WIDGETS_ATHENA
|
|
10843 EOF
|
|
10844 cat >> confdefs.h <<\EOF
|
|
10845 #define LWLIB_WIDGETS_ATHENA 1
|
|
10846 EOF
|
|
10847 }
|
|
10848 ;; esac
|
|
10849 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
|
|
10850 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10851 Defining LWLIB_TABS_LUCID
|
|
10852 EOF
|
|
10853 cat >> confdefs.h <<\EOF
|
|
10854 #define LWLIB_TABS_LUCID 1
|
|
10855 EOF
|
|
10856 }
|
|
10857
|
149
|
10858
|
|
10859 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10860 Defining HAVE_MENUBARS
|
|
10861 EOF
|
|
10862 cat >> confdefs.h <<\EOF
|
|
10863 #define HAVE_MENUBARS 1
|
|
10864 EOF
|
|
10865 }
|
|
10866
|
|
10867 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10868 Defining HAVE_SCROLLBARS
|
|
10869 EOF
|
|
10870 cat >> confdefs.h <<\EOF
|
|
10871 #define HAVE_SCROLLBARS 1
|
|
10872 EOF
|
|
10873 }
|
|
10874
|
|
10875 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10876 Defining HAVE_DIALOGS
|
|
10877 EOF
|
|
10878 cat >> confdefs.h <<\EOF
|
|
10879 #define HAVE_DIALOGS 1
|
|
10880 EOF
|
|
10881 }
|
|
10882
|
|
10883 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10884 Defining HAVE_TOOLBARS
|
|
10885 EOF
|
|
10886 cat >> confdefs.h <<\EOF
|
|
10887 #define HAVE_TOOLBARS 1
|
|
10888 EOF
|
|
10889 }
|
|
10890
|
440
|
10891 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
10892 Defining HAVE_WIDGETS
|
|
10893 EOF
|
|
10894 cat >> confdefs.h <<\EOF
|
|
10895 #define HAVE_WIDGETS 1
|
|
10896 EOF
|
|
10897 }
|
|
10898
|
149
|
10899
|
|
10900 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10901 Defining LWLIB_MENUBARS_LUCID
|
|
10902 EOF
|
|
10903 cat >> confdefs.h <<\EOF
|
|
10904 #define LWLIB_MENUBARS_LUCID 1
|
|
10905 EOF
|
|
10906 }
|
|
10907
|
|
10908 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10909 Defining LWLIB_SCROLLBARS_LUCID
|
|
10910 EOF
|
|
10911 cat >> confdefs.h <<\EOF
|
|
10912 #define LWLIB_SCROLLBARS_LUCID 1
|
|
10913 EOF
|
|
10914 }
|
|
10915
|
|
10916
|
|
10917 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10918 Defining LWLIB_MENUBARS_MOTIF
|
|
10919 EOF
|
|
10920 cat >> confdefs.h <<\EOF
|
|
10921 #define LWLIB_MENUBARS_MOTIF 1
|
|
10922 EOF
|
|
10923 }
|
|
10924
|
|
10925 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10926 Defining LWLIB_SCROLLBARS_MOTIF
|
|
10927 EOF
|
|
10928 cat >> confdefs.h <<\EOF
|
|
10929 #define LWLIB_SCROLLBARS_MOTIF 1
|
|
10930 EOF
|
|
10931 }
|
|
10932
|
|
10933 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10934 Defining LWLIB_DIALOGS_MOTIF
|
|
10935 EOF
|
|
10936 cat >> confdefs.h <<\EOF
|
|
10937 #define LWLIB_DIALOGS_MOTIF 1
|
|
10938 EOF
|
|
10939 }
|
|
10940
|
424
|
10941 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10942 Defining LWLIB_WIDGETS_MOTIF
|
|
10943 EOF
|
|
10944 cat >> confdefs.h <<\EOF
|
|
10945 #define LWLIB_WIDGETS_MOTIF 1
|
|
10946 EOF
|
|
10947 }
|
|
10948
|
412
|
10949
|
272
|
10950
|
|
10951 test -z "$with_mule" && with_mule=no
|
561
|
10952
|
|
10953
|
771
|
10954 if test "$with_default_eol_detection" = "yes"; then
|
251
|
10955 { test "$extra_verbose" = "yes" && cat << \EOF
|
771
|
10956 Defining HAVE_DEFAULT_EOL_DETECTION
|
|
10957 EOF
|
|
10958 cat >> confdefs.h <<\EOF
|
|
10959 #define HAVE_DEFAULT_EOL_DETECTION 1
|
|
10960 EOF
|
|
10961 }
|
|
10962
|
|
10963 fi
|
594
|
10964
|
149
|
10965 if test "$with_mule" = "yes" ; then
|
151
|
10966 echo "checking for Mule-related features" 1>&6
|
1692
|
10967 echo "configure:10968: checking for Mule-related features" >&5
|
149
|
10968 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10969 Defining MULE
|
|
10970 EOF
|
|
10971 cat >> confdefs.h <<\EOF
|
|
10972 #define MULE 1
|
|
10973 EOF
|
|
10974 }
|
|
10975
|
|
10976
|
155
|
10977 for ac_hdr in libintl.h
|
|
10978 do
|
|
10979 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
10980 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1692
|
10981 echo "configure:10982: checking for $ac_hdr" >&5
|
|
10982
|
|
10983 cat > conftest.$ac_ext <<EOF
|
|
10984 #line 10985 "configure"
|
155
|
10985 #include "confdefs.h"
|
|
10986 #include <$ac_hdr>
|
|
10987 EOF
|
|
10988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
10989 { (eval echo configure:10990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
10991 if test -z "$ac_err"; then
|
|
10992 rm -rf conftest*
|
|
10993 eval "ac_cv_header_$ac_safe=yes"
|
|
10994 else
|
|
10995 echo "$ac_err" >&5
|
|
10996 echo "configure: failed program was:" >&5
|
|
10997 cat conftest.$ac_ext >&5
|
|
10998 rm -rf conftest*
|
|
10999 eval "ac_cv_header_$ac_safe=no"
|
|
11000 fi
|
|
11001 rm -f conftest*
|
|
11002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11003 echo "$ac_t""yes" 1>&6
|
|
11004 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11005 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11006 Defining $ac_tr_hdr
|
|
11007 EOF
|
|
11008 cat >> confdefs.h <<EOF
|
|
11009 #define $ac_tr_hdr 1
|
|
11010 EOF
|
|
11011 }
|
|
11012
|
|
11013 else
|
|
11014 echo "$ac_t""no" 1>&6
|
|
11015 fi
|
|
11016 done
|
|
11017
|
|
11018
|
149
|
11019 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
|
1692
|
11020 echo "configure:11021: checking for strerror in -lintl" >&5
|
149
|
11021 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
|
|
11022
|
|
11023 xe_check_libs=" -lintl "
|
|
11024 cat > conftest.$ac_ext <<EOF
|
1692
|
11025 #line 11026 "configure"
|
149
|
11026 #include "confdefs.h"
|
|
11027 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11028 /* We use char because int might match the return type of a gcc2
|
|
11029 builtin and then its argument prototype would still apply. */
|
|
11030 char strerror();
|
|
11031
|
|
11032 int main() {
|
|
11033 strerror()
|
|
11034 ; return 0; }
|
|
11035 EOF
|
1692
|
11036 if { (eval echo configure:11037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11037 rm -rf conftest*
|
|
11038 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11039 else
|
|
11040 echo "configure: failed program was:" >&5
|
|
11041 cat conftest.$ac_ext >&5
|
|
11042 rm -rf conftest*
|
|
11043 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11044 fi
|
|
11045 rm -f conftest*
|
|
11046 xe_check_libs=""
|
|
11047
|
151
|
11048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11049 echo "$ac_t""yes" 1>&6
|
|
11050 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
11051 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
11052 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11053 Defining $ac_tr_lib
|
|
11054 EOF
|
|
11055 cat >> confdefs.h <<EOF
|
|
11056 #define $ac_tr_lib 1
|
|
11057 EOF
|
|
11058 }
|
|
11059
|
151
|
11060 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
|
149
|
11061
|
|
11062 else
|
|
11063 echo "$ac_t""no" 1>&6
|
|
11064 fi
|
|
11065
|
|
11066
|
|
11067
|
|
11068 echo "checking for Mule input methods" 1>&6
|
1692
|
11069 echo "configure:11070: checking for Mule input methods" >&5
|
272
|
11070 case "$with_xim" in "" | "yes" )
|
149
|
11071 echo "checking for XIM" 1>&6
|
1692
|
11072 echo "configure:11073: checking for XIM" >&5
|
392
|
11073
|
|
11074 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
|
1692
|
11075 echo "configure:11076: checking for XOpenIM in -lX11" >&5
|
392
|
11076 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
|
|
11077
|
|
11078 xe_check_libs=" -lX11 "
|
|
11079 cat > conftest.$ac_ext <<EOF
|
1692
|
11080 #line 11081 "configure"
|
392
|
11081 #include "confdefs.h"
|
|
11082 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11083 /* We use char because int might match the return type of a gcc2
|
|
11084 builtin and then its argument prototype would still apply. */
|
|
11085 char XOpenIM();
|
|
11086
|
|
11087 int main() {
|
|
11088 XOpenIM()
|
|
11089 ; return 0; }
|
|
11090 EOF
|
1692
|
11091 if { (eval echo configure:11092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
392
|
11092 rm -rf conftest*
|
|
11093 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11094 else
|
|
11095 echo "configure: failed program was:" >&5
|
|
11096 cat conftest.$ac_ext >&5
|
|
11097 rm -rf conftest*
|
|
11098 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11099 fi
|
|
11100 rm -f conftest*
|
|
11101 xe_check_libs=""
|
|
11102
|
|
11103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11104 echo "$ac_t""yes" 1>&6
|
|
11105 with_xim=xlib
|
|
11106 else
|
|
11107 echo "$ac_t""no" 1>&6
|
|
11108 with_xim=no
|
|
11109 fi
|
|
11110
|
|
11111
|
|
11112 if test "$have_motif $have_lesstif" = "yes no"; then
|
|
11113
|
149
|
11114 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
|
1692
|
11115 echo "configure:11116: checking for XmImMbLookupString in -lXm" >&5
|
149
|
11116 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
|
|
11117
|
|
11118 xe_check_libs=" -lXm "
|
|
11119 cat > conftest.$ac_ext <<EOF
|
1692
|
11120 #line 11121 "configure"
|
149
|
11121 #include "confdefs.h"
|
|
11122 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11123 /* We use char because int might match the return type of a gcc2
|
|
11124 builtin and then its argument prototype would still apply. */
|
|
11125 char XmImMbLookupString();
|
|
11126
|
|
11127 int main() {
|
|
11128 XmImMbLookupString()
|
|
11129 ; return 0; }
|
|
11130 EOF
|
1692
|
11131 if { (eval echo configure:11132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11132 rm -rf conftest*
|
|
11133 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11134 else
|
|
11135 echo "configure: failed program was:" >&5
|
|
11136 cat conftest.$ac_ext >&5
|
|
11137 rm -rf conftest*
|
|
11138 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11139 fi
|
|
11140 rm -f conftest*
|
|
11141 xe_check_libs=""
|
|
11142
|
151
|
11143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11144 echo "$ac_t""yes" 1>&6
|
|
11145 with_xim=motif
|
|
11146 else
|
|
11147 echo "$ac_t""no" 1>&6
|
392
|
11148 fi
|
|
11149
|
|
11150
|
|
11151 fi ;;
|
149
|
11152 esac
|
272
|
11153 if test "$with_xim" != "no"; then
|
149
|
11154 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11155 Defining HAVE_XIM
|
|
11156 EOF
|
|
11157 cat >> confdefs.h <<\EOF
|
|
11158 #define HAVE_XIM 1
|
|
11159 EOF
|
|
11160 }
|
|
11161
|
|
11162 if test "$with_xim" = "xlib"; then
|
|
11163 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11164 Defining XIM_XLIB
|
|
11165 EOF
|
|
11166 cat >> confdefs.h <<\EOF
|
|
11167 #define XIM_XLIB 1
|
|
11168 EOF
|
|
11169 }
|
|
11170
|
151
|
11171 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
11172 echo " xemacs will be linked with \"input-method-xlib.o\""
|
|
11173 fi
|
|
11174 fi
|
149
|
11175 if test "$with_xim" = "motif"; then
|
|
11176 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11177 Defining XIM_MOTIF
|
|
11178 EOF
|
|
11179 cat >> confdefs.h <<\EOF
|
|
11180 #define XIM_MOTIF 1
|
|
11181 EOF
|
|
11182 }
|
|
11183
|
|
11184 need_motif=yes
|
151
|
11185 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
|
|
11186 echo " xemacs will be linked with \"input-method-motif.o\""
|
|
11187 fi
|
149
|
11188 fi
|
215
|
11189 if test "$with_xim" = "motif"; then
|
177
|
11190 with_xfs=no
|
|
11191 fi
|
215
|
11192 fi
|
|
11193
|
|
11194 if test "$with_xfs" = "yes" ; then
|
|
11195 echo "checking for XFontSet" 1>&6
|
1692
|
11196 echo "configure:11197: checking for XFontSet" >&5
|
215
|
11197
|
177
|
11198 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
|
1692
|
11199 echo "configure:11200: checking for XmbDrawString in -lX11" >&5
|
177
|
11200 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
|
|
11201
|
|
11202 xe_check_libs=" -lX11 "
|
|
11203 cat > conftest.$ac_ext <<EOF
|
1692
|
11204 #line 11205 "configure"
|
177
|
11205 #include "confdefs.h"
|
|
11206 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11207 /* We use char because int might match the return type of a gcc2
|
|
11208 builtin and then its argument prototype would still apply. */
|
|
11209 char XmbDrawString();
|
|
11210
|
|
11211 int main() {
|
|
11212 XmbDrawString()
|
|
11213 ; return 0; }
|
|
11214 EOF
|
1692
|
11215 if { (eval echo configure:11216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
177
|
11216 rm -rf conftest*
|
|
11217 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11218 else
|
|
11219 echo "configure: failed program was:" >&5
|
|
11220 cat conftest.$ac_ext >&5
|
|
11221 rm -rf conftest*
|
|
11222 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11223 fi
|
|
11224 rm -f conftest*
|
|
11225 xe_check_libs=""
|
|
11226
|
|
11227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11228 echo "$ac_t""yes" 1>&6
|
|
11229 :
|
|
11230 else
|
|
11231 echo "$ac_t""no" 1>&6
|
|
11232 with_xfs=no
|
|
11233 fi
|
|
11234
|
|
11235
|
|
11236 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
|
|
11237 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11238 Defining USE_XFONTSET
|
|
11239 EOF
|
|
11240 cat >> confdefs.h <<\EOF
|
|
11241 #define USE_XFONTSET 1
|
|
11242 EOF
|
|
11243 }
|
|
11244
|
215
|
11245 if test "$with_xim" = "no" ; then
|
450
|
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\""
|
177
|
11248 fi
|
215
|
11249 fi
|
177
|
11250 fi
|
151
|
11251 fi
|
149
|
11252 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
|
151
|
11253 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
|
|
11254 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
|
1692
|
11255 echo "configure:11256: checking for wnn/jllib.h" >&5
|
|
11256
|
|
11257 cat > conftest.$ac_ext <<EOF
|
|
11258 #line 11259 "configure"
|
151
|
11259 #include "confdefs.h"
|
|
11260 #include <wnn/jllib.h>
|
149
|
11261 EOF
|
|
11262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
11263 { (eval echo configure:11264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
458
|
11264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11265 if test -z "$ac_err"; then
|
|
11266 rm -rf conftest*
|
|
11267 eval "ac_cv_header_$ac_safe=yes"
|
|
11268 else
|
|
11269 echo "$ac_err" >&5
|
|
11270 echo "configure: failed program was:" >&5
|
|
11271 cat conftest.$ac_ext >&5
|
|
11272 rm -rf conftest*
|
|
11273 eval "ac_cv_header_$ac_safe=no"
|
|
11274 fi
|
|
11275 rm -f conftest*
|
|
11276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11277 echo "$ac_t""yes" 1>&6
|
|
11278 :
|
|
11279 else
|
|
11280 echo "$ac_t""no" 1>&6
|
|
11281 with_wnn=no
|
|
11282 fi
|
|
11283 }
|
|
11284 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
|
|
11285 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
|
1692
|
11286 echo "configure:11287: checking for wnn/commonhd.h" >&5
|
|
11287
|
|
11288 cat > conftest.$ac_ext <<EOF
|
|
11289 #line 11290 "configure"
|
458
|
11290 #include "confdefs.h"
|
|
11291 #include <wnn/commonhd.h>
|
|
11292 EOF
|
|
11293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
11294 { (eval echo configure:11295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
11296 if test -z "$ac_err"; then
|
|
11297 rm -rf conftest*
|
|
11298 eval "ac_cv_header_$ac_safe=yes"
|
|
11299 else
|
|
11300 echo "$ac_err" >&5
|
|
11301 echo "configure: failed program was:" >&5
|
|
11302 cat conftest.$ac_ext >&5
|
|
11303 rm -rf conftest*
|
|
11304 eval "ac_cv_header_$ac_safe=no"
|
|
11305 fi
|
|
11306 rm -f conftest*
|
|
11307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11308 echo "$ac_t""yes" 1>&6
|
|
11309 :
|
|
11310 else
|
|
11311 echo "$ac_t""no" 1>&6
|
|
11312 with_wnn=no
|
|
11313 fi
|
|
11314 }
|
167
|
11315 if test "$with_wnn" != "no"; then
|
|
11316 for ac_func in crypt
|
|
11317 do
|
|
11318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
11319 echo "configure:11320: checking for $ac_func" >&5
|
|
11320
|
|
11321 cat > conftest.$ac_ext <<EOF
|
|
11322 #line 11323 "configure"
|
167
|
11323 #include "confdefs.h"
|
|
11324 /* System header to define __stub macros and hopefully few prototypes,
|
|
11325 which can conflict with char $ac_func(); below. */
|
|
11326 #include <assert.h>
|
|
11327 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11328 /* We use char because int might match the return type of a gcc2
|
|
11329 builtin and then its argument prototype would still apply. */
|
|
11330 char $ac_func();
|
|
11331
|
|
11332 int main() {
|
|
11333
|
|
11334 /* The GNU C library defines this for functions which it implements
|
|
11335 to always fail with ENOSYS. Some functions are actually named
|
|
11336 something starting with __ and the normal name is an alias. */
|
|
11337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
11338 choke me
|
|
11339 #else
|
|
11340 $ac_func();
|
|
11341 #endif
|
|
11342
|
|
11343 ; return 0; }
|
|
11344 EOF
|
1692
|
11345 if { (eval echo configure:11346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
167
|
11346 rm -rf conftest*
|
|
11347 eval "ac_cv_func_$ac_func=yes"
|
|
11348 else
|
|
11349 echo "configure: failed program was:" >&5
|
|
11350 cat conftest.$ac_ext >&5
|
|
11351 rm -rf conftest*
|
|
11352 eval "ac_cv_func_$ac_func=no"
|
|
11353 fi
|
|
11354 rm -f conftest*
|
|
11355
|
|
11356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11357 echo "$ac_t""yes" 1>&6
|
|
11358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
11359 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11360 Defining $ac_tr_func
|
|
11361 EOF
|
|
11362 cat >> confdefs.h <<EOF
|
|
11363 #define $ac_tr_func 1
|
|
11364 EOF
|
|
11365 }
|
|
11366
|
|
11367 else
|
|
11368 echo "$ac_t""no" 1>&6
|
|
11369 fi
|
|
11370 done
|
|
11371
|
|
11372 test "$ac_cv_func_crypt" != "yes" && {
|
|
11373 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
1692
|
11374 echo "configure:11375: checking for crypt in -lcrypt" >&5
|
167
|
11375 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
|
11376
|
|
11377 xe_check_libs=" -lcrypt "
|
|
11378 cat > conftest.$ac_ext <<EOF
|
1692
|
11379 #line 11380 "configure"
|
167
|
11380 #include "confdefs.h"
|
|
11381 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11382 /* We use char because int might match the return type of a gcc2
|
|
11383 builtin and then its argument prototype would still apply. */
|
|
11384 char crypt();
|
|
11385
|
|
11386 int main() {
|
|
11387 crypt()
|
|
11388 ; return 0; }
|
|
11389 EOF
|
1692
|
11390 if { (eval echo configure:11391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
167
|
11391 rm -rf conftest*
|
|
11392 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11393 else
|
|
11394 echo "configure: failed program was:" >&5
|
|
11395 cat conftest.$ac_ext >&5
|
|
11396 rm -rf conftest*
|
|
11397 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11398 fi
|
|
11399 rm -f conftest*
|
|
11400 xe_check_libs=""
|
|
11401
|
|
11402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11403 echo "$ac_t""yes" 1>&6
|
|
11404 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
11405 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
11406 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11407 Defining $ac_tr_lib
|
|
11408 EOF
|
|
11409 cat >> confdefs.h <<EOF
|
|
11410 #define $ac_tr_lib 1
|
|
11411 EOF
|
|
11412 }
|
|
11413
|
|
11414 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
|
|
11415
|
|
11416 else
|
|
11417 echo "$ac_t""no" 1>&6
|
|
11418 fi
|
|
11419
|
|
11420 }
|
|
11421 fi
|
377
|
11422 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
|
|
11423
|
159
|
11424 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
|
1692
|
11425 echo "configure:11426: checking for jl_dic_list_e in -lwnn" >&5
|
155
|
11426 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
149
|
11427
|
159
|
11428 xe_check_libs=" -lwnn "
|
|
11429 cat > conftest.$ac_ext <<EOF
|
1692
|
11430 #line 11431 "configure"
|
149
|
11431 #include "confdefs.h"
|
|
11432 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11433 /* We use char because int might match the return type of a gcc2
|
|
11434 builtin and then its argument prototype would still apply. */
|
155
|
11435 char jl_dic_list_e();
|
149
|
11436
|
|
11437 int main() {
|
155
|
11438 jl_dic_list_e()
|
149
|
11439 ; return 0; }
|
|
11440 EOF
|
1692
|
11441 if { (eval echo configure:11442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
11442 rm -rf conftest*
|
|
11443 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11444 else
|
|
11445 echo "configure: failed program was:" >&5
|
|
11446 cat conftest.$ac_ext >&5
|
|
11447 rm -rf conftest*
|
|
11448 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11449 fi
|
|
11450 rm -f conftest*
|
|
11451 xe_check_libs=""
|
|
11452
|
|
11453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11454 echo "$ac_t""yes" 1>&6
|
|
11455 libwnn=wnn
|
|
11456 else
|
|
11457 echo "$ac_t""no" 1>&6
|
|
11458 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
|
1692
|
11459 echo "configure:11460: checking for jl_dic_list_e in -lwnn4" >&5
|
377
|
11460 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
11461
|
|
11462 xe_check_libs=" -lwnn4 "
|
|
11463 cat > conftest.$ac_ext <<EOF
|
1692
|
11464 #line 11465 "configure"
|
377
|
11465 #include "confdefs.h"
|
|
11466 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11467 /* We use char because int might match the return type of a gcc2
|
|
11468 builtin and then its argument prototype would still apply. */
|
|
11469 char jl_dic_list_e();
|
|
11470
|
|
11471 int main() {
|
|
11472 jl_dic_list_e()
|
|
11473 ; return 0; }
|
|
11474 EOF
|
1692
|
11475 if { (eval echo configure:11476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11476 rm -rf conftest*
|
|
11477 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11478 else
|
|
11479 echo "configure: failed program was:" >&5
|
|
11480 cat conftest.$ac_ext >&5
|
|
11481 rm -rf conftest*
|
|
11482 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11483 fi
|
|
11484 rm -f conftest*
|
|
11485 xe_check_libs=""
|
|
11486
|
151
|
11487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11488 echo "$ac_t""yes" 1>&6
|
377
|
11489 libwnn=wnn4
|
|
11490 else
|
|
11491 echo "$ac_t""no" 1>&6
|
|
11492 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
|
1692
|
11493 echo "configure:11494: checking for jl_dic_list_e in -lwnn6" >&5
|
377
|
11494 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
11495
|
|
11496 xe_check_libs=" -lwnn6 "
|
|
11497 cat > conftest.$ac_ext <<EOF
|
1692
|
11498 #line 11499 "configure"
|
377
|
11499 #include "confdefs.h"
|
|
11500 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11501 /* We use char because int might match the return type of a gcc2
|
|
11502 builtin and then its argument prototype would still apply. */
|
|
11503 char jl_dic_list_e();
|
|
11504
|
|
11505 int main() {
|
|
11506 jl_dic_list_e()
|
|
11507 ; return 0; }
|
|
11508 EOF
|
1692
|
11509 if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
11510 rm -rf conftest*
|
|
11511 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11512 else
|
|
11513 echo "configure: failed program was:" >&5
|
|
11514 cat conftest.$ac_ext >&5
|
|
11515 rm -rf conftest*
|
|
11516 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11517 fi
|
|
11518 rm -f conftest*
|
|
11519 xe_check_libs=""
|
|
11520
|
|
11521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11522 echo "$ac_t""yes" 1>&6
|
|
11523 libwnn=wnn6
|
|
11524 else
|
|
11525 echo "$ac_t""no" 1>&6
|
|
11526 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
|
1692
|
11527 echo "configure:11528: checking for dic_list_e in -lwnn6_fromsrc" >&5
|
377
|
11528 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
|
|
11529
|
|
11530 xe_check_libs=" -lwnn6_fromsrc "
|
|
11531 cat > conftest.$ac_ext <<EOF
|
1692
|
11532 #line 11533 "configure"
|
377
|
11533 #include "confdefs.h"
|
|
11534 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11535 /* We use char because int might match the return type of a gcc2
|
|
11536 builtin and then its argument prototype would still apply. */
|
|
11537 char dic_list_e();
|
|
11538
|
|
11539 int main() {
|
|
11540 dic_list_e()
|
|
11541 ; return 0; }
|
|
11542 EOF
|
1692
|
11543 if { (eval echo configure:11544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
11544 rm -rf conftest*
|
|
11545 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11546 else
|
|
11547 echo "configure: failed program was:" >&5
|
|
11548 cat conftest.$ac_ext >&5
|
|
11549 rm -rf conftest*
|
|
11550 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11551 fi
|
|
11552 rm -f conftest*
|
|
11553 xe_check_libs=""
|
|
11554
|
|
11555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11556 echo "$ac_t""yes" 1>&6
|
|
11557 libwnn=wnn6_fromsrc
|
159
|
11558 else
|
|
11559 echo "$ac_t""no" 1>&6
|
|
11560 with_wnn=no
|
149
|
11561 fi
|
|
11562
|
377
|
11563
|
|
11564 fi
|
|
11565
|
|
11566
|
|
11567 fi
|
|
11568
|
|
11569
|
|
11570 fi
|
|
11571
|
|
11572
|
|
11573 fi
|
149
|
11574 test -z "$with_wnn" && with_wnn=yes
|
|
11575 if test "$with_wnn" = "yes"; then
|
|
11576 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11577 Defining HAVE_WNN
|
|
11578 EOF
|
|
11579 cat >> confdefs.h <<\EOF
|
|
11580 #define HAVE_WNN 1
|
|
11581 EOF
|
|
11582 }
|
|
11583
|
377
|
11584 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
|
284
|
11585 if test "$with_wnn6" != "no"; then
|
|
11586
|
377
|
11587 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
|
1692
|
11588 echo "configure:11589: checking for jl_fi_dic_list in -l$libwnn" >&5
|
377
|
11589 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
|
|
11590
|
|
11591 xe_check_libs=" -l$libwnn "
|
|
11592 cat > conftest.$ac_ext <<EOF
|
1692
|
11593 #line 11594 "configure"
|
149
|
11594 #include "confdefs.h"
|
|
11595 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11596 /* We use char because int might match the return type of a gcc2
|
|
11597 builtin and then its argument prototype would still apply. */
|
|
11598 char jl_fi_dic_list();
|
|
11599
|
|
11600 int main() {
|
|
11601 jl_fi_dic_list()
|
|
11602 ; return 0; }
|
|
11603 EOF
|
1692
|
11604 if { (eval echo configure:11605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11605 rm -rf conftest*
|
|
11606 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11607 else
|
|
11608 echo "configure: failed program was:" >&5
|
|
11609 cat conftest.$ac_ext >&5
|
|
11610 rm -rf conftest*
|
|
11611 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11612 fi
|
|
11613 rm -f conftest*
|
|
11614 xe_check_libs=""
|
|
11615
|
151
|
11616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11617 echo "$ac_t""yes" 1>&6
|
|
11618 with_wnn6=yes
|
|
11619 else
|
|
11620 echo "$ac_t""no" 1>&6
|
|
11621 fi
|
|
11622
|
|
11623
|
284
|
11624 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
151
|
11625 Defining WNN6
|
|
11626 EOF
|
|
11627 cat >> confdefs.h <<\EOF
|
|
11628 #define WNN6 1
|
|
11629 EOF
|
|
11630 }
|
|
11631
|
284
|
11632 fi
|
151
|
11633 fi
|
149
|
11634
|
267
|
11635 canna_includes_found=no
|
|
11636 if test "$with_canna" != "no"; then
|
|
11637 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
11638 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
1692
|
11639 echo "configure:11640: checking for canna/jrkanji.h" >&5
|
|
11640
|
|
11641 cat > conftest.$ac_ext <<EOF
|
|
11642 #line 11643 "configure"
|
267
|
11643 #include "confdefs.h"
|
|
11644 #include <canna/jrkanji.h>
|
|
11645 EOF
|
|
11646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
11647 { (eval echo configure:11648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
267
|
11649 if test -z "$ac_err"; then
|
|
11650 rm -rf conftest*
|
|
11651 eval "ac_cv_header_$ac_safe=yes"
|
|
11652 else
|
|
11653 echo "$ac_err" >&5
|
|
11654 echo "configure: failed program was:" >&5
|
|
11655 cat conftest.$ac_ext >&5
|
|
11656 rm -rf conftest*
|
|
11657 eval "ac_cv_header_$ac_safe=no"
|
|
11658 fi
|
|
11659 rm -f conftest*
|
|
11660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11661 echo "$ac_t""yes" 1>&6
|
|
11662 canna_includes_found=yes
|
|
11663 else
|
|
11664 echo "$ac_t""no" 1>&6
|
|
11665 fi
|
|
11666
|
|
11667 fi
|
|
11668 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
|
|
11669 -d "/usr/local/canna/include"; then
|
|
11670 save_c_switch_site="$c_switch_site"
|
|
11671 c_switch_site="$c_switch_site -I/usr/local/canna/include"
|
|
11672 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
11673 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
1692
|
11674 echo "configure:11675: checking for canna/jrkanji.h" >&5
|
|
11675
|
|
11676 cat > conftest.$ac_ext <<EOF
|
|
11677 #line 11678 "configure"
|
267
|
11678 #include "confdefs.h"
|
|
11679 #include <canna/jrkanji.h>
|
|
11680 EOF
|
|
11681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
11682 { (eval echo configure:11683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
267
|
11684 if test -z "$ac_err"; then
|
|
11685 rm -rf conftest*
|
|
11686 eval "ac_cv_header_$ac_safe=yes"
|
|
11687 else
|
|
11688 echo "$ac_err" >&5
|
|
11689 echo "configure: failed program was:" >&5
|
|
11690 cat conftest.$ac_ext >&5
|
|
11691 rm -rf conftest*
|
|
11692 eval "ac_cv_header_$ac_safe=no"
|
|
11693 fi
|
|
11694 rm -f conftest*
|
|
11695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11696 echo "$ac_t""yes" 1>&6
|
|
11697 canna_includes_found=yes
|
|
11698 else
|
|
11699 echo "$ac_t""no" 1>&6
|
|
11700 fi
|
|
11701
|
|
11702 if test "$canna_includes_found" != "yes"; then
|
|
11703 c_switch_site="$save_c_switch_site"
|
|
11704 with_canna="no"
|
|
11705 fi
|
|
11706 fi
|
|
11707
|
|
11708 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
|
149
|
11709 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
|
1692
|
11710 echo "configure:11711: checking for canna/RK.h" >&5
|
|
11711
|
|
11712 cat > conftest.$ac_ext <<EOF
|
|
11713 #line 11714 "configure"
|
149
|
11714 #include "confdefs.h"
|
|
11715 #include <canna/RK.h>
|
|
11716 EOF
|
|
11717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
11718 { (eval echo configure:11719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
11720 if test -z "$ac_err"; then
|
|
11721 rm -rf conftest*
|
|
11722 eval "ac_cv_header_$ac_safe=yes"
|
|
11723 else
|
|
11724 echo "$ac_err" >&5
|
|
11725 echo "configure: failed program was:" >&5
|
|
11726 cat conftest.$ac_ext >&5
|
|
11727 rm -rf conftest*
|
|
11728 eval "ac_cv_header_$ac_safe=no"
|
|
11729 fi
|
|
11730 rm -f conftest*
|
|
11731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11732 echo "$ac_t""yes" 1>&6
|
|
11733 :
|
|
11734 else
|
|
11735 echo "$ac_t""no" 1>&6
|
|
11736 with_canna=no
|
|
11737 fi
|
|
11738 }
|
|
11739 test -z "$with_canna" && {
|
|
11740 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
|
1692
|
11741 echo "configure:11742: checking for RkBgnBun in -lRKC" >&5
|
149
|
11742 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
|
|
11743
|
|
11744 xe_check_libs=" -lRKC "
|
|
11745 cat > conftest.$ac_ext <<EOF
|
1692
|
11746 #line 11747 "configure"
|
149
|
11747 #include "confdefs.h"
|
|
11748 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11749 /* We use char because int might match the return type of a gcc2
|
|
11750 builtin and then its argument prototype would still apply. */
|
|
11751 char RkBgnBun();
|
|
11752
|
|
11753 int main() {
|
|
11754 RkBgnBun()
|
|
11755 ; return 0; }
|
|
11756 EOF
|
1692
|
11757 if { (eval echo configure:11758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11758 rm -rf conftest*
|
|
11759 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11760 else
|
|
11761 echo "configure: failed program was:" >&5
|
|
11762 cat conftest.$ac_ext >&5
|
|
11763 rm -rf conftest*
|
|
11764 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11765 fi
|
|
11766 rm -f conftest*
|
|
11767 xe_check_libs=""
|
|
11768
|
151
|
11769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11770 echo "$ac_t""yes" 1>&6
|
|
11771 :
|
|
11772 else
|
|
11773 echo "$ac_t""no" 1>&6
|
|
11774 with_canna=no
|
|
11775 fi
|
|
11776
|
|
11777 }
|
|
11778 test -z "$with_canna" && {
|
|
11779 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
|
1692
|
11780 echo "configure:11781: checking for jrKanjiControl in -lcanna" >&5
|
149
|
11781 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
|
|
11782
|
|
11783 xe_check_libs=" -lcanna "
|
|
11784 cat > conftest.$ac_ext <<EOF
|
1692
|
11785 #line 11786 "configure"
|
149
|
11786 #include "confdefs.h"
|
|
11787 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11788 /* We use char because int might match the return type of a gcc2
|
|
11789 builtin and then its argument prototype would still apply. */
|
|
11790 char jrKanjiControl();
|
|
11791
|
|
11792 int main() {
|
|
11793 jrKanjiControl()
|
|
11794 ; return 0; }
|
|
11795 EOF
|
1692
|
11796 if { (eval echo configure:11797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11797 rm -rf conftest*
|
|
11798 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11799 else
|
|
11800 echo "configure: failed program was:" >&5
|
|
11801 cat conftest.$ac_ext >&5
|
|
11802 rm -rf conftest*
|
|
11803 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11804 fi
|
|
11805 rm -f conftest*
|
|
11806 xe_check_libs=""
|
|
11807
|
151
|
11808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11809 echo "$ac_t""yes" 1>&6
|
|
11810 :
|
|
11811 else
|
|
11812 echo "$ac_t""no" 1>&6
|
|
11813 with_canna=no
|
|
11814 fi
|
|
11815
|
|
11816 }
|
|
11817 test -z "$with_canna" && with_canna=yes
|
|
11818 if test "$with_canna" = "yes"; then
|
|
11819 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11820 Defining HAVE_CANNA
|
|
11821 EOF
|
|
11822 cat >> confdefs.h <<\EOF
|
|
11823 #define HAVE_CANNA 1
|
|
11824 EOF
|
|
11825 }
|
|
11826
|
151
|
11827 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
|
|
11828 fi
|
155
|
11829
|
151
|
11830 else for feature in xim canna wnn; do
|
149
|
11831 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
561
|
11832 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2
|
149
|
11833 fi
|
|
11834 eval "with_${feature}=no"
|
|
11835 done
|
151
|
11836 fi
|
|
11837
|
|
11838 if test "$need_motif" = "yes" ; then
|
|
11839 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
|
207
|
11840
|
|
11841 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
|
1692
|
11842 echo "configure:11843: checking for layout_object_getvalue in -li18n" >&5
|
207
|
11843 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
|
|
11844
|
|
11845 xe_check_libs=" -li18n "
|
|
11846 cat > conftest.$ac_ext <<EOF
|
1692
|
11847 #line 11848 "configure"
|
207
|
11848 #include "confdefs.h"
|
|
11849 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11850 /* We use char because int might match the return type of a gcc2
|
|
11851 builtin and then its argument prototype would still apply. */
|
|
11852 char layout_object_getvalue();
|
|
11853
|
|
11854 int main() {
|
|
11855 layout_object_getvalue()
|
|
11856 ; return 0; }
|
|
11857 EOF
|
1692
|
11858 if { (eval echo configure:11859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
207
|
11859 rm -rf conftest*
|
|
11860 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11861 else
|
|
11862 echo "configure: failed program was:" >&5
|
|
11863 cat conftest.$ac_ext >&5
|
|
11864 rm -rf conftest*
|
|
11865 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11866 fi
|
|
11867 rm -f conftest*
|
|
11868 xe_check_libs=""
|
|
11869
|
|
11870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11871 echo "$ac_t""yes" 1>&6
|
|
11872 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
|
|
11873 else
|
|
11874 echo "$ac_t""no" 1>&6
|
|
11875 fi
|
|
11876
|
|
11877
|
151
|
11878
|
|
11879 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
11880 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
11881 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
11882
|
163
|
11883 runpath="" runpath_dirs=""
|
155
|
11884 if test -n "$LD_RUN_PATH"; then
|
151
|
11885 runpath="$LD_RUN_PATH"
|
155
|
11886 elif test "$GCC" = "yes"; then
|
163
|
11887 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
11888 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
11889 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
11890 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
11891 case "$arg" in P,* | -L* | -R* )
|
159
|
11892 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
11893 {
|
155
|
11894 xe_runpath_dir="$dir"
|
163
|
11895 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
11896 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
11897 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
11898 eval "$xe_add_unique_runpath_dir"
|
|
11899 }
|
155
|
11900 done ;;
|
|
11901 esac
|
|
11902 done
|
163
|
11903 ld_switch_run="$ld_switch_run_save"
|
155
|
11904 rm -f conftest*
|
151
|
11905 else
|
155
|
11906 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
11907 case "$arg" in -L*) {
|
159
|
11908 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
11909 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
11910 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
11911 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
11912 eval "$xe_add_unique_runpath_dir"
|
|
11913 };; esac
|
151
|
11914 done
|
163
|
11915 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
11916 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
11917 eval "$xe_add_unique_runpath_dir";
|
|
11918 fi
|
155
|
11919 fi
|
151
|
11920 if test -n "$runpath"; then
|
|
11921 ld_switch_run="${dash_r}${runpath}"
|
272
|
11922
|
|
11923 if test "$GCC" = "yes"; then
|
|
11924 set x $ld_switch_run; shift; ld_switch_run=""
|
|
11925 while test -n "$1"; do
|
|
11926 case $1 in
|
380
|
11927 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
11928 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
11929 -Xlinker* ) ;;
|
|
11930 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
11931 esac
|
|
11932 shift
|
|
11933 done
|
|
11934 fi
|
151
|
11935 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
11936 fi
|
|
11937 fi
|
|
11938
|
|
11939 fi
|
|
11940
|
1070
|
11941
|
1202
|
11942 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
|
11943 do
|
|
11944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
11945 echo "configure:11946: checking for $ac_func" >&5
|
|
11946
|
|
11947 cat > conftest.$ac_ext <<EOF
|
|
11948 #line 11949 "configure"
|
410
|
11949 #include "confdefs.h"
|
|
11950 /* System header to define __stub macros and hopefully few prototypes,
|
|
11951 which can conflict with char $ac_func(); below. */
|
|
11952 #include <assert.h>
|
|
11953 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11954 /* We use char because int might match the return type of a gcc2
|
|
11955 builtin and then its argument prototype would still apply. */
|
|
11956 char $ac_func();
|
|
11957
|
|
11958 int main() {
|
|
11959
|
|
11960 /* The GNU C library defines this for functions which it implements
|
|
11961 to always fail with ENOSYS. Some functions are actually named
|
|
11962 something starting with __ and the normal name is an alias. */
|
|
11963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
11964 choke me
|
|
11965 #else
|
|
11966 $ac_func();
|
|
11967 #endif
|
|
11968
|
|
11969 ; return 0; }
|
|
11970 EOF
|
1692
|
11971 if { (eval echo configure:11972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
11972 rm -rf conftest*
|
|
11973 eval "ac_cv_func_$ac_func=yes"
|
|
11974 else
|
|
11975 echo "configure: failed program was:" >&5
|
|
11976 cat conftest.$ac_ext >&5
|
|
11977 rm -rf conftest*
|
|
11978 eval "ac_cv_func_$ac_func=no"
|
|
11979 fi
|
|
11980 rm -f conftest*
|
|
11981
|
|
11982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11983 echo "$ac_t""yes" 1>&6
|
|
11984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
11985 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11986 Defining $ac_tr_func
|
|
11987 EOF
|
|
11988 cat >> confdefs.h <<EOF
|
|
11989 #define $ac_tr_func 1
|
|
11990 EOF
|
|
11991 }
|
|
11992
|
|
11993 else
|
|
11994 echo "$ac_t""no" 1>&6
|
|
11995 fi
|
|
11996 done
|
|
11997
|
|
11998
|
1070
|
11999 if test "$ac_cv_func_getaddrinfo" != "no" ; then
|
|
12000 case "$opsys" in
|
|
12001 hpux11 )
|
|
12002 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
|
|
12003 ac_cv_func_getaddrinfo=no
|
|
12004 ;;
|
|
12005 esac
|
|
12006 fi
|
|
12007
|
458
|
12008
|
444
|
12009 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
|
442
|
12010 do
|
|
12011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
12012 echo "configure:12013: checking for $ac_func" >&5
|
|
12013
|
|
12014 cat > conftest.$ac_ext <<EOF
|
|
12015 #line 12016 "configure"
|
442
|
12016 #include "confdefs.h"
|
|
12017 /* System header to define __stub macros and hopefully few prototypes,
|
|
12018 which can conflict with char $ac_func(); below. */
|
|
12019 #include <assert.h>
|
|
12020 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12021 /* We use char because int might match the return type of a gcc2
|
|
12022 builtin and then its argument prototype would still apply. */
|
|
12023 char $ac_func();
|
|
12024
|
|
12025 int main() {
|
|
12026
|
|
12027 /* The GNU C library defines this for functions which it implements
|
|
12028 to always fail with ENOSYS. Some functions are actually named
|
|
12029 something starting with __ and the normal name is an alias. */
|
|
12030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
12031 choke me
|
|
12032 #else
|
|
12033 $ac_func();
|
|
12034 #endif
|
|
12035
|
|
12036 ; return 0; }
|
|
12037 EOF
|
1692
|
12038 if { (eval echo configure:12039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
410
|
12039 rm -rf conftest*
|
|
12040 eval "ac_cv_func_$ac_func=yes"
|
|
12041 else
|
|
12042 echo "configure: failed program was:" >&5
|
|
12043 cat conftest.$ac_ext >&5
|
|
12044 rm -rf conftest*
|
|
12045 eval "ac_cv_func_$ac_func=no"
|
|
12046 fi
|
|
12047 rm -f conftest*
|
|
12048
|
|
12049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12050 echo "$ac_t""yes" 1>&6
|
|
12051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12052 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12053 Defining $ac_tr_func
|
|
12054 EOF
|
|
12055 cat >> confdefs.h <<EOF
|
|
12056 #define $ac_tr_func 1
|
|
12057 EOF
|
|
12058 }
|
|
12059
|
|
12060 else
|
|
12061 echo "$ac_t""no" 1>&6
|
|
12062 fi
|
|
12063 done
|
|
12064
|
|
12065
|
442
|
12066 echo $ac_n "checking for openpty""... $ac_c" 1>&6
|
1692
|
12067 echo "configure:12068: checking for openpty" >&5
|
|
12068
|
|
12069 cat > conftest.$ac_ext <<EOF
|
|
12070 #line 12071 "configure"
|
442
|
12071 #include "confdefs.h"
|
|
12072 /* System header to define __stub macros and hopefully few prototypes,
|
|
12073 which can conflict with char openpty(); below. */
|
|
12074 #include <assert.h>
|
|
12075 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12076 /* We use char because int might match the return type of a gcc2
|
|
12077 builtin and then its argument prototype would still apply. */
|
|
12078 char openpty();
|
|
12079
|
|
12080 int main() {
|
|
12081
|
|
12082 /* The GNU C library defines this for functions which it implements
|
|
12083 to always fail with ENOSYS. Some functions are actually named
|
|
12084 something starting with __ and the normal name is an alias. */
|
|
12085 #if defined (__stub_openpty) || defined (__stub___openpty)
|
|
12086 choke me
|
|
12087 #else
|
|
12088 openpty();
|
|
12089 #endif
|
|
12090
|
|
12091 ; return 0; }
|
|
12092 EOF
|
1692
|
12093 if { (eval echo configure:12094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
12094 rm -rf conftest*
|
|
12095 eval "ac_cv_func_openpty=yes"
|
|
12096 else
|
|
12097 echo "configure: failed program was:" >&5
|
|
12098 cat conftest.$ac_ext >&5
|
|
12099 rm -rf conftest*
|
|
12100 eval "ac_cv_func_openpty=no"
|
|
12101 fi
|
|
12102 rm -f conftest*
|
|
12103
|
|
12104 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
|
|
12105 echo "$ac_t""yes" 1>&6
|
|
12106 have_openpty=yes
|
|
12107 else
|
|
12108 echo "$ac_t""no" 1>&6
|
|
12109
|
|
12110
|
|
12111 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
|
1692
|
12112 echo "configure:12113: checking for openpty in -lutil" >&5
|
442
|
12113 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
|
|
12114
|
|
12115 xe_check_libs=" -lutil "
|
|
12116 cat > conftest.$ac_ext <<EOF
|
1692
|
12117 #line 12118 "configure"
|
442
|
12118 #include "confdefs.h"
|
|
12119 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12120 /* We use char because int might match the return type of a gcc2
|
|
12121 builtin and then its argument prototype would still apply. */
|
|
12122 char openpty();
|
|
12123
|
|
12124 int main() {
|
|
12125 openpty()
|
|
12126 ; return 0; }
|
|
12127 EOF
|
1692
|
12128 if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
12129 rm -rf conftest*
|
|
12130 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12131 else
|
|
12132 echo "configure: failed program was:" >&5
|
|
12133 cat conftest.$ac_ext >&5
|
|
12134 rm -rf conftest*
|
|
12135 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12136 fi
|
|
12137 rm -f conftest*
|
|
12138 xe_check_libs=""
|
|
12139
|
|
12140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
12141 echo "$ac_t""yes" 1>&6
|
|
12142 have_openpty=yes need_libutil=yes
|
|
12143 else
|
|
12144 echo "$ac_t""no" 1>&6
|
|
12145 fi
|
|
12146
|
|
12147
|
|
12148 fi
|
|
12149
|
|
12150 if test "$have_openpty" = "yes"; then
|
|
12151 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12152 Defining HAVE_OPENPTY
|
|
12153 EOF
|
|
12154 cat >> confdefs.h <<\EOF
|
|
12155 #define HAVE_OPENPTY 1
|
|
12156 EOF
|
|
12157 }
|
|
12158
|
535
|
12159 for ac_hdr in libutil.h util.h
|
442
|
12160 do
|
|
12161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1692
|
12163 echo "configure:12164: checking for $ac_hdr" >&5
|
|
12164
|
|
12165 cat > conftest.$ac_ext <<EOF
|
|
12166 #line 12167 "configure"
|
442
|
12167 #include "confdefs.h"
|
|
12168 #include <$ac_hdr>
|
|
12169 EOF
|
|
12170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
12171 { (eval echo configure:12172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
12172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12173 if test -z "$ac_err"; then
|
|
12174 rm -rf conftest*
|
|
12175 eval "ac_cv_header_$ac_safe=yes"
|
|
12176 else
|
|
12177 echo "$ac_err" >&5
|
|
12178 echo "configure: failed program was:" >&5
|
|
12179 cat conftest.$ac_ext >&5
|
|
12180 rm -rf conftest*
|
|
12181 eval "ac_cv_header_$ac_safe=no"
|
|
12182 fi
|
|
12183 rm -f conftest*
|
|
12184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12185 echo "$ac_t""yes" 1>&6
|
|
12186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12187 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12188 Defining $ac_tr_hdr
|
|
12189 EOF
|
|
12190 cat >> confdefs.h <<EOF
|
|
12191 #define $ac_tr_hdr 1
|
|
12192 EOF
|
|
12193 }
|
458
|
12194 break
|
442
|
12195 else
|
|
12196 echo "$ac_t""no" 1>&6
|
|
12197 fi
|
|
12198 done
|
|
12199
|
|
12200 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
|
|
12201 fi
|
|
12202
|
535
|
12203 case "$opsys" in
|
|
12204 hpux*) for ac_hdr in sys/ptyio.h
|
|
12205 do
|
|
12206 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12207 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1692
|
12208 echo "configure:12209: checking for $ac_hdr" >&5
|
|
12209
|
|
12210 cat > conftest.$ac_ext <<EOF
|
|
12211 #line 12212 "configure"
|
535
|
12212 #include "confdefs.h"
|
|
12213 #include <$ac_hdr>
|
|
12214 EOF
|
|
12215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
12216 { (eval echo configure:12217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
12217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12218 if test -z "$ac_err"; then
|
|
12219 rm -rf conftest*
|
|
12220 eval "ac_cv_header_$ac_safe=yes"
|
|
12221 else
|
|
12222 echo "$ac_err" >&5
|
|
12223 echo "configure: failed program was:" >&5
|
|
12224 cat conftest.$ac_ext >&5
|
|
12225 rm -rf conftest*
|
|
12226 eval "ac_cv_header_$ac_safe=no"
|
|
12227 fi
|
|
12228 rm -f conftest*
|
|
12229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12230 echo "$ac_t""yes" 1>&6
|
|
12231 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12232 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12233 Defining $ac_tr_hdr
|
|
12234 EOF
|
|
12235 cat >> confdefs.h <<EOF
|
|
12236 #define $ac_tr_hdr 1
|
|
12237 EOF
|
|
12238 }
|
|
12239
|
|
12240 else
|
|
12241 echo "$ac_t""no" 1>&6
|
|
12242 fi
|
|
12243 done
|
1111
|
12244 ;;
|
|
12245 *) for ac_hdr in pty.h
|
535
|
12246 do
|
|
12247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1692
|
12249 echo "configure:12250: checking for $ac_hdr" >&5
|
|
12250
|
|
12251 cat > conftest.$ac_ext <<EOF
|
|
12252 #line 12253 "configure"
|
771
|
12253 #include "confdefs.h"
|
|
12254 #include <$ac_hdr>
|
|
12255 EOF
|
|
12256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
12257 { (eval echo configure:12258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
771
|
12258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12259 if test -z "$ac_err"; then
|
|
12260 rm -rf conftest*
|
|
12261 eval "ac_cv_header_$ac_safe=yes"
|
|
12262 else
|
|
12263 echo "$ac_err" >&5
|
|
12264 echo "configure: failed program was:" >&5
|
|
12265 cat conftest.$ac_ext >&5
|
|
12266 rm -rf conftest*
|
|
12267 eval "ac_cv_header_$ac_safe=no"
|
|
12268 fi
|
|
12269 rm -f conftest*
|
|
12270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12271 echo "$ac_t""yes" 1>&6
|
|
12272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12273 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12274 Defining $ac_tr_hdr
|
|
12275 EOF
|
|
12276 cat >> confdefs.h <<EOF
|
|
12277 #define $ac_tr_hdr 1
|
|
12278 EOF
|
|
12279 }
|
|
12280
|
|
12281 else
|
|
12282 echo "$ac_t""no" 1>&6
|
|
12283 fi
|
|
12284 done
|
|
12285
|
1111
|
12286 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
|
|
12287 do
|
|
12288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1692
|
12290 echo "configure:12291: checking for $ac_hdr" >&5
|
|
12291
|
|
12292 cat > conftest.$ac_ext <<EOF
|
|
12293 #line 12294 "configure"
|
1111
|
12294 #include "confdefs.h"
|
|
12295 #include <$ac_hdr>
|
|
12296 EOF
|
|
12297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
12298 { (eval echo configure:12299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1111
|
12299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12300 if test -z "$ac_err"; then
|
|
12301 rm -rf conftest*
|
|
12302 eval "ac_cv_header_$ac_safe=yes"
|
|
12303 else
|
|
12304 echo "$ac_err" >&5
|
|
12305 echo "configure: failed program was:" >&5
|
|
12306 cat conftest.$ac_ext >&5
|
|
12307 rm -rf conftest*
|
|
12308 eval "ac_cv_header_$ac_safe=no"
|
|
12309 fi
|
|
12310 rm -f conftest*
|
|
12311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12312 echo "$ac_t""yes" 1>&6
|
|
12313 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12314 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12315 Defining $ac_tr_hdr
|
|
12316 EOF
|
|
12317 cat >> confdefs.h <<EOF
|
|
12318 #define $ac_tr_hdr 1
|
|
12319 EOF
|
|
12320 }
|
|
12321
|
|
12322 else
|
|
12323 echo "$ac_t""no" 1>&6
|
|
12324 fi
|
|
12325 done
|
|
12326
|
771
|
12327 ;;
|
|
12328 esac
|
|
12329
|
|
12330 for ac_hdr in stropts.h
|
|
12331 do
|
|
12332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1692
|
12334 echo "configure:12335: checking for $ac_hdr" >&5
|
|
12335
|
|
12336 cat > conftest.$ac_ext <<EOF
|
|
12337 #line 12338 "configure"
|
771
|
12338 #include "confdefs.h"
|
|
12339 #include <$ac_hdr>
|
|
12340 EOF
|
|
12341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
12342 { (eval echo configure:12343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
771
|
12343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12344 if test -z "$ac_err"; then
|
|
12345 rm -rf conftest*
|
|
12346 eval "ac_cv_header_$ac_safe=yes"
|
|
12347 else
|
|
12348 echo "$ac_err" >&5
|
|
12349 echo "configure: failed program was:" >&5
|
|
12350 cat conftest.$ac_ext >&5
|
|
12351 rm -rf conftest*
|
|
12352 eval "ac_cv_header_$ac_safe=no"
|
|
12353 fi
|
|
12354 rm -f conftest*
|
|
12355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12356 echo "$ac_t""yes" 1>&6
|
|
12357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12358 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12359 Defining $ac_tr_hdr
|
|
12360 EOF
|
|
12361 cat >> confdefs.h <<EOF
|
|
12362 #define $ac_tr_hdr 1
|
|
12363 EOF
|
|
12364 }
|
|
12365
|
|
12366 else
|
|
12367 echo "$ac_t""no" 1>&6
|
|
12368 fi
|
|
12369 done
|
|
12370
|
|
12371 if test "$ac_cv_header_stropts_h" = "yes"; then
|
|
12372 for ac_func in isastream
|
|
12373 do
|
|
12374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
12375 echo "configure:12376: checking for $ac_func" >&5
|
|
12376
|
|
12377 cat > conftest.$ac_ext <<EOF
|
|
12378 #line 12379 "configure"
|
771
|
12379 #include "confdefs.h"
|
|
12380 /* System header to define __stub macros and hopefully few prototypes,
|
|
12381 which can conflict with char $ac_func(); below. */
|
|
12382 #include <assert.h>
|
|
12383 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12384 /* We use char because int might match the return type of a gcc2
|
|
12385 builtin and then its argument prototype would still apply. */
|
|
12386 char $ac_func();
|
|
12387
|
|
12388 int main() {
|
|
12389
|
|
12390 /* The GNU C library defines this for functions which it implements
|
|
12391 to always fail with ENOSYS. Some functions are actually named
|
|
12392 something starting with __ and the normal name is an alias. */
|
|
12393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
12394 choke me
|
|
12395 #else
|
|
12396 $ac_func();
|
|
12397 #endif
|
|
12398
|
|
12399 ; return 0; }
|
|
12400 EOF
|
1692
|
12401 if { (eval echo configure:12402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
771
|
12402 rm -rf conftest*
|
|
12403 eval "ac_cv_func_$ac_func=yes"
|
|
12404 else
|
|
12405 echo "configure: failed program was:" >&5
|
|
12406 cat conftest.$ac_ext >&5
|
|
12407 rm -rf conftest*
|
|
12408 eval "ac_cv_func_$ac_func=no"
|
|
12409 fi
|
|
12410 rm -f conftest*
|
|
12411
|
|
12412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12413 echo "$ac_t""yes" 1>&6
|
|
12414 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12415 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12416 Defining $ac_tr_func
|
|
12417 EOF
|
|
12418 cat >> confdefs.h <<EOF
|
|
12419 #define $ac_tr_func 1
|
|
12420 EOF
|
|
12421 }
|
|
12422
|
|
12423 else
|
|
12424 echo "$ac_t""no" 1>&6
|
|
12425 fi
|
|
12426 done
|
|
12427
|
|
12428 for ac_hdr in strtio.h
|
|
12429 do
|
|
12430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1692
|
12432 echo "configure:12433: checking for $ac_hdr" >&5
|
|
12433
|
|
12434 cat > conftest.$ac_ext <<EOF
|
|
12435 #line 12436 "configure"
|
535
|
12436 #include "confdefs.h"
|
|
12437 #include <$ac_hdr>
|
|
12438 EOF
|
|
12439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
12440 { (eval echo configure:12441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
12441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12442 if test -z "$ac_err"; then
|
|
12443 rm -rf conftest*
|
|
12444 eval "ac_cv_header_$ac_safe=yes"
|
|
12445 else
|
|
12446 echo "$ac_err" >&5
|
|
12447 echo "configure: failed program was:" >&5
|
|
12448 cat conftest.$ac_ext >&5
|
|
12449 rm -rf conftest*
|
|
12450 eval "ac_cv_header_$ac_safe=no"
|
|
12451 fi
|
|
12452 rm -f conftest*
|
|
12453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12454 echo "$ac_t""yes" 1>&6
|
|
12455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12456 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12457 Defining $ac_tr_hdr
|
|
12458 EOF
|
|
12459 cat >> confdefs.h <<EOF
|
|
12460 #define $ac_tr_hdr 1
|
|
12461 EOF
|
|
12462 }
|
|
12463
|
|
12464 else
|
|
12465 echo "$ac_t""no" 1>&6
|
|
12466 fi
|
|
12467 done
|
771
|
12468 fi
|
|
12469
|
|
12470 for ac_func in getloadavg
|
410
|
12471 do
|
|
12472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
12473 echo "configure:12474: checking for $ac_func" >&5
|
|
12474
|
|
12475 cat > conftest.$ac_ext <<EOF
|
|
12476 #line 12477 "configure"
|
149
|
12477 #include "confdefs.h"
|
|
12478 /* System header to define __stub macros and hopefully few prototypes,
|
|
12479 which can conflict with char $ac_func(); below. */
|
|
12480 #include <assert.h>
|
|
12481 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12482 /* We use char because int might match the return type of a gcc2
|
|
12483 builtin and then its argument prototype would still apply. */
|
|
12484 char $ac_func();
|
|
12485
|
|
12486 int main() {
|
|
12487
|
70
|
12488 /* The GNU C library defines this for functions which it implements
|
|
12489 to always fail with ENOSYS. Some functions are actually named
|
|
12490 something starting with __ and the normal name is an alias. */
|
149
|
12491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
70
|
12492 choke me
|
|
12493 #else
|
149
|
12494 $ac_func();
|
70
|
12495 #endif
|
149
|
12496
|
70
|
12497 ; return 0; }
|
|
12498 EOF
|
1692
|
12499 if { (eval echo configure:12500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
12500 rm -rf conftest*
|
|
12501 eval "ac_cv_func_$ac_func=yes"
|
|
12502 else
|
|
12503 echo "configure: failed program was:" >&5
|
|
12504 cat conftest.$ac_ext >&5
|
|
12505 rm -rf conftest*
|
|
12506 eval "ac_cv_func_$ac_func=no"
|
|
12507 fi
|
|
12508 rm -f conftest*
|
|
12509
|
|
12510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12511 echo "$ac_t""yes" 1>&6
|
|
12512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12513 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12514 Defining $ac_tr_func
|
|
12515 EOF
|
|
12516 cat >> confdefs.h <<EOF
|
|
12517 #define $ac_tr_func 1
|
|
12518 EOF
|
|
12519 }
|
|
12520
|
|
12521 else
|
|
12522 echo "$ac_t""no" 1>&6
|
|
12523 fi
|
|
12524 done
|
|
12525
|
|
12526
|
|
12527 if test "$ac_cv_func_getloadavg" = "yes"; then
|
|
12528 for ac_hdr in sys/loadavg.h
|
|
12529 do
|
|
12530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1692
|
12532 echo "configure:12533: checking for $ac_hdr" >&5
|
|
12533
|
|
12534 cat > conftest.$ac_ext <<EOF
|
|
12535 #line 12536 "configure"
|
442
|
12536 #include "confdefs.h"
|
|
12537 #include <$ac_hdr>
|
|
12538 EOF
|
|
12539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
12540 { (eval echo configure:12541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
12541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12542 if test -z "$ac_err"; then
|
|
12543 rm -rf conftest*
|
|
12544 eval "ac_cv_header_$ac_safe=yes"
|
|
12545 else
|
|
12546 echo "$ac_err" >&5
|
|
12547 echo "configure: failed program was:" >&5
|
|
12548 cat conftest.$ac_ext >&5
|
|
12549 rm -rf conftest*
|
|
12550 eval "ac_cv_header_$ac_safe=no"
|
|
12551 fi
|
|
12552 rm -f conftest*
|
|
12553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12554 echo "$ac_t""yes" 1>&6
|
|
12555 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12556 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12557 Defining $ac_tr_hdr
|
|
12558 EOF
|
|
12559 cat >> confdefs.h <<EOF
|
|
12560 #define $ac_tr_hdr 1
|
|
12561 EOF
|
|
12562 }
|
|
12563
|
|
12564 else
|
|
12565 echo "$ac_t""no" 1>&6
|
|
12566 fi
|
|
12567 done
|
|
12568
|
|
12569 else
|
|
12570 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
|
398
|
12571 echo " xemacs will be linked with \"getloadavg.o\""
|
|
12572 fi
|
|
12573
|
|
12574
|
|
12575 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
|
1692
|
12576 echo "configure:12577: checking for kstat_open in -lkstat" >&5
|
398
|
12577 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
|
|
12578
|
|
12579 xe_check_libs=" -lkstat "
|
|
12580 cat > conftest.$ac_ext <<EOF
|
1692
|
12581 #line 12582 "configure"
|
398
|
12582 #include "confdefs.h"
|
|
12583 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12584 /* We use char because int might match the return type of a gcc2
|
|
12585 builtin and then its argument prototype would still apply. */
|
|
12586 char kstat_open();
|
|
12587
|
|
12588 int main() {
|
|
12589 kstat_open()
|
|
12590 ; return 0; }
|
|
12591 EOF
|
1692
|
12592 if { (eval echo configure:12593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
12593 rm -rf conftest*
|
|
12594 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12595 else
|
|
12596 echo "configure: failed program was:" >&5
|
|
12597 cat conftest.$ac_ext >&5
|
|
12598 rm -rf conftest*
|
|
12599 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12600 fi
|
|
12601 rm -f conftest*
|
|
12602 xe_check_libs=""
|
|
12603
|
|
12604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
12605 echo "$ac_t""yes" 1>&6
|
|
12606 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
12607 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
369
|
12608 { test "$extra_verbose" = "yes" && cat << EOF
|
398
|
12609 Defining $ac_tr_lib
|
369
|
12610 EOF
|
|
12611 cat >> confdefs.h <<EOF
|
398
|
12612 #define $ac_tr_lib 1
|
|
12613 EOF
|
|
12614 }
|
|
12615
|
|
12616 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
|
|
12617
|
|
12618 else
|
|
12619 echo "$ac_t""no" 1>&6
|
|
12620 fi
|
|
12621
|
|
12622
|
442
|
12623 for ac_hdr in kstat.h
|
|
12624 do
|
|
12625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1692
|
12627 echo "configure:12628: checking for $ac_hdr" >&5
|
|
12628
|
|
12629 cat > conftest.$ac_ext <<EOF
|
|
12630 #line 12631 "configure"
|
442
|
12631 #include "confdefs.h"
|
|
12632 #include <$ac_hdr>
|
|
12633 EOF
|
|
12634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
12635 { (eval echo configure:12636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
12636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12637 if test -z "$ac_err"; then
|
|
12638 rm -rf conftest*
|
|
12639 eval "ac_cv_header_$ac_safe=yes"
|
|
12640 else
|
|
12641 echo "$ac_err" >&5
|
|
12642 echo "configure: failed program was:" >&5
|
|
12643 cat conftest.$ac_ext >&5
|
|
12644 rm -rf conftest*
|
|
12645 eval "ac_cv_header_$ac_safe=no"
|
|
12646 fi
|
|
12647 rm -f conftest*
|
|
12648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12649 echo "$ac_t""yes" 1>&6
|
|
12650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12651 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12652 Defining $ac_tr_hdr
|
|
12653 EOF
|
|
12654 cat >> confdefs.h <<EOF
|
|
12655 #define $ac_tr_hdr 1
|
|
12656 EOF
|
|
12657 }
|
|
12658
|
|
12659 else
|
|
12660 echo "$ac_t""no" 1>&6
|
|
12661 fi
|
|
12662 done
|
|
12663
|
398
|
12664
|
|
12665
|
|
12666 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
|
1692
|
12667 echo "configure:12668: checking for kvm_read in -lkvm" >&5
|
398
|
12668 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
|
|
12669
|
|
12670 xe_check_libs=" -lkvm "
|
|
12671 cat > conftest.$ac_ext <<EOF
|
1692
|
12672 #line 12673 "configure"
|
398
|
12673 #include "confdefs.h"
|
|
12674 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12675 /* We use char because int might match the return type of a gcc2
|
|
12676 builtin and then its argument prototype would still apply. */
|
|
12677 char kvm_read();
|
|
12678
|
|
12679 int main() {
|
|
12680 kvm_read()
|
|
12681 ; return 0; }
|
|
12682 EOF
|
1692
|
12683 if { (eval echo configure:12684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
12684 rm -rf conftest*
|
|
12685 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12686 else
|
|
12687 echo "configure: failed program was:" >&5
|
|
12688 cat conftest.$ac_ext >&5
|
|
12689 rm -rf conftest*
|
|
12690 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12691 fi
|
|
12692 rm -f conftest*
|
|
12693 xe_check_libs=""
|
|
12694
|
|
12695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
12696 echo "$ac_t""yes" 1>&6
|
|
12697 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
12698 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
12699 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12700 Defining $ac_tr_lib
|
|
12701 EOF
|
|
12702 cat >> confdefs.h <<EOF
|
|
12703 #define $ac_tr_lib 1
|
|
12704 EOF
|
|
12705 }
|
|
12706
|
|
12707 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
|
|
12708
|
|
12709 else
|
|
12710 echo "$ac_t""no" 1>&6
|
|
12711 fi
|
|
12712
|
|
12713
|
|
12714 fi
|
151
|
12715
|
149
|
12716 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
|
1692
|
12717 echo "configure:12718: checking whether netdb declares h_errno" >&5
|
|
12718 cat > conftest.$ac_ext <<EOF
|
|
12719 #line 12720 "configure"
|
0
|
12720 #include "confdefs.h"
|
|
12721 #include <netdb.h>
|
149
|
12722 int main() {
|
|
12723 return h_errno;
|
|
12724 ; return 0; }
|
|
12725 EOF
|
1692
|
12726 if { (eval echo configure:12727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12727 rm -rf conftest*
|
|
12728 echo "$ac_t""yes" 1>&6
|
|
12729 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12730 Defining HAVE_H_ERRNO
|
|
12731 EOF
|
|
12732 cat >> confdefs.h <<\EOF
|
|
12733 #define HAVE_H_ERRNO 1
|
|
12734 EOF
|
|
12735 }
|
|
12736
|
|
12737 else
|
|
12738 echo "configure: failed program was:" >&5
|
|
12739 cat conftest.$ac_ext >&5
|
|
12740 rm -rf conftest*
|
|
12741 echo "$ac_t""no" 1>&6
|
|
12742 fi
|
|
12743 rm -f conftest*
|
|
12744
|
|
12745 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
1692
|
12746 echo "configure:12747: checking for sigsetjmp" >&5
|
|
12747 cat > conftest.$ac_ext <<EOF
|
|
12748 #line 12749 "configure"
|
0
|
12749 #include "confdefs.h"
|
|
12750 #include <setjmp.h>
|
149
|
12751 int main() {
|
|
12752 sigjmp_buf bar; sigsetjmp (bar, 0);
|
|
12753 ; return 0; }
|
|
12754 EOF
|
1692
|
12755 if { (eval echo configure:12756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
12756 rm -rf conftest*
|
|
12757 echo "$ac_t""yes" 1>&6
|
|
12758 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12759 Defining HAVE_SIGSETJMP
|
|
12760 EOF
|
|
12761 cat >> confdefs.h <<\EOF
|
|
12762 #define HAVE_SIGSETJMP 1
|
|
12763 EOF
|
|
12764 }
|
|
12765
|
|
12766 else
|
|
12767 echo "configure: failed program was:" >&5
|
|
12768 cat conftest.$ac_ext >&5
|
|
12769 rm -rf conftest*
|
|
12770 echo "$ac_t""no" 1>&6
|
|
12771 fi
|
|
12772 rm -f conftest*
|
|
12773
|
|
12774 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
|
1692
|
12775 echo "configure:12776: checking whether localtime caches TZ" >&5
|
149
|
12776
|
|
12777 if test "$ac_cv_func_tzset" = "yes"; then
|
|
12778 cat > conftest.$ac_ext <<EOF
|
1692
|
12779 #line 12780 "configure"
|
0
|
12780 #include "confdefs.h"
|
|
12781 #include <time.h>
|
149
|
12782 #if STDC_HEADERS
|
0
|
12783 # include <stdlib.h>
|
|
12784 #endif
|
|
12785 extern char **environ;
|
|
12786 unset_TZ ()
|
|
12787 {
|
|
12788 char **from, **to;
|
|
12789 for (to = from = environ; (*to = *from); from++)
|
|
12790 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
12791 to++;
|
|
12792 }
|
149
|
12793 char TZ_GMT0[] = "TZ=GMT0";
|
|
12794 char TZ_PST8[] = "TZ=PST8";
|
0
|
12795 main()
|
|
12796 {
|
|
12797 time_t now = time ((time_t *) 0);
|
|
12798 int hour_GMT0, hour_unset;
|
149
|
12799 if (putenv (TZ_GMT0) != 0)
|
0
|
12800 exit (1);
|
|
12801 hour_GMT0 = localtime (&now)->tm_hour;
|
|
12802 unset_TZ ();
|
|
12803 hour_unset = localtime (&now)->tm_hour;
|
149
|
12804 if (putenv (TZ_PST8) != 0)
|
0
|
12805 exit (1);
|
|
12806 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
12807 exit (1);
|
|
12808 unset_TZ ();
|
|
12809 if (localtime (&now)->tm_hour != hour_unset)
|
|
12810 exit (1);
|
|
12811 exit (0);
|
|
12812 }
|
|
12813 EOF
|
1692
|
12814 if { (eval echo configure:12815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
12815 then
|
0
|
12816 emacs_cv_localtime_cache=no
|
149
|
12817 else
|
373
|
12818 conftest_rc="$?"
|
149
|
12819 echo "configure: failed program was:" >&5
|
|
12820 cat conftest.$ac_ext >&5
|
|
12821 rm -fr conftest*
|
0
|
12822 emacs_cv_localtime_cache=yes
|
|
12823 fi
|
|
12824 rm -fr conftest*
|
149
|
12825 else
|
|
12826 # If we lack tzset, report that localtime does not cache TZ,
|
|
12827 # since we can't invalidate the cache if we don't have tzset.
|
|
12828 emacs_cv_localtime_cache=no
|
|
12829 fi
|
|
12830 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
|
|
12831 if test $emacs_cv_localtime_cache = yes; then
|
|
12832 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12833 Defining LOCALTIME_CACHE
|
|
12834 EOF
|
|
12835 cat >> confdefs.h <<\EOF
|
|
12836 #define LOCALTIME_CACHE 1
|
|
12837 EOF
|
|
12838 }
|
|
12839
|
|
12840 fi
|
|
12841
|
|
12842 if test "$HAVE_TIMEVAL" = "yes"; then
|
274
|
12843 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
|
1692
|
12844 echo "configure:12845: checking whether gettimeofday accepts one or two arguments" >&5
|
|
12845 cat > conftest.$ac_ext <<EOF
|
|
12846 #line 12847 "configure"
|
0
|
12847 #include "confdefs.h"
|
|
12848
|
|
12849 #ifdef TIME_WITH_SYS_TIME
|
|
12850 #include <sys/time.h>
|
|
12851 #include <time.h>
|
|
12852 #else
|
|
12853 #ifdef HAVE_SYS_TIME_H
|
|
12854 #include <sys/time.h>
|
|
12855 #else
|
|
12856 #include <time.h>
|
|
12857 #endif
|
|
12858 #endif
|
|
12859
|
149
|
12860 int main() {
|
|
12861
|
0
|
12862 struct timeval time;
|
442
|
12863 gettimeofday (&time, 0);
|
|
12864
|
|
12865 ; return 0; }
|
|
12866 EOF
|
1692
|
12867 if { (eval echo configure:12868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
274
|
12868 rm -rf conftest*
|
|
12869 echo "$ac_t""two" 1>&6
|
|
12870 else
|
|
12871 echo "configure: failed program was:" >&5
|
|
12872 cat conftest.$ac_ext >&5
|
|
12873 rm -rf conftest*
|
|
12874 echo "$ac_t""one" 1>&6
|
149
|
12875 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12876 Defining GETTIMEOFDAY_ONE_ARGUMENT
|
|
12877 EOF
|
|
12878 cat >> confdefs.h <<\EOF
|
|
12879 #define GETTIMEOFDAY_ONE_ARGUMENT 1
|
|
12880 EOF
|
|
12881 }
|
|
12882
|
|
12883 fi
|
|
12884 rm -f conftest*
|
|
12885 fi
|
|
12886
|
|
12887
|
|
12888 echo $ac_n "checking for inline""... $ac_c" 1>&6
|
1692
|
12889 echo "configure:12890: checking for inline" >&5
|
149
|
12890
|
|
12891 ac_cv_c_inline=no
|
|
12892 for ac_kw in inline __inline__ __inline; do
|
|
12893 cat > conftest.$ac_ext <<EOF
|
1692
|
12894 #line 12895 "configure"
|
744
|
12895 #include "confdefs.h"
|
|
12896
|
|
12897 int main() {
|
|
12898 } $ac_kw foo() {
|
|
12899 ; return 0; }
|
|
12900 EOF
|
1692
|
12901 if { (eval echo configure:12902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
12902 rm -rf conftest*
|
|
12903 ac_cv_c_inline=$ac_kw; break
|
|
12904 else
|
|
12905 echo "configure: failed program was:" >&5
|
|
12906 cat conftest.$ac_ext >&5
|
|
12907 fi
|
|
12908 rm -f conftest*
|
|
12909 done
|
|
12910
|
|
12911
|
|
12912 echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
12913 case "$ac_cv_c_inline" in
|
|
12914 inline | yes) ;;
|
|
12915 no) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12916 Defining inline =
|
|
12917 EOF
|
|
12918 cat >> confdefs.h <<\EOF
|
|
12919 #define inline
|
|
12920 EOF
|
|
12921 }
|
|
12922 ;;
|
|
12923 *) { test "$extra_verbose" = "yes" && cat << EOF
|
|
12924 Defining inline = $ac_cv_c_inline
|
|
12925 EOF
|
|
12926 cat >> confdefs.h <<EOF
|
|
12927 #define inline $ac_cv_c_inline
|
|
12928 EOF
|
|
12929 }
|
|
12930 ;;
|
|
12931 esac
|
|
12932
|
442
|
12933 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
|
155
|
12934 echo " xemacs will be linked with \"inline.o\""
|
|
12935 fi
|
149
|
12936
|
|
12937
|
444
|
12938 if test "$__DECC" != "yes"; then
|
|
12939 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
0
|
12940 # for constant arguments. Useless!
|
149
|
12941 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
1692
|
12942 echo "configure:12943: checking for working alloca.h" >&5
|
|
12943
|
|
12944 cat > conftest.$ac_ext <<EOF
|
|
12945 #line 12946 "configure"
|
0
|
12946 #include "confdefs.h"
|
|
12947 #include <alloca.h>
|
149
|
12948 int main() {
|
744
|
12949 char *p = alloca(2 * sizeof(int));
|
|
12950 ; return 0; }
|
|
12951 EOF
|
1692
|
12952 if { (eval echo configure:12953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12953 rm -rf conftest*
|
|
12954 ac_cv_header_alloca_h=yes
|
|
12955 else
|
|
12956 echo "configure: failed program was:" >&5
|
|
12957 cat conftest.$ac_ext >&5
|
|
12958 rm -rf conftest*
|
|
12959 ac_cv_header_alloca_h=no
|
|
12960 fi
|
|
12961 rm -f conftest*
|
|
12962
|
|
12963 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
12964 if test $ac_cv_header_alloca_h = yes; then
|
|
12965 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12966 Defining HAVE_ALLOCA_H
|
|
12967 EOF
|
|
12968 cat >> confdefs.h <<\EOF
|
|
12969 #define HAVE_ALLOCA_H 1
|
|
12970 EOF
|
|
12971 }
|
|
12972
|
|
12973 fi
|
|
12974
|
|
12975 echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
1692
|
12976 echo "configure:12977: checking for alloca" >&5
|
|
12977
|
|
12978 cat > conftest.$ac_ext <<EOF
|
|
12979 #line 12980 "configure"
|
149
|
12980 #include "confdefs.h"
|
|
12981
|
|
12982 #ifdef __GNUC__
|
|
12983 # define alloca __builtin_alloca
|
0
|
12984 #else
|
420
|
12985 # ifdef _MSC_VER
|
|
12986 # include <malloc.h>
|
|
12987 # define alloca _alloca
|
149
|
12988 # else
|
420
|
12989 # if HAVE_ALLOCA_H
|
|
12990 # include <alloca.h>
|
149
|
12991 # else
|
420
|
12992 # ifdef _AIX
|
|
12993 #pragma alloca
|
|
12994 # else
|
|
12995 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
149
|
12996 char *alloca ();
|
420
|
12997 # endif
|
149
|
12998 # endif
|
|
12999 # endif
|
|
13000 # endif
|
0
|
13001 #endif
|
149
|
13002
|
|
13003 int main() {
|
|
13004 char *p = (char *) alloca(1);
|
0
|
13005 ; return 0; }
|
|
13006 EOF
|
1692
|
13007 if { (eval echo configure:13008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13008 rm -rf conftest*
|
|
13009 ac_cv_func_alloca_works=yes
|
|
13010 else
|
|
13011 echo "configure: failed program was:" >&5
|
|
13012 cat conftest.$ac_ext >&5
|
|
13013 rm -rf conftest*
|
|
13014 ac_cv_func_alloca_works=no
|
|
13015 fi
|
|
13016 rm -f conftest*
|
|
13017
|
|
13018 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
13019 if test $ac_cv_func_alloca_works = yes; then
|
|
13020 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13021 Defining HAVE_ALLOCA
|
|
13022 EOF
|
|
13023 cat >> confdefs.h <<\EOF
|
|
13024 #define HAVE_ALLOCA 1
|
|
13025 EOF
|
|
13026 }
|
|
13027
|
|
13028 fi
|
|
13029
|
|
13030 if test $ac_cv_func_alloca_works = no; then
|
0
|
13031 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
13032 # that cause trouble. Some versions do not even contain alloca or
|
|
13033 # contain a buggy version. If you still want to use their alloca,
|
|
13034 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
420
|
13035 ALLOCA=alloca.${ac_objext}
|
149
|
13036 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13037 Defining C_ALLOCA
|
|
13038 EOF
|
|
13039 cat >> confdefs.h <<\EOF
|
|
13040 #define C_ALLOCA 1
|
|
13041 EOF
|
|
13042 }
|
|
13043
|
|
13044
|
|
13045 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
1692
|
13046 echo "configure:13047: checking whether alloca needs Cray hooks" >&5
|
|
13047
|
|
13048 cat > conftest.$ac_ext <<EOF
|
|
13049 #line 13050 "configure"
|
149
|
13050 #include "confdefs.h"
|
|
13051 #if defined(CRAY) && ! defined(CRAY2)
|
|
13052 webecray
|
|
13053 #else
|
|
13054 wenotbecray
|
|
13055 #endif
|
|
13056
|
|
13057 EOF
|
|
13058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
13059 egrep "webecray" >/dev/null 2>&1; then
|
|
13060 rm -rf conftest*
|
|
13061 ac_cv_os_cray=yes
|
|
13062 else
|
|
13063 rm -rf conftest*
|
|
13064 ac_cv_os_cray=no
|
|
13065 fi
|
|
13066 rm -f conftest*
|
|
13067
|
|
13068
|
|
13069 echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
13070 if test $ac_cv_os_cray = yes; then
|
|
13071 for ac_func in _getb67 GETB67 getb67; do
|
|
13072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
13073 echo "configure:13074: checking for $ac_func" >&5
|
|
13074
|
|
13075 cat > conftest.$ac_ext <<EOF
|
|
13076 #line 13077 "configure"
|
149
|
13077 #include "confdefs.h"
|
|
13078 /* System header to define __stub macros and hopefully few prototypes,
|
|
13079 which can conflict with char $ac_func(); below. */
|
|
13080 #include <assert.h>
|
|
13081 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13082 /* We use char because int might match the return type of a gcc2
|
|
13083 builtin and then its argument prototype would still apply. */
|
|
13084 char $ac_func();
|
|
13085
|
|
13086 int main() {
|
|
13087
|
|
13088 /* The GNU C library defines this for functions which it implements
|
|
13089 to always fail with ENOSYS. Some functions are actually named
|
|
13090 something starting with __ and the normal name is an alias. */
|
|
13091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
13092 choke me
|
|
13093 #else
|
|
13094 $ac_func();
|
|
13095 #endif
|
|
13096
|
|
13097 ; return 0; }
|
|
13098 EOF
|
1692
|
13099 if { (eval echo configure:13100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13100 rm -rf conftest*
|
|
13101 eval "ac_cv_func_$ac_func=yes"
|
|
13102 else
|
|
13103 echo "configure: failed program was:" >&5
|
|
13104 cat conftest.$ac_ext >&5
|
|
13105 rm -rf conftest*
|
|
13106 eval "ac_cv_func_$ac_func=no"
|
|
13107 fi
|
|
13108 rm -f conftest*
|
|
13109
|
|
13110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
13111 echo "$ac_t""yes" 1>&6
|
|
13112 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13113 Defining CRAY_STACKSEG_END = $ac_func
|
|
13114 EOF
|
|
13115 cat >> confdefs.h <<EOF
|
|
13116 #define CRAY_STACKSEG_END $ac_func
|
|
13117 EOF
|
|
13118 }
|
|
13119
|
|
13120 break
|
|
13121 else
|
|
13122 echo "$ac_t""no" 1>&6
|
|
13123 fi
|
|
13124
|
|
13125 done
|
|
13126 fi
|
|
13127
|
|
13128 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
1692
|
13129 echo "configure:13130: checking stack direction for C alloca" >&5
|
|
13130
|
|
13131 cat > conftest.$ac_ext <<EOF
|
|
13132 #line 13133 "configure"
|
0
|
13133 #include "confdefs.h"
|
|
13134 find_stack_direction ()
|
|
13135 {
|
|
13136 static char *addr = 0;
|
|
13137 auto char dummy;
|
|
13138 if (addr == 0)
|
|
13139 {
|
|
13140 addr = &dummy;
|
|
13141 return find_stack_direction ();
|
|
13142 }
|
|
13143 else
|
|
13144 return (&dummy > addr) ? 1 : -1;
|
|
13145 }
|
|
13146 main ()
|
|
13147 {
|
|
13148 exit (find_stack_direction() < 0);
|
|
13149 }
|
|
13150 EOF
|
1692
|
13151 if { (eval echo configure:13152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
13152 then
|
|
13153 ac_cv_c_stack_direction=1
|
|
13154 else
|
373
|
13155 conftest_rc="$?"
|
149
|
13156 echo "configure: failed program was:" >&5
|
|
13157 cat conftest.$ac_ext >&5
|
|
13158 rm -fr conftest*
|
|
13159 ac_cv_c_stack_direction=-1
|
0
|
13160 fi
|
|
13161 rm -fr conftest*
|
149
|
13162
|
|
13163 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
13164 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13165 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
|
|
13166 EOF
|
|
13167 cat >> confdefs.h <<EOF
|
|
13168 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
13169 EOF
|
|
13170 }
|
|
13171
|
|
13172 fi
|
|
13173
|
444
|
13174 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
|
151
|
13175 echo " xemacs will be linked with \"$ALLOCA\""
|
|
13176 fi
|
444
|
13177 fi
|
149
|
13178
|
1332
|
13179 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6
|
1692
|
13180 echo "configure:13181: checking for working alloca in function calls" >&5
|
|
13181 cat > conftest.$ac_ext <<EOF
|
|
13182 #line 13183 "configure"
|
1332
|
13183 #include "confdefs.h"
|
|
13184
|
|
13185 #if defined (__CYGWIN__)
|
|
13186 #include <alloca.h>
|
|
13187 #elif defined (__GNUC__)
|
|
13188 #define alloca __builtin_alloca
|
|
13189 #elif defined (__DECC)
|
|
13190 #include <alloca.h>
|
|
13191 #pragma intrinsic(alloca)
|
|
13192 #elif defined (HAVE_ALLOCA_H)
|
|
13193 #include <alloca.h>
|
|
13194 #elif defined (_AIX)
|
|
13195 #pragma alloca
|
|
13196 #elif ! defined (alloca)
|
|
13197 #ifdef C_ALLOCA
|
|
13198 #define alloca xemacs_c_alloca
|
|
13199 #else
|
|
13200 void *alloca ();
|
|
13201 #endif /* C_ALLOCA */
|
|
13202 #endif /* !defined (alloca) */
|
|
13203
|
|
13204 void
|
|
13205 f1 (double a, void *ptr, int b)
|
|
13206 {
|
|
13207 unsigned char *ptr2 = (unsigned char *) ptr;
|
|
13208 if (ptr2[0] != 0xBF || ptr2[1] != 0xBF || ptr2[3000] != 0xBF)
|
|
13209 exit (1);
|
|
13210 if (a != 3.1415 || b != -5490)
|
|
13211 exit (1);
|
|
13212 }
|
|
13213
|
|
13214 int
|
|
13215 f2 (short c, void *ptr, long e)
|
|
13216 {
|
|
13217 unsigned char *ptr2 = (unsigned char *) ptr;
|
|
13218 if (ptr2[0] != 0xFB || ptr2[1] != 0xFB || ptr2[1000] != 0xFB)
|
|
13219 exit (1);
|
|
13220 if (c != 665 || e != 776776776)
|
|
13221 exit (1);
|
|
13222 f1 (3.1415, memset (alloca (3001), 0xBF, 3001), -5490);
|
|
13223 return 42;
|
|
13224 }
|
|
13225
|
|
13226 int
|
|
13227 main (int argc, char *argv[])
|
|
13228 {
|
|
13229 if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42)
|
|
13230 return 1;
|
|
13231 return 0;
|
|
13232 }
|
|
13233
|
|
13234 EOF
|
1692
|
13235 if { (eval echo configure:13236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
1332
|
13236 then
|
|
13237 working_alloca_in_function_calls=yes
|
|
13238 else
|
|
13239 conftest_rc="$?"
|
|
13240 echo "configure: failed program was:" >&5
|
|
13241 cat conftest.$ac_ext >&5
|
|
13242 rm -fr conftest*
|
|
13243 working_alloca_in_function_calls=no
|
|
13244 fi
|
|
13245 rm -fr conftest*
|
|
13246 echo "$ac_t""$working_alloca_in_function_calls" 1>&6
|
|
13247 test "$working_alloca_in_function_calls" != "yes" && \
|
|
13248 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13249 Defining BROKEN_ALLOCA_IN_FUNCTION_CALLS
|
|
13250 EOF
|
|
13251 cat >> confdefs.h <<\EOF
|
|
13252 #define BROKEN_ALLOCA_IN_FUNCTION_CALLS 1
|
|
13253 EOF
|
|
13254 }
|
|
13255
|
|
13256
|
149
|
13257 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
|
1692
|
13258 echo "configure:13259: checking for working strcoll" >&5
|
|
13259
|
|
13260 cat > conftest.$ac_ext <<EOF
|
|
13261 #line 13262 "configure"
|
0
|
13262 #include "confdefs.h"
|
|
13263 #include <string.h>
|
|
13264 main ()
|
|
13265 {
|
|
13266 exit (strcoll ("abc", "def") >= 0 ||
|
|
13267 strcoll ("ABC", "DEF") >= 0 ||
|
|
13268 strcoll ("123", "456") >= 0);
|
|
13269 }
|
|
13270 EOF
|
1692
|
13271 if { (eval echo configure:13272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
13272 then
|
|
13273 ac_cv_func_strcoll_works=yes
|
|
13274 else
|
373
|
13275 conftest_rc="$?"
|
149
|
13276 echo "configure: failed program was:" >&5
|
|
13277 cat conftest.$ac_ext >&5
|
|
13278 rm -fr conftest*
|
|
13279 ac_cv_func_strcoll_works=no
|
0
|
13280 fi
|
|
13281 rm -fr conftest*
|
|
13282
|
149
|
13283 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
|
|
13284 if test $ac_cv_func_strcoll_works = yes; then
|
|
13285 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13286 Defining HAVE_STRCOLL
|
|
13287 EOF
|
|
13288 cat >> confdefs.h <<\EOF
|
|
13289 #define HAVE_STRCOLL 1
|
|
13290 EOF
|
|
13291 }
|
|
13292
|
|
13293 fi
|
|
13294
|
|
13295
|
163
|
13296 for ac_func in getpgrp
|
|
13297 do
|
|
13298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1692
|
13299 echo "configure:13300: checking for $ac_func" >&5
|
|
13300
|
|
13301 cat > conftest.$ac_ext <<EOF
|
|
13302 #line 13303 "configure"
|
163
|
13303 #include "confdefs.h"
|
|
13304 /* System header to define __stub macros and hopefully few prototypes,
|
|
13305 which can conflict with char $ac_func(); below. */
|
|
13306 #include <assert.h>
|
|
13307 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13308 /* We use char because int might match the return type of a gcc2
|
|
13309 builtin and then its argument prototype would still apply. */
|
|
13310 char $ac_func();
|
|
13311
|
|
13312 int main() {
|
|
13313
|
|
13314 /* The GNU C library defines this for functions which it implements
|
|
13315 to always fail with ENOSYS. Some functions are actually named
|
|
13316 something starting with __ and the normal name is an alias. */
|
|
13317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
13318 choke me
|
|
13319 #else
|
|
13320 $ac_func();
|
|
13321 #endif
|
|
13322
|
|
13323 ; return 0; }
|
|
13324 EOF
|
1692
|
13325 if { (eval echo configure:13326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
163
|
13326 rm -rf conftest*
|
|
13327 eval "ac_cv_func_$ac_func=yes"
|
|
13328 else
|
|
13329 echo "configure: failed program was:" >&5
|
|
13330 cat conftest.$ac_ext >&5
|
|
13331 rm -rf conftest*
|
|
13332 eval "ac_cv_func_$ac_func=no"
|
|
13333 fi
|
|
13334 rm -f conftest*
|
|
13335
|
|
13336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
13337 echo "$ac_t""yes" 1>&6
|
|
13338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
13339 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13340 Defining $ac_tr_func
|
|
13341 EOF
|
|
13342 cat >> confdefs.h <<EOF
|
|
13343 #define $ac_tr_func 1
|
|
13344 EOF
|
|
13345 }
|
|
13346
|
|
13347 else
|
|
13348 echo "$ac_t""no" 1>&6
|
|
13349 fi
|
|
13350 done
|
|
13351
|
|
13352 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
|
1692
|
13353 echo "configure:13354: checking whether getpgrp takes no argument" >&5
|
|
13354
|
|
13355 cat > conftest.$ac_ext <<EOF
|
|
13356 #line 13357 "configure"
|
163
|
13357 #include "confdefs.h"
|
|
13358
|
|
13359 /*
|
|
13360 * If this system has a BSD-style getpgrp(),
|
|
13361 * which takes a pid argument, exit unsuccessfully.
|
|
13362 *
|
|
13363 * Snarfed from Chet Ramey's bash pgrp.c test program
|
|
13364 */
|
|
13365 #include <stdio.h>
|
|
13366 #include <sys/types.h>
|
|
13367
|
|
13368 int pid;
|
|
13369 int pg1, pg2, pg3, pg4;
|
|
13370 int ng, np, s, child;
|
|
13371
|
|
13372 main()
|
|
13373 {
|
|
13374 pid = getpid();
|
|
13375 pg1 = getpgrp(0);
|
|
13376 pg2 = getpgrp();
|
|
13377 pg3 = getpgrp(pid);
|
|
13378 pg4 = getpgrp(1);
|
|
13379
|
|
13380 /*
|
|
13381 * If all of these values are the same, it's pretty sure that
|
|
13382 * we're on a system that ignores getpgrp's first argument.
|
|
13383 */
|
|
13384 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
|
|
13385 exit(0);
|
|
13386
|
|
13387 child = fork();
|
|
13388 if (child < 0)
|
|
13389 exit(1);
|
|
13390 else if (child == 0) {
|
|
13391 np = getpid();
|
|
13392 /*
|
|
13393 * If this is Sys V, this will not work; pgrp will be
|
|
13394 * set to np because setpgrp just changes a pgrp to be
|
|
13395 * the same as the pid.
|
|
13396 */
|
|
13397 setpgrp(np, pg1);
|
|
13398 ng = getpgrp(0); /* Same result for Sys V and BSD */
|
|
13399 if (ng == pg1) {
|
|
13400 exit(1);
|
|
13401 } else {
|
|
13402 exit(0);
|
|
13403 }
|
|
13404 } else {
|
|
13405 wait(&s);
|
|
13406 exit(s>>8);
|
|
13407 }
|
|
13408 }
|
|
13409
|
|
13410 EOF
|
1692
|
13411 if { (eval echo configure:13412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
13412 then
|
|
13413 ac_cv_func_getpgrp_void=yes
|
|
13414 else
|
373
|
13415 conftest_rc="$?"
|
163
|
13416 echo "configure: failed program was:" >&5
|
|
13417 cat conftest.$ac_ext >&5
|
|
13418 rm -fr conftest*
|
|
13419 ac_cv_func_getpgrp_void=no
|
|
13420 fi
|
|
13421 rm -fr conftest*
|
|
13422
|
|
13423
|
|
13424 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
|
|
13425 if test $ac_cv_func_getpgrp_void = yes; then
|
|
13426 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13427 Defining GETPGRP_VOID
|
|
13428 EOF
|
|
13429 cat >> confdefs.h <<\EOF
|
|
13430 #define GETPGRP_VOID 1
|
|
13431 EOF
|
|
13432 }
|
|
13433
|
|
13434 fi
|
|
13435
|
|
13436
|
149
|
13437 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
1692
|
13438 echo "configure:13439: checking for working mmap" >&5
|
155
|
13439 case "$opsys" in ultrix* ) have_mmap=no ;; *)
|
|
13440 cat > conftest.$ac_ext <<EOF
|
1692
|
13441 #line 13442 "configure"
|
153
|
13442 #include "confdefs.h"
|
|
13443 #include <stdio.h>
|
|
13444 #include <unistd.h>
|
149
|
13445 #include <fcntl.h>
|
|
13446 #include <sys/mman.h>
|
|
13447
|
153
|
13448 #ifndef MAP_VARIABLE
|
|
13449 #define MAP_VARIABLE 0
|
0
|
13450 #endif
|
149
|
13451
|
153
|
13452 #ifndef MAP_FAILED
|
|
13453 #define MAP_FAILED -1
|
|
13454 #endif
|
|
13455
|
|
13456 int main (int argc, char *argv[])
|
0
|
13457 {
|
153
|
13458 int fd = -1;
|
|
13459 caddr_t p;
|
|
13460 #ifndef MAP_ANONYMOUS
|
|
13461 fd = open ("/dev/zero", O_RDWR);
|
|
13462 if (fd < 0)
|
|
13463 return 1;
|
|
13464 #define MAP_ANONYMOUS 0
|
|
13465 #endif
|
|
13466 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
|
|
13467 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
|
|
13468 fd, 0) != (void *) MAP_FAILED)
|
|
13469 return 0;
|
|
13470 perror ("conftest: mmap failed");
|
|
13471 return 1;
|
|
13472 }
|
|
13473 EOF
|
1692
|
13474 if { (eval echo configure:13475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
13475 then
|
153
|
13476 have_mmap=yes
|
149
|
13477 else
|
373
|
13478 conftest_rc="$?"
|
149
|
13479 echo "configure: failed program was:" >&5
|
|
13480 cat conftest.$ac_ext >&5
|
|
13481 rm -fr conftest*
|
153
|
13482 have_mmap=no
|
149
|
13483 fi
|
155
|
13484 rm -fr conftest* ;;
|
|
13485 esac
|
153
|
13486 echo "$ac_t""$have_mmap" 1>&6
|
|
13487 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
13488 Defining HAVE_MMAP
|
|
13489 EOF
|
|
13490 cat >> confdefs.h <<\EOF
|
|
13491 #define HAVE_MMAP 1
|
|
13492 EOF
|
|
13493 }
|
|
13494
|
412
|
13495
|
535
|
13496 case "$opsys" in cygwin*)
|
462
|
13497 test "$rel_alloc" = "default" && rel_alloc=no ;;
|
|
13498 esac
|
442
|
13499 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
|
|
13500 if test "$rel_alloc $have_mmap" = "default yes"; then
|
|
13501 if test "$doug_lea_malloc" = "yes"; then
|
|
13502 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
|
1692
|
13503 echo "configure:13504: checking for M_MMAP_THRESHOLD" >&5
|
442
|
13504 cat > conftest.$ac_ext <<EOF
|
1692
|
13505 #line 13506 "configure"
|
442
|
13506 #include "confdefs.h"
|
|
13507 #include <malloc.h>
|
|
13508 int main() {
|
|
13509
|
|
13510 #ifndef M_MMAP_THRESHOLD
|
|
13511 #error No M_MMAP_THRESHOLD :-(
|
|
13512 !@+$%^&*_)(_ - unlikely to compile...
|
|
13513 #endif
|
|
13514
|
|
13515 ; return 0; }
|
|
13516 EOF
|
1692
|
13517 if { (eval echo configure:13518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
13518 rm -rf conftest*
|
|
13519 rel_alloc=no; echo "$ac_t""yes" 1>&6;
|
|
13520 else
|
|
13521 echo "configure: failed program was:" >&5
|
|
13522 cat conftest.$ac_ext >&5
|
|
13523 rm -rf conftest*
|
|
13524 rel_alloc=yes; echo "$ac_t""no" 1>&6;
|
|
13525 fi
|
|
13526 rm -f conftest*
|
|
13527 else
|
|
13528 rel_alloc=yes
|
|
13529 fi
|
|
13530 fi
|
149
|
13531 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13532 Defining REL_ALLOC
|
|
13533 EOF
|
|
13534 cat >> confdefs.h <<\EOF
|
|
13535 #define REL_ALLOC 1
|
|
13536 EOF
|
|
13537 }
|
|
13538
|
|
13539
|
175
|
13540 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
|
|
13541 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
|
1692
|
13542 echo "configure:13543: checking for termios.h" >&5
|
|
13543
|
|
13544 cat > conftest.$ac_ext <<EOF
|
|
13545 #line 13546 "configure"
|
175
|
13546 #include "confdefs.h"
|
|
13547 #include <termios.h>
|
|
13548 EOF
|
|
13549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
13550 { (eval echo configure:13551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
175
|
13552 if test -z "$ac_err"; then
|
|
13553 rm -rf conftest*
|
|
13554 eval "ac_cv_header_$ac_safe=yes"
|
|
13555 else
|
|
13556 echo "$ac_err" >&5
|
|
13557 echo "configure: failed program was:" >&5
|
|
13558 cat conftest.$ac_ext >&5
|
|
13559 rm -rf conftest*
|
|
13560 eval "ac_cv_header_$ac_safe=no"
|
|
13561 fi
|
|
13562 rm -f conftest*
|
|
13563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13564 echo "$ac_t""yes" 1>&6
|
|
13565 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13566 Defining HAVE_TERMIOS
|
|
13567 EOF
|
|
13568 cat >> confdefs.h <<\EOF
|
|
13569 #define HAVE_TERMIOS 1
|
|
13570 EOF
|
|
13571 }
|
|
13572
|
|
13573 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13574 Defining SIGNALS_VIA_CHARACTERS
|
|
13575 EOF
|
|
13576 cat >> confdefs.h <<\EOF
|
|
13577 #define SIGNALS_VIA_CHARACTERS 1
|
|
13578 EOF
|
|
13579 }
|
|
13580
|
|
13581 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13582 Defining NO_TERMIO
|
|
13583 EOF
|
|
13584 cat >> confdefs.h <<\EOF
|
|
13585 #define NO_TERMIO 1
|
|
13586 EOF
|
|
13587 }
|
|
13588
|
|
13589 else
|
|
13590 echo "$ac_t""no" 1>&6
|
|
13591 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
|
|
13592 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
|
1692
|
13593 echo "configure:13594: checking for termio.h" >&5
|
|
13594
|
|
13595 cat > conftest.$ac_ext <<EOF
|
|
13596 #line 13597 "configure"
|
175
|
13597 #include "confdefs.h"
|
|
13598 #include <termio.h>
|
|
13599 EOF
|
|
13600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
13601 { (eval echo configure:13602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
175
|
13603 if test -z "$ac_err"; then
|
|
13604 rm -rf conftest*
|
|
13605 eval "ac_cv_header_$ac_safe=yes"
|
|
13606 else
|
|
13607 echo "$ac_err" >&5
|
|
13608 echo "configure: failed program was:" >&5
|
|
13609 cat conftest.$ac_ext >&5
|
|
13610 rm -rf conftest*
|
|
13611 eval "ac_cv_header_$ac_safe=no"
|
|
13612 fi
|
|
13613 rm -f conftest*
|
|
13614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13615 echo "$ac_t""yes" 1>&6
|
|
13616 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13617 Defining HAVE_TERMIO
|
|
13618 EOF
|
|
13619 cat >> confdefs.h <<\EOF
|
|
13620 #define HAVE_TERMIO 1
|
|
13621 EOF
|
|
13622 }
|
|
13623
|
|
13624 else
|
|
13625 echo "$ac_t""no" 1>&6
|
|
13626 fi
|
|
13627
|
|
13628 fi
|
|
13629
|
|
13630
|
|
13631
|
149
|
13632 echo $ac_n "checking for socket""... $ac_c" 1>&6
|
1692
|
13633 echo "configure:13634: checking for socket" >&5
|
|
13634
|
|
13635 cat > conftest.$ac_ext <<EOF
|
|
13636 #line 13637 "configure"
|
149
|
13637 #include "confdefs.h"
|
|
13638 /* System header to define __stub macros and hopefully few prototypes,
|
|
13639 which can conflict with char socket(); below. */
|
|
13640 #include <assert.h>
|
|
13641 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13642 /* We use char because int might match the return type of a gcc2
|
|
13643 builtin and then its argument prototype would still apply. */
|
|
13644 char socket();
|
|
13645
|
|
13646 int main() {
|
|
13647
|
0
|
13648 /* The GNU C library defines this for functions which it implements
|
|
13649 to always fail with ENOSYS. Some functions are actually named
|
|
13650 something starting with __ and the normal name is an alias. */
|
|
13651 #if defined (__stub_socket) || defined (__stub___socket)
|
|
13652 choke me
|
|
13653 #else
|
149
|
13654 socket();
|
0
|
13655 #endif
|
149
|
13656
|
0
|
13657 ; return 0; }
|
|
13658 EOF
|
1692
|
13659 if { (eval echo configure:13660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13660 rm -rf conftest*
|
|
13661 eval "ac_cv_func_socket=yes"
|
|
13662 else
|
|
13663 echo "configure: failed program was:" >&5
|
|
13664 cat conftest.$ac_ext >&5
|
|
13665 rm -rf conftest*
|
|
13666 eval "ac_cv_func_socket=no"
|
|
13667 fi
|
|
13668 rm -f conftest*
|
|
13669
|
|
13670 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
|
|
13671 echo "$ac_t""yes" 1>&6
|
|
13672 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
|
|
13673 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
|
1692
|
13674 echo "configure:13675: checking for netinet/in.h" >&5
|
|
13675
|
|
13676 cat > conftest.$ac_ext <<EOF
|
|
13677 #line 13678 "configure"
|
0
|
13678 #include "confdefs.h"
|
|
13679 #include <netinet/in.h>
|
|
13680 EOF
|
149
|
13681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
13682 { (eval echo configure:13683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13684 if test -z "$ac_err"; then
|
149
|
13685 rm -rf conftest*
|
|
13686 eval "ac_cv_header_$ac_safe=yes"
|
|
13687 else
|
|
13688 echo "$ac_err" >&5
|
|
13689 echo "configure: failed program was:" >&5
|
|
13690 cat conftest.$ac_ext >&5
|
|
13691 rm -rf conftest*
|
|
13692 eval "ac_cv_header_$ac_safe=no"
|
|
13693 fi
|
|
13694 rm -f conftest*
|
|
13695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13696 echo "$ac_t""yes" 1>&6
|
|
13697 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
|
|
13698 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
|
1692
|
13699 echo "configure:13700: checking for arpa/inet.h" >&5
|
|
13700
|
|
13701 cat > conftest.$ac_ext <<EOF
|
|
13702 #line 13703 "configure"
|
0
|
13703 #include "confdefs.h"
|
|
13704 #include <arpa/inet.h>
|
|
13705 EOF
|
149
|
13706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
13707 { (eval echo configure:13708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13709 if test -z "$ac_err"; then
|
149
|
13710 rm -rf conftest*
|
|
13711 eval "ac_cv_header_$ac_safe=yes"
|
|
13712 else
|
|
13713 echo "$ac_err" >&5
|
|
13714 echo "configure: failed program was:" >&5
|
|
13715 cat conftest.$ac_ext >&5
|
|
13716 rm -rf conftest*
|
|
13717 eval "ac_cv_header_$ac_safe=no"
|
|
13718 fi
|
|
13719 rm -f conftest*
|
|
13720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13721 echo "$ac_t""yes" 1>&6
|
0
|
13722
|
149
|
13723 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13724 Defining HAVE_SOCKETS
|
|
13725 EOF
|
|
13726 cat >> confdefs.h <<\EOF
|
|
13727 #define HAVE_SOCKETS 1
|
|
13728 EOF
|
|
13729 }
|
|
13730
|
|
13731 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
|
1692
|
13732 echo "configure:13733: checking "for sun_len member in struct sockaddr_un"" >&5
|
149
|
13733 cat > conftest.$ac_ext <<EOF
|
1692
|
13734 #line 13735 "configure"
|
149
|
13735 #include "confdefs.h"
|
|
13736
|
0
|
13737 #include <sys/types.h>
|
149
|
13738 #include <sys/socket.h>
|
|
13739 #include <sys/un.h>
|
|
13740
|
|
13741 int main() {
|
|
13742 static struct sockaddr_un x; x.sun_len = 1;
|
|
13743 ; return 0; }
|
|
13744 EOF
|
1692
|
13745 if { (eval echo configure:13746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13746 rm -rf conftest*
|
|
13747 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13748 Defining HAVE_SOCKADDR_SUN_LEN
|
|
13749 EOF
|
|
13750 cat >> confdefs.h <<\EOF
|
|
13751 #define HAVE_SOCKADDR_SUN_LEN 1
|
|
13752 EOF
|
|
13753 }
|
|
13754
|
|
13755 else
|
|
13756 echo "configure: failed program was:" >&5
|
|
13757 cat conftest.$ac_ext >&5
|
|
13758 rm -rf conftest*
|
|
13759 echo "$ac_t""no" 1>&6
|
|
13760 fi
|
|
13761 rm -f conftest*
|
259
|
13762 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
|
1692
|
13763 echo "configure:13764: checking "for ip_mreq struct in netinet/in.h"" >&5
|
259
|
13764 cat > conftest.$ac_ext <<EOF
|
1692
|
13765 #line 13766 "configure"
|
284
|
13766 #include "confdefs.h"
|
|
13767
|
|
13768 #include <sys/types.h>
|
259
|
13769 #include <netinet/in.h>
|
|
13770
|
|
13771 int main() {
|
|
13772 static struct ip_mreq x;
|
|
13773 ; return 0; }
|
|
13774 EOF
|
1692
|
13775 if { (eval echo configure:13776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
13776 rm -rf conftest*
|
|
13777 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13778 Defining HAVE_MULTICAST
|
|
13779 EOF
|
|
13780 cat >> confdefs.h <<\EOF
|
|
13781 #define HAVE_MULTICAST 1
|
|
13782 EOF
|
|
13783 }
|
|
13784
|
|
13785 else
|
|
13786 echo "configure: failed program was:" >&5
|
|
13787 cat conftest.$ac_ext >&5
|
|
13788 rm -rf conftest*
|
|
13789 echo "$ac_t""no" 1>&6
|
|
13790 fi
|
|
13791 rm -f conftest*
|
149
|
13792 else
|
|
13793 echo "$ac_t""no" 1>&6
|
|
13794 fi
|
|
13795
|
|
13796 else
|
|
13797 echo "$ac_t""no" 1>&6
|
|
13798 fi
|
|
13799
|
|
13800 else
|
|
13801 echo "$ac_t""no" 1>&6
|
|
13802 fi
|
|
13803
|
|
13804
|
|
13805 echo $ac_n "checking for msgget""... $ac_c" 1>&6
|
1692
|
13806 echo "configure:13807: checking for msgget" >&5
|
|
13807
|
|
13808 cat > conftest.$ac_ext <<EOF
|
|
13809 #line 13810 "configure"
|
149
|
13810 #include "confdefs.h"
|
|
13811 /* System header to define __stub macros and hopefully few prototypes,
|
|
13812 which can conflict with char msgget(); below. */
|
|
13813 #include <assert.h>
|
|
13814 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13815 /* We use char because int might match the return type of a gcc2
|
|
13816 builtin and then its argument prototype would still apply. */
|
|
13817 char msgget();
|
|
13818
|
|
13819 int main() {
|
|
13820
|
0
|
13821 /* The GNU C library defines this for functions which it implements
|
|
13822 to always fail with ENOSYS. Some functions are actually named
|
|
13823 something starting with __ and the normal name is an alias. */
|
|
13824 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
13825 choke me
|
|
13826 #else
|
149
|
13827 msgget();
|
0
|
13828 #endif
|
149
|
13829
|
0
|
13830 ; return 0; }
|
|
13831 EOF
|
1692
|
13832 if { (eval echo configure:13833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13833 rm -rf conftest*
|
|
13834 eval "ac_cv_func_msgget=yes"
|
|
13835 else
|
|
13836 echo "configure: failed program was:" >&5
|
|
13837 cat conftest.$ac_ext >&5
|
|
13838 rm -rf conftest*
|
|
13839 eval "ac_cv_func_msgget=no"
|
|
13840 fi
|
|
13841 rm -f conftest*
|
|
13842
|
|
13843 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
|
|
13844 echo "$ac_t""yes" 1>&6
|
|
13845 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
|
|
13846 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
|
1692
|
13847 echo "configure:13848: checking for sys/ipc.h" >&5
|
|
13848
|
|
13849 cat > conftest.$ac_ext <<EOF
|
|
13850 #line 13851 "configure"
|
0
|
13851 #include "confdefs.h"
|
|
13852 #include <sys/ipc.h>
|
|
13853 EOF
|
149
|
13854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
13855 { (eval echo configure:13856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13857 if test -z "$ac_err"; then
|
149
|
13858 rm -rf conftest*
|
|
13859 eval "ac_cv_header_$ac_safe=yes"
|
|
13860 else
|
|
13861 echo "$ac_err" >&5
|
|
13862 echo "configure: failed program was:" >&5
|
|
13863 cat conftest.$ac_ext >&5
|
|
13864 rm -rf conftest*
|
|
13865 eval "ac_cv_header_$ac_safe=no"
|
|
13866 fi
|
|
13867 rm -f conftest*
|
|
13868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13869 echo "$ac_t""yes" 1>&6
|
|
13870 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
|
|
13871 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
|
1692
|
13872 echo "configure:13873: checking for sys/msg.h" >&5
|
|
13873
|
|
13874 cat > conftest.$ac_ext <<EOF
|
|
13875 #line 13876 "configure"
|
0
|
13876 #include "confdefs.h"
|
|
13877 #include <sys/msg.h>
|
|
13878 EOF
|
149
|
13879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
13880 { (eval echo configure:13881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13882 if test -z "$ac_err"; then
|
149
|
13883 rm -rf conftest*
|
|
13884 eval "ac_cv_header_$ac_safe=yes"
|
|
13885 else
|
|
13886 echo "$ac_err" >&5
|
|
13887 echo "configure: failed program was:" >&5
|
|
13888 cat conftest.$ac_ext >&5
|
|
13889 rm -rf conftest*
|
|
13890 eval "ac_cv_header_$ac_safe=no"
|
|
13891 fi
|
|
13892 rm -f conftest*
|
|
13893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13894 echo "$ac_t""yes" 1>&6
|
|
13895 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13896 Defining HAVE_SYSVIPC
|
|
13897 EOF
|
|
13898 cat >> confdefs.h <<\EOF
|
|
13899 #define HAVE_SYSVIPC 1
|
|
13900 EOF
|
|
13901 }
|
|
13902
|
|
13903 else
|
|
13904 echo "$ac_t""no" 1>&6
|
|
13905 fi
|
|
13906
|
|
13907 else
|
|
13908 echo "$ac_t""no" 1>&6
|
|
13909 fi
|
|
13910
|
|
13911 else
|
|
13912 echo "$ac_t""no" 1>&6
|
|
13913 fi
|
|
13914
|
|
13915
|
|
13916 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
|
|
13917 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
|
1692
|
13918 echo "configure:13919: checking for dirent.h" >&5
|
|
13919
|
|
13920 cat > conftest.$ac_ext <<EOF
|
|
13921 #line 13922 "configure"
|
0
|
13922 #include "confdefs.h"
|
|
13923 #include <dirent.h>
|
|
13924 EOF
|
149
|
13925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
13926 { (eval echo configure:13927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13928 if test -z "$ac_err"; then
|
|
13929 rm -rf conftest*
|
149
|
13930 eval "ac_cv_header_$ac_safe=yes"
|
|
13931 else
|
|
13932 echo "$ac_err" >&5
|
|
13933 echo "configure: failed program was:" >&5
|
|
13934 cat conftest.$ac_ext >&5
|
|
13935 rm -rf conftest*
|
|
13936 eval "ac_cv_header_$ac_safe=no"
|
|
13937 fi
|
|
13938 rm -f conftest*
|
|
13939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13940 echo "$ac_t""yes" 1>&6
|
|
13941 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13942 Defining SYSV_SYSTEM_DIR
|
|
13943 EOF
|
|
13944 cat >> confdefs.h <<\EOF
|
|
13945 #define SYSV_SYSTEM_DIR 1
|
|
13946 EOF
|
|
13947 }
|
|
13948
|
|
13949 else
|
|
13950 echo "$ac_t""no" 1>&6
|
|
13951 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
|
|
13952 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
|
1692
|
13953 echo "configure:13954: checking for sys/dir.h" >&5
|
|
13954
|
|
13955 cat > conftest.$ac_ext <<EOF
|
|
13956 #line 13957 "configure"
|
0
|
13957 #include "confdefs.h"
|
|
13958 #include <sys/dir.h>
|
|
13959 EOF
|
149
|
13960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
13961 { (eval echo configure:13962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13963 if test -z "$ac_err"; then
|
149
|
13964 rm -rf conftest*
|
|
13965 eval "ac_cv_header_$ac_safe=yes"
|
|
13966 else
|
|
13967 echo "$ac_err" >&5
|
|
13968 echo "configure: failed program was:" >&5
|
|
13969 cat conftest.$ac_ext >&5
|
|
13970 rm -rf conftest*
|
|
13971 eval "ac_cv_header_$ac_safe=no"
|
|
13972 fi
|
|
13973 rm -f conftest*
|
|
13974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13975 echo "$ac_t""yes" 1>&6
|
0
|
13976 :
|
|
13977 else
|
149
|
13978 echo "$ac_t""no" 1>&6
|
|
13979 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13980 Defining NONSYSTEM_DIR_LIBRARY
|
|
13981 EOF
|
|
13982 cat >> confdefs.h <<\EOF
|
|
13983 #define NONSYSTEM_DIR_LIBRARY 1
|
|
13984 EOF
|
|
13985 }
|
|
13986
|
|
13987 fi
|
|
13988
|
|
13989 fi
|
|
13990
|
|
13991
|
|
13992 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
|
|
13993 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
|
1692
|
13994 echo "configure:13995: checking for nlist.h" >&5
|
|
13995
|
|
13996 cat > conftest.$ac_ext <<EOF
|
|
13997 #line 13998 "configure"
|
0
|
13998 #include "confdefs.h"
|
|
13999 #include <nlist.h>
|
|
14000 EOF
|
149
|
14001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
14002 { (eval echo configure:14003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14004 if test -z "$ac_err"; then
|
|
14005 rm -rf conftest*
|
149
|
14006 eval "ac_cv_header_$ac_safe=yes"
|
|
14007 else
|
|
14008 echo "$ac_err" >&5
|
|
14009 echo "configure: failed program was:" >&5
|
|
14010 cat conftest.$ac_ext >&5
|
|
14011 rm -rf conftest*
|
|
14012 eval "ac_cv_header_$ac_safe=no"
|
|
14013 fi
|
|
14014 rm -f conftest*
|
|
14015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14016 echo "$ac_t""yes" 1>&6
|
|
14017 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14018 Defining NLIST_STRUCT
|
|
14019 EOF
|
|
14020 cat >> confdefs.h <<\EOF
|
|
14021 #define NLIST_STRUCT 1
|
|
14022 EOF
|
|
14023 }
|
|
14024
|
|
14025 else
|
|
14026 echo "$ac_t""no" 1>&6
|
|
14027 fi
|
|
14028
|
|
14029
|
0
|
14030
|
149
|
14031 echo "checking "for sound support"" 1>&6
|
1692
|
14032 echo "configure:14033: checking "for sound support"" >&5
|
155
|
14033 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
|
|
14034
|
149
|
14035 if test "$with_native_sound" != "no"; then
|
155
|
14036 if test -n "$native_sound_lib"; then
|
|
14037 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
|
|
14038 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
|
1692
|
14039 echo "configure:14040: checking for multimedia/audio_device.h" >&5
|
|
14040
|
|
14041 cat > conftest.$ac_ext <<EOF
|
|
14042 #line 14043 "configure"
|
155
|
14043 #include "confdefs.h"
|
|
14044 #include <multimedia/audio_device.h>
|
|
14045 EOF
|
|
14046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1692
|
14047 { (eval echo configure:14048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
14049 if test -z "$ac_err"; then
|
|
14050 rm -rf conftest*
|
|
14051 eval "ac_cv_header_$ac_safe=yes"
|
|
14052 else
|
|
14053 echo "$ac_err" >&5
|
|
14054 echo "configure: failed program was:" >&5
|
|
14055 cat conftest.$ac_ext >&5
|
|
14056 rm -rf conftest*
|
|
14057 eval "ac_cv_header_$ac_safe=no"
|
|
14058 fi
|
|
14059 rm -f conftest*
|
|
14060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14061 echo "$ac_t""yes" 1>&6
|
|
14062 sound_found=yes sound_cflags=""
|
|
14063 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14064 echo " xemacs will be linked with \"sunplay.o\""
|
|
14065 fi
|
|
14066 else
|
|
14067 echo "$ac_t""no" 1>&6
|
|
14068 fi
|
|
14069
|
|
14070 fi
|
|
14071
|
|
14072 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
|
1696
|
14073 if test -d "/usr/demo/SOUND/include/multimedia"; then
|
|
14074 sun_sound_cflags="-I/usr/demo/SOUND/include"
|
|
14075 elif test -d "/usr/demo/SOUND/multimedia"; then
|
|
14076 sun_sound_cflags="-I/usr/demo/SOUND"
|
|
14077 fi
|
|
14078
|
|
14079 if test -n "$native_sound_lib"; then
|
|
14080 sun_sound_lib="$native_sound_lib"
|
|
14081 elif test -r "/usr/demo/SOUND/lib/libaudio.a"; then
|
|
14082 sun_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
|
|
14083 elif test -r "/usr/demo/SOUND/libaudio.a"; then
|
|
14084 sun_sound_lib="/usr/demo/SOUND/libaudio.a"
|
|
14085 fi
|
|
14086
|
|
14087 if test -n "$sun_sound_cflags" -a -n "$sun_sound_lib"; then
|
|
14088 native_sound_lib="$sun_sound_lib"
|
|
14089 sound_cflags="$sun_sound_cflags"
|
|
14090 sound_found=yes
|
|
14091 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
151
|
14092 echo " xemacs will be linked with \"sunplay.o\""
|
|
14093 fi
|
149
|
14094 fi
|
155
|
14095 fi
|
|
14096
|
|
14097 if test -z "$sound_found"; then
|
|
14098 case "$canonical" in
|
149
|
14099 *-sgi-* )
|
155
|
14100 if test -z "$native_sound_lib"; then
|
|
14101
|
149
|
14102 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
|
1696
|
14103 echo "configure:14104: checking for ALopenport in -laudio" >&5
|
149
|
14104 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
|
|
14105
|
|
14106 xe_check_libs=" -laudio "
|
|
14107 cat > conftest.$ac_ext <<EOF
|
1696
|
14108 #line 14109 "configure"
|
149
|
14109 #include "confdefs.h"
|
|
14110 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14111 /* We use char because int might match the return type of a gcc2
|
|
14112 builtin and then its argument prototype would still apply. */
|
|
14113 char ALopenport();
|
|
14114
|
|
14115 int main() {
|
|
14116 ALopenport()
|
|
14117 ; return 0; }
|
|
14118 EOF
|
1696
|
14119 if { (eval echo configure:14120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14120 rm -rf conftest*
|
|
14121 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14122 else
|
|
14123 echo "configure: failed program was:" >&5
|
|
14124 cat conftest.$ac_ext >&5
|
|
14125 rm -rf conftest*
|
|
14126 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14127 fi
|
|
14128 rm -f conftest*
|
|
14129 xe_check_libs=""
|
|
14130
|
151
|
14131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14132 echo "$ac_t""yes" 1>&6
|
|
14133 native_sound_lib="-laudio"
|
|
14134 else
|
|
14135 echo "$ac_t""no" 1>&6
|
|
14136 fi
|
|
14137
|
|
14138
|
155
|
14139 fi
|
|
14140 if test -n "$native_sound_lib"; then
|
|
14141 sound_found=yes sound_cflags=""
|
151
|
14142 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14143 echo " xemacs will be linked with \"sgiplay.o\""
|
|
14144 fi
|
149
|
14145 fi ;;
|
|
14146 hppa*-hp-hpux* )
|
155
|
14147 if test -z "$native_sound_lib"; then
|
|
14148
|
149
|
14149 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
|
1696
|
14150 echo "configure:14151: checking for AOpenAudio in -lAlib" >&5
|
149
|
14151 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
|
|
14152
|
|
14153 xe_check_libs=" -lAlib "
|
|
14154 cat > conftest.$ac_ext <<EOF
|
1696
|
14155 #line 14156 "configure"
|
149
|
14156 #include "confdefs.h"
|
|
14157 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14158 /* We use char because int might match the return type of a gcc2
|
|
14159 builtin and then its argument prototype would still apply. */
|
|
14160 char AOpenAudio();
|
|
14161
|
|
14162 int main() {
|
|
14163 AOpenAudio()
|
|
14164 ; return 0; }
|
|
14165 EOF
|
1696
|
14166 if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14167 rm -rf conftest*
|
|
14168 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14169 else
|
|
14170 echo "configure: failed program was:" >&5
|
|
14171 cat conftest.$ac_ext >&5
|
|
14172 rm -rf conftest*
|
|
14173 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14174 fi
|
|
14175 rm -f conftest*
|
|
14176 xe_check_libs=""
|
|
14177
|
151
|
14178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14179 echo "$ac_t""yes" 1>&6
|
|
14180 native_sound_lib="-lAlib"
|
|
14181 else
|
|
14182 echo "$ac_t""no" 1>&6
|
|
14183 fi
|
|
14184
|
|
14185
|
155
|
14186 fi
|
|
14187 if test -n "$native_sound_lib"; then
|
|
14188 sound_found=yes
|
151
|
14189 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14190 echo " xemacs will be linked with \"hpplay.o\""
|
|
14191 fi
|
169
|
14192 if test "$GCC" = "yes" # Kludge city
|
149
|
14193 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
|
|
14194 else sound_cflags="+e -I/usr/audio/examples"
|
|
14195 fi
|
|
14196 fi ;;
|
0
|
14197 esac
|
|
14198 fi
|
149
|
14199
|
155
|
14200 if test -z "$sound_found"; then
|
553
|
14201 if test "$with_msw" = "yes"; then
|
594
|
14202 sound_found=yes
|
|
14203 native_sound_lib=
|
|
14204 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14205 echo " xemacs will be linked with \"ntplay.o\""
|
|
14206 fi
|
553
|
14207 fi
|
|
14208 fi
|
|
14209
|
|
14210 if test -z "$sound_found"; then
|
149
|
14211 for dir in "machine" "sys" "linux"; do
|
|
14212 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
|
|
14213 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
|
1696
|
14214 echo "configure:14215: checking for ${dir}/soundcard.h" >&5
|
|
14215
|
|
14216 cat > conftest.$ac_ext <<EOF
|
|
14217 #line 14218 "configure"
|
149
|
14218 #include "confdefs.h"
|
|
14219 #include <${dir}/soundcard.h>
|
|
14220 EOF
|
|
14221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1696
|
14222 { (eval echo configure:14223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
14224 if test -z "$ac_err"; then
|
|
14225 rm -rf conftest*
|
|
14226 eval "ac_cv_header_$ac_safe=yes"
|
|
14227 else
|
|
14228 echo "$ac_err" >&5
|
|
14229 echo "configure: failed program was:" >&5
|
|
14230 cat conftest.$ac_ext >&5
|
|
14231 rm -rf conftest*
|
|
14232 eval "ac_cv_header_$ac_safe=no"
|
|
14233 fi
|
|
14234 rm -f conftest*
|
|
14235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14236 echo "$ac_t""yes" 1>&6
|
|
14237 sound_found=yes
|
426
|
14238 need_miscplay=yes
|
151
|
14239 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
|
|
14240 echo " xemacs will be linked with \"linuxplay.o\""
|
|
14241 fi
|
149
|
14242 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
14243 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
|
|
14244 EOF
|
|
14245 cat >> confdefs.h <<EOF
|
|
14246 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
|
149
|
14247 EOF
|
|
14248 }
|
|
14249
|
|
14250 break
|
|
14251 else
|
|
14252 echo "$ac_t""no" 1>&6
|
|
14253 fi
|
|
14254
|
|
14255 done
|
100
|
14256 fi
|
149
|
14257
|
|
14258 test "$sound_found" = "yes" && with_native_sound=yes
|
|
14259 fi
|
|
14260
|
|
14261 if test "$with_native_sound" = "yes"; then
|
|
14262 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14263 Defining HAVE_NATIVE_SOUND
|
|
14264 EOF
|
|
14265 cat >> confdefs.h <<\EOF
|
|
14266 #define HAVE_NATIVE_SOUND 1
|
|
14267 EOF
|
|
14268 }
|
|
14269
|
151
|
14270 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
|
14271 fi
|
|
14272
|
432
|
14273 if test "$with_nas_sound" != "no"; then
|
|
14274 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
|
|
14275 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
|
1696
|
14276 echo "configure:14277: checking for audio/audiolib.h" >&5
|
|
14277
|
|
14278 cat > conftest.$ac_ext <<EOF
|
|
14279 #line 14280 "configure"
|
432
|
14280 #include "confdefs.h"
|
|
14281 #include <audio/audiolib.h>
|
|
14282 EOF
|
|
14283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1696
|
14284 { (eval echo configure:14285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
432
|
14285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
14286 if test -z "$ac_err"; then
|
|
14287 rm -rf conftest*
|
|
14288 eval "ac_cv_header_$ac_safe=yes"
|
|
14289 else
|
|
14290 echo "$ac_err" >&5
|
|
14291 echo "configure: failed program was:" >&5
|
|
14292 cat conftest.$ac_ext >&5
|
|
14293 rm -rf conftest*
|
|
14294 eval "ac_cv_header_$ac_safe=no"
|
|
14295 fi
|
|
14296 rm -f conftest*
|
|
14297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14298 echo "$ac_t""yes" 1>&6
|
|
14299
|
|
14300
|
|
14301 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
|
1696
|
14302 echo "configure:14303: checking for AuOpenServer in -laudio" >&5
|
432
|
14303 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
|
|
14304
|
|
14305 xe_check_libs=" -laudio "
|
|
14306 cat > conftest.$ac_ext <<EOF
|
1696
|
14307 #line 14308 "configure"
|
432
|
14308 #include "confdefs.h"
|
|
14309 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14310 /* We use char because int might match the return type of a gcc2
|
|
14311 builtin and then its argument prototype would still apply. */
|
|
14312 char AuOpenServer();
|
|
14313
|
|
14314 int main() {
|
|
14315 AuOpenServer()
|
|
14316 ; return 0; }
|
|
14317 EOF
|
1696
|
14318 if { (eval echo configure:14319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
432
|
14319 rm -rf conftest*
|
|
14320 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14321 else
|
|
14322 echo "configure: failed program was:" >&5
|
|
14323 cat conftest.$ac_ext >&5
|
|
14324 rm -rf conftest*
|
|
14325 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14326 fi
|
|
14327 rm -f conftest*
|
|
14328 xe_check_libs=""
|
|
14329
|
|
14330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14331 echo "$ac_t""yes" 1>&6
|
|
14332 have_nas_sound=yes
|
|
14333 else
|
|
14334 echo "$ac_t""no" 1>&6
|
|
14335 fi
|
|
14336
|
|
14337
|
|
14338 else
|
|
14339 echo "$ac_t""no" 1>&6
|
|
14340 fi
|
|
14341
|
|
14342 if test "$have_nas_sound" = "yes"; then
|
|
14343 with_nas_sound=yes
|
|
14344 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
14345 Defining HAVE_NAS_SOUND
|
|
14346 EOF
|
|
14347 cat >> confdefs.h <<\EOF
|
|
14348 #define HAVE_NAS_SOUND 1
|
|
14349 EOF
|
|
14350 }
|
|
14351
|
432
|
14352 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
|
151
|
14353 echo " xemacs will be linked with \"nas.o\""
|
|
14354 fi
|
432
|
14355 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
|
|
14356 cat > conftest.$ac_ext <<EOF
|
1696
|
14357 #line 14358 "configure"
|
149
|
14358 #include "confdefs.h"
|
|
14359 #include <audio/Xtutil.h>
|
|
14360 EOF
|
|
14361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
14362 egrep "AuXtErrorJump" >/dev/null 2>&1; then
|
|
14363 :
|
|
14364 else
|
|
14365 rm -rf conftest*
|
432
|
14366 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
14367 Defining NAS_NO_ERROR_JUMP
|
|
14368 EOF
|
|
14369 cat >> confdefs.h <<\EOF
|
|
14370 #define NAS_NO_ERROR_JUMP 1
|
|
14371 EOF
|
|
14372 }
|
|
14373
|
|
14374 fi
|
|
14375 rm -f conftest*
|
|
14376
|
432
|
14377 else
|
|
14378 test "$with_nas_sound" = "yes" && \
|
|
14379 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
|
|
14380 with_nas_sound=no
|
|
14381 fi
|
|
14382 fi
|
|
14383
|
1464
|
14384 if test "$with_esd_sound" != "no"; then
|
432
|
14385 # Extract the first word of "esd-config", so it can be a program name with args.
|
426
|
14386 set dummy esd-config; ac_word=$2
|
|
14387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1696
|
14388 echo "configure:14389: checking for $ac_word" >&5
|
426
|
14389
|
|
14390 if test -n "$have_esd_config"; then
|
|
14391 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
|
|
14392 else
|
|
14393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
14394 ac_dummy="$PATH"
|
|
14395 for ac_dir in $ac_dummy; do
|
|
14396 test -z "$ac_dir" && ac_dir=.
|
|
14397 if test -f $ac_dir/$ac_word; then
|
|
14398 ac_cv_prog_have_esd_config="yes"
|
|
14399 break
|
|
14400 fi
|
|
14401 done
|
|
14402 IFS="$ac_save_ifs"
|
|
14403 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
|
|
14404 fi
|
|
14405 have_esd_config="$ac_cv_prog_have_esd_config"
|
|
14406 if test -n "$have_esd_config"; then
|
|
14407 echo "$ac_t""$have_esd_config" 1>&6
|
|
14408 else
|
|
14409 echo "$ac_t""no" 1>&6
|
|
14410 fi
|
|
14411
|
432
|
14412 if test "$have_esd_config" = "yes"; then
|
|
14413 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
|
|
14414 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
|
|
14415 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
|
|
14416 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
|
1696
|
14417 echo "configure:14418: checking for esd_play_stream" >&5
|
|
14418
|
|
14419 cat > conftest.$ac_ext <<EOF
|
|
14420 #line 14421 "configure"
|
432
|
14421 #include "confdefs.h"
|
|
14422 /* System header to define __stub macros and hopefully few prototypes,
|
|
14423 which can conflict with char esd_play_stream(); below. */
|
|
14424 #include <assert.h>
|
|
14425 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14426 /* We use char because int might match the return type of a gcc2
|
|
14427 builtin and then its argument prototype would still apply. */
|
|
14428 char esd_play_stream();
|
|
14429
|
|
14430 int main() {
|
|
14431
|
|
14432 /* The GNU C library defines this for functions which it implements
|
|
14433 to always fail with ENOSYS. Some functions are actually named
|
|
14434 something starting with __ and the normal name is an alias. */
|
|
14435 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
|
|
14436 choke me
|
|
14437 #else
|
|
14438 esd_play_stream();
|
|
14439 #endif
|
|
14440
|
|
14441 ; return 0; }
|
|
14442 EOF
|
1696
|
14443 if { (eval echo configure:14444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
432
|
14444 rm -rf conftest*
|
|
14445 eval "ac_cv_func_esd_play_stream=yes"
|
|
14446 else
|
|
14447 echo "configure: failed program was:" >&5
|
|
14448 cat conftest.$ac_ext >&5
|
|
14449 rm -rf conftest*
|
|
14450 eval "ac_cv_func_esd_play_stream=no"
|
|
14451 fi
|
|
14452 rm -f conftest*
|
|
14453
|
|
14454 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
|
|
14455 echo "$ac_t""yes" 1>&6
|
|
14456 have_esd_sound=yes
|
|
14457 else
|
|
14458 echo "$ac_t""no" 1>&6
|
|
14459 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
|
|
14460 fi
|
|
14461
|
|
14462 fi
|
|
14463
|
|
14464 if test "$have_esd_sound" = "yes"; then
|
|
14465 with_esd_sound=yes
|
|
14466 need_miscplay=yes
|
|
14467 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
|
|
14468 echo " xemacs will be linked with \"esd.o\""
|
|
14469 fi
|
426
|
14470 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14471 Defining HAVE_ESD_SOUND
|
|
14472 EOF
|
|
14473 cat >> confdefs.h <<\EOF
|
|
14474 #define HAVE_ESD_SOUND 1
|
|
14475 EOF
|
|
14476 }
|
|
14477
|
432
|
14478 else
|
|
14479 test "$with_esd_sound" = "yes" && \
|
|
14480 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
|
|
14481 with_esd_sound=no
|
|
14482 fi
|
|
14483 fi
|
|
14484
|
|
14485 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
|
426
|
14486 echo " xemacs will be linked with \"miscplay.o\""
|
|
14487 fi
|
149
|
14488
|
|
14489
|
|
14490 test -z "$with_tty" && with_tty=yes
|
|
14491
|
|
14492 if test "$with_tty" = "yes" ; then
|
151
|
14493 echo "checking for TTY-related features" 1>&6
|
1696
|
14494 echo "configure:14495: checking for TTY-related features" >&5
|
149
|
14495 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14496 Defining HAVE_TTY
|
|
14497 EOF
|
|
14498 cat >> confdefs.h <<\EOF
|
|
14499 #define HAVE_TTY 1
|
|
14500 EOF
|
|
14501 }
|
|
14502
|
|
14503
|
|
14504 if test -z "$with_ncurses"; then
|
70
|
14505
|
151
|
14506 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
|
1696
|
14507 echo "configure:14508: checking for tgetent in -lncurses" >&5
|
151
|
14508 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
|
149
|
14509
|
|
14510 xe_check_libs=" -lncurses "
|
|
14511 cat > conftest.$ac_ext <<EOF
|
1696
|
14512 #line 14513 "configure"
|
149
|
14513 #include "confdefs.h"
|
|
14514 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14515 /* We use char because int might match the return type of a gcc2
|
|
14516 builtin and then its argument prototype would still apply. */
|
151
|
14517 char tgetent();
|
149
|
14518
|
|
14519 int main() {
|
151
|
14520 tgetent()
|
149
|
14521 ; return 0; }
|
|
14522 EOF
|
1696
|
14523 if { (eval echo configure:14524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14524 rm -rf conftest*
|
|
14525 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14526 else
|
|
14527 echo "configure: failed program was:" >&5
|
|
14528 cat conftest.$ac_ext >&5
|
|
14529 rm -rf conftest*
|
|
14530 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14531 fi
|
|
14532 rm -f conftest*
|
|
14533 xe_check_libs=""
|
|
14534
|
151
|
14535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14536 echo "$ac_t""yes" 1>&6
|
|
14537 with_ncurses=yes
|
|
14538 else
|
|
14539 echo "$ac_t""no" 1>&6
|
|
14540 with_ncurses=no
|
|
14541 fi
|
|
14542
|
|
14543
|
|
14544 fi
|
|
14545 if test "$with_ncurses" = "yes"; then
|
|
14546 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14547 Defining HAVE_NCURSES
|
|
14548 EOF
|
|
14549 cat >> confdefs.h <<\EOF
|
|
14550 #define HAVE_NCURSES 1
|
|
14551 EOF
|
|
14552 }
|
|
14553
|
|
14554 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
14555 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
1696
|
14556 echo "configure:14557: checking for ncurses/curses.h" >&5
|
|
14557
|
|
14558 cat > conftest.$ac_ext <<EOF
|
|
14559 #line 14560 "configure"
|
149
|
14560 #include "confdefs.h"
|
|
14561 #include <ncurses/curses.h>
|
|
14562 EOF
|
|
14563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1696
|
14564 { (eval echo configure:14565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
14566 if test -z "$ac_err"; then
|
|
14567 rm -rf conftest*
|
|
14568 eval "ac_cv_header_$ac_safe=yes"
|
|
14569 else
|
|
14570 echo "$ac_err" >&5
|
|
14571 echo "configure: failed program was:" >&5
|
|
14572 cat conftest.$ac_ext >&5
|
|
14573 rm -rf conftest*
|
|
14574 eval "ac_cv_header_$ac_safe=no"
|
|
14575 fi
|
|
14576 rm -f conftest*
|
|
14577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14578 echo "$ac_t""yes" 1>&6
|
442
|
14579 curses_h_file=ncurses/curses.h
|
149
|
14580 else
|
|
14581 echo "$ac_t""no" 1>&6
|
|
14582 fi
|
|
14583
|
|
14584 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
|
|
14585 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
|
1696
|
14586 echo "configure:14587: checking for ncurses/term.h" >&5
|
|
14587
|
|
14588 cat > conftest.$ac_ext <<EOF
|
|
14589 #line 14590 "configure"
|
0
|
14590 #include "confdefs.h"
|
|
14591 #include <ncurses/term.h>
|
|
14592 EOF
|
149
|
14593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1696
|
14594 { (eval echo configure:14595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14596 if test -z "$ac_err"; then
|
|
14597 rm -rf conftest*
|
149
|
14598 eval "ac_cv_header_$ac_safe=yes"
|
|
14599 else
|
|
14600 echo "$ac_err" >&5
|
|
14601 echo "configure: failed program was:" >&5
|
|
14602 cat conftest.$ac_ext >&5
|
|
14603 rm -rf conftest*
|
|
14604 eval "ac_cv_header_$ac_safe=no"
|
|
14605 fi
|
|
14606 rm -f conftest*
|
|
14607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14608 echo "$ac_t""yes" 1>&6
|
442
|
14609 term_h_file=ncurses/term.h
|
149
|
14610 else
|
|
14611 echo "$ac_t""no" 1>&6
|
|
14612 fi
|
|
14613
|
151
|
14614 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
14615 echo " xemacs will be linked with \"terminfo.o\""
|
|
14616 fi
|
|
14617 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
|
149
|
14618
|
153
|
14619 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
|
149
|
14620 save_c_switch_site="$c_switch_site"
|
|
14621 c_switch_site="$c_switch_site -I/usr/include/ncurses"
|
|
14622 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
14623 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
1696
|
14624 echo "configure:14625: checking for ncurses/curses.h" >&5
|
|
14625
|
|
14626 cat > conftest.$ac_ext <<EOF
|
|
14627 #line 14628 "configure"
|
0
|
14628 #include "confdefs.h"
|
|
14629 #include <ncurses/curses.h>
|
|
14630 EOF
|
149
|
14631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1696
|
14632 { (eval echo configure:14633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14634 if test -z "$ac_err"; then
|
|
14635 rm -rf conftest*
|
149
|
14636 eval "ac_cv_header_$ac_safe=yes"
|
|
14637 else
|
|
14638 echo "$ac_err" >&5
|
|
14639 echo "configure: failed program was:" >&5
|
|
14640 cat conftest.$ac_ext >&5
|
|
14641 rm -rf conftest*
|
|
14642 eval "ac_cv_header_$ac_safe=no"
|
|
14643 fi
|
|
14644 rm -f conftest*
|
|
14645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14646 echo "$ac_t""yes" 1>&6
|
442
|
14647 curses_h_file=ncurses/curses.h
|
149
|
14648 else
|
|
14649 echo "$ac_t""no" 1>&6
|
|
14650 fi
|
|
14651
|
153
|
14652 if test "$ac_cv_header_ncurses_curses_h" = "yes"
|
561
|
14653 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2
|
149
|
14654 else c_switch_site="$save_c_switch_site"
|
|
14655 fi
|
|
14656 fi
|
151
|
14657 else if test "$have_terminfo" = "yes"; then
|
|
14658 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
14659 echo " xemacs will be linked with \"terminfo.o\""
|
|
14660 fi
|
|
14661 if test -n "$libs_termcap"; then
|
|
14662 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
14663 else
|
|
14664 for lib in curses termlib termcap; do
|
|
14665
|
|
14666 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
|
1696
|
14667 echo "configure:14668: checking for tgetent in -l$lib" >&5
|
151
|
14668 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
|
|
14669
|
|
14670 xe_check_libs=" -l$lib "
|
|
14671 cat > conftest.$ac_ext <<EOF
|
1696
|
14672 #line 14673 "configure"
|
149
|
14673 #include "confdefs.h"
|
|
14674 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14675 /* We use char because int might match the return type of a gcc2
|
|
14676 builtin and then its argument prototype would still apply. */
|
151
|
14677 char tgetent();
|
149
|
14678
|
|
14679 int main() {
|
151
|
14680 tgetent()
|
149
|
14681 ; return 0; }
|
|
14682 EOF
|
1696
|
14683 if { (eval echo configure:14684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14684 rm -rf conftest*
|
|
14685 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14686 else
|
|
14687 echo "configure: failed program was:" >&5
|
|
14688 cat conftest.$ac_ext >&5
|
|
14689 rm -rf conftest*
|
|
14690 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14691 fi
|
|
14692 rm -f conftest*
|
|
14693 xe_check_libs=""
|
|
14694
|
151
|
14695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14696 echo "$ac_t""yes" 1>&6
|
|
14697 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
|
|
14698 else
|
|
14699 echo "$ac_t""no" 1>&6
|
|
14700 fi
|
|
14701
|
|
14702
|
|
14703 done
|
|
14704 fi
|
|
14705 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
|
|
14706 echo " xemacs will be linked with \"tparam.o\""
|
|
14707 fi
|
|
14708 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
|
|
14709 if test -n "$libs_termcap"; then
|
|
14710 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
14711 else
|
|
14712
|
|
14713 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
|
1696
|
14714 echo "configure:14715: checking for tgetent in -lcurses" >&5
|
151
|
14715 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
14716
|
|
14717 xe_check_libs=" -lcurses "
|
|
14718 cat > conftest.$ac_ext <<EOF
|
1696
|
14719 #line 14720 "configure"
|
149
|
14720 #include "confdefs.h"
|
|
14721 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14722 /* We use char because int might match the return type of a gcc2
|
|
14723 builtin and then its argument prototype would still apply. */
|
151
|
14724 char tgetent();
|
149
|
14725
|
|
14726 int main() {
|
151
|
14727 tgetent()
|
149
|
14728 ; return 0; }
|
|
14729 EOF
|
1696
|
14730 if { (eval echo configure:14731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14731 rm -rf conftest*
|
|
14732 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14733 else
|
|
14734 echo "configure: failed program was:" >&5
|
|
14735 cat conftest.$ac_ext >&5
|
|
14736 rm -rf conftest*
|
|
14737 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14738 fi
|
|
14739 rm -f conftest*
|
|
14740 xe_check_libs=""
|
|
14741
|
151
|
14742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14743 echo "$ac_t""yes" 1>&6
|
|
14744 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
|
|
14745 else
|
|
14746 echo "$ac_t""no" 1>&6
|
|
14747 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
1696
|
14748 echo "configure:14749: checking for tgetent in -ltermcap" >&5
|
151
|
14749 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
|
14750
|
|
14751 xe_check_libs=" -ltermcap "
|
|
14752 cat > conftest.$ac_ext <<EOF
|
1696
|
14753 #line 14754 "configure"
|
149
|
14754 #include "confdefs.h"
|
|
14755 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14756 /* We use char because int might match the return type of a gcc2
|
|
14757 builtin and then its argument prototype would still apply. */
|
151
|
14758 char tgetent();
|
149
|
14759
|
|
14760 int main() {
|
151
|
14761 tgetent()
|
149
|
14762 ; return 0; }
|
|
14763 EOF
|
1696
|
14764 if { (eval echo configure:14765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14765 rm -rf conftest*
|
|
14766 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14767 else
|
|
14768 echo "configure: failed program was:" >&5
|
|
14769 cat conftest.$ac_ext >&5
|
|
14770 rm -rf conftest*
|
|
14771 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14772 fi
|
|
14773 rm -f conftest*
|
|
14774 xe_check_libs=""
|
|
14775
|
151
|
14776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14777 echo "$ac_t""yes" 1>&6
|
|
14778 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
|
|
14779 else
|
|
14780 echo "$ac_t""no" 1>&6
|
|
14781 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
|
|
14782 echo " xemacs will be linked with \"termcap.o\""
|
|
14783 fi
|
|
14784 fi
|
|
14785
|
|
14786
|
|
14787 fi
|
|
14788
|
|
14789
|
0
|
14790 fi
|
|
14791 fi
|
149
|
14792 fi
|
|
14793 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
14794 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
|
|
14795 EOF
|
|
14796 cat >> confdefs.h <<EOF
|
|
14797 #define CURSES_H_FILE "${curses_h_file-curses.h}"
|
149
|
14798 EOF
|
|
14799 }
|
|
14800
|
|
14801 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
14802 Defining TERM_H_FILE = "${term_h_file-term.h}"
|
|
14803 EOF
|
|
14804 cat >> confdefs.h <<EOF
|
|
14805 #define TERM_H_FILE "${term_h_file-term.h}"
|
149
|
14806 EOF
|
|
14807 }
|
|
14808
|
155
|
14809
|
|
14810 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
|
|
14811 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
|
1696
|
14812 echo "configure:14813: checking for gpm.h" >&5
|
|
14813
|
|
14814 cat > conftest.$ac_ext <<EOF
|
|
14815 #line 14816 "configure"
|
155
|
14816 #include "confdefs.h"
|
|
14817 #include <gpm.h>
|
|
14818 EOF
|
|
14819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1696
|
14820 { (eval echo configure:14821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
14822 if test -z "$ac_err"; then
|
|
14823 rm -rf conftest*
|
|
14824 eval "ac_cv_header_$ac_safe=yes"
|
|
14825 else
|
|
14826 echo "$ac_err" >&5
|
|
14827 echo "configure: failed program was:" >&5
|
|
14828 cat conftest.$ac_ext >&5
|
|
14829 rm -rf conftest*
|
|
14830 eval "ac_cv_header_$ac_safe=no"
|
|
14831 fi
|
|
14832 rm -f conftest*
|
|
14833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14834 echo "$ac_t""yes" 1>&6
|
|
14835 :
|
|
14836 else
|
|
14837 echo "$ac_t""no" 1>&6
|
|
14838 with_gpm=no
|
|
14839 fi
|
|
14840 }
|
|
14841 test -z "$with_gpm" && {
|
|
14842 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
|
1696
|
14843 echo "configure:14844: checking for Gpm_Open in -lgpm" >&5
|
155
|
14844 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
|
|
14845
|
|
14846 xe_check_libs=" -lgpm "
|
|
14847 cat > conftest.$ac_ext <<EOF
|
1696
|
14848 #line 14849 "configure"
|
155
|
14849 #include "confdefs.h"
|
|
14850 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14851 /* We use char because int might match the return type of a gcc2
|
|
14852 builtin and then its argument prototype would still apply. */
|
|
14853 char Gpm_Open();
|
|
14854
|
|
14855 int main() {
|
|
14856 Gpm_Open()
|
|
14857 ; return 0; }
|
|
14858 EOF
|
1696
|
14859 if { (eval echo configure:14860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
155
|
14860 rm -rf conftest*
|
|
14861 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14862 else
|
|
14863 echo "configure: failed program was:" >&5
|
|
14864 cat conftest.$ac_ext >&5
|
|
14865 rm -rf conftest*
|
|
14866 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14867 fi
|
|
14868 rm -f conftest*
|
|
14869 xe_check_libs=""
|
|
14870
|
|
14871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14872 echo "$ac_t""yes" 1>&6
|
|
14873 with_gpm=yes
|
|
14874 else
|
|
14875 echo "$ac_t""no" 1>&6
|
|
14876 with_gpm=no
|
|
14877 fi
|
|
14878
|
|
14879 }
|
|
14880 if test "$with_gpm" = "yes"; then
|
|
14881 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14882 Defining HAVE_GPM
|
|
14883 EOF
|
|
14884 cat >> confdefs.h <<\EOF
|
|
14885 #define HAVE_GPM 1
|
|
14886 EOF
|
|
14887 }
|
|
14888
|
|
14889 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
|
|
14890 fi
|
|
14891
|
151
|
14892 else for feature in ncurses gpm; do
|
149
|
14893 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
561
|
14894 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
|
149
|
14895 fi
|
|
14896 eval "with_${feature}=no"
|
|
14897 done
|
151
|
14898 fi
|
149
|
14899
|
426
|
14900 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
|
384
|
14901 != "no no no" && echo "checking for database support" 1>&6
|
1696
|
14902 echo "configure:14903: checking for database support" >&5
|
426
|
14903
|
|
14904 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
|
384
|
14905 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
|
|
14906 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
|
1696
|
14907 echo "configure:14908: checking for ndbm.h" >&5
|
|
14908
|
|
14909 cat > conftest.$ac_ext <<EOF
|
|
14910 #line 14911 "configure"
|
384
|
14911 #include "confdefs.h"
|
|
14912 #include <ndbm.h>
|
265
|
14913 EOF
|
|
14914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1696
|
14915 { (eval echo configure:14916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
265
|
14917 if test -z "$ac_err"; then
|
|
14918 rm -rf conftest*
|
|
14919 eval "ac_cv_header_$ac_safe=yes"
|
|
14920 else
|
|
14921 echo "$ac_err" >&5
|
|
14922 echo "configure: failed program was:" >&5
|
|
14923 cat conftest.$ac_ext >&5
|
|
14924 rm -rf conftest*
|
|
14925 eval "ac_cv_header_$ac_safe=no"
|
|
14926 fi
|
|
14927 rm -f conftest*
|
|
14928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14929 echo "$ac_t""yes" 1>&6
|
384
|
14930 :
|
|
14931 else
|
|
14932 echo "$ac_t""no" 1>&6
|
|
14933
|
426
|
14934 test "$with_database_gdbm" = "yes" -o \
|
|
14935 "$with_database_dbm" = "yes" && \
|
384
|
14936 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
|
426
|
14937 with_database_gdbm=no with_database_dbm=no
|
|
14938 fi
|
|
14939
|
|
14940 fi
|
|
14941
|
|
14942 if test "$with_database_gdbm" != "no"; then
|
384
|
14943
|
149
|
14944 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
|
1696
|
14945 echo "configure:14946: checking for dbm_open in -lgdbm" >&5
|
149
|
14946 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
14947
|
|
14948 xe_check_libs=" -lgdbm "
|
|
14949 cat > conftest.$ac_ext <<EOF
|
1696
|
14950 #line 14951 "configure"
|
149
|
14951 #include "confdefs.h"
|
|
14952 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14953 /* We use char because int might match the return type of a gcc2
|
|
14954 builtin and then its argument prototype would still apply. */
|
|
14955 char dbm_open();
|
|
14956
|
|
14957 int main() {
|
|
14958 dbm_open()
|
|
14959 ; return 0; }
|
|
14960 EOF
|
1696
|
14961 if { (eval echo configure:14962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14962 rm -rf conftest*
|
|
14963 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14964 else
|
|
14965 echo "configure: failed program was:" >&5
|
|
14966 cat conftest.$ac_ext >&5
|
|
14967 rm -rf conftest*
|
|
14968 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14969 fi
|
|
14970 rm -f conftest*
|
|
14971 xe_check_libs=""
|
|
14972
|
151
|
14973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14974 echo "$ac_t""yes" 1>&6
|
426
|
14975 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
|
|
14976 else
|
|
14977 echo "$ac_t""no" 1>&6
|
|
14978 if test "$with_database_gdbm" = "yes"; then
|
384
|
14979 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
|
|
14980 fi
|
426
|
14981 with_database_gdbm=no
|
384
|
14982 fi
|
|
14983
|
|
14984
|
149
|
14985 fi
|
|
14986
|
151
|
14987 if test "$with_database_dbm" != "no"; then
|
149
|
14988 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
1696
|
14989 echo "configure:14990: checking for dbm_open" >&5
|
|
14990
|
|
14991 cat > conftest.$ac_ext <<EOF
|
|
14992 #line 14993 "configure"
|
149
|
14993 #include "confdefs.h"
|
|
14994 /* System header to define __stub macros and hopefully few prototypes,
|
|
14995 which can conflict with char dbm_open(); below. */
|
|
14996 #include <assert.h>
|
|
14997 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14998 /* We use char because int might match the return type of a gcc2
|
|
14999 builtin and then its argument prototype would still apply. */
|
|
15000 char dbm_open();
|
|
15001
|
|
15002 int main() {
|
|
15003
|
|
15004 /* The GNU C library defines this for functions which it implements
|
|
15005 to always fail with ENOSYS. Some functions are actually named
|
|
15006 something starting with __ and the normal name is an alias. */
|
|
15007 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
15008 choke me
|
|
15009 #else
|
|
15010 dbm_open();
|
|
15011 #endif
|
|
15012
|
|
15013 ; return 0; }
|
|
15014 EOF
|
1696
|
15015 if { (eval echo configure:15016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15016 rm -rf conftest*
|
|
15017 eval "ac_cv_func_dbm_open=yes"
|
|
15018 else
|
|
15019 echo "configure: failed program was:" >&5
|
|
15020 cat conftest.$ac_ext >&5
|
|
15021 rm -rf conftest*
|
|
15022 eval "ac_cv_func_dbm_open=no"
|
|
15023 fi
|
|
15024 rm -f conftest*
|
|
15025
|
|
15026 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
15027 echo "$ac_t""yes" 1>&6
|
384
|
15028 with_database_dbm=yes libdbm=
|
|
15029 else
|
|
15030 echo "$ac_t""no" 1>&6
|
|
15031
|
149
|
15032
|
|
15033 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
|
1696
|
15034 echo "configure:15035: checking for dbm_open in -ldbm" >&5
|
149
|
15035 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
15036
|
|
15037 xe_check_libs=" -ldbm "
|
|
15038 cat > conftest.$ac_ext <<EOF
|
1696
|
15039 #line 15040 "configure"
|
149
|
15040 #include "confdefs.h"
|
|
15041 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15042 /* We use char because int might match the return type of a gcc2
|
|
15043 builtin and then its argument prototype would still apply. */
|
|
15044 char dbm_open();
|
|
15045
|
|
15046 int main() {
|
|
15047 dbm_open()
|
|
15048 ; return 0; }
|
|
15049 EOF
|
1696
|
15050 if { (eval echo configure:15051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15051 rm -rf conftest*
|
|
15052 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15053 else
|
|
15054 echo "configure: failed program was:" >&5
|
|
15055 cat conftest.$ac_ext >&5
|
|
15056 rm -rf conftest*
|
|
15057 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15058 fi
|
|
15059 rm -f conftest*
|
|
15060 xe_check_libs=""
|
|
15061
|
151
|
15062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
15063 echo "$ac_t""yes" 1>&6
|
384
|
15064 with_database_dbm=yes libdbm=-ldbm
|
|
15065 else
|
|
15066 echo "$ac_t""no" 1>&6
|
|
15067 test "$with_database_dbm" = "yes" && \
|
|
15068 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
|
|
15069 with_database_dbm=no
|
|
15070 fi
|
|
15071
|
|
15072
|
|
15073 fi
|
|
15074
|
|
15075 fi
|
|
15076
|
|
15077 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
|
426
|
15078 test "$with_database_gdbm" = "yes" -o \
|
|
15079 "$with_database_dbm" = "yes" && \
|
384
|
15080 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15081 Defining HAVE_DBM
|
|
15082 EOF
|
|
15083 cat >> confdefs.h <<\EOF
|
|
15084 #define HAVE_DBM 1
|
|
15085 EOF
|
|
15086 }
|
|
15087
|
|
15088
|
|
15089 if test "$with_database_berkdb" != "no"; then
|
298
|
15090 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
|
1696
|
15091 echo "configure:15092: checking for Berkeley db.h" >&5
|
442
|
15092 for header in "db/db.h" "db.h"; do
|
298
|
15093 cat > conftest.$ac_ext <<EOF
|
1696
|
15094 #line 15095 "configure"
|
442
|
15095 #include "confdefs.h"
|
|
15096
|
|
15097 #include <stdlib.h>
|
|
15098 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
|
298
|
15099 #ifdef HAVE_INTTYPES_H
|
|
15100 #define __BIT_TYPES_DEFINED__
|
|
15101 #include <inttypes.h>
|
|
15102 typedef uint8_t u_int8_t;
|
|
15103 typedef uint16_t u_int16_t;
|
|
15104 typedef uint32_t u_int32_t;
|
|
15105 #ifdef WE_DONT_NEED_QUADS
|
|
15106 typedef uint64_t u_int64_t;
|
|
15107 #endif
|
|
15108 #endif
|
442
|
15109 #endif
|
|
15110 #include <$header>
|
|
15111
|
|
15112 int main() {
|
|
15113
|
|
15114 ; return 0; }
|
|
15115 EOF
|
1696
|
15116 if { (eval echo configure:15117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
15117 rm -rf conftest*
|
|
15118 db_h_file="$header"; break
|
298
|
15119 else
|
|
15120 echo "configure: failed program was:" >&5
|
|
15121 cat conftest.$ac_ext >&5
|
|
15122 fi
|
|
15123 rm -f conftest*
|
|
15124 done
|
442
|
15125 if test -z "$db_h_file"
|
298
|
15126 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
|
442
|
15127 else echo "$ac_t""$db_h_file" 1>&6
|
298
|
15128 fi
|
|
15129
|
|
15130 if test "$with_database_berkdb" != "no"; then
|
|
15131 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
|
1696
|
15132 echo "configure:15133: checking for Berkeley DB version" >&5
|
298
|
15133 cat > conftest.$ac_ext <<EOF
|
1696
|
15134 #line 15135 "configure"
|
442
|
15135 #include "confdefs.h"
|
|
15136 #include <$db_h_file>
|
298
|
15137 #if DB_VERSION_MAJOR > 1
|
|
15138 yes
|
|
15139 #endif
|
|
15140
|
|
15141 EOF
|
|
15142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
15143 egrep "yes" >/dev/null 2>&1; then
|
|
15144 rm -rf conftest*
|
448
|
15145 cat > conftest.$ac_ext <<EOF
|
1696
|
15146 #line 15147 "configure"
|
448
|
15147 #include "confdefs.h"
|
|
15148 #include <$db_h_file>
|
|
15149 #if DB_VERSION_MAJOR > 2
|
|
15150 yes
|
|
15151 #endif
|
|
15152
|
|
15153 EOF
|
|
15154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
15155 egrep "yes" >/dev/null 2>&1; then
|
|
15156 rm -rf conftest*
|
1443
|
15157 cat > conftest.$ac_ext <<EOF
|
1696
|
15158 #line 15159 "configure"
|
1443
|
15159 #include "confdefs.h"
|
|
15160 #include <$db_h_file>
|
|
15161 #if DB_VERSION_MAJOR > 3
|
|
15162 yes
|
|
15163 #endif
|
|
15164
|
|
15165 EOF
|
|
15166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
15167 egrep "yes" >/dev/null 2>&1; then
|
|
15168 rm -rf conftest*
|
|
15169 echo "$ac_t""4" 1>&6; dbfunc=db_create; dbver=4
|
448
|
15170 else
|
|
15171 rm -rf conftest*
|
|
15172
|
1443
|
15173 echo "$ac_t""3" 1>&6; dbfunc=db_create; dbver=3
|
448
|
15174 fi
|
|
15175 rm -f conftest*
|
|
15176
|
|
15177 else
|
|
15178 rm -rf conftest*
|
|
15179
|
1443
|
15180 echo "$ac_t""2" 1>&6; dbfunc=db_open; dbver=2
|
|
15181 fi
|
|
15182 rm -f conftest*
|
|
15183
|
|
15184 else
|
|
15185 rm -rf conftest*
|
|
15186
|
|
15187 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1
|
298
|
15188 fi
|
|
15189 rm -f conftest*
|
|
15190
|
|
15191 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
|
1696
|
15192 echo "configure:15193: checking for $dbfunc" >&5
|
|
15193
|
|
15194 cat > conftest.$ac_ext <<EOF
|
|
15195 #line 15196 "configure"
|
298
|
15196 #include "confdefs.h"
|
149
|
15197 /* System header to define __stub macros and hopefully few prototypes,
|
298
|
15198 which can conflict with char $dbfunc(); below. */
|
149
|
15199 #include <assert.h>
|
|
15200 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15201 /* We use char because int might match the return type of a gcc2
|
|
15202 builtin and then its argument prototype would still apply. */
|
298
|
15203 char $dbfunc();
|
149
|
15204
|
|
15205 int main() {
|
|
15206
|
0
|
15207 /* The GNU C library defines this for functions which it implements
|
|
15208 to always fail with ENOSYS. Some functions are actually named
|
|
15209 something starting with __ and the normal name is an alias. */
|
298
|
15210 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
|
0
|
15211 choke me
|
|
15212 #else
|
298
|
15213 $dbfunc();
|
0
|
15214 #endif
|
149
|
15215
|
0
|
15216 ; return 0; }
|
|
15217 EOF
|
1696
|
15218 if { (eval echo configure:15219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
298
|
15219 rm -rf conftest*
|
|
15220 eval "ac_cv_func_$dbfunc=yes"
|
|
15221 else
|
|
15222 echo "configure: failed program was:" >&5
|
|
15223 cat conftest.$ac_ext >&5
|
|
15224 rm -rf conftest*
|
|
15225 eval "ac_cv_func_$dbfunc=no"
|
|
15226 fi
|
|
15227 rm -f conftest*
|
|
15228
|
|
15229 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
|
149
|
15230 echo "$ac_t""yes" 1>&6
|
|
15231 with_database_berkdb=yes need_libdb=no
|
|
15232 else
|
|
15233 echo "$ac_t""no" 1>&6
|
298
|
15234
|
|
15235
|
|
15236 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
|
1696
|
15237 echo "configure:15238: checking for $dbfunc in -ldb" >&5
|
298
|
15238 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
|
149
|
15239
|
|
15240 xe_check_libs=" -ldb "
|
|
15241 cat > conftest.$ac_ext <<EOF
|
1696
|
15242 #line 15243 "configure"
|
149
|
15243 #include "confdefs.h"
|
0
|
15244 /* Override any gcc2 internal prototype to avoid an error. */
|
149
|
15245 /* We use char because int might match the return type of a gcc2
|
|
15246 builtin and then its argument prototype would still apply. */
|
298
|
15247 char $dbfunc();
|
|
15248
|
|
15249 int main() {
|
|
15250 $dbfunc()
|
|
15251 ; return 0; }
|
|
15252 EOF
|
1696
|
15253 if { (eval echo configure:15254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15254 rm -rf conftest*
|
|
15255 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15256 else
|
|
15257 echo "configure: failed program was:" >&5
|
|
15258 cat conftest.$ac_ext >&5
|
|
15259 rm -rf conftest*
|
|
15260 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15261 fi
|
|
15262 rm -f conftest*
|
|
15263 xe_check_libs=""
|
|
15264
|
151
|
15265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
15266 echo "$ac_t""yes" 1>&6
|
|
15267 with_database_berkdb=yes need_libdb=yes
|
|
15268 else
|
|
15269 echo "$ac_t""no" 1>&6
|
298
|
15270 fi
|
|
15271
|
|
15272
|
|
15273 fi
|
|
15274
|
|
15275 fi
|
|
15276
|
1443
|
15277 if test "$with_database_berkdb" != "yes" -a "$dbver" = "4"; then
|
|
15278 rm -f $tempcname
|
|
15279 echo "#include <$db_h_file>" > $tempcname
|
|
15280 echo "configure___ dbfunc=db_create" >> $tempcname
|
|
15281 eval `$CPP -Isrc $tempcname \
|
|
15282 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
|
|
15283 rm -f $tempcname
|
|
15284 echo "configure: warning: "db_create is really $dbfunc"" 1>&2
|
|
15285
|
|
15286 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
|
1696
|
15287 echo "configure:15288: checking for $dbfunc in -ldb" >&5
|
1443
|
15288 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
|
|
15289
|
|
15290 xe_check_libs=" -ldb "
|
|
15291 cat > conftest.$ac_ext <<EOF
|
1696
|
15292 #line 15293 "configure"
|
1443
|
15293 #include "confdefs.h"
|
|
15294 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15295 /* We use char because int might match the return type of a gcc2
|
|
15296 builtin and then its argument prototype would still apply. */
|
|
15297 char $dbfunc();
|
|
15298
|
|
15299 int main() {
|
|
15300 $dbfunc()
|
|
15301 ; return 0; }
|
|
15302 EOF
|
1696
|
15303 if { (eval echo configure:15304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1443
|
15304 rm -rf conftest*
|
|
15305 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15306 else
|
|
15307 echo "configure: failed program was:" >&5
|
|
15308 cat conftest.$ac_ext >&5
|
|
15309 rm -rf conftest*
|
|
15310 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15311 fi
|
|
15312 rm -f conftest*
|
|
15313 xe_check_libs=""
|
|
15314
|
|
15315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
15316 echo "$ac_t""yes" 1>&6
|
|
15317 with_database_berkdb=yes need_libdb=yes
|
|
15318 else
|
|
15319 echo "$ac_t""no" 1>&6
|
|
15320 fi
|
|
15321
|
|
15322
|
|
15323 fi
|
|
15324
|
149
|
15325 if test "$with_database_berkdb" = "yes"; then
|
|
15326 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
15327 Defining DB_H_FILE = "$db_h_file"
|
|
15328 EOF
|
|
15329 cat >> confdefs.h <<EOF
|
|
15330 #define DB_H_FILE "$db_h_file"
|
149
|
15331 EOF
|
|
15332 }
|
|
15333
|
|
15334 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15335 Defining HAVE_BERKELEY_DB
|
|
15336 EOF
|
|
15337 cat >> confdefs.h <<\EOF
|
|
15338 #define HAVE_BERKELEY_DB 1
|
|
15339 EOF
|
|
15340 }
|
|
15341
|
151
|
15342 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
|
149
|
15343 else with_database_berkdb=no
|
|
15344 fi
|
|
15345 fi
|
|
15346
|
426
|
15347 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
|
272
|
15348 != "no no no"; then
|
149
|
15349 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15350 Defining HAVE_DATABASE
|
|
15351 EOF
|
|
15352 cat >> confdefs.h <<\EOF
|
|
15353 #define HAVE_DATABASE 1
|
|
15354 EOF
|
|
15355 }
|
|
15356
|
|
15357 fi
|
|
15358
|
|
15359 if test "$with_socks" = "yes"; then
|
|
15360
|
|
15361 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
|
1696
|
15362 echo "configure:15363: checking for SOCKSinit in -lsocks" >&5
|
149
|
15363 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
|
|
15364
|
|
15365 xe_check_libs=" -lsocks "
|
|
15366 cat > conftest.$ac_ext <<EOF
|
1696
|
15367 #line 15368 "configure"
|
149
|
15368 #include "confdefs.h"
|
|
15369 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15370 /* We use char because int might match the return type of a gcc2
|
|
15371 builtin and then its argument prototype would still apply. */
|
|
15372 char SOCKSinit();
|
|
15373
|
|
15374 int main() {
|
|
15375 SOCKSinit()
|
|
15376 ; return 0; }
|
|
15377 EOF
|
1696
|
15378 if { (eval echo configure:15379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15379 rm -rf conftest*
|
|
15380 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15381 else
|
|
15382 echo "configure: failed program was:" >&5
|
|
15383 cat conftest.$ac_ext >&5
|
|
15384 rm -rf conftest*
|
|
15385 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15386 fi
|
|
15387 rm -f conftest*
|
|
15388 xe_check_libs=""
|
|
15389
|
151
|
15390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
15391 echo "$ac_t""yes" 1>&6
|
|
15392 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
15393 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
15394 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15395 Defining $ac_tr_lib
|
|
15396 EOF
|
|
15397 cat >> confdefs.h <<EOF
|
|
15398 #define $ac_tr_lib 1
|
|
15399 EOF
|
|
15400 }
|
|
15401
|
151
|
15402 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
|
149
|
15403
|
|
15404 else
|
|
15405 echo "$ac_t""no" 1>&6
|
|
15406 fi
|
|
15407
|
|
15408
|
|
15409 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15410 Defining HAVE_SOCKS
|
|
15411 EOF
|
|
15412 cat >> confdefs.h <<\EOF
|
|
15413 #define HAVE_SOCKS 1
|
|
15414 EOF
|
|
15415 }
|
|
15416
|
|
15417 fi
|
|
15418
|
|
15419 if test "$usage_tracking" = "yes"; then
|
|
15420 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15421 Defining USAGE_TRACKING
|
|
15422 EOF
|
|
15423 cat >> confdefs.h <<\EOF
|
|
15424 #define USAGE_TRACKING 1
|
|
15425 EOF
|
|
15426 }
|
|
15427
|
151
|
15428 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
|
149
|
15429 fi
|
|
15430
|
997
|
15431 cat > conftest.$ac_ext <<EOF
|
1696
|
15432 #line 15433 "configure"
|
272
|
15433 #include "confdefs.h"
|
|
15434 int main(int c,char *v[]){return 0;}
|
|
15435 EOF
|
1696
|
15436 if { (eval echo configure:15437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
272
|
15437 then
|
|
15438 :
|
|
15439 else
|
373
|
15440 conftest_rc="$?"
|
272
|
15441 echo "configure: failed program was:" >&5
|
|
15442 cat conftest.$ac_ext >&5
|
|
15443 rm -fr conftest*
|
|
15444
|
|
15445 echo ""
|
|
15446 echo "*** PANIC *** The C compiler can no longer build working executables."
|
|
15447 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
|
|
15448 echo "*** PANIC *** The most likely reason for this problem is that configure"
|
|
15449 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
|
|
15450 echo "*** PANIC *** found at run time."
|
|
15451 echo "*** PANIC ***"
|
|
15452 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
|
|
15453 echo "*** PANIC *** On other systems, try telling configure where to find the"
|
|
15454 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
|
|
15455 echo "*** PANIC ***"
|
|
15456 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
|
|
15457 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
|
|
15458 echo "*** PANIC *** on your system. Don't do that."
|
|
15459 exit 1
|
|
15460 fi
|
|
15461 rm -fr conftest*
|
|
15462
|
771
|
15463 if test "$win32_processes" != "yes"; then
|
398
|
15464 { test "$extra_verbose" = "yes" && cat << \EOF
|
263
|
15465 Defining HAVE_UNIX_PROCESSES
|
|
15466 EOF
|
|
15467 cat >> confdefs.h <<\EOF
|
|
15468 #define HAVE_UNIX_PROCESSES 1
|
|
15469 EOF
|
|
15470 }
|
|
15471
|
398
|
15472 fi
|
261
|
15473
|
155
|
15474
|
997
|
15475 if test "$with_modules" = "yes"; then
|
|
15476 ld_libs_module=
|
|
15477 else
|
|
15478
|
|
15479 T=""
|
|
15480 for W in $ldap_libs $postgresql_libs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15481 ld_libs_module="$T"
|
|
15482
|
|
15483 fi
|
|
15484
|
155
|
15485
|
|
15486 T=""
|
175
|
15487 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15488 CFLAGS="$T"
|
|
15489
|
|
15490
|
|
15491 T=""
|
155
|
15492 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15493 extra_objs="$T"
|
|
15494
|
|
15495
|
|
15496 T=""
|
|
15497 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
|
|
15498 c_switch_general="$T"
|
|
15499
|
|
15500
|
|
15501 T=""
|
462
|
15502 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
|
15503 c_switch_window_system="$T"
|
|
15504
|
|
15505
|
|
15506 T=""
|
|
15507 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15508 c_switch_all="$T"
|
|
15509
|
|
15510
|
|
15511 T=""
|
|
15512 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
|
|
15513 ld_switch_general="$T"
|
|
15514
|
|
15515
|
|
15516 T=""
|
|
15517 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15518 ld_switch_window_system="$T"
|
|
15519
|
|
15520
|
|
15521 T=""
|
|
15522 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15523 ld_switch_all="$T"
|
|
15524
|
|
15525
|
|
15526 T=""
|
|
15527 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15528 ld_libs_general="$T"
|
|
15529
|
|
15530
|
|
15531 T=""
|
462
|
15532 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
|
15533 ld_libs_window_system="$T"
|
|
15534
|
|
15535
|
|
15536 T=""
|
997
|
15537 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
|
15538 ld_libs_all="$T"
|
|
15539
|
149
|
15540
|
1491
|
15541 if test "$with_modules" = "no"; then
|
|
15542 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
|
15543 fi
|
|
15544
|
|
15545
|
380
|
15546 internal_makefile_list="Makefile.in"
|
149
|
15547 SUBDIR_MAKEFILES=''
|
151
|
15548 test -d lock || mkdir lock
|
149
|
15549 for dir in $MAKE_SUBDIR; do
|
167
|
15550 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
|
|
15551 test -d "$d" || mkdir "$d"; cd "$d"
|
|
15552 done ) ;;
|
|
15553 * ) test -d "$dir" || mkdir "$dir" ;;
|
|
15554 esac
|
155
|
15555
|
|
15556 T=""
|
384
|
15557 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
155
|
15558 SUBDIR_MAKEFILES="$T"
|
|
15559
|
|
15560
|
|
15561 T=""
|
|
15562 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15563 internal_makefile_list="$T"
|
|
15564
|
149
|
15565 done
|
|
15566
|
|
15567
|
|
15568
|
167
|
15569
|
157
|
15570 for dir in src/s src/m; do
|
|
15571 if test ! -d "$dir" ; then
|
|
15572 echo Making symbolic link to "$srcdir/$dir"
|
|
15573 ${LN_S} "$srcdir/$dir" "$dir"
|
|
15574 fi
|
|
15575 done
|
|
15576
|
1111
|
15577 if test "$need_modules_common" = "yes"; then
|
|
15578 for dir in modules/common; do
|
|
15579 if test ! -d "$dir" ; then
|
|
15580 echo Making symbolic link to "$srcdir/$dir"
|
|
15581 ${LN_S} "$srcdir/$dir" "$dir"
|
|
15582 fi
|
|
15583 done
|
|
15584 fi
|
|
15585
|
149
|
15586 if test "$extra_verbose" = "yes"; then
|
151
|
15587 echo ""
|
163
|
15588 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
|
15589 echo ""
|
|
15590 fi
|
|
15591
|
438
|
15592
|
|
15593 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
|
|
15594 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
|
|
15595 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
|
|
15596 fi
|
|
15597
|
|
15598 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
|
|
15599 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
|
|
15600 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
|
|
15601 fi
|
|
15602
|
|
15603 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
|
|
15604 test "$extra_verbose" = "yes" && echo "creating TAGS"
|
|
15605 echo "
|
|
15606 $srcdir/TAGS,include" > "TAGS"
|
151
|
15607 fi
|
|
15608
|
373
|
15609 if test "$__SUNPRO_C" = "yes"; then
|
438
|
15610 test "$extra_verbose" = "yes" && echo "creating .sbinit"
|
157
|
15611 ( echo "# For use with Sun WorkShop's Source browser."
|
|
15612 echo "# See sbquery(1) and sbinit(4) for more information"
|
|
15613 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
|
|
15614 ) > .sbinit
|
|
15615 fi
|
151
|
15616
|
|
15617 rm -f core
|
|
15618
|
149
|
15619
|
|
15620
|
|
15621
|
|
15622
|
|
15623
|
|
15624
|
|
15625
|
|
15626
|
|
15627
|
|
15628
|
|
15629
|
|
15630
|
|
15631
|
|
15632
|
280
|
15633
|
420
|
15634
|
422
|
15635
|
|
15636
|
278
|
15637 PREFIX=$prefix
|
|
15638 while true; do
|
|
15639 case "$PREFIX" in
|
|
15640 *\$* ) eval "PREFIX=$PREFIX" ;;
|
|
15641 *) break ;;
|
|
15642 esac
|
|
15643 done
|
|
15644
|
|
15645
|
|
15646
|
420
|
15647
|
278
|
15648 EXEC_PREFIX=$exec_prefix
|
|
15649 while true; do
|
|
15650 case "$EXEC_PREFIX" in
|
|
15651 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
|
|
15652 *) break ;;
|
|
15653 esac
|
|
15654 done
|
|
15655
|
149
|
15656
|
|
15657
|
|
15658
|
274
|
15659 INFODIR=$infodir
|
|
15660 while true; do
|
|
15661 case "$INFODIR" in
|
|
15662 *\$* ) eval "INFODIR=$INFODIR" ;;
|
|
15663 *) break ;;
|
|
15664 esac
|
|
15665 done
|
|
15666
|
|
15667
|
|
15668
|
|
15669
|
|
15670 INFOPATH=$infopath
|
|
15671 while true; do
|
|
15672 case "$INFOPATH" in
|
|
15673 *\$* ) eval "INFOPATH=$INFOPATH" ;;
|
|
15674 *) break ;;
|
|
15675 esac
|
|
15676 done
|
|
15677
|
|
15678
|
|
15679
|
|
15680
|
|
15681 PACKAGE_PATH=$package_path
|
|
15682 while true; do
|
|
15683 case "$PACKAGE_PATH" in
|
|
15684 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
|
|
15685 *) break ;;
|
|
15686 esac
|
|
15687 done
|
|
15688
|
|
15689
|
|
15690
|
|
15691
|
|
15692 LISPDIR=$lispdir
|
|
15693 while true; do
|
|
15694 case "$LISPDIR" in
|
|
15695 *\$* ) eval "LISPDIR=$LISPDIR" ;;
|
|
15696 *) break ;;
|
|
15697 esac
|
|
15698 done
|
|
15699
|
|
15700
|
|
15701
|
|
15702
|
388
|
15703 MODULEDIR=$moduledir
|
|
15704 while true; do
|
|
15705 case "$MODULEDIR" in
|
|
15706 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
|
|
15707 *) break ;;
|
|
15708 esac
|
|
15709 done
|
|
15710
|
|
15711
|
|
15712
|
|
15713
|
|
15714 SITELISPDIR=$sitelispdir
|
|
15715 while true; do
|
|
15716 case "$SITELISPDIR" in
|
|
15717 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
|
|
15718 *) break ;;
|
|
15719 esac
|
|
15720 done
|
|
15721
|
|
15722
|
|
15723
|
|
15724
|
|
15725 SITEMODULEDIR=$sitemoduledir
|
|
15726 while true; do
|
|
15727 case "$SITEMODULEDIR" in
|
|
15728 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
|
|
15729 *) break ;;
|
|
15730 esac
|
|
15731 done
|
|
15732
|
|
15733
|
|
15734
|
274
|
15735
|
|
15736 ETCDIR=$etcdir
|
|
15737 while true; do
|
|
15738 case "$ETCDIR" in
|
|
15739 *\$* ) eval "ETCDIR=$ETCDIR" ;;
|
|
15740 *) break ;;
|
|
15741 esac
|
|
15742 done
|
|
15743
|
|
15744
|
|
15745
|
|
15746
|
420
|
15747 DOCDIR=$docdir
|
|
15748 while true; do
|
|
15749 case "$DOCDIR" in
|
|
15750 *\$* ) eval "DOCDIR=$DOCDIR" ;;
|
|
15751 *) break ;;
|
|
15752 esac
|
|
15753 done
|
|
15754
|
|
15755
|
|
15756
|
|
15757
|
274
|
15758 ARCHLIBDIR=$archlibdir
|
|
15759 while true; do
|
|
15760 case "$ARCHLIBDIR" in
|
|
15761 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
|
|
15762 *) break ;;
|
|
15763 esac
|
|
15764 done
|
149
|
15765
|
|
15766
|
|
15767
|
|
15768
|
|
15769
|
|
15770
|
|
15771
|
|
15772
|
|
15773
|
|
15774
|
|
15775
|
|
15776
|
|
15777
|
|
15778
|
|
15779
|
|
15780
|
203
|
15781
|
207
|
15782
|
263
|
15783
|
267
|
15784
|
173
|
15785 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
|
|
15786
|
|
15787
|
|
15788
|
|
15789
|
|
15790
|
|
15791
|
|
15792
|
594
|
15793
|
380
|
15794
|
420
|
15795 if test "$with_prefix" = "yes"; then
|
|
15796 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15797 Defining PREFIX_USER_DEFINED
|
|
15798 EOF
|
|
15799 cat >> confdefs.h <<\EOF
|
|
15800 #define PREFIX_USER_DEFINED 1
|
|
15801 EOF
|
|
15802 }
|
|
15803
|
|
15804 fi
|
380
|
15805
|
267
|
15806 if test "$with_site_lisp" = "no"; then
|
|
15807 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15808 Defining INHIBIT_SITE_LISP
|
|
15809 EOF
|
|
15810 cat >> confdefs.h <<\EOF
|
|
15811 #define INHIBIT_SITE_LISP 1
|
|
15812 EOF
|
|
15813 }
|
|
15814
|
|
15815 fi
|
388
|
15816 if test "$with_site_modules" = "no"; then
|
|
15817 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15818 Defining INHIBIT_SITE_MODULES
|
|
15819 EOF
|
|
15820 cat >> confdefs.h <<\EOF
|
|
15821 #define INHIBIT_SITE_MODULES 1
|
|
15822 EOF
|
|
15823 }
|
|
15824
|
|
15825 fi
|
155
|
15826
|
207
|
15827
|
|
15828 T=""
|
|
15829 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15830 ac_configure_args="$T"
|
|
15831
|
149
|
15832 { test "$extra_verbose" = "yes" && cat << EOF
|
424
|
15833 Defining EMACS_CONFIGURATION = "$configuration"
|
149
|
15834 EOF
|
|
15835 cat >> confdefs.h <<EOF
|
424
|
15836 #define EMACS_CONFIGURATION "$configuration"
|
149
|
15837 EOF
|
|
15838 }
|
|
15839
|
|
15840 { test "$extra_verbose" = "yes" && cat << EOF
|
207
|
15841 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
|
173
|
15842 EOF
|
|
15843 cat >> confdefs.h <<EOF
|
207
|
15844 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
|
173
|
15845 EOF
|
|
15846 }
|
|
15847
|
149
|
15848
|
|
15849
|
|
15850 null_string=""
|
|
15851 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15852 Defining LD_SWITCH_X_SITE = $null_string
|
|
15853 EOF
|
|
15854 cat >> confdefs.h <<EOF
|
|
15855 #define LD_SWITCH_X_SITE $null_string
|
|
15856 EOF
|
|
15857 }
|
|
15858
|
|
15859 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15860 Defining LD_SWITCH_X_SITE_AUX = $null_string
|
|
15861 EOF
|
|
15862 cat >> confdefs.h <<EOF
|
|
15863 #define LD_SWITCH_X_SITE_AUX $null_string
|
|
15864 EOF
|
|
15865 }
|
|
15866
|
|
15867 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15868 Defining C_SWITCH_X_SITE = $null_string
|
|
15869 EOF
|
|
15870 cat >> confdefs.h <<EOF
|
|
15871 #define C_SWITCH_X_SITE $null_string
|
|
15872 EOF
|
|
15873 }
|
|
15874
|
|
15875 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15876 Defining LD_SWITCH_SITE = $null_string
|
|
15877 EOF
|
|
15878 cat >> confdefs.h <<EOF
|
|
15879 #define LD_SWITCH_SITE $null_string
|
|
15880 EOF
|
|
15881 }
|
|
15882
|
|
15883 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15884 Defining C_SWITCH_SITE = $null_string
|
|
15885 EOF
|
|
15886 cat >> confdefs.h <<EOF
|
|
15887 #define C_SWITCH_SITE $null_string
|
|
15888 EOF
|
|
15889 }
|
|
15890
|
|
15891
|
|
15892
|
181
|
15893 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15894 Defining GNU_MALLOC
|
|
15895 EOF
|
|
15896 cat >> confdefs.h <<\EOF
|
|
15897 #define GNU_MALLOC 1
|
|
15898 EOF
|
|
15899 }
|
|
15900
|
181
|
15901 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15902 Defining USE_SYSTEM_MALLOC
|
|
15903 EOF
|
|
15904 cat >> confdefs.h <<\EOF
|
|
15905 #define USE_SYSTEM_MALLOC 1
|
|
15906 EOF
|
|
15907 }
|
|
15908
|
181
|
15909 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
15910 Defining USE_DEBUG_MALLOC
|
|
15911 EOF
|
|
15912 cat >> confdefs.h <<\EOF
|
|
15913 #define USE_DEBUG_MALLOC 1
|
|
15914 EOF
|
|
15915 }
|
|
15916
|
181
|
15917 { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
15918 Defining USE_SYSTEM_MALLOC
|
|
15919 EOF
|
|
15920 cat >> confdefs.h <<\EOF
|
|
15921 #define USE_SYSTEM_MALLOC 1
|
|
15922 EOF
|
|
15923 }
|
|
15924
|
149
|
15925 fi
|
169
|
15926 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15927 Defining USE_GCC
|
|
15928 EOF
|
|
15929 cat >> confdefs.h <<\EOF
|
|
15930 #define USE_GCC 1
|
|
15931 EOF
|
|
15932 }
|
|
15933
|
|
15934 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15935 Defining EXTERNAL_WIDGET
|
|
15936 EOF
|
|
15937 cat >> confdefs.h <<\EOF
|
|
15938 #define EXTERNAL_WIDGET 1
|
|
15939 EOF
|
|
15940 }
|
|
15941
|
925
|
15942 test "$use_kkcc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15943 Defining USE_KKCC
|
|
15944 EOF
|
|
15945 cat >> confdefs.h <<\EOF
|
|
15946 #define USE_KKCC 1
|
|
15947 EOF
|
|
15948 }
|
|
15949
|
442
|
15950 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15951 Defining QUICK_BUILD
|
|
15952 EOF
|
|
15953 cat >> confdefs.h <<\EOF
|
|
15954 #define QUICK_BUILD 1
|
149
|
15955 EOF
|
|
15956 }
|
|
15957
|
380
|
15958 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15959 Defining PURIFY
|
|
15960 EOF
|
|
15961 cat >> confdefs.h <<\EOF
|
|
15962 #define PURIFY 1
|
|
15963 EOF
|
|
15964 }
|
|
15965
|
149
|
15966 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15967 Defining QUANTIFY
|
|
15968 EOF
|
|
15969 cat >> confdefs.h <<\EOF
|
|
15970 #define QUANTIFY 1
|
|
15971 EOF
|
|
15972 }
|
|
15973
|
|
15974 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15975 Defining MAIL_USE_POP
|
|
15976 EOF
|
|
15977 cat >> confdefs.h <<\EOF
|
|
15978 #define MAIL_USE_POP 1
|
|
15979 EOF
|
|
15980 }
|
|
15981
|
|
15982 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15983 Defining KERBEROS
|
|
15984 EOF
|
|
15985 cat >> confdefs.h <<\EOF
|
|
15986 #define KERBEROS 1
|
|
15987 EOF
|
|
15988 }
|
|
15989
|
|
15990 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15991 Defining HESIOD
|
|
15992 EOF
|
|
15993 cat >> confdefs.h <<\EOF
|
|
15994 #define HESIOD 1
|
|
15995 EOF
|
|
15996 }
|
|
15997
|
272
|
15998 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15999 Defining USE_UNION_TYPE
|
|
16000 EOF
|
|
16001 cat >> confdefs.h <<\EOF
|
|
16002 #define USE_UNION_TYPE 1
|
149
|
16003 EOF
|
0
|
16004 }
|
70
|
16005
|
424
|
16006 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16007 Defining PDUMP
|
|
16008 EOF
|
|
16009 cat >> confdefs.h <<\EOF
|
|
16010 #define PDUMP 1
|
|
16011 EOF
|
|
16012 }
|
|
16013
|
724
|
16014 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
16015 Defining IPV6_CANONICALIZE
|
|
16016 EOF
|
|
16017 cat >> confdefs.h <<\EOF
|
|
16018 #define IPV6_CANONICALIZE 1
|
|
16019 EOF
|
|
16020 }
|
|
16021
|
70
|
16022
|
0
|
16023
|
118
|
16024 (
|
149
|
16025 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
|
|
16026 else
|
|
16027 echo "uname -a: `uname -a`"
|
|
16028 fi
|
|
16029 echo ""
|
|
16030 echo "$0 $quoted_arguments"
|
261
|
16031 ) > Installation
|
|
16032
|
414
|
16033 if test ! -z ${emacs_beta_version} ; then
|
|
16034 if test -z "${emacs_is_beta}" ; then
|
|
16035 xemacs_betaname=".${emacs_beta_version}"
|
|
16036 else
|
|
16037 xemacs_betaname="-b${emacs_beta_version}"
|
|
16038 fi
|
|
16039 else
|
430
|
16040 xemacs_betaname=""
|
414
|
16041 fi
|
149
|
16042
|
116
|
16043 (
|
0
|
16044 echo "
|
|
16045
|
975
|
16046 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" $xemacs_extra_name configured for \`$canonical'.
|
442
|
16047 "
|
|
16048 echo "
|
|
16049 Compilation / Installation:"
|
|
16050 echo " Source code location: $srcdir"
|
|
16051 echo " Installation prefix: $prefix"
|
70
|
16052 if test -n "$site_includes"; then
|
442
|
16053 echo " Additional header files: $site_includes"
|
149
|
16054 fi
|
|
16055 if test -n "$site_libraries"; then
|
442
|
16056 echo " Additional libraries: $site_libraries"
|
149
|
16057 fi
|
209
|
16058 if test -n "$site_prefixes"; then
|
442
|
16059 echo " Additional prefixes: $site_prefixes"
|
209
|
16060 fi
|
149
|
16061 if test -n "$runpath"; then
|
442
|
16062 echo " Runtime library search path: $runpath"
|
|
16063 fi
|
|
16064
|
|
16065 if test -n "$opsysfile"
|
|
16066 then echo " Operating system description file: \`$opsysfile'"
|
|
16067 else echo " Not using any operating system description file"
|
|
16068 fi
|
|
16069 if test -n "$machfile"
|
|
16070 then echo " Machine description file: \`$machfile'"
|
|
16071 else echo " Not using any machine description file"
|
|
16072 fi
|
|
16073
|
1111
|
16074 echo " Compiler: $XEMACS_CC $CFLAGS"
|
442
|
16075 echo " Relocating allocator for buffers: $rel_alloc"
|
|
16076 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
|
708
|
16077 case "$ld_switch_site" in
|
|
16078 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
|
|
16079 - Consider configuring with --pdump." ;;
|
|
16080 esac
|
442
|
16081
|
|
16082 echo "
|
|
16083 Window System:"
|
|
16084 if test "$with_msw" = "yes"; then
|
|
16085 echo " Compiling in support for the Microsoft window system."
|
|
16086 fi
|
|
16087 if test "$with_x11" = "yes"; then
|
|
16088 echo " Compiling in support for the X window system:"
|
|
16089 echo " - X Windows headers location: $x_includes"
|
|
16090 echo " - X Windows libraries location: $x_libraries"
|
|
16091 if test "$with_xauth" != yes; then
|
|
16092 echo " - Xau (X authority) not available."
|
|
16093 fi
|
|
16094 if test "$with_xmu" != yes; then
|
|
16095 echo " - Xmu library not available; substituting equivalent routines."
|
|
16096 fi
|
|
16097 if test "$with_wmcommand" != no; then
|
|
16098 echo " - Handling WM_COMMAND properly."
|
|
16099 fi
|
|
16100 fi
|
|
16101 if test "$need_athena" = "yes"; then
|
|
16102 echo " Compiling in support for the Athena widget set:"
|
|
16103 echo " - Athena headers location: $athena_h_path"
|
|
16104 echo " - Athena library to link: $athena_lib"
|
|
16105 fi
|
|
16106 case "$with_menubars" in
|
462
|
16107 gtk ) echo " Using GTK menubars." ;;
|
442
|
16108 lucid ) echo " Using Lucid menubars." ;;
|
|
16109 motif ) echo " Using Motif menubars."
|
|
16110 echo " *WARNING* The Motif menubar implementation is currently buggy."
|
|
16111 echo " We recommend using the Lucid menubar instead."
|
|
16112 echo " Re-run configure with --with-menubars='lucid'." ;;
|
|
16113 msw ) echo " Using MS-Windows menubars." ;;
|
|
16114 esac
|
|
16115 case "$with_scrollbars" in
|
462
|
16116 gtk ) echo " Using GTK scrollbars." ;;
|
442
|
16117 lucid ) echo " Using Lucid scrollbars." ;;
|
|
16118 motif ) echo " Using Motif scrollbars." ;;
|
|
16119 athena ) echo " Using Athena scrollbars." ;;
|
|
16120 msw ) echo " Using MS-Windows scrollbars." ;;
|
|
16121 esac
|
|
16122 case "$with_dialogs" in
|
462
|
16123 gtk ) echo " Using GTK dialog boxes." ;;
|
442
|
16124 motif ) echo " Using Motif dialog boxes."
|
|
16125 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
|
|
16126 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
|
|
16127 echo " We recommend using the Athena dialog boxes instead."
|
|
16128 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
|
|
16129 echo " Read the PROBLEMS file for more information."
|
|
16130 fi; fi ;;
|
|
16131 athena ) echo " Using Athena dialog boxes." ;;
|
|
16132 msw ) echo " Using MS-Windows dialog boxes." ;;
|
|
16133 esac
|
|
16134 case "$with_widgets" in
|
462
|
16135 gtk ) echo " Using GTK native widgets." ;;
|
442
|
16136 motif ) echo " Using Motif native widgets." ;;
|
|
16137 athena ) echo " Using Athena native widgets." ;;
|
|
16138 msw ) echo " Using MS-Windows native widgets." ;;
|
|
16139 esac
|
|
16140 if test "$with_dragndrop" = yes; then
|
|
16141 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
|
|
16142 echo " - Drag'n'Drop prototype: $dragndrop_proto."
|
|
16143 fi
|
|
16144
|
|
16145 echo "
|
|
16146 TTY:"
|
|
16147 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
16148 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
|
|
16149
|
|
16150 echo "
|
|
16151 Images:"
|
|
16152 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
|
153
|
16153 if test "$with_xpm" = yes; then
|
442
|
16154 echo " Compiling in support for XPM images."
|
175
|
16155 elif test "$with_x11" = yes; then
|
442
|
16156 echo " WARNING: -----------------------------------------------------------"
|
|
16157 echo " WARNING: Compiling without XPM image support."
|
373
|
16158 if test "$xpm_problem" != ""; then
|
|
16159 echo " Reason: $xpm_problem"
|
|
16160 fi
|
|
16161 echo " WARNING: You should strongly consider installing XPM."
|
151
|
16162 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
|
373
|
16163 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
442
|
16164 echo " WARNING: -----------------------------------------------------------"
|
371
|
16165 fi
|
373
|
16166 if test "$with_png" = yes; then
|
442
|
16167 echo " Compiling in support for PNG images."
|
373
|
16168 elif test "$window_system" != "none"; then
|
442
|
16169 echo " WARNING: -----------------------------------------------------------"
|
373
|
16170 echo " WARNING: Compiling without PNG image support."
|
|
16171 if test "$png_problem" != ""; then
|
|
16172 echo " Reason: $png_problem"
|
|
16173 fi
|
|
16174 echo " WARNING: You should strongly consider installing the PNG libraries."
|
|
16175 echo " WARNING: Otherwise certain images and glyphs may not display."
|
|
16176 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
442
|
16177 echo " WARNING: -----------------------------------------------------------"
|
|
16178 fi
|
|
16179 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
|
|
16180 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
|
310
|
16181 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
|
432
|
16182
|
442
|
16183 echo "
|
|
16184 Sound:"
|
|
16185 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
|
|
16186 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
|
|
16187 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
|
|
16188 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
|
|
16189
|
|
16190 echo "
|
|
16191 Databases:"
|
|
16192 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
|
116
|
16193 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
426
|
16194 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
|
442
|
16195 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
|
|
16196 if test "$with_postgresql" = yes; then
|
|
16197 echo " Compiling in support for PostgreSQL."
|
|
16198 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
|
|
16199 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
|
|
16200 fi
|
|
16201
|
|
16202 echo "
|
|
16203 Internationalization:"
|
|
16204 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
|
|
16205 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
|
|
16206 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
|
|
16207 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
|
|
16208 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
|
|
16209 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
120
|
16210 if test "$with_wnn" = yes; then
|
|
16211 echo " Compiling in support for the WNN input method on Mule."
|
442
|
16212 test "$with_wnn6" = yes && echo " - Using WNN version 6."
|
|
16213 fi
|
|
16214
|
|
16215 echo "
|
|
16216 Mail:"
|
|
16217 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
|
|
16218 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
|
|
16219 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
|
|
16220 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
|
|
16221
|
|
16222 echo "
|
|
16223 Other Features:"
|
708
|
16224 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
|
116
|
16225 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
149
|
16226 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
|
442
|
16227 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
16228 test "$with_dnet" = yes && echo " Compiling in support for DNET."
|
|
16229 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
|
1202
|
16230 if test "$use_union_type" = yes ; then
|
|
16231 echo " Using the union type for Lisp_Objects."
|
|
16232 echo " WARNING: ---------------------------------------------------------"
|
|
16233 echo " WARNING: This tends to trigger compiler bugs, especially when"
|
|
16234 echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have"
|
|
16235 echo " WARNING: been seen with various versions of GCC, and recently"
|
|
16236 echo " WARNING: with Visual C++ as well."
|
|
16237 echo " WARNING: ---------------------------------------------------------"
|
|
16238 fi
|
|
16239 test "$use_union_type" = yes && echo " WARNING: Use of the union type may cause crashes due to compiler bugs."
|
925
|
16240 test "$use_kkcc" = yes && echo " Using the new GC algorithms."
|
442
|
16241 test "$pdump" = yes && echo " Using the new portable dumper."
|
|
16242 test "$debug" = yes && echo " Compiling in support for extra debugging code."
|
|
16243 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
|
800
|
16244 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
|
16245 != "no no no no no no no no no"; then
|
151
|
16246 echo " WARNING: ---------------------------------------------------------"
|
|
16247 echo " WARNING: Compiling in support for runtime error checking."
|
|
16248 echo " WARNING: XEmacs will run noticeably more slowly as a result."
|
|
16249 echo " WARNING: Error checking is on by default for XEmacs beta releases."
|
|
16250 echo " WARNING: ---------------------------------------------------------"
|
|
16251 fi
|
118
|
16252 echo ""
|
116
|
16253 ) | tee -a Installation
|
118
|
16254 echo ""
|
|
16255
|
70
|
16256
|
0
|
16257 # Remove any trailing slashes in these variables.
|
149
|
16258 test -n "$prefix" &&
|
159
|
16259 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
16260 test -n "$exec_prefix" &&
|
159
|
16261 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
16262
|
|
16263
|
272
|
16264 for file in $internal_makefile_list; do
|
1111
|
16265 case $file in
|
|
16266 src/Makefile.in ) file="src/Makefile.in:src/Makefile.in.in:src/depend" ;;
|
|
16267 modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;;
|
|
16268 esac
|
430
|
16269 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
|
272
|
16270 done
|
1633
|
16271 ac_output_files="$ac_output_files src/paths.h src/xemacs.def.in lib-src/config.values"
|
430
|
16272 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
|
16273
|
149
|
16274 trap '' 1 2 15
|
|
16275
|
|
16276 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
16277
|
|
16278 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
16279 # Let make expand exec_prefix.
|
|
16280 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
0
|
16281
|
|
16282 # Any assignment to VPATH causes Sun make to only execute
|
|
16283 # the first set of double-colon rules, so remove it if not needed.
|
|
16284 # If there is a colon in the path, we need to keep it.
|
|
16285 if test "x$srcdir" = x.; then
|
|
16286 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
16287 fi
|
|
16288
|
149
|
16289 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
16290
|
|
16291 DEFS=-DHAVE_CONFIG_H
|
|
16292
|
|
16293 # Without the "./", some shells look in PATH for config.status.
|
|
16294 : ${CONFIG_STATUS=./config.status}
|
|
16295
|
|
16296 echo creating $CONFIG_STATUS
|
|
16297 rm -f $CONFIG_STATUS
|
|
16298 cat > $CONFIG_STATUS <<EOF
|
|
16299 #! /bin/sh
|
0
|
16300 # Generated automatically by configure.
|
|
16301 # Run this file to recreate the current configuration.
|
|
16302 # This directory was configured as follows,
|
|
16303 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
16304 #
|
149
|
16305 # $0 $ac_configure_args
|
|
16306 #
|
|
16307 # Compiler output produced by configure, useful for debugging
|
|
16308 # configure, is in ./config.log if it exists.
|
|
16309
|
|
16310 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
0
|
16311 for ac_option
|
|
16312 do
|
|
16313 case "\$ac_option" in
|
|
16314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
149
|
16315 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
16316 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
0
|
16317 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
420
|
16318 echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
0
|
16319 exit 0 ;;
|
|
16320 -help | --help | --hel | --he | --h)
|
|
16321 echo "\$ac_cs_usage"; exit 0 ;;
|
|
16322 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
16323 esac
|
|
16324 done
|
|
16325
|
|
16326 ac_given_srcdir=$srcdir
|
149
|
16327 ac_given_INSTALL="$INSTALL"
|
|
16328
|
276
|
16329 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
149
|
16330 EOF
|
|
16331 cat >> $CONFIG_STATUS <<EOF
|
|
16332
|
|
16333 # Protect against being on the right side of a sed subst in config.status.
|
|
16334 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
16335 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
0
|
16336 $ac_vpsub
|
|
16337 $extrasub
|
420
|
16338 s%@SHELL@%$SHELL%g
|
149
|
16339 s%@CFLAGS@%$CFLAGS%g
|
|
16340 s%@CPPFLAGS@%$CPPFLAGS%g
|
|
16341 s%@CXXFLAGS@%$CXXFLAGS%g
|
420
|
16342 s%@FFLAGS@%$FFLAGS%g
|
149
|
16343 s%@DEFS@%$DEFS%g
|
|
16344 s%@LDFLAGS@%$LDFLAGS%g
|
|
16345 s%@LIBS@%$LIBS%g
|
|
16346 s%@exec_prefix@%$exec_prefix%g
|
|
16347 s%@prefix@%$prefix%g
|
|
16348 s%@program_transform_name@%$program_transform_name%g
|
|
16349 s%@bindir@%$bindir%g
|
|
16350 s%@sbindir@%$sbindir%g
|
|
16351 s%@libexecdir@%$libexecdir%g
|
|
16352 s%@datadir@%$datadir%g
|
|
16353 s%@sysconfdir@%$sysconfdir%g
|
|
16354 s%@sharedstatedir@%$sharedstatedir%g
|
|
16355 s%@localstatedir@%$localstatedir%g
|
|
16356 s%@libdir@%$libdir%g
|
|
16357 s%@includedir@%$includedir%g
|
|
16358 s%@oldincludedir@%$oldincludedir%g
|
|
16359 s%@infodir@%$infodir%g
|
|
16360 s%@mandir@%$mandir%g
|
0
|
16361 s%@LN_S@%$LN_S%g
|
181
|
16362 s%@blddir@%$blddir%g
|
0
|
16363 s%@CC@%$CC%g
|
|
16364 s%@CPP@%$CPP%g
|
207
|
16365 s%@start_flags@%$start_flags%g
|
163
|
16366 s%@ld_switch_shared@%$ld_switch_shared%g
|
|
16367 s%@start_files@%$start_files%g
|
|
16368 s%@ld@%$ld%g
|
|
16369 s%@lib_gcc@%$lib_gcc%g
|
0
|
16370 s%@RANLIB@%$RANLIB%g
|
|
16371 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
420
|
16372 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
0
|
16373 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
16374 s%@YACC@%$YACC%g
|
|
16375 s%@SET_MAKE@%$SET_MAKE%g
|
462
|
16376 s%@GTK_CONFIG@%$GTK_CONFIG%g
|
149
|
16377 s%@X_CFLAGS@%$X_CFLAGS%g
|
|
16378 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
|
16379 s%@X_LIBS@%$X_LIBS%g
|
|
16380 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
276
|
16381 s%@install_pp@%$install_pp%g
|
159
|
16382 s%@libs_xauth@%$libs_xauth%g
|
274
|
16383 s%@dnd_objs@%$dnd_objs%g
|
1651
|
16384 s%@LIBSTDCPP@%$LIBSTDCPP%g
|
265
|
16385 s%@dll_ld@%$dll_ld%g
|
|
16386 s%@dll_cflags@%$dll_cflags%g
|
388
|
16387 s%@dll_ldflags@%$dll_ldflags%g
|
|
16388 s%@dll_post@%$dll_post%g
|
|
16389 s%@dll_ldo@%$dll_ldo%g
|
|
16390 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
|
997
|
16391 s%@with_modules@%$with_modules%g
|
|
16392 s%@MOD_CC@%$MOD_CC%g
|
|
16393 s%@MODARCHDIR@%$MODARCHDIR%g
|
|
16394 s%@MAKE_DOCFILE@%$MAKE_DOCFILE%g
|
|
16395 s%@MODCFLAGS@%$MODCFLAGS%g
|
|
16396 s%@INSTALLPATH@%$INSTALLPATH%g
|
|
16397 s%@MOD_INSTALL_PROGRAM@%$MOD_INSTALL_PROGRAM%g
|
|
16398 s%@OBJECT_TO_BUILD@%$OBJECT_TO_BUILD%g
|
|
16399 s%@ldap_libs@%$ldap_libs%g
|
|
16400 s%@postgresql_libs@%$postgresql_libs%g
|
1470
|
16401 s%@lwlib_objs@%$lwlib_objs%g
|
|
16402 s%@ALLOCA@%$ALLOCA%g
|
|
16403 s%@have_esd_config@%$have_esd_config%g
|
|
16404 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
|
167
|
16405 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
|
149
|
16406 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
|
|
16407 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
|
280
|
16408 s%@PROGNAME@%$PROGNAME%g
|
0
|
16409 s%@version@%$version%g
|
|
16410 s%@configuration@%$configuration%g
|
|
16411 s%@canonical@%$canonical%g
|
422
|
16412 s%@inststaticdir@%$inststaticdir%g
|
|
16413 s%@instvardir@%$instvardir%g
|
0
|
16414 s%@srcdir@%$srcdir%g
|
|
16415 s%@statedir@%$statedir%g
|
452
|
16416 s%@extra_includes@%$extra_includes%g
|
420
|
16417 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
|
278
|
16418 s%@PREFIX@%$PREFIX%g
|
420
|
16419 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
|
278
|
16420 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
|
274
|
16421 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
|
|
16422 s%@INFODIR@%$INFODIR%g
|
203
|
16423 s%@infopath@%$infopath%g
|
274
|
16424 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
|
|
16425 s%@INFOPATH@%$INFOPATH%g
|
269
|
16426 s%@package_path@%$package_path%g
|
274
|
16427 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
|
|
16428 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
|
0
|
16429 s%@lispdir@%$lispdir%g
|
274
|
16430 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
|
|
16431 s%@LISPDIR@%$LISPDIR%g
|
388
|
16432 s%@moduledir@%$moduledir%g
|
|
16433 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
|
|
16434 s%@MODULEDIR@%$MODULEDIR%g
|
|
16435 s%@sitelispdir@%$sitelispdir%g
|
|
16436 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
|
|
16437 s%@SITELISPDIR@%$SITELISPDIR%g
|
|
16438 s%@sitemoduledir@%$sitemoduledir%g
|
|
16439 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
|
|
16440 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
|
0
|
16441 s%@etcdir@%$etcdir%g
|
274
|
16442 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
|
|
16443 s%@ETCDIR@%$ETCDIR%g
|
420
|
16444 s%@docdir@%$docdir%g
|
|
16445 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
|
|
16446 s%@DOCDIR@%$DOCDIR%g
|
0
|
16447 s%@archlibdir@%$archlibdir%g
|
274
|
16448 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
|
|
16449 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
|
0
|
16450 s%@bitmapdir@%$bitmapdir%g
|
149
|
16451 s%@extra_objs@%$extra_objs%g
|
0
|
16452 s%@machfile@%$machfile%g
|
|
16453 s%@opsysfile@%$opsysfile%g
|
149
|
16454 s%@c_switch_general@%$c_switch_general%g
|
|
16455 s%@c_switch_window_system@%$c_switch_window_system%g
|
|
16456 s%@c_switch_all@%$c_switch_all%g
|
|
16457 s%@ld_switch_general@%$ld_switch_general%g
|
|
16458 s%@ld_switch_window_system@%$ld_switch_window_system%g
|
|
16459 s%@ld_switch_all@%$ld_switch_all%g
|
|
16460 s%@ld_libs_general@%$ld_libs_general%g
|
|
16461 s%@ld_libs_window_system@%$ld_libs_window_system%g
|
|
16462 s%@ld_libs_all@%$ld_libs_all%g
|
173
|
16463 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
|
149
|
16464 s%@native_sound_lib@%$native_sound_lib%g
|
|
16465 s%@sound_cflags@%$sound_cflags%g
|
0
|
16466 s%@dynodump_arch@%$dynodump_arch%g
|
380
|
16467 s%@XEMACS_CC@%$XEMACS_CC%g
|
0
|
16468 s%@internal_makefile_list@%$internal_makefile_list%g
|
149
|
16469
|
|
16470 CEOF
|
|
16471 EOF
|
|
16472
|
|
16473 cat >> $CONFIG_STATUS <<\EOF
|
|
16474
|
|
16475 # Split the substitutions into bite-sized pieces for seds with
|
|
16476 # small command number limits, like on Digital OSF/1 and HP-UX.
|
|
16477 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
16478 ac_file=1 # Number of current file.
|
|
16479 ac_beg=1 # First line for current file.
|
|
16480 ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
16481 ac_more_lines=:
|
|
16482 ac_sed_cmds=""
|
|
16483 while $ac_more_lines; do
|
|
16484 if test $ac_beg -gt 1; then
|
|
16485 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
16486 else
|
|
16487 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
16488 fi
|
|
16489 if test ! -s conftest.s$ac_file; then
|
|
16490 ac_more_lines=false
|
|
16491 rm -f conftest.s$ac_file
|
|
16492 else
|
|
16493 if test -z "$ac_sed_cmds"; then
|
|
16494 ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
16495 else
|
|
16496 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
16497 fi
|
|
16498 ac_file=`expr $ac_file + 1`
|
|
16499 ac_beg=$ac_end
|
|
16500 ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
16501 fi
|
|
16502 done
|
|
16503 if test -z "$ac_sed_cmds"; then
|
|
16504 ac_sed_cmds=cat
|
|
16505 fi
|
|
16506 EOF
|
|
16507
|
|
16508 cat >> $CONFIG_STATUS <<EOF
|
|
16509
|
272
|
16510 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
|
149
|
16511 EOF
|
|
16512 cat >> $CONFIG_STATUS <<\EOF
|
|
16513 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
16514 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
16515 case "$ac_file" in
|
|
16516 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
16517 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
16518 *) ac_file_in="${ac_file}.in" ;;
|
|
16519 esac
|
|
16520
|
|
16521 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
16522
|
|
16523 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
16524 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
16525 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
16526 # The file is in a subdirectory.
|
|
16527 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
16528 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
16529 # A "../" for each directory in $ac_dir_suffix.
|
|
16530 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
16531 else
|
|
16532 ac_dir_suffix= ac_dots=
|
|
16533 fi
|
|
16534
|
|
16535 case "$ac_given_srcdir" in
|
|
16536 .) srcdir=.
|
|
16537 if test -z "$ac_dots"; then top_srcdir=.
|
|
16538 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
16539 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
16540 *) # Relative path.
|
|
16541 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
16542 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
16543 esac
|
|
16544
|
|
16545 case "$ac_given_INSTALL" in
|
|
16546 [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
16547 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
16548 esac
|
|
16549
|
|
16550 echo creating "$ac_file"
|
|
16551 rm -f "$ac_file"
|
|
16552 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
16553 case "$ac_file" in
|
|
16554 *Makefile*) ac_comsub="1i\\
|
|
16555 # $configure_input" ;;
|
|
16556 *) ac_comsub= ;;
|
|
16557 esac
|
|
16558
|
|
16559 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
16560 sed -e "$ac_comsub
|
|
16561 s%@configure_input@%$configure_input%g
|
|
16562 s%@srcdir@%$srcdir%g
|
0
|
16563 s%@top_srcdir@%$top_srcdir%g
|
149
|
16564 s%@INSTALL@%$INSTALL%g
|
|
16565 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
0
|
16566 fi; done
|
149
|
16567 rm -f conftest.s*
|
|
16568
|
|
16569 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
16570 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
0
|
16571 #
|
|
16572 # ac_d sets the value in "#define NAME VALUE" lines.
|
149
|
16573 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
16574 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
0
|
16575 ac_dC='\3'
|
149
|
16576 ac_dD='%g'
|
0
|
16577 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
149
|
16578 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
16579 ac_uB='\([ ]\)%\1#\2define\3'
|
0
|
16580 ac_uC=' '
|
149
|
16581 ac_uD='\4%g'
|
0
|
16582 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
149
|
16583 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
16584 ac_eB='$%\1#\2define\3'
|
0
|
16585 ac_eC=' '
|
149
|
16586 ac_eD='%g'
|
|
16587
|
|
16588 if test "${CONFIG_HEADERS+set}" != set; then
|
|
16589 EOF
|
|
16590 cat >> $CONFIG_STATUS <<EOF
|
276
|
16591 CONFIG_HEADERS="src/config.h lwlib/config.h"
|
149
|
16592 EOF
|
|
16593 cat >> $CONFIG_STATUS <<\EOF
|
|
16594 fi
|
|
16595 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
16596 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
16597 case "$ac_file" in
|
|
16598 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
16599 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
16600 *) ac_file_in="${ac_file}.in" ;;
|
|
16601 esac
|
|
16602
|
|
16603 echo creating $ac_file
|
|
16604
|
|
16605 rm -f conftest.frag conftest.in conftest.out
|
|
16606 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
16607 cat $ac_file_inputs > conftest.in
|
|
16608
|
|
16609 EOF
|
|
16610
|
|
16611 # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
16612 # the proper values into config.h.in to produce config.h. And first:
|
|
16613 # Protect against being on the right side of a sed subst in config.status.
|
|
16614 # Protect against being in an unquoted here document in config.status.
|
|
16615 rm -f conftest.vals
|
|
16616 cat > conftest.hdr <<\EOF
|
|
16617 s/[\\&%]/\\&/g
|
|
16618 s%[\\$`]%\\&%g
|
|
16619 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
16620 s%ac_d%ac_u%gp
|
|
16621 s%ac_u%ac_e%gp
|
|
16622 EOF
|
|
16623 sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
16624 rm -f conftest.hdr
|
|
16625
|
|
16626 # This sed command replaces #undef with comments. This is necessary, for
|
|
16627 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
16628 # on some systems where configure will not decide to define it.
|
|
16629 cat >> conftest.vals <<\EOF
|
|
16630 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
16631 EOF
|
|
16632
|
|
16633 # Break up conftest.vals because some shells have a limit on
|
|
16634 # the size of here documents, and old seds have small limits too.
|
|
16635
|
|
16636 rm -f conftest.tail
|
0
|
16637 while :
|
|
16638 do
|
149
|
16639 ac_lines=`grep -c . conftest.vals`
|
|
16640 # grep -c gives empty output for an empty file on some AIX systems.
|
0
|
16641 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
149
|
16642 # Write a limited-size here document to conftest.frag.
|
|
16643 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
16644 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
16645 echo 'CEOF
|
|
16646 sed -f conftest.frag conftest.in > conftest.out
|
|
16647 rm -f conftest.in
|
|
16648 mv conftest.out conftest.in
|
|
16649 ' >> $CONFIG_STATUS
|
|
16650 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
16651 rm -f conftest.vals
|
|
16652 mv conftest.tail conftest.vals
|
0
|
16653 done
|
149
|
16654 rm -f conftest.vals
|
|
16655
|
|
16656 cat >> $CONFIG_STATUS <<\EOF
|
|
16657 rm -f conftest.frag conftest.h
|
0
|
16658 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
149
|
16659 cat conftest.in >> conftest.h
|
|
16660 rm -f conftest.in
|
0
|
16661 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
16662 echo "$ac_file is unchanged"
|
|
16663 rm -f conftest.h
|
|
16664 else
|
149
|
16665 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
16666 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
16667 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
16668 # The file is in a subdirectory.
|
|
16669 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
16670 fi
|
0
|
16671 rm -f $ac_file
|
|
16672 mv conftest.h $ac_file
|
|
16673 fi
|
|
16674 fi; done
|
149
|
16675
|
|
16676 EOF
|
|
16677 cat >> $CONFIG_STATUS <<EOF
|
|
16678 CPP="$CPP"
|
|
16679 top_srcdir="$srcdir"
|
|
16680 MAKE_SUBDIR="$MAKE_SUBDIR"
|
|
16681
|
|
16682 EOF
|
|
16683 cat >> $CONFIG_STATUS <<\EOF
|
380
|
16684 for dir in . $MAKE_SUBDIR; do
|
151
|
16685 (
|
149
|
16686 cd $dir
|
|
16687 rm -f junk.c
|
163
|
16688 < Makefile.in \
|
165
|
16689 sed -e '/^# Generated/d' \
|
163
|
16690 -e 's%/\*\*/#.*%%' \
|
165
|
16691 -e 's/^ *# */#/' \
|
163
|
16692 -e '/^##/d' \
|
|
16693 -e '/^#/ {
|
|
16694 p
|
|
16695 d
|
380
|
16696 }' \
|
|
16697 -e '/./ {
|
163
|
16698 s/\([\"]\)/\\\1/g
|
|
16699 s/^/"/
|
|
16700 s/$/"/
|
|
16701 }' > junk.c;
|
380
|
16702
|
|
16703
|
|
16704
|
|
16705 echo creating $dir/Makefile
|
|
16706 $CPP -I. -I${top_srcdir}/src junk.c \
|
|
16707 | sed -e 's/^\#.*//' \
|
|
16708 -e 's/^[ ][ ]*$//'\
|
|
16709 -e 's/^ / /' \
|
442
|
16710 -e '/^[ ]*$/d' \
|
|
16711 -e '/^\"/ {
|
380
|
16712 s/\\\([\"]\)/\1/g
|
|
16713 s/^[ ]*\"//
|
|
16714 s/\"[ ]*$//
|
|
16715 }' > Makefile.new
|
149
|
16716 chmod 444 Makefile.new
|
|
16717 mv -f Makefile.new Makefile
|
380
|
16718
|
|
16719 echo creating $dir/GNUmakefile
|
|
16720 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
|
|
16721 | sed -e 's/^\#.*//' \
|
|
16722 -e 's/^[ ][ ]*$//'\
|
|
16723 -e 's/^ / /' \
|
442
|
16724 -e '/^[ ]*$/d' \
|
|
16725 -e '/^\"/ {
|
380
|
16726 s/\\\([\"]\)/\1/g
|
|
16727 s/^[ ]*\"//
|
|
16728 s/\"[ ]*$//
|
|
16729 }' > Makefile.new
|
|
16730 chmod 444 Makefile.new
|
|
16731 mv -f Makefile.new GNUmakefile
|
|
16732
|
1633
|
16733 if test -e "xemacs.def.in"; then
|
|
16734 cp -f xemacs.def.in junk.c
|
|
16735 echo creating $dir/xemacs.def
|
|
16736 $CPP -I. -I${top_srcdir}/src junk.c \
|
|
16737 | sed -e 's/^\#.*//' \
|
|
16738 -e 's/^[ ][ ]*$//'\
|
|
16739 -e 's/^ / /' \
|
|
16740 -e '/^[ ]*$/d' \
|
|
16741 -e '/^\"/ {
|
|
16742 s/\\\([\"]\)/\1/g
|
|
16743 s/^[ ]*\"//
|
|
16744 s/\"[ ]*$//
|
|
16745 }' > Makefile.new
|
|
16746 chmod 444 Makefile.new
|
|
16747 mv -f Makefile.new xemacs.def
|
|
16748
|
|
16749 fi
|
380
|
16750 rm -f junk.c
|
|
16751 )
|
149
|
16752 done
|
0
|
16753
|
181
|
16754 sed < config.status >> lib-src/config.values \
|
|
16755 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
|
|
16756 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
|
|
16757 -e 's/^\([^ ]*\) $/\1 ""/' \
|
|
16758 -e 's/ 1$/ t/'
|
175
|
16759
|
|
16760
|
0
|
16761 exit 0
|
|
16762 EOF
|
149
|
16763 chmod +x $CONFIG_STATUS
|
|
16764 rm -fr confdefs* $ac_clean_files
|
|
16765 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|