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.
|
771
|
9 #### Copyright (C) 1995, 1996, 2002 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
|
149
|
65 exec_prefix=NONE
|
|
66 host=NONE
|
|
67 no_create=
|
|
68 nonopt=NONE
|
|
69 no_recursion=
|
|
70 prefix=NONE
|
|
71 program_prefix=NONE
|
|
72 program_suffix=NONE
|
|
73 program_transform_name=s,x,x,
|
|
74 silent=
|
|
75 site=
|
|
76 srcdir=
|
|
77 target=NONE
|
|
78 verbose=
|
|
79 x_includes=NONE
|
|
80 x_libraries=NONE
|
153
|
81
|
149
|
82 subdirs=
|
|
83 MFLAGS= MAKEFLAGS=
|
442
|
84 SHELL=${CONFIG_SHELL-/bin/sh}
|
149
|
85 ac_max_here_lines=12
|
|
86
|
|
87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
88
|
|
89 # File descriptor usage:
|
|
90 # 0 standard input
|
|
91 # 1 file creation
|
|
92 # 2 errors and warnings
|
|
93 # 3 some systems may open it to /dev/tty
|
|
94 # 4 used on the Kubota Titan
|
|
95 # 6 checking for... messages and results
|
|
96 # 5 compiler messages saved in config.log
|
|
97 if test "$silent" = yes; then
|
|
98 exec 6>/dev/null
|
|
99 else
|
|
100 exec 6>&1
|
|
101 fi
|
|
102 exec 5>./config.log
|
|
103
|
|
104 echo "\
|
|
105 This file contains any messages produced by compilers while
|
|
106 running configure, to aid debugging if configure makes a mistake.
|
|
107 " 1>&5
|
|
108
|
|
109 # Strip out --no-create and --no-recursion so they do not pile up.
|
|
110 # Also quote any args containing shell metacharacters.
|
|
111 ac_configure_args=
|
|
112 for ac_arg
|
|
113 do
|
|
114 case "$ac_arg" in
|
|
115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
116 | --no-cr | --no-c) ;;
|
|
117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
122 esac
|
|
123 done
|
|
124
|
|
125 # NLS nuisances.
|
|
126 # Only set these to C if already set. These must not be set unconditionally
|
|
127 # because not all systems understand e.g. LANG=C (notably SCO).
|
|
128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|
129 # Non-C LC_CTYPE values break the ctype check.
|
|
130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|
134
|
|
135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
136 rm -rf conftest* confdefs.h
|
|
137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
138 echo > confdefs.h
|
|
139
|
|
140 # A filename unique to this package, relative to the directory that
|
|
141 # configure is in, which we can look for to find out if srcdir is correct.
|
|
142 ac_unique_file=src/lisp.h
|
|
143
|
|
144 # Find the source files, if location was not specified.
|
|
145 if test -z "$srcdir"; then
|
|
146 ac_srcdir_defaulted=yes
|
|
147 # Try the directory containing this script, then its parent.
|
|
148 ac_prog=$0
|
|
149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
151 srcdir=$ac_confdir
|
|
152 if test ! -r $srcdir/$ac_unique_file; then
|
|
153 srcdir=..
|
|
154 fi
|
|
155 else
|
|
156 ac_srcdir_defaulted=no
|
|
157 fi
|
|
158 if test ! -r $srcdir/$ac_unique_file; then
|
|
159 if test "$ac_srcdir_defaulted" = yes; then
|
|
160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
161 else
|
|
162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
163 fi
|
|
164 fi
|
|
165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
166
|
|
167 # Prefer explicitly selected file to automatically selected ones.
|
|
168 if test -z "$CONFIG_SITE"; then
|
|
169 if test "x$prefix" != xNONE; then
|
|
170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|
171 else
|
|
172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
173 fi
|
|
174 fi
|
|
175 for ac_site_file in $CONFIG_SITE; do
|
|
176 if test -r "$ac_site_file"; then
|
|
177 echo "loading site script $ac_site_file"
|
|
178 . "$ac_site_file"
|
|
179 fi
|
|
180 done
|
|
181
|
|
182
|
|
183 ac_ext=c
|
151
|
184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
186 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
|
187 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
190 cross_compiling=no
|
|
191
|
420
|
192 ac_exeext=
|
|
193 ac_objext=o
|
149
|
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|
196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|
197 ac_n= ac_c='
|
|
198 ' ac_t=' '
|
|
199 else
|
|
200 ac_n=-n ac_c= ac_t=
|
|
201 fi
|
|
202 else
|
|
203 ac_n= ac_c='\c' ac_t=
|
|
204 fi
|
|
205
|
|
206
|
0
|
207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
|
|
208
|
149
|
209
|
151
|
210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
|
167
|
211 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
|
212
|
0
|
213 prefix='/usr/local'
|
|
214 exec_prefix='${prefix}'
|
|
215 bindir='${exec_prefix}/bin'
|
|
216 datadir='${prefix}/lib'
|
|
217 statedir='${prefix}/lib'
|
|
218 libdir='${exec_prefix}/lib'
|
|
219 mandir='${prefix}/man/man1'
|
422
|
220 inststaticdir='${PROGNAME}'
|
|
221 instvardir='${PROGNAME}-${version}'
|
|
222 infodir='${datadir}/${instvardir}/info'
|
274
|
223 infopath=''
|
276
|
224 install_pp=''
|
422
|
225 lispdir='${datadir}/${instvardir}/lisp'
|
670
|
226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
|
422
|
227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
|
670
|
228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
|
422
|
229 pkgdir='${datadir}/${instvardir}/lisp'
|
274
|
230 package_path=''
|
422
|
231 etcdir='${datadir}/${instvardir}/etc'
|
670
|
232 archlibdir='${libdir}/${instvardir}/${configuration}'
|
420
|
233 docdir='${archlibdir}'
|
462
|
234 with_netinstall="no"
|
420
|
235 with_prefix='yes'
|
269
|
236 with_site_lisp='no'
|
388
|
237 with_site_modules='yes'
|
1111
|
238 need_modules_common=''
|
0
|
239 with_menubars=''
|
|
240 with_scrollbars=''
|
420
|
241 with_widgets=''
|
0
|
242 with_dialogs=''
|
272
|
243 cpp='' cppflags='' libs='' ldflags=''
|
452
|
244 extra_includes=''
|
0
|
245 dynamic=''
|
|
246 with_x11=''
|
263
|
247 with_msw=''
|
0
|
248 rel_alloc='default'
|
181
|
249 with_system_malloc='default'
|
261
|
250 with_dlmalloc='default'
|
0
|
251 native_sound_lib=''
|
462
|
252 with_gtk='no'
|
|
253 with_gnome='no'
|
153
|
254 use_assertions="yes"
|
|
255 with_toolbars=""
|
157
|
256 with_tty=""
|
153
|
257 use_union_type="no"
|
|
258 with_dnet=""
|
1161
|
259 pdump=""
|
771
|
260 with_dragndrop_default="no"
|
708
|
261 with_ipv6_cname="no"
|
0
|
262
|
149
|
263
|
|
264
|
|
265
|
0
|
266 arguments="$@"
|
|
267
|
120
|
268 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
|
0
|
269 quoted_arguments=
|
|
270 for i in "$@"; do
|
120
|
271 case "$i" in
|
|
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
273 | --no-cr | --no-c) ;;
|
153
|
274 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
275 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
120
|
276 *)
|
159
|
277 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
|
120
|
278 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
|
|
279 esac
|
0
|
280 done
|
|
281
|
70
|
282 while test $# != 0; do
|
0
|
283 arg="$1"; shift
|
149
|
284 case "$arg" in
|
157
|
285 --no-create|--no-recursion) ;;
|
149
|
286 -* )
|
|
287 case "$arg" in
|
0
|
288 -*=*)
|
149
|
289 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
290 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
0
|
291 valomitted=no
|
|
292 ;;
|
149
|
293 -*)
|
|
294 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
243
|
295 val="yes" valomitted=yes
|
0
|
296 ;;
|
|
297 esac
|
|
298
|
274
|
299 optname="$opt"
|
|
300 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
|
|
301
|
243
|
302 case "${valomitted}-${opt}" in yes-without_* )
|
|
303 opt=`echo $opt | sed 's/without/with/'`
|
|
304 valomitted="no" val="no" ;;
|
|
305 esac
|
|
306
|
149
|
307 case "$opt" in
|
|
308
|
380
|
309 with_site_lisp | \
|
420
|
310 with_prefix | \
|
|
311 with_site_modules | \
|
70
|
312 with_x | \
|
|
313 with_x11 | \
|
462
|
314 with_gtk | \
|
|
315 with_gnome | \
|
263
|
316 with_msw | \
|
70
|
317 with_gcc | \
|
|
318 dynamic | \
|
149
|
319 with_ncurses | \
|
|
320 with_dnet | \
|
|
321 with_socks | \
|
282
|
322 with_dragndrop | \
|
70
|
323 with_cde | \
|
|
324 with_offix | \
|
149
|
325 with_gpm | \
|
|
326 with_xpm | \
|
|
327 with_xface | \
|
251
|
328 with_gif | \
|
|
329 with_jpeg | \
|
|
330 with_png | \
|
|
331 with_tiff | \
|
771
|
332 with_zlib | \
|
414
|
333 with_wmcommand | \
|
70
|
334 with_xmu | \
|
380
|
335 with_purify | \
|
149
|
336 with_quantify | \
|
70
|
337 with_toolbars | \
|
|
338 with_tty | \
|
215
|
339 with_xfs | \
|
70
|
340 with_mule | \
|
771
|
341 with_default_eol_detection | \
|
70
|
342 with_canna | \
|
|
343 with_wnn | \
|
98
|
344 with_wnn6 | \
|
149
|
345 with_workshop | \
|
70
|
346 with_sparcworks | \
|
380
|
347 with_tooltalk | \
|
259
|
348 with_ldap | \
|
442
|
349 with_postgresql | \
|
118
|
350 with_pop | \
|
|
351 with_kerberos | \
|
|
352 with_hesiod | \
|
136
|
353 with_dnet | \
|
280
|
354 with_infodock | \
|
724
|
355 with_netinstall | \
|
|
356 with_ipv6_cname | \
|
70
|
357 external_widget | \
|
925
|
358 use_kkcc | \
|
120
|
359 verbose | \
|
|
360 extra_verbose | \
|
380
|
361 usage_tracking | \
|
|
362 use_union_type | \
|
424
|
363 pdump | \
|
70
|
364 debug | \
|
|
365 use_assertions | \
|
|
366 memory_usage_stats | \
|
173
|
367 with_clash_detection | \
|
422
|
368 with_modules | \
|
442
|
369 quick_build )
|
149
|
370 case "$val" in
|
0
|
371 y | ye | yes ) val=yes ;;
|
380
|
372 n | no ) val=no ;;
|
149
|
373 * ) (echo "$progname: Usage error:"
|
|
374 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
|
|
375 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
376 esac
|
380
|
377 eval "$opt=\"$val\"" ;;
|
149
|
378
|
|
379
|
153
|
380 srcdir | \
|
70
|
381 compiler | \
|
596
|
382 xemacs_compiler | \
|
157
|
383 cflags | \
|
1111
|
384 cflags_warning | \
|
272
|
385 cpp | \
|
|
386 cppflags | \
|
|
387 libs | \
|
|
388 ldflags | \
|
153
|
389 cache_file | \
|
380
|
390 native_sound_lib| \
|
267
|
391 site_lisp | \
|
70
|
392 x_includes | \
|
|
393 x_libraries | \
|
|
394 site_includes | \
|
|
395 site_libraries | \
|
209
|
396 site_prefixes | \
|
149
|
397 site_runtime_libraries )
|
|
398 if test "$valomitted" = "yes" ; then
|
|
399 if test "$#" = 0 ; then
|
|
400 (echo "$progname: Usage error:"
|
|
401 echo " " "The \`--$optname' option requires a value."
|
|
402 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
0
|
403 fi
|
|
404 val="$1"; shift
|
|
405 fi
|
149
|
406 eval "$opt=\"$val\""
|
0
|
407 ;;
|
|
408
|
149
|
409 rel_alloc | \
|
261
|
410 with_dlmalloc | \
|
181
|
411 with_debug_malloc | use_debug_malloc | \
|
|
412 with_system_malloc | use_system_malloc )
|
149
|
413 case "$val" in
|
0
|
414 y | ye | yes ) val=yes ;;
|
|
415 n | no ) val=no ;;
|
181
|
416 d | de | def | defa | defau | defaul | default ) val=default ;;
|
149
|
417 * ) (echo "$progname: Usage error:"
|
|
418 echo " " "The \`--$optname' option requires one of these values:
|
120
|
419 \`yes', \`no', or \`default'."
|
149
|
420 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
421 esac
|
265
|
422 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
|
149
|
423 eval "$opt=\"$val\""
|
0
|
424 ;;
|
|
425
|
149
|
426 "with_database" )
|
120
|
427 with_database_berkdb=no
|
|
428 with_database_dbm=no
|
426
|
429 with_database_gdbm=no
|
300
|
430 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
149
|
431 case "$x" in
|
426
|
432 no ) ;;
|
|
433 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
|
|
434 d | db | dbm ) with_database_dbm=yes ;;
|
|
435 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
|
|
436 * ) (echo "$progname: Usage error:"
|
149
|
437 echo " " "The \`--$optname' option value
|
120
|
438 must be either \`no' or a comma-separated list
|
380
|
439 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
|
149
|
440 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
120
|
441 esac
|
|
442 done
|
426
|
443 if test "$with_database_dbm" = "yes" -a \
|
|
444 "$with_database_gdbm" = "yes"; then
|
149
|
445 (echo "$progname: Usage error:"
|
120
|
446 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
|
149
|
447 with the \`--$optname' option."
|
|
448 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
0
|
449 fi
|
70
|
450 ;;
|
0
|
451
|
149
|
452 "with_sound" )
|
426
|
453 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
|
454 case "$x" in
|
|
455 n | no | non | none ) new_sdefault=no ;;
|
|
456 a | al | all | both ) new_sdefault=yes ;;
|
|
457
|
|
458 native ) with_native_sound=yes ;;
|
|
459 nonative ) with_native_sound=no ;;
|
|
460
|
|
461 nas ) with_nas_sound=yes ;;
|
|
462 nonas ) with_nas_sound=no ;;
|
|
463
|
432
|
464 esd ) with_esd_sound=yes ;;
|
|
465 noesd ) with_esd_sound=no ;;
|
426
|
466
|
|
467 * ) bogus_sound=yes ;;
|
|
468 esac
|
|
469 if test "$bogus_sound" -o \
|
|
470 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
|
|
471 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
|
|
472 (echo "$progname: Usage error:"
|
|
473 echo " " "Valid types for the \`--$optname' option are:
|
|
474 $types.
|
724
|
475 Option \`all' or \`none' must be first in the list.
|
|
476 The default is to autodetect native and NAS sound support."
|
426
|
477 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
478 elif test -n "$new_sdefault" ; then
|
|
479 with_native_sound=$new_sdefault
|
|
480 with_nas_sound=$new_sdefault
|
432
|
481 with_esd_sound=$new_sdefault
|
426
|
482 new_sdefault= # reset this
|
|
483 fi
|
|
484 sound_notfirst=true
|
|
485 done
|
0
|
486 ;;
|
|
487
|
434
|
488 "with_athena" )
|
|
489 case "$val" in
|
|
490 xa | xaw ) val=xaw ;;
|
|
491 3 | 3d | xaw3d ) val=3d ;;
|
|
492 ne | nex | next | naxtaw) val=next ;;
|
|
493 9 | 95 | xaw95 ) val=95 ;;
|
|
494 xp | xpm | xawxpm ) val=xpm ;;
|
|
495 * ) (echo "$progname: Usage error:"
|
|
496 echo " " "The \`--$optname' option must have one of these values:
|
|
497 \`xaw', \`3d', \`next', \`95', or \`xpm'."
|
|
498 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
499 esac
|
|
500 eval "$opt=\"$val\""
|
|
501 ;;
|
|
502
|
149
|
503 "with_xim" )
|
|
504 case "$val" in
|
|
505 y | ye | yes ) val=yes ;;
|
|
506 n | no | non | none ) val=no ;;
|
|
507 x | xl | xli | xlib ) val=xlib ;;
|
|
508 m | mo | mot | moti | motif ) val=motif ;;
|
|
509 * ) (echo "$progname: Usage error:"
|
|
510 echo " " "The \`--$optname' option must have one of these values:
|
|
511 \`motif', \`xlib', \`yes', or \`no'."
|
|
512 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
513 esac
|
149
|
514 eval "$opt=\"$val\""
|
0
|
515 ;;
|
|
516
|
149
|
517 "mail_locking" )
|
|
518 case "$val" in
|
|
519 lockf ) val=lockf ;;
|
|
520 flock ) val=flock ;;
|
438
|
521 file | dot ) val=file ;;
|
|
522 locking ) val=locking ;;
|
149
|
523 * ) (echo "$progname: Usage error:"
|
|
524 echo " " "The \`--$optname' option must have one of these values:
|
438
|
525 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
|
149
|
526 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
527 esac
|
|
528 eval "$opt=\"$val\""
|
|
529 ;;
|
|
530
|
|
531 "error_checking" )
|
|
532
|
267
|
533 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
149
|
534 case "$x" in
|
|
535 n | no | non | none ) new_default=no ;;
|
0
|
536 a | al | all ) new_default=yes ;;
|
|
537
|
|
538 extents ) error_check_extents=yes ;;
|
|
539 noextents ) error_check_extents=no ;;
|
|
540
|
800
|
541 types ) error_check_types=yes ;;
|
|
542 notypes ) error_check_types=no ;;
|
|
543
|
|
544 text ) error_check_text=yes ;;
|
|
545 notext ) error_check_text=no ;;
|
0
|
546
|
|
547 gc ) error_check_gc=yes ;;
|
|
548 nogc ) error_check_gc=no ;;
|
|
549
|
|
550 malloc ) error_check_malloc=yes ;;
|
|
551 nomalloc ) error_check_malloc=no ;;
|
149
|
552
|
414
|
553 byte_code ) error_check_byte_code=yes ;;
|
|
554 nobyte_code ) error_check_byte_code=no ;;
|
|
555
|
800
|
556 glyphs ) error_check_glyphs=yes ;;
|
|
557 noglyphs ) error_check_glyphs=no ;;
|
|
558
|
|
559 display ) error_check_display=yes ;;
|
|
560 nodisplay ) error_check_display=no ;;
|
|
561
|
|
562 structures ) error_check_structures=yes ;;
|
|
563 nostructures ) error_check_structures=no ;;
|
442
|
564
|
0
|
565 * ) bogus_error_check=yes ;;
|
|
566 esac
|
70
|
567 if test "$bogus_error_check" -o \
|
|
568 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
|
267
|
569 if test "$error_check_default" = yes ; then
|
800
|
570 types="\`all' (default), \`none', \`noextents', \`notypes', \`notext', \`nogc', \`nomalloc', \`noglyphs', \`nobyte-code', \`nodisplay', \`nostructures'."
|
0
|
571 else
|
800
|
572 types="\`all', \`none' (default), \`extents', \`types', \`text', \`gc', \`malloc', \`glyphs', \`byte-code', \`display', \`structures'."
|
0
|
573 fi
|
149
|
574 (echo "$progname: Usage error:"
|
|
575 echo " " "Valid types for the \`--$optname' option are:
|
120
|
576 $types."
|
149
|
577 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
151
|
578 elif test -n "$new_default" ; then
|
0
|
579 error_check_extents=$new_default
|
800
|
580 error_check_types=$new_default
|
|
581 error_check_text=$new_default
|
0
|
582 error_check_gc=$new_default
|
|
583 error_check_malloc=$new_default
|
414
|
584 error_check_byte_code=$new_default
|
442
|
585 error_check_glyphs=$new_default
|
800
|
586 error_check_display=$new_default
|
|
587 error_check_structures=$new_default
|
0
|
588 new_default= # reset this
|
|
589 fi
|
|
590 echeck_notfirst=true
|
|
591 done
|
|
592 ;;
|
|
593
|
149
|
594
|
|
595 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
442
|
596 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
|
867
|
597 archlibdir | docdir | package_path | moduledir )
|
151
|
598 if test "$valomitted" = "yes"; then
|
|
599 if test "$#" = 0; then
|
149
|
600 (echo "$progname: Usage error:"
|
|
601 echo " " "The \`--$optname' option requires a value."
|
|
602 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
120
|
603 fi
|
|
604 val="$1"; shift
|
0
|
605 fi
|
149
|
606 eval "$opt=\"$val\""
|
|
607
|
278
|
608 case "$opt" in
|
420
|
609 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
610 Defining EXEC_PREFIX_USER_DEFINED
|
|
611 EOF
|
|
612 cat >> confdefs.h <<\EOF
|
|
613 #define EXEC_PREFIX_USER_DEFINED 1
|
|
614 EOF
|
|
615 }
|
|
616 ;;
|
274
|
617 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
618 Defining LISPDIR_USER_DEFINED
|
|
619 EOF
|
|
620 cat >> confdefs.h <<\EOF
|
|
621 #define LISPDIR_USER_DEFINED 1
|
|
622 EOF
|
|
623 }
|
|
624 ;;
|
388
|
625 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
626 Defining SITELISPDIR_USER_DEFINED
|
|
627 EOF
|
|
628 cat >> confdefs.h <<\EOF
|
|
629 #define SITELISPDIR_USER_DEFINED 1
|
|
630 EOF
|
|
631 }
|
|
632 ;;
|
|
633 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
634 Defining MODULEDIR_USER_DEFINED
|
|
635 EOF
|
|
636 cat >> confdefs.h <<\EOF
|
|
637 #define MODULEDIR_USER_DEFINED 1
|
|
638 EOF
|
|
639 }
|
|
640 ;;
|
274
|
641 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
642 Defining ETCDIR_USER_DEFINED
|
|
643 EOF
|
|
644 cat >> confdefs.h <<\EOF
|
|
645 #define ETCDIR_USER_DEFINED 1
|
|
646 EOF
|
|
647 }
|
|
648 ;;
|
|
649 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
650 Defining INFODIR_USER_DEFINED
|
|
651 EOF
|
|
652 cat >> confdefs.h <<\EOF
|
|
653 #define INFODIR_USER_DEFINED 1
|
|
654 EOF
|
|
655 }
|
|
656 ;;
|
|
657 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
658 Defining INFOPATH_USER_DEFINED
|
|
659 EOF
|
|
660 cat >> confdefs.h <<\EOF
|
|
661 #define INFOPATH_USER_DEFINED 1
|
|
662 EOF
|
|
663 }
|
|
664 ;;
|
|
665 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
666 Defining PACKAGE_PATH_USER_DEFINED
|
|
667 EOF
|
|
668 cat >> confdefs.h <<\EOF
|
|
669 #define PACKAGE_PATH_USER_DEFINED 1
|
|
670 EOF
|
|
671 }
|
|
672 ;;
|
278
|
673 datadir )
|
462
|
674 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
675 Defining INFODIR_USER_DEFINED
|
|
676 EOF
|
|
677 cat >> confdefs.h <<\EOF
|
|
678 #define INFODIR_USER_DEFINED 1
|
|
679 EOF
|
|
680 }
|
|
681
|
462
|
682 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
683 Defining LISPDIR_USER_DEFINED
|
|
684 EOF
|
|
685 cat >> confdefs.h <<\EOF
|
|
686 #define LISPDIR_USER_DEFINED 1
|
|
687 EOF
|
|
688 }
|
|
689
|
462
|
690 { test "$extra_verbose" = "yes" && cat << \EOF
|
388
|
691 Defining MODULEDIR_USER_DEFINED
|
|
692 EOF
|
|
693 cat >> confdefs.h <<\EOF
|
|
694 #define MODULEDIR_USER_DEFINED 1
|
|
695 EOF
|
|
696 }
|
|
697
|
278
|
698 { test "$extra_verbose" = "yes" && cat << \EOF
|
274
|
699 Defining ETCDIR_USER_DEFINED
|
|
700 EOF
|
|
701 cat >> confdefs.h <<\EOF
|
|
702 #define ETCDIR_USER_DEFINED 1
|
|
703 EOF
|
|
704 }
|
458
|
705
|
|
706 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
707 Defining DOCDIR_USER_DEFINED
|
|
708 EOF
|
|
709 cat >> confdefs.h <<\EOF
|
|
710 #define DOCDIR_USER_DEFINED 1
|
|
711 EOF
|
|
712 }
|
|
713
|
|
714 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
715 Defining ARCHLIBDIR_USER_DEFINED
|
|
716 EOF
|
|
717 cat >> confdefs.h <<\EOF
|
|
718 #define ARCHLIBDIR_USER_DEFINED 1
|
|
719 EOF
|
|
720 }
|
274
|
721 ;;
|
420
|
722 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
723 Defining DOCDIR_USER_DEFINED
|
|
724 EOF
|
|
725 cat >> confdefs.h <<\EOF
|
|
726 #define DOCDIR_USER_DEFINED 1
|
|
727 EOF
|
|
728 }
|
|
729 ;;
|
274
|
730 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
731 Defining ARCHLIBDIR_USER_DEFINED
|
|
732 EOF
|
|
733 cat >> confdefs.h <<\EOF
|
|
734 #define ARCHLIBDIR_USER_DEFINED 1
|
|
735 EOF
|
|
736 }
|
|
737 ;;
|
149
|
738 esac
|
0
|
739 ;;
|
|
740
|
149
|
741 "no_create" ) ;;
|
|
742
|
215
|
743 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
|
149
|
744
|
380
|
745 "with_menubars" | \
|
|
746 "with_scrollbars" | \
|
442
|
747 "with_dialogs" | \
|
420
|
748 "with_widgets" )
|
149
|
749 case "$val" in
|
0
|
750 l | lu | luc | luci | lucid ) val=lucid ;;
|
724
|
751 mo | mot | moti | motif ) val=motif ;;
|
0
|
752 a | at | ath | athe | athen | athena ) val=athena ;;
|
442
|
753 n | no | non | none ) val=no ;;
|
|
754 y | ye | yes ) val=yes ;;
|
726
|
755 "") val=yes ;;
|
462
|
756 g | gt | gtk ) val=gtk ;;
|
724
|
757 ms | msw ) val=msw ;;
|
149
|
758 * ) (echo "$progname: Usage error:"
|
|
759 echo " " "The \`--$optname' option must have one of these values:
|
585
|
760 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
|
149
|
761 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
762 esac
|
149
|
763 eval "$opt=\"$val\""
|
0
|
764 ;;
|
|
765
|
424
|
766 "use_minimal_tagbits" | \
|
|
767 "use_indexed_lrecord_implementation" | \
|
|
768 "run_in_place" | \
|
442
|
769 "const_is_losing" | \
|
380
|
770 "with_gnu_make" )
|
|
771 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
|
|
772 ;;
|
|
773
|
149
|
774 * ) (echo "$progname: Usage error:"
|
|
775 echo " " "Unrecognized option: $arg"
|
|
776 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
777
|
|
778 esac
|
|
779 ;;
|
|
780
|
243
|
781 *-*-*) configuration="$arg" ;;
|
|
782
|
|
783 *) (echo "$progname: Usage error:"
|
|
784 echo " " "Unrecognized argument: $arg"
|
|
785 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
786
|
|
787 esac
|
|
788 done
|
|
789
|
149
|
790
|
272
|
791 test -n "$cpp" && CPP="$cpp"
|
|
792 test -n "$cppflags" && CPPFLAGS="$cppflags"
|
|
793 test -n "$libs" && LIBS="$libs"
|
|
794 test -n "$ldflags" && LDFLAGS="$ldflags"
|
|
795
|
0
|
796 eval set x "$quoted_arguments"; shift
|
|
797
|
149
|
798 test "$extra_verbose" = "yes" && verbose=yes
|
|
799
|
|
800 test -n "$with_x" && with_x11="$with_x"
|
|
801
|
380
|
802 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
|
|
803 test "$with_system_malloc" = "default" && with_system_malloc=yes
|
|
804 fi
|
272
|
805
|
284
|
806
|
|
807
|
|
808 if test "$with_cde $with_tooltalk" = "yes no"; then
|
|
809 (echo "$progname: Usage error:"
|
|
810 echo " " "--with-cde requires --with-tooltalk"
|
|
811 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
812 elif test "$with_tooltalk" = "no" ; then with_cde=no
|
|
813 elif test "$with_cde" = "yes"; then with_tooltalk=yes
|
|
814 fi
|
|
815
|
|
816
|
149
|
817 case "$srcdir" in
|
|
818
|
|
819 "" )
|
70
|
820 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
|
120
|
821 if test -f "$dir/src/lisp.h" -a \
|
|
822 -f "$dir/lisp/version.el" ; then
|
149
|
823 srcdir="$dir"
|
70
|
824 break
|
|
825 fi
|
|
826 done
|
149
|
827 if test -z "$srcdir" ; then
|
|
828 (echo "$progname: Usage error:"
|
120
|
829 echo " " "Neither the current directory nor its parent seem to
|
|
830 contain the XEmacs sources. If you do not want to build XEmacs in its
|
149
|
831 source tree, you should run \`$progname' in the directory in which
|
120
|
832 you wish to build XEmacs, using the \`--srcdir' option to say where the
|
|
833 sources may be found."
|
149
|
834 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
120
|
835 fi
|
0
|
836 ;;
|
|
837
|
149
|
838 * )
|
243
|
839 if test ! -f "$srcdir/src/lisp.h" -o \
|
149
|
840 ! -f "$srcdir/lisp/version.el" ; then
|
|
841 (echo "$progname: Usage error:"
|
120
|
842 echo " " "The directory specified with the \`--srcdir' option,
|
149
|
843 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
|
|
844 either run the \`$progname' script at the top of the XEmacs source
|
120
|
845 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
|
149
|
846 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
0
|
847 fi
|
|
848 ;;
|
|
849 esac
|
|
850
|
243
|
851 if test -z "$configuration"; then
|
380
|
852 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
|
|
853 if test -z "$configuration"; then
|
243
|
854 (echo "$progname: Usage error:"
|
|
855 echo " " "XEmacs has not been ported to this host type.
|
|
856 Try explicitly specifying the CONFIGURATION when rerunning configure."
|
|
857 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
858 fi
|
|
859 fi
|
|
860
|
149
|
861 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
1111
|
862 echo "configure:863: checking whether ln -s works" >&5
|
149
|
863
|
0
|
864 rm -f conftestdata
|
|
865 if ln -s X conftestdata 2>/dev/null
|
|
866 then
|
|
867 rm -f conftestdata
|
149
|
868 ac_cv_prog_LN_S="ln -s"
|
|
869 else
|
|
870 ac_cv_prog_LN_S=ln
|
|
871 fi
|
|
872 LN_S="$ac_cv_prog_LN_S"
|
|
873 if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|
874 echo "$ac_t""yes" 1>&6
|
|
875 else
|
|
876 echo "$ac_t""no" 1>&6
|
|
877 fi
|
|
878
|
|
879
|
438
|
880 for dir in lisp etc man info tests; do
|
149
|
881 if test ! -d "$dir" ; then
|
|
882 echo Making symbolic link to "$srcdir/$dir"
|
157
|
883 ${LN_S} "$srcdir/$dir" "$dir"
|
0
|
884 fi
|
|
885 done
|
|
886
|
392
|
887
|
181
|
888 absolute_pwd="`pwd`";
|
187
|
889 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
|
181
|
890 then blddir="$PWD"
|
392
|
891 else blddir="$absolute_pwd"; if test -d "/net"; then
|
|
892 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
|
|
893 blddir=`echo "$blddir" | \
|
|
894 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
|
|
895 fi
|
181
|
896 fi
|
|
897
|
|
898
|
149
|
899 case "$srcdir" in
|
0
|
900 /* ) ;;
|
181
|
901 . ) srcdir="$blddir" ;;
|
392
|
902 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
|
|
903 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
|
|
904 srcdir=`echo "$srcdir" | \
|
|
905 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
|
|
906 fi ;;
|
0
|
907 esac
|
|
908
|
149
|
909 if test `pwd` != `sh -c cd $srcdir && pwd` \
|
|
910 && test -f "$srcdir/src/config.h"; then
|
|
911 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
|
0
|
912 echo " as a build directory right now; it has been configured in its own"
|
|
913 echo " right. To configure in another directory as well, you MUST"
|
|
914 echo " use GNU make. If you do not have GNU make, then you must"
|
149
|
915 echo " now do \`make distclean' in $srcdir,"
|
|
916 echo " and then run $progname again.") >&2
|
0
|
917 extrasub='/^VPATH[ ]*=/c\
|
|
918 vpath %.c $(srcdir)\
|
|
919 vpath %.h $(srcdir)\
|
|
920 vpath %.y $(srcdir)\
|
|
921 vpath %.l $(srcdir)\
|
|
922 vpath %.s $(srcdir)\
|
|
923 vpath %.in $(srcdir)'
|
|
924 fi
|
|
925
|
171
|
926 . "$srcdir/version.sh" || exit 1;
|
414
|
927 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
|
173
|
928 : "${extra_verbose=$beta}"
|
171
|
929 version="${emacs_major_version}.${emacs_minor_version}"
|
|
930 { test "$extra_verbose" = "yes" && cat << EOF
|
|
931 Defining EMACS_MAJOR_VERSION = $emacs_major_version
|
|
932 EOF
|
|
933 cat >> confdefs.h <<EOF
|
|
934 #define EMACS_MAJOR_VERSION $emacs_major_version
|
|
935 EOF
|
|
936 }
|
|
937
|
|
938 { test "$extra_verbose" = "yes" && cat << EOF
|
|
939 Defining EMACS_MINOR_VERSION = $emacs_minor_version
|
|
940 EOF
|
|
941 cat >> confdefs.h <<EOF
|
|
942 #define EMACS_MINOR_VERSION $emacs_minor_version
|
|
943 EOF
|
|
944 }
|
|
945
|
414
|
946 if test -n "$emacs_beta_version" ; then
|
|
947 if test "$beta" = "yes"; then
|
|
948 version="${version}-b${emacs_beta_version}"
|
|
949 { test "$extra_verbose" = "yes" && cat << EOF
|
171
|
950 Defining EMACS_BETA_VERSION = $emacs_beta_version
|
|
951 EOF
|
|
952 cat >> confdefs.h <<EOF
|
|
953 #define EMACS_BETA_VERSION $emacs_beta_version
|
|
954 EOF
|
|
955 }
|
|
956
|
414
|
957 else
|
|
958 version="${version}.${emacs_beta_version}"
|
|
959 { test "$extra_verbose" = "yes" && cat << EOF
|
|
960 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
|
|
961 EOF
|
|
962 cat >> confdefs.h <<EOF
|
|
963 #define EMACS_PATCH_LEVEL $emacs_beta_version
|
|
964 EOF
|
|
965 }
|
|
966
|
|
967 fi
|
171
|
968 fi
|
|
969 { test "$extra_verbose" = "yes" && cat << EOF
|
|
970 Defining XEMACS_CODENAME = "$xemacs_codename"
|
|
971 EOF
|
|
972 cat >> confdefs.h <<EOF
|
|
973 #define XEMACS_CODENAME "$xemacs_codename"
|
|
974 EOF
|
|
975 }
|
|
976
|
975
|
977 if test "X$xemacs_extra_name" != "X"; then
|
|
978 { test "$extra_verbose" = "yes" && cat << EOF
|
|
979 Defining XEMACS_EXTRA_NAME = "$xemacs_extra_name"
|
|
980 EOF
|
|
981 cat >> confdefs.h <<EOF
|
|
982 #define XEMACS_EXTRA_NAME "$xemacs_extra_name"
|
|
983 EOF
|
|
984 }
|
|
985
|
|
986 fi
|
171
|
987 { test "$extra_verbose" = "yes" && cat << EOF
|
|
988 Defining EMACS_VERSION = "$version"
|
|
989 EOF
|
|
990 cat >> confdefs.h <<EOF
|
|
991 #define EMACS_VERSION "$version"
|
|
992 EOF
|
|
993 }
|
|
994
|
|
995
|
280
|
996 if test "$with_infodock" = "yes"; then
|
420
|
997 if test ! -f ../../ID-INSTALL; then
|
280
|
998 echo "Cannot build InfoDock without InfoDock sources"
|
|
999 with_infodock=no
|
|
1000 fi
|
|
1001 fi
|
|
1002
|
|
1003 if test "$with_infodock" = "yes"; then
|
|
1004 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
1005 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
|
|
1006 EOF
|
|
1007 cat >> confdefs.h <<EOF
|
|
1008 #define INFODOCK_MAJOR_VERSION $infodock_major_version
|
|
1009 EOF
|
|
1010 }
|
|
1011
|
280
|
1012 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
1013 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
|
|
1014 EOF
|
|
1015 cat >> confdefs.h <<EOF
|
|
1016 #define INFODOCK_MINOR_VERSION $infodock_minor_version
|
|
1017 EOF
|
|
1018 }
|
|
1019
|
280
|
1020 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
1021 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
|
|
1022 EOF
|
|
1023 cat >> confdefs.h <<EOF
|
|
1024 #define INFODOCK_BUILD_VERSION $infodock_build_version
|
|
1025 EOF
|
|
1026 }
|
|
1027
|
280
|
1028 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
|
|
1029 PROGNAME=infodock
|
|
1030 CPPFLAGS="$CPPFLAGS -DINFODOCK"
|
|
1031 else
|
|
1032 PROGNAME=xemacs
|
|
1033 fi
|
278
|
1034
|
442
|
1035 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1036 Defining EMACS_PROGNAME = "$PROGNAME"
|
|
1037 EOF
|
|
1038 cat >> confdefs.h <<EOF
|
|
1039 #define EMACS_PROGNAME "$PROGNAME"
|
|
1040 EOF
|
|
1041 }
|
|
1042
|
|
1043
|
414
|
1044 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
|
800
|
1045 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
171
|
1046 Defining ERROR_CHECK_EXTENTS
|
|
1047 EOF
|
|
1048 cat >> confdefs.h <<\EOF
|
|
1049 #define ERROR_CHECK_EXTENTS 1
|
|
1050 EOF
|
|
1051 }
|
|
1052
|
800
|
1053 test "${error_check_types=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1054 Defining ERROR_CHECK_TYPES
|
|
1055 EOF
|
|
1056 cat >> confdefs.h <<\EOF
|
|
1057 #define ERROR_CHECK_TYPES 1
|
|
1058 EOF
|
|
1059 }
|
|
1060
|
|
1061 test "${error_check_text=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1062 Defining ERROR_CHECK_TEXT
|
|
1063 EOF
|
|
1064 cat >> confdefs.h <<\EOF
|
|
1065 #define ERROR_CHECK_TEXT 1
|
|
1066 EOF
|
|
1067 }
|
|
1068
|
|
1069 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
171
|
1070 Defining ERROR_CHECK_GC
|
|
1071 EOF
|
|
1072 cat >> confdefs.h <<\EOF
|
|
1073 #define ERROR_CHECK_GC 1
|
|
1074 EOF
|
|
1075 }
|
|
1076
|
800
|
1077 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
171
|
1078 Defining ERROR_CHECK_MALLOC
|
|
1079 EOF
|
|
1080 cat >> confdefs.h <<\EOF
|
|
1081 #define ERROR_CHECK_MALLOC 1
|
|
1082 EOF
|
|
1083 }
|
|
1084
|
800
|
1085 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
414
|
1086 Defining ERROR_CHECK_BYTE_CODE
|
|
1087 EOF
|
|
1088 cat >> confdefs.h <<\EOF
|
|
1089 #define ERROR_CHECK_BYTE_CODE 1
|
|
1090 EOF
|
|
1091 }
|
|
1092
|
800
|
1093 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
442
|
1094 Defining ERROR_CHECK_GLYPHS
|
|
1095 EOF
|
|
1096 cat >> confdefs.h <<\EOF
|
|
1097 #define ERROR_CHECK_GLYPHS 1
|
|
1098 EOF
|
|
1099 }
|
|
1100
|
800
|
1101 test "${error_check_display=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1102 Defining ERROR_CHECK_DISPLAY
|
|
1103 EOF
|
|
1104 cat >> confdefs.h <<\EOF
|
|
1105 #define ERROR_CHECK_DISPLAY 1
|
|
1106 EOF
|
|
1107 }
|
|
1108
|
|
1109 test "${error_check_structures=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1110 Defining ERROR_CHECK_STRUCTURES
|
|
1111 EOF
|
|
1112 cat >> confdefs.h <<\EOF
|
|
1113 #define ERROR_CHECK_STRUCTURES 1
|
|
1114 EOF
|
|
1115 }
|
|
1116
|
272
|
1117 if test "${debug:=$beta}" = "yes"; then
|
771
|
1118 use_assertions=yes
|
|
1119 memory_usage_stats=yes
|
171
|
1120 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1121 Defining DEBUG_XEMACS
|
|
1122 EOF
|
|
1123 cat >> confdefs.h <<\EOF
|
|
1124 #define DEBUG_XEMACS 1
|
|
1125 EOF
|
|
1126 }
|
|
1127
|
|
1128 fi
|
|
1129 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1130 Defining USE_ASSERTIONS
|
|
1131 EOF
|
|
1132 cat >> confdefs.h <<\EOF
|
|
1133 #define USE_ASSERTIONS 1
|
|
1134 EOF
|
|
1135 }
|
|
1136
|
|
1137 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1138 Defining MEMORY_USAGE_STATS
|
|
1139 EOF
|
|
1140 cat >> confdefs.h <<\EOF
|
|
1141 #define MEMORY_USAGE_STATS 1
|
|
1142 EOF
|
|
1143 }
|
|
1144
|
|
1145
|
149
|
1146
|
380
|
1147 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
|
1111
|
1148 echo "configure:1149: checking "host system type"" >&5
|
217
|
1149 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
|
380
|
1150 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
|
|
1151 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
|
|
1152 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
|
|
1153 echo "$ac_t""$configuration" 1>&6
|
0
|
1154
|
149
|
1155
|
|
1156
|
|
1157
|
|
1158
|
151
|
1159 machine='' opsys=''
|
149
|
1160
|
|
1161 case "$canonical" in
|
|
1162 sparc-*-* ) machine=sparc ;;
|
373
|
1163 alpha*-*-* ) machine=alpha ;;
|
149
|
1164 vax-*-* ) machine=vax ;;
|
|
1165 mips-dec-* ) machine=pmax ;;
|
440
|
1166 mips-sgi-irix6* ) machine=iris6d ;;
|
149
|
1167 mips-sgi-* ) machine=iris4d ;;
|
424
|
1168 mips*-linux ) machine=mips ;;
|
149
|
1169 romp-ibm-* ) machine=ibmrt ;;
|
|
1170 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
|
|
1171 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
|
163
|
1172 powerpc*-* ) machine=powerpc ;;
|
149
|
1173 hppa-*-* ) machine=hp800 ;;
|
|
1174 m88k-dg-* ) machine=aviion ;;
|
|
1175 m68*-sony-* ) machine=news ;;
|
|
1176 mips-sony-* ) machine=news-risc ;;
|
|
1177 clipper-* ) machine=clipper ;;
|
442
|
1178 arm* ) machine=arm ;;
|
380
|
1179 ns32k-* ) machine=ns32000 ;;
|
149
|
1180 esac
|
|
1181
|
|
1182 case "$canonical" in
|
|
1183 *-*-linux* ) opsys=linux ;;
|
|
1184 *-*-netbsd* ) opsys=netbsd ;;
|
286
|
1185 *-*-openbsd* ) opsys=openbsd ;;
|
149
|
1186 *-*-nextstep* ) opsys=nextstep ;;
|
|
1187 *-*-vms ) opsys=vms ;;
|
|
1188
|
|
1189 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
|
|
1190 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
|
|
1191 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
|
|
1192 *-dec-osf3* ) opsys=decosf3-1 ;;
|
444
|
1193 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
|
149
|
1194
|
|
1195 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
1196 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
|
|
1197 *-*-ultrix* ) opsys=ultrix4-3 ;;
|
|
1198
|
|
1199 *-*-aix3.1* ) opsys=aix3-1 ;;
|
|
1200 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
|
|
1201 *-*-aix3* ) opsys=aix3-2 ;;
|
373
|
1202 *-*-aix4.0* ) opsys=aix4 ;;
|
149
|
1203 *-*-aix4.1* ) opsys=aix4-1 ;;
|
373
|
1204 *-*-aix4* ) opsys=aix4-2 ;;
|
149
|
1205
|
|
1206 *-gnu* ) opsys=gnu ;;
|
|
1207 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
1208 *-*-bsd4.2 ) opsys=bsd4-2 ;;
|
|
1209 *-*-bsd4.3 ) opsys=bsd4-3 ;;
|
|
1210 *-*-aos4.2 ) opsys=bsd4-2 ;;
|
|
1211 *-*-aos* ) opsys=bsd4-3 ;;
|
|
1212 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
|
|
1213 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
|
|
1214 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
1215 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
|
|
1216 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1217 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
|
1218 if test -z "$NON_GNU_CPP" ; then
|
151
|
1219 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
|
|
1220 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
|
|
1221 done
|
149
|
1222 fi
|
|
1223 opsys=usg5-4-2 ;;
|
|
1224 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
1225 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
|
|
1226 esac
|
|
1227
|
|
1228 case "$canonical" in
|
|
1229
|
|
1230 *-*-netbsd* )
|
|
1231 case "$canonical" in
|
0
|
1232 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
1233 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
149
|
1234 machine=hp9000s300 ;;
|
70
|
1235 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
1236 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
0
|
1237 esac
|
|
1238 ;;
|
|
1239
|
286
|
1240 *-*-openbsd* )
|
|
1241 case "${canonical}" in
|
|
1242 i386-*-openbsd*) machine=intel386 ;;
|
|
1243 m68k-*-openbsd*) machine=hp9000s300 ;;
|
|
1244 mipsel-*-openbsd*) machine=pmax ;;
|
|
1245 esac
|
|
1246 ;;
|
|
1247
|
149
|
1248 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
|
70
|
1249 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
|
0
|
1250
|
149
|
1251 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
|
70
|
1252 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
|
0
|
1253
|
149
|
1254 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
|
|
1255
|
|
1256 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
|
|
1257
|
|
1258 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
|
|
1259
|
|
1260 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
|
|
1261
|
|
1262 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
|
|
1263
|
|
1264 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
|
74
|
1265 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
|
|
1266 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
|
0
|
1267
|
149
|
1268
|
|
1269 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
|
|
1270
|
|
1271 *-convex-bsd* | *-convex-convexos* )
|
0
|
1272 machine=convex opsys=bsd4-3
|
|
1273 NON_GNU_CPP="cc -E -P"
|
|
1274 ;;
|
|
1275
|
149
|
1276 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
|
|
1277
|
867
|
1278 *-*-darwin*)
|
|
1279 opsys=darwin
|
1161
|
1280 RANLIB="ranlib -c" ;;
|
867
|
1281
|
149
|
1282 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
|
|
1283 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
|
|
1284 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
|
|
1285 m88k-dg-dgux* ) opsys=dgux ;;
|
|
1286
|
|
1287 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
|
0
|
1288 m88k-motorola-sysv4* )
|
149
|
1289 machine=delta88k opsys=usg5-4-2
|
0
|
1290 ;;
|
70
|
1291 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
|
0
|
1292
|
149
|
1293 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
|
70
|
1294 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
|
0
|
1295
|
149
|
1296 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
|
|
1297
|
|
1298 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
|
70
|
1299 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
|
|
1300 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
|
0
|
1301
|
149
|
1302 m88k-harris-cxux* )
|
|
1303 case "`uname -r`" in
|
74
|
1304 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
70
|
1305 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
0
|
1306 esac
|
|
1307 NON_GNU_CPP="/lib/cpp"
|
|
1308 ;;
|
149
|
1309 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
|
|
1310 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
|
|
1311
|
|
1312 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
|
|
1313
|
|
1314 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
|
|
1315
|
|
1316 *-hp-hpux* )
|
|
1317 case "$canonical" in
|
70
|
1318 m68* ) machine=hp9000s300 ;;
|
|
1319 hppa* ) machine=hp800 ;;
|
|
1320 esac
|
|
1321
|
149
|
1322 case "$canonical" in
|
|
1323 *-hp-hpux7* ) opsys=hpux ;;
|
|
1324 *-hp-hpux8* ) opsys=hpux8 ;;
|
|
1325 *-hp-hpux9* ) opsys=hpux9 ;;
|
|
1326 *-hp-hpux10* ) opsys=hpux10 ;;
|
269
|
1327 *-hp-hpux11* ) opsys=hpux11 ;;
|
151
|
1328 * ) opsys=hpux ;;
|
0
|
1329 esac
|
72
|
1330
|
151
|
1331 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
|
|
1332 echo " xemacs will be linked with \"strcat.o\""
|
|
1333 fi ;; esac
|
149
|
1334
|
269
|
1335 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
|
|
1336 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
|
149
|
1337 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
|
|
1338
|
|
1339 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
|
0
|
1340 ;;
|
|
1341
|
149
|
1342 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
|
70
|
1343 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
|
0
|
1344
|
149
|
1345 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
|
70
|
1346 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
|
|
1347 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
|
149
|
1348 romp-ibm-aos* ) opsys=bsd4-3 ;;
|
|
1349 romp-ibm-bsd* ) opsys=bsd4-3 ;;
|
|
1350 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
|
|
1351
|
|
1352 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
|
70
|
1353 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
|
0
|
1354
|
149
|
1355 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
|
|
1356
|
|
1357 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
|
|
1358
|
|
1359 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
|
|
1360
|
|
1361 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
|
|
1362
|
|
1363 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
|
|
1364
|
|
1365 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
|
|
1366
|
|
1367 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
|
|
1368
|
|
1369 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
|
|
1370
|
|
1371 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
|
|
1372
|
|
1373 mips-mips-usg* ) machine=mips4 ;;
|
70
|
1374 mips-mips-riscos4 )
|
|
1375 machine=mips4
|
0
|
1376 NON_GNU_CC="cc -systype bsd43"
|
|
1377 NON_GNU_CPP="cc -systype bsd43 -E"
|
149
|
1378 case "$canonical" in
|
70
|
1379 mips-mips-riscos4* ) opsys=bsd4-3 ;;
|
|
1380 mips-mips-riscos5* ) opsys=riscos5 ;;
|
|
1381 esac
|
0
|
1382 ;;
|
70
|
1383 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
|
|
1384 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
|
0
|
1385
|
149
|
1386 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
|
|
1387
|
|
1388 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
|
|
1389
|
|
1390 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
|
70
|
1391 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
|
0
|
1392
|
149
|
1393 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
|
|
1394
|
|
1395 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
|
|
1396
|
|
1397 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
|
|
1398
|
|
1399 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
|
|
1400
|
|
1401 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
|
70
|
1402 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
|
0
|
1403
|
149
|
1404 mips-siemens-sysv* | mips-sni-sysv*)
|
0
|
1405 machine=mips-siemens opsys=usg5-4
|
|
1406 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1407 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1408 ;;
|
|
1409
|
377
|
1410 mips-nec-sysv*)
|
|
1411 machine=mips-nec
|
|
1412 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1413 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1414 ;;
|
|
1415
|
149
|
1416 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
70
|
1417 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
149
|
1418 mips-sgi-irix3.* ) opsys=irix3-3 ;;
|
|
1419 mips-sgi-irix4.* ) opsys=irix4-0 ;;
|
207
|
1420 mips-sgi-irix6* ) opsys=irix6-0 ;;
|
149
|
1421 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
|
|
1422 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
|
|
1423 mips-sgi-irix5.* ) opsys=irix5-3 ;;
|
|
1424 mips-sgi-irix* ) opsys=irix5-0 ;;
|
|
1425
|
|
1426 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
|
|
1427 *-sony-news* ) opsys=newsos5 ;;
|
|
1428
|
|
1429 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
|
1430
|
|
1431 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
1432 case "$canonical" in
|
0
|
1433 m68*-sunos1* ) machine=sun1 ;;
|
|
1434 m68*-sunos2* ) machine=sun2 ;;
|
|
1435 m68* ) machine=sun3 ;;
|
163
|
1436 i*86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
1437 i*86-*-* ) machine=intel386 ;;
|
0
|
1438 rs6000* ) machine=rs6000 ;;
|
|
1439 esac
|
149
|
1440
|
|
1441 case "$canonical" in *-sunos5*)
|
163
|
1442 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
|
0
|
1443 esac
|
|
1444
|
149
|
1445 case "$canonical" in
|
0
|
1446 *-sunos4* )
|
157
|
1447 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1448 : ;;
|
70
|
1449 *-solaris2* )
|
157
|
1450 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1451 RANLIB=':' ;;
|
151
|
1452 esac
|
149
|
1453
|
|
1454 case "$canonical" in
|
163
|
1455 *-solaris* )
|
|
1456 opsys=sol2
|
|
1457 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
|
|
1458 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1459 Defining OS_RELEASE = $os_release
|
|
1460 EOF
|
|
1461 cat >> confdefs.h <<EOF
|
|
1462 #define OS_RELEASE $os_release
|
|
1463 EOF
|
|
1464 }
|
|
1465 ;;
|
|
1466
|
|
1467 i*86-*-sunos4* ) opsys=sunos4-0 ;;
|
74
|
1468 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
1469 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
110
|
1470 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
120
|
1471 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
74
|
1472 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
1473 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1474 * ) opsys=bsd4-2 ;;
|
0
|
1475 esac
|
70
|
1476
|
149
|
1477 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
1478
|
163
|
1479 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
|
0
|
1480 ;;
|
70
|
1481
|
149
|
1482 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
|
1483
|
|
1484 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
70
|
1485 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
0
|
1486
|
149
|
1487 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
|
1488
|
|
1489 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
|
1490
|
|
1491 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
|
1492 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
|
1493
|
|
1494 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
|
1495
|
|
1496 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
|
1497
|
|
1498 vax-dec-* )
|
|
1499 case "$canonical" in
|
|
1500 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
1501 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
1502 *-mach* ) opsys=mach-bsd4-3 ;;
|
0
|
1503 esac
|
|
1504 ;;
|
|
1505
|
149
|
1506 ns16k-whitechapel-* ) machine=mg1 ;;
|
|
1507
|
|
1508 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
|
1509
|
|
1510 i[3-9]86-*-* )
|
0
|
1511 machine=intel386
|
149
|
1512 case "$canonical" in
|
120
|
1513 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
0
|
1514 *-isc2.2* ) opsys=isc2-2 ;;
|
|
1515 *-isc4.0* ) opsys=isc4-0 ;;
|
|
1516 *-isc4.* ) opsys=isc4-1
|
|
1517 GCC_TEST_OPTIONS=-posix
|
|
1518 NON_GCC_TEST_OPTIONS=-Xp
|
|
1519 ;;
|
|
1520 *-isc* ) opsys=isc3-0 ;;
|
149
|
1521 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
|
0
|
1522 *-esix* ) opsys=esix ;;
|
|
1523 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1524 *-xenix* ) opsys=xenix ;;
|
149
|
1525 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
|
0
|
1526 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
392
|
1527 *-bsdi4* ) opsys=bsdos4 ;;
|
110
|
1528 *-bsdi3* ) opsys=bsdos3 ;;
|
0
|
1529 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
1530 *-bsdi2* ) opsys=bsdos2 ;;
|
460
|
1531 *-sco3.2v5* ) opsys=sco5 ;;
|
422
|
1532 *-sysv5* ) opsys=sco7 ;;
|
70
|
1533 *-386bsd* ) opsys=386bsd ;;
|
|
1534 *-freebsd* ) opsys=freebsd ;;
|
0
|
1535 *-nextstep* ) opsys=nextstep ;;
|
398
|
1536 *-pc-cygwin* ) opsys=cygwin32 ;;
|
|
1537 *-pc-mingw* ) opsys=mingw32 ;
|
|
1538 test -z "$with_tty" && with_tty="no";;
|
149
|
1539 esac
|
0
|
1540 ;;
|
|
1541
|
149
|
1542 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
1543
|
0
|
1544 esac
|
|
1545
|
442
|
1546 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
|
505
|
1547
|
|
1548 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
442
|
1549
|
|
1550 if test -r "${srcdir}/src/m/${machine}.h"; then
|
|
1551 machfile="m/${machine}.h"
|
|
1552 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1553 Defining config_machfile = "$machfile"
|
|
1554 EOF
|
|
1555 cat >> confdefs.h <<EOF
|
|
1556 #define config_machfile "$machfile"
|
|
1557 EOF
|
|
1558 }
|
|
1559
|
|
1560 else
|
|
1561 echo "XEmacs has no builtin knowledge of \`$machine' machines."
|
|
1562 echo "Using configure-time autodetection only."
|
|
1563 fi
|
|
1564
|
|
1565 if test -r "${srcdir}/src/s/${opsys}.h"; then
|
|
1566 opsysfile="s/${opsys}.h"
|
|
1567 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1568 Defining config_opsysfile = "$opsysfile"
|
|
1569 EOF
|
|
1570 cat >> confdefs.h <<EOF
|
|
1571 #define config_opsysfile "$opsysfile"
|
|
1572 EOF
|
|
1573 }
|
|
1574
|
|
1575 else
|
|
1576 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
|
|
1577 echo "Using configure-time autodetection only."
|
|
1578 fi
|
|
1579
|
0
|
1580
|
1161
|
1581 if test -z "$pdump"; then
|
|
1582 case "$opsys" in
|
|
1583 linux* ) pdump=yes ;; *-*-darwin* ) pdump=yes ;; *) pdump=no ;;
|
|
1584 esac
|
|
1585 fi
|
|
1586
|
173
|
1587 if test -z "$dynamic"; then
|
|
1588 case "$opsys" in
|
388
|
1589 hpux* | sunos4* ) dynamic=no ;;
|
173
|
1590 *) dynamic=yes ;;
|
|
1591 esac
|
|
1592 fi
|
|
1593 if test "$dynamic" = "yes"; then
|
149
|
1594 case "$opsys" in
|
72
|
1595 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
173
|
1596 decosf* ) ld_call_shared="-call_shared" ;;
|
0
|
1597 esac
|
173
|
1598 else case "$opsys" in
|
187
|
1599 sol2 )
|
173
|
1600 echo "Static linking is not supported on Solaris 2."
|
|
1601 echo "Rerun configure without specifying --dynamic=no."
|
|
1602 exit 1 ;;
|
|
1603 linux ) ld_call_shared="-Bstatic" ;;
|
|
1604 decosf* ) ld_call_shared="-non_shared" ;;
|
0
|
1605 esac
|
|
1606 fi
|
|
1607
|
207
|
1608 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
|
|
1609
|
280
|
1610 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
|
173
|
1611 { test "$extra_verbose" = "yes" && cat << EOF
|
177
|
1612 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
|
173
|
1613 EOF
|
|
1614 cat >> confdefs.h <<EOF
|
177
|
1615 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
|
173
|
1616 EOF
|
|
1617 }
|
|
1618
|
|
1619
|
0
|
1620
|
151
|
1621 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
|
284
|
1622 if test "$with_workshop $with_tooltalk" = "yes no"; then
|
|
1623 (echo "$progname: Usage error:"
|
|
1624 echo " " "--with-workshop requires --with-tooltalk"
|
|
1625 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
1626 elif test "$with_tooltalk" = "no" ; then with_workshop=no
|
|
1627 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
|
|
1628 fi
|
|
1629
|
151
|
1630 if test "$with_workshop" = "yes"; then
|
|
1631 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1632 Defining SUNPRO
|
|
1633 EOF
|
|
1634 cat >> confdefs.h <<\EOF
|
|
1635 #define SUNPRO 1
|
|
1636 EOF
|
|
1637 }
|
|
1638
|
|
1639 fi
|
|
1640
|
442
|
1641 if test "$with_clash_detection" != "no"; then
|
175
|
1642 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1643 Defining CLASH_DETECTION
|
|
1644 EOF
|
|
1645 cat >> confdefs.h <<\EOF
|
|
1646 #define CLASH_DETECTION 1
|
|
1647 EOF
|
|
1648 }
|
|
1649
|
|
1650 fi
|
|
1651
|
169
|
1652 test -n "$compiler" && CC="$compiler"
|
|
1653 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
|
|
1654 fi
|
149
|
1655
|
272
|
1656 test "${cflags-unset}" != unset && CFLAGS="$cflags"
|
|
1657 if test "${CFLAGS-unset}" != unset
|
|
1658 then cflags_specified=yes;
|
|
1659 else cflags_specified=no;
|
|
1660 fi
|
|
1661
|
1111
|
1662 if test "${cflags_warning-unset}" != unset
|
|
1663 then cflags_warning_specified=yes;
|
|
1664 else cflags_warning_specified=no;
|
|
1665 fi
|
|
1666
|
157
|
1667 xe_save_CFLAGS="$CFLAGS"
|
|
1668
|
149
|
1669 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1670 set dummy gcc; ac_word=$2
|
|
1671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1161
|
1672 echo "configure:1673: checking for $ac_word" >&5
|
149
|
1673
|
|
1674 if test -n "$CC"; then
|
|
1675 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1676 else
|
420
|
1677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1678 ac_dummy="$PATH"
|
|
1679 for ac_dir in $ac_dummy; do
|
149
|
1680 test -z "$ac_dir" && ac_dir=.
|
|
1681 if test -f $ac_dir/$ac_word; then
|
|
1682 ac_cv_prog_CC="gcc"
|
|
1683 break
|
|
1684 fi
|
|
1685 done
|
|
1686 IFS="$ac_save_ifs"
|
|
1687 fi
|
|
1688 CC="$ac_cv_prog_CC"
|
|
1689 if test -n "$CC"; then
|
|
1690 echo "$ac_t""$CC" 1>&6
|
|
1691 else
|
|
1692 echo "$ac_t""no" 1>&6
|
|
1693 fi
|
|
1694
|
|
1695 if test -z "$CC"; then
|
|
1696 # Extract the first word of "cc", so it can be a program name with args.
|
|
1697 set dummy cc; ac_word=$2
|
|
1698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1161
|
1699 echo "configure:1700: checking for $ac_word" >&5
|
149
|
1700
|
|
1701 if test -n "$CC"; then
|
|
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1703 else
|
420
|
1704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
149
|
1705 ac_prog_rejected=no
|
420
|
1706 ac_dummy="$PATH"
|
|
1707 for ac_dir in $ac_dummy; do
|
149
|
1708 test -z "$ac_dir" && ac_dir=.
|
|
1709 if test -f $ac_dir/$ac_word; then
|
|
1710 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1711 ac_prog_rejected=yes
|
|
1712 continue
|
|
1713 fi
|
|
1714 ac_cv_prog_CC="cc"
|
|
1715 break
|
|
1716 fi
|
|
1717 done
|
|
1718 IFS="$ac_save_ifs"
|
|
1719 if test $ac_prog_rejected = yes; then
|
|
1720 # We found a bogon in the path, so make sure we never use it.
|
|
1721 set dummy $ac_cv_prog_CC
|
|
1722 shift
|
|
1723 if test $# -gt 0; then
|
|
1724 # We chose a different compiler from the bogus one.
|
|
1725 # However, it has the same basename, so the bogon will be chosen
|
|
1726 # first if we set CC to just the basename; use the full file name.
|
|
1727 shift
|
|
1728 set dummy "$ac_dir/$ac_word" "$@"
|
|
1729 shift
|
|
1730 ac_cv_prog_CC="$@"
|
|
1731 fi
|
|
1732 fi
|
|
1733 fi
|
|
1734 CC="$ac_cv_prog_CC"
|
|
1735 if test -n "$CC"; then
|
|
1736 echo "$ac_t""$CC" 1>&6
|
|
1737 else
|
|
1738 echo "$ac_t""no" 1>&6
|
|
1739 fi
|
|
1740
|
420
|
1741 if test -z "$CC"; then
|
|
1742 case "`uname -s`" in
|
|
1743 *win32* | *WIN32*)
|
|
1744 # Extract the first word of "cl", so it can be a program name with args.
|
|
1745 set dummy cl; ac_word=$2
|
|
1746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1161
|
1747 echo "configure:1748: checking for $ac_word" >&5
|
420
|
1748
|
|
1749 if test -n "$CC"; then
|
|
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1751 else
|
|
1752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1753 ac_dummy="$PATH"
|
|
1754 for ac_dir in $ac_dummy; do
|
|
1755 test -z "$ac_dir" && ac_dir=.
|
|
1756 if test -f $ac_dir/$ac_word; then
|
|
1757 ac_cv_prog_CC="cl"
|
|
1758 break
|
|
1759 fi
|
|
1760 done
|
|
1761 IFS="$ac_save_ifs"
|
|
1762 fi
|
|
1763 CC="$ac_cv_prog_CC"
|
|
1764 if test -n "$CC"; then
|
|
1765 echo "$ac_t""$CC" 1>&6
|
|
1766 else
|
|
1767 echo "$ac_t""no" 1>&6
|
|
1768 fi
|
|
1769 ;;
|
|
1770 esac
|
|
1771 fi
|
149
|
1772 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1773 fi
|
|
1774
|
|
1775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
1161
|
1776 echo "configure:1777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
70
|
1777
|
0
|
1778 ac_ext=c
|
151
|
1779 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1780 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1781 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
|
1782 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
1783 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1784 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
1785 cross_compiling=no
|
|
1786
|
420
|
1787 cat > conftest.$ac_ext << EOF
|
|
1788
|
1161
|
1789 #line 1790 "configure"
|
420
|
1790 #include "confdefs.h"
|
|
1791
|
149
|
1792 main(){return(0);}
|
|
1793 EOF
|
1161
|
1794 if { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
1795 ac_cv_prog_cc_works=yes
|
|
1796 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
1797 if (./conftest; exit) 2>/dev/null; then
|
|
1798 ac_cv_prog_cc_cross=no
|
|
1799 else
|
|
1800 ac_cv_prog_cc_cross=yes
|
0
|
1801 fi
|
149
|
1802 else
|
|
1803 echo "configure: failed program was:" >&5
|
|
1804 cat conftest.$ac_ext >&5
|
|
1805 ac_cv_prog_cc_works=no
|
|
1806 fi
|
|
1807 rm -fr conftest*
|
420
|
1808 ac_ext=c
|
|
1809 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1810 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1811 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
|
1812 ac_cpp='$CPP '"$xe_cppflags"
|
|
1813 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1814 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
1815 cross_compiling=no
|
149
|
1816
|
|
1817 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
1818 if test $ac_cv_prog_cc_works = no; then
|
|
1819 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
1820 fi
|
|
1821 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
1161
|
1822 echo "configure:1823: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
149
|
1823 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
1824 cross_compiling=$ac_cv_prog_cc_cross
|
|
1825
|
|
1826 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
1161
|
1827 echo "configure:1828: checking whether we are using GNU C" >&5
|
149
|
1828
|
|
1829 cat > conftest.c <<EOF
|
|
1830 #ifdef __GNUC__
|
|
1831 yes;
|
|
1832 #endif
|
|
1833 EOF
|
1161
|
1834 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
149
|
1835 ac_cv_prog_gcc=yes
|
|
1836 else
|
|
1837 ac_cv_prog_gcc=no
|
|
1838 fi
|
|
1839
|
|
1840 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
1841
|
|
1842 if test $ac_cv_prog_gcc = yes; then
|
|
1843 GCC=yes
|
420
|
1844 else
|
|
1845 GCC=
|
|
1846 fi
|
|
1847
|
|
1848 ac_test_CFLAGS="${CFLAGS+set}"
|
|
1849 ac_save_CFLAGS="$CFLAGS"
|
|
1850 CFLAGS=
|
|
1851 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
1161
|
1852 echo "configure:1853: checking whether ${CC-cc} accepts -g" >&5
|
149
|
1853
|
|
1854 echo 'void f(){}' > conftest.c
|
|
1855 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
1856 ac_cv_prog_cc_g=yes
|
|
1857 else
|
|
1858 ac_cv_prog_cc_g=no
|
|
1859 fi
|
|
1860 rm -f conftest*
|
|
1861
|
|
1862
|
|
1863 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
1864 if test "$ac_test_CFLAGS" = set; then
|
|
1865 CFLAGS="$ac_save_CFLAGS"
|
|
1866 elif test $ac_cv_prog_cc_g = yes; then
|
|
1867 if test "$GCC" = yes; then
|
149
|
1868 CFLAGS="-g -O2"
|
0
|
1869 else
|
420
|
1870 CFLAGS="-g"
|
|
1871 fi
|
|
1872 else
|
|
1873 if test "$GCC" = yes; then
|
149
|
1874 CFLAGS="-O2"
|
420
|
1875 else
|
|
1876 CFLAGS=
|
|
1877 fi
|
149
|
1878 fi
|
169
|
1879
|
|
1880 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
|
149
|
1881 CC=${NON_GNU_CC-cc}
|
|
1882 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1883 set dummy gcc; ac_word=$2
|
|
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1161
|
1885 echo "configure:1886: checking for $ac_word" >&5
|
149
|
1886
|
|
1887 if test -n "$CC"; then
|
|
1888 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1889 else
|
420
|
1890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1891 ac_dummy="$PATH"
|
|
1892 for ac_dir in $ac_dummy; do
|
0
|
1893 test -z "$ac_dir" && ac_dir=.
|
|
1894 if test -f $ac_dir/$ac_word; then
|
149
|
1895 ac_cv_prog_CC="gcc"
|
|
1896 break
|
|
1897 fi
|
|
1898 done
|
|
1899 IFS="$ac_save_ifs"
|
|
1900 fi
|
|
1901 CC="$ac_cv_prog_CC"
|
|
1902 if test -n "$CC"; then
|
|
1903 echo "$ac_t""$CC" 1>&6
|
|
1904 else
|
|
1905 echo "$ac_t""no" 1>&6
|
|
1906 fi
|
|
1907
|
|
1908 if test -z "$CC"; then
|
|
1909 # Extract the first word of "cc", so it can be a program name with args.
|
|
1910 set dummy cc; ac_word=$2
|
|
1911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1161
|
1912 echo "configure:1913: checking for $ac_word" >&5
|
157
|
1913
|
|
1914 if test -n "$CC"; then
|
|
1915 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1916 else
|
420
|
1917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
157
|
1918 ac_prog_rejected=no
|
420
|
1919 ac_dummy="$PATH"
|
|
1920 for ac_dir in $ac_dummy; do
|
157
|
1921 test -z "$ac_dir" && ac_dir=.
|
|
1922 if test -f $ac_dir/$ac_word; then
|
|
1923 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1924 ac_prog_rejected=yes
|
|
1925 continue
|
|
1926 fi
|
|
1927 ac_cv_prog_CC="cc"
|
|
1928 break
|
|
1929 fi
|
|
1930 done
|
|
1931 IFS="$ac_save_ifs"
|
|
1932 if test $ac_prog_rejected = yes; then
|
|
1933 # We found a bogon in the path, so make sure we never use it.
|
|
1934 set dummy $ac_cv_prog_CC
|
|
1935 shift
|
|
1936 if test $# -gt 0; then
|
|
1937 # We chose a different compiler from the bogus one.
|
|
1938 # However, it has the same basename, so the bogon will be chosen
|
|
1939 # first if we set CC to just the basename; use the full file name.
|
|
1940 shift
|
|
1941 set dummy "$ac_dir/$ac_word" "$@"
|
|
1942 shift
|
|
1943 ac_cv_prog_CC="$@"
|
|
1944 fi
|
|
1945 fi
|
|
1946 fi
|
|
1947 CC="$ac_cv_prog_CC"
|
|
1948 if test -n "$CC"; then
|
|
1949 echo "$ac_t""$CC" 1>&6
|
|
1950 else
|
|
1951 echo "$ac_t""no" 1>&6
|
|
1952 fi
|
|
1953
|
420
|
1954 if test -z "$CC"; then
|
|
1955 case "`uname -s`" in
|
|
1956 *win32* | *WIN32*)
|
|
1957 # Extract the first word of "cl", so it can be a program name with args.
|
|
1958 set dummy cl; ac_word=$2
|
|
1959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1161
|
1960 echo "configure:1961: checking for $ac_word" >&5
|
420
|
1961
|
|
1962 if test -n "$CC"; then
|
|
1963 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1964 else
|
|
1965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1966 ac_dummy="$PATH"
|
|
1967 for ac_dir in $ac_dummy; do
|
|
1968 test -z "$ac_dir" && ac_dir=.
|
|
1969 if test -f $ac_dir/$ac_word; then
|
|
1970 ac_cv_prog_CC="cl"
|
|
1971 break
|
|
1972 fi
|
|
1973 done
|
|
1974 IFS="$ac_save_ifs"
|
|
1975 fi
|
|
1976 CC="$ac_cv_prog_CC"
|
|
1977 if test -n "$CC"; then
|
|
1978 echo "$ac_t""$CC" 1>&6
|
|
1979 else
|
|
1980 echo "$ac_t""no" 1>&6
|
|
1981 fi
|
|
1982 ;;
|
|
1983 esac
|
|
1984 fi
|
157
|
1985 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1986 fi
|
|
1987
|
|
1988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
1161
|
1989 echo "configure:1990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
157
|
1990
|
|
1991 ac_ext=c
|
|
1992 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1993 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1994 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
|
1995 ac_cpp='$CPP '"$xe_cppflags"
|
|
1996 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1997 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
1998 cross_compiling=no
|
|
1999
|
420
|
2000 cat > conftest.$ac_ext << EOF
|
|
2001
|
1161
|
2002 #line 2003 "configure"
|
420
|
2003 #include "confdefs.h"
|
|
2004
|
157
|
2005 main(){return(0);}
|
|
2006 EOF
|
1161
|
2007 if { (eval echo configure:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
157
|
2008 ac_cv_prog_cc_works=yes
|
|
2009 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
2010 if (./conftest; exit) 2>/dev/null; then
|
|
2011 ac_cv_prog_cc_cross=no
|
|
2012 else
|
|
2013 ac_cv_prog_cc_cross=yes
|
|
2014 fi
|
|
2015 else
|
|
2016 echo "configure: failed program was:" >&5
|
|
2017 cat conftest.$ac_ext >&5
|
|
2018 ac_cv_prog_cc_works=no
|
|
2019 fi
|
|
2020 rm -fr conftest*
|
420
|
2021 ac_ext=c
|
|
2022 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2023 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2024 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
|
2025 ac_cpp='$CPP '"$xe_cppflags"
|
|
2026 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2027 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
2028 cross_compiling=no
|
157
|
2029
|
|
2030 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
2031 if test $ac_cv_prog_cc_works = no; then
|
|
2032 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
2033 fi
|
|
2034 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
1161
|
2035 echo "configure:2036: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
157
|
2036 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
2037 cross_compiling=$ac_cv_prog_cc_cross
|
|
2038
|
|
2039 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
1161
|
2040 echo "configure:2041: checking whether we are using GNU C" >&5
|
157
|
2041
|
|
2042 cat > conftest.c <<EOF
|
|
2043 #ifdef __GNUC__
|
|
2044 yes;
|
|
2045 #endif
|
|
2046 EOF
|
1161
|
2047 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
157
|
2048 ac_cv_prog_gcc=yes
|
|
2049 else
|
|
2050 ac_cv_prog_gcc=no
|
|
2051 fi
|
|
2052
|
|
2053 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
2054
|
|
2055 if test $ac_cv_prog_gcc = yes; then
|
|
2056 GCC=yes
|
420
|
2057 else
|
|
2058 GCC=
|
|
2059 fi
|
|
2060
|
|
2061 ac_test_CFLAGS="${CFLAGS+set}"
|
|
2062 ac_save_CFLAGS="$CFLAGS"
|
|
2063 CFLAGS=
|
|
2064 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
1161
|
2065 echo "configure:2066: checking whether ${CC-cc} accepts -g" >&5
|
157
|
2066
|
|
2067 echo 'void f(){}' > conftest.c
|
|
2068 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
2069 ac_cv_prog_cc_g=yes
|
|
2070 else
|
|
2071 ac_cv_prog_cc_g=no
|
|
2072 fi
|
|
2073 rm -f conftest*
|
|
2074
|
|
2075
|
|
2076 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
2077 if test "$ac_test_CFLAGS" = set; then
|
|
2078 CFLAGS="$ac_save_CFLAGS"
|
|
2079 elif test $ac_cv_prog_cc_g = yes; then
|
|
2080 if test "$GCC" = yes; then
|
157
|
2081 CFLAGS="-g -O2"
|
|
2082 else
|
420
|
2083 CFLAGS="-g"
|
|
2084 fi
|
|
2085 else
|
|
2086 if test "$GCC" = yes; then
|
157
|
2087 CFLAGS="-O2"
|
420
|
2088 else
|
|
2089 CFLAGS=
|
|
2090 fi
|
157
|
2091 fi
|
|
2092
|
169
|
2093 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
|
157
|
2094 CC=gcc
|
|
2095 # Extract the first word of "gcc", so it can be a program name with args.
|
|
2096 set dummy gcc; ac_word=$2
|
|
2097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1161
|
2098 echo "configure:2099: checking for $ac_word" >&5
|
157
|
2099
|
|
2100 if test -n "$CC"; then
|
|
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2102 else
|
420
|
2103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2104 ac_dummy="$PATH"
|
|
2105 for ac_dir in $ac_dummy; do
|
157
|
2106 test -z "$ac_dir" && ac_dir=.
|
|
2107 if test -f $ac_dir/$ac_word; then
|
|
2108 ac_cv_prog_CC="gcc"
|
|
2109 break
|
|
2110 fi
|
|
2111 done
|
|
2112 IFS="$ac_save_ifs"
|
|
2113 fi
|
|
2114 CC="$ac_cv_prog_CC"
|
|
2115 if test -n "$CC"; then
|
|
2116 echo "$ac_t""$CC" 1>&6
|
|
2117 else
|
|
2118 echo "$ac_t""no" 1>&6
|
|
2119 fi
|
|
2120
|
|
2121 if test -z "$CC"; then
|
|
2122 # Extract the first word of "cc", so it can be a program name with args.
|
|
2123 set dummy cc; ac_word=$2
|
|
2124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1161
|
2125 echo "configure:2126: checking for $ac_word" >&5
|
149
|
2126
|
|
2127 if test -n "$CC"; then
|
|
2128 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2129 else
|
420
|
2130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
149
|
2131 ac_prog_rejected=no
|
420
|
2132 ac_dummy="$PATH"
|
|
2133 for ac_dir in $ac_dummy; do
|
149
|
2134 test -z "$ac_dir" && ac_dir=.
|
|
2135 if test -f $ac_dir/$ac_word; then
|
|
2136 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
2137 ac_prog_rejected=yes
|
|
2138 continue
|
|
2139 fi
|
|
2140 ac_cv_prog_CC="cc"
|
|
2141 break
|
|
2142 fi
|
|
2143 done
|
|
2144 IFS="$ac_save_ifs"
|
|
2145 if test $ac_prog_rejected = yes; then
|
|
2146 # We found a bogon in the path, so make sure we never use it.
|
|
2147 set dummy $ac_cv_prog_CC
|
|
2148 shift
|
|
2149 if test $# -gt 0; then
|
|
2150 # We chose a different compiler from the bogus one.
|
|
2151 # However, it has the same basename, so the bogon will be chosen
|
|
2152 # first if we set CC to just the basename; use the full file name.
|
|
2153 shift
|
|
2154 set dummy "$ac_dir/$ac_word" "$@"
|
|
2155 shift
|
|
2156 ac_cv_prog_CC="$@"
|
|
2157 fi
|
|
2158 fi
|
|
2159 fi
|
|
2160 CC="$ac_cv_prog_CC"
|
|
2161 if test -n "$CC"; then
|
|
2162 echo "$ac_t""$CC" 1>&6
|
|
2163 else
|
|
2164 echo "$ac_t""no" 1>&6
|
|
2165 fi
|
|
2166
|
420
|
2167 if test -z "$CC"; then
|
|
2168 case "`uname -s`" in
|
|
2169 *win32* | *WIN32*)
|
|
2170 # Extract the first word of "cl", so it can be a program name with args.
|
|
2171 set dummy cl; ac_word=$2
|
|
2172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1161
|
2173 echo "configure:2174: checking for $ac_word" >&5
|
420
|
2174
|
|
2175 if test -n "$CC"; then
|
|
2176 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2177 else
|
|
2178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2179 ac_dummy="$PATH"
|
|
2180 for ac_dir in $ac_dummy; do
|
|
2181 test -z "$ac_dir" && ac_dir=.
|
|
2182 if test -f $ac_dir/$ac_word; then
|
|
2183 ac_cv_prog_CC="cl"
|
|
2184 break
|
|
2185 fi
|
|
2186 done
|
|
2187 IFS="$ac_save_ifs"
|
|
2188 fi
|
|
2189 CC="$ac_cv_prog_CC"
|
|
2190 if test -n "$CC"; then
|
|
2191 echo "$ac_t""$CC" 1>&6
|
|
2192 else
|
|
2193 echo "$ac_t""no" 1>&6
|
|
2194 fi
|
|
2195 ;;
|
|
2196 esac
|
|
2197 fi
|
149
|
2198 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
2199 fi
|
|
2200
|
|
2201 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
1161
|
2202 echo "configure:2203: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
149
|
2203
|
|
2204 ac_ext=c
|
151
|
2205 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2206 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2207 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
|
2208 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
2209 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2210 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
2211 cross_compiling=no
|
|
2212
|
420
|
2213 cat > conftest.$ac_ext << EOF
|
|
2214
|
1161
|
2215 #line 2216 "configure"
|
420
|
2216 #include "confdefs.h"
|
|
2217
|
149
|
2218 main(){return(0);}
|
|
2219 EOF
|
1161
|
2220 if { (eval echo configure:2221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
2221 ac_cv_prog_cc_works=yes
|
|
2222 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
2223 if (./conftest; exit) 2>/dev/null; then
|
|
2224 ac_cv_prog_cc_cross=no
|
|
2225 else
|
|
2226 ac_cv_prog_cc_cross=yes
|
|
2227 fi
|
|
2228 else
|
|
2229 echo "configure: failed program was:" >&5
|
|
2230 cat conftest.$ac_ext >&5
|
|
2231 ac_cv_prog_cc_works=no
|
|
2232 fi
|
|
2233 rm -fr conftest*
|
420
|
2234 ac_ext=c
|
|
2235 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2236 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2237 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
|
2238 ac_cpp='$CPP '"$xe_cppflags"
|
|
2239 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2240 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
2241 cross_compiling=no
|
149
|
2242
|
|
2243 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
2244 if test $ac_cv_prog_cc_works = no; then
|
|
2245 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
2246 fi
|
|
2247 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
1161
|
2248 echo "configure:2249: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
149
|
2249 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
2250 cross_compiling=$ac_cv_prog_cc_cross
|
|
2251
|
|
2252 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
1161
|
2253 echo "configure:2254: checking whether we are using GNU C" >&5
|
149
|
2254
|
|
2255 cat > conftest.c <<EOF
|
|
2256 #ifdef __GNUC__
|
|
2257 yes;
|
|
2258 #endif
|
|
2259 EOF
|
1161
|
2260 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
149
|
2261 ac_cv_prog_gcc=yes
|
|
2262 else
|
|
2263 ac_cv_prog_gcc=no
|
|
2264 fi
|
|
2265
|
|
2266 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
2267
|
|
2268 if test $ac_cv_prog_gcc = yes; then
|
|
2269 GCC=yes
|
420
|
2270 else
|
|
2271 GCC=
|
|
2272 fi
|
|
2273
|
|
2274 ac_test_CFLAGS="${CFLAGS+set}"
|
|
2275 ac_save_CFLAGS="$CFLAGS"
|
|
2276 CFLAGS=
|
|
2277 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
1161
|
2278 echo "configure:2279: checking whether ${CC-cc} accepts -g" >&5
|
149
|
2279
|
|
2280 echo 'void f(){}' > conftest.c
|
|
2281 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
2282 ac_cv_prog_cc_g=yes
|
|
2283 else
|
|
2284 ac_cv_prog_cc_g=no
|
|
2285 fi
|
|
2286 rm -f conftest*
|
|
2287
|
|
2288
|
|
2289 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
2290 if test "$ac_test_CFLAGS" = set; then
|
|
2291 CFLAGS="$ac_save_CFLAGS"
|
|
2292 elif test $ac_cv_prog_cc_g = yes; then
|
|
2293 if test "$GCC" = yes; then
|
149
|
2294 CFLAGS="-g -O2"
|
|
2295 else
|
420
|
2296 CFLAGS="-g"
|
|
2297 fi
|
|
2298 else
|
|
2299 if test "$GCC" = yes; then
|
149
|
2300 CFLAGS="-O2"
|
420
|
2301 else
|
|
2302 CFLAGS=
|
|
2303 fi
|
149
|
2304 fi
|
|
2305
|
157
|
2306 fi
|
|
2307 CFLAGS="$xe_save_CFLAGS"
|
149
|
2308
|
1123
|
2309 if test "$GCC" = "yes"; then
|
|
2310 cat > conftest.$ac_ext <<EOF
|
1161
|
2311 #line 2312 "configure"
|
1123
|
2312 #include "confdefs.h"
|
|
2313 int main () {
|
|
2314 #if __GNUC__ >= 3
|
|
2315 return 11;
|
|
2316 #else
|
|
2317 return 0;
|
|
2318 #endif
|
|
2319 }
|
|
2320 EOF
|
1161
|
2321 if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
1123
|
2322 then
|
|
2323 :
|
|
2324 else
|
|
2325 conftest_rc="$?"
|
|
2326 echo "configure: failed program was:" >&5
|
|
2327 cat conftest.$ac_ext >&5
|
|
2328 rm -fr conftest*
|
|
2329 case "$conftest_rc" in
|
|
2330 11) echo "You appear to be using GCC version 3 or above."; __GCC3=yes ;;
|
|
2331 esac
|
|
2332 fi
|
|
2333 rm -fr conftest*
|
|
2334 fi
|
|
2335
|
171
|
2336
|
|
2337 test -n "$CPP" -a -d "$CPP" && CPP=
|
|
2338
|
169
|
2339 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
|
149
|
2340
|
|
2341 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
1161
|
2342 echo "configure:2343: checking how to run the C preprocessor" >&5
|
149
|
2343 # On Suns, sometimes $CPP names a directory.
|
|
2344 if test -n "$CPP" && test -d "$CPP"; then
|
|
2345 CPP=
|
|
2346 fi
|
0
|
2347 if test -z "$CPP"; then
|
149
|
2348
|
0
|
2349 # This must be in double quotes, not single quotes, because CPP may get
|
149
|
2350 # substituted into the Makefile and "${CC-cc}" will confuse make.
|
0
|
2351 CPP="${CC-cc} -E"
|
149
|
2352 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
2353 # not just through cpp.
|
|
2354 cat > conftest.$ac_ext <<EOF
|
1161
|
2355 #line 2356 "configure"
|
149
|
2356 #include "confdefs.h"
|
|
2357 #include <assert.h>
|
0
|
2358 Syntax Error
|
|
2359 EOF
|
149
|
2360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
2361 { (eval echo configure:2362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
2363 if test -z "$ac_err"; then
|
|
2364 :
|
|
2365 else
|
|
2366 echo "$ac_err" >&5
|
|
2367 echo "configure: failed program was:" >&5
|
|
2368 cat conftest.$ac_ext >&5
|
|
2369 rm -rf conftest*
|
|
2370 CPP="${CC-cc} -E -traditional-cpp"
|
|
2371 cat > conftest.$ac_ext <<EOF
|
1161
|
2372 #line 2373 "configure"
|
149
|
2373 #include "confdefs.h"
|
|
2374 #include <assert.h>
|
|
2375 Syntax Error
|
|
2376 EOF
|
|
2377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
2378 { (eval echo configure:2379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
2380 if test -z "$ac_err"; then
|
|
2381 :
|
|
2382 else
|
|
2383 echo "$ac_err" >&5
|
|
2384 echo "configure: failed program was:" >&5
|
|
2385 cat conftest.$ac_ext >&5
|
|
2386 rm -rf conftest*
|
|
2387 CPP="${CC-cc} -nologo -E"
|
|
2388 cat > conftest.$ac_ext <<EOF
|
1161
|
2389 #line 2390 "configure"
|
420
|
2390 #include "confdefs.h"
|
|
2391 #include <assert.h>
|
|
2392 Syntax Error
|
|
2393 EOF
|
|
2394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
2395 { (eval echo configure:2396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
2397 if test -z "$ac_err"; then
|
|
2398 :
|
|
2399 else
|
149
|
2400 echo "$ac_err" >&5
|
|
2401 echo "configure: failed program was:" >&5
|
|
2402 cat conftest.$ac_ext >&5
|
0
|
2403 rm -rf conftest*
|
|
2404 CPP=/lib/cpp
|
|
2405 fi
|
|
2406 rm -f conftest*
|
|
2407 fi
|
|
2408 rm -f conftest*
|
420
|
2409 fi
|
|
2410 rm -f conftest*
|
149
|
2411 ac_cv_prog_CPP="$CPP"
|
|
2412 CPP="$ac_cv_prog_CPP"
|
|
2413 else
|
|
2414 ac_cv_prog_CPP="$CPP"
|
|
2415 fi
|
|
2416 echo "$ac_t""$CPP" 1>&6
|
|
2417
|
|
2418
|
442
|
2419
|
157
|
2420 echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
1161
|
2421 echo "configure:2422: checking for AIX" >&5
|
|
2422 cat > conftest.$ac_ext <<EOF
|
|
2423 #line 2424 "configure"
|
157
|
2424 #include "confdefs.h"
|
|
2425 #ifdef _AIX
|
|
2426 yes
|
|
2427 #endif
|
|
2428
|
|
2429 EOF
|
|
2430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
2431 egrep "yes" >/dev/null 2>&1; then
|
|
2432 rm -rf conftest*
|
|
2433 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2434 Defining _ALL_SOURCE
|
|
2435 EOF
|
|
2436 cat >> confdefs.h <<\EOF
|
|
2437 #define _ALL_SOURCE 1
|
|
2438 EOF
|
|
2439 }
|
|
2440
|
|
2441 else
|
|
2442 rm -rf conftest*
|
|
2443 echo "$ac_t""no" 1>&6
|
|
2444 fi
|
|
2445 rm -f conftest*
|
|
2446
|
442
|
2447
|
410
|
2448
|
|
2449 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
|
1161
|
2450 echo "configure:2451: checking for GNU libc" >&5
|
|
2451 cat > conftest.$ac_ext <<EOF
|
|
2452 #line 2453 "configure"
|
406
|
2453 #include "confdefs.h"
|
243
|
2454 #include <features.h>
|
|
2455 int main() {
|
|
2456
|
|
2457 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
|
|
2458 #error Not a GNU libc system :-(
|
|
2459 ******* ======= ******** &&&&&&&&
|
|
2460 #endif
|
|
2461
|
|
2462 ; return 0; }
|
|
2463 EOF
|
1161
|
2464 if { (eval echo configure:2465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
243
|
2465 rm -rf conftest*
|
|
2466 have_glibc=yes
|
|
2467 else
|
|
2468 echo "configure: failed program was:" >&5
|
|
2469 cat conftest.$ac_ext >&5
|
|
2470 rm -rf conftest*
|
|
2471 have_glibc=no
|
|
2472 fi
|
|
2473 rm -f conftest*
|
|
2474 echo "$ac_t""$have_glibc" 1>&6
|
272
|
2475 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2476 Defining _GNU_SOURCE
|
|
2477 EOF
|
|
2478 cat >> confdefs.h <<\EOF
|
|
2479 #define _GNU_SOURCE 1
|
|
2480 EOF
|
|
2481 }
|
|
2482
|
243
|
2483
|
442
|
2484 case "$opsys" in
|
|
2485 sol2)
|
|
2486 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2487 Defining __EXTENSIONS__
|
|
2488 EOF
|
|
2489 cat >> confdefs.h <<\EOF
|
|
2490 #define __EXTENSIONS__ 1
|
|
2491 EOF
|
|
2492 }
|
|
2493
|
|
2494 if test "$os_release" -ge 55; then
|
|
2495 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2496 Defining _XOPEN_SOURCE = 500
|
|
2497 EOF
|
|
2498 cat >> confdefs.h <<\EOF
|
|
2499 #define _XOPEN_SOURCE 500
|
|
2500 EOF
|
|
2501 }
|
|
2502
|
|
2503 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2504 Defining _XOPEN_SOURCE_EXTENDED
|
|
2505 EOF
|
|
2506 cat >> confdefs.h <<\EOF
|
|
2507 #define _XOPEN_SOURCE_EXTENDED 1
|
|
2508 EOF
|
|
2509 }
|
|
2510
|
|
2511 fi ;;
|
|
2512 linux)
|
|
2513 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2514 Defining _POSIX_C_SOURCE = 199506L
|
|
2515 EOF
|
|
2516 cat >> confdefs.h <<\EOF
|
|
2517 #define _POSIX_C_SOURCE 199506L
|
|
2518 EOF
|
|
2519 }
|
|
2520
|
|
2521 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2522 Defining _XOPEN_SOURCE = 500
|
|
2523 EOF
|
|
2524 cat >> confdefs.h <<\EOF
|
|
2525 #define _XOPEN_SOURCE 500
|
|
2526 EOF
|
|
2527 }
|
|
2528
|
|
2529 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2530 Defining _XOPEN_SOURCE_EXTENDED
|
|
2531 EOF
|
|
2532 cat >> confdefs.h <<\EOF
|
|
2533 #define _XOPEN_SOURCE_EXTENDED 1
|
|
2534 EOF
|
|
2535 }
|
|
2536
|
|
2537 ;;
|
|
2538 esac
|
|
2539
|
|
2540 cat > conftest.$ac_ext <<EOF
|
1161
|
2541 #line 2542 "configure"
|
373
|
2542 #include "confdefs.h"
|
|
2543 int main () {
|
|
2544 #if defined __SUNPRO_C
|
|
2545 return 11;
|
|
2546 #elif defined __DECC
|
|
2547 return 12;
|
442
|
2548 #elif defined __USLC__ && defined __SCO_VERSION__
|
|
2549 return 13;
|
373
|
2550 #else
|
|
2551 return 0;
|
|
2552 #endif
|
|
2553 }
|
|
2554 EOF
|
1161
|
2555 if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
373
|
2556 then
|
|
2557 :
|
|
2558 else
|
|
2559 conftest_rc="$?"
|
|
2560 echo "configure: failed program was:" >&5
|
|
2561 cat conftest.$ac_ext >&5
|
|
2562 rm -fr conftest*
|
|
2563 case "$conftest_rc" in
|
|
2564 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
|
|
2565 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
|
442
|
2566 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
|
373
|
2567 esac
|
|
2568 fi
|
|
2569 rm -fr conftest*
|
|
2570
|
157
|
2571
|
0
|
2572
|
149
|
2573
|
|
2574 echo "Extracting information from the machine- and system-dependent headers..."
|
|
2575
|
|
2576 tempcname="conftest.c"
|
|
2577
|
|
2578
|
|
2579
|
442
|
2580 cat > $tempcname < confdefs.h
|
|
2581 cat >> $tempcname <<EOF
|
149
|
2582 #define NOT_C_CODE
|
|
2583 #define C_SWITCH_SITE
|
|
2584 #define C_SWITCH_X_SITE
|
|
2585 #define LD_SWITCH_SITE
|
|
2586 #define LD_SWITCH_X_SITE
|
|
2587 #define LD_SWITCH_X_SITE_AUX
|
284
|
2588 #define OS_RELEASE $os_release
|
442
|
2589
|
|
2590 #ifdef config_opsysfile
|
284
|
2591 #include "$srcdir/src/$opsysfile"
|
442
|
2592 #endif
|
|
2593
|
|
2594 #ifdef config_machfile
|
284
|
2595 #include "$srcdir/src/$machfile"
|
442
|
2596 #endif
|
149
|
2597
|
|
2598 #ifndef LIBS_MACHINE
|
151
|
2599 #define LIBS_MACHINE
|
149
|
2600 #endif
|
|
2601 configure___ libs_machine=LIBS_MACHINE
|
|
2602
|
|
2603 #ifndef LIBS_SYSTEM
|
151
|
2604 #define LIBS_SYSTEM
|
149
|
2605 #endif
|
|
2606 configure___ libs_system=LIBS_SYSTEM
|
|
2607
|
|
2608 #ifndef LIBS_TERMCAP
|
151
|
2609 #define LIBS_TERMCAP
|
149
|
2610 #endif
|
|
2611 configure___ libs_termcap=LIBS_TERMCAP
|
|
2612
|
|
2613 #ifndef LIB_STANDARD
|
151
|
2614 #define LIB_STANDARD
|
149
|
2615 #endif
|
|
2616 configure___ libs_standard=LIB_STANDARD
|
|
2617
|
|
2618
|
163
|
2619 #ifndef OBJECTS_MACHINE
|
|
2620 #define OBJECTS_MACHINE
|
|
2621 #endif
|
|
2622 configure___ objects_machine=OBJECTS_MACHINE
|
|
2623
|
|
2624 #ifndef OBJECTS_SYSTEM
|
|
2625 #define OBJECTS_SYSTEM
|
|
2626 #endif
|
|
2627 configure___ objects_system=OBJECTS_SYSTEM
|
|
2628
|
|
2629
|
149
|
2630 #ifndef C_SWITCH_MACHINE
|
151
|
2631 #define C_SWITCH_MACHINE
|
149
|
2632 #endif
|
|
2633 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
2634
|
157
|
2635 #ifndef C_SWITCH_SYSTEM
|
|
2636 #define C_SWITCH_SYSTEM
|
|
2637 #endif
|
|
2638 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
2639
|
|
2640
|
|
2641 #ifndef LD_SWITCH_MACHINE
|
|
2642 #define LD_SWITCH_MACHINE
|
|
2643 #endif
|
|
2644 configure___ ld_switch_machine=LD_SWITCH_MACHINE
|
|
2645
|
|
2646 #ifndef LD_SWITCH_SYSTEM
|
|
2647 #define LD_SWITCH_SYSTEM
|
|
2648 #endif
|
|
2649 configure___ ld_switch_system=LD_SWITCH_SYSTEM
|
|
2650
|
149
|
2651
|
|
2652 #ifndef UNEXEC
|
561
|
2653 #define UNEXEC
|
149
|
2654 #endif
|
|
2655 configure___ unexec=UNEXEC
|
|
2656
|
|
2657
|
561
|
2658 #ifndef SYSTEM_TYPE
|
|
2659 #define SYSTEM_TYPE
|
|
2660 #endif
|
|
2661 configure___ system_type=SYSTEM_TYPE
|
|
2662
|
|
2663
|
163
|
2664 #ifndef LD_SWITCH_SHARED
|
|
2665 #define LD_SWITCH_SHARED "-c"
|
|
2666 #endif
|
|
2667 configure___ ld_switch_shared=LD_SWITCH_SHARED
|
|
2668
|
|
2669
|
442
|
2670 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
|
|
2671 configure___ ordinary_ld=ORDINARY_LD
|
|
2672
|
163
|
2673 #ifdef ORDINARY_LINK
|
442
|
2674 #define LD ORDINARY_LD
|
163
|
2675 #else /* no ORDINARY LINK */
|
|
2676 #ifdef COFF_ENCAPSULATE
|
284
|
2677 #define LD "\$(CC) -nostdlib"
|
163
|
2678 #else /* not COFF_ENCAPSULATE */
|
|
2679 #ifdef LINKER
|
|
2680 #define LD LINKER
|
|
2681 #else /* ! defined (LINKER) */
|
|
2682 #define LD "ld"
|
|
2683 #endif /* ! defined (LINKER) */
|
|
2684 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
2685 #endif /* not ORDINARY_LINK */
|
|
2686 configure___ ld=LD
|
|
2687
|
|
2688 #ifndef LIB_GCC
|
|
2689 #define LIB_GCC
|
|
2690 #endif
|
|
2691 configure___ lib_gcc=LIB_GCC
|
|
2692
|
|
2693 #ifndef LD_TEXT_START_ADDR
|
|
2694 #define LD_TEXT_START_ADDR
|
|
2695 #endif
|
|
2696 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
|
|
2697
|
|
2698
|
|
2699 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
|
|
2700 #ifdef NO_REMAP
|
|
2701 #ifdef COFF_ENCAPSULATE
|
|
2702 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
|
|
2703 #else /* ! defined (COFF_ENCAPSULATE) */
|
|
2704 #define START_FILES "pre-crt0.o /lib/crt0.o"
|
|
2705 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
2706 #else /* ! defined (NO_REMAP) */
|
|
2707 #define START_FILES "ecrt0.o"
|
|
2708 #endif /* ! defined (NO_REMAP) */
|
|
2709 #endif /* no ORDINARY_LINK */
|
|
2710 #ifndef START_FILES
|
|
2711 #define START_FILES
|
|
2712 #endif
|
|
2713 configure___ start_files=START_FILES
|
|
2714
|
153
|
2715 #ifdef ORDINARY_LINK
|
|
2716 configure___ ordinary_link=yes
|
|
2717 #else
|
|
2718 configure___ ordinary_link=no
|
|
2719 #endif
|
|
2720
|
149
|
2721 #ifdef SYSTEM_MALLOC
|
|
2722 configure___ system_malloc=yes
|
|
2723 #else
|
|
2724 configure___ system_malloc=no
|
|
2725 #endif
|
|
2726
|
|
2727 #ifdef TERMINFO
|
|
2728 configure___ have_terminfo=yes
|
|
2729 #else
|
|
2730 configure___ have_terminfo=no
|
|
2731 #endif
|
|
2732
|
|
2733 #ifdef MAIL_USE_FLOCK
|
|
2734 configure___ mail_use_flock=yes
|
|
2735 #else
|
|
2736 configure___ mail_use_flock=no
|
|
2737 #endif
|
|
2738
|
|
2739 #ifdef MAIL_USE_LOCKF
|
|
2740 configure___ mail_use_lockf=yes
|
|
2741 #else
|
|
2742 configure___ mail_use_lockf=no
|
|
2743 #endif
|
|
2744
|
438
|
2745 #ifdef MAIL_USE_LOCKING
|
|
2746 configure___ mail_use_locking=yes
|
|
2747 #else
|
|
2748 configure___ mail_use_locking=no
|
|
2749 #endif
|
|
2750
|
398
|
2751 #ifdef HAVE_WIN32_PROCESSES
|
|
2752 configure___ win32_processes=yes
|
|
2753 #else
|
|
2754 configure___ win32_processes=no
|
|
2755 #endif
|
|
2756
|
284
|
2757 EOF
|
|
2758
|
380
|
2759 CPP=`eval "echo $CPP $CPPFLAGS"`
|
149
|
2760 eval `$CPP -Isrc $tempcname \
|
165
|
2761 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
|
153
|
2762
|
149
|
2763 rm $tempcname
|
|
2764
|
561
|
2765 test -z "$system_type" && \
|
|
2766 { test "$extra_verbose" = "yes" && cat << EOF
|
|
2767 Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
|
|
2768 EOF
|
|
2769 cat >> confdefs.h <<EOF
|
|
2770 #define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
|
|
2771 EOF
|
|
2772 }
|
|
2773
|
|
2774
|
|
2775 test -z "$unexec" && pdump=yes
|
|
2776
|
442
|
2777 if test "$pdump" = "yes"; then
|
|
2778 ordinary_link="yes"
|
|
2779 ld="${ordinary_ld}"
|
|
2780 start_files=
|
|
2781 libs_standard=
|
|
2782 unexec=
|
|
2783 lib_gcc=
|
|
2784 fi
|
|
2785
|
163
|
2786 test "$extra_verbose" = "yes" && \
|
201
|
2787 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
|
2788
|
458
|
2789 case "$opsys" in mingw* | cygwin*)
|
452
|
2790 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
|
|
2791 cygwin_include=`eval "dirname $cygwin_include"` ;
|
|
2792 cygwin_include="-I$cygwin_include/../include" ;
|
462
|
2793 extra_includes="$cygwin_include/mingw $cygwin_include" ;
|
458
|
2794 case "$opsys" in mingw*)
|
452
|
2795 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
|
|
2796 esac
|
458
|
2797 ;;
|
438
|
2798 esac
|
|
2799
|
153
|
2800 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
|
|
2801
|
442
|
2802
|
|
2803 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
|
|
2804
|
|
2805 if test "$__USLC__" = yes; then
|
|
2806 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
|
1161
|
2807 echo "configure:2808: checking for whether the -Kalloca compiler flag is needed" >&5
|
442
|
2808 need_kalloca=no
|
|
2809 cat > conftest.$ac_ext <<EOF
|
1161
|
2810 #line 2811 "configure"
|
442
|
2811 #include "confdefs.h"
|
|
2812
|
|
2813 int main() {
|
|
2814 void *x = alloca(4);
|
|
2815 ; return 0; }
|
|
2816 EOF
|
1161
|
2817 if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
2818 rm -rf conftest*
|
|
2819 :
|
|
2820 else
|
|
2821 echo "configure: failed program was:" >&5
|
|
2822 cat conftest.$ac_ext >&5
|
|
2823 rm -rf conftest*
|
|
2824
|
|
2825 xe_save_c_switch_system="$c_switch_system"
|
|
2826 c_switch_system="$c_switch_system -Kalloca"
|
|
2827 cat > conftest.$ac_ext <<EOF
|
1161
|
2828 #line 2829 "configure"
|
442
|
2829 #include "confdefs.h"
|
|
2830
|
|
2831 int main() {
|
|
2832 void *x = alloca(4);
|
|
2833 ; return 0; }
|
|
2834 EOF
|
1161
|
2835 if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
2836 rm -rf conftest*
|
|
2837 need_kalloca=yes
|
|
2838 else
|
|
2839 echo "configure: failed program was:" >&5
|
|
2840 cat conftest.$ac_ext >&5
|
|
2841 fi
|
|
2842 rm -f conftest*
|
|
2843 c_switch_system="$xe_save_c_switch_system"
|
|
2844 fi
|
|
2845 rm -f conftest*
|
|
2846 echo "$ac_t""$need_kalloca" 1>&6
|
|
2847 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
|
|
2848 fi
|
373
|
2849
|
272
|
2850 if test "$cflags_specified" = "no"; then
|
1123
|
2851 if test "$GCC" = "yes"; then
|
1111
|
2852 CFLAGS="-g -O3"
|
398
|
2853 elif test "$__SUNPRO_C" = "yes"; then
|
157
|
2854 case "$opsys" in
|
1111
|
2855 sol2 ) CFLAGS="-xO4" ;;
|
|
2856 sunos4* ) CFLAGS="-xO2" ;;
|
157
|
2857 esac
|
373
|
2858 elif test "$__DECC" = "yes"; then
|
|
2859 CFLAGS="-O3"
|
207
|
2860 elif test "$CC" = "xlc"; then
|
1111
|
2861 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qro -qmaxmem=20000"
|
373
|
2862 else
|
|
2863 CFLAGS="-O" ; fi
|
272
|
2864 fi
|
|
2865
|
1111
|
2866
|
|
2867 if test "$cflags_warning_specified" = "no"; then
|
1123
|
2868 if test "$GCC" = "yes"; then
|
1111
|
2869 cflags_warning="-Wall -Wno-switch -Winline -Wmissing-prototypes"
|
|
2870 cflags_warning="$cflags_warning -Wsign-compare"
|
1123
|
2871 cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes"
|
|
2872 if test "$__GCC3" = "yes"; then
|
|
2873 cflags_warning="$cflags_warning -Wpacked"
|
|
2874 fi
|
1111
|
2875 if test "$xemacs_compiler" != "g++"; then
|
|
2876 cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations"
|
|
2877 else
|
|
2878 cflags_warning="$cflags_warning -Weffc++"
|
|
2879 fi
|
|
2880 test "$have_glibc" != "yes" && \
|
|
2881 cflags_warning="$cflags_warning -Wpointer-arith"
|
|
2882 elif test "$__SUNPRO_C" = "yes"; then
|
|
2883 case "$opsys" in
|
|
2884 sol2 ) cflags_warning="-v" ;;
|
|
2885 esac
|
|
2886 elif test "$CC" = "xlc"; then
|
|
2887 cflags_warning="-qinfo"
|
|
2888 fi
|
|
2889 fi
|
|
2890
|
|
2891 CFLAGS="$cflags_warning $CFLAGS"
|
|
2892
|
442
|
2893 if test "$GCC" = "yes"; then
|
|
2894 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
|
1161
|
2895 echo "configure:2896: checking for buggy gcc versions" >&5
|
442
|
2896 GCC_VERSION=`$CC --version`
|
|
2897 case `uname -s`:`uname -m`:$GCC_VERSION in
|
|
2898 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
|
|
2899 case "$CFLAGS" in
|
|
2900 *-O2*|*-O3*)
|
|
2901 case "$CFLAGS" in
|
|
2902 *-fno-schedule-insns*) ;;
|
|
2903 *)
|
|
2904 echo "$ac_t""yes" 1>&6
|
|
2905 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
|
|
2906 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
|
|
2907 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2908 ;;
|
|
2909 esac
|
|
2910 ;;
|
|
2911 esac
|
|
2912 ;;
|
|
2913 Linux:alpha:egcs-2.91.*)
|
|
2914 echo "$ac_t""yes" 1>&6
|
|
2915 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
|
|
2916 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
|
|
2917 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2918 ;;
|
|
2919 *:i*86*:2.7.2*)
|
448
|
2920 case "$CFLAGS" in
|
|
2921 *-O2*|*-O3*)
|
|
2922 case "$GCC_VERSION" in
|
|
2923 2.7.2)
|
442
|
2924 case "$CFLAGS" in
|
|
2925 *-fno-strength-reduce*) ;;
|
|
2926 *)
|
|
2927 echo "$ac_t""yes" 1>&6
|
|
2928 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
|
|
2929 echo "configure: warning: -fno-strength-reduce." 1>&2
|
|
2930 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2931 ;;
|
|
2932 esac
|
|
2933 ;;
|
|
2934 esac
|
448
|
2935 case "$CFLAGS" in
|
|
2936 *-fno-caller-saves*) ;;
|
|
2937 *)
|
|
2938 echo "$ac_t""yes" 1>&6
|
|
2939 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
|
|
2940 echo "configure: warning: -fno-caller-saves." 1>&2
|
|
2941 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2942 ;;
|
|
2943 esac
|
442
|
2944 ;;
|
|
2945 esac
|
|
2946 ;;
|
|
2947 esac
|
|
2948 echo "$ac_t""no" 1>&6
|
|
2949 fi
|
|
2950
|
853
|
2951 if test "$pdump" != "yes"; then
|
|
2952 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
|
1161
|
2953 echo "configure:2954: checking for \"-z nocombreloc\" linker flag" >&5
|
853
|
2954 case "`ld --help 2>&1`" in
|
|
2955 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
|
|
2956 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
|
|
2957 *) echo "$ac_t""no" 1>&6 ;;
|
|
2958 esac
|
|
2959 fi
|
|
2960
|
|
2961
|
272
|
2962
|
|
2963 if test "$GCC" = "yes"; then
|
|
2964 set x $ld_switch_system; shift; ld_switch_system=""
|
|
2965 while test -n "$1"; do
|
|
2966 case $1 in
|
380
|
2967 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
|
|
2968 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
|
272
|
2969 -Xlinker* ) ;;
|
|
2970 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
|
|
2971 esac
|
|
2972 shift
|
|
2973 done
|
157
|
2974 fi
|
151
|
2975
|
163
|
2976 if test "$GCC" = "yes"; then
|
272
|
2977 set x $ld_switch_machine; shift; ld_switch_machine=""
|
|
2978 while test -n "$1"; do
|
|
2979 case $1 in
|
380
|
2980 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
|
|
2981 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
|
163
|
2982 -Xlinker* ) ;;
|
272
|
2983 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
|
163
|
2984 esac
|
272
|
2985 shift
|
163
|
2986 done
|
272
|
2987 fi
|
|
2988
|
|
2989 if test "$GCC" = "yes"; then
|
853
|
2990 set x $ld_switch_site; shift; ld_switch_site=""
|
|
2991 while test -n "$1"; do
|
|
2992 case $1 in
|
|
2993 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
|
|
2994 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
|
|
2995 -Xlinker* ) ;;
|
|
2996 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
|
|
2997 esac
|
|
2998 shift
|
|
2999 done
|
|
3000 fi
|
|
3001
|
|
3002 if test "$GCC" = "yes"; then
|
272
|
3003 set x $LDFLAGS; shift; LDFLAGS=""
|
|
3004 while test -n "$1"; do
|
|
3005 case $1 in
|
380
|
3006 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
|
|
3007 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
|
163
|
3008 -Xlinker* ) ;;
|
272
|
3009 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
|
163
|
3010 esac
|
272
|
3011 shift
|
163
|
3012 done
|
272
|
3013 fi
|
|
3014
|
|
3015 if test "$GCC" = "yes"; then
|
|
3016 set x $ld_call_shared; shift; ld_call_shared=""
|
|
3017 while test -n "$1"; do
|
|
3018 case $1 in
|
380
|
3019 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
|
|
3020 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
|
173
|
3021 -Xlinker* ) ;;
|
272
|
3022 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
|
173
|
3023 esac
|
272
|
3024 shift
|
173
|
3025 done
|
163
|
3026 fi
|
|
3027
|
|
3028 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
|
|
3029 echo " xemacs will be linked with \"$objects_machine\""
|
|
3030 fi
|
|
3031 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
|
|
3032 echo " xemacs will be linked with \"$objects_system\""
|
|
3033 fi
|
442
|
3034 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
|
151
|
3035 echo " xemacs will be linked with \"$unexec\""
|
|
3036 fi
|
442
|
3037 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
|
|
3038 echo " xemacs will be linked with \"dumper.o\""
|
|
3039 fi
|
151
|
3040
|
163
|
3041 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
|
1161
|
3042 echo "configure:3043: checking for dynodump" >&5
|
163
|
3043 if test "$unexec" != "unexsol2.o"; then
|
|
3044 echo "$ac_t""no" 1>&6
|
|
3045 else
|
|
3046 echo "$ac_t""yes" 1>&6
|
|
3047 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3048 Defining DYNODUMP
|
|
3049 EOF
|
|
3050 cat >> confdefs.h <<\EOF
|
|
3051 #define DYNODUMP 1
|
|
3052 EOF
|
|
3053 }
|
|
3054
|
|
3055 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
|
175
|
3056 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
|
163
|
3057 case "$machine" in
|
|
3058 sparc ) dynodump_arch=sparc ;;
|
|
3059 *86* ) dynodump_arch=i386 ;;
|
|
3060 powerpc ) dynodump_arch=ppc ;;
|
|
3061 esac
|
|
3062 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
|
|
3063 fi
|
|
3064
|
|
3065
|
274
|
3066 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
|
272
|
3067
|
207
|
3068 if test "$unexec" = "unexaix.o"; then
|
219
|
3069 if test "$dynamic" = "no"; then
|
207
|
3070 start_flags="-Wl,-bnso,-bnodelcsect"
|
209
|
3071 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
|
272
|
3072 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
|
207
|
3073 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
|
|
3074 done
|
|
3075 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
|
|
3076 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
|
|
3077 done
|
294
|
3078
|
|
3079 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
|
1161
|
3080 echo "configure:3081: checking for terminateAndUnload in -lC" >&5
|
294
|
3081 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
|
|
3082
|
|
3083 xe_check_libs=" -lC "
|
|
3084 cat > conftest.$ac_ext <<EOF
|
1161
|
3085 #line 3086 "configure"
|
294
|
3086 #include "confdefs.h"
|
|
3087 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3088 /* We use char because int might match the return type of a gcc2
|
|
3089 builtin and then its argument prototype would still apply. */
|
|
3090 char terminateAndUnload();
|
|
3091
|
|
3092 int main() {
|
|
3093 terminateAndUnload()
|
|
3094 ; return 0; }
|
|
3095 EOF
|
1161
|
3096 if { (eval echo configure:3097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
294
|
3097 rm -rf conftest*
|
|
3098 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3099 else
|
|
3100 echo "configure: failed program was:" >&5
|
|
3101 cat conftest.$ac_ext >&5
|
|
3102 rm -rf conftest*
|
|
3103 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3104 fi
|
|
3105 rm -f conftest*
|
|
3106 xe_check_libs=""
|
|
3107
|
|
3108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
3109 echo "$ac_t""yes" 1>&6
|
|
3110 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
|
|
3111 else
|
|
3112 echo "$ac_t""no" 1>&6
|
|
3113 fi
|
|
3114
|
|
3115
|
272
|
3116 fi
|
207
|
3117 elif test -n "$ld_text_start_addr"; then
|
|
3118 start_flags="-T $ld_text_start_addr -e __start"
|
|
3119 fi
|
|
3120
|
|
3121
|
|
3122
|
163
|
3123
|
|
3124 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
|
|
3125 test -z "$linker" && linker='$(CC) -nostdlib'
|
175
|
3126 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
|
163
|
3127 fi
|
|
3128 test "$GCC" != "yes" && lib_gcc=
|
|
3129
|
|
3130
|
|
3131
|
151
|
3132
|
209
|
3133
|
380
|
3134 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
151
|
3135 if test -n "$site_libraries"; then
|
|
3136 for arg in $site_libraries; do
|
380
|
3137 case "$arg" in
|
|
3138 -* ) ;;
|
|
3139 * ) test -d "$arg" || \
|
384
|
3140 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
|
380
|
3141 arg="-L${arg}" ;;
|
|
3142 esac
|
151
|
3143 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
|
|
3144 done
|
|
3145 fi
|
|
3146
|
380
|
3147 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
272
|
3148 if test -n "$site_includes"; then
|
151
|
3149 for arg in $site_includes; do
|
380
|
3150 case "$arg" in
|
|
3151 -* ) ;;
|
|
3152 * ) test -d "$arg" || \
|
384
|
3153 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
|
380
|
3154 arg="-I${arg}" ;;
|
|
3155 esac
|
151
|
3156 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
|
|
3157 done
|
|
3158 fi
|
|
3159
|
380
|
3160 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
3161 if test -n "$site_prefixes"; then
|
|
3162 for dir in $site_prefixes; do
|
398
|
3163 lib_dir="${dir}/lib"
|
416
|
3164 inc_dir="${dir}/include"
|
380
|
3165 if test ! -d "$dir"; then
|
384
|
3166 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
|
380
|
3167 elif test ! -d "$lib_dir"; then
|
384
|
3168 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
|
380
|
3169 else
|
414
|
3170 if test -d "$inc_dir"; then
|
|
3171 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
|
|
3172 fi
|
380
|
3173 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
|
|
3174 fi
|
|
3175 done
|
|
3176 fi
|
|
3177
|
157
|
3178
|
151
|
3179 for dir in "/usr/ccs/lib"; do
|
440
|
3180 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
|
3181 done
|
|
3182
|
380
|
3183 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
272
|
3184 if test -n "$site_runtime_libraries"; then
|
165
|
3185 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
|
151
|
3186 export LD_RUN_PATH
|
|
3187 fi
|
|
3188
|
|
3189
|
440
|
3190
|
|
3191
|
|
3192
|
|
3193 if test -n "$add_runtime_path"; then :;
|
|
3194 elif test "$dynamic" = "no"; then add_runtime_path=no
|
151
|
3195 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
|
163
|
3196 else case "$opsys" in
|
373
|
3197 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
|
151
|
3198 * ) add_runtime_path=no ;;
|
|
3199 esac
|
|
3200 fi
|
|
3201
|
|
3202 if test "$add_runtime_path" = "yes"; then
|
|
3203 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
|
1161
|
3204 echo "configure:3205: checking "for runtime libraries flag"" >&5
|
373
|
3205 case "$opsys" in
|
377
|
3206 sol2 ) dash_r="-R" ;;
|
392
|
3207 decosf* | linux* | irix*) dash_r="-rpath " ;;
|
373
|
3208 *)
|
|
3209 dash_r=""
|
|
3210 for try_dash_r in "-R" "-R " "-rpath "; do
|
|
3211 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
|
|
3212
|
272
|
3213 if test "$GCC" = "yes"; then
|
|
3214 set x $xe_check_libs; shift; xe_check_libs=""
|
|
3215 while test -n "$1"; do
|
|
3216 case $1 in
|
380
|
3217 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
|
|
3218 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
|
272
|
3219 -Xlinker* ) ;;
|
|
3220 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
|
|
3221 esac
|
|
3222 shift
|
|
3223 done
|
|
3224 fi
|
373
|
3225 cat > conftest.$ac_ext <<EOF
|
1161
|
3226 #line 3227 "configure"
|
|
3227 #include "confdefs.h"
|
|
3228
|
|
3229 int main() {
|
|
3230
|
|
3231 ; return 0; }
|
|
3232 EOF
|
|
3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
3234 rm -rf conftest*
|
|
3235 dash_r="$try_dash_r"
|
|
3236 else
|
|
3237 echo "configure: failed program was:" >&5
|
|
3238 cat conftest.$ac_ext >&5
|
|
3239 fi
|
|
3240 rm -f conftest*
|
373
|
3241 xe_check_libs=""
|
|
3242 test -n "$dash_r" && break
|
|
3243 done ;;
|
|
3244 esac
|
151
|
3245 if test -n "$dash_r";
|
|
3246 then echo "$ac_t"""\"${dash_r}\""" 1>&6
|
|
3247 else echo "$ac_t""NONE" 1>&6
|
|
3248 fi
|
|
3249 fi
|
|
3250
|
163
|
3251 xe_add_unique_runpath_dir='
|
|
3252 xe_add_p=yes
|
|
3253 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
|
|
3254 done
|
|
3255 if test "$xe_add_p" = "yes"; then
|
|
3256 test -n "$runpath" && runpath="${runpath}:"
|
|
3257 runpath="${runpath}${xe_runpath_dir}"
|
|
3258 runpath_dirs="$runpath_dirs $xe_runpath_dir"
|
|
3259 fi'
|
|
3260
|
|
3261
|
151
|
3262
|
155
|
3263
|
151
|
3264 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
3265 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
3266 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
3267
|
163
|
3268 runpath="" runpath_dirs=""
|
155
|
3269 if test -n "$LD_RUN_PATH"; then
|
151
|
3270 runpath="$LD_RUN_PATH"
|
155
|
3271 elif test "$GCC" = "yes"; then
|
163
|
3272 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
3273 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
3274 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
3275 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
3276 case "$arg" in P,* | -L* | -R* )
|
159
|
3277 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
3278 {
|
155
|
3279 xe_runpath_dir="$dir"
|
163
|
3280 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
3281 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
3282 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
3283 eval "$xe_add_unique_runpath_dir"
|
|
3284 }
|
155
|
3285 done ;;
|
|
3286 esac
|
|
3287 done
|
163
|
3288 ld_switch_run="$ld_switch_run_save"
|
155
|
3289 rm -f conftest*
|
151
|
3290 else
|
155
|
3291 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
3292 case "$arg" in -L*) {
|
159
|
3293 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
3294 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
3295 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
3296 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
3297 eval "$xe_add_unique_runpath_dir"
|
|
3298 };; esac
|
151
|
3299 done
|
163
|
3300 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
3301 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
3302 eval "$xe_add_unique_runpath_dir";
|
|
3303 fi
|
155
|
3304 fi
|
151
|
3305 if test -n "$runpath"; then
|
|
3306 ld_switch_run="${dash_r}${runpath}"
|
272
|
3307
|
|
3308 if test "$GCC" = "yes"; then
|
|
3309 set x $ld_switch_run; shift; ld_switch_run=""
|
|
3310 while test -n "$1"; do
|
|
3311 case $1 in
|
380
|
3312 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
3313 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
3314 -Xlinker* ) ;;
|
|
3315 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
3316 esac
|
|
3317 shift
|
|
3318 done
|
|
3319 fi
|
151
|
3320 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
3321 fi
|
|
3322 fi
|
|
3323
|
|
3324
|
149
|
3325
|
|
3326 GNU_MALLOC=yes
|
261
|
3327 if test "$with_dlmalloc" != "no"; then
|
|
3328 doug_lea_malloc=yes
|
|
3329 else
|
|
3330 doug_lea_malloc=no
|
|
3331 fi
|
259
|
3332 after_morecore_hook_exists=yes
|
255
|
3333 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
|
1161
|
3334 echo "configure:3335: checking for malloc_set_state" >&5
|
|
3335
|
|
3336 cat > conftest.$ac_ext <<EOF
|
|
3337 #line 3338 "configure"
|
255
|
3338 #include "confdefs.h"
|
|
3339 /* System header to define __stub macros and hopefully few prototypes,
|
|
3340 which can conflict with char malloc_set_state(); below. */
|
|
3341 #include <assert.h>
|
|
3342 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3343 /* We use char because int might match the return type of a gcc2
|
|
3344 builtin and then its argument prototype would still apply. */
|
|
3345 char malloc_set_state();
|
|
3346
|
|
3347 int main() {
|
|
3348
|
|
3349 /* The GNU C library defines this for functions which it implements
|
|
3350 to always fail with ENOSYS. Some functions are actually named
|
|
3351 something starting with __ and the normal name is an alias. */
|
|
3352 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
|
|
3353 choke me
|
|
3354 #else
|
|
3355 malloc_set_state();
|
|
3356 #endif
|
|
3357
|
|
3358 ; return 0; }
|
|
3359 EOF
|
1161
|
3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
255
|
3361 rm -rf conftest*
|
|
3362 eval "ac_cv_func_malloc_set_state=yes"
|
|
3363 else
|
|
3364 echo "configure: failed program was:" >&5
|
|
3365 cat conftest.$ac_ext >&5
|
|
3366 rm -rf conftest*
|
|
3367 eval "ac_cv_func_malloc_set_state=no"
|
|
3368 fi
|
|
3369 rm -f conftest*
|
|
3370
|
|
3371 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
|
|
3372 echo "$ac_t""yes" 1>&6
|
|
3373 :
|
|
3374 else
|
|
3375 echo "$ac_t""no" 1>&6
|
|
3376 doug_lea_malloc=no
|
|
3377 fi
|
|
3378
|
|
3379 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
|
1161
|
3380 echo "configure:3381: checking whether __after_morecore_hook exists" >&5
|
|
3381 cat > conftest.$ac_ext <<EOF
|
|
3382 #line 3383 "configure"
|
255
|
3383 #include "confdefs.h"
|
|
3384 extern void (* __after_morecore_hook)();
|
|
3385 int main() {
|
|
3386 __after_morecore_hook = 0
|
|
3387 ; return 0; }
|
|
3388 EOF
|
1161
|
3389 if { (eval echo configure:3390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
3390 rm -rf conftest*
|
|
3391 echo "$ac_t""yes" 1>&6
|
|
3392 else
|
|
3393 echo "configure: failed program was:" >&5
|
|
3394 cat conftest.$ac_ext >&5
|
|
3395 rm -rf conftest*
|
|
3396 echo "$ac_t""no" 1>&6
|
|
3397 after_morecore_hook_exists=no
|
255
|
3398 fi
|
|
3399 rm -f conftest*
|
149
|
3400 if test "$system_malloc" = "yes" ; then
|
|
3401 GNU_MALLOC=no
|
|
3402 GNU_MALLOC_reason="
|
442
|
3403 - The GNU allocators don't work with this system configuration."
|
181
|
3404 elif test "$with_system_malloc" = "yes" ; then
|
149
|
3405 GNU_MALLOC=no
|
|
3406 GNU_MALLOC_reason="
|
442
|
3407 - User chose not to use GNU allocators."
|
181
|
3408 elif test "$with_debug_malloc" = "yes" ; then
|
177
|
3409 GNU_MALLOC=no
|
|
3410 GNU_MALLOC_reason="
|
442
|
3411 - User chose to use Debugging Malloc."
|
|
3412 fi
|
|
3413
|
|
3414 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
|
|
3415 GNU_MALLOC_reason="
|
|
3416 - Using Doug Lea's new malloc from the GNU C Library."
|
255
|
3417 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3418 Defining DOUG_LEA_MALLOC
|
|
3419 EOF
|
|
3420 cat >> confdefs.h <<\EOF
|
|
3421 #define DOUG_LEA_MALLOC 1
|
|
3422 EOF
|
|
3423 }
|
|
3424
|
259
|
3425 if test "$after_morecore_hook_exists" = "no" ; then
|
|
3426 GNU_MALLOC_reason="
|
442
|
3427 - Using Doug Lea's new malloc from the Linux C Library."
|
259
|
3428 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3429 Defining _NO_MALLOC_WARNING_
|
|
3430 EOF
|
|
3431 cat >> confdefs.h <<\EOF
|
|
3432 #define _NO_MALLOC_WARNING_ 1
|
|
3433 EOF
|
|
3434 }
|
|
3435
|
|
3436 fi
|
255
|
3437 fi
|
|
3438
|
149
|
3439
|
267
|
3440
|
|
3441
|
149
|
3442 # Extract the first word of "ranlib", so it can be a program name with args.
|
|
3443 set dummy ranlib; ac_word=$2
|
|
3444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1161
|
3445 echo "configure:3446: checking for $ac_word" >&5
|
149
|
3446
|
|
3447 if test -n "$RANLIB"; then
|
|
3448 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
3449 else
|
420
|
3450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
3451 ac_dummy="$PATH"
|
|
3452 for ac_dir in $ac_dummy; do
|
0
|
3453 test -z "$ac_dir" && ac_dir=.
|
|
3454 if test -f $ac_dir/$ac_word; then
|
149
|
3455 ac_cv_prog_RANLIB="ranlib"
|
0
|
3456 break
|
|
3457 fi
|
|
3458 done
|
|
3459 IFS="$ac_save_ifs"
|
149
|
3460 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
3461 fi
|
|
3462 RANLIB="$ac_cv_prog_RANLIB"
|
|
3463 if test -n "$RANLIB"; then
|
|
3464 echo "$ac_t""$RANLIB" 1>&6
|
|
3465 else
|
|
3466 echo "$ac_t""no" 1>&6
|
|
3467 fi
|
|
3468
|
|
3469 ac_aux_dir=
|
|
3470 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|
3471 if test -f $ac_dir/install-sh; then
|
|
3472 ac_aux_dir=$ac_dir
|
|
3473 ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
3474 break
|
|
3475 elif test -f $ac_dir/install.sh; then
|
|
3476 ac_aux_dir=$ac_dir
|
|
3477 ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
3478 break
|
|
3479 fi
|
|
3480 done
|
|
3481 if test -z "$ac_aux_dir"; then
|
|
3482 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|
3483 fi
|
|
3484 ac_config_guess=$ac_aux_dir/config.guess
|
|
3485 ac_config_sub=$ac_aux_dir/config.sub
|
|
3486 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
3487
|
|
3488 # Find a good install program. We prefer a C program (faster),
|
|
3489 # so one script is as good as another. But avoid the broken or
|
|
3490 # incompatible versions:
|
|
3491 # SysV /etc/install, /usr/sbin/install
|
|
3492 # SunOS /usr/etc/install
|
|
3493 # IRIX /sbin/install
|
|
3494 # AIX /bin/install
|
420
|
3495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
149
|
3496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
3497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
3498 # ./install, which can be erroneously created by make from ./install.sh.
|
|
3499 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
1161
|
3500 echo "configure:3501: checking for a BSD compatible install" >&5
|
149
|
3501 if test -z "$INSTALL"; then
|
|
3502
|
420
|
3503 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
0
|
3504 for ac_dir in $PATH; do
|
149
|
3505 # Account for people who put trailing slashes in PATH elements.
|
|
3506 case "$ac_dir/" in
|
|
3507 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
0
|
3508 *)
|
|
3509 # OSF1 and SCO ODT 3.0 have their own names for install.
|
420
|
3510 # Don't use installbsd from OSF since it installs stuff as root
|
|
3511 # by default.
|
|
3512 for ac_prog in ginstall scoinst install; do
|
0
|
3513 if test -f $ac_dir/$ac_prog; then
|
|
3514 if test $ac_prog = install &&
|
|
3515 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
3516 # AIX install. It has an incompatible calling convention.
|
|
3517 :
|
|
3518 else
|
149
|
3519 ac_cv_path_install="$ac_dir/$ac_prog -c"
|
0
|
3520 break 2
|
|
3521 fi
|
|
3522 fi
|
|
3523 done
|
|
3524 ;;
|
|
3525 esac
|
|
3526 done
|
149
|
3527 IFS="$ac_save_IFS"
|
|
3528
|
|
3529 if test "${ac_cv_path_install+set}" = set; then
|
|
3530 INSTALL="$ac_cv_path_install"
|
|
3531 else
|
|
3532 # As a last resort, use the slow shell script. We don't cache a
|
|
3533 # path for INSTALL within a source directory, because that will
|
|
3534 # break other packages using the cache if that directory is
|
|
3535 # removed, or if the path is relative.
|
|
3536 INSTALL="$ac_install_sh"
|
|
3537 fi
|
|
3538 fi
|
|
3539 echo "$ac_t""$INSTALL" 1>&6
|
|
3540
|
|
3541 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
0
|
3542 # It thinks the first close brace ends the variable substitution.
|
|
3543 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
3544
|
420
|
3545 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|
3546
|
0
|
3547 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
3548
|
|
3549 for ac_prog in 'bison -y' byacc
|
|
3550 do
|
149
|
3551 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
3552 set dummy $ac_prog; ac_word=$2
|
|
3553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1161
|
3554 echo "configure:3555: checking for $ac_word" >&5
|
149
|
3555
|
|
3556 if test -n "$YACC"; then
|
|
3557 ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
|
3558 else
|
420
|
3559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
3560 ac_dummy="$PATH"
|
|
3561 for ac_dir in $ac_dummy; do
|
0
|
3562 test -z "$ac_dir" && ac_dir=.
|
|
3563 if test -f $ac_dir/$ac_word; then
|
149
|
3564 ac_cv_prog_YACC="$ac_prog"
|
0
|
3565 break
|
|
3566 fi
|
|
3567 done
|
|
3568 IFS="$ac_save_ifs"
|
|
3569 fi
|
149
|
3570 YACC="$ac_cv_prog_YACC"
|
|
3571 if test -n "$YACC"; then
|
|
3572 echo "$ac_t""$YACC" 1>&6
|
|
3573 else
|
|
3574 echo "$ac_t""no" 1>&6
|
|
3575 fi
|
0
|
3576
|
|
3577 test -n "$YACC" && break
|
|
3578 done
|
|
3579 test -n "$YACC" || YACC="yacc"
|
|
3580
|
|
3581
|
911
|
3582 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
|
3583 do
|
149
|
3584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
3585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1161
|
3586 echo "configure:3587: checking for $ac_hdr" >&5
|
|
3587
|
|
3588 cat > conftest.$ac_ext <<EOF
|
|
3589 #line 3590 "configure"
|
149
|
3590 #include "confdefs.h"
|
|
3591 #include <$ac_hdr>
|
|
3592 EOF
|
|
3593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
3594 { (eval echo configure:3595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
3595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
3596 if test -z "$ac_err"; then
|
|
3597 rm -rf conftest*
|
149
|
3598 eval "ac_cv_header_$ac_safe=yes"
|
|
3599 else
|
|
3600 echo "$ac_err" >&5
|
|
3601 echo "configure: failed program was:" >&5
|
|
3602 cat conftest.$ac_ext >&5
|
|
3603 rm -rf conftest*
|
|
3604 eval "ac_cv_header_$ac_safe=no"
|
|
3605 fi
|
|
3606 rm -f conftest*
|
|
3607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
3608 echo "$ac_t""yes" 1>&6
|
|
3609 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
3610 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3611 Defining $ac_tr_hdr
|
|
3612 EOF
|
|
3613 cat >> confdefs.h <<EOF
|
|
3614 #define $ac_tr_hdr 1
|
|
3615 EOF
|
|
3616 }
|
|
3617
|
|
3618 else
|
|
3619 echo "$ac_t""no" 1>&6
|
|
3620 fi
|
0
|
3621 done
|
|
3622
|
155
|
3623 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
1161
|
3624 echo "configure:3625: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
3625
|
|
3626 cat > conftest.$ac_ext <<EOF
|
|
3627 #line 3628 "configure"
|
155
|
3628 #include "confdefs.h"
|
|
3629 #include <sys/types.h>
|
|
3630 #include <sys/wait.h>
|
|
3631 #ifndef WEXITSTATUS
|
|
3632 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
3633 #endif
|
|
3634 #ifndef WIFEXITED
|
|
3635 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
3636 #endif
|
|
3637 int main() {
|
|
3638 int s;
|
|
3639 wait (&s);
|
|
3640 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
3641 ; return 0; }
|
|
3642 EOF
|
1161
|
3643 if { (eval echo configure:3644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
155
|
3644 rm -rf conftest*
|
|
3645 ac_cv_header_sys_wait_h=yes
|
|
3646 else
|
|
3647 echo "configure: failed program was:" >&5
|
|
3648 cat conftest.$ac_ext >&5
|
|
3649 rm -rf conftest*
|
|
3650 ac_cv_header_sys_wait_h=no
|
|
3651 fi
|
|
3652 rm -f conftest*
|
|
3653
|
|
3654 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
3655 if test $ac_cv_header_sys_wait_h = yes; then
|
|
3656 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3657 Defining HAVE_SYS_WAIT_H
|
|
3658 EOF
|
|
3659 cat >> confdefs.h <<\EOF
|
|
3660 #define HAVE_SYS_WAIT_H 1
|
|
3661 EOF
|
|
3662 }
|
|
3663
|
|
3664 fi
|
|
3665
|
149
|
3666 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
1161
|
3667 echo "configure:3668: checking for ANSI C header files" >&5
|
|
3668
|
|
3669 cat > conftest.$ac_ext <<EOF
|
|
3670 #line 3671 "configure"
|
0
|
3671 #include "confdefs.h"
|
|
3672 #include <stdlib.h>
|
|
3673 #include <stdarg.h>
|
|
3674 #include <string.h>
|
|
3675 #include <float.h>
|
|
3676 EOF
|
149
|
3677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
3678 { (eval echo configure:3679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
3679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
3680 if test -z "$ac_err"; then
|
|
3681 rm -rf conftest*
|
149
|
3682 ac_cv_header_stdc=yes
|
|
3683 else
|
|
3684 echo "$ac_err" >&5
|
|
3685 echo "configure: failed program was:" >&5
|
|
3686 cat conftest.$ac_ext >&5
|
|
3687 rm -rf conftest*
|
|
3688 ac_cv_header_stdc=no
|
|
3689 fi
|
|
3690 rm -f conftest*
|
|
3691
|
|
3692 if test $ac_cv_header_stdc = yes; then
|
0
|
3693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
149
|
3694 cat > conftest.$ac_ext <<EOF
|
1161
|
3695 #line 3696 "configure"
|
149
|
3696 #include "confdefs.h"
|
|
3697 #include <string.h>
|
|
3698 EOF
|
|
3699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3700 egrep "memchr" >/dev/null 2>&1; then
|
|
3701 :
|
|
3702 else
|
|
3703 rm -rf conftest*
|
|
3704 ac_cv_header_stdc=no
|
|
3705 fi
|
|
3706 rm -f conftest*
|
|
3707
|
|
3708 fi
|
|
3709
|
|
3710 if test $ac_cv_header_stdc = yes; then
|
|
3711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
3712 cat > conftest.$ac_ext <<EOF
|
1161
|
3713 #line 3714 "configure"
|
149
|
3714 #include "confdefs.h"
|
|
3715 #include <stdlib.h>
|
|
3716 EOF
|
|
3717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3718 egrep "free" >/dev/null 2>&1; then
|
|
3719 :
|
|
3720 else
|
|
3721 rm -rf conftest*
|
|
3722 ac_cv_header_stdc=no
|
|
3723 fi
|
|
3724 rm -f conftest*
|
|
3725
|
|
3726 fi
|
|
3727
|
|
3728 if test $ac_cv_header_stdc = yes; then
|
|
3729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
3730 cat > conftest.$ac_ext <<EOF
|
1161
|
3731 #line 3732 "configure"
|
0
|
3732 #include "confdefs.h"
|
|
3733 #include <ctype.h>
|
|
3734 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
3735 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
149
|
3736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
0
|
3737 int main () { int i; for (i = 0; i < 256; i++)
|
|
3738 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
3739 exit (0); }
|
|
3740
|
|
3741 EOF
|
1161
|
3742 if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
3743 then
|
|
3744 :
|
|
3745 else
|
373
|
3746 conftest_rc="$?"
|
149
|
3747 echo "configure: failed program was:" >&5
|
|
3748 cat conftest.$ac_ext >&5
|
|
3749 rm -fr conftest*
|
|
3750 ac_cv_header_stdc=no
|
0
|
3751 fi
|
|
3752 rm -fr conftest*
|
149
|
3753 fi
|
|
3754
|
|
3755 echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
3756 if test $ac_cv_header_stdc = yes; then
|
|
3757 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3758 Defining STDC_HEADERS
|
|
3759 EOF
|
|
3760 cat >> confdefs.h <<\EOF
|
|
3761 #define STDC_HEADERS 1
|
|
3762 EOF
|
|
3763 }
|
|
3764
|
|
3765 fi
|
|
3766
|
|
3767 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
1161
|
3768 echo "configure:3769: checking whether time.h and sys/time.h may both be included" >&5
|
|
3769
|
|
3770 cat > conftest.$ac_ext <<EOF
|
|
3771 #line 3772 "configure"
|
0
|
3772 #include "confdefs.h"
|
|
3773 #include <sys/types.h>
|
|
3774 #include <sys/time.h>
|
|
3775 #include <time.h>
|
149
|
3776 int main() {
|
|
3777 struct tm *tp;
|
|
3778 ; return 0; }
|
|
3779 EOF
|
1161
|
3780 if { (eval echo configure:3781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3781 rm -rf conftest*
|
|
3782 ac_cv_header_time=yes
|
|
3783 else
|
|
3784 echo "configure: failed program was:" >&5
|
|
3785 cat conftest.$ac_ext >&5
|
|
3786 rm -rf conftest*
|
|
3787 ac_cv_header_time=no
|
|
3788 fi
|
|
3789 rm -f conftest*
|
|
3790
|
|
3791 echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
3792 if test $ac_cv_header_time = yes; then
|
|
3793 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3794 Defining TIME_WITH_SYS_TIME
|
|
3795 EOF
|
|
3796 cat >> confdefs.h <<\EOF
|
|
3797 #define TIME_WITH_SYS_TIME 1
|
|
3798 EOF
|
|
3799 }
|
|
3800
|
|
3801 fi
|
|
3802
|
|
3803 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
|
1161
|
3804 echo "configure:3805: checking for sys_siglist declaration in signal.h or unistd.h" >&5
|
|
3805
|
|
3806 cat > conftest.$ac_ext <<EOF
|
|
3807 #line 3808 "configure"
|
149
|
3808 #include "confdefs.h"
|
|
3809 #include <sys/types.h>
|
0
|
3810 #include <signal.h>
|
149
|
3811 /* NetBSD declares sys_siglist in unistd.h. */
|
0
|
3812 #ifdef HAVE_UNISTD_H
|
|
3813 #include <unistd.h>
|
|
3814 #endif
|
149
|
3815 int main() {
|
|
3816 char *msg = *(sys_siglist + 1);
|
|
3817 ; return 0; }
|
|
3818 EOF
|
1161
|
3819 if { (eval echo configure:3820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3820 rm -rf conftest*
|
|
3821 ac_cv_decl_sys_siglist=yes
|
|
3822 else
|
|
3823 echo "configure: failed program was:" >&5
|
|
3824 cat conftest.$ac_ext >&5
|
|
3825 rm -rf conftest*
|
|
3826 ac_cv_decl_sys_siglist=no
|
|
3827 fi
|
|
3828 rm -f conftest*
|
|
3829
|
|
3830 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
|
|
3831 if test $ac_cv_decl_sys_siglist = yes; then
|
|
3832 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3833 Defining SYS_SIGLIST_DECLARED
|
|
3834 EOF
|
|
3835 cat >> confdefs.h <<\EOF
|
|
3836 #define SYS_SIGLIST_DECLARED 1
|
|
3837 EOF
|
|
3838 }
|
|
3839
|
|
3840 fi
|
|
3841
|
|
3842
|
460
|
3843
|
|
3844 echo $ac_n "checking for utime""... $ac_c" 1>&6
|
1161
|
3845 echo "configure:3846: checking for utime" >&5
|
|
3846 cat > conftest.$ac_ext <<EOF
|
|
3847 #line 3848 "configure"
|
460
|
3848 #include "confdefs.h"
|
|
3849 #include <sys/types.h>
|
0
|
3850 #include <utime.h>
|
460
|
3851 int main() {
|
|
3852 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
|
|
3853 ; return 0; }
|
|
3854 EOF
|
1161
|
3855 if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3856 rm -rf conftest*
|
|
3857 echo "$ac_t""yes" 1>&6
|
|
3858 { test "$extra_verbose" = "yes" && cat << \EOF
|
460
|
3859 Defining HAVE_UTIME
|
|
3860 EOF
|
|
3861 cat >> confdefs.h <<\EOF
|
|
3862 #define HAVE_UTIME 1
|
|
3863 EOF
|
|
3864 }
|
|
3865
|
|
3866 else
|
|
3867 echo "configure: failed program was:" >&5
|
|
3868 cat conftest.$ac_ext >&5
|
|
3869 rm -rf conftest*
|
|
3870 echo "$ac_t""no" 1>&6
|
|
3871 for ac_func in utimes
|
|
3872 do
|
|
3873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
3874 echo "configure:3875: checking for $ac_func" >&5
|
|
3875
|
|
3876 cat > conftest.$ac_ext <<EOF
|
|
3877 #line 3878 "configure"
|
460
|
3878 #include "confdefs.h"
|
|
3879 /* System header to define __stub macros and hopefully few prototypes,
|
|
3880 which can conflict with char $ac_func(); below. */
|
|
3881 #include <assert.h>
|
|
3882 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3883 /* We use char because int might match the return type of a gcc2
|
|
3884 builtin and then its argument prototype would still apply. */
|
|
3885 char $ac_func();
|
|
3886
|
|
3887 int main() {
|
|
3888
|
|
3889 /* The GNU C library defines this for functions which it implements
|
|
3890 to always fail with ENOSYS. Some functions are actually named
|
|
3891 something starting with __ and the normal name is an alias. */
|
|
3892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
3893 choke me
|
|
3894 #else
|
|
3895 $ac_func();
|
|
3896 #endif
|
|
3897
|
|
3898 ; return 0; }
|
|
3899 EOF
|
1161
|
3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
460
|
3901 rm -rf conftest*
|
|
3902 eval "ac_cv_func_$ac_func=yes"
|
|
3903 else
|
|
3904 echo "configure: failed program was:" >&5
|
|
3905 cat conftest.$ac_ext >&5
|
|
3906 rm -rf conftest*
|
|
3907 eval "ac_cv_func_$ac_func=no"
|
|
3908 fi
|
|
3909 rm -f conftest*
|
|
3910
|
|
3911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
3912 echo "$ac_t""yes" 1>&6
|
|
3913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
3914 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3915 Defining $ac_tr_func
|
|
3916 EOF
|
|
3917 cat >> confdefs.h <<EOF
|
|
3918 #define $ac_tr_func 1
|
|
3919 EOF
|
|
3920 }
|
|
3921
|
|
3922 else
|
|
3923 echo "$ac_t""no" 1>&6
|
|
3924 fi
|
|
3925 done
|
|
3926
|
|
3927 fi
|
|
3928 rm -f conftest*
|
|
3929
|
149
|
3930
|
|
3931 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
1161
|
3932 echo "configure:3933: checking return type of signal handlers" >&5
|
|
3933
|
|
3934 cat > conftest.$ac_ext <<EOF
|
|
3935 #line 3936 "configure"
|
0
|
3936 #include "confdefs.h"
|
|
3937 #include <sys/types.h>
|
|
3938 #include <signal.h>
|
|
3939 #ifdef signal
|
|
3940 #undef signal
|
|
3941 #endif
|
149
|
3942 #ifdef __cplusplus
|
|
3943 extern "C" void (*signal (int, void (*)(int)))(int);
|
|
3944 #else
|
|
3945 void (*signal ()) ();
|
|
3946 #endif
|
|
3947
|
|
3948 int main() {
|
|
3949 int i;
|
|
3950 ; return 0; }
|
|
3951 EOF
|
1161
|
3952 if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3953 rm -rf conftest*
|
|
3954 ac_cv_type_signal=void
|
|
3955 else
|
|
3956 echo "configure: failed program was:" >&5
|
|
3957 cat conftest.$ac_ext >&5
|
|
3958 rm -rf conftest*
|
|
3959 ac_cv_type_signal=int
|
|
3960 fi
|
|
3961 rm -f conftest*
|
|
3962
|
|
3963 echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
3964 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3965 Defining RETSIGTYPE = $ac_cv_type_signal
|
|
3966 EOF
|
|
3967 cat >> confdefs.h <<EOF
|
|
3968 #define RETSIGTYPE $ac_cv_type_signal
|
|
3969 EOF
|
|
3970 }
|
|
3971
|
|
3972
|
163
|
3973 echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
1161
|
3974 echo "configure:3975: checking for size_t" >&5
|
|
3975
|
|
3976 cat > conftest.$ac_ext <<EOF
|
|
3977 #line 3978 "configure"
|
163
|
3978 #include "confdefs.h"
|
|
3979 #include <sys/types.h>
|
|
3980 #if STDC_HEADERS
|
|
3981 #include <stdlib.h>
|
|
3982 #include <stddef.h>
|
|
3983 #endif
|
|
3984 EOF
|
|
3985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
3986 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
3987 rm -rf conftest*
|
|
3988 ac_cv_type_size_t=yes
|
|
3989 else
|
|
3990 rm -rf conftest*
|
|
3991 ac_cv_type_size_t=no
|
|
3992 fi
|
|
3993 rm -f conftest*
|
|
3994
|
|
3995 echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
3996 if test $ac_cv_type_size_t = no; then
|
|
3997 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3998 Defining size_t = unsigned
|
|
3999 EOF
|
|
4000 cat >> confdefs.h <<\EOF
|
|
4001 #define size_t unsigned
|
|
4002 EOF
|
|
4003 }
|
|
4004
|
|
4005 fi
|
|
4006
|
|
4007 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
1161
|
4008 echo "configure:4009: checking for pid_t" >&5
|
|
4009
|
|
4010 cat > conftest.$ac_ext <<EOF
|
|
4011 #line 4012 "configure"
|
163
|
4012 #include "confdefs.h"
|
|
4013 #include <sys/types.h>
|
|
4014 #if STDC_HEADERS
|
|
4015 #include <stdlib.h>
|
|
4016 #include <stddef.h>
|
|
4017 #endif
|
|
4018 EOF
|
|
4019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4020 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4021 rm -rf conftest*
|
|
4022 ac_cv_type_pid_t=yes
|
|
4023 else
|
|
4024 rm -rf conftest*
|
|
4025 ac_cv_type_pid_t=no
|
|
4026 fi
|
|
4027 rm -f conftest*
|
|
4028
|
|
4029 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
4030 if test $ac_cv_type_pid_t = no; then
|
|
4031 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4032 Defining pid_t = int
|
|
4033 EOF
|
|
4034 cat >> confdefs.h <<\EOF
|
|
4035 #define pid_t int
|
|
4036 EOF
|
|
4037 }
|
|
4038
|
|
4039 fi
|
|
4040
|
|
4041 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
|
1161
|
4042 echo "configure:4043: checking for uid_t in sys/types.h" >&5
|
|
4043
|
|
4044 cat > conftest.$ac_ext <<EOF
|
|
4045 #line 4046 "configure"
|
163
|
4046 #include "confdefs.h"
|
|
4047 #include <sys/types.h>
|
|
4048 EOF
|
|
4049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
4050 egrep "uid_t" >/dev/null 2>&1; then
|
|
4051 rm -rf conftest*
|
|
4052 ac_cv_type_uid_t=yes
|
|
4053 else
|
|
4054 rm -rf conftest*
|
|
4055 ac_cv_type_uid_t=no
|
|
4056 fi
|
|
4057 rm -f conftest*
|
|
4058
|
|
4059
|
|
4060 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
|
|
4061 if test $ac_cv_type_uid_t = no; then
|
|
4062 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4063 Defining uid_t = int
|
|
4064 EOF
|
|
4065 cat >> confdefs.h <<\EOF
|
|
4066 #define uid_t int
|
|
4067 EOF
|
|
4068 }
|
|
4069
|
|
4070 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4071 Defining gid_t = int
|
|
4072 EOF
|
|
4073 cat >> confdefs.h <<\EOF
|
|
4074 #define gid_t int
|
|
4075 EOF
|
|
4076 }
|
|
4077
|
|
4078 fi
|
|
4079
|
|
4080 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
1161
|
4081 echo "configure:4082: checking for mode_t" >&5
|
|
4082
|
|
4083 cat > conftest.$ac_ext <<EOF
|
|
4084 #line 4085 "configure"
|
163
|
4085 #include "confdefs.h"
|
|
4086 #include <sys/types.h>
|
|
4087 #if STDC_HEADERS
|
|
4088 #include <stdlib.h>
|
|
4089 #include <stddef.h>
|
|
4090 #endif
|
|
4091 EOF
|
|
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4093 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4094 rm -rf conftest*
|
|
4095 ac_cv_type_mode_t=yes
|
|
4096 else
|
|
4097 rm -rf conftest*
|
|
4098 ac_cv_type_mode_t=no
|
|
4099 fi
|
|
4100 rm -f conftest*
|
|
4101
|
|
4102 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|
4103 if test $ac_cv_type_mode_t = no; then
|
|
4104 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4105 Defining mode_t = int
|
|
4106 EOF
|
|
4107 cat >> confdefs.h <<\EOF
|
|
4108 #define mode_t int
|
|
4109 EOF
|
|
4110 }
|
|
4111
|
|
4112 fi
|
|
4113
|
|
4114 echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
1161
|
4115 echo "configure:4116: checking for off_t" >&5
|
|
4116
|
|
4117 cat > conftest.$ac_ext <<EOF
|
|
4118 #line 4119 "configure"
|
163
|
4119 #include "confdefs.h"
|
|
4120 #include <sys/types.h>
|
|
4121 #if STDC_HEADERS
|
|
4122 #include <stdlib.h>
|
|
4123 #include <stddef.h>
|
|
4124 #endif
|
|
4125 EOF
|
|
4126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4127 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4128 rm -rf conftest*
|
|
4129 ac_cv_type_off_t=yes
|
|
4130 else
|
|
4131 rm -rf conftest*
|
|
4132 ac_cv_type_off_t=no
|
|
4133 fi
|
|
4134 rm -f conftest*
|
|
4135
|
|
4136 echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
4137 if test $ac_cv_type_off_t = no; then
|
|
4138 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4139 Defining off_t = long
|
|
4140 EOF
|
|
4141 cat >> confdefs.h <<\EOF
|
|
4142 #define off_t long
|
|
4143 EOF
|
|
4144 }
|
|
4145
|
|
4146 fi
|
|
4147
|
426
|
4148 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
|
1161
|
4149 echo "configure:4150: checking for ssize_t" >&5
|
|
4150
|
|
4151 cat > conftest.$ac_ext <<EOF
|
|
4152 #line 4153 "configure"
|
426
|
4153 #include "confdefs.h"
|
|
4154 #include <sys/types.h>
|
|
4155 #if STDC_HEADERS
|
|
4156 #include <stdlib.h>
|
|
4157 #include <stddef.h>
|
|
4158 #endif
|
|
4159 EOF
|
|
4160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
4161 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
4162 rm -rf conftest*
|
|
4163 ac_cv_type_ssize_t=yes
|
|
4164 else
|
|
4165 rm -rf conftest*
|
|
4166 ac_cv_type_ssize_t=no
|
|
4167 fi
|
|
4168 rm -f conftest*
|
|
4169
|
|
4170 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
|
|
4171 if test $ac_cv_type_ssize_t = no; then
|
|
4172 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4173 Defining ssize_t = int
|
|
4174 EOF
|
|
4175 cat >> confdefs.h <<\EOF
|
|
4176 #define ssize_t int
|
|
4177 EOF
|
|
4178 }
|
|
4179
|
|
4180 fi
|
|
4181
|
410
|
4182
|
442
|
4183 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
|
1161
|
4184 echo "configure:4185: checking for socklen_t" >&5
|
|
4185 cat > conftest.$ac_ext <<EOF
|
|
4186 #line 4187 "configure"
|
442
|
4187 #include "confdefs.h"
|
|
4188 #include <sys/socket.h>
|
|
4189 socklen_t x;
|
|
4190
|
|
4191 int main() {
|
|
4192
|
|
4193 ; return 0; }
|
|
4194 EOF
|
1161
|
4195 if { (eval echo configure:4196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
4196 rm -rf conftest*
|
|
4197 echo "$ac_t""yes" 1>&6
|
|
4198 else
|
|
4199 echo "configure: failed program was:" >&5
|
|
4200 cat conftest.$ac_ext >&5
|
|
4201 rm -rf conftest*
|
|
4202
|
|
4203 cat > conftest.$ac_ext <<EOF
|
1161
|
4204 #line 4205 "configure"
|
442
|
4205 #include "confdefs.h"
|
|
4206 #include <sys/socket.h>
|
|
4207 int accept (int, struct sockaddr *, size_t *);
|
|
4208
|
|
4209 int main() {
|
|
4210
|
|
4211 ; return 0; }
|
|
4212 EOF
|
1161
|
4213 if { (eval echo configure:4214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
4214 rm -rf conftest*
|
|
4215
|
|
4216 echo "$ac_t""size_t" 1>&6
|
|
4217 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4218 Defining socklen_t = size_t
|
|
4219 EOF
|
|
4220 cat >> confdefs.h <<\EOF
|
|
4221 #define socklen_t size_t
|
|
4222 EOF
|
|
4223 }
|
|
4224
|
|
4225 else
|
|
4226 echo "configure: failed program was:" >&5
|
|
4227 cat conftest.$ac_ext >&5
|
|
4228 rm -rf conftest*
|
|
4229
|
|
4230 echo "$ac_t""int" 1>&6
|
|
4231 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4232 Defining socklen_t = int
|
|
4233 EOF
|
|
4234 cat >> confdefs.h <<\EOF
|
|
4235 #define socklen_t int
|
|
4236 EOF
|
|
4237 }
|
|
4238
|
|
4239 fi
|
|
4240 rm -f conftest*
|
|
4241 fi
|
|
4242 rm -f conftest*
|
|
4243
|
149
|
4244 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
|
1161
|
4245 echo "configure:4246: checking for struct timeval" >&5
|
|
4246 cat > conftest.$ac_ext <<EOF
|
|
4247 #line 4248 "configure"
|
0
|
4248 #include "confdefs.h"
|
|
4249 #ifdef TIME_WITH_SYS_TIME
|
|
4250 #include <sys/time.h>
|
|
4251 #include <time.h>
|
|
4252 #else
|
|
4253 #ifdef HAVE_SYS_TIME_H
|
|
4254 #include <sys/time.h>
|
|
4255 #else
|
|
4256 #include <time.h>
|
|
4257 #endif
|
|
4258 #endif
|
149
|
4259 int main() {
|
|
4260 static struct timeval x; x.tv_sec = x.tv_usec;
|
|
4261 ; return 0; }
|
|
4262 EOF
|
1161
|
4263 if { (eval echo configure:4264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4264 rm -rf conftest*
|
|
4265 echo "$ac_t""yes" 1>&6
|
0
|
4266 HAVE_TIMEVAL=yes
|
149
|
4267 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4268 Defining HAVE_TIMEVAL
|
|
4269 EOF
|
|
4270 cat >> confdefs.h <<\EOF
|
|
4271 #define HAVE_TIMEVAL 1
|
|
4272 EOF
|
|
4273 }
|
|
4274
|
|
4275 else
|
|
4276 echo "configure: failed program was:" >&5
|
|
4277 cat conftest.$ac_ext >&5
|
|
4278 rm -rf conftest*
|
|
4279 echo "$ac_t""no" 1>&6
|
|
4280 HAVE_TIMEVAL=no
|
|
4281 fi
|
|
4282 rm -f conftest*
|
|
4283
|
|
4284 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
1161
|
4285 echo "configure:4286: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
4286
|
|
4287 cat > conftest.$ac_ext <<EOF
|
|
4288 #line 4289 "configure"
|
0
|
4289 #include "confdefs.h"
|
|
4290 #include <sys/types.h>
|
|
4291 #include <time.h>
|
149
|
4292 int main() {
|
|
4293 struct tm *tp; tp->tm_sec;
|
|
4294 ; return 0; }
|
|
4295 EOF
|
1161
|
4296 if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4297 rm -rf conftest*
|
|
4298 ac_cv_struct_tm=time.h
|
|
4299 else
|
|
4300 echo "configure: failed program was:" >&5
|
|
4301 cat conftest.$ac_ext >&5
|
|
4302 rm -rf conftest*
|
|
4303 ac_cv_struct_tm=sys/time.h
|
|
4304 fi
|
|
4305 rm -f conftest*
|
|
4306
|
|
4307 echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
4308 if test $ac_cv_struct_tm = sys/time.h; then
|
|
4309 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4310 Defining TM_IN_SYS_TIME
|
|
4311 EOF
|
|
4312 cat >> confdefs.h <<\EOF
|
|
4313 #define TM_IN_SYS_TIME 1
|
|
4314 EOF
|
|
4315 }
|
|
4316
|
|
4317 fi
|
|
4318
|
|
4319 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
1161
|
4320 echo "configure:4321: checking for tm_zone in struct tm" >&5
|
|
4321
|
|
4322 cat > conftest.$ac_ext <<EOF
|
|
4323 #line 4324 "configure"
|
149
|
4324 #include "confdefs.h"
|
|
4325 #include <sys/types.h>
|
|
4326 #include <$ac_cv_struct_tm>
|
|
4327 int main() {
|
|
4328 struct tm tm; tm.tm_zone;
|
|
4329 ; return 0; }
|
|
4330 EOF
|
1161
|
4331 if { (eval echo configure:4332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4332 rm -rf conftest*
|
|
4333 ac_cv_struct_tm_zone=yes
|
|
4334 else
|
|
4335 echo "configure: failed program was:" >&5
|
|
4336 cat conftest.$ac_ext >&5
|
|
4337 rm -rf conftest*
|
|
4338 ac_cv_struct_tm_zone=no
|
|
4339 fi
|
|
4340 rm -f conftest*
|
|
4341
|
|
4342 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
|
4343 if test "$ac_cv_struct_tm_zone" = yes; then
|
|
4344 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4345 Defining HAVE_TM_ZONE
|
|
4346 EOF
|
|
4347 cat >> confdefs.h <<\EOF
|
|
4348 #define HAVE_TM_ZONE 1
|
|
4349 EOF
|
|
4350 }
|
|
4351
|
|
4352 else
|
|
4353 echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
1161
|
4354 echo "configure:4355: checking for tzname" >&5
|
|
4355
|
|
4356 cat > conftest.$ac_ext <<EOF
|
|
4357 #line 4358 "configure"
|
0
|
4358 #include "confdefs.h"
|
|
4359 #include <time.h>
|
|
4360 #ifndef tzname /* For SGI. */
|
149
|
4361 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
0
|
4362 #endif
|
149
|
4363 int main() {
|
|
4364 atoi(*tzname);
|
|
4365 ; return 0; }
|
|
4366 EOF
|
1161
|
4367 if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
4368 rm -rf conftest*
|
|
4369 ac_cv_var_tzname=yes
|
|
4370 else
|
|
4371 echo "configure: failed program was:" >&5
|
|
4372 cat conftest.$ac_ext >&5
|
|
4373 rm -rf conftest*
|
|
4374 ac_cv_var_tzname=no
|
|
4375 fi
|
|
4376 rm -f conftest*
|
|
4377
|
|
4378 echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
|
4379 if test $ac_cv_var_tzname = yes; then
|
|
4380 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4381 Defining HAVE_TZNAME
|
|
4382 EOF
|
|
4383 cat >> confdefs.h <<\EOF
|
|
4384 #define HAVE_TZNAME 1
|
|
4385 EOF
|
|
4386 }
|
|
4387
|
|
4388 fi
|
|
4389 fi
|
|
4390
|
|
4391
|
|
4392 echo $ac_n "checking for working const""... $ac_c" 1>&6
|
1161
|
4393 echo "configure:4394: checking for working const" >&5
|
|
4394
|
|
4395 cat > conftest.$ac_ext <<EOF
|
|
4396 #line 4397 "configure"
|
149
|
4397 #include "confdefs.h"
|
|
4398
|
|
4399 int main() {
|
|
4400
|
|
4401 /* Ultrix mips cc rejects this. */
|
744
|
4402 typedef int charset[2]; const charset x;
|
0
|
4403 /* SunOS 4.1.1 cc rejects this. */
|
|
4404 char const *const *ccp;
|
|
4405 char **p;
|
149
|
4406 /* NEC SVR4.0.2 mips cc rejects this. */
|
|
4407 struct point {int x, y;};
|
|
4408 static struct point const zero = {0,0};
|
0
|
4409 /* AIX XL C 1.02.0.0 rejects this.
|
|
4410 It does not let you subtract one const X* pointer from another in an arm
|
|
4411 of an if-expression whose if-part is not a constant expression */
|
|
4412 const char *g = "string";
|
|
4413 ccp = &g + (g ? g-g : 0);
|
|
4414 /* HPUX 7.0 cc rejects these. */
|
|
4415 ++ccp;
|
|
4416 p = (char**) ccp;
|
|
4417 ccp = (char const *const *) p;
|
|
4418 { /* SCO 3.2v4 cc rejects this. */
|
|
4419 char *t;
|
|
4420 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
4421
|
|
4422 *t++ = 0;
|
|
4423 }
|
|
4424 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
149
|
4425 int x[] = {25, 17};
|
0
|
4426 const int *foo = &x[0];
|
|
4427 ++foo;
|
|
4428 }
|
|
4429 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
4430 typedef const int *iptr;
|
|
4431 iptr p = 0;
|
|
4432 ++p;
|
|
4433 }
|
|
4434 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
4435 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
4436 struct s { int j; const int *ap[3]; };
|
|
4437 struct s *b; b->j = 5;
|
|
4438 }
|
|
4439 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
4440 const int foo = 10;
|
149
|
4441 }
|
|
4442
|
|
4443 ; return 0; }
|
|
4444 EOF
|
1161
|
4445 if { (eval echo configure:4446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4446 rm -rf conftest*
|
|
4447 ac_cv_c_const=yes
|
|
4448 else
|
|
4449 echo "configure: failed program was:" >&5
|
|
4450 cat conftest.$ac_ext >&5
|
|
4451 rm -rf conftest*
|
|
4452 ac_cv_c_const=no
|
|
4453 fi
|
|
4454 rm -f conftest*
|
|
4455
|
|
4456 echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
4457 if test $ac_cv_c_const = no; then
|
|
4458 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4459 Defining const =
|
|
4460 EOF
|
|
4461 cat >> confdefs.h <<\EOF
|
|
4462 #define const
|
|
4463 EOF
|
|
4464 }
|
|
4465
|
|
4466 fi
|
|
4467
|
|
4468
|
|
4469 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
1161
|
4470 echo "configure:4471: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
149
|
4471 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
4472
|
|
4473 cat > conftestmake <<\EOF
|
0
|
4474 all:
|
|
4475 @echo 'ac_maketemp="${MAKE}"'
|
|
4476 EOF
|
|
4477 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
4478 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
149
|
4479 if test -n "$ac_maketemp"; then
|
|
4480 eval ac_cv_prog_make_${ac_make}_set=yes
|
|
4481 else
|
|
4482 eval ac_cv_prog_make_${ac_make}_set=no
|
|
4483 fi
|
0
|
4484 rm -f conftestmake
|
149
|
4485 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
4486 echo "$ac_t""yes" 1>&6
|
|
4487 SET_MAKE=
|
|
4488 else
|
|
4489 echo "$ac_t""no" 1>&6
|
|
4490 SET_MAKE="MAKE=${MAKE-make}"
|
|
4491 fi
|
|
4492
|
|
4493
|
|
4494 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
1161
|
4495 echo "configure:4496: checking whether byte ordering is bigendian" >&5
|
149
|
4496
|
|
4497 ac_cv_c_bigendian=unknown
|
|
4498 # See if sys/param.h defines the BYTE_ORDER macro.
|
|
4499 cat > conftest.$ac_ext <<EOF
|
1161
|
4500 #line 4501 "configure"
|
149
|
4501 #include "confdefs.h"
|
|
4502 #include <sys/types.h>
|
|
4503 #include <sys/param.h>
|
|
4504 int main() {
|
|
4505
|
|
4506 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
4507 bogus endian macros
|
|
4508 #endif
|
|
4509 ; return 0; }
|
|
4510 EOF
|
1161
|
4511 if { (eval echo configure:4512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4512 rm -rf conftest*
|
|
4513 # It does; now see whether it defined to BIG_ENDIAN or not.
|
|
4514 cat > conftest.$ac_ext <<EOF
|
1161
|
4515 #line 4516 "configure"
|
149
|
4516 #include "confdefs.h"
|
|
4517 #include <sys/types.h>
|
|
4518 #include <sys/param.h>
|
|
4519 int main() {
|
|
4520
|
|
4521 #if BYTE_ORDER != BIG_ENDIAN
|
|
4522 not big endian
|
|
4523 #endif
|
|
4524 ; return 0; }
|
|
4525 EOF
|
1161
|
4526 if { (eval echo configure:4527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4527 rm -rf conftest*
|
|
4528 ac_cv_c_bigendian=yes
|
|
4529 else
|
|
4530 echo "configure: failed program was:" >&5
|
|
4531 cat conftest.$ac_ext >&5
|
|
4532 rm -rf conftest*
|
|
4533 ac_cv_c_bigendian=no
|
|
4534 fi
|
|
4535 rm -f conftest*
|
|
4536 else
|
|
4537 echo "configure: failed program was:" >&5
|
|
4538 cat conftest.$ac_ext >&5
|
|
4539 fi
|
|
4540 rm -f conftest*
|
|
4541 if test $ac_cv_c_bigendian = unknown; then
|
|
4542 cat > conftest.$ac_ext <<EOF
|
1161
|
4543 #line 4544 "configure"
|
0
|
4544 #include "confdefs.h"
|
|
4545 main () {
|
|
4546 /* Are we little or big endian? From Harbison&Steele. */
|
|
4547 union
|
|
4548 {
|
|
4549 long l;
|
|
4550 char c[sizeof (long)];
|
|
4551 } u;
|
|
4552 u.l = 1;
|
|
4553 exit (u.c[sizeof (long) - 1] == 1);
|
|
4554 }
|
|
4555 EOF
|
1161
|
4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
4557 then
|
|
4558 ac_cv_c_bigendian=no
|
|
4559 else
|
373
|
4560 conftest_rc="$?"
|
149
|
4561 echo "configure: failed program was:" >&5
|
|
4562 cat conftest.$ac_ext >&5
|
|
4563 rm -fr conftest*
|
|
4564 ac_cv_c_bigendian=yes
|
0
|
4565 fi
|
|
4566 rm -fr conftest*
|
149
|
4567 fi
|
|
4568
|
|
4569 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|
4570 if test $ac_cv_c_bigendian = yes; then
|
|
4571 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4572 Defining WORDS_BIGENDIAN
|
|
4573 EOF
|
|
4574 cat >> confdefs.h <<\EOF
|
|
4575 #define WORDS_BIGENDIAN 1
|
|
4576 EOF
|
|
4577 }
|
|
4578
|
|
4579 fi
|
|
4580
|
|
4581
|
151
|
4582 echo $ac_n "checking size of short""... $ac_c" 1>&6
|
1161
|
4583 echo "configure:4584: checking size of short" >&5
|
|
4584
|
|
4585 cat > conftest.$ac_ext <<EOF
|
|
4586 #line 4587 "configure"
|
151
|
4587 #include "confdefs.h"
|
|
4588 #include <stdio.h>
|
1070
|
4589 main()
|
151
|
4590 {
|
|
4591 FILE *f=fopen("conftestval", "w");
|
1070
|
4592 if (!f) exit(1);
|
151
|
4593 fprintf(f, "%d\n", sizeof(short));
|
1070
|
4594 exit(0);
|
151
|
4595 }
|
|
4596 EOF
|
1161
|
4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4598 then
|
|
4599 ac_cv_sizeof_short=`cat conftestval`
|
|
4600 else
|
373
|
4601 conftest_rc="$?"
|
151
|
4602 echo "configure: failed program was:" >&5
|
|
4603 cat conftest.$ac_ext >&5
|
|
4604 rm -fr conftest*
|
|
4605 ac_cv_sizeof_short=0
|
|
4606 fi
|
|
4607 rm -fr conftest*
|
|
4608 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|
4609 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4610 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
|
|
4611 EOF
|
|
4612 cat >> confdefs.h <<EOF
|
|
4613 #define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
4614 EOF
|
|
4615 }
|
|
4616
|
|
4617
|
163
|
4618 if test "$ac_cv_sizeof_short" = 0; then
|
|
4619 echo ""
|
|
4620 echo "*** PANIC *** Configure tests are not working - compiler is broken."
|
|
4621 echo "*** PANIC *** Please examine config.log for compilation errors."
|
|
4622 exit 1
|
|
4623 fi
|
151
|
4624 echo $ac_n "checking size of int""... $ac_c" 1>&6
|
1161
|
4625 echo "configure:4626: checking size of int" >&5
|
|
4626
|
|
4627 cat > conftest.$ac_ext <<EOF
|
|
4628 #line 4629 "configure"
|
151
|
4629 #include "confdefs.h"
|
|
4630 #include <stdio.h>
|
1070
|
4631 main()
|
151
|
4632 {
|
|
4633 FILE *f=fopen("conftestval", "w");
|
1070
|
4634 if (!f) exit(1);
|
151
|
4635 fprintf(f, "%d\n", sizeof(int));
|
1070
|
4636 exit(0);
|
151
|
4637 }
|
|
4638 EOF
|
1161
|
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4640 then
|
|
4641 ac_cv_sizeof_int=`cat conftestval`
|
|
4642 else
|
373
|
4643 conftest_rc="$?"
|
151
|
4644 echo "configure: failed program was:" >&5
|
|
4645 cat conftest.$ac_ext >&5
|
|
4646 rm -fr conftest*
|
|
4647 ac_cv_sizeof_int=0
|
|
4648 fi
|
|
4649 rm -fr conftest*
|
|
4650 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
4651 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4652 Defining SIZEOF_INT = $ac_cv_sizeof_int
|
|
4653 EOF
|
|
4654 cat >> confdefs.h <<EOF
|
|
4655 #define SIZEOF_INT $ac_cv_sizeof_int
|
|
4656 EOF
|
|
4657 }
|
|
4658
|
|
4659
|
|
4660 echo $ac_n "checking size of long""... $ac_c" 1>&6
|
1161
|
4661 echo "configure:4662: checking size of long" >&5
|
|
4662
|
|
4663 cat > conftest.$ac_ext <<EOF
|
|
4664 #line 4665 "configure"
|
151
|
4665 #include "confdefs.h"
|
|
4666 #include <stdio.h>
|
1070
|
4667 main()
|
151
|
4668 {
|
|
4669 FILE *f=fopen("conftestval", "w");
|
1070
|
4670 if (!f) exit(1);
|
151
|
4671 fprintf(f, "%d\n", sizeof(long));
|
1070
|
4672 exit(0);
|
151
|
4673 }
|
|
4674 EOF
|
1161
|
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4676 then
|
|
4677 ac_cv_sizeof_long=`cat conftestval`
|
|
4678 else
|
373
|
4679 conftest_rc="$?"
|
151
|
4680 echo "configure: failed program was:" >&5
|
|
4681 cat conftest.$ac_ext >&5
|
|
4682 rm -fr conftest*
|
|
4683 ac_cv_sizeof_long=0
|
|
4684 fi
|
|
4685 rm -fr conftest*
|
|
4686 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
4687 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4688 Defining SIZEOF_LONG = $ac_cv_sizeof_long
|
|
4689 EOF
|
|
4690 cat >> confdefs.h <<EOF
|
|
4691 #define SIZEOF_LONG $ac_cv_sizeof_long
|
|
4692 EOF
|
|
4693 }
|
|
4694
|
|
4695
|
163
|
4696 echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
1161
|
4697 echo "configure:4698: checking size of long long" >&5
|
|
4698
|
|
4699 cat > conftest.$ac_ext <<EOF
|
|
4700 #line 4701 "configure"
|
163
|
4701 #include "confdefs.h"
|
|
4702 #include <stdio.h>
|
1070
|
4703 main()
|
163
|
4704 {
|
|
4705 FILE *f=fopen("conftestval", "w");
|
1070
|
4706 if (!f) exit(1);
|
163
|
4707 fprintf(f, "%d\n", sizeof(long long));
|
1070
|
4708 exit(0);
|
163
|
4709 }
|
|
4710 EOF
|
1161
|
4711 if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4712 then
|
|
4713 ac_cv_sizeof_long_long=`cat conftestval`
|
|
4714 else
|
373
|
4715 conftest_rc="$?"
|
163
|
4716 echo "configure: failed program was:" >&5
|
|
4717 cat conftest.$ac_ext >&5
|
|
4718 rm -fr conftest*
|
|
4719 ac_cv_sizeof_long_long=0
|
|
4720 fi
|
|
4721 rm -fr conftest*
|
|
4722 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|
4723 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4724 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
|
|
4725 EOF
|
|
4726 cat >> confdefs.h <<EOF
|
|
4727 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|
4728 EOF
|
|
4729 }
|
|
4730
|
|
4731
|
|
4732 echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
1161
|
4733 echo "configure:4734: checking size of void *" >&5
|
|
4734
|
|
4735 cat > conftest.$ac_ext <<EOF
|
|
4736 #line 4737 "configure"
|
163
|
4737 #include "confdefs.h"
|
|
4738 #include <stdio.h>
|
1070
|
4739 main()
|
163
|
4740 {
|
|
4741 FILE *f=fopen("conftestval", "w");
|
1070
|
4742 if (!f) exit(1);
|
163
|
4743 fprintf(f, "%d\n", sizeof(void *));
|
1070
|
4744 exit(0);
|
163
|
4745 }
|
|
4746 EOF
|
1161
|
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4748 then
|
|
4749 ac_cv_sizeof_void_p=`cat conftestval`
|
|
4750 else
|
373
|
4751 conftest_rc="$?"
|
163
|
4752 echo "configure: failed program was:" >&5
|
|
4753 cat conftest.$ac_ext >&5
|
|
4754 rm -fr conftest*
|
|
4755 ac_cv_sizeof_void_p=0
|
|
4756 fi
|
|
4757 rm -fr conftest*
|
|
4758 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|
4759 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4760 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
|
|
4761 EOF
|
|
4762 cat >> confdefs.h <<EOF
|
|
4763 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
4764 EOF
|
|
4765 }
|
|
4766
|
|
4767
|
151
|
4768
|
149
|
4769 echo $ac_n "checking for long file names""... $ac_c" 1>&6
|
1161
|
4770 echo "configure:4771: checking for long file names" >&5
|
149
|
4771
|
|
4772 ac_cv_sys_long_file_names=yes
|
0
|
4773 # Test for long file names in all the places we know might matter:
|
|
4774 # . the current directory, where building will happen
|
149
|
4775 # $prefix/lib where we will be installing things
|
|
4776 # $exec_prefix/lib likewise
|
|
4777 # eval it to expand exec_prefix.
|
|
4778 # $TMPDIR if set, where it might want to write temporary files
|
|
4779 # if $TMPDIR is not set:
|
0
|
4780 # /tmp where it might want to write temporary files
|
|
4781 # /var/tmp likewise
|
|
4782 # /usr/tmp likewise
|
149
|
4783 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
|
|
4784 ac_tmpdirs="$TMPDIR"
|
|
4785 else
|
|
4786 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
|
|
4787 fi
|
|
4788 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
|
0
|
4789 test -d $ac_dir || continue
|
149
|
4790 test -w $ac_dir || continue # It is less confusing to not echo anything here.
|
0
|
4791 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
|
|
4792 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
|
|
4793 val=`cat $ac_dir/conftest9012345 2>/dev/null`
|
149
|
4794 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
|
|
4795 ac_cv_sys_long_file_names=no
|
|
4796 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
4797 break
|
0
|
4798 fi
|
149
|
4799 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
4800 done
|
|
4801
|
|
4802 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
|
|
4803 if test $ac_cv_sys_long_file_names = yes; then
|
|
4804 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4805 Defining HAVE_LONG_FILE_NAMES
|
|
4806 EOF
|
|
4807 cat >> confdefs.h <<\EOF
|
|
4808 #define HAVE_LONG_FILE_NAMES 1
|
|
4809 EOF
|
|
4810 }
|
|
4811
|
|
4812 fi
|
|
4813
|
|
4814
|
398
|
4815 echo $ac_n "checking for sin""... $ac_c" 1>&6
|
1161
|
4816 echo "configure:4817: checking for sin" >&5
|
|
4817
|
|
4818 cat > conftest.$ac_ext <<EOF
|
|
4819 #line 4820 "configure"
|
398
|
4820 #include "confdefs.h"
|
|
4821 /* System header to define __stub macros and hopefully few prototypes,
|
|
4822 which can conflict with char sin(); below. */
|
|
4823 #include <assert.h>
|
|
4824 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4825 /* We use char because int might match the return type of a gcc2
|
|
4826 builtin and then its argument prototype would still apply. */
|
|
4827 char sin();
|
|
4828
|
|
4829 int main() {
|
|
4830
|
|
4831 /* The GNU C library defines this for functions which it implements
|
|
4832 to always fail with ENOSYS. Some functions are actually named
|
|
4833 something starting with __ and the normal name is an alias. */
|
|
4834 #if defined (__stub_sin) || defined (__stub___sin)
|
|
4835 choke me
|
|
4836 #else
|
|
4837 sin();
|
|
4838 #endif
|
|
4839
|
|
4840 ; return 0; }
|
|
4841 EOF
|
1161
|
4842 if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
4843 rm -rf conftest*
|
|
4844 eval "ac_cv_func_sin=yes"
|
|
4845 else
|
|
4846 echo "configure: failed program was:" >&5
|
|
4847 cat conftest.$ac_ext >&5
|
|
4848 rm -rf conftest*
|
|
4849 eval "ac_cv_func_sin=no"
|
|
4850 fi
|
|
4851 rm -f conftest*
|
|
4852
|
|
4853 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
|
|
4854 echo "$ac_t""yes" 1>&6
|
|
4855 :
|
|
4856 else
|
|
4857 echo "$ac_t""no" 1>&6
|
149
|
4858
|
207
|
4859 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
1161
|
4860 echo "configure:4861: checking for sin in -lm" >&5
|
207
|
4861 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
149
|
4862
|
|
4863 xe_check_libs=" -lm "
|
|
4864 cat > conftest.$ac_ext <<EOF
|
1161
|
4865 #line 4866 "configure"
|
149
|
4866 #include "confdefs.h"
|
|
4867 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4868 /* We use char because int might match the return type of a gcc2
|
|
4869 builtin and then its argument prototype would still apply. */
|
207
|
4870 char sin();
|
149
|
4871
|
|
4872 int main() {
|
207
|
4873 sin()
|
149
|
4874 ; return 0; }
|
|
4875 EOF
|
1161
|
4876 if { (eval echo configure:4877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
4877 rm -rf conftest*
|
|
4878 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4879 else
|
|
4880 echo "configure: failed program was:" >&5
|
|
4881 cat conftest.$ac_ext >&5
|
|
4882 rm -rf conftest*
|
|
4883 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4884 fi
|
|
4885 rm -f conftest*
|
|
4886 xe_check_libs=""
|
|
4887
|
151
|
4888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
4889 echo "$ac_t""yes" 1>&6
|
398
|
4890 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
|
149
|
4891 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
4892 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4893 Defining $ac_tr_lib
|
|
4894 EOF
|
|
4895 cat >> confdefs.h <<EOF
|
|
4896 #define $ac_tr_lib 1
|
|
4897 EOF
|
|
4898 }
|
|
4899
|
151
|
4900 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
|
|
4901
|
|
4902 else
|
|
4903 echo "$ac_t""no" 1>&6
|
|
4904 fi
|
|
4905
|
|
4906
|
398
|
4907 fi
|
|
4908
|
151
|
4909
|
1123
|
4910 cat > conftest.$ac_ext <<EOF
|
1161
|
4911 #line 4912 "configure"
|
243
|
4912 #include "confdefs.h"
|
|
4913 #include <math.h>
|
|
4914 int main() {
|
|
4915 return atanh(1.0) + asinh(1.0) + acosh(1.0);
|
|
4916 ; return 0; }
|
|
4917 EOF
|
1161
|
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
243
|
4919 rm -rf conftest*
|
|
4920 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4921 Defining HAVE_INVERSE_HYPERBOLIC
|
|
4922 EOF
|
|
4923 cat >> confdefs.h <<\EOF
|
|
4924 #define HAVE_INVERSE_HYPERBOLIC 1
|
|
4925 EOF
|
|
4926 }
|
|
4927
|
|
4928 else
|
|
4929 echo "configure: failed program was:" >&5
|
|
4930 cat conftest.$ac_ext >&5
|
|
4931 fi
|
|
4932 rm -f conftest*
|
|
4933
|
567
|
4934 for ac_func in mkstemp
|
438
|
4935 do
|
|
4936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
4937 echo "configure:4938: checking for $ac_func" >&5
|
|
4938
|
|
4939 cat > conftest.$ac_ext <<EOF
|
|
4940 #line 4941 "configure"
|
438
|
4941 #include "confdefs.h"
|
|
4942 /* System header to define __stub macros and hopefully few prototypes,
|
|
4943 which can conflict with char $ac_func(); below. */
|
|
4944 #include <assert.h>
|
|
4945 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4946 /* We use char because int might match the return type of a gcc2
|
|
4947 builtin and then its argument prototype would still apply. */
|
|
4948 char $ac_func();
|
|
4949
|
|
4950 int main() {
|
|
4951
|
|
4952 /* The GNU C library defines this for functions which it implements
|
|
4953 to always fail with ENOSYS. Some functions are actually named
|
|
4954 something starting with __ and the normal name is an alias. */
|
|
4955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
4956 choke me
|
|
4957 #else
|
|
4958 $ac_func();
|
|
4959 #endif
|
|
4960
|
|
4961 ; return 0; }
|
|
4962 EOF
|
1161
|
4963 if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
567
|
4964 rm -rf conftest*
|
|
4965 eval "ac_cv_func_$ac_func=yes"
|
|
4966 else
|
|
4967 echo "configure: failed program was:" >&5
|
|
4968 cat conftest.$ac_ext >&5
|
|
4969 rm -rf conftest*
|
|
4970 eval "ac_cv_func_$ac_func=no"
|
|
4971 fi
|
|
4972 rm -f conftest*
|
|
4973
|
|
4974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
4975 echo "$ac_t""yes" 1>&6
|
|
4976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
4977 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4978 Defining $ac_tr_func
|
|
4979 EOF
|
|
4980 cat >> confdefs.h <<EOF
|
|
4981 #define $ac_tr_func 1
|
|
4982 EOF
|
|
4983 }
|
|
4984
|
|
4985 else
|
|
4986 echo "$ac_t""no" 1>&6
|
|
4987 fi
|
|
4988 done
|
|
4989
|
|
4990
|
|
4991 echo "checking type of mail spool file locking" 1>&6
|
1161
|
4992 echo "configure:4993: checking type of mail spool file locking" >&5
|
567
|
4993 for ac_func in lockf flock
|
|
4994 do
|
|
4995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
4996 echo "configure:4997: checking for $ac_func" >&5
|
|
4997
|
|
4998 cat > conftest.$ac_ext <<EOF
|
|
4999 #line 5000 "configure"
|
567
|
5000 #include "confdefs.h"
|
|
5001 /* System header to define __stub macros and hopefully few prototypes,
|
|
5002 which can conflict with char $ac_func(); below. */
|
|
5003 #include <assert.h>
|
|
5004 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5005 /* We use char because int might match the return type of a gcc2
|
|
5006 builtin and then its argument prototype would still apply. */
|
|
5007 char $ac_func();
|
|
5008
|
|
5009 int main() {
|
|
5010
|
|
5011 /* The GNU C library defines this for functions which it implements
|
|
5012 to always fail with ENOSYS. Some functions are actually named
|
|
5013 something starting with __ and the normal name is an alias. */
|
|
5014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5015 choke me
|
|
5016 #else
|
|
5017 $ac_func();
|
|
5018 #endif
|
|
5019
|
|
5020 ; return 0; }
|
|
5021 EOF
|
1161
|
5022 if { (eval echo configure:5023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
438
|
5023 rm -rf conftest*
|
|
5024 eval "ac_cv_func_$ac_func=yes"
|
|
5025 else
|
|
5026 echo "configure: failed program was:" >&5
|
|
5027 cat conftest.$ac_ext >&5
|
|
5028 rm -rf conftest*
|
|
5029 eval "ac_cv_func_$ac_func=no"
|
|
5030 fi
|
|
5031 rm -f conftest*
|
|
5032
|
|
5033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5034 echo "$ac_t""yes" 1>&6
|
|
5035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5036 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5037 Defining $ac_tr_func
|
|
5038 EOF
|
|
5039 cat >> confdefs.h <<EOF
|
|
5040 #define $ac_tr_func 1
|
|
5041 EOF
|
|
5042 }
|
|
5043
|
|
5044 else
|
|
5045 echo "$ac_t""no" 1>&6
|
|
5046 fi
|
|
5047 done
|
|
5048
|
149
|
5049 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
|
|
5050 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
|
438
|
5051 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
|
442
|
5052 if test -z "$mail_locking"; then
|
|
5053 case "$opsys" in cygwin* | mingw*)
|
|
5054 mail_locking=pop ;;
|
|
5055 esac
|
|
5056 fi
|
|
5057
|
149
|
5058 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
438
|
5059 Defining MAIL_LOCK_LOCKF
|
|
5060 EOF
|
|
5061 cat >> confdefs.h <<\EOF
|
|
5062 #define MAIL_LOCK_LOCKF 1
|
149
|
5063 EOF
|
|
5064 }
|
|
5065
|
|
5066 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
438
|
5067 Defining MAIL_LOCK_FLOCK
|
|
5068 EOF
|
|
5069 cat >> confdefs.h <<\EOF
|
|
5070 #define MAIL_LOCK_FLOCK 1
|
|
5071 EOF
|
|
5072 }
|
|
5073
|
|
5074 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5075 Defining MAIL_LOCK_LOCKING
|
|
5076 EOF
|
|
5077 cat >> confdefs.h <<\EOF
|
|
5078 #define MAIL_LOCK_LOCKING 1
|
|
5079 EOF
|
|
5080 }
|
|
5081
|
442
|
5082 elif test "$mail_locking" = "pop"; then
|
|
5083 with_pop=yes
|
|
5084 mail_locking=
|
438
|
5085 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5086 Defining MAIL_LOCK_DOT
|
|
5087 EOF
|
|
5088 cat >> confdefs.h <<\EOF
|
|
5089 #define MAIL_LOCK_DOT 1
|
|
5090 EOF
|
|
5091 }
|
|
5092
|
|
5093 fi
|
|
5094 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
|
|
5095 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
|
|
5096 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
|
|
5097 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
|
|
5098 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
|
|
5099 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
|
151
|
5100
|
278
|
5101 case "$opsys" in decosf*)
|
|
5102
|
151
|
5103 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
|
1161
|
5104 echo "configure:5105: checking for cma_open in -lpthreads" >&5
|
151
|
5105 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
|
|
5106
|
|
5107 xe_check_libs=" -lpthreads "
|
|
5108 cat > conftest.$ac_ext <<EOF
|
1161
|
5109 #line 5110 "configure"
|
151
|
5110 #include "confdefs.h"
|
|
5111 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5112 /* We use char because int might match the return type of a gcc2
|
|
5113 builtin and then its argument prototype would still apply. */
|
|
5114 char cma_open();
|
|
5115
|
|
5116 int main() {
|
|
5117 cma_open()
|
|
5118 ; return 0; }
|
|
5119 EOF
|
1161
|
5120 if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
5121 rm -rf conftest*
|
|
5122 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5123 else
|
|
5124 echo "configure: failed program was:" >&5
|
|
5125 cat conftest.$ac_ext >&5
|
|
5126 rm -rf conftest*
|
|
5127 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5128 fi
|
|
5129 rm -f conftest*
|
|
5130 xe_check_libs=""
|
|
5131
|
|
5132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5133 echo "$ac_t""yes" 1>&6
|
|
5134 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
5135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
5136 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5137 Defining $ac_tr_lib
|
|
5138 EOF
|
|
5139 cat >> confdefs.h <<EOF
|
|
5140 #define $ac_tr_lib 1
|
|
5141 EOF
|
|
5142 }
|
|
5143
|
|
5144 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
|
|
5145
|
|
5146 else
|
|
5147 echo "$ac_t""no" 1>&6
|
|
5148 fi
|
|
5149
|
|
5150
|
278
|
5151 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
|
|
5152 c_switch_site="$c_switch_site -threads" ;;
|
|
5153 esac
|
151
|
5154
|
708
|
5155
|
151
|
5156 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
|
1161
|
5157 echo "configure:5158: checking whether the -xildoff compiler flag is required" >&5
|
151
|
5158 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
5159 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
|
|
5160 then echo "$ac_t""no" 1>&6;
|
|
5161 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
|
|
5162 fi
|
|
5163 else echo "$ac_t""no" 1>&6
|
|
5164 fi
|
|
5165
|
442
|
5166 if test "$opsys" = "sol2"; then
|
|
5167 if test "$os_release" -ge 56; then
|
|
5168 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
|
1161
|
5169 echo "configure:5170: checking for \"-z ignore\" linker flag" >&5
|
442
|
5170 case "`ld -h 2>&1`" in
|
|
5171 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
|
|
5172 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
|
|
5173 *) echo "$ac_t""no" 1>&6 ;;
|
|
5174 esac
|
|
5175 fi
|
163
|
5176 fi
|
155
|
5177
|
149
|
5178
|
|
5179 echo "checking "for specified window system"" 1>&6
|
1161
|
5180 echo "configure:5181: checking "for specified window system"" >&5
|
462
|
5181
|
|
5182
|
|
5183 GNOME_CONFIG=no
|
|
5184 GTK_CONFIG=no
|
|
5185
|
|
5186 if test "$with_gnome" != "no"; then
|
|
5187 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
|
1161
|
5188 echo "configure:5189: checking for GNOME configuration script" >&5
|
462
|
5189 for possible in gnome-config
|
|
5190 do
|
|
5191 possible_version=`${possible} --version 2> /dev/null`
|
|
5192 if test "x${possible_version}" != "x"; then
|
|
5193 GNOME_CONFIG="${possible}"
|
|
5194 with_gnome=yes
|
|
5195 with_gtk=yes
|
|
5196 break
|
|
5197 fi
|
|
5198 done
|
|
5199 echo "$ac_t""${GNOME_CONFIG}" 1>&6
|
|
5200 fi
|
|
5201
|
|
5202 if test "${GNOME_CONFIG}" != "no"; then
|
|
5203 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
|
|
5204 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
|
|
5205 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5206 Defining HAVE_GNOME
|
|
5207 EOF
|
|
5208 cat >> confdefs.h <<\EOF
|
|
5209 #define HAVE_GNOME 1
|
|
5210 EOF
|
|
5211 }
|
|
5212
|
|
5213 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
|
|
5214 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
|
|
5215 fi
|
|
5216
|
|
5217 if test "$with_gtk" != "no";then
|
|
5218 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
|
1161
|
5219 echo "configure:5220: checking for GTK configuration script" >&5
|
462
|
5220 for possible in gtk12-config gtk14-config gtk-config
|
|
5221 do
|
|
5222 possible_version=`${possible} --version 2> /dev/null`
|
|
5223 if test "x${possible_version}" != "x"; then
|
|
5224 GTK_CONFIG="${possible}"
|
527
|
5225 case "${possible_version}" in
|
|
5226 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
|
|
5227 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
|
|
5228 1.2.*)
|
|
5229 with_gtk=yes
|
|
5230 break
|
|
5231 ;;
|
|
5232 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
|
|
5233 esac
|
462
|
5234 fi
|
|
5235 done
|
|
5236 echo "$ac_t""${GTK_CONFIG}" 1>&6
|
|
5237 fi
|
|
5238
|
|
5239 if test "${GTK_CONFIG}" != "no"; then
|
|
5240 echo $ac_n "checking gtk version""... $ac_c" 1>&6
|
1161
|
5241 echo "configure:5242: checking gtk version" >&5
|
462
|
5242 GTK_VERSION=`${GTK_CONFIG} --version`
|
|
5243 echo "$ac_t""${GTK_VERSION}" 1>&6
|
|
5244
|
|
5245 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
|
1161
|
5246 echo "configure:5247: checking gtk libs" >&5
|
462
|
5247 GTK_LIBS=`${GTK_CONFIG} --libs`
|
|
5248 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
|
|
5249 echo "$ac_t""${GTK_LIBS}" 1>&6
|
|
5250
|
|
5251 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
|
1161
|
5252 echo "configure:5253: checking gtk cflags" >&5
|
462
|
5253 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
|
720
|
5254 if test "$GCC" = "yes"; then
|
|
5255 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
|
|
5256 fi
|
462
|
5257 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
|
|
5258 echo "$ac_t""${GTK_CFLAGS}" 1>&6
|
|
5259
|
|
5260
|
|
5261 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
|
1161
|
5262 echo "configure:5263: checking for main in -lgdk_imlib" >&5
|
462
|
5263 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
|
|
5264
|
|
5265 xe_check_libs=" -lgdk_imlib "
|
|
5266 cat > conftest.$ac_ext <<EOF
|
1161
|
5267 #line 5268 "configure"
|
462
|
5268 #include "confdefs.h"
|
|
5269
|
|
5270 int main() {
|
|
5271 main()
|
|
5272 ; return 0; }
|
|
5273 EOF
|
1161
|
5274 if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5275 rm -rf conftest*
|
|
5276 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5277 else
|
|
5278 echo "configure: failed program was:" >&5
|
|
5279 cat conftest.$ac_ext >&5
|
|
5280 rm -rf conftest*
|
|
5281 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5282 fi
|
|
5283 rm -f conftest*
|
|
5284 xe_check_libs=""
|
|
5285
|
|
5286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5287 echo "$ac_t""yes" 1>&6
|
|
5288 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
|
|
5289 else
|
|
5290 echo "$ac_t""no" 1>&6
|
|
5291 fi
|
|
5292
|
|
5293
|
|
5294
|
|
5295 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
|
1161
|
5296 echo "configure:5297: checking for Imlib_init in -lImlib" >&5
|
462
|
5297 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
|
|
5298
|
|
5299 xe_check_libs=" -lImlib "
|
|
5300 cat > conftest.$ac_ext <<EOF
|
1161
|
5301 #line 5302 "configure"
|
462
|
5302 #include "confdefs.h"
|
|
5303 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5304 /* We use char because int might match the return type of a gcc2
|
|
5305 builtin and then its argument prototype would still apply. */
|
|
5306 char Imlib_init();
|
|
5307
|
|
5308 int main() {
|
|
5309 Imlib_init()
|
|
5310 ; return 0; }
|
|
5311 EOF
|
1161
|
5312 if { (eval echo configure:5313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5313 rm -rf conftest*
|
|
5314 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5315 else
|
|
5316 echo "configure: failed program was:" >&5
|
|
5317 cat conftest.$ac_ext >&5
|
|
5318 rm -rf conftest*
|
|
5319 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5320 fi
|
|
5321 rm -f conftest*
|
|
5322 xe_check_libs=""
|
|
5323
|
|
5324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5325 echo "$ac_t""yes" 1>&6
|
|
5326 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
|
|
5327 else
|
|
5328 echo "$ac_t""no" 1>&6
|
|
5329 fi
|
|
5330
|
|
5331
|
|
5332 for ac_func in gdk_imlib_init
|
|
5333 do
|
|
5334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
5335 echo "configure:5336: checking for $ac_func" >&5
|
|
5336
|
|
5337 cat > conftest.$ac_ext <<EOF
|
|
5338 #line 5339 "configure"
|
462
|
5339 #include "confdefs.h"
|
|
5340 /* System header to define __stub macros and hopefully few prototypes,
|
|
5341 which can conflict with char $ac_func(); below. */
|
|
5342 #include <assert.h>
|
|
5343 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5344 /* We use char because int might match the return type of a gcc2
|
|
5345 builtin and then its argument prototype would still apply. */
|
|
5346 char $ac_func();
|
|
5347
|
|
5348 int main() {
|
|
5349
|
|
5350 /* The GNU C library defines this for functions which it implements
|
|
5351 to always fail with ENOSYS. Some functions are actually named
|
|
5352 something starting with __ and the normal name is an alias. */
|
|
5353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5354 choke me
|
|
5355 #else
|
|
5356 $ac_func();
|
|
5357 #endif
|
|
5358
|
|
5359 ; return 0; }
|
|
5360 EOF
|
1161
|
5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5362 rm -rf conftest*
|
|
5363 eval "ac_cv_func_$ac_func=yes"
|
|
5364 else
|
|
5365 echo "configure: failed program was:" >&5
|
|
5366 cat conftest.$ac_ext >&5
|
|
5367 rm -rf conftest*
|
|
5368 eval "ac_cv_func_$ac_func=no"
|
|
5369 fi
|
|
5370 rm -f conftest*
|
|
5371
|
|
5372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5373 echo "$ac_t""yes" 1>&6
|
|
5374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5375 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5376 Defining $ac_tr_func
|
|
5377 EOF
|
|
5378 cat >> confdefs.h <<EOF
|
|
5379 #define $ac_tr_func 1
|
|
5380 EOF
|
|
5381 }
|
|
5382
|
|
5383 else
|
|
5384 echo "$ac_t""no" 1>&6
|
|
5385 fi
|
|
5386 done
|
|
5387
|
|
5388
|
|
5389 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5390 Defining HAVE_XPM
|
|
5391 EOF
|
|
5392 cat >> confdefs.h <<\EOF
|
|
5393 #define HAVE_XPM 1
|
|
5394 EOF
|
|
5395 }
|
|
5396
|
|
5397 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5398 Defining HAVE_GTK
|
|
5399 EOF
|
|
5400 cat >> confdefs.h <<\EOF
|
|
5401 #define HAVE_GTK 1
|
|
5402 EOF
|
|
5403 }
|
|
5404
|
|
5405
|
|
5406
|
|
5407 window_system=gtk
|
|
5408 with_gtk=yes
|
|
5409 with_x11=no
|
|
5410
|
|
5411 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
|
|
5412 test "${with_toolbars}" != no && with_toolbars=gtk
|
|
5413 test "${with_menubars}" != "no" && with_menubars=gtk
|
|
5414 test "${with_dialogs}" != "no" && with_dialogs=gtk
|
|
5415 test "${with_widgets}" != "no" && with_widgets=gtk
|
|
5416
|
|
5417 OLD_CFLAGS="${CFLAGS}"
|
724
|
5418 OLD_CPPFLAGS="${CPPFLAGS}"
|
462
|
5419 OLD_LDFLAGS="${LDFLAGS}"
|
|
5420 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
|
724
|
5421 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
|
462
|
5422 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
|
|
5423 for ac_hdr in glade/glade.h glade.h
|
|
5424 do
|
|
5425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
5426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1161
|
5427 echo "configure:5428: checking for $ac_hdr" >&5
|
|
5428
|
|
5429 cat > conftest.$ac_ext <<EOF
|
|
5430 #line 5431 "configure"
|
462
|
5431 #include "confdefs.h"
|
|
5432 #include <$ac_hdr>
|
|
5433 EOF
|
|
5434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
5435 { (eval echo configure:5436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
462
|
5436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
5437 if test -z "$ac_err"; then
|
|
5438 rm -rf conftest*
|
|
5439 eval "ac_cv_header_$ac_safe=yes"
|
|
5440 else
|
|
5441 echo "$ac_err" >&5
|
|
5442 echo "configure: failed program was:" >&5
|
|
5443 cat conftest.$ac_ext >&5
|
|
5444 rm -rf conftest*
|
|
5445 eval "ac_cv_header_$ac_safe=no"
|
|
5446 fi
|
|
5447 rm -f conftest*
|
|
5448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5449 echo "$ac_t""yes" 1>&6
|
|
5450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
5451 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5452 Defining $ac_tr_hdr
|
|
5453 EOF
|
|
5454 cat >> confdefs.h <<EOF
|
|
5455 #define $ac_tr_hdr 1
|
|
5456 EOF
|
|
5457 }
|
|
5458
|
|
5459 else
|
|
5460 echo "$ac_t""no" 1>&6
|
|
5461 fi
|
|
5462 done
|
|
5463
|
|
5464
|
|
5465 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
|
1161
|
5466 echo "configure:5467: checking for main in -lxml" >&5
|
462
|
5467 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
|
|
5468
|
|
5469 xe_check_libs=" -lxml "
|
|
5470 cat > conftest.$ac_ext <<EOF
|
1161
|
5471 #line 5472 "configure"
|
462
|
5472 #include "confdefs.h"
|
|
5473
|
|
5474 int main() {
|
|
5475 main()
|
|
5476 ; return 0; }
|
|
5477 EOF
|
1161
|
5478 if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5479 rm -rf conftest*
|
|
5480 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5481 else
|
|
5482 echo "configure: failed program was:" >&5
|
|
5483 cat conftest.$ac_ext >&5
|
|
5484 rm -rf conftest*
|
|
5485 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5486 fi
|
|
5487 rm -f conftest*
|
|
5488 xe_check_libs=""
|
|
5489
|
|
5490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5491 echo "$ac_t""yes" 1>&6
|
|
5492 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
|
|
5493 else
|
|
5494 echo "$ac_t""no" 1>&6
|
|
5495 fi
|
|
5496
|
|
5497
|
|
5498
|
|
5499 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
|
1161
|
5500 echo "configure:5501: checking for main in -lglade" >&5
|
462
|
5501 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
|
|
5502
|
|
5503 xe_check_libs=" -lglade "
|
|
5504 cat > conftest.$ac_ext <<EOF
|
1161
|
5505 #line 5506 "configure"
|
462
|
5506 #include "confdefs.h"
|
|
5507
|
|
5508 int main() {
|
|
5509 main()
|
|
5510 ; return 0; }
|
|
5511 EOF
|
1161
|
5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5513 rm -rf conftest*
|
|
5514 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5515 else
|
|
5516 echo "configure: failed program was:" >&5
|
|
5517 cat conftest.$ac_ext >&5
|
|
5518 rm -rf conftest*
|
|
5519 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5520 fi
|
|
5521 rm -f conftest*
|
|
5522 xe_check_libs=""
|
|
5523
|
|
5524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5525 echo "$ac_t""yes" 1>&6
|
|
5526 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
|
|
5527 else
|
|
5528 echo "$ac_t""no" 1>&6
|
|
5529 fi
|
|
5530
|
|
5531
|
|
5532
|
|
5533 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
|
1161
|
5534 echo "configure:5535: checking for main in -lglade-gnome" >&5
|
462
|
5535 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
|
|
5536
|
|
5537 xe_check_libs=" -lglade-gnome "
|
|
5538 cat > conftest.$ac_ext <<EOF
|
1161
|
5539 #line 5540 "configure"
|
462
|
5540 #include "confdefs.h"
|
|
5541
|
|
5542 int main() {
|
|
5543 main()
|
|
5544 ; return 0; }
|
|
5545 EOF
|
1161
|
5546 if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5547 rm -rf conftest*
|
|
5548 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5549 else
|
|
5550 echo "configure: failed program was:" >&5
|
|
5551 cat conftest.$ac_ext >&5
|
|
5552 rm -rf conftest*
|
|
5553 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5554 fi
|
|
5555 rm -f conftest*
|
|
5556 xe_check_libs=""
|
|
5557
|
|
5558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5559 echo "$ac_t""yes" 1>&6
|
|
5560 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
|
|
5561 else
|
|
5562 echo "$ac_t""no" 1>&6
|
|
5563 fi
|
|
5564
|
|
5565
|
|
5566 cat > conftest.$ac_ext <<EOF
|
1161
|
5567 #line 5568 "configure"
|
462
|
5568 #include "confdefs.h"
|
|
5569 #include <glade/glade-xml.h>
|
|
5570 EOF
|
|
5571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5572 egrep "char \*txtdomain;" >/dev/null 2>&1; then
|
|
5573 rm -rf conftest*
|
|
5574 echo "$ac_t""yes" 1>&6
|
|
5575 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5576 Defining LIBGLADE_XML_TXTDOMAIN = 1
|
|
5577 EOF
|
|
5578 cat >> confdefs.h <<\EOF
|
|
5579 #define LIBGLADE_XML_TXTDOMAIN 1
|
|
5580 EOF
|
|
5581 }
|
|
5582
|
|
5583 else
|
|
5584 rm -rf conftest*
|
|
5585 echo "$ac_t""no" 1>&6
|
|
5586 fi
|
|
5587 rm -f conftest*
|
|
5588
|
|
5589 CFLAGS="${OLD_CFLAGS}"
|
724
|
5590 CPPFLAGS="${OLD_CPPFLAGS}"
|
462
|
5591 LDFLAGS="${OLD_LDFLAGS}"
|
|
5592 fi
|
|
5593
|
149
|
5594
|
187
|
5595 if test "$with_x11" != "no"; then
|
|
5596 test "$x_includes $x_libraries" != "NONE NONE" && \
|
|
5597 window_system=x11 with_x11=yes
|
|
5598
|
272
|
5599
|
|
5600 if test "$x_includes $x_libraries" = "NONE NONE" \
|
|
5601 -a -n "$OPENWINHOME" \
|
|
5602 -a "$OPENWINHOME" != "/usr/openwin" \
|
|
5603 -a -d "$OPENWINHOME"; then
|
187
|
5604 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
|
|
5605 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
|
|
5606 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
|
272
|
5607 fi
|
|
5608
|
|
5609 if test "$x_includes" = "NONE"; then
|
|
5610 for dir in "/usr/X11" "/usr/X11R6"; do
|
|
5611 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
|
|
5612 done
|
|
5613 fi
|
|
5614
|
|
5615 if test "$x_libraries" = "NONE"; then
|
|
5616 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
|
|
5617 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
|
|
5618 done
|
149
|
5619 fi
|
187
|
5620
|
149
|
5621 # If we find X, set shell vars x_includes and x_libraries to the
|
|
5622 # paths, otherwise set no_x=yes.
|
|
5623 # Uses ac_ vars as temps to allow command line to override cache and checks.
|
|
5624 # --without-x overrides everything else, but does not touch the cache.
|
|
5625 echo $ac_n "checking for X""... $ac_c" 1>&6
|
1161
|
5626 echo "configure:5627: checking for X" >&5
|
149
|
5627
|
|
5628 # Check whether --with-x or --without-x was given.
|
|
5629 if test "${with_x+set}" = set; then
|
|
5630 withval="$with_x"
|
|
5631 :
|
|
5632 fi
|
|
5633
|
|
5634 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
5635 if test "x$with_x" = xno; then
|
|
5636 # The user explicitly disabled X.
|
|
5637 have_x=disabled
|
|
5638 else
|
|
5639 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|
5640 # Both variables are already set.
|
|
5641 have_x=yes
|
|
5642 else
|
|
5643
|
|
5644 # One or both of the vars are not set, and there is no cached value.
|
|
5645 ac_x_includes=NO ac_x_libraries=NO
|
0
|
5646 rm -fr conftestdir
|
|
5647 if mkdir conftestdir; then
|
|
5648 cd conftestdir
|
|
5649 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
5650 cat > Imakefile <<'EOF'
|
|
5651 acfindx:
|
|
5652 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
5653 EOF
|
|
5654 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
5655 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
149
|
5656 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
0
|
5657 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
149
|
5658 for ac_extension in a so sl; do
|
|
5659 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
|
5660 test -f $ac_im_libdir/libX11.$ac_extension; then
|
|
5661 ac_im_usrlibdir=$ac_im_libdir; break
|
|
5662 fi
|
|
5663 done
|
|
5664 # Screen out bogus values from the imake configuration. They are
|
|
5665 # bogus both because they are the default anyway, and because
|
|
5666 # using them would break gcc on systems where it needs fixed includes.
|
0
|
5667 case "$ac_im_incroot" in
|
|
5668 /usr/include) ;;
|
149
|
5669 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
0
|
5670 esac
|
|
5671 case "$ac_im_usrlibdir" in
|
|
5672 /usr/lib | /lib) ;;
|
149
|
5673 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
0
|
5674 esac
|
|
5675 fi
|
|
5676 cd ..
|
|
5677 rm -fr conftestdir
|
|
5678 fi
|
|
5679
|
149
|
5680 if test "$ac_x_includes" = NO; then
|
|
5681 # Guess where to find include files, by looking for this one X11 .h file.
|
|
5682 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|
5683
|
|
5684 # First, try using that file with no special directory specified.
|
|
5685 cat > conftest.$ac_ext <<EOF
|
1161
|
5686 #line 5687 "configure"
|
0
|
5687 #include "confdefs.h"
|
|
5688 #include <$x_direct_test_include>
|
|
5689 EOF
|
149
|
5690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
5691 { (eval echo configure:5692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
5692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
5693 if test -z "$ac_err"; then
|
|
5694 rm -rf conftest*
|
149
|
5695 # We can compile using X headers with no special include directory.
|
|
5696 ac_x_includes=
|
|
5697 else
|
|
5698 echo "$ac_err" >&5
|
|
5699 echo "configure: failed program was:" >&5
|
|
5700 cat conftest.$ac_ext >&5
|
|
5701 rm -rf conftest*
|
|
5702 # Look for the header file in a standard set of common directories.
|
|
5703 # Check X11 before X11Rn because it is often a symlink to the current release.
|
0
|
5704 for ac_dir in \
|
149
|
5705 /usr/X11/include \
|
0
|
5706 /usr/X11R6/include \
|
|
5707 /usr/X11R5/include \
|
|
5708 /usr/X11R4/include \
|
|
5709 \
|
149
|
5710 /usr/include/X11 \
|
0
|
5711 /usr/include/X11R6 \
|
|
5712 /usr/include/X11R5 \
|
|
5713 /usr/include/X11R4 \
|
|
5714 \
|
149
|
5715 /usr/local/X11/include \
|
0
|
5716 /usr/local/X11R6/include \
|
|
5717 /usr/local/X11R5/include \
|
|
5718 /usr/local/X11R4/include \
|
|
5719 \
|
149
|
5720 /usr/local/include/X11 \
|
0
|
5721 /usr/local/include/X11R6 \
|
|
5722 /usr/local/include/X11R5 \
|
|
5723 /usr/local/include/X11R4 \
|
|
5724 \
|
|
5725 /usr/X386/include \
|
|
5726 /usr/x386/include \
|
|
5727 /usr/XFree86/include/X11 \
|
|
5728 \
|
|
5729 /usr/include \
|
|
5730 /usr/local/include \
|
|
5731 /usr/unsupported/include \
|
|
5732 /usr/athena/include \
|
|
5733 /usr/local/x11r5/include \
|
|
5734 /usr/lpp/Xamples/include \
|
|
5735 \
|
|
5736 /usr/openwin/include \
|
|
5737 /usr/openwin/share/include \
|
|
5738 ; \
|
|
5739 do
|
|
5740 if test -r "$ac_dir/$x_direct_test_include"; then
|
149
|
5741 ac_x_includes=$ac_dir
|
0
|
5742 break
|
|
5743 fi
|
|
5744 done
|
|
5745 fi
|
|
5746 rm -f conftest*
|
149
|
5747 fi # $ac_x_includes = NO
|
|
5748
|
|
5749 if test "$ac_x_libraries" = NO; then
|
|
5750 # Check for the libraries.
|
|
5751
|
|
5752 test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|
5753 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|
5754
|
|
5755 # See if we find them without any special options.
|
|
5756 # Don't add to $LIBS permanently.
|
|
5757 ac_save_LIBS="$LIBS"
|
|
5758 LIBS="-l$x_direct_test_library $LIBS"
|
|
5759 cat > conftest.$ac_ext <<EOF
|
1161
|
5760 #line 5761 "configure"
|
149
|
5761 #include "confdefs.h"
|
|
5762
|
|
5763 int main() {
|
|
5764 ${x_direct_test_function}()
|
|
5765 ; return 0; }
|
|
5766 EOF
|
1161
|
5767 if { (eval echo configure:5768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5768 rm -rf conftest*
|
|
5769 LIBS="$ac_save_LIBS"
|
|
5770 # We can link X programs with no special library path.
|
|
5771 ac_x_libraries=
|
|
5772 else
|
|
5773 echo "configure: failed program was:" >&5
|
|
5774 cat conftest.$ac_ext >&5
|
|
5775 rm -rf conftest*
|
|
5776 LIBS="$ac_save_LIBS"
|
|
5777 # First see if replacing the include by lib works.
|
|
5778 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
5779 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|
5780 /usr/X11/lib \
|
0
|
5781 /usr/X11R6/lib \
|
|
5782 /usr/X11R5/lib \
|
|
5783 /usr/X11R4/lib \
|
|
5784 \
|
149
|
5785 /usr/lib/X11 \
|
0
|
5786 /usr/lib/X11R6 \
|
|
5787 /usr/lib/X11R5 \
|
|
5788 /usr/lib/X11R4 \
|
|
5789 \
|
149
|
5790 /usr/local/X11/lib \
|
0
|
5791 /usr/local/X11R6/lib \
|
|
5792 /usr/local/X11R5/lib \
|
|
5793 /usr/local/X11R4/lib \
|
|
5794 \
|
149
|
5795 /usr/local/lib/X11 \
|
0
|
5796 /usr/local/lib/X11R6 \
|
|
5797 /usr/local/lib/X11R5 \
|
|
5798 /usr/local/lib/X11R4 \
|
|
5799 \
|
|
5800 /usr/X386/lib \
|
|
5801 /usr/x386/lib \
|
|
5802 /usr/XFree86/lib/X11 \
|
|
5803 \
|
|
5804 /usr/lib \
|
|
5805 /usr/local/lib \
|
|
5806 /usr/unsupported/lib \
|
|
5807 /usr/athena/lib \
|
|
5808 /usr/local/x11r5/lib \
|
|
5809 /usr/lpp/Xamples/lib \
|
149
|
5810 /lib/usr/lib/X11 \
|
0
|
5811 \
|
|
5812 /usr/openwin/lib \
|
|
5813 /usr/openwin/share/lib \
|
|
5814 ; \
|
|
5815 do
|
|
5816 for ac_extension in a so sl; do
|
|
5817 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
149
|
5818 ac_x_libraries=$ac_dir
|
0
|
5819 break 2
|
|
5820 fi
|
|
5821 done
|
|
5822 done
|
|
5823 fi
|
149
|
5824 rm -f conftest*
|
|
5825 fi # $ac_x_libraries = NO
|
|
5826
|
|
5827 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|
5828 # Didn't find X anywhere. Cache the known absence of X.
|
|
5829 ac_cv_have_x="have_x=no"
|
|
5830 else
|
|
5831 # Record where we found X for the cache.
|
|
5832 ac_cv_have_x="have_x=yes \
|
|
5833 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|
5834 fi
|
|
5835 fi
|
|
5836 eval "$ac_cv_have_x"
|
|
5837 fi # $with_x != no
|
|
5838
|
|
5839 if test "$have_x" != yes; then
|
|
5840 echo "$ac_t""$have_x" 1>&6
|
|
5841 no_x=yes
|
|
5842 else
|
|
5843 # If each of the values was on the command line, it overrides each guess.
|
|
5844 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|
5845 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|
5846 # Update the cache value to reflect the command line values.
|
|
5847 ac_cv_have_x="have_x=yes \
|
|
5848 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|
5849 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|
5850 fi
|
|
5851
|
|
5852 if test "$no_x" = yes; then
|
|
5853 # Not all programs may use this symbol, but it does not hurt to define it.
|
|
5854 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5855 Defining X_DISPLAY_MISSING
|
|
5856 EOF
|
|
5857 cat >> confdefs.h <<\EOF
|
|
5858 #define X_DISPLAY_MISSING 1
|
|
5859 EOF
|
|
5860 }
|
|
5861
|
|
5862 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
|
5863 else
|
|
5864 if test -n "$x_includes"; then
|
|
5865 X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|
5866 fi
|
|
5867
|
|
5868 # It would also be nice to do this for all -L options, not just this one.
|
|
5869 if test -n "$x_libraries"; then
|
|
5870 X_LIBS="$X_LIBS -L$x_libraries"
|
|
5871 # For Solaris; some versions of Sun CC require a space after -R and
|
|
5872 # others require no space. Words are not sufficient . . . .
|
|
5873 case "`(uname -sr) 2>/dev/null`" in
|
|
5874 "SunOS 5"*)
|
|
5875 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
1161
|
5876 echo "configure:5877: checking whether -R must be followed by a space" >&5
|
149
|
5877 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
|
5878 cat > conftest.$ac_ext <<EOF
|
1161
|
5879 #line 5880 "configure"
|
|
5880 #include "confdefs.h"
|
|
5881
|
|
5882 int main() {
|
|
5883
|
|
5884 ; return 0; }
|
|
5885 EOF
|
|
5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5887 rm -rf conftest*
|
|
5888 ac_R_nospace=yes
|
|
5889 else
|
|
5890 echo "configure: failed program was:" >&5
|
|
5891 cat conftest.$ac_ext >&5
|
|
5892 rm -rf conftest*
|
|
5893 ac_R_nospace=no
|
|
5894 fi
|
|
5895 rm -f conftest*
|
|
5896 if test $ac_R_nospace = yes; then
|
|
5897 echo "$ac_t""no" 1>&6
|
|
5898 X_LIBS="$X_LIBS -R$x_libraries"
|
|
5899 else
|
|
5900 LIBS="$ac_xsave_LIBS -R $x_libraries"
|
|
5901 cat > conftest.$ac_ext <<EOF
|
1161
|
5902 #line 5903 "configure"
|
|
5903 #include "confdefs.h"
|
|
5904
|
|
5905 int main() {
|
|
5906
|
|
5907 ; return 0; }
|
|
5908 EOF
|
|
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5910 rm -rf conftest*
|
|
5911 ac_R_space=yes
|
|
5912 else
|
|
5913 echo "configure: failed program was:" >&5
|
|
5914 cat conftest.$ac_ext >&5
|
|
5915 rm -rf conftest*
|
|
5916 ac_R_space=no
|
|
5917 fi
|
|
5918 rm -f conftest*
|
|
5919 if test $ac_R_space = yes; then
|
|
5920 echo "$ac_t""yes" 1>&6
|
|
5921 X_LIBS="$X_LIBS -R $x_libraries"
|
|
5922 else
|
|
5923 echo "$ac_t""neither works" 1>&6
|
|
5924 fi
|
|
5925 fi
|
|
5926 LIBS="$ac_xsave_LIBS"
|
|
5927 esac
|
|
5928 fi
|
|
5929
|
|
5930 # Check for system-dependent libraries X programs must link with.
|
|
5931 # Do this before checking for the system-independent R6 libraries
|
|
5932 # (-lICE), since we may need -lsocket or whatever for X linking.
|
|
5933
|
|
5934 if test "$ISC" = yes; then
|
|
5935 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
|
5936 else
|
|
5937 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
|
5938 # libraries were built with DECnet support. And karl@cs.umb.edu says
|
|
5939 # the Alpha needs dnet_stub (dnet does not exist).
|
151
|
5940 if test "$with_dnet" = "no" ; then
|
149
|
5941 ac_cv_lib_dnet_dnet_ntoa=no
|
|
5942 else
|
|
5943
|
|
5944 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
1161
|
5945 echo "configure:5946: checking for dnet_ntoa in -ldnet" >&5
|
149
|
5946 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
5947
|
|
5948 xe_check_libs=" -ldnet "
|
|
5949 cat > conftest.$ac_ext <<EOF
|
1161
|
5950 #line 5951 "configure"
|
149
|
5951 #include "confdefs.h"
|
|
5952 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5953 /* We use char because int might match the return type of a gcc2
|
|
5954 builtin and then its argument prototype would still apply. */
|
|
5955 char dnet_ntoa();
|
|
5956
|
|
5957 int main() {
|
|
5958 dnet_ntoa()
|
|
5959 ; return 0; }
|
|
5960 EOF
|
1161
|
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5962 rm -rf conftest*
|
|
5963 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5964 else
|
|
5965 echo "configure: failed program was:" >&5
|
|
5966 cat conftest.$ac_ext >&5
|
|
5967 rm -rf conftest*
|
|
5968 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5969 fi
|
|
5970 rm -f conftest*
|
|
5971 xe_check_libs=""
|
|
5972
|
151
|
5973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5974 echo "$ac_t""yes" 1>&6
|
|
5975 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
|
5976 else
|
|
5977 echo "$ac_t""no" 1>&6
|
|
5978 fi
|
|
5979
|
|
5980 fi
|
|
5981
|
|
5982 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
|
5983
|
|
5984 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
1161
|
5985 echo "configure:5986: checking for dnet_ntoa in -ldnet_stub" >&5
|
149
|
5986 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
5987
|
|
5988 xe_check_libs=" -ldnet_stub "
|
|
5989 cat > conftest.$ac_ext <<EOF
|
1161
|
5990 #line 5991 "configure"
|
149
|
5991 #include "confdefs.h"
|
|
5992 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5993 /* We use char because int might match the return type of a gcc2
|
|
5994 builtin and then its argument prototype would still apply. */
|
|
5995 char dnet_ntoa();
|
|
5996
|
|
5997 int main() {
|
|
5998 dnet_ntoa()
|
|
5999 ; return 0; }
|
|
6000 EOF
|
1161
|
6001 if { (eval echo configure:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6002 rm -rf conftest*
|
|
6003 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6004 else
|
|
6005 echo "configure: failed program was:" >&5
|
|
6006 cat conftest.$ac_ext >&5
|
|
6007 rm -rf conftest*
|
|
6008 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6009 fi
|
|
6010 rm -f conftest*
|
|
6011 xe_check_libs=""
|
|
6012
|
151
|
6013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6014 echo "$ac_t""yes" 1>&6
|
|
6015 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
|
6016 else
|
|
6017 echo "$ac_t""no" 1>&6
|
|
6018 fi
|
|
6019
|
|
6020
|
|
6021 fi
|
|
6022
|
|
6023 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|
6024 # to get the SysV transport functions.
|
|
6025 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|
6026 # needs -lnsl.
|
|
6027 # The nsl library prevents programs from opening the X display
|
|
6028 # on Irix 5.2, according to dickey@clark.net.
|
|
6029 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
1161
|
6030 echo "configure:6031: checking for gethostbyname" >&5
|
|
6031
|
|
6032 cat > conftest.$ac_ext <<EOF
|
|
6033 #line 6034 "configure"
|
149
|
6034 #include "confdefs.h"
|
|
6035 /* System header to define __stub macros and hopefully few prototypes,
|
|
6036 which can conflict with char gethostbyname(); below. */
|
|
6037 #include <assert.h>
|
|
6038 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6039 /* We use char because int might match the return type of a gcc2
|
|
6040 builtin and then its argument prototype would still apply. */
|
|
6041 char gethostbyname();
|
|
6042
|
|
6043 int main() {
|
|
6044
|
|
6045 /* The GNU C library defines this for functions which it implements
|
|
6046 to always fail with ENOSYS. Some functions are actually named
|
|
6047 something starting with __ and the normal name is an alias. */
|
|
6048 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|
6049 choke me
|
|
6050 #else
|
|
6051 gethostbyname();
|
|
6052 #endif
|
|
6053
|
|
6054 ; return 0; }
|
|
6055 EOF
|
1161
|
6056 if { (eval echo configure:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6057 rm -rf conftest*
|
|
6058 eval "ac_cv_func_gethostbyname=yes"
|
|
6059 else
|
|
6060 echo "configure: failed program was:" >&5
|
|
6061 cat conftest.$ac_ext >&5
|
|
6062 rm -rf conftest*
|
|
6063 eval "ac_cv_func_gethostbyname=no"
|
|
6064 fi
|
|
6065 rm -f conftest*
|
|
6066
|
|
6067 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|
6068 echo "$ac_t""yes" 1>&6
|
|
6069 :
|
|
6070 else
|
|
6071 echo "$ac_t""no" 1>&6
|
|
6072 fi
|
|
6073
|
|
6074 if test $ac_cv_func_gethostbyname = no; then
|
|
6075
|
|
6076 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
1161
|
6077 echo "configure:6078: checking for gethostbyname in -lnsl" >&5
|
149
|
6078 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
6079
|
|
6080 xe_check_libs=" -lnsl "
|
|
6081 cat > conftest.$ac_ext <<EOF
|
1161
|
6082 #line 6083 "configure"
|
149
|
6083 #include "confdefs.h"
|
|
6084 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6085 /* We use char because int might match the return type of a gcc2
|
|
6086 builtin and then its argument prototype would still apply. */
|
|
6087 char gethostbyname();
|
|
6088
|
|
6089 int main() {
|
|
6090 gethostbyname()
|
|
6091 ; return 0; }
|
|
6092 EOF
|
1161
|
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6094 rm -rf conftest*
|
|
6095 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6096 else
|
|
6097 echo "configure: failed program was:" >&5
|
|
6098 cat conftest.$ac_ext >&5
|
|
6099 rm -rf conftest*
|
|
6100 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6101 fi
|
|
6102 rm -f conftest*
|
|
6103 xe_check_libs=""
|
|
6104
|
151
|
6105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6106 echo "$ac_t""yes" 1>&6
|
|
6107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
|
6108 else
|
|
6109 echo "$ac_t""no" 1>&6
|
|
6110 fi
|
|
6111
|
|
6112
|
|
6113 fi
|
|
6114
|
|
6115 # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|
6116 # socket/setsockopt and other routines are undefined under SCO ODT
|
|
6117 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|
6118 # on later versions), says simon@lia.di.epfl.ch: it contains
|
|
6119 # gethostby* variants that don't use the nameserver (or something).
|
|
6120 # -lsocket must be given before -lnsl if both are needed.
|
|
6121 # We assume that if connect needs -lnsl, so does gethostbyname.
|
|
6122 echo $ac_n "checking for connect""... $ac_c" 1>&6
|
1161
|
6123 echo "configure:6124: checking for connect" >&5
|
|
6124
|
|
6125 cat > conftest.$ac_ext <<EOF
|
|
6126 #line 6127 "configure"
|
149
|
6127 #include "confdefs.h"
|
|
6128 /* System header to define __stub macros and hopefully few prototypes,
|
|
6129 which can conflict with char connect(); below. */
|
|
6130 #include <assert.h>
|
|
6131 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6132 /* We use char because int might match the return type of a gcc2
|
|
6133 builtin and then its argument prototype would still apply. */
|
|
6134 char connect();
|
|
6135
|
|
6136 int main() {
|
|
6137
|
|
6138 /* The GNU C library defines this for functions which it implements
|
|
6139 to always fail with ENOSYS. Some functions are actually named
|
|
6140 something starting with __ and the normal name is an alias. */
|
|
6141 #if defined (__stub_connect) || defined (__stub___connect)
|
|
6142 choke me
|
|
6143 #else
|
|
6144 connect();
|
|
6145 #endif
|
|
6146
|
|
6147 ; return 0; }
|
|
6148 EOF
|
1161
|
6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6150 rm -rf conftest*
|
|
6151 eval "ac_cv_func_connect=yes"
|
|
6152 else
|
|
6153 echo "configure: failed program was:" >&5
|
|
6154 cat conftest.$ac_ext >&5
|
|
6155 rm -rf conftest*
|
|
6156 eval "ac_cv_func_connect=no"
|
|
6157 fi
|
|
6158 rm -f conftest*
|
|
6159
|
|
6160 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|
6161 echo "$ac_t""yes" 1>&6
|
|
6162 :
|
|
6163 else
|
|
6164 echo "$ac_t""no" 1>&6
|
|
6165 fi
|
|
6166
|
|
6167 if test $ac_cv_func_connect = no; then
|
|
6168
|
|
6169 xe_msg_checking="for connect in -lsocket"
|
|
6170 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
6171 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1161
|
6172 echo "configure:6173: checking "$xe_msg_checking"" >&5
|
149
|
6173 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|
6174
|
|
6175 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
|
|
6176 cat > conftest.$ac_ext <<EOF
|
1161
|
6177 #line 6178 "configure"
|
149
|
6178 #include "confdefs.h"
|
|
6179 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6180 /* We use char because int might match the return type of a gcc2
|
|
6181 builtin and then its argument prototype would still apply. */
|
|
6182 char connect();
|
|
6183
|
|
6184 int main() {
|
|
6185 connect()
|
|
6186 ; return 0; }
|
|
6187 EOF
|
1161
|
6188 if { (eval echo configure:6189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6189 rm -rf conftest*
|
|
6190 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6191 else
|
|
6192 echo "configure: failed program was:" >&5
|
|
6193 cat conftest.$ac_ext >&5
|
|
6194 rm -rf conftest*
|
|
6195 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6196 fi
|
|
6197 rm -f conftest*
|
|
6198 xe_check_libs=""
|
|
6199
|
151
|
6200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6201 echo "$ac_t""yes" 1>&6
|
|
6202 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
|
6203 else
|
|
6204 echo "$ac_t""no" 1>&6
|
|
6205 fi
|
|
6206
|
|
6207
|
|
6208 fi
|
|
6209
|
|
6210 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
|
6211 echo $ac_n "checking for remove""... $ac_c" 1>&6
|
1161
|
6212 echo "configure:6213: checking for remove" >&5
|
|
6213
|
|
6214 cat > conftest.$ac_ext <<EOF
|
|
6215 #line 6216 "configure"
|
149
|
6216 #include "confdefs.h"
|
|
6217 /* System header to define __stub macros and hopefully few prototypes,
|
|
6218 which can conflict with char remove(); below. */
|
|
6219 #include <assert.h>
|
|
6220 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6221 /* We use char because int might match the return type of a gcc2
|
|
6222 builtin and then its argument prototype would still apply. */
|
|
6223 char remove();
|
|
6224
|
|
6225 int main() {
|
|
6226
|
|
6227 /* The GNU C library defines this for functions which it implements
|
|
6228 to always fail with ENOSYS. Some functions are actually named
|
|
6229 something starting with __ and the normal name is an alias. */
|
|
6230 #if defined (__stub_remove) || defined (__stub___remove)
|
|
6231 choke me
|
|
6232 #else
|
|
6233 remove();
|
|
6234 #endif
|
|
6235
|
|
6236 ; return 0; }
|
|
6237 EOF
|
1161
|
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6239 rm -rf conftest*
|
|
6240 eval "ac_cv_func_remove=yes"
|
|
6241 else
|
|
6242 echo "configure: failed program was:" >&5
|
|
6243 cat conftest.$ac_ext >&5
|
|
6244 rm -rf conftest*
|
|
6245 eval "ac_cv_func_remove=no"
|
|
6246 fi
|
|
6247 rm -f conftest*
|
|
6248
|
|
6249 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
|
6250 echo "$ac_t""yes" 1>&6
|
|
6251 :
|
|
6252 else
|
|
6253 echo "$ac_t""no" 1>&6
|
|
6254 fi
|
|
6255
|
|
6256 if test $ac_cv_func_remove = no; then
|
|
6257
|
|
6258 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
1161
|
6259 echo "configure:6260: checking for remove in -lposix" >&5
|
149
|
6260 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
|
6261
|
|
6262 xe_check_libs=" -lposix "
|
|
6263 cat > conftest.$ac_ext <<EOF
|
1161
|
6264 #line 6265 "configure"
|
149
|
6265 #include "confdefs.h"
|
|
6266 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6267 /* We use char because int might match the return type of a gcc2
|
|
6268 builtin and then its argument prototype would still apply. */
|
|
6269 char remove();
|
|
6270
|
|
6271 int main() {
|
|
6272 remove()
|
|
6273 ; return 0; }
|
|
6274 EOF
|
1161
|
6275 if { (eval echo configure:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6276 rm -rf conftest*
|
|
6277 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6278 else
|
|
6279 echo "configure: failed program was:" >&5
|
|
6280 cat conftest.$ac_ext >&5
|
|
6281 rm -rf conftest*
|
|
6282 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6283 fi
|
|
6284 rm -f conftest*
|
|
6285 xe_check_libs=""
|
|
6286
|
151
|
6287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6288 echo "$ac_t""yes" 1>&6
|
|
6289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
|
6290 else
|
|
6291 echo "$ac_t""no" 1>&6
|
|
6292 fi
|
|
6293
|
|
6294
|
|
6295 fi
|
|
6296
|
|
6297 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|
6298 echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
1161
|
6299 echo "configure:6300: checking for shmat" >&5
|
|
6300
|
|
6301 cat > conftest.$ac_ext <<EOF
|
|
6302 #line 6303 "configure"
|
149
|
6303 #include "confdefs.h"
|
|
6304 /* System header to define __stub macros and hopefully few prototypes,
|
|
6305 which can conflict with char shmat(); below. */
|
|
6306 #include <assert.h>
|
|
6307 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6308 /* We use char because int might match the return type of a gcc2
|
|
6309 builtin and then its argument prototype would still apply. */
|
|
6310 char shmat();
|
|
6311
|
|
6312 int main() {
|
|
6313
|
|
6314 /* The GNU C library defines this for functions which it implements
|
|
6315 to always fail with ENOSYS. Some functions are actually named
|
|
6316 something starting with __ and the normal name is an alias. */
|
|
6317 #if defined (__stub_shmat) || defined (__stub___shmat)
|
|
6318 choke me
|
|
6319 #else
|
|
6320 shmat();
|
|
6321 #endif
|
|
6322
|
|
6323 ; return 0; }
|
|
6324 EOF
|
1161
|
6325 if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6326 rm -rf conftest*
|
|
6327 eval "ac_cv_func_shmat=yes"
|
|
6328 else
|
|
6329 echo "configure: failed program was:" >&5
|
|
6330 cat conftest.$ac_ext >&5
|
|
6331 rm -rf conftest*
|
|
6332 eval "ac_cv_func_shmat=no"
|
|
6333 fi
|
|
6334 rm -f conftest*
|
|
6335
|
|
6336 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
|
6337 echo "$ac_t""yes" 1>&6
|
|
6338 :
|
|
6339 else
|
|
6340 echo "$ac_t""no" 1>&6
|
|
6341 fi
|
|
6342
|
|
6343 if test $ac_cv_func_shmat = no; then
|
|
6344
|
|
6345 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
1161
|
6346 echo "configure:6347: checking for shmat in -lipc" >&5
|
149
|
6347 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
|
6348
|
|
6349 xe_check_libs=" -lipc "
|
|
6350 cat > conftest.$ac_ext <<EOF
|
1161
|
6351 #line 6352 "configure"
|
149
|
6352 #include "confdefs.h"
|
|
6353 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6354 /* We use char because int might match the return type of a gcc2
|
|
6355 builtin and then its argument prototype would still apply. */
|
|
6356 char shmat();
|
|
6357
|
|
6358 int main() {
|
|
6359 shmat()
|
|
6360 ; return 0; }
|
|
6361 EOF
|
1161
|
6362 if { (eval echo configure:6363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6363 rm -rf conftest*
|
|
6364 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6365 else
|
|
6366 echo "configure: failed program was:" >&5
|
|
6367 cat conftest.$ac_ext >&5
|
|
6368 rm -rf conftest*
|
|
6369 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6370 fi
|
|
6371 rm -f conftest*
|
|
6372 xe_check_libs=""
|
|
6373
|
151
|
6374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6375 echo "$ac_t""yes" 1>&6
|
|
6376 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
|
6377 else
|
|
6378 echo "$ac_t""no" 1>&6
|
|
6379 fi
|
|
6380
|
0
|
6381
|
|
6382 fi
|
149
|
6383 fi
|
|
6384
|
|
6385 # Check for libraries that X11R6 Xt/Xaw programs need.
|
|
6386 ac_save_LDFLAGS="$LDFLAGS"
|
|
6387 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
|
6388 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|
6389 # check for ICE first), but we must link in the order -lSM -lICE or
|
|
6390 # we get undefined symbols. So assume we have SM if we have ICE.
|
|
6391 # These have to be linked with before -lX11, unlike the other
|
|
6392 # libraries we check for below, so use a different variable.
|
|
6393 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
|
6394
|
420
|
6395 xe_msg_checking="for IceConnectionNumber in -lICE"
|
|
6396 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
6397 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1161
|
6398 echo "configure:6399: checking "$xe_msg_checking"" >&5
|
149
|
6399 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
|
6400
|
420
|
6401 xe_check_libs=" -lICE $X_EXTRA_LIBS"
|
|
6402 cat > conftest.$ac_ext <<EOF
|
1161
|
6403 #line 6404 "configure"
|
149
|
6404 #include "confdefs.h"
|
|
6405 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6406 /* We use char because int might match the return type of a gcc2
|
|
6407 builtin and then its argument prototype would still apply. */
|
|
6408 char IceConnectionNumber();
|
|
6409
|
|
6410 int main() {
|
|
6411 IceConnectionNumber()
|
|
6412 ; return 0; }
|
|
6413 EOF
|
1161
|
6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6415 rm -rf conftest*
|
|
6416 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6417 else
|
|
6418 echo "configure: failed program was:" >&5
|
|
6419 cat conftest.$ac_ext >&5
|
|
6420 rm -rf conftest*
|
|
6421 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6422 fi
|
|
6423 rm -f conftest*
|
|
6424 xe_check_libs=""
|
|
6425
|
151
|
6426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6427 echo "$ac_t""yes" 1>&6
|
|
6428 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
|
6429 else
|
|
6430 echo "$ac_t""no" 1>&6
|
|
6431 fi
|
|
6432
|
|
6433
|
|
6434 LDFLAGS="$ac_save_LDFLAGS"
|
|
6435
|
|
6436 fi
|
|
6437 # Autoconf claims to find X library and include dirs for us.
|
|
6438 if test "$no_x" = "yes"
|
|
6439 then with_x11=no window_system=none HAVE_X_WINDOWS=no
|
|
6440 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
|
|
6441 fi
|
|
6442 fi
|
|
6443
|
0
|
6444
|
149
|
6445 if test "$with_x11" = "yes"; then
|
|
6446 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6447 Defining HAVE_X_WINDOWS
|
|
6448 EOF
|
|
6449 cat >> confdefs.h <<\EOF
|
|
6450 #define HAVE_X_WINDOWS 1
|
|
6451 EOF
|
|
6452 }
|
|
6453
|
151
|
6454 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
|
175
|
6455 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
|
149
|
6456
|
278
|
6457 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
|
159
|
6458 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
|
149
|
6459 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
151
|
6460 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
6461 x_libraries="$lib_dir $x_libraries"
|
|
6462 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
|
149
|
6463 esac
|
151
|
6464 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
6465 x_includes="$inc_dir $x_includes"
|
|
6466 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
|
149
|
6467 esac
|
|
6468 break; fi
|
|
6469 done
|
|
6470
|
|
6471 for rel in "X11R6" "X11R5" "X11R4"; do
|
|
6472 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
|
|
6473 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
151
|
6474 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
6475 x_libraries="$x_libraries $lib_dir"
|
|
6476 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
|
149
|
6477 esac
|
151
|
6478 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
6479 x_includes="$x_includes $inc_dir"
|
|
6480 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
|
149
|
6481 esac
|
|
6482 break; fi
|
|
6483 done
|
|
6484
|
442
|
6485 case "$opsys" in
|
|
6486 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 ;;
|
|
6487 esac
|
373
|
6488
|
149
|
6489 ld_switch_x_site="$X_LIBS"
|
|
6490
|
151
|
6491
|
|
6492 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
6493 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
6494 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
6495
|
163
|
6496 runpath="" runpath_dirs=""
|
155
|
6497 if test -n "$LD_RUN_PATH"; then
|
151
|
6498 runpath="$LD_RUN_PATH"
|
155
|
6499 elif test "$GCC" = "yes"; then
|
163
|
6500 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
6501 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
6502 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
6503 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
6504 case "$arg" in P,* | -L* | -R* )
|
159
|
6505 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
6506 {
|
155
|
6507 xe_runpath_dir="$dir"
|
163
|
6508 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
6509 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
6510 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
6511 eval "$xe_add_unique_runpath_dir"
|
|
6512 }
|
155
|
6513 done ;;
|
|
6514 esac
|
|
6515 done
|
163
|
6516 ld_switch_run="$ld_switch_run_save"
|
155
|
6517 rm -f conftest*
|
151
|
6518 else
|
155
|
6519 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
6520 case "$arg" in -L*) {
|
159
|
6521 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
6522 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
6523 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
6524 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
6525 eval "$xe_add_unique_runpath_dir"
|
|
6526 };; esac
|
151
|
6527 done
|
163
|
6528 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
6529 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
6530 eval "$xe_add_unique_runpath_dir";
|
|
6531 fi
|
155
|
6532 fi
|
151
|
6533 if test -n "$runpath"; then
|
|
6534 ld_switch_run="${dash_r}${runpath}"
|
272
|
6535
|
|
6536 if test "$GCC" = "yes"; then
|
|
6537 set x $ld_switch_run; shift; ld_switch_run=""
|
|
6538 while test -n "$1"; do
|
|
6539 case $1 in
|
380
|
6540 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
6541 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
6542 -Xlinker* ) ;;
|
|
6543 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
6544 esac
|
|
6545 shift
|
|
6546 done
|
|
6547 fi
|
151
|
6548 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
6549 fi
|
|
6550 fi
|
|
6551
|
|
6552
|
149
|
6553 if test "$extra_verbose" = "yes"; then
|
|
6554 echo; echo "X11 compilation variables:"
|
163
|
6555 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
|
149
|
6556 echo
|
|
6557 fi
|
|
6558
|
265
|
6559 bitmapdirs=
|
|
6560 if test "$x_includes" != NONE; then
|
|
6561 for i in $x_includes; do
|
|
6562 if test -d "$i/bitmaps"; then
|
|
6563 bitmapdirs="$i/bitmaps:$bitmapdirs"
|
|
6564 fi
|
|
6565 if test -d "$i/X11/bitmaps"; then
|
|
6566 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
|
|
6567 fi
|
|
6568 done
|
|
6569 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
|
|
6570 fi
|
|
6571 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
|
|
6572 Defining BITMAPDIR = "$bitmapdirs"
|
|
6573 EOF
|
|
6574 cat >> confdefs.h <<EOF
|
|
6575 #define BITMAPDIR "$bitmapdirs"
|
|
6576 EOF
|
|
6577 }
|
|
6578
|
|
6579
|
163
|
6580 echo "checking for X defines extracted by xmkmf" 1>&6
|
1161
|
6581 echo "configure:6582: checking for X defines extracted by xmkmf" >&5
|
163
|
6582 rm -fr conftestdir
|
|
6583 if mkdir conftestdir; then
|
|
6584 cd conftestdir
|
|
6585 cat > Imakefile <<'EOF'
|
|
6586 xetest:
|
|
6587 @echo ${PROTO_DEFINES} ${STD_DEFINES}
|
|
6588 EOF
|
|
6589 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
6590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
6591 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
|
|
6592 fi
|
|
6593 cd ..
|
|
6594 rm -fr conftestdir
|
|
6595 for word in $xmkmf_defines; do
|
535
|
6596 case "$word" in
|
473
|
6597 -D__STDC__*) ;;
|
|
6598 -D* )
|
442
|
6599 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
|
|
6600 case "$word" in
|
|
6601 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
|
|
6602 * ) val=1 ;;
|
|
6603 esac
|
|
6604 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
|
|
6605 if test "$val" = "1"
|
|
6606 then { test "$extra_verbose" = "yes" && cat << EOF
|
|
6607 Defining $sym
|
|
6608 EOF
|
|
6609 cat >> confdefs.h <<EOF
|
|
6610 #define $sym 1
|
|
6611 EOF
|
|
6612 }
|
|
6613
|
|
6614 else { test "$extra_verbose" = "yes" && cat << EOF
|
|
6615 Defining $sym = $val
|
|
6616 EOF
|
|
6617 cat >> confdefs.h <<EOF
|
|
6618 #define $sym $val
|
|
6619 EOF
|
|
6620 }
|
|
6621
|
|
6622 fi
|
|
6623 fi ;;
|
163
|
6624 esac
|
|
6625 done
|
|
6626 fi
|
|
6627
|
149
|
6628 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
|
|
6629 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
|
1161
|
6630 echo "configure:6631: checking for X11/Intrinsic.h" >&5
|
|
6631
|
|
6632 cat > conftest.$ac_ext <<EOF
|
|
6633 #line 6634 "configure"
|
149
|
6634 #include "confdefs.h"
|
|
6635 #include <X11/Intrinsic.h>
|
|
6636 EOF
|
|
6637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
6638 { (eval echo configure:6639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
6639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
6640 if test -z "$ac_err"; then
|
|
6641 rm -rf conftest*
|
|
6642 eval "ac_cv_header_$ac_safe=yes"
|
|
6643 else
|
|
6644 echo "$ac_err" >&5
|
|
6645 echo "configure: failed program was:" >&5
|
|
6646 cat conftest.$ac_ext >&5
|
|
6647 rm -rf conftest*
|
|
6648 eval "ac_cv_header_$ac_safe=no"
|
|
6649 fi
|
|
6650 rm -f conftest*
|
|
6651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6652 echo "$ac_t""yes" 1>&6
|
|
6653 :
|
|
6654 else
|
|
6655 echo "$ac_t""no" 1>&6
|
561
|
6656 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; }
|
149
|
6657 fi
|
|
6658
|
|
6659
|
|
6660
|
|
6661 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
|
1161
|
6662 echo "configure:6663: checking for XOpenDisplay in -lX11" >&5
|
149
|
6663 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
|
|
6664
|
|
6665 xe_check_libs=" -lX11 "
|
|
6666 cat > conftest.$ac_ext <<EOF
|
1161
|
6667 #line 6668 "configure"
|
149
|
6668 #include "confdefs.h"
|
|
6669 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6670 /* We use char because int might match the return type of a gcc2
|
|
6671 builtin and then its argument prototype would still apply. */
|
|
6672 char XOpenDisplay();
|
|
6673
|
|
6674 int main() {
|
|
6675 XOpenDisplay()
|
|
6676 ; return 0; }
|
|
6677 EOF
|
1161
|
6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6679 rm -rf conftest*
|
|
6680 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6681 else
|
|
6682 echo "configure: failed program was:" >&5
|
|
6683 cat conftest.$ac_ext >&5
|
|
6684 rm -rf conftest*
|
|
6685 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6686 fi
|
|
6687 rm -f conftest*
|
|
6688 xe_check_libs=""
|
|
6689
|
151
|
6690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6691 echo "$ac_t""yes" 1>&6
|
|
6692 have_lib_x11=yes
|
|
6693 else
|
|
6694 echo "$ac_t""no" 1>&6
|
|
6695 fi
|
|
6696
|
|
6697
|
|
6698 if test "$have_lib_x11" != "yes"; then
|
|
6699
|
|
6700 xe_msg_checking="for XGetFontProperty in -lX11"
|
|
6701 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
|
|
6702 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1161
|
6703 echo "configure:6704: checking "$xe_msg_checking"" >&5
|
149
|
6704 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
|
|
6705
|
|
6706 xe_check_libs=" -lX11 -b i486-linuxaout"
|
|
6707 cat > conftest.$ac_ext <<EOF
|
1161
|
6708 #line 6709 "configure"
|
149
|
6709 #include "confdefs.h"
|
|
6710 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6711 /* We use char because int might match the return type of a gcc2
|
|
6712 builtin and then its argument prototype would still apply. */
|
|
6713 char XGetFontProperty();
|
|
6714
|
|
6715 int main() {
|
|
6716 XGetFontProperty()
|
|
6717 ; return 0; }
|
|
6718 EOF
|
1161
|
6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6720 rm -rf conftest*
|
|
6721 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6722 else
|
|
6723 echo "configure: failed program was:" >&5
|
|
6724 cat conftest.$ac_ext >&5
|
|
6725 rm -rf conftest*
|
|
6726 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6727 fi
|
|
6728 rm -f conftest*
|
|
6729 xe_check_libs=""
|
|
6730
|
151
|
6731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6732 echo "$ac_t""yes" 1>&6
|
|
6733 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
|
|
6734 else
|
|
6735 echo "$ac_t""no" 1>&6
|
561
|
6736 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
|
149
|
6737 fi
|
|
6738
|
|
6739
|
0
|
6740 fi
|
149
|
6741 libs_x="-lX11"
|
151
|
6742 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
|
149
|
6743
|
153
|
6744
|
|
6745 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
|
1161
|
6746 echo "configure:6747: checking for XShapeSelectInput in -lXext" >&5
|
153
|
6747 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
|
|
6748
|
|
6749 xe_check_libs=" -lXext "
|
|
6750 cat > conftest.$ac_ext <<EOF
|
1161
|
6751 #line 6752 "configure"
|
153
|
6752 #include "confdefs.h"
|
|
6753 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6754 /* We use char because int might match the return type of a gcc2
|
|
6755 builtin and then its argument prototype would still apply. */
|
|
6756 char XShapeSelectInput();
|
|
6757
|
|
6758 int main() {
|
|
6759 XShapeSelectInput()
|
|
6760 ; return 0; }
|
|
6761 EOF
|
1161
|
6762 if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
153
|
6763 rm -rf conftest*
|
|
6764 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6765 else
|
|
6766 echo "configure: failed program was:" >&5
|
|
6767 cat conftest.$ac_ext >&5
|
|
6768 rm -rf conftest*
|
|
6769 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6770 fi
|
|
6771 rm -f conftest*
|
|
6772 xe_check_libs=""
|
|
6773
|
|
6774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6775 echo "$ac_t""yes" 1>&6
|
|
6776 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
|
|
6777 else
|
|
6778 echo "$ac_t""no" 1>&6
|
|
6779 fi
|
|
6780
|
|
6781
|
|
6782
|
169
|
6783
|
149
|
6784 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
|
1161
|
6785 echo "configure:6786: checking for XtOpenDisplay in -lXt" >&5
|
149
|
6786 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
|
|
6787
|
|
6788 xe_check_libs=" -lXt "
|
|
6789 cat > conftest.$ac_ext <<EOF
|
1161
|
6790 #line 6791 "configure"
|
149
|
6791 #include "confdefs.h"
|
|
6792 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6793 /* We use char because int might match the return type of a gcc2
|
|
6794 builtin and then its argument prototype would still apply. */
|
|
6795 char XtOpenDisplay();
|
|
6796
|
|
6797 int main() {
|
|
6798 XtOpenDisplay()
|
|
6799 ; return 0; }
|
|
6800 EOF
|
1161
|
6801 if { (eval echo configure:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6802 rm -rf conftest*
|
|
6803 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6804 else
|
|
6805 echo "configure: failed program was:" >&5
|
|
6806 cat conftest.$ac_ext >&5
|
|
6807 rm -rf conftest*
|
|
6808 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6809 fi
|
|
6810 rm -f conftest*
|
|
6811 xe_check_libs=""
|
|
6812
|
151
|
6813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6814 echo "$ac_t""yes" 1>&6
|
|
6815 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
|
149
|
6816 else
|
|
6817 echo "$ac_t""no" 1>&6
|
561
|
6818 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
|
149
|
6819 fi
|
|
6820
|
169
|
6821
|
149
|
6822
|
|
6823 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
|
1161
|
6824 echo "configure:6825: checking the version of X11 being used" >&5
|
149
|
6825 cat > conftest.$ac_ext <<EOF
|
1161
|
6826 #line 6827 "configure"
|
149
|
6827 #include "confdefs.h"
|
|
6828 #include <X11/Intrinsic.h>
|
272
|
6829 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
|
|
6830 EOF
|
1161
|
6831 if { (eval echo configure:6832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
6832 then
|
151
|
6833 ./conftest foobar; x11_release=$?
|
149
|
6834 else
|
373
|
6835 conftest_rc="$?"
|
149
|
6836 echo "configure: failed program was:" >&5
|
|
6837 cat conftest.$ac_ext >&5
|
|
6838 rm -fr conftest*
|
151
|
6839 x11_release=4
|
149
|
6840 fi
|
|
6841 rm -fr conftest*
|
151
|
6842 echo "$ac_t""R${x11_release}" 1>&6
|
149
|
6843 { test "$extra_verbose" = "yes" && cat << EOF
|
151
|
6844 Defining THIS_IS_X11R${x11_release}
|
149
|
6845 EOF
|
|
6846 cat >> confdefs.h <<EOF
|
151
|
6847 #define THIS_IS_X11R${x11_release} 1
|
149
|
6848 EOF
|
|
6849 }
|
|
6850
|
|
6851
|
442
|
6852 if test "${x11_release}" = "4"; then
|
|
6853 case "$with_widgets" in
|
|
6854 "" | "no") with_widgets=no ;;
|
|
6855 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
|
|
6856 esac
|
|
6857 fi
|
|
6858
|
|
6859 for ac_func in XConvertCase
|
|
6860 do
|
|
6861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
6862 echo "configure:6863: checking for $ac_func" >&5
|
|
6863
|
|
6864 cat > conftest.$ac_ext <<EOF
|
|
6865 #line 6866 "configure"
|
442
|
6866 #include "confdefs.h"
|
|
6867 /* System header to define __stub macros and hopefully few prototypes,
|
|
6868 which can conflict with char $ac_func(); below. */
|
|
6869 #include <assert.h>
|
|
6870 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6871 /* We use char because int might match the return type of a gcc2
|
|
6872 builtin and then its argument prototype would still apply. */
|
|
6873 char $ac_func();
|
|
6874
|
|
6875 int main() {
|
|
6876
|
|
6877 /* The GNU C library defines this for functions which it implements
|
|
6878 to always fail with ENOSYS. Some functions are actually named
|
|
6879 something starting with __ and the normal name is an alias. */
|
|
6880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
6881 choke me
|
|
6882 #else
|
|
6883 $ac_func();
|
|
6884 #endif
|
|
6885
|
|
6886 ; return 0; }
|
|
6887 EOF
|
1161
|
6888 if { (eval echo configure:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
6889 rm -rf conftest*
|
|
6890 eval "ac_cv_func_$ac_func=yes"
|
|
6891 else
|
|
6892 echo "configure: failed program was:" >&5
|
|
6893 cat conftest.$ac_ext >&5
|
|
6894 rm -rf conftest*
|
|
6895 eval "ac_cv_func_$ac_func=no"
|
|
6896 fi
|
|
6897 rm -f conftest*
|
|
6898
|
|
6899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
6900 echo "$ac_t""yes" 1>&6
|
|
6901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
6902 { test "$extra_verbose" = "yes" && cat << EOF
|
|
6903 Defining $ac_tr_func
|
|
6904 EOF
|
|
6905 cat >> confdefs.h <<EOF
|
|
6906 #define $ac_tr_func 1
|
|
6907 EOF
|
|
6908 }
|
|
6909
|
|
6910 else
|
|
6911 echo "$ac_t""no" 1>&6
|
|
6912 fi
|
|
6913 done
|
|
6914
|
|
6915
|
149
|
6916 for ac_hdr in X11/Xlocale.h
|
|
6917 do
|
|
6918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
6919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1161
|
6920 echo "configure:6921: checking for $ac_hdr" >&5
|
|
6921
|
|
6922 cat > conftest.$ac_ext <<EOF
|
|
6923 #line 6924 "configure"
|
149
|
6924 #include "confdefs.h"
|
|
6925 #include <$ac_hdr>
|
|
6926 EOF
|
|
6927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
6928 { (eval echo configure:6929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
6929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
6930 if test -z "$ac_err"; then
|
|
6931 rm -rf conftest*
|
|
6932 eval "ac_cv_header_$ac_safe=yes"
|
|
6933 else
|
|
6934 echo "$ac_err" >&5
|
|
6935 echo "configure: failed program was:" >&5
|
|
6936 cat conftest.$ac_ext >&5
|
|
6937 rm -rf conftest*
|
|
6938 eval "ac_cv_header_$ac_safe=no"
|
|
6939 fi
|
|
6940 rm -f conftest*
|
|
6941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6942 echo "$ac_t""yes" 1>&6
|
|
6943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
6944 { test "$extra_verbose" = "yes" && cat << EOF
|
|
6945 Defining $ac_tr_hdr
|
|
6946 EOF
|
|
6947 cat >> confdefs.h <<EOF
|
|
6948 #define $ac_tr_hdr 1
|
|
6949 EOF
|
|
6950 }
|
|
6951
|
|
6952 else
|
|
6953 echo "$ac_t""no" 1>&6
|
|
6954 fi
|
|
6955 done
|
|
6956
|
|
6957
|
444
|
6958 for ac_func in XRegisterIMInstantiateCallback
|
|
6959 do
|
|
6960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
6961 echo "configure:6962: checking for $ac_func" >&5
|
|
6962
|
|
6963 cat > conftest.$ac_ext <<EOF
|
|
6964 #line 6965 "configure"
|
444
|
6965 #include "confdefs.h"
|
|
6966 /* System header to define __stub macros and hopefully few prototypes,
|
|
6967 which can conflict with char $ac_func(); below. */
|
|
6968 #include <assert.h>
|
|
6969 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6970 /* We use char because int might match the return type of a gcc2
|
|
6971 builtin and then its argument prototype would still apply. */
|
|
6972 char $ac_func();
|
|
6973
|
|
6974 int main() {
|
|
6975
|
|
6976 /* The GNU C library defines this for functions which it implements
|
|
6977 to always fail with ENOSYS. Some functions are actually named
|
|
6978 something starting with __ and the normal name is an alias. */
|
|
6979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
6980 choke me
|
|
6981 #else
|
|
6982 $ac_func();
|
|
6983 #endif
|
|
6984
|
|
6985 ; return 0; }
|
|
6986 EOF
|
1161
|
6987 if { (eval echo configure:6988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
444
|
6988 rm -rf conftest*
|
|
6989 eval "ac_cv_func_$ac_func=yes"
|
|
6990 else
|
|
6991 echo "configure: failed program was:" >&5
|
|
6992 cat conftest.$ac_ext >&5
|
|
6993 rm -rf conftest*
|
|
6994 eval "ac_cv_func_$ac_func=no"
|
|
6995 fi
|
|
6996 rm -f conftest*
|
|
6997
|
|
6998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
6999 echo "$ac_t""yes" 1>&6
|
|
7000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
7001 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7002 Defining $ac_tr_func
|
|
7003 EOF
|
|
7004 cat >> confdefs.h <<EOF
|
|
7005 #define $ac_tr_func 1
|
|
7006 EOF
|
|
7007 }
|
|
7008
|
|
7009 else
|
|
7010 echo "$ac_t""no" 1>&6
|
|
7011 fi
|
|
7012 done
|
|
7013
|
|
7014 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
|
1161
|
7015 echo "configure:7016: checking for standard XRegisterIMInstantiateCallback prototype" >&5
|
444
|
7016 cat > conftest.$ac_ext <<EOF
|
1161
|
7017 #line 7018 "configure"
|
444
|
7018 #include "confdefs.h"
|
|
7019
|
|
7020 #define NeedFunctionPrototypes 1
|
|
7021 #include <X11/Xlib.h>
|
|
7022 extern Bool XRegisterIMInstantiateCallback(
|
|
7023 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
|
|
7024
|
|
7025 int main() {
|
|
7026
|
|
7027 ; return 0; }
|
|
7028 EOF
|
1161
|
7029 if { (eval echo configure:7030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
444
|
7030 rm -rf conftest*
|
|
7031 echo "$ac_t""yes" 1>&6
|
|
7032 else
|
|
7033 echo "configure: failed program was:" >&5
|
|
7034 cat conftest.$ac_ext >&5
|
|
7035 rm -rf conftest*
|
|
7036 echo "$ac_t""no" 1>&6
|
|
7037 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7038 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
|
|
7039 EOF
|
|
7040 cat >> confdefs.h <<\EOF
|
|
7041 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
|
|
7042 EOF
|
|
7043 }
|
|
7044
|
|
7045 fi
|
|
7046 rm -f conftest*
|
149
|
7047
|
169
|
7048 test -z "$with_xmu" && {
|
|
7049 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
|
1161
|
7050 echo "configure:7051: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
|
169
|
7051 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
|
149
|
7052
|
|
7053 xe_check_libs=" -lXmu "
|
|
7054 cat > conftest.$ac_ext <<EOF
|
1161
|
7055 #line 7056 "configure"
|
149
|
7056 #include "confdefs.h"
|
|
7057 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7058 /* We use char because int might match the return type of a gcc2
|
|
7059 builtin and then its argument prototype would still apply. */
|
169
|
7060 char XmuReadBitmapDataFromFile();
|
149
|
7061
|
|
7062 int main() {
|
169
|
7063 XmuReadBitmapDataFromFile()
|
149
|
7064 ; return 0; }
|
|
7065 EOF
|
1161
|
7066 if { (eval echo configure:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7067 rm -rf conftest*
|
|
7068 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7069 else
|
|
7070 echo "configure: failed program was:" >&5
|
|
7071 cat conftest.$ac_ext >&5
|
|
7072 rm -rf conftest*
|
|
7073 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7074 fi
|
|
7075 rm -f conftest*
|
|
7076 xe_check_libs=""
|
|
7077
|
151
|
7078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7079 echo "$ac_t""yes" 1>&6
|
|
7080 with_xmu=yes
|
|
7081 else
|
|
7082 echo "$ac_t""no" 1>&6
|
|
7083 with_xmu=no
|
|
7084 fi
|
|
7085
|
169
|
7086 }
|
185
|
7087 if test "$with_xmu" = "no"; then
|
|
7088 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
|
151
|
7089 echo " xemacs will be linked with \"xmu.o\""
|
|
7090 fi
|
187
|
7091 else
|
185
|
7092 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
|
|
7093 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7094 Defining HAVE_XMU
|
|
7095 EOF
|
|
7096 cat >> confdefs.h <<\EOF
|
|
7097 #define HAVE_XMU 1
|
|
7098 EOF
|
|
7099 }
|
|
7100
|
169
|
7101 fi
|
151
|
7102
|
|
7103
|
|
7104 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
|
1161
|
7105 echo "configure:7106: checking for main in -lXbsd" >&5
|
151
|
7106 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
|
|
7107
|
|
7108 xe_check_libs=" -lXbsd "
|
|
7109 cat > conftest.$ac_ext <<EOF
|
1161
|
7110 #line 7111 "configure"
|
151
|
7111 #include "confdefs.h"
|
149
|
7112
|
|
7113 int main() {
|
151
|
7114 main()
|
149
|
7115 ; return 0; }
|
|
7116 EOF
|
1161
|
7117 if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7118 rm -rf conftest*
|
|
7119 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7120 else
|
|
7121 echo "configure: failed program was:" >&5
|
|
7122 cat conftest.$ac_ext >&5
|
|
7123 rm -rf conftest*
|
|
7124 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7125 fi
|
|
7126 rm -f conftest*
|
|
7127 xe_check_libs=""
|
|
7128
|
151
|
7129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7130 echo "$ac_t""yes" 1>&6
|
|
7131 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
|
|
7132 else
|
|
7133 echo "$ac_t""no" 1>&6
|
|
7134 fi
|
|
7135
|
149
|
7136
|
|
7137
|
243
|
7138 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
|
274
|
7139 if test "$GCC" = "yes"; then
|
|
7140 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
|
|
7141 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
|
|
7142 else
|
|
7143 case "$CC" in
|
|
7144 "xlc" ) CC="xlc_r" ;;
|
|
7145 "xlC" ) CC="xlC_r" ;;
|
|
7146 "cc" ) CC="cc_r" ;;
|
|
7147 esac
|
|
7148 fi
|
243
|
7149 fi
|
|
7150
|
149
|
7151 fi
|
265
|
7152 if test "$with_msw" != "no"; then
|
|
7153 echo "checking for MS-Windows" 1>&6
|
1161
|
7154 echo "configure:7155: checking for MS-Windows" >&5
|
265
|
7155
|
|
7156 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
|
1161
|
7157 echo "configure:7158: checking for main in -lgdi32" >&5
|
265
|
7158 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
|
|
7159
|
|
7160 xe_check_libs=" -lgdi32 "
|
|
7161 cat > conftest.$ac_ext <<EOF
|
1161
|
7162 #line 7163 "configure"
|
265
|
7163 #include "confdefs.h"
|
|
7164
|
|
7165 int main() {
|
|
7166 main()
|
|
7167 ; return 0; }
|
|
7168 EOF
|
1161
|
7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
265
|
7170 rm -rf conftest*
|
|
7171 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7172 else
|
|
7173 echo "configure: failed program was:" >&5
|
|
7174 cat conftest.$ac_ext >&5
|
|
7175 rm -rf conftest*
|
|
7176 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7177 fi
|
|
7178 rm -f conftest*
|
|
7179 xe_check_libs=""
|
|
7180
|
|
7181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7182 echo "$ac_t""yes" 1>&6
|
|
7183 with_msw=yes
|
|
7184 else
|
|
7185 echo "$ac_t""no" 1>&6
|
|
7186 fi
|
|
7187
|
|
7188
|
|
7189 if test "$with_msw" = "yes"; then
|
|
7190 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7191 Defining HAVE_MS_WINDOWS
|
|
7192 EOF
|
|
7193 cat >> confdefs.h <<\EOF
|
|
7194 #define HAVE_MS_WINDOWS 1
|
|
7195 EOF
|
|
7196 }
|
|
7197
|
448
|
7198
|
462
|
7199 if test "$with_netinstall" = "yes"; then
|
|
7200 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
|
|
7201 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
|
|
7202 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
7203 fi
|
458
|
7204
|
276
|
7205 install_pp="$blddir/lib-src/installexe.sh"
|
771
|
7206 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
|
|
7207 if test "$with_dragndrop" != no; then
|
|
7208 dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
|
|
7209 with_dragndrop=yes
|
|
7210 fi
|
265
|
7211 if test "$window_system" != x11; then
|
771
|
7212 window_system=msw
|
|
7213 test "$with_scrollbars" != "no" && with_scrollbars=msw
|
|
7214 test "$with_menubars" != "no" && with_menubars=msw
|
|
7215 test "$with_toolbars" != "no" && with_toolbars=msw
|
|
7216 test "$with_dialogs" != "no" && with_dialogs=msw
|
|
7217 test "$with_widgets" != "no" && with_widgets=msw
|
265
|
7218 fi
|
278
|
7219 cat > conftest.$ac_ext <<EOF
|
1161
|
7220 #line 7221 "configure"
|
278
|
7221 #include "confdefs.h"
|
|
7222 #include <fcntl.h>
|
|
7223 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
|
|
7224 EOF
|
1161
|
7225 if { (eval echo configure:7226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
278
|
7226 then
|
771
|
7227 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
7228 Defining HAVE_MSG_SELECT
|
|
7229 EOF
|
|
7230 cat >> confdefs.h <<\EOF
|
|
7231 #define HAVE_MSG_SELECT 1
|
|
7232 EOF
|
|
7233 }
|
|
7234
|
|
7235 else
|
373
|
7236 conftest_rc="$?"
|
278
|
7237 echo "configure: failed program was:" >&5
|
|
7238 cat conftest.$ac_ext >&5
|
|
7239 fi
|
|
7240 rm -fr conftest*
|
771
|
7241 fi
|
|
7242 fi
|
|
7243
|
|
7244
|
|
7245
|
|
7246 test -z "$with_dragndrop" && with_dragndrop="$with_dragndrop_default"
|
149
|
7247 test -z "$window_system" && window_system="none"
|
|
7248
|
272
|
7249 if test "$window_system" = "none"; then
|
388
|
7250 for feature in menubars scrollbars toolbars dialogs dragndrop xface
|
272
|
7251 do
|
|
7252 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7253 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
|
|
7254 fi
|
|
7255 eval "with_${feature}=no"
|
|
7256 done
|
|
7257 else
|
|
7258 test -z "$with_toolbars" && with_toolbars=yes
|
|
7259 fi
|
|
7260
|
|
7261 if test "$with_msw" != "yes"; then
|
|
7262 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
|
|
7263 do
|
|
7264 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7265 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
|
|
7266 fi
|
|
7267 eval "with_${feature}=no"
|
|
7268 done
|
|
7269 else
|
|
7270 :
|
|
7271 fi
|
|
7272
|
|
7273 if test "$with_x11" != "yes"; then
|
434
|
7274 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
|
70
|
7275 do
|
149
|
7276 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7277 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
|
70
|
7278 fi
|
149
|
7279 eval "with_${feature}=no"
|
70
|
7280 done
|
149
|
7281 fi
|
|
7282
|
442
|
7283 if test "$with_x11" = "yes"; then
|
|
7284 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
|
|
7285 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
|
1161
|
7286 echo "configure:7287: checking for X11/extensions/shape.h" >&5
|
|
7287
|
|
7288 cat > conftest.$ac_ext <<EOF
|
|
7289 #line 7290 "configure"
|
442
|
7290 #include "confdefs.h"
|
|
7291 #include <X11/extensions/shape.h>
|
|
7292 EOF
|
|
7293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
7294 { (eval echo configure:7295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
7295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7296 if test -z "$ac_err"; then
|
|
7297 rm -rf conftest*
|
|
7298 eval "ac_cv_header_$ac_safe=yes"
|
|
7299 else
|
|
7300 echo "$ac_err" >&5
|
|
7301 echo "configure: failed program was:" >&5
|
|
7302 cat conftest.$ac_ext >&5
|
|
7303 rm -rf conftest*
|
|
7304 eval "ac_cv_header_$ac_safe=no"
|
|
7305 fi
|
|
7306 rm -f conftest*
|
|
7307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7308 echo "$ac_t""yes" 1>&6
|
|
7309
|
|
7310 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7311 Defining HAVE_BALLOON_HELP
|
|
7312 EOF
|
|
7313 cat >> confdefs.h <<\EOF
|
|
7314 #define HAVE_BALLOON_HELP 1
|
|
7315 EOF
|
|
7316 }
|
|
7317
|
771
|
7318
|
442
|
7319 else
|
|
7320 echo "$ac_t""no" 1>&6
|
|
7321 fi
|
|
7322
|
|
7323 fi
|
|
7324
|
0
|
7325 bitmapdir=
|
|
7326
|
149
|
7327 case "$window_system" in
|
70
|
7328 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
272
|
7329 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
|
462
|
7330 gtk )
|
|
7331 HAVE_X_WINDOWS=no
|
|
7332 test "$with_gnome" = "yes" && echo " Using GNOME."
|
|
7333 test "$with_gnome" = "no" && echo " Using GTK."
|
|
7334 ;;
|
70
|
7335 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
0
|
7336 esac
|
|
7337
|
149
|
7338 case "$x_libraries" in *X11R4* )
|
|
7339 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
|
|
7340 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
|
|
7341 esac
|
|
7342
|
414
|
7343 echo "checking for WM_COMMAND option" 1>&6
|
1161
|
7344 echo "configure:7345: checking for WM_COMMAND option" >&5;
|
414
|
7345 if test "$with_wmcommand" != "no"; then
|
|
7346 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7347 Defining HAVE_WMCOMMAND
|
|
7348 EOF
|
|
7349 cat >> confdefs.h <<\EOF
|
|
7350 #define HAVE_WMCOMMAND 1
|
177
|
7351 EOF
|
|
7352 }
|
|
7353
|
|
7354 fi
|
|
7355
|
149
|
7356 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
|
|
7357 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
|
|
7358 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
|
1161
|
7359 echo "configure:7360: checking for X11/Xauth.h" >&5
|
|
7360
|
|
7361 cat > conftest.$ac_ext <<EOF
|
|
7362 #line 7363 "configure"
|
149
|
7363 #include "confdefs.h"
|
|
7364 #include <X11/Xauth.h>
|
|
7365 EOF
|
|
7366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
7367 { (eval echo configure:7368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7369 if test -z "$ac_err"; then
|
|
7370 rm -rf conftest*
|
|
7371 eval "ac_cv_header_$ac_safe=yes"
|
|
7372 else
|
|
7373 echo "$ac_err" >&5
|
|
7374 echo "configure: failed program was:" >&5
|
|
7375 cat conftest.$ac_ext >&5
|
|
7376 rm -rf conftest*
|
|
7377 eval "ac_cv_header_$ac_safe=no"
|
|
7378 fi
|
|
7379 rm -f conftest*
|
|
7380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7381 echo "$ac_t""yes" 1>&6
|
|
7382 :
|
|
7383 else
|
|
7384 echo "$ac_t""no" 1>&6
|
|
7385 with_xauth=no
|
|
7386 fi
|
|
7387 }
|
|
7388 test -z "$with_xauth" && {
|
|
7389 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
|
1161
|
7390 echo "configure:7391: checking for XauGetAuthByAddr in -lXau" >&5
|
149
|
7391 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
|
|
7392
|
|
7393 xe_check_libs=" -lXau "
|
|
7394 cat > conftest.$ac_ext <<EOF
|
1161
|
7395 #line 7396 "configure"
|
149
|
7396 #include "confdefs.h"
|
|
7397 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7398 /* We use char because int might match the return type of a gcc2
|
|
7399 builtin and then its argument prototype would still apply. */
|
|
7400 char XauGetAuthByAddr();
|
|
7401
|
|
7402 int main() {
|
|
7403 XauGetAuthByAddr()
|
|
7404 ; return 0; }
|
|
7405 EOF
|
1161
|
7406 if { (eval echo configure:7407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7407 rm -rf conftest*
|
|
7408 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7409 else
|
|
7410 echo "configure: failed program was:" >&5
|
|
7411 cat conftest.$ac_ext >&5
|
|
7412 rm -rf conftest*
|
|
7413 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7414 fi
|
|
7415 rm -f conftest*
|
|
7416 xe_check_libs=""
|
|
7417
|
151
|
7418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7419 echo "$ac_t""yes" 1>&6
|
|
7420 :
|
|
7421 else
|
|
7422 echo "$ac_t""no" 1>&6
|
|
7423 with_xauth=no
|
|
7424 fi
|
|
7425
|
|
7426 }
|
|
7427 test -z "$with_xauth" && with_xauth=yes
|
|
7428 if test "$with_xauth" = "yes"; then
|
|
7429 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7430 Defining HAVE_XAUTH
|
|
7431 EOF
|
|
7432 cat >> confdefs.h <<\EOF
|
|
7433 #define HAVE_XAUTH 1
|
|
7434 EOF
|
|
7435 }
|
|
7436
|
159
|
7437
|
|
7438 T=""
|
462
|
7439 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
|
7440 libs_xauth="$T"
|
|
7441
|
|
7442 fi
|
|
7443
|
149
|
7444
|
274
|
7445
|
149
|
7446
|
1111
|
7447
|
|
7448 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
|
|
7449 : ${XEMACS_CC:="$CC"}
|
|
7450
|
997
|
7451 if test "$with_modules" != "no"; then
|
|
7452 echo "checking for module support" 1>&6
|
1161
|
7453 echo "configure:7454: checking for module support" >&5
|
997
|
7454
|
|
7455 if test "$with_msw" = "yes"; then
|
|
7456 have_dl=yes;
|
|
7457 else
|
|
7458 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
|
|
7459 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
|
1161
|
7460 echo "configure:7461: checking for dlfcn.h" >&5
|
|
7461
|
|
7462 cat > conftest.$ac_ext <<EOF
|
|
7463 #line 7464 "configure"
|
997
|
7464 #include "confdefs.h"
|
|
7465 #include <dlfcn.h>
|
|
7466 EOF
|
|
7467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
7468 { (eval echo configure:7469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
997
|
7469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7470 if test -z "$ac_err"; then
|
|
7471 rm -rf conftest*
|
|
7472 eval "ac_cv_header_$ac_safe=yes"
|
|
7473 else
|
|
7474 echo "$ac_err" >&5
|
|
7475 echo "configure: failed program was:" >&5
|
|
7476 cat conftest.$ac_ext >&5
|
|
7477 rm -rf conftest*
|
|
7478 eval "ac_cv_header_$ac_safe=no"
|
|
7479 fi
|
|
7480 rm -f conftest*
|
|
7481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7482 echo "$ac_t""yes" 1>&6
|
|
7483
|
|
7484 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
|
1161
|
7485 echo "configure:7486: checking for dlopen in -lc" >&5
|
997
|
7486 cat > conftest.$ac_ext <<EOF
|
1161
|
7487 #line 7488 "configure"
|
997
|
7488 #include "confdefs.h"
|
|
7489 #include <dlfcn.h>
|
|
7490 int main() {
|
|
7491 dlopen ("", 0);
|
|
7492 ; return 0; }
|
|
7493 EOF
|
1161
|
7494 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
997
|
7495 rm -rf conftest*
|
|
7496 have_dl=yes
|
|
7497 else
|
|
7498 echo "configure: failed program was:" >&5
|
|
7499 cat conftest.$ac_ext >&5
|
|
7500 rm -rf conftest*
|
|
7501
|
|
7502 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
1161
|
7503 echo "configure:7504: checking for dlopen in -ldl" >&5
|
997
|
7504 ac_save_LIBS="$LIBS"
|
|
7505 LIBS="-ldl $LIBS"
|
|
7506 cat > conftest.$ac_ext <<EOF
|
1161
|
7507 #line 7508 "configure"
|
997
|
7508 #include "confdefs.h"
|
|
7509 #include <dlfcn.h>
|
|
7510 int main() {
|
|
7511 dlopen ("", 0);
|
|
7512 ; return 0; }
|
|
7513 EOF
|
1161
|
7514 if { (eval echo configure:7515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
997
|
7515 rm -rf conftest*
|
|
7516 have_dl=yes
|
|
7517 else
|
|
7518 echo "configure: failed program was:" >&5
|
|
7519 cat conftest.$ac_ext >&5
|
|
7520 rm -rf conftest*
|
|
7521 LIBS="$ac_save_LIBS"
|
|
7522 fi
|
|
7523 rm -f conftest*
|
|
7524 ac_save_LIBS=
|
|
7525 fi
|
|
7526 rm -f conftest*
|
|
7527 else
|
|
7528 echo "$ac_t""no" 1>&6
|
|
7529 fi
|
|
7530
|
|
7531 if test -n "$have_dl"; then
|
|
7532 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7533 Defining HAVE_DLOPEN
|
|
7534 EOF
|
|
7535 cat >> confdefs.h <<\EOF
|
|
7536 #define HAVE_DLOPEN 1
|
|
7537 EOF
|
|
7538 }
|
|
7539
|
|
7540 else
|
|
7541
|
|
7542 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
|
1161
|
7543 echo "configure:7544: checking for shl_load in -ldld" >&5
|
997
|
7544 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
|
|
7545
|
|
7546 xe_check_libs=" -ldld "
|
|
7547 cat > conftest.$ac_ext <<EOF
|
1161
|
7548 #line 7549 "configure"
|
997
|
7549 #include "confdefs.h"
|
|
7550 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7551 /* We use char because int might match the return type of a gcc2
|
|
7552 builtin and then its argument prototype would still apply. */
|
|
7553 char shl_load();
|
|
7554
|
|
7555 int main() {
|
|
7556 shl_load()
|
|
7557 ; return 0; }
|
|
7558 EOF
|
1161
|
7559 if { (eval echo configure:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
997
|
7560 rm -rf conftest*
|
|
7561 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7562 else
|
|
7563 echo "configure: failed program was:" >&5
|
|
7564 cat conftest.$ac_ext >&5
|
|
7565 rm -rf conftest*
|
|
7566 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7567 fi
|
|
7568 rm -f conftest*
|
|
7569 xe_check_libs=""
|
|
7570
|
|
7571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7572 echo "$ac_t""yes" 1>&6
|
|
7573 libdl=dld have_dl=yes;
|
|
7574 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7575 Defining HAVE_SHL_LOAD
|
|
7576 EOF
|
|
7577 cat >> confdefs.h <<\EOF
|
|
7578 #define HAVE_SHL_LOAD 1
|
|
7579 EOF
|
|
7580 }
|
|
7581
|
|
7582 else
|
|
7583 echo "$ac_t""no" 1>&6
|
|
7584
|
|
7585 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
|
1161
|
7586 echo "configure:7587: checking for dld_init in -ldld" >&5
|
997
|
7587 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
|
|
7588
|
|
7589 xe_check_libs=" -ldld "
|
|
7590 cat > conftest.$ac_ext <<EOF
|
1161
|
7591 #line 7592 "configure"
|
997
|
7592 #include "confdefs.h"
|
|
7593 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7594 /* We use char because int might match the return type of a gcc2
|
|
7595 builtin and then its argument prototype would still apply. */
|
|
7596 char dld_init();
|
|
7597
|
|
7598 int main() {
|
|
7599 dld_init()
|
|
7600 ; return 0; }
|
|
7601 EOF
|
1161
|
7602 if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
997
|
7603 rm -rf conftest*
|
|
7604 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7605 else
|
|
7606 echo "configure: failed program was:" >&5
|
|
7607 cat conftest.$ac_ext >&5
|
|
7608 rm -rf conftest*
|
|
7609 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7610 fi
|
|
7611 rm -f conftest*
|
|
7612 xe_check_libs=""
|
|
7613
|
|
7614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7615 echo "$ac_t""yes" 1>&6
|
|
7616 libdl=dld have_dl=yes;
|
|
7617 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7618 Defining HAVE_DLD_INIT
|
|
7619 EOF
|
|
7620 cat >> confdefs.h <<\EOF
|
|
7621 #define HAVE_DLD_INIT 1
|
|
7622 EOF
|
|
7623 }
|
|
7624
|
|
7625 else
|
|
7626 echo "$ac_t""no" 1>&6
|
|
7627 fi
|
|
7628
|
|
7629
|
|
7630 fi
|
|
7631
|
|
7632
|
|
7633 fi
|
|
7634 fi
|
|
7635 if test -n "$have_dl"; then
|
|
7636
|
|
7637 dll_ld=
|
|
7638 dll_ldflags=
|
|
7639 dll_cflags=
|
|
7640 dll_post=
|
|
7641 dll_ldo="-o"
|
|
7642 ld_dynamic_link_flags=
|
|
7643 xehost=$canonical
|
|
7644 xealias=$internal_configuration
|
|
7645
|
|
7646 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
|
1161
|
7647 echo "configure:7648: checking how to build dynamic libraries for ${xehost}" >&5
|
997
|
7648 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
|
|
7649 case "$xehost" in
|
|
7650 *-*-linux-gnu*) ;;
|
|
7651 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
|
7652 esac
|
|
7653
|
|
7654 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
7655 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
7656 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
7657
|
|
7658 case "$xehost_os" in
|
|
7659 aix3*)
|
|
7660 # AIX sometimes has problems with the GCC collect2 program. For some
|
|
7661 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
7662 # vanish in a puff of smoke.
|
|
7663 if test "${COLLECT_NAMES+set}" != set; then
|
|
7664 COLLECT_NAMES=
|
|
7665 export COLLECT_NAMES
|
|
7666 fi
|
|
7667 ;;
|
|
7668 esac
|
|
7669
|
|
7670 # Now see if the compiler is really GCC.
|
|
7671 if test "$GCC" = "yes"; then
|
|
7672 XEGCC=yes
|
|
7673 else
|
|
7674 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
|
1161
|
7675 echo "configure:7676: checking checking whether we are using GNU C" >&5
|
997
|
7676 cat > conftest.$ac_ext <<EOF
|
1161
|
7677 #line 7678 "configure"
|
997
|
7678 #include "confdefs.h"
|
|
7679
|
|
7680 #ifdef __GNUC__
|
|
7681 yes;
|
|
7682 #endif
|
|
7683
|
|
7684 EOF
|
|
7685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
7686 egrep "yes" >/dev/null 2>&1; then
|
|
7687 rm -rf conftest*
|
|
7688 XEGCC=yes
|
|
7689 else
|
|
7690 rm -rf conftest*
|
|
7691 XEGCC=no
|
|
7692 fi
|
|
7693 rm -f conftest*
|
|
7694
|
|
7695 echo "$ac_t""${XEGCC}" 1>&6
|
|
7696 fi
|
|
7697
|
|
7698 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
|
1161
|
7699 echo "configure:7700: checking how to produce PIC code" >&5
|
997
|
7700 wl=
|
|
7701
|
|
7702 can_build_shared=yes
|
1111
|
7703 cygwin_warn=
|
997
|
7704 if test "$XEGCC" = yes; then
|
|
7705 wl='-Wl,'
|
|
7706
|
|
7707 case "$xehost_os" in
|
|
7708 aix[3-9]* | irix[5-9]* | osf[3-9])
|
|
7709 # PIC is the default for these OSes.
|
|
7710 ;;
|
|
7711
|
|
7712 os2*)
|
|
7713 # We can build DLLs from non-PIC.
|
|
7714 ;;
|
|
7715 amigaos*)
|
|
7716 # FIXME: we need at least 68020 code to build shared libraries, but
|
|
7717 # adding the `-m68020' flag to GCC prevents building anything better,
|
|
7718 # like `-m68040'.
|
|
7719 dll_cflags='-m68020 -resident32 -malways-restore-a4'
|
|
7720 ;;
|
|
7721 *cygwin* | *mingw* )
|
|
7722 # PIC is the default
|
1111
|
7723 cygwin_warn=yes
|
|
7724 # #### Need some trickery involving import libraries that we don't
|
|
7725 # currently support.
|
|
7726 can_build_shared=no
|
997
|
7727 ;;
|
|
7728 *)
|
|
7729 dll_cflags='-fPIC'
|
|
7730 ;;
|
|
7731 esac
|
|
7732 else
|
|
7733 # PORTME Check for PIC flags for the system compiler.
|
|
7734 case "$xehost_os" in
|
|
7735 hpux9* | hpux1[0-9]*)
|
|
7736 # Is there a better link_static_flag that works with the bundled CC?
|
|
7737 wl='-Wl,'
|
|
7738 dll_cflags='+Z'
|
|
7739 ;;
|
|
7740
|
|
7741 irix[5-9]*)
|
|
7742 wl='-Wl,'
|
|
7743 # PIC (with -KPIC) is the default.
|
|
7744 ;;
|
|
7745
|
|
7746 os2*)
|
|
7747 # We can build DLLs from non-PIC.
|
|
7748 ;;
|
|
7749
|
|
7750 osf[3-9]*)
|
|
7751 # All OSF/1 code is PIC.
|
|
7752 wl='-Wl,'
|
|
7753 ;;
|
|
7754
|
|
7755 aix[3-9]*)
|
|
7756 # All AIX code is PIC.
|
|
7757 wl='-Wl,'
|
|
7758 ;;
|
|
7759
|
|
7760 sco3.2v5*)
|
|
7761 dll_cflags='-belf -Kpic'
|
|
7762 wl='-Wl,'
|
|
7763 ;;
|
|
7764
|
|
7765 unixware*)
|
|
7766 dll_cflags="-KPIC"
|
|
7767 wl="-Wl,"
|
|
7768 ;;
|
|
7769
|
|
7770 sysv4*)
|
|
7771 dll_cflags="-KPIC"
|
|
7772 wl="-Wl,"
|
|
7773 ;;
|
|
7774
|
|
7775 sysv5*)
|
|
7776 dll_cflags="-KPIC"
|
|
7777 wl="-Wl,"
|
|
7778 ;;
|
|
7779
|
|
7780 solaris2*)
|
|
7781 dll_cflags='-KPIC'
|
|
7782 wl='-Wl,'
|
|
7783 ;;
|
|
7784
|
|
7785 sunos4*)
|
|
7786 dll_cflags='-PIC'
|
|
7787 wl='-Qoption ld '
|
|
7788 ;;
|
|
7789
|
|
7790 uts4*)
|
|
7791 dll_cflags='-pic'
|
|
7792 ;;
|
|
7793
|
|
7794 *)
|
|
7795 can_build_shared=no
|
|
7796 ;;
|
|
7797 esac
|
|
7798 fi
|
|
7799
|
|
7800 if test -n "$dll_cflags"; then
|
|
7801 echo "$ac_t""${dll_cflags}" 1>&6
|
|
7802
|
|
7803 # Check to make sure the dll_cflags actually works.
|
|
7804 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
|
1161
|
7805 echo "configure:7806: checking if PIC flag ${dll_cflags} really works" >&5
|
997
|
7806 save_CFLAGS="$CFLAGS"
|
|
7807 CFLAGS="$CFLAGS $dll_cflags -DPIC"
|
|
7808 cat > conftest.$ac_ext <<EOF
|
1161
|
7809 #line 7810 "configure"
|
997
|
7810 #include "confdefs.h"
|
|
7811
|
|
7812 int main() {
|
|
7813 int x=0;
|
|
7814 ; return 0; }
|
|
7815 EOF
|
1161
|
7816 if { (eval echo configure:7817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
997
|
7817 rm -rf conftest*
|
|
7818
|
|
7819 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
|
|
7820 # reports no error. So, we need to grep stderr for (Bundled).
|
|
7821 if grep '(Bundled)' config.log >/dev/null; then
|
|
7822 echo "$ac_t""no" 1>&6
|
|
7823 can_build_shared=no
|
|
7824 dll_cflags=
|
|
7825 else
|
|
7826 echo "$ac_t""yes" 1>&6
|
|
7827 fi
|
|
7828 else
|
|
7829 echo "configure: failed program was:" >&5
|
|
7830 cat conftest.$ac_ext >&5
|
|
7831 rm -rf conftest*
|
|
7832 echo "$ac_t""no" 1>&6
|
|
7833 can_build_shared=no
|
|
7834 dll_cflags=
|
|
7835 fi
|
|
7836 rm -f conftest*
|
|
7837 CFLAGS="$save_CFLAGS"
|
|
7838 else
|
|
7839 echo "$ac_t""none" 1>&6
|
|
7840 fi
|
|
7841
|
1111
|
7842 if test -n "$cygwin_warn"; then
|
|
7843 echo "configure: warning: Cannot currently build modules under Cygwin." 1>&2
|
|
7844 fi
|
|
7845
|
997
|
7846 if test "$can_build_shared" = "yes"; then
|
|
7847 cc_produces_so=no
|
|
7848 xldf=
|
|
7849 xcldf=
|
|
7850 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
|
1161
|
7851 echo "configure:7852: checking if C compiler can produce shared libraries" >&5
|
997
|
7852 if test "$XEGCC" = yes; then
|
|
7853 xcldf="-shared"
|
|
7854 xldf="-shared"
|
|
7855 else # Not using GCC
|
|
7856 case "$xehost_os" in
|
|
7857 aix[3-9]*)
|
|
7858 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
|
|
7859 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
|
|
7860 ;;
|
|
7861
|
|
7862 freebsd2* | netbsd* | openbsd*)
|
|
7863 xldf="-Bshareable"
|
|
7864 xcldf="${wl}-Bshareable"
|
|
7865 ;;
|
|
7866
|
|
7867 freebsd3*)
|
|
7868 xcldf="-shared"
|
|
7869 ;;
|
|
7870
|
|
7871 hpux*)
|
|
7872 xldf="-b +s"
|
|
7873 xcldf="${wl}-b ${wl}+s"
|
|
7874 ;;
|
|
7875
|
|
7876 irix[5-9]* | osf[3-9]*)
|
|
7877 xcldf="${wl}-shared"
|
|
7878 xldf="-shared"
|
|
7879 ;;
|
|
7880
|
|
7881 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
|
|
7882 xcldf="-G"
|
|
7883 xldf="-G"
|
|
7884 ;;
|
|
7885
|
|
7886 sunos4*)
|
|
7887 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
|
|
7888 xldf="-assert pure-text -Bstatic"
|
|
7889 ;;
|
|
7890 esac
|
|
7891 fi # End if if we are using gcc
|
|
7892
|
|
7893 if test -n "$xcldf"; then
|
|
7894 save_LDFLAGS=$LDFLAGS
|
|
7895 save_LIBS=$LIBS
|
|
7896 save_xe_libs=$xe_libs
|
|
7897 LDFLAGS="$xcldf $LDFLAGS"
|
|
7898 LIBS=
|
|
7899 xe_libs=
|
|
7900 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
7901 cat > conftest.$ac_ext <<EOF
|
1161
|
7902 #line 7903 "configure"
|
997
|
7903 #include "confdefs.h"
|
|
7904
|
|
7905 int main() {
|
|
7906 int x=0;
|
|
7907 ; return 0; }
|
|
7908 EOF
|
1161
|
7909 if { (eval echo configure:7910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
997
|
7910 rm -rf conftest*
|
|
7911 cc_produces_so=yes
|
|
7912 else
|
|
7913 echo "configure: failed program was:" >&5
|
|
7914 cat conftest.$ac_ext >&5
|
|
7915 rm -rf conftest*
|
|
7916 cc_produces_so=no
|
|
7917 fi
|
|
7918 rm -f conftest*
|
|
7919 LDFLAGS=$save_LDFLAGS
|
|
7920 LIBS=$save_LIBS
|
|
7921 xe_libs=$save_xe_libs
|
|
7922 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
7923 else
|
|
7924 cc_produces_so=no
|
|
7925 fi
|
|
7926 echo "$ac_t""${cc_produces_so}" 1>&6
|
|
7927
|
|
7928 LTLD=$LD
|
|
7929 if test -z "$LTLD"; then
|
|
7930 ac_prog=ld
|
|
7931 if test "$XEGCC" = yes; then
|
|
7932 # Check if gcc -print-prog-name=ld gives a path.
|
|
7933 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
1161
|
7934 echo "configure:7935: checking for ld used by GCC" >&5
|
997
|
7935 ac_prog=`($CC -print-prog-name=ld) 2>&5`
|
|
7936 case "$ac_prog" in
|
|
7937 # Accept absolute paths.
|
|
7938 /*)
|
|
7939 if test -z "$LTLD"; then
|
|
7940 # case "$ac_prog" in
|
|
7941 # *gcc-lib*) LTLD="$CC"
|
|
7942 # ;;
|
|
7943 # *)
|
|
7944 LTLD="$ac_prog"
|
|
7945 # ;;
|
|
7946 # esac
|
|
7947 fi
|
|
7948 ;;
|
|
7949 "")
|
|
7950 # If it fails, then pretend we aren't using GCC.
|
|
7951 ac_prog=ld
|
|
7952 ;;
|
|
7953 *)
|
|
7954 # If it is relative, then search for the first ld in PATH.
|
|
7955 with_gnu_ld=unknown
|
|
7956 ;;
|
|
7957 esac
|
|
7958 else
|
|
7959 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
1161
|
7960 echo "configure:7961: checking for GNU ld" >&5
|
997
|
7961 fi
|
|
7962
|
|
7963 if test -z "$LTLD"; then
|
|
7964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
7965 for ac_dir in $PATH; do
|
|
7966 test -z "$ac_dir" && ac_dir=.
|
|
7967 if test -f "$ac_dir/$ac_prog"; then
|
|
7968 LTLD="$ac_dir/$ac_prog"
|
|
7969 # Check to see if the program is GNU ld. I'd rather use --version,
|
|
7970 # but apparently some GNU ld's only accept -v.
|
|
7971 # Break only if it was the GNU/non-GNU ld that we prefer.
|
|
7972 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|
7973 xe_gnu_ld=yes
|
|
7974 else
|
|
7975 xe_gnu_ld=no
|
|
7976 fi
|
|
7977 fi
|
|
7978 done
|
|
7979 IFS="$ac_save_ifs"
|
|
7980 fi
|
|
7981
|
|
7982 if test -n "$LTLD"; then
|
|
7983 echo "$ac_t""${LTLD}" 1>&6
|
|
7984 else
|
|
7985 echo "$ac_t""no" 1>&6
|
|
7986 fi
|
|
7987
|
|
7988 if test -z "$LTLD" -a "$cc_produces_so" = no; then
|
|
7989 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
|
|
7990 exit 1
|
|
7991 fi
|
|
7992 fi
|
|
7993
|
|
7994 ld_dynamic_link_flags=
|
|
7995
|
|
7996 # Check to see if it really is or isn't GNU ld.
|
|
7997 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
|
1161
|
7998 echo "configure:7999: checking if the linker is GNU ld" >&5
|
997
|
7999 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|
8000 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|
8001 xe_gnu_ld=yes
|
|
8002 else
|
|
8003 xe_gnu_ld=no
|
|
8004 fi
|
|
8005 echo "$ac_t""${xe_gnu_ld}" 1>&6
|
|
8006
|
|
8007 case "$xehost_os" in
|
|
8008 amigaos* | sunos4*)
|
|
8009 # On these operating systems, we should treat GNU ld like the system ld.
|
|
8010 gnu_ld_acts_native=yes
|
|
8011 ;;
|
|
8012 *)
|
|
8013 gnu_ld_acts_native=no
|
|
8014 ;;
|
|
8015 esac
|
|
8016
|
|
8017 if test "$cc_produces_so" = "yes"; then
|
|
8018 dll_ld=$CC
|
|
8019 dll_ldflags=$xcldf
|
|
8020 can_build_shared=yes
|
|
8021 ld_shlibs=yes
|
|
8022 else
|
|
8023 # OK - only NOW do we futz about with ld.
|
|
8024 # See if the linker supports building shared libraries.
|
|
8025 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
|
1161
|
8026 echo "configure:8027: checking whether the linker supports shared libraries" >&5
|
997
|
8027 dll_ld=$CC
|
|
8028 dll_ldflags=$LDFLAGS
|
|
8029 ld_shlibs=yes
|
|
8030 can_build_shared=yes
|
|
8031 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
|
|
8032 # See if GNU ld supports shared libraries.
|
|
8033 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
|
8034 dll_ld=$CC
|
|
8035 dll_ldflags="-shared"
|
|
8036 ld_shlibs=yes
|
|
8037 else
|
|
8038 ld_shlibs=no
|
|
8039 fi
|
|
8040 else
|
|
8041 # PORTME fill in a description of your system's linker (not GNU ld)
|
|
8042 case "$xehost_os" in
|
|
8043 aix3*)
|
|
8044 dll_ld=$LTLD
|
|
8045 dll_ldflags=$xldf
|
|
8046 ;;
|
|
8047
|
|
8048 aix[4-9]*)
|
|
8049 dll_ldflags=$xcldf
|
|
8050 ;;
|
|
8051
|
|
8052 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
8053 # support. Future versions do this automatically, but an explicit c++rt0.o
|
|
8054 # doesn't break anything, and helps significantly (at the cost of a little
|
|
8055 # extra space).
|
|
8056 freebsd2.2*)
|
|
8057 dll_ld=$LTLD
|
|
8058 dll_ldflags=$xldf
|
|
8059 dll_post="/usr/lib/c++rt0.o"
|
|
8060 ;;
|
|
8061
|
|
8062 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
|
|
8063 freebsd2*)
|
|
8064 dll_ld=$LTLD
|
|
8065 dll_ldflags="-Bshareable"
|
|
8066 ;;
|
|
8067
|
|
8068 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
|
|
8069 freebsd3*)
|
|
8070 dll_ldflags="-shared"
|
|
8071 ;;
|
|
8072
|
|
8073 hpux*)
|
|
8074 dll_ld=$LTLD
|
|
8075 dll_ldflags=$xldf
|
|
8076 ;;
|
|
8077
|
|
8078 irix[5-9]*)
|
|
8079 dll_ld=$LTLD
|
|
8080 dll_ldflags=$xldf
|
|
8081 ;;
|
|
8082
|
|
8083 netbsd*)
|
|
8084 # Tested with NetBSD 1.2 ld
|
|
8085 dll_ld=$LTLD
|
|
8086 dll_ldflags=$xldf
|
|
8087 ;;
|
|
8088
|
|
8089 openbsd*)
|
|
8090 dll_ld=$LTLD
|
|
8091 dll_ldflags=$xldf
|
|
8092 ;;
|
|
8093
|
|
8094 osf3* | osf4*)
|
|
8095 dll_ld=$LTLD
|
|
8096 dll_ldflags=$xldf
|
|
8097 ;;
|
|
8098
|
|
8099 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
|
|
8100 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
|
|
8101 dll_ld=$LTLD
|
|
8102 case "$dll_ld" in
|
|
8103 *gcc*) dll_ldflags="-shared"
|
|
8104 dll_ld=$CC
|
|
8105 ;;
|
|
8106 *) dll_ldflags="-G"
|
|
8107 ;;
|
|
8108 esac
|
|
8109 ;;
|
|
8110
|
|
8111 sunos4*)
|
|
8112 if test "$XEGCC" = yes; then
|
|
8113 dll_ld=$CC
|
|
8114 else
|
|
8115 dll_ld=$LTLD
|
|
8116 fi
|
|
8117 dll_ldflags=$xldf
|
|
8118 ;;
|
|
8119
|
|
8120 uts4*)
|
|
8121 dll_ld=$LTLD
|
|
8122 dll_ldflags="-G"
|
|
8123 ;;
|
|
8124
|
|
8125 bsdi*)
|
|
8126 dll_ldflags="-r"
|
|
8127 dll_ld="shlicc2"
|
|
8128 ;;
|
|
8129
|
|
8130 *)
|
|
8131 ld_shlibs=no
|
|
8132 can_build_shared=no
|
|
8133 ;;
|
|
8134 esac
|
|
8135 fi
|
|
8136 echo "$ac_t""${ld_shlibs}" 1>&6
|
|
8137 if test "$ld_shlibs" = "no"; then
|
|
8138 can_build_shared=no
|
|
8139 fi
|
|
8140 fi # End of if cc_produces_so = no
|
|
8141
|
|
8142
|
|
8143 if test "$xe_gnu_ld" = yes; then
|
|
8144 if test "$ld_shlibs" = yes; then
|
|
8145 ld_dynamic_link_flags="${wl}-export-dynamic"
|
|
8146 fi
|
|
8147 fi
|
|
8148
|
|
8149 if test -z "$ld_dynamic_link_flags"; then
|
|
8150 case "$xehost_os" in
|
|
8151 aix[3-9]*)
|
|
8152 ld_dynamic_link_flags=
|
|
8153 ;;
|
|
8154
|
|
8155 freebsd2.2*)
|
|
8156 ld_dynamic_link_flags=
|
|
8157 ;;
|
|
8158
|
|
8159 freebsd2*)
|
|
8160 ld_dynamic_link_flags=
|
|
8161 ;;
|
|
8162
|
|
8163 freebsd3*)
|
|
8164 ld_dynamic_link_flags=
|
|
8165 ;;
|
|
8166
|
|
8167 hpux*)
|
|
8168 ld_dynamic_link_flags="${wl}-E"
|
|
8169 ;;
|
|
8170
|
|
8171 irix[5-9]*)
|
|
8172 ld_dynamic_link_flags=
|
|
8173 ;;
|
|
8174
|
|
8175 netbsd*)
|
|
8176 ld_dynamic_link_flags=
|
|
8177 ;;
|
|
8178
|
|
8179 openbsd*)
|
|
8180 ld_dynamic_link_flags=
|
|
8181 ;;
|
|
8182
|
|
8183 osf3* | osf4*)
|
|
8184 ld_dynamic_link_flags=
|
|
8185 ;;
|
|
8186
|
|
8187 solaris2* | solaris7*)
|
|
8188 ld_dynamic_link_flags=
|
|
8189 ;;
|
|
8190
|
|
8191 sco3.2v5* | unixware* | sysv5* | sysv4*)
|
|
8192 ld_dynamic_link_flags="${wl}-Bexport"
|
|
8193 ;;
|
|
8194
|
|
8195 sunos4*)
|
|
8196 ld_dynamic_link_flags=
|
|
8197 ;;
|
|
8198
|
|
8199 uts4*)
|
|
8200 ld_dynamic_link_flags=
|
|
8201 ;;
|
|
8202
|
|
8203 bsdi*)
|
|
8204 ld_dynamic_link_flags=
|
|
8205 ;;
|
|
8206
|
|
8207 esac
|
|
8208 fi # End of if -z ld_dynamic_link_flags
|
|
8209 fi # End of if test "$can_build_shared" = "yes"
|
|
8210
|
|
8211
|
|
8212
|
|
8213
|
|
8214
|
|
8215
|
|
8216
|
|
8217
|
|
8218 fi
|
|
8219
|
|
8220 if test "$can_build_shared" = "yes"; then
|
|
8221 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8222 Defining HAVE_SHLIB
|
|
8223 EOF
|
|
8224 cat >> confdefs.h <<\EOF
|
|
8225 #define HAVE_SHLIB 1
|
|
8226 EOF
|
|
8227 }
|
|
8228
|
|
8229 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
8230 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
|
|
8231 for ac_func in dlerror _dlerror
|
|
8232 do
|
|
8233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
8234 echo "configure:8235: checking for $ac_func" >&5
|
|
8235
|
|
8236 cat > conftest.$ac_ext <<EOF
|
|
8237 #line 8238 "configure"
|
997
|
8238 #include "confdefs.h"
|
|
8239 /* System header to define __stub macros and hopefully few prototypes,
|
|
8240 which can conflict with char $ac_func(); below. */
|
|
8241 #include <assert.h>
|
|
8242 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8243 /* We use char because int might match the return type of a gcc2
|
|
8244 builtin and then its argument prototype would still apply. */
|
|
8245 char $ac_func();
|
|
8246
|
|
8247 int main() {
|
|
8248
|
|
8249 /* The GNU C library defines this for functions which it implements
|
|
8250 to always fail with ENOSYS. Some functions are actually named
|
|
8251 something starting with __ and the normal name is an alias. */
|
|
8252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
8253 choke me
|
|
8254 #else
|
|
8255 $ac_func();
|
|
8256 #endif
|
|
8257
|
|
8258 ; return 0; }
|
|
8259 EOF
|
1161
|
8260 if { (eval echo configure:8261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
997
|
8261 rm -rf conftest*
|
|
8262 eval "ac_cv_func_$ac_func=yes"
|
|
8263 else
|
|
8264 echo "configure: failed program was:" >&5
|
|
8265 cat conftest.$ac_ext >&5
|
|
8266 rm -rf conftest*
|
|
8267 eval "ac_cv_func_$ac_func=no"
|
|
8268 fi
|
|
8269 rm -f conftest*
|
|
8270
|
|
8271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
8272 echo "$ac_t""yes" 1>&6
|
|
8273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
8274 { test "$extra_verbose" = "yes" && cat << EOF
|
|
8275 Defining $ac_tr_func
|
|
8276 EOF
|
|
8277 cat >> confdefs.h <<EOF
|
|
8278 #define $ac_tr_func 1
|
|
8279 EOF
|
|
8280 }
|
|
8281
|
|
8282 else
|
|
8283 echo "$ac_t""no" 1>&6
|
|
8284 fi
|
|
8285 done
|
|
8286
|
|
8287 with_modules=yes
|
|
8288 MOD_CC="../../lib-src/ellcc"
|
|
8289 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src"
|
|
8290 INSTALLPATH="\$(moduledir)"
|
|
8291 MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM}
|
|
8292 OBJECT_TO_BUILD="\$(MODNAME).ell"
|
|
8293 else
|
|
8294 if test "$with_modules" = "yes"; then
|
|
8295 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
|
|
8296 else
|
|
8297 echo " No module support."
|
|
8298 fi
|
|
8299 with_modules=no
|
1111
|
8300 MOD_CC="$XEMACS_CC"
|
997
|
8301 MODCFLAGS="\$(CFLAGS) -I../../src -I\$(srcdir)/../../src"
|
|
8302 INSTALLPATH=""
|
|
8303 MOD_INSTALL_PROGRAM="true"
|
|
8304 OBJECT_TO_BUILD="\$(MODNAME).o"
|
|
8305 fi
|
|
8306 fi
|
|
8307 MODARCHDIR=
|
|
8308 MAKE_DOCFILE="../../lib-src/make-docfile"
|
|
8309
|
|
8310
|
|
8311
|
|
8312
|
|
8313
|
|
8314
|
|
8315
|
|
8316
|
|
8317
|
149
|
8318 if test "$with_tooltalk" != "no" ; then
|
|
8319 for dir in "" "Tt/" "desktop/" ; do
|
|
8320 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
|
|
8321 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
|
1161
|
8322 echo "configure:8323: checking for ${dir}tt_c.h" >&5
|
|
8323
|
|
8324 cat > conftest.$ac_ext <<EOF
|
|
8325 #line 8326 "configure"
|
149
|
8326 #include "confdefs.h"
|
|
8327 #include <${dir}tt_c.h>
|
|
8328 EOF
|
|
8329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
8330 { (eval echo configure:8331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
8332 if test -z "$ac_err"; then
|
|
8333 rm -rf conftest*
|
|
8334 eval "ac_cv_header_$ac_safe=yes"
|
|
8335 else
|
|
8336 echo "$ac_err" >&5
|
|
8337 echo "configure: failed program was:" >&5
|
|
8338 cat conftest.$ac_ext >&5
|
|
8339 rm -rf conftest*
|
|
8340 eval "ac_cv_header_$ac_safe=no"
|
|
8341 fi
|
|
8342 rm -f conftest*
|
|
8343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8344 echo "$ac_t""yes" 1>&6
|
442
|
8345 tt_c_h_file="${dir}tt_c.h"; break
|
149
|
8346 else
|
|
8347 echo "$ac_t""no" 1>&6
|
|
8348 fi
|
|
8349
|
|
8350 done
|
442
|
8351 if test -z "$tt_c_h_file"; then
|
284
|
8352 if test "$with_tooltalk" = "yes"; then
|
|
8353 (echo "$progname: Usage error:"
|
|
8354 echo " " "Unable to find required tooltalk header files."
|
|
8355 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
8356 fi
|
|
8357 with_tooltalk=no
|
|
8358 fi
|
149
|
8359 fi
|
|
8360 if test "$with_tooltalk" != "no" ; then
|
|
8361 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
|
|
8362
|
|
8363 xe_msg_checking="for tt_message_create in -ltt"
|
|
8364 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
|
|
8365 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1161
|
8366 echo "configure:8367: checking "$xe_msg_checking"" >&5
|
149
|
8367 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
|
|
8368
|
|
8369 xe_check_libs=" -ltt $extra_libs"
|
|
8370 cat > conftest.$ac_ext <<EOF
|
1161
|
8371 #line 8372 "configure"
|
149
|
8372 #include "confdefs.h"
|
|
8373 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8374 /* We use char because int might match the return type of a gcc2
|
|
8375 builtin and then its argument prototype would still apply. */
|
|
8376 char tt_message_create();
|
|
8377
|
|
8378 int main() {
|
|
8379 tt_message_create()
|
|
8380 ; return 0; }
|
|
8381 EOF
|
1161
|
8382 if { (eval echo configure:8383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
8383 rm -rf conftest*
|
|
8384 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8385 else
|
|
8386 echo "configure: failed program was:" >&5
|
|
8387 cat conftest.$ac_ext >&5
|
|
8388 rm -rf conftest*
|
|
8389 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8390 fi
|
|
8391 rm -f conftest*
|
|
8392 xe_check_libs=""
|
|
8393
|
151
|
8394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
8395 echo "$ac_t""yes" 1>&6
|
284
|
8396 tt_libs="-ltt $extra_libs"; break
|
149
|
8397 else
|
|
8398 echo "$ac_t""no" 1>&6
|
|
8399 :
|
|
8400 fi
|
|
8401
|
|
8402
|
|
8403 done
|
284
|
8404 if test -z "$tt_libs"; then
|
|
8405 if test "$with_tooltalk" = "yes"; then
|
|
8406 (echo "$progname: Usage error:"
|
|
8407 echo " " "Unable to find required tooltalk libraries."
|
|
8408 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
8409 fi
|
|
8410 with_tooltalk=no
|
|
8411 fi
|
|
8412 fi
|
|
8413 test -z "$with_tooltalk" && with_tooltalk=yes
|
149
|
8414 if test "$with_tooltalk" = "yes"; then
|
|
8415 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8416 Defining TOOLTALK
|
|
8417 EOF
|
|
8418 cat >> confdefs.h <<\EOF
|
|
8419 #define TOOLTALK 1
|
|
8420 EOF
|
|
8421 }
|
|
8422
|
|
8423 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
8424 Defining TT_C_H_FILE = "$tt_c_h_file"
|
|
8425 EOF
|
|
8426 cat >> confdefs.h <<EOF
|
|
8427 #define TT_C_H_FILE "$tt_c_h_file"
|
149
|
8428 EOF
|
|
8429 }
|
|
8430
|
151
|
8431 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
|
149
|
8432 fi
|
|
8433
|
|
8434 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
|
|
8435 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
|
1161
|
8436 echo "configure:8437: checking for Dt/Dt.h" >&5
|
|
8437
|
|
8438 cat > conftest.$ac_ext <<EOF
|
|
8439 #line 8440 "configure"
|
149
|
8440 #include "confdefs.h"
|
|
8441 #include <Dt/Dt.h>
|
|
8442 EOF
|
|
8443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
8444 { (eval echo configure:8445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
8446 if test -z "$ac_err"; then
|
|
8447 rm -rf conftest*
|
|
8448 eval "ac_cv_header_$ac_safe=yes"
|
|
8449 else
|
|
8450 echo "$ac_err" >&5
|
|
8451 echo "configure: failed program was:" >&5
|
|
8452 cat conftest.$ac_ext >&5
|
|
8453 rm -rf conftest*
|
|
8454 eval "ac_cv_header_$ac_safe=no"
|
|
8455 fi
|
|
8456 rm -f conftest*
|
|
8457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8458 echo "$ac_t""yes" 1>&6
|
|
8459 :
|
|
8460 else
|
|
8461 echo "$ac_t""no" 1>&6
|
|
8462 with_cde=no
|
136
|
8463 fi
|
|
8464 }
|
149
|
8465 test -z "$with_cde" && {
|
|
8466 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
|
1161
|
8467 echo "configure:8468: checking for DtDndDragStart in -lDtSvc" >&5
|
149
|
8468 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
|
|
8469
|
|
8470 xe_check_libs=" -lDtSvc "
|
|
8471 cat > conftest.$ac_ext <<EOF
|
1161
|
8472 #line 8473 "configure"
|
149
|
8473 #include "confdefs.h"
|
|
8474 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8475 /* We use char because int might match the return type of a gcc2
|
|
8476 builtin and then its argument prototype would still apply. */
|
|
8477 char DtDndDragStart();
|
|
8478
|
|
8479 int main() {
|
|
8480 DtDndDragStart()
|
|
8481 ; return 0; }
|
|
8482 EOF
|
1161
|
8483 if { (eval echo configure:8484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
8484 rm -rf conftest*
|
|
8485 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8486 else
|
|
8487 echo "configure: failed program was:" >&5
|
|
8488 cat conftest.$ac_ext >&5
|
|
8489 rm -rf conftest*
|
|
8490 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8491 fi
|
|
8492 rm -f conftest*
|
|
8493 xe_check_libs=""
|
|
8494
|
151
|
8495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
8496 echo "$ac_t""yes" 1>&6
|
|
8497 :
|
|
8498 else
|
|
8499 echo "$ac_t""no" 1>&6
|
|
8500 with_cde=no
|
|
8501 fi
|
|
8502
|
|
8503 }
|
582
|
8504 if test "$with_dragndrop" = "no" ; then
|
|
8505 if test "$with_cde" = "yes" ; then
|
|
8506 echo "configure: warning: --with-cde forced to \`no'; no generic Drag'n'Drop support" 1>&2
|
|
8507 fi
|
|
8508 with_cde=no
|
|
8509 fi
|
149
|
8510 test -z "$with_cde" && with_cde=yes
|
|
8511 if test "$with_cde" = "yes" ; then
|
|
8512 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8513 Defining HAVE_CDE
|
|
8514 EOF
|
|
8515 cat >> confdefs.h <<\EOF
|
|
8516 #define HAVE_CDE 1
|
|
8517 EOF
|
|
8518 }
|
|
8519
|
151
|
8520 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
|
282
|
8521 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
|
149
|
8522 with_tooltalk=yes # CDE requires Tooltalk
|
167
|
8523 need_motif=yes # CDE requires Motif
|
149
|
8524 fi
|
|
8525
|
288
|
8526 test "$window_system" != "x11" && with_offix=no
|
|
8527 if test "$with_xmu" != yes -a "$with_x11" = yes; then
|
582
|
8528 if test "$with_offix" = "yes" ; then
|
|
8529 echo "configure: warning: --with-offix forced to \`no'; no real Xmu support" 1>&2
|
|
8530 fi
|
288
|
8531 with_offix=no
|
|
8532 fi
|
|
8533 if test "$with_dragndrop" = no; then
|
582
|
8534 if test "$with_offix" = "yes" ; then
|
|
8535 echo "configure: warning: --with-offix forced to \`no'; no generic Drag'n'Drop support" 1>&2
|
|
8536 fi
|
288
|
8537 with_offix=no
|
|
8538 fi
|
|
8539 if test "$with_cde" = yes; then
|
582
|
8540 if test "$with_offix" = "yes" ; then
|
|
8541 echo "configure: warning: --with-offix forced to \`no'; CDE already found" 1>&2
|
|
8542 fi
|
288
|
8543 with_offix=no
|
|
8544 fi
|
300
|
8545 test -z "$with_offix" && with_offix=no
|
288
|
8546 if test "$with_offix" = "yes"; then
|
|
8547 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8548 Defining HAVE_OFFIX_DND
|
|
8549 EOF
|
|
8550 cat >> confdefs.h <<\EOF
|
|
8551 #define HAVE_OFFIX_DND 1
|
|
8552 EOF
|
|
8553 }
|
|
8554
|
|
8555 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
|
|
8556 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
|
|
8557 fi
|
462
|
8558 if test "$with_gtk" = "yes"; then
|
|
8559 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
|
|
8560 fi
|
288
|
8561
|
282
|
8562 if test "$with_dragndrop" != "no" ; then
|
446
|
8563 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
|
1161
|
8564 echo "configure:8565: checking if drag and drop API is needed" >&5
|
282
|
8565 if test -n "$dragndrop_proto" ; then
|
|
8566 with_dragndrop=yes
|
|
8567 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
|
|
8568 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8569 Defining HAVE_DRAGNDROP
|
|
8570 EOF
|
|
8571 cat >> confdefs.h <<\EOF
|
|
8572 #define HAVE_DRAGNDROP 1
|
|
8573 EOF
|
|
8574 }
|
|
8575
|
|
8576 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
|
|
8577 else
|
|
8578 with_dragndrop=no
|
|
8579 echo "$ac_t""no" 1>&6
|
|
8580 fi
|
|
8581 fi
|
|
8582
|
259
|
8583 echo "checking for LDAP" 1>&6
|
1161
|
8584 echo "configure:8585: checking for LDAP" >&5
|
997
|
8585 ldap_libs=
|
259
|
8586 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
|
|
8587 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
|
1161
|
8588 echo "configure:8589: checking for ldap.h" >&5
|
|
8589
|
|
8590 cat > conftest.$ac_ext <<EOF
|
|
8591 #line 8592 "configure"
|
259
|
8592 #include "confdefs.h"
|
|
8593 #include <ldap.h>
|
|
8594 EOF
|
|
8595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
8596 { (eval echo configure:8597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
259
|
8598 if test -z "$ac_err"; then
|
|
8599 rm -rf conftest*
|
|
8600 eval "ac_cv_header_$ac_safe=yes"
|
|
8601 else
|
|
8602 echo "$ac_err" >&5
|
|
8603 echo "configure: failed program was:" >&5
|
|
8604 cat conftest.$ac_ext >&5
|
|
8605 rm -rf conftest*
|
|
8606 eval "ac_cv_header_$ac_safe=no"
|
|
8607 fi
|
|
8608 rm -f conftest*
|
|
8609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8610 echo "$ac_t""yes" 1>&6
|
|
8611 :
|
|
8612 else
|
|
8613 echo "$ac_t""no" 1>&6
|
|
8614 with_ldap=no
|
|
8615 fi
|
|
8616 }
|
|
8617 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
|
|
8618 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
|
1161
|
8619 echo "configure:8620: checking for lber.h" >&5
|
|
8620
|
|
8621 cat > conftest.$ac_ext <<EOF
|
|
8622 #line 8623 "configure"
|
259
|
8623 #include "confdefs.h"
|
|
8624 #include <lber.h>
|
|
8625 EOF
|
|
8626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
8627 { (eval echo configure:8628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
259
|
8629 if test -z "$ac_err"; then
|
|
8630 rm -rf conftest*
|
|
8631 eval "ac_cv_header_$ac_safe=yes"
|
|
8632 else
|
|
8633 echo "$ac_err" >&5
|
|
8634 echo "configure: failed program was:" >&5
|
|
8635 cat conftest.$ac_ext >&5
|
|
8636 rm -rf conftest*
|
|
8637 eval "ac_cv_header_$ac_safe=no"
|
|
8638 fi
|
|
8639 rm -f conftest*
|
|
8640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8641 echo "$ac_t""yes" 1>&6
|
|
8642 :
|
|
8643 else
|
|
8644 echo "$ac_t""no" 1>&6
|
|
8645 with_ldap=no
|
|
8646 fi
|
|
8647 }
|
272
|
8648 if test "$with_ldap" != "no"; then
|
418
|
8649
|
|
8650 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
|
1161
|
8651 echo "configure:8652: checking for ldap_search in -lldap" >&5
|
418
|
8652 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
|
|
8653
|
|
8654 xe_check_libs=" -lldap "
|
|
8655 cat > conftest.$ac_ext <<EOF
|
1161
|
8656 #line 8657 "configure"
|
418
|
8657 #include "confdefs.h"
|
|
8658 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8659 /* We use char because int might match the return type of a gcc2
|
|
8660 builtin and then its argument prototype would still apply. */
|
|
8661 char ldap_search();
|
|
8662
|
|
8663 int main() {
|
|
8664 ldap_search()
|
|
8665 ; return 0; }
|
|
8666 EOF
|
1161
|
8667 if { (eval echo configure:8668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
8668 rm -rf conftest*
|
|
8669 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8670 else
|
|
8671 echo "configure: failed program was:" >&5
|
|
8672 cat conftest.$ac_ext >&5
|
|
8673 rm -rf conftest*
|
|
8674 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8675 fi
|
|
8676 rm -f conftest*
|
|
8677 xe_check_libs=""
|
|
8678
|
|
8679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8680 echo "$ac_t""yes" 1>&6
|
418
|
8681 with_ldap_nolber=yes
|
|
8682 else
|
|
8683 echo "$ac_t""no" 1>&6
|
|
8684 with_ldap_nolber=no
|
|
8685 fi
|
|
8686
|
|
8687
|
|
8688 test "$with_ldap_nolber" = "no" && {
|
|
8689 xe_msg_checking="for ldap_open in -lldap"
|
|
8690 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
|
|
8691 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1161
|
8692 echo "configure:8693: checking "$xe_msg_checking"" >&5
|
418
|
8693 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
8694
|
|
8695 xe_check_libs=" -lldap -llber"
|
|
8696 cat > conftest.$ac_ext <<EOF
|
1161
|
8697 #line 8698 "configure"
|
418
|
8698 #include "confdefs.h"
|
|
8699 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8700 /* We use char because int might match the return type of a gcc2
|
|
8701 builtin and then its argument prototype would still apply. */
|
|
8702 char ldap_open();
|
|
8703
|
|
8704 int main() {
|
|
8705 ldap_open()
|
|
8706 ; return 0; }
|
|
8707 EOF
|
1161
|
8708 if { (eval echo configure:8709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
8709 rm -rf conftest*
|
|
8710 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8711 else
|
|
8712 echo "configure: failed program was:" >&5
|
|
8713 cat conftest.$ac_ext >&5
|
|
8714 rm -rf conftest*
|
|
8715 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8716 fi
|
|
8717 rm -f conftest*
|
|
8718 xe_check_libs=""
|
|
8719
|
|
8720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8721 echo "$ac_t""yes" 1>&6
|
418
|
8722 with_ldap_lber=yes
|
|
8723 else
|
|
8724 echo "$ac_t""no" 1>&6
|
|
8725 with_ldap_lber=no
|
259
|
8726 fi
|
|
8727
|
|
8728 }
|
422
|
8729 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
|
|
8730 xe_msg_checking="for ldap_open in -lldap"
|
|
8731 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
|
|
8732 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1161
|
8733 echo "configure:8734: checking "$xe_msg_checking"" >&5
|
422
|
8734 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
8735
|
|
8736 xe_check_libs=" -lldap -llber -lkrb"
|
|
8737 cat > conftest.$ac_ext <<EOF
|
1161
|
8738 #line 8739 "configure"
|
422
|
8739 #include "confdefs.h"
|
|
8740 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8741 /* We use char because int might match the return type of a gcc2
|
|
8742 builtin and then its argument prototype would still apply. */
|
|
8743 char ldap_open();
|
|
8744
|
|
8745 int main() {
|
|
8746 ldap_open()
|
|
8747 ; return 0; }
|
|
8748 EOF
|
1161
|
8749 if { (eval echo configure:8750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
422
|
8750 rm -rf conftest*
|
|
8751 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8752 else
|
|
8753 echo "configure: failed program was:" >&5
|
|
8754 cat conftest.$ac_ext >&5
|
|
8755 rm -rf conftest*
|
|
8756 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8757 fi
|
|
8758 rm -f conftest*
|
|
8759 xe_check_libs=""
|
|
8760
|
|
8761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8762 echo "$ac_t""yes" 1>&6
|
|
8763 with_ldap_krb=yes
|
|
8764 else
|
|
8765 echo "$ac_t""no" 1>&6
|
|
8766 with_ldap_krb=no
|
|
8767 fi
|
|
8768
|
|
8769 }
|
|
8770 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
|
|
8771 xe_msg_checking="for ldap_open in -lldap"
|
|
8772 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
|
|
8773 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
1161
|
8774 echo "configure:8775: checking "$xe_msg_checking"" >&5
|
422
|
8775 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
8776
|
|
8777 xe_check_libs=" -lldap -llber -lkrb -ldes"
|
|
8778 cat > conftest.$ac_ext <<EOF
|
1161
|
8779 #line 8780 "configure"
|
422
|
8780 #include "confdefs.h"
|
|
8781 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8782 /* We use char because int might match the return type of a gcc2
|
|
8783 builtin and then its argument prototype would still apply. */
|
|
8784 char ldap_open();
|
|
8785
|
|
8786 int main() {
|
|
8787 ldap_open()
|
|
8788 ; return 0; }
|
|
8789 EOF
|
1161
|
8790 if { (eval echo configure:8791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
422
|
8791 rm -rf conftest*
|
|
8792 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8793 else
|
|
8794 echo "configure: failed program was:" >&5
|
|
8795 cat conftest.$ac_ext >&5
|
|
8796 rm -rf conftest*
|
|
8797 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8798 fi
|
|
8799 rm -f conftest*
|
|
8800 xe_check_libs=""
|
|
8801
|
|
8802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8803 echo "$ac_t""yes" 1>&6
|
|
8804 with_ldap_krbdes=yes
|
|
8805 else
|
|
8806 echo "$ac_t""no" 1>&6
|
|
8807 with_ldap_krbdes=no
|
|
8808 fi
|
|
8809
|
|
8810 }
|
|
8811 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
|
272
|
8812 fi
|
|
8813 if test "$with_ldap" = "yes"; then
|
259
|
8814 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8815 Defining HAVE_LDAP
|
|
8816 EOF
|
|
8817 cat >> confdefs.h <<\EOF
|
|
8818 #define HAVE_LDAP 1
|
|
8819 EOF
|
|
8820 }
|
|
8821
|
418
|
8822 if test "$with_ldap_nolber" = "yes" ; then
|
997
|
8823 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
|
418
|
8824 else
|
422
|
8825 if test "$with_ldap_krb" = "yes" ; then
|
997
|
8826 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
|
422
|
8827 fi
|
|
8828 if test "$with_ldap_krbdes" = "yes" ; then
|
997
|
8829 ldap_libs="-ldes $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$ldap_libs"; fi
|
|
8830 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
|
|
8831 fi
|
|
8832 ldap_libs="-llber $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$ldap_libs"; fi
|
|
8833 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
|
|
8834 fi
|
|
8835 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
|
418
|
8836 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
|
|
8837 do
|
|
8838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
8839 echo "configure:8840: checking for $ac_func" >&5
|
|
8840
|
|
8841 cat > conftest.$ac_ext <<EOF
|
|
8842 #line 8843 "configure"
|
418
|
8843 #include "confdefs.h"
|
|
8844 /* System header to define __stub macros and hopefully few prototypes,
|
|
8845 which can conflict with char $ac_func(); below. */
|
|
8846 #include <assert.h>
|
|
8847 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8848 /* We use char because int might match the return type of a gcc2
|
|
8849 builtin and then its argument prototype would still apply. */
|
|
8850 char $ac_func();
|
|
8851
|
|
8852 int main() {
|
|
8853
|
|
8854 /* The GNU C library defines this for functions which it implements
|
|
8855 to always fail with ENOSYS. Some functions are actually named
|
|
8856 something starting with __ and the normal name is an alias. */
|
|
8857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
8858 choke me
|
|
8859 #else
|
|
8860 $ac_func();
|
|
8861 #endif
|
|
8862
|
|
8863 ; return 0; }
|
|
8864 EOF
|
1161
|
8865 if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
418
|
8866 rm -rf conftest*
|
|
8867 eval "ac_cv_func_$ac_func=yes"
|
|
8868 else
|
|
8869 echo "configure: failed program was:" >&5
|
|
8870 cat conftest.$ac_ext >&5
|
|
8871 rm -rf conftest*
|
|
8872 eval "ac_cv_func_$ac_func=no"
|
|
8873 fi
|
|
8874 rm -f conftest*
|
|
8875
|
|
8876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
8877 echo "$ac_t""yes" 1>&6
|
|
8878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
8879 { test "$extra_verbose" = "yes" && cat << EOF
|
|
8880 Defining $ac_tr_func
|
|
8881 EOF
|
|
8882 cat >> confdefs.h <<EOF
|
|
8883 #define $ac_tr_func 1
|
|
8884 EOF
|
|
8885 }
|
|
8886
|
|
8887 else
|
|
8888 echo "$ac_t""no" 1>&6
|
|
8889 fi
|
|
8890 done
|
|
8891
|
997
|
8892 LIBS="$save_LIBS"
|
|
8893 MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi
|
1111
|
8894 need_modules_common=yes
|
997
|
8895 if test "$with_modules" = "yes"; then
|
|
8896 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
|
|
8897 fi
|
|
8898 fi
|
|
8899
|
|
8900
|
|
8901 postgresql_libs=
|
442
|
8902 if test "$with_postgresql" != "no"; then
|
|
8903 echo "checking for PostgreSQL" 1>&6
|
1161
|
8904 echo "configure:8905: checking for PostgreSQL" >&5
|
442
|
8905
|
|
8906 for header_dir in "" "pgsql/" "postgresql/"; do
|
|
8907 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
|
|
8908 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
|
1161
|
8909 echo "configure:8910: checking for ${header_dir}libpq-fe.h" >&5
|
|
8910
|
|
8911 cat > conftest.$ac_ext <<EOF
|
|
8912 #line 8913 "configure"
|
442
|
8913 #include "confdefs.h"
|
|
8914 #include <${header_dir}libpq-fe.h>
|
|
8915 EOF
|
|
8916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
8917 { (eval echo configure:8918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
8918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
8919 if test -z "$ac_err"; then
|
|
8920 rm -rf conftest*
|
|
8921 eval "ac_cv_header_$ac_safe=yes"
|
|
8922 else
|
|
8923 echo "$ac_err" >&5
|
|
8924 echo "configure: failed program was:" >&5
|
|
8925 cat conftest.$ac_ext >&5
|
|
8926 rm -rf conftest*
|
|
8927 eval "ac_cv_header_$ac_safe=no"
|
|
8928 fi
|
|
8929 rm -f conftest*
|
|
8930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8931 echo "$ac_t""yes" 1>&6
|
|
8932 libpq_fe_h_file=${header_dir}libpq-fe.h; break
|
|
8933 else
|
|
8934 echo "$ac_t""no" 1>&6
|
|
8935 fi
|
|
8936
|
|
8937 done
|
|
8938
|
|
8939 test -n "$libpq_fe_h_file" && {
|
|
8940 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
|
1161
|
8941 echo "configure:8942: checking for PQconnectdb in -lpq" >&5
|
442
|
8942 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
|
|
8943
|
|
8944 xe_check_libs=" -lpq "
|
|
8945 cat > conftest.$ac_ext <<EOF
|
1161
|
8946 #line 8947 "configure"
|
442
|
8947 #include "confdefs.h"
|
|
8948 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8949 /* We use char because int might match the return type of a gcc2
|
|
8950 builtin and then its argument prototype would still apply. */
|
|
8951 char PQconnectdb();
|
|
8952
|
|
8953 int main() {
|
|
8954 PQconnectdb()
|
|
8955 ; return 0; }
|
|
8956 EOF
|
1161
|
8957 if { (eval echo configure:8958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
8958 rm -rf conftest*
|
|
8959 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8960 else
|
|
8961 echo "configure: failed program was:" >&5
|
|
8962 cat conftest.$ac_ext >&5
|
|
8963 rm -rf conftest*
|
|
8964 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8965 fi
|
|
8966 rm -f conftest*
|
|
8967 xe_check_libs=""
|
|
8968
|
|
8969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8970 echo "$ac_t""yes" 1>&6
|
|
8971 have_libpq=yes
|
|
8972 else
|
|
8973 echo "$ac_t""no" 1>&6
|
|
8974 fi
|
|
8975
|
|
8976 }
|
|
8977
|
|
8978 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
|
|
8979 with_postgresql=yes
|
|
8980 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8981 Defining HAVE_POSTGRESQL
|
|
8982 EOF
|
|
8983 cat >> confdefs.h <<\EOF
|
|
8984 #define HAVE_POSTGRESQL 1
|
|
8985 EOF
|
|
8986 }
|
|
8987
|
|
8988
|
|
8989 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
|
1161
|
8990 echo "configure:8991: checking for PQconnectStart in -lpq" >&5
|
442
|
8991 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
|
|
8992
|
|
8993 xe_check_libs=" -lpq "
|
|
8994 cat > conftest.$ac_ext <<EOF
|
1161
|
8995 #line 8996 "configure"
|
442
|
8996 #include "confdefs.h"
|
|
8997 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8998 /* We use char because int might match the return type of a gcc2
|
|
8999 builtin and then its argument prototype would still apply. */
|
|
9000 char PQconnectStart();
|
|
9001
|
|
9002 int main() {
|
|
9003 PQconnectStart()
|
|
9004 ; return 0; }
|
|
9005 EOF
|
1161
|
9006 if { (eval echo configure:9007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
9007 rm -rf conftest*
|
|
9008 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9009 else
|
|
9010 echo "configure: failed program was:" >&5
|
|
9011 cat conftest.$ac_ext >&5
|
|
9012 rm -rf conftest*
|
|
9013 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9014 fi
|
|
9015 rm -f conftest*
|
|
9016 xe_check_libs=""
|
|
9017
|
|
9018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9019 echo "$ac_t""yes" 1>&6
|
|
9020 with_postgresqlv7=yes;
|
|
9021 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9022 Defining HAVE_POSTGRESQLV7
|
|
9023 EOF
|
|
9024 cat >> confdefs.h <<\EOF
|
|
9025 #define HAVE_POSTGRESQLV7 1
|
|
9026 EOF
|
|
9027 }
|
|
9028
|
|
9029 else
|
|
9030 echo "$ac_t""no" 1>&6
|
|
9031 fi
|
|
9032
|
|
9033
|
|
9034 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9035 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
|
|
9036 EOF
|
|
9037 cat >> confdefs.h <<EOF
|
|
9038 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
|
|
9039 EOF
|
|
9040 }
|
|
9041
|
997
|
9042 postgresql_libs="-lpq $postgresql_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$postgresql_libs"; fi
|
|
9043 MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi
|
1111
|
9044 need_modules_common=yes
|
997
|
9045 if test "$with_modules" = "yes"; then
|
|
9046 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
|
|
9047 fi
|
442
|
9048 elif test "$with_postgresql" = "yes"; then
|
|
9049 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
|
|
9050 fi
|
|
9051 fi
|
|
9052
|
149
|
9053
|
997
|
9054
|
278
|
9055 if test "$window_system" != "none"; then
|
|
9056 echo "checking for graphics libraries" 1>&6
|
1161
|
9057 echo "configure:9058: checking for graphics libraries" >&5
|
724
|
9058
|
|
9059 libpath_xpm=
|
|
9060 incpath_xpm=
|
|
9061 case "$opsys" in
|
|
9062 cygwin*)
|
|
9063 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
|
|
9064 cygwin_top=`eval "dirname ${cygwin_top}"`;
|
|
9065 cygwin_top="${cygwin_top}/..";
|
|
9066 case "$window_system" in
|
|
9067 x11) ;;
|
|
9068 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
|
|
9069 incpath_xpm="-I${cygwin_top}/include/noX"
|
|
9070 ;;
|
|
9071 gtk) ;;
|
|
9072 none) ;;
|
|
9073 *) ;;
|
|
9074 esac
|
|
9075 ;;
|
|
9076 *) ;;
|
|
9077 esac
|
373
|
9078 xpm_problem=""
|
|
9079 if test -z "$with_xpm"; then
|
724
|
9080 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
|
|
9081 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
|
193
|
9082 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
|
1161
|
9083 echo "configure:9084: checking for Xpm - no older than 3.4f" >&5
|
272
|
9084 xe_check_libs=-lXpm
|
|
9085 cat > conftest.$ac_ext <<EOF
|
1161
|
9086 #line 9087 "configure"
|
442
|
9087 #include "confdefs.h"
|
|
9088 #define XPM_NUMBERS
|
149
|
9089 #include <X11/xpm.h>
|
272
|
9090 int main(int c, char **v) {
|
|
9091 return c == 1 ? 0 :
|
|
9092 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
|
|
9093 XpmIncludeVersion < 30406 ? 2 : 0 ;}
|
|
9094 EOF
|
1161
|
9095 if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
159
|
9096 then
|
272
|
9097 ./conftest dummy_arg; xpm_status=$?;
|
373
|
9098 if test "$xpm_status" = "0"; then
|
272
|
9099 with_xpm=yes;
|
|
9100 else
|
|
9101 with_xpm=no;
|
373
|
9102 if test "$xpm_status" = "1"; then
|
272
|
9103 xpm_problem="Xpm library version and header file version don't match!"
|
373
|
9104 elif test "$xpm_status" = "2"; then
|
272
|
9105 xpm_problem="Xpm library version is too old!"
|
|
9106 else
|
|
9107 xpm_problem="Internal xpm detection logic error!"
|
|
9108 fi
|
|
9109 echo "
|
373
|
9110 *** WARNING *** $xpm_problem
|
278
|
9111 I'm not touching that with a 10-foot pole!
|
|
9112 If you really want to use the installed version of Xpm, rerun
|
373
|
9113 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
|
278
|
9114 fi
|
159
|
9115 else
|
373
|
9116 conftest_rc="$?"
|
159
|
9117 echo "configure: failed program was:" >&5
|
|
9118 cat conftest.$ac_ext >&5
|
|
9119 rm -fr conftest*
|
|
9120 with_xpm=no
|
|
9121 fi
|
|
9122 rm -fr conftest*
|
272
|
9123 xe_check_libs=
|
|
9124 echo "$ac_t""$with_xpm" 1>&6
|
193
|
9125 fi
|
|
9126 if test "$with_xpm" = "yes"; then
|
458
|
9127 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9128 Defining HAVE_XPM
|
|
9129 EOF
|
|
9130 cat >> confdefs.h <<\EOF
|
|
9131 #define HAVE_XPM 1
|
|
9132 EOF
|
|
9133 }
|
|
9134
|
724
|
9135 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
|
193
|
9136 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
|
724
|
9137 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
|
278
|
9138 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
|
1161
|
9139 echo "configure:9140: checking for \"FOR_MSW\" xpm" >&5
|
278
|
9140 xe_check_libs=-lXpm
|
|
9141 cat > conftest.$ac_ext <<EOF
|
1161
|
9142 #line 9143 "configure"
|
278
|
9143 #include "confdefs.h"
|
|
9144
|
|
9145 int main() {
|
|
9146 XpmCreatePixmapFromData()
|
|
9147 ; return 0; }
|
|
9148 EOF
|
1161
|
9149 if { (eval echo configure:9150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
9150 rm -rf conftest*
|
|
9151 xpm_for_msw=no
|
|
9152 else
|
|
9153 echo "configure: failed program was:" >&5
|
|
9154 cat conftest.$ac_ext >&5
|
|
9155 rm -rf conftest*
|
|
9156 xpm_for_msw=yes
|
|
9157 fi
|
|
9158 rm -f conftest*
|
|
9159 xe_check_libs=
|
|
9160 echo "$ac_t""$xpm_for_msw" 1>&6
|
|
9161 if test "$xpm_for_msw" = "yes"; then
|
|
9162 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9163 Defining FOR_MSW
|
|
9164 EOF
|
|
9165 cat >> confdefs.h <<\EOF
|
|
9166 #define FOR_MSW 1
|
|
9167 EOF
|
|
9168 }
|
|
9169
|
|
9170 fi
|
|
9171 fi
|
|
9172
|
388
|
9173 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
9174 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
1161
|
9175 echo "configure:9176: checking for compface.h" >&5
|
|
9176
|
|
9177 cat > conftest.$ac_ext <<EOF
|
|
9178 #line 9179 "configure"
|
388
|
9179 #include "confdefs.h"
|
|
9180 #include <compface.h>
|
|
9181 EOF
|
|
9182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
9183 { (eval echo configure:9184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
388
|
9185 if test -z "$ac_err"; then
|
|
9186 rm -rf conftest*
|
|
9187 eval "ac_cv_header_$ac_safe=yes"
|
|
9188 else
|
|
9189 echo "$ac_err" >&5
|
|
9190 echo "configure: failed program was:" >&5
|
|
9191 cat conftest.$ac_ext >&5
|
|
9192 rm -rf conftest*
|
|
9193 eval "ac_cv_header_$ac_safe=no"
|
|
9194 fi
|
|
9195 rm -f conftest*
|
|
9196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9197 echo "$ac_t""yes" 1>&6
|
|
9198 :
|
|
9199 else
|
|
9200 echo "$ac_t""no" 1>&6
|
|
9201 with_xface=no
|
|
9202 fi
|
|
9203 }
|
|
9204 test -z "$with_xface" && {
|
|
9205 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
1161
|
9206 echo "configure:9207: checking for UnGenFace in -lcompface" >&5
|
388
|
9207 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
9208
|
|
9209 xe_check_libs=" -lcompface "
|
|
9210 cat > conftest.$ac_ext <<EOF
|
1161
|
9211 #line 9212 "configure"
|
388
|
9212 #include "confdefs.h"
|
|
9213 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9214 /* We use char because int might match the return type of a gcc2
|
|
9215 builtin and then its argument prototype would still apply. */
|
|
9216 char UnGenFace();
|
|
9217
|
|
9218 int main() {
|
|
9219 UnGenFace()
|
|
9220 ; return 0; }
|
|
9221 EOF
|
1161
|
9222 if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
388
|
9223 rm -rf conftest*
|
|
9224 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9225 else
|
|
9226 echo "configure: failed program was:" >&5
|
|
9227 cat conftest.$ac_ext >&5
|
|
9228 rm -rf conftest*
|
|
9229 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9230 fi
|
|
9231 rm -f conftest*
|
|
9232 xe_check_libs=""
|
|
9233
|
|
9234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9235 echo "$ac_t""yes" 1>&6
|
|
9236 :
|
|
9237 else
|
|
9238 echo "$ac_t""no" 1>&6
|
|
9239 with_xface=no
|
|
9240 fi
|
|
9241
|
|
9242 }
|
|
9243 test -z "$with_xface" && with_xface=yes
|
|
9244 if test "$with_xface" = "yes"; then
|
|
9245 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9246 Defining HAVE_XFACE
|
|
9247 EOF
|
|
9248 cat >> confdefs.h <<\EOF
|
|
9249 #define HAVE_XFACE 1
|
|
9250 EOF
|
|
9251 }
|
|
9252
|
|
9253 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
|
|
9254 fi
|
|
9255
|
373
|
9256 if test "$with_gif" != "no"; then
|
|
9257 with_gif="yes"
|
|
9258 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9259 Defining HAVE_GIF
|
|
9260 EOF
|
|
9261 cat >> confdefs.h <<\EOF
|
|
9262 #define HAVE_GIF 1
|
|
9263 EOF
|
|
9264 }
|
|
9265
|
|
9266 fi
|
|
9267
|
278
|
9268 if test "$with_png $with_tiff" != "no no"; then
|
|
9269
|
|
9270 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
|
1161
|
9271 echo "configure:9272: checking for inflate in -lc" >&5
|
278
|
9272 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
|
|
9273
|
|
9274 xe_check_libs=" -lc "
|
|
9275 cat > conftest.$ac_ext <<EOF
|
1161
|
9276 #line 9277 "configure"
|
149
|
9277 #include "confdefs.h"
|
|
9278 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9279 /* We use char because int might match the return type of a gcc2
|
|
9280 builtin and then its argument prototype would still apply. */
|
278
|
9281 char inflate();
|
|
9282
|
|
9283 int main() {
|
|
9284 inflate()
|
|
9285 ; return 0; }
|
|
9286 EOF
|
1161
|
9287 if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
9288 rm -rf conftest*
|
|
9289 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9290 else
|
|
9291 echo "configure: failed program was:" >&5
|
|
9292 cat conftest.$ac_ext >&5
|
|
9293 rm -rf conftest*
|
|
9294 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9295 fi
|
|
9296 rm -f conftest*
|
|
9297 xe_check_libs=""
|
|
9298
|
151
|
9299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
9300 echo "$ac_t""yes" 1>&6
|
278
|
9301 :
|
|
9302 else
|
|
9303 echo "$ac_t""no" 1>&6
|
|
9304
|
|
9305 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
|
1161
|
9306 echo "configure:9307: checking for inflate in -lz" >&5
|
278
|
9307 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
|
|
9308
|
|
9309 xe_check_libs=" -lz "
|
|
9310 cat > conftest.$ac_ext <<EOF
|
1161
|
9311 #line 9312 "configure"
|
278
|
9312 #include "confdefs.h"
|
|
9313 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9314 /* We use char because int might match the return type of a gcc2
|
|
9315 builtin and then its argument prototype would still apply. */
|
|
9316 char inflate();
|
|
9317
|
|
9318 int main() {
|
|
9319 inflate()
|
|
9320 ; return 0; }
|
|
9321 EOF
|
1161
|
9322 if { (eval echo configure:9323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
9323 rm -rf conftest*
|
|
9324 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9325 else
|
|
9326 echo "configure: failed program was:" >&5
|
|
9327 cat conftest.$ac_ext >&5
|
|
9328 rm -rf conftest*
|
|
9329 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9330 fi
|
|
9331 rm -f conftest*
|
|
9332 xe_check_libs=""
|
|
9333
|
|
9334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9335 echo "$ac_t""yes" 1>&6
|
|
9336 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
|
|
9337 else
|
|
9338 echo "$ac_t""no" 1>&6
|
|
9339
|
|
9340 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
|
1161
|
9341 echo "configure:9342: checking for inflate in -lgz" >&5
|
278
|
9342 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
|
|
9343
|
|
9344 xe_check_libs=" -lgz "
|
|
9345 cat > conftest.$ac_ext <<EOF
|
1161
|
9346 #line 9347 "configure"
|
278
|
9347 #include "confdefs.h"
|
|
9348 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9349 /* We use char because int might match the return type of a gcc2
|
|
9350 builtin and then its argument prototype would still apply. */
|
|
9351 char inflate();
|
|
9352
|
|
9353 int main() {
|
|
9354 inflate()
|
|
9355 ; return 0; }
|
|
9356 EOF
|
1161
|
9357 if { (eval echo configure:9358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
9358 rm -rf conftest*
|
|
9359 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9360 else
|
|
9361 echo "configure: failed program was:" >&5
|
|
9362 cat conftest.$ac_ext >&5
|
|
9363 rm -rf conftest*
|
|
9364 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9365 fi
|
|
9366 rm -f conftest*
|
|
9367 xe_check_libs=""
|
|
9368
|
|
9369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9370 echo "$ac_t""yes" 1>&6
|
|
9371 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
|
|
9372 else
|
|
9373 echo "$ac_t""no" 1>&6
|
|
9374 fi
|
|
9375
|
|
9376
|
|
9377 fi
|
|
9378
|
|
9379
|
|
9380 fi
|
|
9381
|
|
9382
|
193
|
9383 fi
|
|
9384
|
251
|
9385 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
|
|
9386 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
|
1161
|
9387 echo "configure:9388: checking for jpeglib.h" >&5
|
|
9388
|
|
9389 cat > conftest.$ac_ext <<EOF
|
|
9390 #line 9391 "configure"
|
251
|
9391 #include "confdefs.h"
|
|
9392 #include <jpeglib.h>
|
0
|
9393 EOF
|
149
|
9394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
9395 { (eval echo configure:9396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
251
|
9397 if test -z "$ac_err"; then
|
|
9398 rm -rf conftest*
|
|
9399 eval "ac_cv_header_$ac_safe=yes"
|
|
9400 else
|
|
9401 echo "$ac_err" >&5
|
|
9402 echo "configure: failed program was:" >&5
|
|
9403 cat conftest.$ac_ext >&5
|
|
9404 rm -rf conftest*
|
|
9405 eval "ac_cv_header_$ac_safe=no"
|
|
9406 fi
|
|
9407 rm -f conftest*
|
|
9408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9409 echo "$ac_t""yes" 1>&6
|
|
9410 :
|
|
9411 else
|
|
9412 echo "$ac_t""no" 1>&6
|
|
9413 with_jpeg=no
|
|
9414 fi
|
|
9415 }
|
|
9416 test -z "$with_jpeg" && {
|
|
9417 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
|
1161
|
9418 echo "configure:9419: checking for jpeg_destroy_decompress in -ljpeg" >&5
|
251
|
9419 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
|
|
9420
|
|
9421 xe_check_libs=" -ljpeg "
|
|
9422 cat > conftest.$ac_ext <<EOF
|
1161
|
9423 #line 9424 "configure"
|
251
|
9424 #include "confdefs.h"
|
|
9425 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9426 /* We use char because int might match the return type of a gcc2
|
|
9427 builtin and then its argument prototype would still apply. */
|
|
9428 char jpeg_destroy_decompress();
|
|
9429
|
|
9430 int main() {
|
|
9431 jpeg_destroy_decompress()
|
|
9432 ; return 0; }
|
|
9433 EOF
|
1161
|
9434 if { (eval echo configure:9435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
251
|
9435 rm -rf conftest*
|
|
9436 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9437 else
|
|
9438 echo "configure: failed program was:" >&5
|
|
9439 cat conftest.$ac_ext >&5
|
|
9440 rm -rf conftest*
|
|
9441 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9442 fi
|
|
9443 rm -f conftest*
|
|
9444 xe_check_libs=""
|
|
9445
|
|
9446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9447 echo "$ac_t""yes" 1>&6
|
|
9448 :
|
|
9449 else
|
|
9450 echo "$ac_t""no" 1>&6
|
|
9451 with_jpeg=no
|
|
9452 fi
|
|
9453
|
|
9454 }
|
|
9455 test -z "$with_jpeg" && with_jpeg=yes
|
|
9456 if test "$with_jpeg" = "yes"; then
|
|
9457 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9458 Defining HAVE_JPEG
|
|
9459 EOF
|
|
9460 cat >> confdefs.h <<\EOF
|
|
9461 #define HAVE_JPEG 1
|
|
9462 EOF
|
|
9463 }
|
|
9464
|
|
9465 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
|
|
9466 fi
|
|
9467
|
373
|
9468 png_problem=""
|
251
|
9469 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
|
1161
|
9470 echo "configure:9471: checking for pow" >&5
|
|
9471
|
|
9472 cat > conftest.$ac_ext <<EOF
|
|
9473 #line 9474 "configure"
|
251
|
9474 #include "confdefs.h"
|
|
9475 /* System header to define __stub macros and hopefully few prototypes,
|
|
9476 which can conflict with char pow(); below. */
|
|
9477 #include <assert.h>
|
243
|
9478 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9479 /* We use char because int might match the return type of a gcc2
|
|
9480 builtin and then its argument prototype would still apply. */
|
251
|
9481 char pow();
|
243
|
9482
|
|
9483 int main() {
|
251
|
9484
|
|
9485 /* The GNU C library defines this for functions which it implements
|
|
9486 to always fail with ENOSYS. Some functions are actually named
|
|
9487 something starting with __ and the normal name is an alias. */
|
|
9488 #if defined (__stub_pow) || defined (__stub___pow)
|
|
9489 choke me
|
|
9490 #else
|
|
9491 pow();
|
|
9492 #endif
|
|
9493
|
243
|
9494 ; return 0; }
|
|
9495 EOF
|
1161
|
9496 if { (eval echo configure:9497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
251
|
9497 rm -rf conftest*
|
|
9498 eval "ac_cv_func_pow=yes"
|
|
9499 else
|
|
9500 echo "configure: failed program was:" >&5
|
|
9501 cat conftest.$ac_ext >&5
|
|
9502 rm -rf conftest*
|
|
9503 eval "ac_cv_func_pow=no"
|
|
9504 fi
|
|
9505 rm -f conftest*
|
|
9506
|
|
9507 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
|
|
9508 echo "$ac_t""yes" 1>&6
|
|
9509 :
|
|
9510 else
|
|
9511 echo "$ac_t""no" 1>&6
|
|
9512 with_png=no
|
|
9513 fi
|
|
9514 }
|
373
|
9515 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
|
|
9516 echo $ac_n "checking for png.h""... $ac_c" 1>&6
|
1161
|
9517 echo "configure:9518: checking for png.h" >&5
|
|
9518
|
|
9519 cat > conftest.$ac_ext <<EOF
|
|
9520 #line 9521 "configure"
|
373
|
9521 #include "confdefs.h"
|
|
9522 #include <png.h>
|
|
9523 EOF
|
|
9524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
9525 { (eval echo configure:9526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
373
|
9527 if test -z "$ac_err"; then
|
|
9528 rm -rf conftest*
|
|
9529 eval "ac_cv_header_$ac_safe=yes"
|
|
9530 else
|
|
9531 echo "$ac_err" >&5
|
|
9532 echo "configure: failed program was:" >&5
|
|
9533 cat conftest.$ac_ext >&5
|
|
9534 rm -rf conftest*
|
|
9535 eval "ac_cv_header_$ac_safe=no"
|
|
9536 fi
|
|
9537 rm -f conftest*
|
|
9538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9539 echo "$ac_t""yes" 1>&6
|
|
9540 :
|
|
9541 else
|
|
9542 echo "$ac_t""no" 1>&6
|
|
9543 with_png=no
|
|
9544 fi
|
|
9545 }
|
272
|
9546 test -z "$with_png" && {
|
|
9547 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
|
1161
|
9548 echo "configure:9549: checking for png_read_image in -lpng" >&5
|
272
|
9549 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
|
|
9550
|
|
9551 xe_check_libs=" -lpng "
|
|
9552 cat > conftest.$ac_ext <<EOF
|
1161
|
9553 #line 9554 "configure"
|
243
|
9554 #include "confdefs.h"
|
|
9555 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9556 /* We use char because int might match the return type of a gcc2
|
|
9557 builtin and then its argument prototype would still apply. */
|
272
|
9558 char png_read_image();
|
|
9559
|
|
9560 int main() {
|
|
9561 png_read_image()
|
|
9562 ; return 0; }
|
|
9563 EOF
|
1161
|
9564 if { (eval echo configure:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
217
|
9565 rm -rf conftest*
|
|
9566 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9567 else
|
|
9568 echo "configure: failed program was:" >&5
|
|
9569 cat conftest.$ac_ext >&5
|
|
9570 rm -rf conftest*
|
|
9571 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9572 fi
|
|
9573 rm -f conftest*
|
|
9574 xe_check_libs=""
|
|
9575
|
|
9576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9577 echo "$ac_t""yes" 1>&6
|
272
|
9578 :
|
|
9579 else
|
|
9580 echo "$ac_t""no" 1>&6
|
|
9581 with_png=no
|
|
9582 fi
|
|
9583
|
|
9584 }
|
373
|
9585 if test -z "$with_png"; then
|
|
9586 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
|
1161
|
9587 echo "configure:9588: checking for workable png version information" >&5
|
373
|
9588 xe_check_libs="-lpng -lz"
|
|
9589 cat > conftest.$ac_ext <<EOF
|
1161
|
9590 #line 9591 "configure"
|
373
|
9591 #include "confdefs.h"
|
|
9592 #include <png.h>
|
|
9593 int main(int c, char **v) {
|
|
9594 if (c == 1) return 0;
|
|
9595 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
|
|
9596 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
|
|
9597 EOF
|
1161
|
9598 if { (eval echo configure:9599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
373
|
9599 then
|
|
9600 ./conftest dummy_arg; png_status=$?;
|
|
9601 if test "$png_status" = "0"; then
|
|
9602 with_png=yes;
|
|
9603 else
|
|
9604 with_png=no;
|
|
9605 if test "$png_status" = "1"; then
|
|
9606 png_problem="PNG library version and header file don't match!"
|
|
9607 elif test "$png_status" = "2"; then
|
|
9608 png_problem="PNG library version too old (pre 1.0.2)!"
|
|
9609 fi
|
|
9610 echo "
|
|
9611 *** WARNING *** $png_problem
|
|
9612 I'm not touching that with a 10-foot pole!
|
|
9613 If you really want to use the installed version of libPNG, rerun
|
|
9614 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
|
|
9615 fi
|
|
9616 else
|
|
9617 conftest_rc="$?"
|
|
9618 echo "configure: failed program was:" >&5
|
|
9619 cat conftest.$ac_ext >&5
|
|
9620 rm -fr conftest*
|
|
9621 with_png=no
|
|
9622 fi
|
|
9623 rm -fr conftest*
|
|
9624 xe_check_libs=
|
|
9625 echo "$ac_t""$with_png" 1>&6
|
|
9626 fi
|
251
|
9627 if test "$with_png" = "yes"; then
|
|
9628 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9629 Defining HAVE_PNG
|
|
9630 EOF
|
|
9631 cat >> confdefs.h <<\EOF
|
|
9632 #define HAVE_PNG 1
|
|
9633 EOF
|
|
9634 }
|
|
9635
|
272
|
9636 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
|
251
|
9637 fi
|
|
9638
|
272
|
9639 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
|
|
9640 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
|
1161
|
9641 echo "configure:9642: checking for tiffio.h" >&5
|
|
9642
|
|
9643 cat > conftest.$ac_ext <<EOF
|
|
9644 #line 9645 "configure"
|
272
|
9645 #include "confdefs.h"
|
|
9646 #include <tiffio.h>
|
|
9647 EOF
|
|
9648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
9649 { (eval echo configure:9650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
272
|
9651 if test -z "$ac_err"; then
|
|
9652 rm -rf conftest*
|
|
9653 eval "ac_cv_header_$ac_safe=yes"
|
|
9654 else
|
|
9655 echo "$ac_err" >&5
|
|
9656 echo "configure: failed program was:" >&5
|
|
9657 cat conftest.$ac_ext >&5
|
|
9658 rm -rf conftest*
|
|
9659 eval "ac_cv_header_$ac_safe=no"
|
|
9660 fi
|
|
9661 rm -f conftest*
|
|
9662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9663 echo "$ac_t""yes" 1>&6
|
|
9664 :
|
|
9665 else
|
|
9666 echo "$ac_t""no" 1>&6
|
|
9667 with_tiff=no
|
|
9668 fi
|
|
9669 }
|
|
9670 test -z "$with_tiff" && {
|
286
|
9671 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
|
1161
|
9672 echo "configure:9673: checking for TIFFClientOpen in -ltiff" >&5
|
286
|
9673 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
|
251
|
9674
|
272
|
9675 xe_check_libs=" -ltiff "
|
|
9676 cat > conftest.$ac_ext <<EOF
|
1161
|
9677 #line 9678 "configure"
|
217
|
9678 #include "confdefs.h"
|
|
9679 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9680 /* We use char because int might match the return type of a gcc2
|
|
9681 builtin and then its argument prototype would still apply. */
|
286
|
9682 char TIFFClientOpen();
|
|
9683
|
|
9684 int main() {
|
|
9685 TIFFClientOpen()
|
|
9686 ; return 0; }
|
|
9687 EOF
|
1161
|
9688 if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
217
|
9689 rm -rf conftest*
|
|
9690 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9691 else
|
|
9692 echo "configure: failed program was:" >&5
|
|
9693 cat conftest.$ac_ext >&5
|
|
9694 rm -rf conftest*
|
|
9695 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9696 fi
|
|
9697 rm -f conftest*
|
|
9698 xe_check_libs=""
|
|
9699
|
|
9700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9701 echo "$ac_t""yes" 1>&6
|
272
|
9702 :
|
|
9703 else
|
|
9704 echo "$ac_t""no" 1>&6
|
|
9705 with_tiff=no
|
|
9706 fi
|
|
9707
|
|
9708 }
|
|
9709 test -z "$with_tiff" && with_tiff=yes
|
251
|
9710 if test "$with_tiff" = "yes"; then
|
|
9711 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9712 Defining HAVE_TIFF
|
|
9713 EOF
|
|
9714 cat >> confdefs.h <<\EOF
|
|
9715 #define HAVE_TIFF 1
|
|
9716 EOF
|
|
9717 }
|
|
9718
|
272
|
9719 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
|
251
|
9720 fi
|
278
|
9721 fi
|
|
9722
|
|
9723
|
462
|
9724 if test "$with_gtk" = "yes"; then
|
|
9725 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
9726 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
1161
|
9727 echo "configure:9728: checking for compface.h" >&5
|
|
9728
|
|
9729 cat > conftest.$ac_ext <<EOF
|
|
9730 #line 9731 "configure"
|
462
|
9731 #include "confdefs.h"
|
|
9732 #include <compface.h>
|
|
9733 EOF
|
|
9734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
9735 { (eval echo configure:9736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
462
|
9736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9737 if test -z "$ac_err"; then
|
|
9738 rm -rf conftest*
|
|
9739 eval "ac_cv_header_$ac_safe=yes"
|
|
9740 else
|
|
9741 echo "$ac_err" >&5
|
|
9742 echo "configure: failed program was:" >&5
|
|
9743 cat conftest.$ac_ext >&5
|
|
9744 rm -rf conftest*
|
|
9745 eval "ac_cv_header_$ac_safe=no"
|
|
9746 fi
|
|
9747 rm -f conftest*
|
|
9748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9749 echo "$ac_t""yes" 1>&6
|
|
9750 :
|
|
9751 else
|
|
9752 echo "$ac_t""no" 1>&6
|
|
9753 with_xface=no
|
|
9754 fi
|
|
9755 }
|
|
9756 test -z "$with_xface" && {
|
|
9757 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
1161
|
9758 echo "configure:9759: checking for UnGenFace in -lcompface" >&5
|
462
|
9759 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
9760
|
|
9761 xe_check_libs=" -lcompface "
|
|
9762 cat > conftest.$ac_ext <<EOF
|
1161
|
9763 #line 9764 "configure"
|
462
|
9764 #include "confdefs.h"
|
|
9765 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9766 /* We use char because int might match the return type of a gcc2
|
|
9767 builtin and then its argument prototype would still apply. */
|
|
9768 char UnGenFace();
|
|
9769
|
|
9770 int main() {
|
|
9771 UnGenFace()
|
|
9772 ; return 0; }
|
|
9773 EOF
|
1161
|
9774 if { (eval echo configure:9775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
9775 rm -rf conftest*
|
|
9776 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9777 else
|
|
9778 echo "configure: failed program was:" >&5
|
|
9779 cat conftest.$ac_ext >&5
|
|
9780 rm -rf conftest*
|
|
9781 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9782 fi
|
|
9783 rm -f conftest*
|
|
9784 xe_check_libs=""
|
|
9785
|
|
9786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9787 echo "$ac_t""yes" 1>&6
|
|
9788 :
|
|
9789 else
|
|
9790 echo "$ac_t""no" 1>&6
|
|
9791 with_xface=no
|
|
9792 fi
|
|
9793
|
|
9794 }
|
|
9795 test -z "$with_xface" && with_xface=yes
|
|
9796 if test "$with_xface" = "yes"; then
|
|
9797 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9798 Defining HAVE_XFACE
|
|
9799 EOF
|
|
9800 cat >> confdefs.h <<\EOF
|
|
9801 #define HAVE_XFACE 1
|
|
9802 EOF
|
|
9803 }
|
|
9804
|
|
9805 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
|
|
9806 fi
|
|
9807 fi
|
|
9808
|
|
9809
|
|
9810
|
278
|
9811 if test "$with_x11" = "yes"; then
|
|
9812 echo "checking for X11 graphics libraries" 1>&6
|
1161
|
9813 echo "configure:9814: checking for X11 graphics libraries" >&5
|
726
|
9814 fi
|
|
9815
|
|
9816 case "$with_widgets" in
|
|
9817 "yes" | "athena") detect_athena=yes ;;
|
|
9818 *) detect_athena=no ;;
|
|
9819 esac
|
|
9820
|
|
9821 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
|
434
|
9822 echo "checking for the Athena widgets" 1>&6
|
1161
|
9823 echo "configure:9824: checking for the Athena widgets" >&5
|
434
|
9824
|
|
9825 case "$with_athena" in
|
|
9826 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
|
|
9827 "3d") athena_variant=Xaw3d athena_3d=yes ;;
|
|
9828 "next") athena_variant=neXtaw athena_3d=yes ;;
|
|
9829 "95") athena_variant=Xaw95 athena_3d=yes ;;
|
|
9830 "xpm") athena_variant=XawXpm athena_3d=yes ;;
|
|
9831 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
|
|
9832 esac
|
|
9833
|
|
9834 if test "$athena_3d" = "no"; then
|
193
|
9835
|
434
|
9836 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
|
1161
|
9837 echo "configure:9838: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
|
434
|
9838 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
|
|
9839
|
|
9840 xe_check_libs=" -l$athena_variant "
|
|
9841 cat > conftest.$ac_ext <<EOF
|
1161
|
9842 #line 9843 "configure"
|
193
|
9843 #include "confdefs.h"
|
|
9844 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9845 /* We use char because int might match the return type of a gcc2
|
|
9846 builtin and then its argument prototype would still apply. */
|
|
9847 char XawScrollbarSetThumb();
|
|
9848
|
|
9849 int main() {
|
|
9850 XawScrollbarSetThumb()
|
|
9851 ; return 0; }
|
|
9852 EOF
|
1161
|
9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
434
|
9854 rm -rf conftest*
|
|
9855 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9856 else
|
|
9857 echo "configure: failed program was:" >&5
|
|
9858 cat conftest.$ac_ext >&5
|
|
9859 rm -rf conftest*
|
|
9860 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9861 fi
|
|
9862 rm -f conftest*
|
|
9863 xe_check_libs=""
|
|
9864
|
|
9865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9866 echo "$ac_t""yes" 1>&6
|
|
9867
|
|
9868 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
|
1161
|
9869 echo "configure:9870: checking for threeDClassRec in -l$athena_variant" >&5
|
434
|
9870 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
9871
|
|
9872 xe_check_libs=" -l$athena_variant "
|
|
9873 cat > conftest.$ac_ext <<EOF
|
1161
|
9874 #line 9875 "configure"
|
434
|
9875 #include "confdefs.h"
|
|
9876 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9877 /* We use char because int might match the return type of a gcc2
|
|
9878 builtin and then its argument prototype would still apply. */
|
|
9879 char threeDClassRec();
|
|
9880
|
|
9881 int main() {
|
|
9882 threeDClassRec()
|
|
9883 ; return 0; }
|
|
9884 EOF
|
1161
|
9885 if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
561
|
9886 rm -rf conftest*
|
|
9887 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9888 else
|
|
9889 echo "configure: failed program was:" >&5
|
|
9890 cat conftest.$ac_ext >&5
|
|
9891 rm -rf conftest*
|
|
9892 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9893 fi
|
|
9894 rm -f conftest*
|
|
9895 xe_check_libs=""
|
|
9896
|
|
9897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9898 echo "$ac_t""yes" 1>&6
|
|
9899 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2
|
434
|
9900 else
|
|
9901 echo "$ac_t""no" 1>&6
|
|
9902 athena_lib=$athena_variant
|
|
9903 fi
|
|
9904
|
|
9905
|
|
9906
|
|
9907 else
|
|
9908 echo "$ac_t""no" 1>&6
|
561
|
9909 echo "configure: warning: Could not find an Athena widget library." 1>&2
|
434
|
9910 fi
|
|
9911
|
|
9912
|
|
9913 else
|
|
9914
|
|
9915 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
|
1161
|
9916 echo "configure:9917: checking for threeDClassRec in -l$athena_variant" >&5
|
434
|
9917 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
9918
|
|
9919 xe_check_libs=" -l$athena_variant "
|
|
9920 cat > conftest.$ac_ext <<EOF
|
1161
|
9921 #line 9922 "configure"
|
434
|
9922 #include "confdefs.h"
|
|
9923 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9924 /* We use char because int might match the return type of a gcc2
|
|
9925 builtin and then its argument prototype would still apply. */
|
|
9926 char threeDClassRec();
|
|
9927
|
|
9928 int main() {
|
|
9929 threeDClassRec()
|
|
9930 ; return 0; }
|
|
9931 EOF
|
1161
|
9932 if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
434
|
9933 rm -rf conftest*
|
|
9934 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9935 else
|
|
9936 echo "configure: failed program was:" >&5
|
|
9937 cat conftest.$ac_ext >&5
|
|
9938 rm -rf conftest*
|
|
9939 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9940 fi
|
|
9941 rm -f conftest*
|
|
9942 xe_check_libs=""
|
|
9943
|
|
9944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9945 echo "$ac_t""yes" 1>&6
|
|
9946 athena_lib=$athena_variant
|
|
9947 else
|
|
9948 echo "$ac_t""no" 1>&6
|
|
9949 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
|
1161
|
9950 echo "configure:9951: checking for threeDClassRec in -lXaw" >&5
|
434
|
9951 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
9952
|
|
9953 xe_check_libs=" -lXaw "
|
|
9954 cat > conftest.$ac_ext <<EOF
|
1161
|
9955 #line 9956 "configure"
|
434
|
9956 #include "confdefs.h"
|
|
9957 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9958 /* We use char because int might match the return type of a gcc2
|
|
9959 builtin and then its argument prototype would still apply. */
|
|
9960 char threeDClassRec();
|
|
9961
|
|
9962 int main() {
|
|
9963 threeDClassRec()
|
|
9964 ; return 0; }
|
|
9965 EOF
|
1161
|
9966 if { (eval echo configure:9967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
193
|
9967 rm -rf conftest*
|
|
9968 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9969 else
|
|
9970 echo "configure: failed program was:" >&5
|
|
9971 cat conftest.$ac_ext >&5
|
|
9972 rm -rf conftest*
|
|
9973 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9974 fi
|
|
9975 rm -f conftest*
|
|
9976 xe_check_libs=""
|
|
9977
|
|
9978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9979 echo "$ac_t""yes" 1>&6
|
438
|
9980 athena_lib=Xaw;
|
561
|
9981 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2;
|
434
|
9982
|
|
9983 else
|
|
9984 echo "$ac_t""no" 1>&6
|
561
|
9985 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2
|
434
|
9986 fi
|
|
9987
|
|
9988
|
|
9989 fi
|
|
9990
|
|
9991
|
|
9992 fi
|
|
9993
|
|
9994 if test "$athena_3d" = "no"; then
|
|
9995 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
9996 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
|
1161
|
9997 echo "configure:9998: checking for X11/Xaw/ThreeD.h" >&5
|
|
9998
|
|
9999 cat > conftest.$ac_ext <<EOF
|
|
10000 #line 10001 "configure"
|
434
|
10001 #include "confdefs.h"
|
|
10002 #include <X11/Xaw/ThreeD.h>
|
|
10003 EOF
|
|
10004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10005 { (eval echo configure:10006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
561
|
10006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10007 if test -z "$ac_err"; then
|
|
10008 rm -rf conftest*
|
|
10009 eval "ac_cv_header_$ac_safe=yes"
|
|
10010 else
|
|
10011 echo "$ac_err" >&5
|
|
10012 echo "configure: failed program was:" >&5
|
|
10013 cat conftest.$ac_ext >&5
|
|
10014 rm -rf conftest*
|
|
10015 eval "ac_cv_header_$ac_safe=no"
|
|
10016 fi
|
|
10017 rm -f conftest*
|
|
10018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10019 echo "$ac_t""yes" 1>&6
|
|
10020 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
|
434
|
10021 else
|
|
10022 echo "$ac_t""no" 1>&6
|
|
10023 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10024 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
|
1161
|
10025 echo "configure:10026: checking for X11/Xaw/XawInit.h" >&5
|
|
10026
|
|
10027 cat > conftest.$ac_ext <<EOF
|
|
10028 #line 10029 "configure"
|
434
|
10029 #include "confdefs.h"
|
|
10030 #include <X11/Xaw/XawInit.h>
|
|
10031 EOF
|
|
10032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10033 { (eval echo configure:10034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10035 if test -z "$ac_err"; then
|
|
10036 rm -rf conftest*
|
|
10037 eval "ac_cv_header_$ac_safe=yes"
|
|
10038 else
|
|
10039 echo "$ac_err" >&5
|
|
10040 echo "configure: failed program was:" >&5
|
|
10041 cat conftest.$ac_ext >&5
|
|
10042 rm -rf conftest*
|
|
10043 eval "ac_cv_header_$ac_safe=no"
|
|
10044 fi
|
|
10045 rm -f conftest*
|
|
10046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10047 echo "$ac_t""yes" 1>&6
|
|
10048 athena_h_path=X11/Xaw
|
|
10049 else
|
|
10050 echo "$ac_t""no" 1>&6
|
561
|
10051 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
|
434
|
10052 fi
|
|
10053
|
|
10054 fi
|
|
10055
|
|
10056 else
|
|
10057 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10058 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
|
1161
|
10059 echo "configure:10060: checking for X11/$athena_variant/XawInit.h" >&5
|
|
10060
|
|
10061 cat > conftest.$ac_ext <<EOF
|
|
10062 #line 10063 "configure"
|
434
|
10063 #include "confdefs.h"
|
|
10064 #include <X11/$athena_variant/XawInit.h>
|
|
10065 EOF
|
|
10066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10067 { (eval echo configure:10068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10069 if test -z "$ac_err"; then
|
|
10070 rm -rf conftest*
|
|
10071 eval "ac_cv_header_$ac_safe=yes"
|
|
10072 else
|
|
10073 echo "$ac_err" >&5
|
|
10074 echo "configure: failed program was:" >&5
|
|
10075 cat conftest.$ac_ext >&5
|
|
10076 rm -rf conftest*
|
|
10077 eval "ac_cv_header_$ac_safe=no"
|
|
10078 fi
|
|
10079 rm -f conftest*
|
|
10080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10081 echo "$ac_t""yes" 1>&6
|
|
10082 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10083 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
|
1161
|
10084 echo "configure:10085: checking for X11/$athena_variant/ThreeD.h" >&5
|
|
10085
|
|
10086 cat > conftest.$ac_ext <<EOF
|
|
10087 #line 10088 "configure"
|
434
|
10088 #include "confdefs.h"
|
|
10089 #include <X11/$athena_variant/ThreeD.h>
|
|
10090 EOF
|
|
10091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10092 { (eval echo configure:10093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10094 if test -z "$ac_err"; then
|
|
10095 rm -rf conftest*
|
|
10096 eval "ac_cv_header_$ac_safe=yes"
|
|
10097 else
|
|
10098 echo "$ac_err" >&5
|
|
10099 echo "configure: failed program was:" >&5
|
|
10100 cat conftest.$ac_ext >&5
|
|
10101 rm -rf conftest*
|
|
10102 eval "ac_cv_header_$ac_safe=no"
|
|
10103 fi
|
|
10104 rm -f conftest*
|
|
10105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10106 echo "$ac_t""yes" 1>&6
|
|
10107 athena_h_path=X11/$athena_variant
|
|
10108 else
|
|
10109 echo "$ac_t""no" 1>&6
|
|
10110 fi
|
|
10111
|
|
10112 else
|
|
10113 echo "$ac_t""no" 1>&6
|
|
10114 fi
|
|
10115
|
|
10116
|
440
|
10117 if test -z "$athena_h_path"; then
|
|
10118 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10119 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
|
1161
|
10120 echo "configure:10121: checking for $athena_variant/XawInit.h" >&5
|
|
10121
|
|
10122 cat > conftest.$ac_ext <<EOF
|
|
10123 #line 10124 "configure"
|
440
|
10124 #include "confdefs.h"
|
|
10125 #include <$athena_variant/XawInit.h>
|
|
10126 EOF
|
|
10127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10128 { (eval echo configure:10129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10130 if test -z "$ac_err"; then
|
|
10131 rm -rf conftest*
|
|
10132 eval "ac_cv_header_$ac_safe=yes"
|
|
10133 else
|
|
10134 echo "$ac_err" >&5
|
|
10135 echo "configure: failed program was:" >&5
|
|
10136 cat conftest.$ac_ext >&5
|
|
10137 rm -rf conftest*
|
|
10138 eval "ac_cv_header_$ac_safe=no"
|
|
10139 fi
|
|
10140 rm -f conftest*
|
|
10141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10142 echo "$ac_t""yes" 1>&6
|
|
10143 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10144 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
|
1161
|
10145 echo "configure:10146: checking for $athena_variant/ThreeD.h" >&5
|
|
10146
|
|
10147 cat > conftest.$ac_ext <<EOF
|
|
10148 #line 10149 "configure"
|
440
|
10149 #include "confdefs.h"
|
|
10150 #include <$athena_variant/ThreeD.h>
|
|
10151 EOF
|
|
10152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10153 { (eval echo configure:10154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10155 if test -z "$ac_err"; then
|
|
10156 rm -rf conftest*
|
|
10157 eval "ac_cv_header_$ac_safe=yes"
|
|
10158 else
|
|
10159 echo "$ac_err" >&5
|
|
10160 echo "configure: failed program was:" >&5
|
|
10161 cat conftest.$ac_ext >&5
|
|
10162 rm -rf conftest*
|
|
10163 eval "ac_cv_header_$ac_safe=no"
|
|
10164 fi
|
|
10165 rm -f conftest*
|
|
10166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10167 echo "$ac_t""yes" 1>&6
|
|
10168 athena_h_path=$athena_variant
|
|
10169 else
|
|
10170 echo "$ac_t""no" 1>&6
|
|
10171 fi
|
|
10172
|
|
10173 else
|
|
10174 echo "$ac_t""no" 1>&6
|
|
10175 fi
|
|
10176
|
|
10177 fi
|
|
10178
|
434
|
10179 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
|
|
10180 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10181 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
|
1161
|
10182 echo "configure:10183: checking for X11/Xaw3d/XawInit.h" >&5
|
|
10183
|
|
10184 cat > conftest.$ac_ext <<EOF
|
|
10185 #line 10186 "configure"
|
434
|
10186 #include "confdefs.h"
|
|
10187 #include <X11/Xaw3d/XawInit.h>
|
|
10188 EOF
|
|
10189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10190 { (eval echo configure:10191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10192 if test -z "$ac_err"; then
|
|
10193 rm -rf conftest*
|
|
10194 eval "ac_cv_header_$ac_safe=yes"
|
|
10195 else
|
|
10196 echo "$ac_err" >&5
|
|
10197 echo "configure: failed program was:" >&5
|
|
10198 cat conftest.$ac_ext >&5
|
|
10199 rm -rf conftest*
|
|
10200 eval "ac_cv_header_$ac_safe=no"
|
|
10201 fi
|
|
10202 rm -f conftest*
|
|
10203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10204 echo "$ac_t""yes" 1>&6
|
|
10205 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10206 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
|
1161
|
10207 echo "configure:10208: checking for X11/Xaw3d/ThreeD.h" >&5
|
|
10208
|
|
10209 cat > conftest.$ac_ext <<EOF
|
|
10210 #line 10211 "configure"
|
434
|
10211 #include "confdefs.h"
|
|
10212 #include <X11/Xaw3d/ThreeD.h>
|
|
10213 EOF
|
|
10214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10215 { (eval echo configure:10216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10217 if test -z "$ac_err"; then
|
|
10218 rm -rf conftest*
|
|
10219 eval "ac_cv_header_$ac_safe=yes"
|
|
10220 else
|
|
10221 echo "$ac_err" >&5
|
|
10222 echo "configure: failed program was:" >&5
|
|
10223 cat conftest.$ac_ext >&5
|
|
10224 rm -rf conftest*
|
|
10225 eval "ac_cv_header_$ac_safe=no"
|
|
10226 fi
|
|
10227 rm -f conftest*
|
|
10228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10229 echo "$ac_t""yes" 1>&6
|
|
10230
|
561
|
10231 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2
|
434
|
10232 athena_h_path=X11/Xaw3d
|
|
10233
|
|
10234 else
|
|
10235 echo "$ac_t""no" 1>&6
|
|
10236 fi
|
|
10237
|
|
10238 else
|
|
10239 echo "$ac_t""no" 1>&6
|
|
10240 fi
|
|
10241
|
|
10242 fi
|
|
10243
|
440
|
10244 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
|
|
10245 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
10246 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
|
1161
|
10247 echo "configure:10248: checking for Xaw3d/XawInit.h" >&5
|
|
10248
|
|
10249 cat > conftest.$ac_ext <<EOF
|
|
10250 #line 10251 "configure"
|
440
|
10251 #include "confdefs.h"
|
|
10252 #include <Xaw3d/XawInit.h>
|
|
10253 EOF
|
|
10254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10255 { (eval echo configure:10256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
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 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10271 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
|
1161
|
10272 echo "configure:10273: checking for Xaw3d/ThreeD.h" >&5
|
|
10273
|
|
10274 cat > conftest.$ac_ext <<EOF
|
|
10275 #line 10276 "configure"
|
440
|
10276 #include "confdefs.h"
|
|
10277 #include <Xaw3d/ThreeD.h>
|
|
10278 EOF
|
|
10279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10280 { (eval echo configure:10281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
10281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10282 if test -z "$ac_err"; then
|
|
10283 rm -rf conftest*
|
|
10284 eval "ac_cv_header_$ac_safe=yes"
|
|
10285 else
|
|
10286 echo "$ac_err" >&5
|
|
10287 echo "configure: failed program was:" >&5
|
|
10288 cat conftest.$ac_ext >&5
|
|
10289 rm -rf conftest*
|
|
10290 eval "ac_cv_header_$ac_safe=no"
|
|
10291 fi
|
|
10292 rm -f conftest*
|
|
10293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10294 echo "$ac_t""yes" 1>&6
|
|
10295
|
561
|
10296 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2
|
440
|
10297 athena_h_path=Xaw3d
|
|
10298
|
|
10299 else
|
|
10300 echo "$ac_t""no" 1>&6
|
|
10301 fi
|
|
10302
|
|
10303 else
|
|
10304 echo "$ac_t""no" 1>&6
|
|
10305 fi
|
|
10306
|
|
10307 fi
|
|
10308
|
434
|
10309 if test -z "$athena_h_path"; then
|
|
10310 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
10311 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
|
1161
|
10312 echo "configure:10313: checking for X11/Xaw/ThreeD.h" >&5
|
|
10313
|
|
10314 cat > conftest.$ac_ext <<EOF
|
|
10315 #line 10316 "configure"
|
434
|
10316 #include "confdefs.h"
|
|
10317 #include <X11/Xaw/ThreeD.h>
|
|
10318 EOF
|
|
10319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10320 { (eval echo configure:10321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
10321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10322 if test -z "$ac_err"; then
|
|
10323 rm -rf conftest*
|
|
10324 eval "ac_cv_header_$ac_safe=yes"
|
|
10325 else
|
|
10326 echo "$ac_err" >&5
|
|
10327 echo "configure: failed program was:" >&5
|
|
10328 cat conftest.$ac_ext >&5
|
|
10329 rm -rf conftest*
|
|
10330 eval "ac_cv_header_$ac_safe=no"
|
|
10331 fi
|
|
10332 rm -f conftest*
|
|
10333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10334 echo "$ac_t""yes" 1>&6
|
|
10335
|
561
|
10336 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2
|
434
|
10337 athena_h_path=X11/Xaw
|
|
10338
|
|
10339 else
|
|
10340 echo "$ac_t""no" 1>&6
|
561
|
10341 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2
|
434
|
10342 fi
|
|
10343
|
|
10344 fi
|
|
10345 fi
|
|
10346
|
|
10347 if test -n "$athena_lib" -a -n "$athena_h_path"; then
|
|
10348 have_xaw=yes
|
|
10349 else
|
|
10350 have_xaw=no
|
|
10351 fi
|
424
|
10352
|
724
|
10353 else
|
|
10354 have_xaw=no
|
|
10355 fi
|
|
10356 if test "$with_x11" = "yes"; then
|
193
|
10357 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
151
|
10358 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
1161
|
10359 echo "configure:10360: checking for Xm/Xm.h" >&5
|
|
10360
|
|
10361 cat > conftest.$ac_ext <<EOF
|
|
10362 #line 10363 "configure"
|
151
|
10363 #include "confdefs.h"
|
|
10364 #include <Xm/Xm.h>
|
|
10365 EOF
|
|
10366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10367 { (eval echo configure:10368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
151
|
10369 if test -z "$ac_err"; then
|
|
10370 rm -rf conftest*
|
|
10371 eval "ac_cv_header_$ac_safe=yes"
|
|
10372 else
|
|
10373 echo "$ac_err" >&5
|
|
10374 echo "configure: failed program was:" >&5
|
|
10375 cat conftest.$ac_ext >&5
|
|
10376 rm -rf conftest*
|
|
10377 eval "ac_cv_header_$ac_safe=no"
|
|
10378 fi
|
|
10379 rm -f conftest*
|
|
10380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10381 echo "$ac_t""yes" 1>&6
|
|
10382
|
|
10383 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
1161
|
10384 echo "configure:10385: checking for XmStringFree in -lXm" >&5
|
151
|
10385 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
10386
|
|
10387 xe_check_libs=" -lXm "
|
|
10388 cat > conftest.$ac_ext <<EOF
|
1161
|
10389 #line 10390 "configure"
|
151
|
10390 #include "confdefs.h"
|
|
10391 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10392 /* We use char because int might match the return type of a gcc2
|
|
10393 builtin and then its argument prototype would still apply. */
|
|
10394 char XmStringFree();
|
|
10395
|
|
10396 int main() {
|
|
10397 XmStringFree()
|
|
10398 ; return 0; }
|
|
10399 EOF
|
1161
|
10400 if { (eval echo configure:10401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
10401 rm -rf conftest*
|
|
10402 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10403 else
|
|
10404 echo "configure: failed program was:" >&5
|
|
10405 cat conftest.$ac_ext >&5
|
|
10406 rm -rf conftest*
|
|
10407 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10408 fi
|
|
10409 rm -f conftest*
|
|
10410 xe_check_libs=""
|
|
10411
|
|
10412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10413 echo "$ac_t""yes" 1>&6
|
|
10414 have_motif=yes
|
|
10415 else
|
|
10416 echo "$ac_t""no" 1>&6
|
|
10417 have_motif=no
|
|
10418 fi
|
|
10419
|
|
10420
|
|
10421 else
|
|
10422 echo "$ac_t""no" 1>&6
|
|
10423 have_motif=no
|
|
10424 fi
|
|
10425
|
149
|
10426
|
272
|
10427 if test "$have_motif" = "yes"; then
|
|
10428 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
|
1161
|
10429 echo "configure:10430: checking for Lesstif" >&5
|
272
|
10430 cat > conftest.$ac_ext <<EOF
|
1161
|
10431 #line 10432 "configure"
|
272
|
10432 #include "confdefs.h"
|
|
10433 #include <Xm/Xm.h>
|
|
10434 #ifdef LESSTIF_VERSION
|
|
10435 yes
|
|
10436 #endif
|
|
10437
|
|
10438 EOF
|
|
10439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
10440 egrep "yes" >/dev/null 2>&1; then
|
|
10441 rm -rf conftest*
|
|
10442 have_lesstif=yes
|
|
10443 else
|
|
10444 rm -rf conftest*
|
|
10445 have_lesstif=no
|
|
10446 fi
|
|
10447 rm -f conftest*
|
|
10448
|
|
10449 echo "$ac_t""$have_lesstif" 1>&6
|
|
10450 fi
|
|
10451
|
193
|
10452 fi
|
149
|
10453
|
434
|
10454 case "$with_menubars" in "" | "yes" | "athena" )
|
149
|
10455 with_menubars="lucid" ;;
|
|
10456 esac
|
243
|
10457 case "$with_dialogs" in "" | "yes" | "lucid" )
|
434
|
10458 if test "$have_motif" = "yes"; then with_dialogs="motif"
|
|
10459 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
|
771
|
10460 elif test "$with_msw" = "yes"; then with_dialogs="msw"
|
149
|
10461 else with_dialogs=no
|
|
10462 fi ;;
|
|
10463 esac
|
|
10464 case "$with_scrollbars" in "" | "yes" )
|
|
10465 with_scrollbars="lucid" ;;
|
|
10466 esac
|
424
|
10467 case "$with_widgets" in "" | "yes" | "lucid")
|
420
|
10468 if test "$have_motif" = "yes"; then with_widgets="motif"
|
424
|
10469 elif test "$have_xaw" = "yes"; then with_widgets="athena"
|
771
|
10470 elif test "$with_msw" = "yes"; then with_widgets="msw"
|
420
|
10471 else with_widgets=no
|
|
10472 fi ;;
|
|
10473 esac
|
|
10474
|
|
10475 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
|
412
|
10476
|
424
|
10477 case "$all_widgets" in
|
434
|
10478 *athena* )
|
|
10479 if test "$have_xaw" != "yes"; then
|
|
10480 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
|
|
10481 fi
|
|
10482
|
|
10483 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
|
|
10484
|
|
10485 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
|
|
10486
|
442
|
10487 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10488 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
|
|
10489 EOF
|
|
10490 cat >> confdefs.h <<EOF
|
|
10491 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
|
|
10492 EOF
|
|
10493 }
|
|
10494
|
|
10495 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10496 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
|
|
10497 EOF
|
|
10498 cat >> confdefs.h <<EOF
|
|
10499 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
|
|
10500 EOF
|
|
10501 }
|
|
10502
|
|
10503 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10504 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
|
|
10505 EOF
|
|
10506 cat >> confdefs.h <<EOF
|
|
10507 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
|
|
10508 EOF
|
|
10509 }
|
|
10510
|
|
10511 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10512 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
|
|
10513 EOF
|
|
10514 cat >> confdefs.h <<EOF
|
|
10515 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
|
|
10516 EOF
|
|
10517 }
|
|
10518
|
|
10519 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10520 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
|
|
10521 EOF
|
|
10522 cat >> confdefs.h <<EOF
|
|
10523 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
|
|
10524 EOF
|
|
10525 }
|
|
10526
|
|
10527 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10528 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
|
|
10529 EOF
|
|
10530 cat >> confdefs.h <<EOF
|
|
10531 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
|
|
10532 EOF
|
|
10533 }
|
|
10534
|
|
10535 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10536 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
|
|
10537 EOF
|
|
10538 cat >> confdefs.h <<EOF
|
|
10539 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
|
|
10540 EOF
|
|
10541 }
|
|
10542
|
|
10543 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10544 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
|
|
10545 EOF
|
|
10546 cat >> confdefs.h <<EOF
|
|
10547 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
|
|
10548 EOF
|
|
10549 }
|
|
10550
|
|
10551 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10552 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
|
|
10553 EOF
|
|
10554 cat >> confdefs.h <<EOF
|
|
10555 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
|
|
10556 EOF
|
|
10557 }
|
|
10558
|
|
10559 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10560 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
|
|
10561 EOF
|
|
10562 cat >> confdefs.h <<EOF
|
|
10563 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
|
434
|
10564 EOF
|
|
10565 }
|
|
10566
|
|
10567
|
|
10568 { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
10569 Defining LWLIB_USES_ATHENA
|
|
10570 EOF
|
|
10571 cat >> confdefs.h <<\EOF
|
|
10572 #define LWLIB_USES_ATHENA 1
|
|
10573 EOF
|
|
10574 }
|
|
10575
|
434
|
10576 { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
10577 Defining NEED_ATHENA
|
|
10578 EOF
|
|
10579 cat >> confdefs.h <<\EOF
|
|
10580 #define NEED_ATHENA 1
|
|
10581 EOF
|
|
10582 }
|
|
10583
|
442
|
10584 need_athena="yes"
|
434
|
10585
|
|
10586 if test "$athena_3d" = "yes"; then
|
|
10587 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10588 Defining HAVE_ATHENA_3D
|
|
10589 EOF
|
|
10590 cat >> confdefs.h <<\EOF
|
|
10591 #define HAVE_ATHENA_3D 1
|
|
10592 EOF
|
|
10593 }
|
|
10594
|
|
10595 fi
|
|
10596 ;;
|
149
|
10597 esac
|
|
10598
|
|
10599 case "$all_widgets" in *motif* )
|
|
10600 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10601 Defining LWLIB_USES_MOTIF
|
|
10602 EOF
|
|
10603 cat >> confdefs.h <<\EOF
|
|
10604 #define LWLIB_USES_MOTIF 1
|
|
10605 EOF
|
|
10606 }
|
|
10607
|
157
|
10608 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10609 Defining NEED_MOTIF
|
|
10610 EOF
|
|
10611 cat >> confdefs.h <<\EOF
|
|
10612 #define NEED_MOTIF 1
|
|
10613 EOF
|
|
10614 }
|
|
10615
|
|
10616 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
|
149
|
10617 need_motif=yes ;;
|
70
|
10618 esac
|
|
10619
|
157
|
10620 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
|
10621 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
|
10622 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
|
10623 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
|
|
10624 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
|
|
10625 case "$with_widgets" in athena* )
|
|
10626 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;;
|
|
10627 esac
|
157
|
10628 case "$all_widgets" in *lucid* )
|
|
10629 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10630 Defining NEED_LUCID
|
|
10631 EOF
|
|
10632 cat >> confdefs.h <<\EOF
|
|
10633 #define NEED_LUCID 1
|
|
10634 EOF
|
|
10635 }
|
|
10636
|
|
10637 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
|
|
10638 esac
|
|
10639
|
|
10640
|
|
10641
|
434
|
10642 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
10643 Defining LWLIB_SCROLLBARS_ATHENA
|
|
10644 EOF
|
|
10645 cat >> confdefs.h <<\EOF
|
|
10646 #define LWLIB_SCROLLBARS_ATHENA 1
|
|
10647 EOF
|
|
10648 }
|
434
|
10649
|
|
10650 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
10651 Defining LWLIB_DIALOGS_ATHENA
|
|
10652 EOF
|
|
10653 cat >> confdefs.h <<\EOF
|
|
10654 #define LWLIB_DIALOGS_ATHENA 1
|
|
10655 EOF
|
|
10656 }
|
434
|
10657
|
|
10658
|
|
10659 if test "$athena_3d" = "yes"; then
|
|
10660 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
10661 Defining LWLIB_SCROLLBARS_ATHENA3D
|
|
10662 EOF
|
|
10663 cat >> confdefs.h <<\EOF
|
|
10664 #define LWLIB_SCROLLBARS_ATHENA3D 1
|
|
10665 EOF
|
|
10666 }
|
|
10667
|
434
|
10668 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
10669 Defining LWLIB_DIALOGS_ATHENA3D
|
|
10670 EOF
|
|
10671 cat >> confdefs.h <<\EOF
|
|
10672 #define LWLIB_DIALOGS_ATHENA3D 1
|
|
10673 EOF
|
|
10674 }
|
|
10675
|
434
|
10676 fi
|
|
10677
|
424
|
10678 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10679 Defining LWLIB_WIDGETS_ATHENA
|
|
10680 EOF
|
|
10681 cat >> confdefs.h <<\EOF
|
|
10682 #define LWLIB_WIDGETS_ATHENA 1
|
|
10683 EOF
|
|
10684 }
|
|
10685 ;; esac
|
|
10686 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
|
|
10687 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10688 Defining LWLIB_TABS_LUCID
|
|
10689 EOF
|
|
10690 cat >> confdefs.h <<\EOF
|
|
10691 #define LWLIB_TABS_LUCID 1
|
|
10692 EOF
|
|
10693 }
|
|
10694
|
149
|
10695
|
|
10696 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10697 Defining HAVE_MENUBARS
|
|
10698 EOF
|
|
10699 cat >> confdefs.h <<\EOF
|
|
10700 #define HAVE_MENUBARS 1
|
|
10701 EOF
|
|
10702 }
|
|
10703
|
|
10704 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10705 Defining HAVE_SCROLLBARS
|
|
10706 EOF
|
|
10707 cat >> confdefs.h <<\EOF
|
|
10708 #define HAVE_SCROLLBARS 1
|
|
10709 EOF
|
|
10710 }
|
|
10711
|
|
10712 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10713 Defining HAVE_DIALOGS
|
|
10714 EOF
|
|
10715 cat >> confdefs.h <<\EOF
|
|
10716 #define HAVE_DIALOGS 1
|
|
10717 EOF
|
|
10718 }
|
|
10719
|
|
10720 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10721 Defining HAVE_TOOLBARS
|
|
10722 EOF
|
|
10723 cat >> confdefs.h <<\EOF
|
|
10724 #define HAVE_TOOLBARS 1
|
|
10725 EOF
|
|
10726 }
|
|
10727
|
440
|
10728 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
10729 Defining HAVE_WIDGETS
|
|
10730 EOF
|
|
10731 cat >> confdefs.h <<\EOF
|
|
10732 #define HAVE_WIDGETS 1
|
|
10733 EOF
|
|
10734 }
|
|
10735
|
149
|
10736
|
|
10737 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10738 Defining LWLIB_MENUBARS_LUCID
|
|
10739 EOF
|
|
10740 cat >> confdefs.h <<\EOF
|
|
10741 #define LWLIB_MENUBARS_LUCID 1
|
|
10742 EOF
|
|
10743 }
|
|
10744
|
|
10745 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10746 Defining LWLIB_SCROLLBARS_LUCID
|
|
10747 EOF
|
|
10748 cat >> confdefs.h <<\EOF
|
|
10749 #define LWLIB_SCROLLBARS_LUCID 1
|
|
10750 EOF
|
|
10751 }
|
|
10752
|
|
10753
|
|
10754 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10755 Defining LWLIB_MENUBARS_MOTIF
|
|
10756 EOF
|
|
10757 cat >> confdefs.h <<\EOF
|
|
10758 #define LWLIB_MENUBARS_MOTIF 1
|
|
10759 EOF
|
|
10760 }
|
|
10761
|
|
10762 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10763 Defining LWLIB_SCROLLBARS_MOTIF
|
|
10764 EOF
|
|
10765 cat >> confdefs.h <<\EOF
|
|
10766 #define LWLIB_SCROLLBARS_MOTIF 1
|
|
10767 EOF
|
|
10768 }
|
|
10769
|
|
10770 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10771 Defining LWLIB_DIALOGS_MOTIF
|
|
10772 EOF
|
|
10773 cat >> confdefs.h <<\EOF
|
|
10774 #define LWLIB_DIALOGS_MOTIF 1
|
|
10775 EOF
|
|
10776 }
|
|
10777
|
424
|
10778 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10779 Defining LWLIB_WIDGETS_MOTIF
|
|
10780 EOF
|
|
10781 cat >> confdefs.h <<\EOF
|
|
10782 #define LWLIB_WIDGETS_MOTIF 1
|
|
10783 EOF
|
|
10784 }
|
|
10785
|
412
|
10786
|
272
|
10787
|
|
10788 test -z "$with_mule" && with_mule=no
|
561
|
10789
|
|
10790
|
771
|
10791 if test "$with_default_eol_detection" = "yes"; then
|
251
|
10792 { test "$extra_verbose" = "yes" && cat << \EOF
|
771
|
10793 Defining HAVE_DEFAULT_EOL_DETECTION
|
|
10794 EOF
|
|
10795 cat >> confdefs.h <<\EOF
|
|
10796 #define HAVE_DEFAULT_EOL_DETECTION 1
|
|
10797 EOF
|
|
10798 }
|
|
10799
|
|
10800 fi
|
594
|
10801
|
149
|
10802 if test "$with_mule" = "yes" ; then
|
151
|
10803 echo "checking for Mule-related features" 1>&6
|
1161
|
10804 echo "configure:10805: checking for Mule-related features" >&5
|
149
|
10805 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10806 Defining MULE
|
|
10807 EOF
|
|
10808 cat >> confdefs.h <<\EOF
|
|
10809 #define MULE 1
|
|
10810 EOF
|
|
10811 }
|
|
10812
|
|
10813
|
155
|
10814 for ac_hdr in libintl.h
|
|
10815 do
|
|
10816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
10817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1161
|
10818 echo "configure:10819: checking for $ac_hdr" >&5
|
|
10819
|
|
10820 cat > conftest.$ac_ext <<EOF
|
|
10821 #line 10822 "configure"
|
155
|
10822 #include "confdefs.h"
|
|
10823 #include <$ac_hdr>
|
|
10824 EOF
|
|
10825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
10826 { (eval echo configure:10827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
10828 if test -z "$ac_err"; then
|
|
10829 rm -rf conftest*
|
|
10830 eval "ac_cv_header_$ac_safe=yes"
|
|
10831 else
|
|
10832 echo "$ac_err" >&5
|
|
10833 echo "configure: failed program was:" >&5
|
|
10834 cat conftest.$ac_ext >&5
|
|
10835 rm -rf conftest*
|
|
10836 eval "ac_cv_header_$ac_safe=no"
|
|
10837 fi
|
|
10838 rm -f conftest*
|
|
10839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10840 echo "$ac_t""yes" 1>&6
|
|
10841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
10842 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10843 Defining $ac_tr_hdr
|
|
10844 EOF
|
|
10845 cat >> confdefs.h <<EOF
|
|
10846 #define $ac_tr_hdr 1
|
|
10847 EOF
|
|
10848 }
|
|
10849
|
|
10850 else
|
|
10851 echo "$ac_t""no" 1>&6
|
|
10852 fi
|
|
10853 done
|
|
10854
|
|
10855
|
149
|
10856 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
|
1161
|
10857 echo "configure:10858: checking for strerror in -lintl" >&5
|
149
|
10858 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
|
|
10859
|
|
10860 xe_check_libs=" -lintl "
|
|
10861 cat > conftest.$ac_ext <<EOF
|
1161
|
10862 #line 10863 "configure"
|
149
|
10863 #include "confdefs.h"
|
|
10864 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10865 /* We use char because int might match the return type of a gcc2
|
|
10866 builtin and then its argument prototype would still apply. */
|
|
10867 char strerror();
|
|
10868
|
|
10869 int main() {
|
|
10870 strerror()
|
|
10871 ; return 0; }
|
|
10872 EOF
|
1161
|
10873 if { (eval echo configure:10874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
10874 rm -rf conftest*
|
|
10875 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10876 else
|
|
10877 echo "configure: failed program was:" >&5
|
|
10878 cat conftest.$ac_ext >&5
|
|
10879 rm -rf conftest*
|
|
10880 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10881 fi
|
|
10882 rm -f conftest*
|
|
10883 xe_check_libs=""
|
|
10884
|
151
|
10885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10886 echo "$ac_t""yes" 1>&6
|
|
10887 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
10888 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
10889 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10890 Defining $ac_tr_lib
|
|
10891 EOF
|
|
10892 cat >> confdefs.h <<EOF
|
|
10893 #define $ac_tr_lib 1
|
|
10894 EOF
|
|
10895 }
|
|
10896
|
151
|
10897 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
|
149
|
10898
|
|
10899 else
|
|
10900 echo "$ac_t""no" 1>&6
|
|
10901 fi
|
|
10902
|
|
10903
|
|
10904
|
|
10905 echo "checking for Mule input methods" 1>&6
|
1161
|
10906 echo "configure:10907: checking for Mule input methods" >&5
|
272
|
10907 case "$with_xim" in "" | "yes" )
|
149
|
10908 echo "checking for XIM" 1>&6
|
1161
|
10909 echo "configure:10910: checking for XIM" >&5
|
392
|
10910
|
|
10911 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
|
1161
|
10912 echo "configure:10913: checking for XOpenIM in -lX11" >&5
|
392
|
10913 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
|
|
10914
|
|
10915 xe_check_libs=" -lX11 "
|
|
10916 cat > conftest.$ac_ext <<EOF
|
1161
|
10917 #line 10918 "configure"
|
392
|
10918 #include "confdefs.h"
|
|
10919 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10920 /* We use char because int might match the return type of a gcc2
|
|
10921 builtin and then its argument prototype would still apply. */
|
|
10922 char XOpenIM();
|
|
10923
|
|
10924 int main() {
|
|
10925 XOpenIM()
|
|
10926 ; return 0; }
|
|
10927 EOF
|
1161
|
10928 if { (eval echo configure:10929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
392
|
10929 rm -rf conftest*
|
|
10930 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10931 else
|
|
10932 echo "configure: failed program was:" >&5
|
|
10933 cat conftest.$ac_ext >&5
|
|
10934 rm -rf conftest*
|
|
10935 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10936 fi
|
|
10937 rm -f conftest*
|
|
10938 xe_check_libs=""
|
|
10939
|
|
10940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10941 echo "$ac_t""yes" 1>&6
|
|
10942 with_xim=xlib
|
|
10943 else
|
|
10944 echo "$ac_t""no" 1>&6
|
|
10945 with_xim=no
|
|
10946 fi
|
|
10947
|
|
10948
|
|
10949 if test "$have_motif $have_lesstif" = "yes no"; then
|
|
10950
|
149
|
10951 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
|
1161
|
10952 echo "configure:10953: checking for XmImMbLookupString in -lXm" >&5
|
149
|
10953 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
|
|
10954
|
|
10955 xe_check_libs=" -lXm "
|
|
10956 cat > conftest.$ac_ext <<EOF
|
1161
|
10957 #line 10958 "configure"
|
149
|
10958 #include "confdefs.h"
|
|
10959 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10960 /* We use char because int might match the return type of a gcc2
|
|
10961 builtin and then its argument prototype would still apply. */
|
|
10962 char XmImMbLookupString();
|
|
10963
|
|
10964 int main() {
|
|
10965 XmImMbLookupString()
|
|
10966 ; return 0; }
|
|
10967 EOF
|
1161
|
10968 if { (eval echo configure:10969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
10969 rm -rf conftest*
|
|
10970 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10971 else
|
|
10972 echo "configure: failed program was:" >&5
|
|
10973 cat conftest.$ac_ext >&5
|
|
10974 rm -rf conftest*
|
|
10975 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10976 fi
|
|
10977 rm -f conftest*
|
|
10978 xe_check_libs=""
|
|
10979
|
151
|
10980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10981 echo "$ac_t""yes" 1>&6
|
|
10982 with_xim=motif
|
|
10983 else
|
|
10984 echo "$ac_t""no" 1>&6
|
392
|
10985 fi
|
|
10986
|
|
10987
|
|
10988 fi ;;
|
149
|
10989 esac
|
272
|
10990 if test "$with_xim" != "no"; then
|
149
|
10991 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10992 Defining HAVE_XIM
|
|
10993 EOF
|
|
10994 cat >> confdefs.h <<\EOF
|
|
10995 #define HAVE_XIM 1
|
|
10996 EOF
|
|
10997 }
|
|
10998
|
|
10999 if test "$with_xim" = "xlib"; then
|
|
11000 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11001 Defining XIM_XLIB
|
|
11002 EOF
|
|
11003 cat >> confdefs.h <<\EOF
|
|
11004 #define XIM_XLIB 1
|
|
11005 EOF
|
|
11006 }
|
|
11007
|
151
|
11008 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
11009 echo " xemacs will be linked with \"input-method-xlib.o\""
|
|
11010 fi
|
|
11011 fi
|
149
|
11012 if test "$with_xim" = "motif"; then
|
|
11013 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11014 Defining XIM_MOTIF
|
|
11015 EOF
|
|
11016 cat >> confdefs.h <<\EOF
|
|
11017 #define XIM_MOTIF 1
|
|
11018 EOF
|
|
11019 }
|
|
11020
|
|
11021 need_motif=yes
|
151
|
11022 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
|
|
11023 echo " xemacs will be linked with \"input-method-motif.o\""
|
|
11024 fi
|
149
|
11025 fi
|
215
|
11026 if test "$with_xim" = "motif"; then
|
177
|
11027 with_xfs=no
|
|
11028 fi
|
215
|
11029 fi
|
|
11030
|
|
11031 if test "$with_xfs" = "yes" ; then
|
|
11032 echo "checking for XFontSet" 1>&6
|
1161
|
11033 echo "configure:11034: checking for XFontSet" >&5
|
215
|
11034
|
177
|
11035 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
|
1161
|
11036 echo "configure:11037: checking for XmbDrawString in -lX11" >&5
|
177
|
11037 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
|
|
11038
|
|
11039 xe_check_libs=" -lX11 "
|
|
11040 cat > conftest.$ac_ext <<EOF
|
1161
|
11041 #line 11042 "configure"
|
177
|
11042 #include "confdefs.h"
|
|
11043 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11044 /* We use char because int might match the return type of a gcc2
|
|
11045 builtin and then its argument prototype would still apply. */
|
|
11046 char XmbDrawString();
|
|
11047
|
|
11048 int main() {
|
|
11049 XmbDrawString()
|
|
11050 ; return 0; }
|
|
11051 EOF
|
1161
|
11052 if { (eval echo configure:11053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
177
|
11053 rm -rf conftest*
|
|
11054 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11055 else
|
|
11056 echo "configure: failed program was:" >&5
|
|
11057 cat conftest.$ac_ext >&5
|
|
11058 rm -rf conftest*
|
|
11059 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11060 fi
|
|
11061 rm -f conftest*
|
|
11062 xe_check_libs=""
|
|
11063
|
|
11064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11065 echo "$ac_t""yes" 1>&6
|
|
11066 :
|
|
11067 else
|
|
11068 echo "$ac_t""no" 1>&6
|
|
11069 with_xfs=no
|
|
11070 fi
|
|
11071
|
|
11072
|
|
11073 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
|
|
11074 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11075 Defining USE_XFONTSET
|
|
11076 EOF
|
|
11077 cat >> confdefs.h <<\EOF
|
|
11078 #define USE_XFONTSET 1
|
|
11079 EOF
|
|
11080 }
|
|
11081
|
215
|
11082 if test "$with_xim" = "no" ; then
|
450
|
11083 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
11084 echo " xemacs will be linked with \"input-method-xlib.o\""
|
177
|
11085 fi
|
215
|
11086 fi
|
177
|
11087 fi
|
151
|
11088 fi
|
149
|
11089 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
|
151
|
11090 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
|
|
11091 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
|
1161
|
11092 echo "configure:11093: checking for wnn/jllib.h" >&5
|
|
11093
|
|
11094 cat > conftest.$ac_ext <<EOF
|
|
11095 #line 11096 "configure"
|
151
|
11096 #include "confdefs.h"
|
|
11097 #include <wnn/jllib.h>
|
149
|
11098 EOF
|
|
11099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
11100 { (eval echo configure:11101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
458
|
11101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11102 if test -z "$ac_err"; then
|
|
11103 rm -rf conftest*
|
|
11104 eval "ac_cv_header_$ac_safe=yes"
|
|
11105 else
|
|
11106 echo "$ac_err" >&5
|
|
11107 echo "configure: failed program was:" >&5
|
|
11108 cat conftest.$ac_ext >&5
|
|
11109 rm -rf conftest*
|
|
11110 eval "ac_cv_header_$ac_safe=no"
|
|
11111 fi
|
|
11112 rm -f conftest*
|
|
11113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11114 echo "$ac_t""yes" 1>&6
|
|
11115 :
|
|
11116 else
|
|
11117 echo "$ac_t""no" 1>&6
|
|
11118 with_wnn=no
|
|
11119 fi
|
|
11120 }
|
|
11121 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
|
|
11122 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
|
1161
|
11123 echo "configure:11124: checking for wnn/commonhd.h" >&5
|
|
11124
|
|
11125 cat > conftest.$ac_ext <<EOF
|
|
11126 #line 11127 "configure"
|
458
|
11127 #include "confdefs.h"
|
|
11128 #include <wnn/commonhd.h>
|
|
11129 EOF
|
|
11130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
11131 { (eval echo configure:11132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
11133 if test -z "$ac_err"; then
|
|
11134 rm -rf conftest*
|
|
11135 eval "ac_cv_header_$ac_safe=yes"
|
|
11136 else
|
|
11137 echo "$ac_err" >&5
|
|
11138 echo "configure: failed program was:" >&5
|
|
11139 cat conftest.$ac_ext >&5
|
|
11140 rm -rf conftest*
|
|
11141 eval "ac_cv_header_$ac_safe=no"
|
|
11142 fi
|
|
11143 rm -f conftest*
|
|
11144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11145 echo "$ac_t""yes" 1>&6
|
|
11146 :
|
|
11147 else
|
|
11148 echo "$ac_t""no" 1>&6
|
|
11149 with_wnn=no
|
|
11150 fi
|
|
11151 }
|
167
|
11152 if test "$with_wnn" != "no"; then
|
|
11153 for ac_func in crypt
|
|
11154 do
|
|
11155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
11156 echo "configure:11157: checking for $ac_func" >&5
|
|
11157
|
|
11158 cat > conftest.$ac_ext <<EOF
|
|
11159 #line 11160 "configure"
|
167
|
11160 #include "confdefs.h"
|
|
11161 /* System header to define __stub macros and hopefully few prototypes,
|
|
11162 which can conflict with char $ac_func(); below. */
|
|
11163 #include <assert.h>
|
|
11164 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11165 /* We use char because int might match the return type of a gcc2
|
|
11166 builtin and then its argument prototype would still apply. */
|
|
11167 char $ac_func();
|
|
11168
|
|
11169 int main() {
|
|
11170
|
|
11171 /* The GNU C library defines this for functions which it implements
|
|
11172 to always fail with ENOSYS. Some functions are actually named
|
|
11173 something starting with __ and the normal name is an alias. */
|
|
11174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
11175 choke me
|
|
11176 #else
|
|
11177 $ac_func();
|
|
11178 #endif
|
|
11179
|
|
11180 ; return 0; }
|
|
11181 EOF
|
1161
|
11182 if { (eval echo configure:11183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
167
|
11183 rm -rf conftest*
|
|
11184 eval "ac_cv_func_$ac_func=yes"
|
|
11185 else
|
|
11186 echo "configure: failed program was:" >&5
|
|
11187 cat conftest.$ac_ext >&5
|
|
11188 rm -rf conftest*
|
|
11189 eval "ac_cv_func_$ac_func=no"
|
|
11190 fi
|
|
11191 rm -f conftest*
|
|
11192
|
|
11193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11194 echo "$ac_t""yes" 1>&6
|
|
11195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
11196 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11197 Defining $ac_tr_func
|
|
11198 EOF
|
|
11199 cat >> confdefs.h <<EOF
|
|
11200 #define $ac_tr_func 1
|
|
11201 EOF
|
|
11202 }
|
|
11203
|
|
11204 else
|
|
11205 echo "$ac_t""no" 1>&6
|
|
11206 fi
|
|
11207 done
|
|
11208
|
|
11209 test "$ac_cv_func_crypt" != "yes" && {
|
|
11210 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
1161
|
11211 echo "configure:11212: checking for crypt in -lcrypt" >&5
|
167
|
11212 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
|
11213
|
|
11214 xe_check_libs=" -lcrypt "
|
|
11215 cat > conftest.$ac_ext <<EOF
|
1161
|
11216 #line 11217 "configure"
|
167
|
11217 #include "confdefs.h"
|
|
11218 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11219 /* We use char because int might match the return type of a gcc2
|
|
11220 builtin and then its argument prototype would still apply. */
|
|
11221 char crypt();
|
|
11222
|
|
11223 int main() {
|
|
11224 crypt()
|
|
11225 ; return 0; }
|
|
11226 EOF
|
1161
|
11227 if { (eval echo configure:11228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
167
|
11228 rm -rf conftest*
|
|
11229 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11230 else
|
|
11231 echo "configure: failed program was:" >&5
|
|
11232 cat conftest.$ac_ext >&5
|
|
11233 rm -rf conftest*
|
|
11234 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11235 fi
|
|
11236 rm -f conftest*
|
|
11237 xe_check_libs=""
|
|
11238
|
|
11239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11240 echo "$ac_t""yes" 1>&6
|
|
11241 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
11242 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
11243 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11244 Defining $ac_tr_lib
|
|
11245 EOF
|
|
11246 cat >> confdefs.h <<EOF
|
|
11247 #define $ac_tr_lib 1
|
|
11248 EOF
|
|
11249 }
|
|
11250
|
|
11251 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
|
|
11252
|
|
11253 else
|
|
11254 echo "$ac_t""no" 1>&6
|
|
11255 fi
|
|
11256
|
|
11257 }
|
|
11258 fi
|
377
|
11259 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
|
|
11260
|
159
|
11261 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
|
1161
|
11262 echo "configure:11263: checking for jl_dic_list_e in -lwnn" >&5
|
155
|
11263 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
149
|
11264
|
159
|
11265 xe_check_libs=" -lwnn "
|
|
11266 cat > conftest.$ac_ext <<EOF
|
1161
|
11267 #line 11268 "configure"
|
149
|
11268 #include "confdefs.h"
|
|
11269 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11270 /* We use char because int might match the return type of a gcc2
|
|
11271 builtin and then its argument prototype would still apply. */
|
155
|
11272 char jl_dic_list_e();
|
149
|
11273
|
|
11274 int main() {
|
155
|
11275 jl_dic_list_e()
|
149
|
11276 ; return 0; }
|
|
11277 EOF
|
1161
|
11278 if { (eval echo configure:11279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
11279 rm -rf conftest*
|
|
11280 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11281 else
|
|
11282 echo "configure: failed program was:" >&5
|
|
11283 cat conftest.$ac_ext >&5
|
|
11284 rm -rf conftest*
|
|
11285 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11286 fi
|
|
11287 rm -f conftest*
|
|
11288 xe_check_libs=""
|
|
11289
|
|
11290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11291 echo "$ac_t""yes" 1>&6
|
|
11292 libwnn=wnn
|
|
11293 else
|
|
11294 echo "$ac_t""no" 1>&6
|
|
11295 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
|
1161
|
11296 echo "configure:11297: checking for jl_dic_list_e in -lwnn4" >&5
|
377
|
11297 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
11298
|
|
11299 xe_check_libs=" -lwnn4 "
|
|
11300 cat > conftest.$ac_ext <<EOF
|
1161
|
11301 #line 11302 "configure"
|
377
|
11302 #include "confdefs.h"
|
|
11303 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11304 /* We use char because int might match the return type of a gcc2
|
|
11305 builtin and then its argument prototype would still apply. */
|
|
11306 char jl_dic_list_e();
|
|
11307
|
|
11308 int main() {
|
|
11309 jl_dic_list_e()
|
|
11310 ; return 0; }
|
|
11311 EOF
|
1161
|
11312 if { (eval echo configure:11313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11313 rm -rf conftest*
|
|
11314 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11315 else
|
|
11316 echo "configure: failed program was:" >&5
|
|
11317 cat conftest.$ac_ext >&5
|
|
11318 rm -rf conftest*
|
|
11319 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11320 fi
|
|
11321 rm -f conftest*
|
|
11322 xe_check_libs=""
|
|
11323
|
151
|
11324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11325 echo "$ac_t""yes" 1>&6
|
377
|
11326 libwnn=wnn4
|
|
11327 else
|
|
11328 echo "$ac_t""no" 1>&6
|
|
11329 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
|
1161
|
11330 echo "configure:11331: checking for jl_dic_list_e in -lwnn6" >&5
|
377
|
11331 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
11332
|
|
11333 xe_check_libs=" -lwnn6 "
|
|
11334 cat > conftest.$ac_ext <<EOF
|
1161
|
11335 #line 11336 "configure"
|
377
|
11336 #include "confdefs.h"
|
|
11337 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11338 /* We use char because int might match the return type of a gcc2
|
|
11339 builtin and then its argument prototype would still apply. */
|
|
11340 char jl_dic_list_e();
|
|
11341
|
|
11342 int main() {
|
|
11343 jl_dic_list_e()
|
|
11344 ; return 0; }
|
|
11345 EOF
|
1161
|
11346 if { (eval echo configure:11347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
11347 rm -rf conftest*
|
|
11348 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11349 else
|
|
11350 echo "configure: failed program was:" >&5
|
|
11351 cat conftest.$ac_ext >&5
|
|
11352 rm -rf conftest*
|
|
11353 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11354 fi
|
|
11355 rm -f conftest*
|
|
11356 xe_check_libs=""
|
|
11357
|
|
11358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11359 echo "$ac_t""yes" 1>&6
|
|
11360 libwnn=wnn6
|
|
11361 else
|
|
11362 echo "$ac_t""no" 1>&6
|
|
11363 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
|
1161
|
11364 echo "configure:11365: checking for dic_list_e in -lwnn6_fromsrc" >&5
|
377
|
11365 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
|
|
11366
|
|
11367 xe_check_libs=" -lwnn6_fromsrc "
|
|
11368 cat > conftest.$ac_ext <<EOF
|
1161
|
11369 #line 11370 "configure"
|
377
|
11370 #include "confdefs.h"
|
|
11371 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11372 /* We use char because int might match the return type of a gcc2
|
|
11373 builtin and then its argument prototype would still apply. */
|
|
11374 char dic_list_e();
|
|
11375
|
|
11376 int main() {
|
|
11377 dic_list_e()
|
|
11378 ; return 0; }
|
|
11379 EOF
|
1161
|
11380 if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
11381 rm -rf conftest*
|
|
11382 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11383 else
|
|
11384 echo "configure: failed program was:" >&5
|
|
11385 cat conftest.$ac_ext >&5
|
|
11386 rm -rf conftest*
|
|
11387 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11388 fi
|
|
11389 rm -f conftest*
|
|
11390 xe_check_libs=""
|
|
11391
|
|
11392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11393 echo "$ac_t""yes" 1>&6
|
|
11394 libwnn=wnn6_fromsrc
|
159
|
11395 else
|
|
11396 echo "$ac_t""no" 1>&6
|
|
11397 with_wnn=no
|
149
|
11398 fi
|
|
11399
|
377
|
11400
|
|
11401 fi
|
|
11402
|
|
11403
|
|
11404 fi
|
|
11405
|
|
11406
|
|
11407 fi
|
|
11408
|
|
11409
|
|
11410 fi
|
149
|
11411 test -z "$with_wnn" && with_wnn=yes
|
|
11412 if test "$with_wnn" = "yes"; then
|
|
11413 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11414 Defining HAVE_WNN
|
|
11415 EOF
|
|
11416 cat >> confdefs.h <<\EOF
|
|
11417 #define HAVE_WNN 1
|
|
11418 EOF
|
|
11419 }
|
|
11420
|
377
|
11421 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
|
284
|
11422 if test "$with_wnn6" != "no"; then
|
|
11423
|
377
|
11424 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
|
1161
|
11425 echo "configure:11426: checking for jl_fi_dic_list in -l$libwnn" >&5
|
377
|
11426 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
|
|
11427
|
|
11428 xe_check_libs=" -l$libwnn "
|
|
11429 cat > conftest.$ac_ext <<EOF
|
1161
|
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. */
|
|
11435 char jl_fi_dic_list();
|
|
11436
|
|
11437 int main() {
|
|
11438 jl_fi_dic_list()
|
|
11439 ; return 0; }
|
|
11440 EOF
|
1161
|
11441 if { (eval echo configure:11442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
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
|
151
|
11453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11454 echo "$ac_t""yes" 1>&6
|
|
11455 with_wnn6=yes
|
|
11456 else
|
|
11457 echo "$ac_t""no" 1>&6
|
|
11458 fi
|
|
11459
|
|
11460
|
284
|
11461 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
151
|
11462 Defining WNN6
|
|
11463 EOF
|
|
11464 cat >> confdefs.h <<\EOF
|
|
11465 #define WNN6 1
|
|
11466 EOF
|
|
11467 }
|
|
11468
|
284
|
11469 fi
|
151
|
11470 fi
|
149
|
11471
|
267
|
11472 canna_includes_found=no
|
|
11473 if test "$with_canna" != "no"; then
|
|
11474 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
11475 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
1161
|
11476 echo "configure:11477: checking for canna/jrkanji.h" >&5
|
|
11477
|
|
11478 cat > conftest.$ac_ext <<EOF
|
|
11479 #line 11480 "configure"
|
267
|
11480 #include "confdefs.h"
|
|
11481 #include <canna/jrkanji.h>
|
|
11482 EOF
|
|
11483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
11484 { (eval echo configure:11485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
267
|
11486 if test -z "$ac_err"; then
|
|
11487 rm -rf conftest*
|
|
11488 eval "ac_cv_header_$ac_safe=yes"
|
|
11489 else
|
|
11490 echo "$ac_err" >&5
|
|
11491 echo "configure: failed program was:" >&5
|
|
11492 cat conftest.$ac_ext >&5
|
|
11493 rm -rf conftest*
|
|
11494 eval "ac_cv_header_$ac_safe=no"
|
|
11495 fi
|
|
11496 rm -f conftest*
|
|
11497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11498 echo "$ac_t""yes" 1>&6
|
|
11499 canna_includes_found=yes
|
|
11500 else
|
|
11501 echo "$ac_t""no" 1>&6
|
|
11502 fi
|
|
11503
|
|
11504 fi
|
|
11505 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
|
|
11506 -d "/usr/local/canna/include"; then
|
|
11507 save_c_switch_site="$c_switch_site"
|
|
11508 c_switch_site="$c_switch_site -I/usr/local/canna/include"
|
|
11509 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
11510 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
1161
|
11511 echo "configure:11512: checking for canna/jrkanji.h" >&5
|
|
11512
|
|
11513 cat > conftest.$ac_ext <<EOF
|
|
11514 #line 11515 "configure"
|
267
|
11515 #include "confdefs.h"
|
|
11516 #include <canna/jrkanji.h>
|
|
11517 EOF
|
|
11518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
11519 { (eval echo configure:11520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
267
|
11521 if test -z "$ac_err"; then
|
|
11522 rm -rf conftest*
|
|
11523 eval "ac_cv_header_$ac_safe=yes"
|
|
11524 else
|
|
11525 echo "$ac_err" >&5
|
|
11526 echo "configure: failed program was:" >&5
|
|
11527 cat conftest.$ac_ext >&5
|
|
11528 rm -rf conftest*
|
|
11529 eval "ac_cv_header_$ac_safe=no"
|
|
11530 fi
|
|
11531 rm -f conftest*
|
|
11532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11533 echo "$ac_t""yes" 1>&6
|
|
11534 canna_includes_found=yes
|
|
11535 else
|
|
11536 echo "$ac_t""no" 1>&6
|
|
11537 fi
|
|
11538
|
|
11539 if test "$canna_includes_found" != "yes"; then
|
|
11540 c_switch_site="$save_c_switch_site"
|
|
11541 with_canna="no"
|
|
11542 fi
|
|
11543 fi
|
|
11544
|
|
11545 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
|
149
|
11546 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
|
1161
|
11547 echo "configure:11548: checking for canna/RK.h" >&5
|
|
11548
|
|
11549 cat > conftest.$ac_ext <<EOF
|
|
11550 #line 11551 "configure"
|
149
|
11551 #include "confdefs.h"
|
|
11552 #include <canna/RK.h>
|
|
11553 EOF
|
|
11554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
11555 { (eval echo configure:11556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
11556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
11557 if test -z "$ac_err"; then
|
|
11558 rm -rf conftest*
|
|
11559 eval "ac_cv_header_$ac_safe=yes"
|
|
11560 else
|
|
11561 echo "$ac_err" >&5
|
|
11562 echo "configure: failed program was:" >&5
|
|
11563 cat conftest.$ac_ext >&5
|
|
11564 rm -rf conftest*
|
|
11565 eval "ac_cv_header_$ac_safe=no"
|
|
11566 fi
|
|
11567 rm -f conftest*
|
|
11568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11569 echo "$ac_t""yes" 1>&6
|
|
11570 :
|
|
11571 else
|
|
11572 echo "$ac_t""no" 1>&6
|
|
11573 with_canna=no
|
|
11574 fi
|
|
11575 }
|
|
11576 test -z "$with_canna" && {
|
|
11577 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
|
1161
|
11578 echo "configure:11579: checking for RkBgnBun in -lRKC" >&5
|
149
|
11579 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
|
|
11580
|
|
11581 xe_check_libs=" -lRKC "
|
|
11582 cat > conftest.$ac_ext <<EOF
|
1161
|
11583 #line 11584 "configure"
|
149
|
11584 #include "confdefs.h"
|
|
11585 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11586 /* We use char because int might match the return type of a gcc2
|
|
11587 builtin and then its argument prototype would still apply. */
|
|
11588 char RkBgnBun();
|
|
11589
|
|
11590 int main() {
|
|
11591 RkBgnBun()
|
|
11592 ; return 0; }
|
|
11593 EOF
|
1161
|
11594 if { (eval echo configure:11595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11595 rm -rf conftest*
|
|
11596 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11597 else
|
|
11598 echo "configure: failed program was:" >&5
|
|
11599 cat conftest.$ac_ext >&5
|
|
11600 rm -rf conftest*
|
|
11601 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11602 fi
|
|
11603 rm -f conftest*
|
|
11604 xe_check_libs=""
|
|
11605
|
151
|
11606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11607 echo "$ac_t""yes" 1>&6
|
|
11608 :
|
|
11609 else
|
|
11610 echo "$ac_t""no" 1>&6
|
|
11611 with_canna=no
|
|
11612 fi
|
|
11613
|
|
11614 }
|
|
11615 test -z "$with_canna" && {
|
|
11616 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
|
1161
|
11617 echo "configure:11618: checking for jrKanjiControl in -lcanna" >&5
|
149
|
11618 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
|
|
11619
|
|
11620 xe_check_libs=" -lcanna "
|
|
11621 cat > conftest.$ac_ext <<EOF
|
1161
|
11622 #line 11623 "configure"
|
149
|
11623 #include "confdefs.h"
|
|
11624 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11625 /* We use char because int might match the return type of a gcc2
|
|
11626 builtin and then its argument prototype would still apply. */
|
|
11627 char jrKanjiControl();
|
|
11628
|
|
11629 int main() {
|
|
11630 jrKanjiControl()
|
|
11631 ; return 0; }
|
|
11632 EOF
|
1161
|
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11634 rm -rf conftest*
|
|
11635 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11636 else
|
|
11637 echo "configure: failed program was:" >&5
|
|
11638 cat conftest.$ac_ext >&5
|
|
11639 rm -rf conftest*
|
|
11640 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11641 fi
|
|
11642 rm -f conftest*
|
|
11643 xe_check_libs=""
|
|
11644
|
151
|
11645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
11646 echo "$ac_t""yes" 1>&6
|
|
11647 :
|
|
11648 else
|
|
11649 echo "$ac_t""no" 1>&6
|
|
11650 with_canna=no
|
|
11651 fi
|
|
11652
|
|
11653 }
|
|
11654 test -z "$with_canna" && with_canna=yes
|
|
11655 if test "$with_canna" = "yes"; then
|
|
11656 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11657 Defining HAVE_CANNA
|
|
11658 EOF
|
|
11659 cat >> confdefs.h <<\EOF
|
|
11660 #define HAVE_CANNA 1
|
|
11661 EOF
|
|
11662 }
|
|
11663
|
151
|
11664 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
|
|
11665 fi
|
155
|
11666
|
151
|
11667 else for feature in xim canna wnn; do
|
149
|
11668 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
561
|
11669 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2
|
149
|
11670 fi
|
|
11671 eval "with_${feature}=no"
|
|
11672 done
|
151
|
11673 fi
|
|
11674
|
|
11675 if test "$need_motif" = "yes" ; then
|
|
11676 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
|
207
|
11677
|
|
11678 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
|
1161
|
11679 echo "configure:11680: checking for layout_object_getvalue in -li18n" >&5
|
207
|
11680 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
|
|
11681
|
|
11682 xe_check_libs=" -li18n "
|
|
11683 cat > conftest.$ac_ext <<EOF
|
1161
|
11684 #line 11685 "configure"
|
207
|
11685 #include "confdefs.h"
|
|
11686 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11687 /* We use char because int might match the return type of a gcc2
|
|
11688 builtin and then its argument prototype would still apply. */
|
|
11689 char layout_object_getvalue();
|
|
11690
|
|
11691 int main() {
|
|
11692 layout_object_getvalue()
|
|
11693 ; return 0; }
|
|
11694 EOF
|
1161
|
11695 if { (eval echo configure:11696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
207
|
11696 rm -rf conftest*
|
|
11697 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11698 else
|
|
11699 echo "configure: failed program was:" >&5
|
|
11700 cat conftest.$ac_ext >&5
|
|
11701 rm -rf conftest*
|
|
11702 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11703 fi
|
|
11704 rm -f conftest*
|
|
11705 xe_check_libs=""
|
|
11706
|
|
11707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11708 echo "$ac_t""yes" 1>&6
|
|
11709 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
|
|
11710 else
|
|
11711 echo "$ac_t""no" 1>&6
|
|
11712 fi
|
|
11713
|
|
11714
|
151
|
11715
|
|
11716 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
11717 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
11718 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
11719
|
163
|
11720 runpath="" runpath_dirs=""
|
155
|
11721 if test -n "$LD_RUN_PATH"; then
|
151
|
11722 runpath="$LD_RUN_PATH"
|
155
|
11723 elif test "$GCC" = "yes"; then
|
163
|
11724 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
11725 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
11726 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
11727 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
11728 case "$arg" in P,* | -L* | -R* )
|
159
|
11729 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
11730 {
|
155
|
11731 xe_runpath_dir="$dir"
|
163
|
11732 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
11733 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
11734 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
11735 eval "$xe_add_unique_runpath_dir"
|
|
11736 }
|
155
|
11737 done ;;
|
|
11738 esac
|
|
11739 done
|
163
|
11740 ld_switch_run="$ld_switch_run_save"
|
155
|
11741 rm -f conftest*
|
151
|
11742 else
|
155
|
11743 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
11744 case "$arg" in -L*) {
|
159
|
11745 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
11746 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
11747 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
11748 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
11749 eval "$xe_add_unique_runpath_dir"
|
|
11750 };; esac
|
151
|
11751 done
|
163
|
11752 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
11753 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
11754 eval "$xe_add_unique_runpath_dir";
|
|
11755 fi
|
155
|
11756 fi
|
151
|
11757 if test -n "$runpath"; then
|
|
11758 ld_switch_run="${dash_r}${runpath}"
|
272
|
11759
|
|
11760 if test "$GCC" = "yes"; then
|
|
11761 set x $ld_switch_run; shift; ld_switch_run=""
|
|
11762 while test -n "$1"; do
|
|
11763 case $1 in
|
380
|
11764 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
11765 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
11766 -Xlinker* ) ;;
|
|
11767 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
11768 esac
|
|
11769 shift
|
|
11770 done
|
|
11771 fi
|
151
|
11772 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
11773 fi
|
|
11774 fi
|
|
11775
|
|
11776 fi
|
|
11777
|
1070
|
11778
|
1111
|
11779 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 symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask wcslen wcscmp
|
149
|
11780 do
|
|
11781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
11782 echo "configure:11783: checking for $ac_func" >&5
|
|
11783
|
|
11784 cat > conftest.$ac_ext <<EOF
|
|
11785 #line 11786 "configure"
|
410
|
11786 #include "confdefs.h"
|
|
11787 /* System header to define __stub macros and hopefully few prototypes,
|
|
11788 which can conflict with char $ac_func(); below. */
|
|
11789 #include <assert.h>
|
|
11790 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11791 /* We use char because int might match the return type of a gcc2
|
|
11792 builtin and then its argument prototype would still apply. */
|
|
11793 char $ac_func();
|
|
11794
|
|
11795 int main() {
|
|
11796
|
|
11797 /* The GNU C library defines this for functions which it implements
|
|
11798 to always fail with ENOSYS. Some functions are actually named
|
|
11799 something starting with __ and the normal name is an alias. */
|
|
11800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
11801 choke me
|
|
11802 #else
|
|
11803 $ac_func();
|
|
11804 #endif
|
|
11805
|
|
11806 ; return 0; }
|
|
11807 EOF
|
1161
|
11808 if { (eval echo configure:11809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
11809 rm -rf conftest*
|
|
11810 eval "ac_cv_func_$ac_func=yes"
|
|
11811 else
|
|
11812 echo "configure: failed program was:" >&5
|
|
11813 cat conftest.$ac_ext >&5
|
|
11814 rm -rf conftest*
|
|
11815 eval "ac_cv_func_$ac_func=no"
|
|
11816 fi
|
|
11817 rm -f conftest*
|
|
11818
|
|
11819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11820 echo "$ac_t""yes" 1>&6
|
|
11821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
11822 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11823 Defining $ac_tr_func
|
|
11824 EOF
|
|
11825 cat >> confdefs.h <<EOF
|
|
11826 #define $ac_tr_func 1
|
|
11827 EOF
|
|
11828 }
|
|
11829
|
|
11830 else
|
|
11831 echo "$ac_t""no" 1>&6
|
|
11832 fi
|
|
11833 done
|
|
11834
|
|
11835
|
1070
|
11836 if test "$ac_cv_func_getaddrinfo" != "no" ; then
|
|
11837 case "$opsys" in
|
|
11838 hpux11 )
|
|
11839 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
|
|
11840 ac_cv_func_getaddrinfo=no
|
|
11841 ;;
|
|
11842 esac
|
|
11843 fi
|
|
11844
|
458
|
11845
|
444
|
11846 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
|
442
|
11847 do
|
|
11848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
11849 echo "configure:11850: checking for $ac_func" >&5
|
|
11850
|
|
11851 cat > conftest.$ac_ext <<EOF
|
|
11852 #line 11853 "configure"
|
442
|
11853 #include "confdefs.h"
|
|
11854 /* System header to define __stub macros and hopefully few prototypes,
|
|
11855 which can conflict with char $ac_func(); below. */
|
|
11856 #include <assert.h>
|
|
11857 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11858 /* We use char because int might match the return type of a gcc2
|
|
11859 builtin and then its argument prototype would still apply. */
|
|
11860 char $ac_func();
|
|
11861
|
|
11862 int main() {
|
|
11863
|
|
11864 /* The GNU C library defines this for functions which it implements
|
|
11865 to always fail with ENOSYS. Some functions are actually named
|
|
11866 something starting with __ and the normal name is an alias. */
|
|
11867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
11868 choke me
|
|
11869 #else
|
|
11870 $ac_func();
|
|
11871 #endif
|
|
11872
|
|
11873 ; return 0; }
|
|
11874 EOF
|
1161
|
11875 if { (eval echo configure:11876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
410
|
11876 rm -rf conftest*
|
|
11877 eval "ac_cv_func_$ac_func=yes"
|
|
11878 else
|
|
11879 echo "configure: failed program was:" >&5
|
|
11880 cat conftest.$ac_ext >&5
|
|
11881 rm -rf conftest*
|
|
11882 eval "ac_cv_func_$ac_func=no"
|
|
11883 fi
|
|
11884 rm -f conftest*
|
|
11885
|
|
11886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11887 echo "$ac_t""yes" 1>&6
|
|
11888 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
11889 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11890 Defining $ac_tr_func
|
|
11891 EOF
|
|
11892 cat >> confdefs.h <<EOF
|
|
11893 #define $ac_tr_func 1
|
|
11894 EOF
|
|
11895 }
|
|
11896
|
|
11897 else
|
|
11898 echo "$ac_t""no" 1>&6
|
|
11899 fi
|
|
11900 done
|
|
11901
|
|
11902
|
442
|
11903 echo $ac_n "checking for openpty""... $ac_c" 1>&6
|
1161
|
11904 echo "configure:11905: checking for openpty" >&5
|
|
11905
|
|
11906 cat > conftest.$ac_ext <<EOF
|
|
11907 #line 11908 "configure"
|
442
|
11908 #include "confdefs.h"
|
|
11909 /* System header to define __stub macros and hopefully few prototypes,
|
|
11910 which can conflict with char openpty(); below. */
|
|
11911 #include <assert.h>
|
|
11912 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11913 /* We use char because int might match the return type of a gcc2
|
|
11914 builtin and then its argument prototype would still apply. */
|
|
11915 char openpty();
|
|
11916
|
|
11917 int main() {
|
|
11918
|
|
11919 /* The GNU C library defines this for functions which it implements
|
|
11920 to always fail with ENOSYS. Some functions are actually named
|
|
11921 something starting with __ and the normal name is an alias. */
|
|
11922 #if defined (__stub_openpty) || defined (__stub___openpty)
|
|
11923 choke me
|
|
11924 #else
|
|
11925 openpty();
|
|
11926 #endif
|
|
11927
|
|
11928 ; return 0; }
|
|
11929 EOF
|
1161
|
11930 if { (eval echo configure:11931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
11931 rm -rf conftest*
|
|
11932 eval "ac_cv_func_openpty=yes"
|
|
11933 else
|
|
11934 echo "configure: failed program was:" >&5
|
|
11935 cat conftest.$ac_ext >&5
|
|
11936 rm -rf conftest*
|
|
11937 eval "ac_cv_func_openpty=no"
|
|
11938 fi
|
|
11939 rm -f conftest*
|
|
11940
|
|
11941 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
|
|
11942 echo "$ac_t""yes" 1>&6
|
|
11943 have_openpty=yes
|
|
11944 else
|
|
11945 echo "$ac_t""no" 1>&6
|
|
11946
|
|
11947
|
|
11948 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
|
1161
|
11949 echo "configure:11950: checking for openpty in -lutil" >&5
|
442
|
11950 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
|
|
11951
|
|
11952 xe_check_libs=" -lutil "
|
|
11953 cat > conftest.$ac_ext <<EOF
|
1161
|
11954 #line 11955 "configure"
|
442
|
11955 #include "confdefs.h"
|
|
11956 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11957 /* We use char because int might match the return type of a gcc2
|
|
11958 builtin and then its argument prototype would still apply. */
|
|
11959 char openpty();
|
|
11960
|
|
11961 int main() {
|
|
11962 openpty()
|
|
11963 ; return 0; }
|
|
11964 EOF
|
1161
|
11965 if { (eval echo configure:11966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
11966 rm -rf conftest*
|
|
11967 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11968 else
|
|
11969 echo "configure: failed program was:" >&5
|
|
11970 cat conftest.$ac_ext >&5
|
|
11971 rm -rf conftest*
|
|
11972 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11973 fi
|
|
11974 rm -f conftest*
|
|
11975 xe_check_libs=""
|
|
11976
|
|
11977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11978 echo "$ac_t""yes" 1>&6
|
|
11979 have_openpty=yes need_libutil=yes
|
|
11980 else
|
|
11981 echo "$ac_t""no" 1>&6
|
|
11982 fi
|
|
11983
|
|
11984
|
|
11985 fi
|
|
11986
|
|
11987 if test "$have_openpty" = "yes"; then
|
|
11988 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11989 Defining HAVE_OPENPTY
|
|
11990 EOF
|
|
11991 cat >> confdefs.h <<\EOF
|
|
11992 #define HAVE_OPENPTY 1
|
|
11993 EOF
|
|
11994 }
|
|
11995
|
535
|
11996 for ac_hdr in libutil.h util.h
|
442
|
11997 do
|
|
11998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1161
|
12000 echo "configure:12001: checking for $ac_hdr" >&5
|
|
12001
|
|
12002 cat > conftest.$ac_ext <<EOF
|
|
12003 #line 12004 "configure"
|
442
|
12004 #include "confdefs.h"
|
|
12005 #include <$ac_hdr>
|
|
12006 EOF
|
|
12007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
12008 { (eval echo configure:12009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
12009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12010 if test -z "$ac_err"; then
|
|
12011 rm -rf conftest*
|
|
12012 eval "ac_cv_header_$ac_safe=yes"
|
|
12013 else
|
|
12014 echo "$ac_err" >&5
|
|
12015 echo "configure: failed program was:" >&5
|
|
12016 cat conftest.$ac_ext >&5
|
|
12017 rm -rf conftest*
|
|
12018 eval "ac_cv_header_$ac_safe=no"
|
|
12019 fi
|
|
12020 rm -f conftest*
|
|
12021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12022 echo "$ac_t""yes" 1>&6
|
|
12023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12024 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12025 Defining $ac_tr_hdr
|
|
12026 EOF
|
|
12027 cat >> confdefs.h <<EOF
|
|
12028 #define $ac_tr_hdr 1
|
|
12029 EOF
|
|
12030 }
|
458
|
12031 break
|
442
|
12032 else
|
|
12033 echo "$ac_t""no" 1>&6
|
|
12034 fi
|
|
12035 done
|
|
12036
|
|
12037 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
|
|
12038 fi
|
|
12039
|
535
|
12040 case "$opsys" in
|
|
12041 hpux*) for ac_hdr in sys/ptyio.h
|
|
12042 do
|
|
12043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1161
|
12045 echo "configure:12046: checking for $ac_hdr" >&5
|
|
12046
|
|
12047 cat > conftest.$ac_ext <<EOF
|
|
12048 #line 12049 "configure"
|
535
|
12049 #include "confdefs.h"
|
|
12050 #include <$ac_hdr>
|
|
12051 EOF
|
|
12052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
12053 { (eval echo configure:12054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
12054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12055 if test -z "$ac_err"; then
|
|
12056 rm -rf conftest*
|
|
12057 eval "ac_cv_header_$ac_safe=yes"
|
|
12058 else
|
|
12059 echo "$ac_err" >&5
|
|
12060 echo "configure: failed program was:" >&5
|
|
12061 cat conftest.$ac_ext >&5
|
|
12062 rm -rf conftest*
|
|
12063 eval "ac_cv_header_$ac_safe=no"
|
|
12064 fi
|
|
12065 rm -f conftest*
|
|
12066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12067 echo "$ac_t""yes" 1>&6
|
|
12068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12069 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12070 Defining $ac_tr_hdr
|
|
12071 EOF
|
|
12072 cat >> confdefs.h <<EOF
|
|
12073 #define $ac_tr_hdr 1
|
|
12074 EOF
|
|
12075 }
|
|
12076
|
|
12077 else
|
|
12078 echo "$ac_t""no" 1>&6
|
|
12079 fi
|
|
12080 done
|
1111
|
12081 ;;
|
|
12082 *) for ac_hdr in pty.h
|
535
|
12083 do
|
|
12084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1161
|
12086 echo "configure:12087: checking for $ac_hdr" >&5
|
|
12087
|
|
12088 cat > conftest.$ac_ext <<EOF
|
|
12089 #line 12090 "configure"
|
771
|
12090 #include "confdefs.h"
|
|
12091 #include <$ac_hdr>
|
|
12092 EOF
|
|
12093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
12094 { (eval echo configure:12095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
771
|
12095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12096 if test -z "$ac_err"; then
|
|
12097 rm -rf conftest*
|
|
12098 eval "ac_cv_header_$ac_safe=yes"
|
|
12099 else
|
|
12100 echo "$ac_err" >&5
|
|
12101 echo "configure: failed program was:" >&5
|
|
12102 cat conftest.$ac_ext >&5
|
|
12103 rm -rf conftest*
|
|
12104 eval "ac_cv_header_$ac_safe=no"
|
|
12105 fi
|
|
12106 rm -f conftest*
|
|
12107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12108 echo "$ac_t""yes" 1>&6
|
|
12109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12110 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12111 Defining $ac_tr_hdr
|
|
12112 EOF
|
|
12113 cat >> confdefs.h <<EOF
|
|
12114 #define $ac_tr_hdr 1
|
|
12115 EOF
|
|
12116 }
|
|
12117
|
|
12118 else
|
|
12119 echo "$ac_t""no" 1>&6
|
|
12120 fi
|
|
12121 done
|
|
12122
|
1111
|
12123 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
|
|
12124 do
|
|
12125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1161
|
12127 echo "configure:12128: checking for $ac_hdr" >&5
|
|
12128
|
|
12129 cat > conftest.$ac_ext <<EOF
|
|
12130 #line 12131 "configure"
|
1111
|
12131 #include "confdefs.h"
|
|
12132 #include <$ac_hdr>
|
|
12133 EOF
|
|
12134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
12135 { (eval echo configure:12136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1111
|
12136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12137 if test -z "$ac_err"; then
|
|
12138 rm -rf conftest*
|
|
12139 eval "ac_cv_header_$ac_safe=yes"
|
|
12140 else
|
|
12141 echo "$ac_err" >&5
|
|
12142 echo "configure: failed program was:" >&5
|
|
12143 cat conftest.$ac_ext >&5
|
|
12144 rm -rf conftest*
|
|
12145 eval "ac_cv_header_$ac_safe=no"
|
|
12146 fi
|
|
12147 rm -f conftest*
|
|
12148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12149 echo "$ac_t""yes" 1>&6
|
|
12150 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12151 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12152 Defining $ac_tr_hdr
|
|
12153 EOF
|
|
12154 cat >> confdefs.h <<EOF
|
|
12155 #define $ac_tr_hdr 1
|
|
12156 EOF
|
|
12157 }
|
|
12158
|
|
12159 else
|
|
12160 echo "$ac_t""no" 1>&6
|
|
12161 fi
|
|
12162 done
|
|
12163
|
771
|
12164 ;;
|
|
12165 esac
|
|
12166
|
|
12167 for ac_hdr in stropts.h
|
|
12168 do
|
|
12169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1161
|
12171 echo "configure:12172: checking for $ac_hdr" >&5
|
|
12172
|
|
12173 cat > conftest.$ac_ext <<EOF
|
|
12174 #line 12175 "configure"
|
771
|
12175 #include "confdefs.h"
|
|
12176 #include <$ac_hdr>
|
|
12177 EOF
|
|
12178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
12179 { (eval echo configure:12180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
771
|
12180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12181 if test -z "$ac_err"; then
|
|
12182 rm -rf conftest*
|
|
12183 eval "ac_cv_header_$ac_safe=yes"
|
|
12184 else
|
|
12185 echo "$ac_err" >&5
|
|
12186 echo "configure: failed program was:" >&5
|
|
12187 cat conftest.$ac_ext >&5
|
|
12188 rm -rf conftest*
|
|
12189 eval "ac_cv_header_$ac_safe=no"
|
|
12190 fi
|
|
12191 rm -f conftest*
|
|
12192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12193 echo "$ac_t""yes" 1>&6
|
|
12194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12195 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12196 Defining $ac_tr_hdr
|
|
12197 EOF
|
|
12198 cat >> confdefs.h <<EOF
|
|
12199 #define $ac_tr_hdr 1
|
|
12200 EOF
|
|
12201 }
|
|
12202
|
|
12203 else
|
|
12204 echo "$ac_t""no" 1>&6
|
|
12205 fi
|
|
12206 done
|
|
12207
|
|
12208 if test "$ac_cv_header_stropts_h" = "yes"; then
|
|
12209 for ac_func in isastream
|
|
12210 do
|
|
12211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
12212 echo "configure:12213: checking for $ac_func" >&5
|
|
12213
|
|
12214 cat > conftest.$ac_ext <<EOF
|
|
12215 #line 12216 "configure"
|
771
|
12216 #include "confdefs.h"
|
|
12217 /* System header to define __stub macros and hopefully few prototypes,
|
|
12218 which can conflict with char $ac_func(); below. */
|
|
12219 #include <assert.h>
|
|
12220 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12221 /* We use char because int might match the return type of a gcc2
|
|
12222 builtin and then its argument prototype would still apply. */
|
|
12223 char $ac_func();
|
|
12224
|
|
12225 int main() {
|
|
12226
|
|
12227 /* The GNU C library defines this for functions which it implements
|
|
12228 to always fail with ENOSYS. Some functions are actually named
|
|
12229 something starting with __ and the normal name is an alias. */
|
|
12230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
12231 choke me
|
|
12232 #else
|
|
12233 $ac_func();
|
|
12234 #endif
|
|
12235
|
|
12236 ; return 0; }
|
|
12237 EOF
|
1161
|
12238 if { (eval echo configure:12239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
771
|
12239 rm -rf conftest*
|
|
12240 eval "ac_cv_func_$ac_func=yes"
|
|
12241 else
|
|
12242 echo "configure: failed program was:" >&5
|
|
12243 cat conftest.$ac_ext >&5
|
|
12244 rm -rf conftest*
|
|
12245 eval "ac_cv_func_$ac_func=no"
|
|
12246 fi
|
|
12247 rm -f conftest*
|
|
12248
|
|
12249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12250 echo "$ac_t""yes" 1>&6
|
|
12251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12252 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12253 Defining $ac_tr_func
|
|
12254 EOF
|
|
12255 cat >> confdefs.h <<EOF
|
|
12256 #define $ac_tr_func 1
|
|
12257 EOF
|
|
12258 }
|
|
12259
|
|
12260 else
|
|
12261 echo "$ac_t""no" 1>&6
|
|
12262 fi
|
|
12263 done
|
|
12264
|
|
12265 for ac_hdr in strtio.h
|
|
12266 do
|
|
12267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1161
|
12269 echo "configure:12270: checking for $ac_hdr" >&5
|
|
12270
|
|
12271 cat > conftest.$ac_ext <<EOF
|
|
12272 #line 12273 "configure"
|
535
|
12273 #include "confdefs.h"
|
|
12274 #include <$ac_hdr>
|
|
12275 EOF
|
|
12276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
12277 { (eval echo configure:12278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
12278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12279 if test -z "$ac_err"; then
|
|
12280 rm -rf conftest*
|
|
12281 eval "ac_cv_header_$ac_safe=yes"
|
|
12282 else
|
|
12283 echo "$ac_err" >&5
|
|
12284 echo "configure: failed program was:" >&5
|
|
12285 cat conftest.$ac_ext >&5
|
|
12286 rm -rf conftest*
|
|
12287 eval "ac_cv_header_$ac_safe=no"
|
|
12288 fi
|
|
12289 rm -f conftest*
|
|
12290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12291 echo "$ac_t""yes" 1>&6
|
|
12292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12293 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12294 Defining $ac_tr_hdr
|
|
12295 EOF
|
|
12296 cat >> confdefs.h <<EOF
|
|
12297 #define $ac_tr_hdr 1
|
|
12298 EOF
|
|
12299 }
|
|
12300
|
|
12301 else
|
|
12302 echo "$ac_t""no" 1>&6
|
|
12303 fi
|
|
12304 done
|
771
|
12305 fi
|
|
12306
|
|
12307 for ac_func in getloadavg
|
410
|
12308 do
|
|
12309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
12310 echo "configure:12311: checking for $ac_func" >&5
|
|
12311
|
|
12312 cat > conftest.$ac_ext <<EOF
|
|
12313 #line 12314 "configure"
|
149
|
12314 #include "confdefs.h"
|
|
12315 /* System header to define __stub macros and hopefully few prototypes,
|
|
12316 which can conflict with char $ac_func(); below. */
|
|
12317 #include <assert.h>
|
|
12318 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12319 /* We use char because int might match the return type of a gcc2
|
|
12320 builtin and then its argument prototype would still apply. */
|
|
12321 char $ac_func();
|
|
12322
|
|
12323 int main() {
|
|
12324
|
70
|
12325 /* The GNU C library defines this for functions which it implements
|
|
12326 to always fail with ENOSYS. Some functions are actually named
|
|
12327 something starting with __ and the normal name is an alias. */
|
149
|
12328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
70
|
12329 choke me
|
|
12330 #else
|
149
|
12331 $ac_func();
|
70
|
12332 #endif
|
149
|
12333
|
70
|
12334 ; return 0; }
|
|
12335 EOF
|
1161
|
12336 if { (eval echo configure:12337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
12337 rm -rf conftest*
|
|
12338 eval "ac_cv_func_$ac_func=yes"
|
|
12339 else
|
|
12340 echo "configure: failed program was:" >&5
|
|
12341 cat conftest.$ac_ext >&5
|
|
12342 rm -rf conftest*
|
|
12343 eval "ac_cv_func_$ac_func=no"
|
|
12344 fi
|
|
12345 rm -f conftest*
|
|
12346
|
|
12347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12348 echo "$ac_t""yes" 1>&6
|
|
12349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12350 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12351 Defining $ac_tr_func
|
|
12352 EOF
|
|
12353 cat >> confdefs.h <<EOF
|
|
12354 #define $ac_tr_func 1
|
|
12355 EOF
|
|
12356 }
|
|
12357
|
|
12358 else
|
|
12359 echo "$ac_t""no" 1>&6
|
|
12360 fi
|
|
12361 done
|
|
12362
|
|
12363
|
|
12364 if test "$ac_cv_func_getloadavg" = "yes"; then
|
|
12365 for ac_hdr in sys/loadavg.h
|
|
12366 do
|
|
12367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1161
|
12369 echo "configure:12370: checking for $ac_hdr" >&5
|
|
12370
|
|
12371 cat > conftest.$ac_ext <<EOF
|
|
12372 #line 12373 "configure"
|
442
|
12373 #include "confdefs.h"
|
|
12374 #include <$ac_hdr>
|
|
12375 EOF
|
|
12376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
12377 { (eval echo configure:12378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
12378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12379 if test -z "$ac_err"; then
|
|
12380 rm -rf conftest*
|
|
12381 eval "ac_cv_header_$ac_safe=yes"
|
|
12382 else
|
|
12383 echo "$ac_err" >&5
|
|
12384 echo "configure: failed program was:" >&5
|
|
12385 cat conftest.$ac_ext >&5
|
|
12386 rm -rf conftest*
|
|
12387 eval "ac_cv_header_$ac_safe=no"
|
|
12388 fi
|
|
12389 rm -f conftest*
|
|
12390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12391 echo "$ac_t""yes" 1>&6
|
|
12392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12393 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12394 Defining $ac_tr_hdr
|
|
12395 EOF
|
|
12396 cat >> confdefs.h <<EOF
|
|
12397 #define $ac_tr_hdr 1
|
|
12398 EOF
|
|
12399 }
|
|
12400
|
|
12401 else
|
|
12402 echo "$ac_t""no" 1>&6
|
|
12403 fi
|
|
12404 done
|
|
12405
|
|
12406 else
|
|
12407 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
|
398
|
12408 echo " xemacs will be linked with \"getloadavg.o\""
|
|
12409 fi
|
|
12410
|
|
12411
|
|
12412 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
|
1161
|
12413 echo "configure:12414: checking for kstat_open in -lkstat" >&5
|
398
|
12414 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
|
|
12415
|
|
12416 xe_check_libs=" -lkstat "
|
|
12417 cat > conftest.$ac_ext <<EOF
|
1161
|
12418 #line 12419 "configure"
|
398
|
12419 #include "confdefs.h"
|
|
12420 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12421 /* We use char because int might match the return type of a gcc2
|
|
12422 builtin and then its argument prototype would still apply. */
|
|
12423 char kstat_open();
|
|
12424
|
|
12425 int main() {
|
|
12426 kstat_open()
|
|
12427 ; return 0; }
|
|
12428 EOF
|
1161
|
12429 if { (eval echo configure:12430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
12430 rm -rf conftest*
|
|
12431 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12432 else
|
|
12433 echo "configure: failed program was:" >&5
|
|
12434 cat conftest.$ac_ext >&5
|
|
12435 rm -rf conftest*
|
|
12436 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12437 fi
|
|
12438 rm -f conftest*
|
|
12439 xe_check_libs=""
|
|
12440
|
|
12441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
12442 echo "$ac_t""yes" 1>&6
|
|
12443 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
12444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
369
|
12445 { test "$extra_verbose" = "yes" && cat << EOF
|
398
|
12446 Defining $ac_tr_lib
|
369
|
12447 EOF
|
|
12448 cat >> confdefs.h <<EOF
|
398
|
12449 #define $ac_tr_lib 1
|
|
12450 EOF
|
|
12451 }
|
|
12452
|
|
12453 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
|
|
12454
|
|
12455 else
|
|
12456 echo "$ac_t""no" 1>&6
|
|
12457 fi
|
|
12458
|
|
12459
|
442
|
12460 for ac_hdr in kstat.h
|
|
12461 do
|
|
12462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
12463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1161
|
12464 echo "configure:12465: checking for $ac_hdr" >&5
|
|
12465
|
|
12466 cat > conftest.$ac_ext <<EOF
|
|
12467 #line 12468 "configure"
|
442
|
12468 #include "confdefs.h"
|
|
12469 #include <$ac_hdr>
|
|
12470 EOF
|
|
12471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
12472 { (eval echo configure:12473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
12473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
12474 if test -z "$ac_err"; then
|
|
12475 rm -rf conftest*
|
|
12476 eval "ac_cv_header_$ac_safe=yes"
|
|
12477 else
|
|
12478 echo "$ac_err" >&5
|
|
12479 echo "configure: failed program was:" >&5
|
|
12480 cat conftest.$ac_ext >&5
|
|
12481 rm -rf conftest*
|
|
12482 eval "ac_cv_header_$ac_safe=no"
|
|
12483 fi
|
|
12484 rm -f conftest*
|
|
12485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12486 echo "$ac_t""yes" 1>&6
|
|
12487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
12488 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12489 Defining $ac_tr_hdr
|
|
12490 EOF
|
|
12491 cat >> confdefs.h <<EOF
|
|
12492 #define $ac_tr_hdr 1
|
|
12493 EOF
|
|
12494 }
|
|
12495
|
|
12496 else
|
|
12497 echo "$ac_t""no" 1>&6
|
|
12498 fi
|
|
12499 done
|
|
12500
|
398
|
12501
|
|
12502
|
|
12503 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
|
1161
|
12504 echo "configure:12505: checking for kvm_read in -lkvm" >&5
|
398
|
12505 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
|
|
12506
|
|
12507 xe_check_libs=" -lkvm "
|
|
12508 cat > conftest.$ac_ext <<EOF
|
1161
|
12509 #line 12510 "configure"
|
398
|
12510 #include "confdefs.h"
|
|
12511 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12512 /* We use char because int might match the return type of a gcc2
|
|
12513 builtin and then its argument prototype would still apply. */
|
|
12514 char kvm_read();
|
|
12515
|
|
12516 int main() {
|
|
12517 kvm_read()
|
|
12518 ; return 0; }
|
|
12519 EOF
|
1161
|
12520 if { (eval echo configure:12521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
12521 rm -rf conftest*
|
|
12522 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12523 else
|
|
12524 echo "configure: failed program was:" >&5
|
|
12525 cat conftest.$ac_ext >&5
|
|
12526 rm -rf conftest*
|
|
12527 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12528 fi
|
|
12529 rm -f conftest*
|
|
12530 xe_check_libs=""
|
|
12531
|
|
12532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
12533 echo "$ac_t""yes" 1>&6
|
|
12534 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
12535 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
12536 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12537 Defining $ac_tr_lib
|
|
12538 EOF
|
|
12539 cat >> confdefs.h <<EOF
|
|
12540 #define $ac_tr_lib 1
|
|
12541 EOF
|
|
12542 }
|
|
12543
|
|
12544 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
|
|
12545
|
|
12546 else
|
|
12547 echo "$ac_t""no" 1>&6
|
|
12548 fi
|
|
12549
|
|
12550
|
|
12551 fi
|
151
|
12552
|
149
|
12553 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
|
1161
|
12554 echo "configure:12555: checking whether netdb declares h_errno" >&5
|
|
12555 cat > conftest.$ac_ext <<EOF
|
|
12556 #line 12557 "configure"
|
0
|
12557 #include "confdefs.h"
|
|
12558 #include <netdb.h>
|
149
|
12559 int main() {
|
|
12560 return h_errno;
|
|
12561 ; return 0; }
|
|
12562 EOF
|
1161
|
12563 if { (eval echo configure:12564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12564 rm -rf conftest*
|
|
12565 echo "$ac_t""yes" 1>&6
|
|
12566 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12567 Defining HAVE_H_ERRNO
|
|
12568 EOF
|
|
12569 cat >> confdefs.h <<\EOF
|
|
12570 #define HAVE_H_ERRNO 1
|
|
12571 EOF
|
|
12572 }
|
|
12573
|
|
12574 else
|
|
12575 echo "configure: failed program was:" >&5
|
|
12576 cat conftest.$ac_ext >&5
|
|
12577 rm -rf conftest*
|
|
12578 echo "$ac_t""no" 1>&6
|
|
12579 fi
|
|
12580 rm -f conftest*
|
|
12581
|
|
12582 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
1161
|
12583 echo "configure:12584: checking for sigsetjmp" >&5
|
|
12584 cat > conftest.$ac_ext <<EOF
|
|
12585 #line 12586 "configure"
|
0
|
12586 #include "confdefs.h"
|
|
12587 #include <setjmp.h>
|
149
|
12588 int main() {
|
|
12589 sigjmp_buf bar; sigsetjmp (bar, 0);
|
|
12590 ; return 0; }
|
|
12591 EOF
|
1161
|
12592 if { (eval echo configure:12593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
12593 rm -rf conftest*
|
|
12594 echo "$ac_t""yes" 1>&6
|
|
12595 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12596 Defining HAVE_SIGSETJMP
|
|
12597 EOF
|
|
12598 cat >> confdefs.h <<\EOF
|
|
12599 #define HAVE_SIGSETJMP 1
|
|
12600 EOF
|
|
12601 }
|
|
12602
|
|
12603 else
|
|
12604 echo "configure: failed program was:" >&5
|
|
12605 cat conftest.$ac_ext >&5
|
|
12606 rm -rf conftest*
|
|
12607 echo "$ac_t""no" 1>&6
|
|
12608 fi
|
|
12609 rm -f conftest*
|
|
12610
|
|
12611 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
|
1161
|
12612 echo "configure:12613: checking whether localtime caches TZ" >&5
|
149
|
12613
|
|
12614 if test "$ac_cv_func_tzset" = "yes"; then
|
|
12615 cat > conftest.$ac_ext <<EOF
|
1161
|
12616 #line 12617 "configure"
|
0
|
12617 #include "confdefs.h"
|
|
12618 #include <time.h>
|
149
|
12619 #if STDC_HEADERS
|
0
|
12620 # include <stdlib.h>
|
|
12621 #endif
|
|
12622 extern char **environ;
|
|
12623 unset_TZ ()
|
|
12624 {
|
|
12625 char **from, **to;
|
|
12626 for (to = from = environ; (*to = *from); from++)
|
|
12627 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
12628 to++;
|
|
12629 }
|
149
|
12630 char TZ_GMT0[] = "TZ=GMT0";
|
|
12631 char TZ_PST8[] = "TZ=PST8";
|
0
|
12632 main()
|
|
12633 {
|
|
12634 time_t now = time ((time_t *) 0);
|
|
12635 int hour_GMT0, hour_unset;
|
149
|
12636 if (putenv (TZ_GMT0) != 0)
|
0
|
12637 exit (1);
|
|
12638 hour_GMT0 = localtime (&now)->tm_hour;
|
|
12639 unset_TZ ();
|
|
12640 hour_unset = localtime (&now)->tm_hour;
|
149
|
12641 if (putenv (TZ_PST8) != 0)
|
0
|
12642 exit (1);
|
|
12643 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
12644 exit (1);
|
|
12645 unset_TZ ();
|
|
12646 if (localtime (&now)->tm_hour != hour_unset)
|
|
12647 exit (1);
|
|
12648 exit (0);
|
|
12649 }
|
|
12650 EOF
|
1161
|
12651 if { (eval echo configure:12652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
12652 then
|
0
|
12653 emacs_cv_localtime_cache=no
|
149
|
12654 else
|
373
|
12655 conftest_rc="$?"
|
149
|
12656 echo "configure: failed program was:" >&5
|
|
12657 cat conftest.$ac_ext >&5
|
|
12658 rm -fr conftest*
|
0
|
12659 emacs_cv_localtime_cache=yes
|
|
12660 fi
|
|
12661 rm -fr conftest*
|
149
|
12662 else
|
|
12663 # If we lack tzset, report that localtime does not cache TZ,
|
|
12664 # since we can't invalidate the cache if we don't have tzset.
|
|
12665 emacs_cv_localtime_cache=no
|
|
12666 fi
|
|
12667 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
|
|
12668 if test $emacs_cv_localtime_cache = yes; then
|
|
12669 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12670 Defining LOCALTIME_CACHE
|
|
12671 EOF
|
|
12672 cat >> confdefs.h <<\EOF
|
|
12673 #define LOCALTIME_CACHE 1
|
|
12674 EOF
|
|
12675 }
|
|
12676
|
|
12677 fi
|
|
12678
|
|
12679 if test "$HAVE_TIMEVAL" = "yes"; then
|
274
|
12680 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
|
1161
|
12681 echo "configure:12682: checking whether gettimeofday accepts one or two arguments" >&5
|
|
12682 cat > conftest.$ac_ext <<EOF
|
|
12683 #line 12684 "configure"
|
0
|
12684 #include "confdefs.h"
|
|
12685
|
|
12686 #ifdef TIME_WITH_SYS_TIME
|
|
12687 #include <sys/time.h>
|
|
12688 #include <time.h>
|
|
12689 #else
|
|
12690 #ifdef HAVE_SYS_TIME_H
|
|
12691 #include <sys/time.h>
|
|
12692 #else
|
|
12693 #include <time.h>
|
|
12694 #endif
|
|
12695 #endif
|
|
12696
|
149
|
12697 int main() {
|
|
12698
|
0
|
12699 struct timeval time;
|
442
|
12700 gettimeofday (&time, 0);
|
|
12701
|
|
12702 ; return 0; }
|
|
12703 EOF
|
1161
|
12704 if { (eval echo configure:12705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
274
|
12705 rm -rf conftest*
|
|
12706 echo "$ac_t""two" 1>&6
|
|
12707 else
|
|
12708 echo "configure: failed program was:" >&5
|
|
12709 cat conftest.$ac_ext >&5
|
|
12710 rm -rf conftest*
|
|
12711 echo "$ac_t""one" 1>&6
|
149
|
12712 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12713 Defining GETTIMEOFDAY_ONE_ARGUMENT
|
|
12714 EOF
|
|
12715 cat >> confdefs.h <<\EOF
|
|
12716 #define GETTIMEOFDAY_ONE_ARGUMENT 1
|
|
12717 EOF
|
|
12718 }
|
|
12719
|
|
12720 fi
|
|
12721 rm -f conftest*
|
|
12722 fi
|
|
12723
|
|
12724
|
|
12725 echo $ac_n "checking for inline""... $ac_c" 1>&6
|
1161
|
12726 echo "configure:12727: checking for inline" >&5
|
149
|
12727
|
|
12728 ac_cv_c_inline=no
|
|
12729 for ac_kw in inline __inline__ __inline; do
|
|
12730 cat > conftest.$ac_ext <<EOF
|
1161
|
12731 #line 12732 "configure"
|
744
|
12732 #include "confdefs.h"
|
|
12733
|
|
12734 int main() {
|
|
12735 } $ac_kw foo() {
|
|
12736 ; return 0; }
|
|
12737 EOF
|
1161
|
12738 if { (eval echo configure:12739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
12739 rm -rf conftest*
|
|
12740 ac_cv_c_inline=$ac_kw; break
|
|
12741 else
|
|
12742 echo "configure: failed program was:" >&5
|
|
12743 cat conftest.$ac_ext >&5
|
|
12744 fi
|
|
12745 rm -f conftest*
|
|
12746 done
|
|
12747
|
|
12748
|
|
12749 echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
12750 case "$ac_cv_c_inline" in
|
|
12751 inline | yes) ;;
|
|
12752 no) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12753 Defining inline =
|
|
12754 EOF
|
|
12755 cat >> confdefs.h <<\EOF
|
|
12756 #define inline
|
|
12757 EOF
|
|
12758 }
|
|
12759 ;;
|
|
12760 *) { test "$extra_verbose" = "yes" && cat << EOF
|
|
12761 Defining inline = $ac_cv_c_inline
|
|
12762 EOF
|
|
12763 cat >> confdefs.h <<EOF
|
|
12764 #define inline $ac_cv_c_inline
|
|
12765 EOF
|
|
12766 }
|
|
12767 ;;
|
|
12768 esac
|
|
12769
|
442
|
12770 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
|
155
|
12771 echo " xemacs will be linked with \"inline.o\""
|
|
12772 fi
|
149
|
12773
|
|
12774
|
444
|
12775 if test "$__DECC" != "yes"; then
|
|
12776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
0
|
12777 # for constant arguments. Useless!
|
149
|
12778 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
1161
|
12779 echo "configure:12780: checking for working alloca.h" >&5
|
|
12780
|
|
12781 cat > conftest.$ac_ext <<EOF
|
|
12782 #line 12783 "configure"
|
0
|
12783 #include "confdefs.h"
|
|
12784 #include <alloca.h>
|
149
|
12785 int main() {
|
744
|
12786 char *p = alloca(2 * sizeof(int));
|
|
12787 ; return 0; }
|
|
12788 EOF
|
1161
|
12789 if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12790 rm -rf conftest*
|
|
12791 ac_cv_header_alloca_h=yes
|
|
12792 else
|
|
12793 echo "configure: failed program was:" >&5
|
|
12794 cat conftest.$ac_ext >&5
|
|
12795 rm -rf conftest*
|
|
12796 ac_cv_header_alloca_h=no
|
|
12797 fi
|
|
12798 rm -f conftest*
|
|
12799
|
|
12800 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
12801 if test $ac_cv_header_alloca_h = yes; then
|
|
12802 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12803 Defining HAVE_ALLOCA_H
|
|
12804 EOF
|
|
12805 cat >> confdefs.h <<\EOF
|
|
12806 #define HAVE_ALLOCA_H 1
|
|
12807 EOF
|
|
12808 }
|
|
12809
|
|
12810 fi
|
|
12811
|
|
12812 echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
1161
|
12813 echo "configure:12814: checking for alloca" >&5
|
|
12814
|
|
12815 cat > conftest.$ac_ext <<EOF
|
|
12816 #line 12817 "configure"
|
149
|
12817 #include "confdefs.h"
|
|
12818
|
|
12819 #ifdef __GNUC__
|
|
12820 # define alloca __builtin_alloca
|
0
|
12821 #else
|
420
|
12822 # ifdef _MSC_VER
|
|
12823 # include <malloc.h>
|
|
12824 # define alloca _alloca
|
149
|
12825 # else
|
420
|
12826 # if HAVE_ALLOCA_H
|
|
12827 # include <alloca.h>
|
149
|
12828 # else
|
420
|
12829 # ifdef _AIX
|
|
12830 #pragma alloca
|
|
12831 # else
|
|
12832 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
149
|
12833 char *alloca ();
|
420
|
12834 # endif
|
149
|
12835 # endif
|
|
12836 # endif
|
|
12837 # endif
|
0
|
12838 #endif
|
149
|
12839
|
|
12840 int main() {
|
|
12841 char *p = (char *) alloca(1);
|
0
|
12842 ; return 0; }
|
|
12843 EOF
|
1161
|
12844 if { (eval echo configure:12845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12845 rm -rf conftest*
|
|
12846 ac_cv_func_alloca_works=yes
|
|
12847 else
|
|
12848 echo "configure: failed program was:" >&5
|
|
12849 cat conftest.$ac_ext >&5
|
|
12850 rm -rf conftest*
|
|
12851 ac_cv_func_alloca_works=no
|
|
12852 fi
|
|
12853 rm -f conftest*
|
|
12854
|
|
12855 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
12856 if test $ac_cv_func_alloca_works = yes; then
|
|
12857 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12858 Defining HAVE_ALLOCA
|
|
12859 EOF
|
|
12860 cat >> confdefs.h <<\EOF
|
|
12861 #define HAVE_ALLOCA 1
|
|
12862 EOF
|
|
12863 }
|
|
12864
|
|
12865 fi
|
|
12866
|
|
12867 if test $ac_cv_func_alloca_works = no; then
|
0
|
12868 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
12869 # that cause trouble. Some versions do not even contain alloca or
|
|
12870 # contain a buggy version. If you still want to use their alloca,
|
|
12871 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
420
|
12872 ALLOCA=alloca.${ac_objext}
|
149
|
12873 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12874 Defining C_ALLOCA
|
|
12875 EOF
|
|
12876 cat >> confdefs.h <<\EOF
|
|
12877 #define C_ALLOCA 1
|
|
12878 EOF
|
|
12879 }
|
|
12880
|
|
12881
|
|
12882 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
1161
|
12883 echo "configure:12884: checking whether alloca needs Cray hooks" >&5
|
|
12884
|
|
12885 cat > conftest.$ac_ext <<EOF
|
|
12886 #line 12887 "configure"
|
149
|
12887 #include "confdefs.h"
|
|
12888 #if defined(CRAY) && ! defined(CRAY2)
|
|
12889 webecray
|
|
12890 #else
|
|
12891 wenotbecray
|
|
12892 #endif
|
|
12893
|
|
12894 EOF
|
|
12895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
12896 egrep "webecray" >/dev/null 2>&1; then
|
|
12897 rm -rf conftest*
|
|
12898 ac_cv_os_cray=yes
|
|
12899 else
|
|
12900 rm -rf conftest*
|
|
12901 ac_cv_os_cray=no
|
|
12902 fi
|
|
12903 rm -f conftest*
|
|
12904
|
|
12905
|
|
12906 echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
12907 if test $ac_cv_os_cray = yes; then
|
|
12908 for ac_func in _getb67 GETB67 getb67; do
|
|
12909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
12910 echo "configure:12911: checking for $ac_func" >&5
|
|
12911
|
|
12912 cat > conftest.$ac_ext <<EOF
|
|
12913 #line 12914 "configure"
|
149
|
12914 #include "confdefs.h"
|
|
12915 /* System header to define __stub macros and hopefully few prototypes,
|
|
12916 which can conflict with char $ac_func(); below. */
|
|
12917 #include <assert.h>
|
|
12918 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12919 /* We use char because int might match the return type of a gcc2
|
|
12920 builtin and then its argument prototype would still apply. */
|
|
12921 char $ac_func();
|
|
12922
|
|
12923 int main() {
|
|
12924
|
|
12925 /* The GNU C library defines this for functions which it implements
|
|
12926 to always fail with ENOSYS. Some functions are actually named
|
|
12927 something starting with __ and the normal name is an alias. */
|
|
12928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
12929 choke me
|
|
12930 #else
|
|
12931 $ac_func();
|
|
12932 #endif
|
|
12933
|
|
12934 ; return 0; }
|
|
12935 EOF
|
1161
|
12936 if { (eval echo configure:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12937 rm -rf conftest*
|
|
12938 eval "ac_cv_func_$ac_func=yes"
|
|
12939 else
|
|
12940 echo "configure: failed program was:" >&5
|
|
12941 cat conftest.$ac_ext >&5
|
|
12942 rm -rf conftest*
|
|
12943 eval "ac_cv_func_$ac_func=no"
|
|
12944 fi
|
|
12945 rm -f conftest*
|
|
12946
|
|
12947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12948 echo "$ac_t""yes" 1>&6
|
|
12949 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12950 Defining CRAY_STACKSEG_END = $ac_func
|
|
12951 EOF
|
|
12952 cat >> confdefs.h <<EOF
|
|
12953 #define CRAY_STACKSEG_END $ac_func
|
|
12954 EOF
|
|
12955 }
|
|
12956
|
|
12957 break
|
|
12958 else
|
|
12959 echo "$ac_t""no" 1>&6
|
|
12960 fi
|
|
12961
|
|
12962 done
|
|
12963 fi
|
|
12964
|
|
12965 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
1161
|
12966 echo "configure:12967: checking stack direction for C alloca" >&5
|
|
12967
|
|
12968 cat > conftest.$ac_ext <<EOF
|
|
12969 #line 12970 "configure"
|
0
|
12970 #include "confdefs.h"
|
|
12971 find_stack_direction ()
|
|
12972 {
|
|
12973 static char *addr = 0;
|
|
12974 auto char dummy;
|
|
12975 if (addr == 0)
|
|
12976 {
|
|
12977 addr = &dummy;
|
|
12978 return find_stack_direction ();
|
|
12979 }
|
|
12980 else
|
|
12981 return (&dummy > addr) ? 1 : -1;
|
|
12982 }
|
|
12983 main ()
|
|
12984 {
|
|
12985 exit (find_stack_direction() < 0);
|
|
12986 }
|
|
12987 EOF
|
1161
|
12988 if { (eval echo configure:12989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
12989 then
|
|
12990 ac_cv_c_stack_direction=1
|
|
12991 else
|
373
|
12992 conftest_rc="$?"
|
149
|
12993 echo "configure: failed program was:" >&5
|
|
12994 cat conftest.$ac_ext >&5
|
|
12995 rm -fr conftest*
|
|
12996 ac_cv_c_stack_direction=-1
|
0
|
12997 fi
|
|
12998 rm -fr conftest*
|
149
|
12999
|
|
13000 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
13001 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13002 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
|
|
13003 EOF
|
|
13004 cat >> confdefs.h <<EOF
|
|
13005 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
13006 EOF
|
|
13007 }
|
|
13008
|
|
13009 fi
|
|
13010
|
444
|
13011 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
|
151
|
13012 echo " xemacs will be linked with \"$ALLOCA\""
|
|
13013 fi
|
444
|
13014 fi
|
149
|
13015
|
|
13016 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
|
1161
|
13017 echo "configure:13018: checking for working strcoll" >&5
|
|
13018
|
|
13019 cat > conftest.$ac_ext <<EOF
|
|
13020 #line 13021 "configure"
|
0
|
13021 #include "confdefs.h"
|
|
13022 #include <string.h>
|
|
13023 main ()
|
|
13024 {
|
|
13025 exit (strcoll ("abc", "def") >= 0 ||
|
|
13026 strcoll ("ABC", "DEF") >= 0 ||
|
|
13027 strcoll ("123", "456") >= 0);
|
|
13028 }
|
|
13029 EOF
|
1161
|
13030 if { (eval echo configure:13031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
13031 then
|
|
13032 ac_cv_func_strcoll_works=yes
|
|
13033 else
|
373
|
13034 conftest_rc="$?"
|
149
|
13035 echo "configure: failed program was:" >&5
|
|
13036 cat conftest.$ac_ext >&5
|
|
13037 rm -fr conftest*
|
|
13038 ac_cv_func_strcoll_works=no
|
0
|
13039 fi
|
|
13040 rm -fr conftest*
|
|
13041
|
149
|
13042 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
|
|
13043 if test $ac_cv_func_strcoll_works = yes; then
|
|
13044 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13045 Defining HAVE_STRCOLL
|
|
13046 EOF
|
|
13047 cat >> confdefs.h <<\EOF
|
|
13048 #define HAVE_STRCOLL 1
|
|
13049 EOF
|
|
13050 }
|
|
13051
|
|
13052 fi
|
|
13053
|
|
13054
|
163
|
13055 for ac_func in getpgrp
|
|
13056 do
|
|
13057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1161
|
13058 echo "configure:13059: checking for $ac_func" >&5
|
|
13059
|
|
13060 cat > conftest.$ac_ext <<EOF
|
|
13061 #line 13062 "configure"
|
163
|
13062 #include "confdefs.h"
|
|
13063 /* System header to define __stub macros and hopefully few prototypes,
|
|
13064 which can conflict with char $ac_func(); below. */
|
|
13065 #include <assert.h>
|
|
13066 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13067 /* We use char because int might match the return type of a gcc2
|
|
13068 builtin and then its argument prototype would still apply. */
|
|
13069 char $ac_func();
|
|
13070
|
|
13071 int main() {
|
|
13072
|
|
13073 /* The GNU C library defines this for functions which it implements
|
|
13074 to always fail with ENOSYS. Some functions are actually named
|
|
13075 something starting with __ and the normal name is an alias. */
|
|
13076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
13077 choke me
|
|
13078 #else
|
|
13079 $ac_func();
|
|
13080 #endif
|
|
13081
|
|
13082 ; return 0; }
|
|
13083 EOF
|
1161
|
13084 if { (eval echo configure:13085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
163
|
13085 rm -rf conftest*
|
|
13086 eval "ac_cv_func_$ac_func=yes"
|
|
13087 else
|
|
13088 echo "configure: failed program was:" >&5
|
|
13089 cat conftest.$ac_ext >&5
|
|
13090 rm -rf conftest*
|
|
13091 eval "ac_cv_func_$ac_func=no"
|
|
13092 fi
|
|
13093 rm -f conftest*
|
|
13094
|
|
13095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
13096 echo "$ac_t""yes" 1>&6
|
|
13097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
13098 { test "$extra_verbose" = "yes" && cat << EOF
|
|
13099 Defining $ac_tr_func
|
|
13100 EOF
|
|
13101 cat >> confdefs.h <<EOF
|
|
13102 #define $ac_tr_func 1
|
|
13103 EOF
|
|
13104 }
|
|
13105
|
|
13106 else
|
|
13107 echo "$ac_t""no" 1>&6
|
|
13108 fi
|
|
13109 done
|
|
13110
|
|
13111 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
|
1161
|
13112 echo "configure:13113: checking whether getpgrp takes no argument" >&5
|
|
13113
|
|
13114 cat > conftest.$ac_ext <<EOF
|
|
13115 #line 13116 "configure"
|
163
|
13116 #include "confdefs.h"
|
|
13117
|
|
13118 /*
|
|
13119 * If this system has a BSD-style getpgrp(),
|
|
13120 * which takes a pid argument, exit unsuccessfully.
|
|
13121 *
|
|
13122 * Snarfed from Chet Ramey's bash pgrp.c test program
|
|
13123 */
|
|
13124 #include <stdio.h>
|
|
13125 #include <sys/types.h>
|
|
13126
|
|
13127 int pid;
|
|
13128 int pg1, pg2, pg3, pg4;
|
|
13129 int ng, np, s, child;
|
|
13130
|
|
13131 main()
|
|
13132 {
|
|
13133 pid = getpid();
|
|
13134 pg1 = getpgrp(0);
|
|
13135 pg2 = getpgrp();
|
|
13136 pg3 = getpgrp(pid);
|
|
13137 pg4 = getpgrp(1);
|
|
13138
|
|
13139 /*
|
|
13140 * If all of these values are the same, it's pretty sure that
|
|
13141 * we're on a system that ignores getpgrp's first argument.
|
|
13142 */
|
|
13143 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
|
|
13144 exit(0);
|
|
13145
|
|
13146 child = fork();
|
|
13147 if (child < 0)
|
|
13148 exit(1);
|
|
13149 else if (child == 0) {
|
|
13150 np = getpid();
|
|
13151 /*
|
|
13152 * If this is Sys V, this will not work; pgrp will be
|
|
13153 * set to np because setpgrp just changes a pgrp to be
|
|
13154 * the same as the pid.
|
|
13155 */
|
|
13156 setpgrp(np, pg1);
|
|
13157 ng = getpgrp(0); /* Same result for Sys V and BSD */
|
|
13158 if (ng == pg1) {
|
|
13159 exit(1);
|
|
13160 } else {
|
|
13161 exit(0);
|
|
13162 }
|
|
13163 } else {
|
|
13164 wait(&s);
|
|
13165 exit(s>>8);
|
|
13166 }
|
|
13167 }
|
|
13168
|
|
13169 EOF
|
1161
|
13170 if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
13171 then
|
|
13172 ac_cv_func_getpgrp_void=yes
|
|
13173 else
|
373
|
13174 conftest_rc="$?"
|
163
|
13175 echo "configure: failed program was:" >&5
|
|
13176 cat conftest.$ac_ext >&5
|
|
13177 rm -fr conftest*
|
|
13178 ac_cv_func_getpgrp_void=no
|
|
13179 fi
|
|
13180 rm -fr conftest*
|
|
13181
|
|
13182
|
|
13183 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
|
|
13184 if test $ac_cv_func_getpgrp_void = yes; then
|
|
13185 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13186 Defining GETPGRP_VOID
|
|
13187 EOF
|
|
13188 cat >> confdefs.h <<\EOF
|
|
13189 #define GETPGRP_VOID 1
|
|
13190 EOF
|
|
13191 }
|
|
13192
|
|
13193 fi
|
|
13194
|
|
13195
|
149
|
13196 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
1161
|
13197 echo "configure:13198: checking for working mmap" >&5
|
155
|
13198 case "$opsys" in ultrix* ) have_mmap=no ;; *)
|
|
13199 cat > conftest.$ac_ext <<EOF
|
1161
|
13200 #line 13201 "configure"
|
153
|
13201 #include "confdefs.h"
|
|
13202 #include <stdio.h>
|
|
13203 #include <unistd.h>
|
149
|
13204 #include <fcntl.h>
|
|
13205 #include <sys/mman.h>
|
|
13206
|
153
|
13207 #ifndef MAP_VARIABLE
|
|
13208 #define MAP_VARIABLE 0
|
0
|
13209 #endif
|
149
|
13210
|
153
|
13211 #ifndef MAP_FAILED
|
|
13212 #define MAP_FAILED -1
|
|
13213 #endif
|
|
13214
|
|
13215 int main (int argc, char *argv[])
|
0
|
13216 {
|
153
|
13217 int fd = -1;
|
|
13218 caddr_t p;
|
|
13219 #ifndef MAP_ANONYMOUS
|
|
13220 fd = open ("/dev/zero", O_RDWR);
|
|
13221 if (fd < 0)
|
|
13222 return 1;
|
|
13223 #define MAP_ANONYMOUS 0
|
|
13224 #endif
|
|
13225 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
|
|
13226 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
|
|
13227 fd, 0) != (void *) MAP_FAILED)
|
|
13228 return 0;
|
|
13229 perror ("conftest: mmap failed");
|
|
13230 return 1;
|
|
13231 }
|
|
13232 EOF
|
1161
|
13233 if { (eval echo configure:13234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
13234 then
|
153
|
13235 have_mmap=yes
|
149
|
13236 else
|
373
|
13237 conftest_rc="$?"
|
149
|
13238 echo "configure: failed program was:" >&5
|
|
13239 cat conftest.$ac_ext >&5
|
|
13240 rm -fr conftest*
|
153
|
13241 have_mmap=no
|
149
|
13242 fi
|
155
|
13243 rm -fr conftest* ;;
|
|
13244 esac
|
153
|
13245 echo "$ac_t""$have_mmap" 1>&6
|
|
13246 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
13247 Defining HAVE_MMAP
|
|
13248 EOF
|
|
13249 cat >> confdefs.h <<\EOF
|
|
13250 #define HAVE_MMAP 1
|
|
13251 EOF
|
|
13252 }
|
|
13253
|
412
|
13254
|
535
|
13255 case "$opsys" in cygwin*)
|
462
|
13256 test "$rel_alloc" = "default" && rel_alloc=no ;;
|
|
13257 esac
|
442
|
13258 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
|
|
13259 if test "$rel_alloc $have_mmap" = "default yes"; then
|
|
13260 if test "$doug_lea_malloc" = "yes"; then
|
|
13261 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
|
1161
|
13262 echo "configure:13263: checking for M_MMAP_THRESHOLD" >&5
|
442
|
13263 cat > conftest.$ac_ext <<EOF
|
1161
|
13264 #line 13265 "configure"
|
442
|
13265 #include "confdefs.h"
|
|
13266 #include <malloc.h>
|
|
13267 int main() {
|
|
13268
|
|
13269 #ifndef M_MMAP_THRESHOLD
|
|
13270 #error No M_MMAP_THRESHOLD :-(
|
|
13271 !@+$%^&*_)(_ - unlikely to compile...
|
|
13272 #endif
|
|
13273
|
|
13274 ; return 0; }
|
|
13275 EOF
|
1161
|
13276 if { (eval echo configure:13277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
13277 rm -rf conftest*
|
|
13278 rel_alloc=no; echo "$ac_t""yes" 1>&6;
|
|
13279 else
|
|
13280 echo "configure: failed program was:" >&5
|
|
13281 cat conftest.$ac_ext >&5
|
|
13282 rm -rf conftest*
|
|
13283 rel_alloc=yes; echo "$ac_t""no" 1>&6;
|
|
13284 fi
|
|
13285 rm -f conftest*
|
|
13286 else
|
|
13287 rel_alloc=yes
|
|
13288 fi
|
|
13289 fi
|
149
|
13290 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13291 Defining REL_ALLOC
|
|
13292 EOF
|
|
13293 cat >> confdefs.h <<\EOF
|
|
13294 #define REL_ALLOC 1
|
|
13295 EOF
|
|
13296 }
|
|
13297
|
|
13298
|
175
|
13299 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
|
|
13300 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
|
1161
|
13301 echo "configure:13302: checking for termios.h" >&5
|
|
13302
|
|
13303 cat > conftest.$ac_ext <<EOF
|
|
13304 #line 13305 "configure"
|
175
|
13305 #include "confdefs.h"
|
|
13306 #include <termios.h>
|
|
13307 EOF
|
|
13308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
13309 { (eval echo configure:13310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
175
|
13311 if test -z "$ac_err"; then
|
|
13312 rm -rf conftest*
|
|
13313 eval "ac_cv_header_$ac_safe=yes"
|
|
13314 else
|
|
13315 echo "$ac_err" >&5
|
|
13316 echo "configure: failed program was:" >&5
|
|
13317 cat conftest.$ac_ext >&5
|
|
13318 rm -rf conftest*
|
|
13319 eval "ac_cv_header_$ac_safe=no"
|
|
13320 fi
|
|
13321 rm -f conftest*
|
|
13322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13323 echo "$ac_t""yes" 1>&6
|
|
13324 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13325 Defining HAVE_TERMIOS
|
|
13326 EOF
|
|
13327 cat >> confdefs.h <<\EOF
|
|
13328 #define HAVE_TERMIOS 1
|
|
13329 EOF
|
|
13330 }
|
|
13331
|
|
13332 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13333 Defining SIGNALS_VIA_CHARACTERS
|
|
13334 EOF
|
|
13335 cat >> confdefs.h <<\EOF
|
|
13336 #define SIGNALS_VIA_CHARACTERS 1
|
|
13337 EOF
|
|
13338 }
|
|
13339
|
|
13340 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13341 Defining NO_TERMIO
|
|
13342 EOF
|
|
13343 cat >> confdefs.h <<\EOF
|
|
13344 #define NO_TERMIO 1
|
|
13345 EOF
|
|
13346 }
|
|
13347
|
|
13348 else
|
|
13349 echo "$ac_t""no" 1>&6
|
|
13350 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
|
|
13351 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
|
1161
|
13352 echo "configure:13353: checking for termio.h" >&5
|
|
13353
|
|
13354 cat > conftest.$ac_ext <<EOF
|
|
13355 #line 13356 "configure"
|
175
|
13356 #include "confdefs.h"
|
|
13357 #include <termio.h>
|
|
13358 EOF
|
|
13359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
13360 { (eval echo configure:13361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
175
|
13362 if test -z "$ac_err"; then
|
|
13363 rm -rf conftest*
|
|
13364 eval "ac_cv_header_$ac_safe=yes"
|
|
13365 else
|
|
13366 echo "$ac_err" >&5
|
|
13367 echo "configure: failed program was:" >&5
|
|
13368 cat conftest.$ac_ext >&5
|
|
13369 rm -rf conftest*
|
|
13370 eval "ac_cv_header_$ac_safe=no"
|
|
13371 fi
|
|
13372 rm -f conftest*
|
|
13373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13374 echo "$ac_t""yes" 1>&6
|
|
13375 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13376 Defining HAVE_TERMIO
|
|
13377 EOF
|
|
13378 cat >> confdefs.h <<\EOF
|
|
13379 #define HAVE_TERMIO 1
|
|
13380 EOF
|
|
13381 }
|
|
13382
|
|
13383 else
|
|
13384 echo "$ac_t""no" 1>&6
|
|
13385 fi
|
|
13386
|
|
13387 fi
|
|
13388
|
|
13389
|
|
13390
|
149
|
13391 echo $ac_n "checking for socket""... $ac_c" 1>&6
|
1161
|
13392 echo "configure:13393: checking for socket" >&5
|
|
13393
|
|
13394 cat > conftest.$ac_ext <<EOF
|
|
13395 #line 13396 "configure"
|
149
|
13396 #include "confdefs.h"
|
|
13397 /* System header to define __stub macros and hopefully few prototypes,
|
|
13398 which can conflict with char socket(); below. */
|
|
13399 #include <assert.h>
|
|
13400 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13401 /* We use char because int might match the return type of a gcc2
|
|
13402 builtin and then its argument prototype would still apply. */
|
|
13403 char socket();
|
|
13404
|
|
13405 int main() {
|
|
13406
|
0
|
13407 /* The GNU C library defines this for functions which it implements
|
|
13408 to always fail with ENOSYS. Some functions are actually named
|
|
13409 something starting with __ and the normal name is an alias. */
|
|
13410 #if defined (__stub_socket) || defined (__stub___socket)
|
|
13411 choke me
|
|
13412 #else
|
149
|
13413 socket();
|
0
|
13414 #endif
|
149
|
13415
|
0
|
13416 ; return 0; }
|
|
13417 EOF
|
1161
|
13418 if { (eval echo configure:13419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13419 rm -rf conftest*
|
|
13420 eval "ac_cv_func_socket=yes"
|
|
13421 else
|
|
13422 echo "configure: failed program was:" >&5
|
|
13423 cat conftest.$ac_ext >&5
|
|
13424 rm -rf conftest*
|
|
13425 eval "ac_cv_func_socket=no"
|
|
13426 fi
|
|
13427 rm -f conftest*
|
|
13428
|
|
13429 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
|
|
13430 echo "$ac_t""yes" 1>&6
|
|
13431 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
|
|
13432 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
|
1161
|
13433 echo "configure:13434: checking for netinet/in.h" >&5
|
|
13434
|
|
13435 cat > conftest.$ac_ext <<EOF
|
|
13436 #line 13437 "configure"
|
0
|
13437 #include "confdefs.h"
|
|
13438 #include <netinet/in.h>
|
|
13439 EOF
|
149
|
13440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
13441 { (eval echo configure:13442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13443 if test -z "$ac_err"; then
|
149
|
13444 rm -rf conftest*
|
|
13445 eval "ac_cv_header_$ac_safe=yes"
|
|
13446 else
|
|
13447 echo "$ac_err" >&5
|
|
13448 echo "configure: failed program was:" >&5
|
|
13449 cat conftest.$ac_ext >&5
|
|
13450 rm -rf conftest*
|
|
13451 eval "ac_cv_header_$ac_safe=no"
|
|
13452 fi
|
|
13453 rm -f conftest*
|
|
13454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13455 echo "$ac_t""yes" 1>&6
|
|
13456 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
|
|
13457 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
|
1161
|
13458 echo "configure:13459: checking for arpa/inet.h" >&5
|
|
13459
|
|
13460 cat > conftest.$ac_ext <<EOF
|
|
13461 #line 13462 "configure"
|
0
|
13462 #include "confdefs.h"
|
|
13463 #include <arpa/inet.h>
|
|
13464 EOF
|
149
|
13465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
13466 { (eval echo configure:13467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13468 if test -z "$ac_err"; then
|
149
|
13469 rm -rf conftest*
|
|
13470 eval "ac_cv_header_$ac_safe=yes"
|
|
13471 else
|
|
13472 echo "$ac_err" >&5
|
|
13473 echo "configure: failed program was:" >&5
|
|
13474 cat conftest.$ac_ext >&5
|
|
13475 rm -rf conftest*
|
|
13476 eval "ac_cv_header_$ac_safe=no"
|
|
13477 fi
|
|
13478 rm -f conftest*
|
|
13479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13480 echo "$ac_t""yes" 1>&6
|
0
|
13481
|
149
|
13482 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13483 Defining HAVE_SOCKETS
|
|
13484 EOF
|
|
13485 cat >> confdefs.h <<\EOF
|
|
13486 #define HAVE_SOCKETS 1
|
|
13487 EOF
|
|
13488 }
|
|
13489
|
|
13490 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
|
1161
|
13491 echo "configure:13492: checking "for sun_len member in struct sockaddr_un"" >&5
|
149
|
13492 cat > conftest.$ac_ext <<EOF
|
1161
|
13493 #line 13494 "configure"
|
149
|
13494 #include "confdefs.h"
|
|
13495
|
0
|
13496 #include <sys/types.h>
|
149
|
13497 #include <sys/socket.h>
|
|
13498 #include <sys/un.h>
|
|
13499
|
|
13500 int main() {
|
|
13501 static struct sockaddr_un x; x.sun_len = 1;
|
|
13502 ; return 0; }
|
|
13503 EOF
|
1161
|
13504 if { (eval echo configure:13505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13505 rm -rf conftest*
|
|
13506 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13507 Defining HAVE_SOCKADDR_SUN_LEN
|
|
13508 EOF
|
|
13509 cat >> confdefs.h <<\EOF
|
|
13510 #define HAVE_SOCKADDR_SUN_LEN 1
|
|
13511 EOF
|
|
13512 }
|
|
13513
|
|
13514 else
|
|
13515 echo "configure: failed program was:" >&5
|
|
13516 cat conftest.$ac_ext >&5
|
|
13517 rm -rf conftest*
|
|
13518 echo "$ac_t""no" 1>&6
|
|
13519 fi
|
|
13520 rm -f conftest*
|
259
|
13521 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
|
1161
|
13522 echo "configure:13523: checking "for ip_mreq struct in netinet/in.h"" >&5
|
259
|
13523 cat > conftest.$ac_ext <<EOF
|
1161
|
13524 #line 13525 "configure"
|
284
|
13525 #include "confdefs.h"
|
|
13526
|
|
13527 #include <sys/types.h>
|
259
|
13528 #include <netinet/in.h>
|
|
13529
|
|
13530 int main() {
|
|
13531 static struct ip_mreq x;
|
|
13532 ; return 0; }
|
|
13533 EOF
|
1161
|
13534 if { (eval echo configure:13535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
13535 rm -rf conftest*
|
|
13536 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13537 Defining HAVE_MULTICAST
|
|
13538 EOF
|
|
13539 cat >> confdefs.h <<\EOF
|
|
13540 #define HAVE_MULTICAST 1
|
|
13541 EOF
|
|
13542 }
|
|
13543
|
|
13544 else
|
|
13545 echo "configure: failed program was:" >&5
|
|
13546 cat conftest.$ac_ext >&5
|
|
13547 rm -rf conftest*
|
|
13548 echo "$ac_t""no" 1>&6
|
|
13549 fi
|
|
13550 rm -f conftest*
|
149
|
13551 else
|
|
13552 echo "$ac_t""no" 1>&6
|
|
13553 fi
|
|
13554
|
|
13555 else
|
|
13556 echo "$ac_t""no" 1>&6
|
|
13557 fi
|
|
13558
|
|
13559 else
|
|
13560 echo "$ac_t""no" 1>&6
|
|
13561 fi
|
|
13562
|
|
13563
|
|
13564 echo $ac_n "checking for msgget""... $ac_c" 1>&6
|
1161
|
13565 echo "configure:13566: checking for msgget" >&5
|
|
13566
|
|
13567 cat > conftest.$ac_ext <<EOF
|
|
13568 #line 13569 "configure"
|
149
|
13569 #include "confdefs.h"
|
|
13570 /* System header to define __stub macros and hopefully few prototypes,
|
|
13571 which can conflict with char msgget(); below. */
|
|
13572 #include <assert.h>
|
|
13573 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13574 /* We use char because int might match the return type of a gcc2
|
|
13575 builtin and then its argument prototype would still apply. */
|
|
13576 char msgget();
|
|
13577
|
|
13578 int main() {
|
|
13579
|
0
|
13580 /* The GNU C library defines this for functions which it implements
|
|
13581 to always fail with ENOSYS. Some functions are actually named
|
|
13582 something starting with __ and the normal name is an alias. */
|
|
13583 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
13584 choke me
|
|
13585 #else
|
149
|
13586 msgget();
|
0
|
13587 #endif
|
149
|
13588
|
0
|
13589 ; return 0; }
|
|
13590 EOF
|
1161
|
13591 if { (eval echo configure:13592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13592 rm -rf conftest*
|
|
13593 eval "ac_cv_func_msgget=yes"
|
|
13594 else
|
|
13595 echo "configure: failed program was:" >&5
|
|
13596 cat conftest.$ac_ext >&5
|
|
13597 rm -rf conftest*
|
|
13598 eval "ac_cv_func_msgget=no"
|
|
13599 fi
|
|
13600 rm -f conftest*
|
|
13601
|
|
13602 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
|
|
13603 echo "$ac_t""yes" 1>&6
|
|
13604 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
|
|
13605 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
|
1161
|
13606 echo "configure:13607: checking for sys/ipc.h" >&5
|
|
13607
|
|
13608 cat > conftest.$ac_ext <<EOF
|
|
13609 #line 13610 "configure"
|
0
|
13610 #include "confdefs.h"
|
|
13611 #include <sys/ipc.h>
|
|
13612 EOF
|
149
|
13613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
13614 { (eval echo configure:13615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13616 if test -z "$ac_err"; then
|
149
|
13617 rm -rf conftest*
|
|
13618 eval "ac_cv_header_$ac_safe=yes"
|
|
13619 else
|
|
13620 echo "$ac_err" >&5
|
|
13621 echo "configure: failed program was:" >&5
|
|
13622 cat conftest.$ac_ext >&5
|
|
13623 rm -rf conftest*
|
|
13624 eval "ac_cv_header_$ac_safe=no"
|
|
13625 fi
|
|
13626 rm -f conftest*
|
|
13627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13628 echo "$ac_t""yes" 1>&6
|
|
13629 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
|
|
13630 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
|
1161
|
13631 echo "configure:13632: checking for sys/msg.h" >&5
|
|
13632
|
|
13633 cat > conftest.$ac_ext <<EOF
|
|
13634 #line 13635 "configure"
|
0
|
13635 #include "confdefs.h"
|
|
13636 #include <sys/msg.h>
|
|
13637 EOF
|
149
|
13638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
13639 { (eval echo configure:13640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13641 if test -z "$ac_err"; then
|
149
|
13642 rm -rf conftest*
|
|
13643 eval "ac_cv_header_$ac_safe=yes"
|
|
13644 else
|
|
13645 echo "$ac_err" >&5
|
|
13646 echo "configure: failed program was:" >&5
|
|
13647 cat conftest.$ac_ext >&5
|
|
13648 rm -rf conftest*
|
|
13649 eval "ac_cv_header_$ac_safe=no"
|
|
13650 fi
|
|
13651 rm -f conftest*
|
|
13652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13653 echo "$ac_t""yes" 1>&6
|
|
13654 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13655 Defining HAVE_SYSVIPC
|
|
13656 EOF
|
|
13657 cat >> confdefs.h <<\EOF
|
|
13658 #define HAVE_SYSVIPC 1
|
|
13659 EOF
|
|
13660 }
|
|
13661
|
|
13662 else
|
|
13663 echo "$ac_t""no" 1>&6
|
|
13664 fi
|
|
13665
|
|
13666 else
|
|
13667 echo "$ac_t""no" 1>&6
|
|
13668 fi
|
|
13669
|
|
13670 else
|
|
13671 echo "$ac_t""no" 1>&6
|
|
13672 fi
|
|
13673
|
|
13674
|
|
13675 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
|
|
13676 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
|
1161
|
13677 echo "configure:13678: checking for dirent.h" >&5
|
|
13678
|
|
13679 cat > conftest.$ac_ext <<EOF
|
|
13680 #line 13681 "configure"
|
0
|
13681 #include "confdefs.h"
|
|
13682 #include <dirent.h>
|
|
13683 EOF
|
149
|
13684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
13685 { (eval echo configure:13686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13687 if test -z "$ac_err"; then
|
|
13688 rm -rf conftest*
|
149
|
13689 eval "ac_cv_header_$ac_safe=yes"
|
|
13690 else
|
|
13691 echo "$ac_err" >&5
|
|
13692 echo "configure: failed program was:" >&5
|
|
13693 cat conftest.$ac_ext >&5
|
|
13694 rm -rf conftest*
|
|
13695 eval "ac_cv_header_$ac_safe=no"
|
|
13696 fi
|
|
13697 rm -f conftest*
|
|
13698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13699 echo "$ac_t""yes" 1>&6
|
|
13700 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13701 Defining SYSV_SYSTEM_DIR
|
|
13702 EOF
|
|
13703 cat >> confdefs.h <<\EOF
|
|
13704 #define SYSV_SYSTEM_DIR 1
|
|
13705 EOF
|
|
13706 }
|
|
13707
|
|
13708 else
|
|
13709 echo "$ac_t""no" 1>&6
|
|
13710 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
|
|
13711 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
|
1161
|
13712 echo "configure:13713: checking for sys/dir.h" >&5
|
|
13713
|
|
13714 cat > conftest.$ac_ext <<EOF
|
|
13715 #line 13716 "configure"
|
0
|
13716 #include "confdefs.h"
|
|
13717 #include <sys/dir.h>
|
|
13718 EOF
|
149
|
13719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
13720 { (eval echo configure:13721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13722 if test -z "$ac_err"; then
|
149
|
13723 rm -rf conftest*
|
|
13724 eval "ac_cv_header_$ac_safe=yes"
|
|
13725 else
|
|
13726 echo "$ac_err" >&5
|
|
13727 echo "configure: failed program was:" >&5
|
|
13728 cat conftest.$ac_ext >&5
|
|
13729 rm -rf conftest*
|
|
13730 eval "ac_cv_header_$ac_safe=no"
|
|
13731 fi
|
|
13732 rm -f conftest*
|
|
13733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13734 echo "$ac_t""yes" 1>&6
|
0
|
13735 :
|
|
13736 else
|
149
|
13737 echo "$ac_t""no" 1>&6
|
|
13738 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13739 Defining NONSYSTEM_DIR_LIBRARY
|
|
13740 EOF
|
|
13741 cat >> confdefs.h <<\EOF
|
|
13742 #define NONSYSTEM_DIR_LIBRARY 1
|
|
13743 EOF
|
|
13744 }
|
|
13745
|
|
13746 fi
|
|
13747
|
|
13748 fi
|
|
13749
|
|
13750
|
|
13751 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
|
|
13752 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
|
1161
|
13753 echo "configure:13754: checking for nlist.h" >&5
|
|
13754
|
|
13755 cat > conftest.$ac_ext <<EOF
|
|
13756 #line 13757 "configure"
|
0
|
13757 #include "confdefs.h"
|
|
13758 #include <nlist.h>
|
|
13759 EOF
|
149
|
13760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
13761 { (eval echo configure:13762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13763 if test -z "$ac_err"; then
|
|
13764 rm -rf conftest*
|
149
|
13765 eval "ac_cv_header_$ac_safe=yes"
|
|
13766 else
|
|
13767 echo "$ac_err" >&5
|
|
13768 echo "configure: failed program was:" >&5
|
|
13769 cat conftest.$ac_ext >&5
|
|
13770 rm -rf conftest*
|
|
13771 eval "ac_cv_header_$ac_safe=no"
|
|
13772 fi
|
|
13773 rm -f conftest*
|
|
13774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13775 echo "$ac_t""yes" 1>&6
|
|
13776 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13777 Defining NLIST_STRUCT
|
|
13778 EOF
|
|
13779 cat >> confdefs.h <<\EOF
|
|
13780 #define NLIST_STRUCT 1
|
|
13781 EOF
|
|
13782 }
|
|
13783
|
|
13784 else
|
|
13785 echo "$ac_t""no" 1>&6
|
|
13786 fi
|
|
13787
|
|
13788
|
0
|
13789
|
149
|
13790 echo "checking "for sound support"" 1>&6
|
1161
|
13791 echo "configure:13792: checking "for sound support"" >&5
|
155
|
13792 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
|
|
13793
|
149
|
13794 if test "$with_native_sound" != "no"; then
|
155
|
13795 if test -n "$native_sound_lib"; then
|
|
13796 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
|
|
13797 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
|
1161
|
13798 echo "configure:13799: checking for multimedia/audio_device.h" >&5
|
|
13799
|
|
13800 cat > conftest.$ac_ext <<EOF
|
|
13801 #line 13802 "configure"
|
155
|
13802 #include "confdefs.h"
|
|
13803 #include <multimedia/audio_device.h>
|
|
13804 EOF
|
|
13805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
13806 { (eval echo configure:13807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
13808 if test -z "$ac_err"; then
|
|
13809 rm -rf conftest*
|
|
13810 eval "ac_cv_header_$ac_safe=yes"
|
|
13811 else
|
|
13812 echo "$ac_err" >&5
|
|
13813 echo "configure: failed program was:" >&5
|
|
13814 cat conftest.$ac_ext >&5
|
|
13815 rm -rf conftest*
|
|
13816 eval "ac_cv_header_$ac_safe=no"
|
|
13817 fi
|
|
13818 rm -f conftest*
|
|
13819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13820 echo "$ac_t""yes" 1>&6
|
|
13821 sound_found=yes sound_cflags=""
|
|
13822 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
13823 echo " xemacs will be linked with \"sunplay.o\""
|
|
13824 fi
|
|
13825 else
|
|
13826 echo "$ac_t""no" 1>&6
|
|
13827 fi
|
|
13828
|
|
13829 fi
|
|
13830
|
|
13831 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
|
|
13832 sound_found=yes
|
151
|
13833 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
13834 echo " xemacs will be linked with \"sunplay.o\""
|
|
13835 fi
|
149
|
13836 if test -d "/usr/demo/SOUND/include"
|
|
13837 then sound_cflags="-I/usr/demo/SOUND/include"
|
|
13838 else sound_cflags="-I/usr/demo/SOUND"
|
|
13839 fi
|
|
13840 if test -z "$native_sound_lib" ; then
|
|
13841 if test -r "/usr/demo/SOUND/lib/libaudio.a"
|
|
13842 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
|
|
13843 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
|
|
13844 fi
|
|
13845 fi
|
155
|
13846 fi
|
|
13847
|
|
13848 if test -z "$sound_found"; then
|
|
13849 case "$canonical" in
|
149
|
13850 *-sgi-* )
|
155
|
13851 if test -z "$native_sound_lib"; then
|
|
13852
|
149
|
13853 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
|
1161
|
13854 echo "configure:13855: checking for ALopenport in -laudio" >&5
|
149
|
13855 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
|
|
13856
|
|
13857 xe_check_libs=" -laudio "
|
|
13858 cat > conftest.$ac_ext <<EOF
|
1161
|
13859 #line 13860 "configure"
|
149
|
13860 #include "confdefs.h"
|
|
13861 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13862 /* We use char because int might match the return type of a gcc2
|
|
13863 builtin and then its argument prototype would still apply. */
|
|
13864 char ALopenport();
|
|
13865
|
|
13866 int main() {
|
|
13867 ALopenport()
|
|
13868 ; return 0; }
|
|
13869 EOF
|
1161
|
13870 if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13871 rm -rf conftest*
|
|
13872 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13873 else
|
|
13874 echo "configure: failed program was:" >&5
|
|
13875 cat conftest.$ac_ext >&5
|
|
13876 rm -rf conftest*
|
|
13877 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13878 fi
|
|
13879 rm -f conftest*
|
|
13880 xe_check_libs=""
|
|
13881
|
151
|
13882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
13883 echo "$ac_t""yes" 1>&6
|
|
13884 native_sound_lib="-laudio"
|
|
13885 else
|
|
13886 echo "$ac_t""no" 1>&6
|
|
13887 fi
|
|
13888
|
|
13889
|
155
|
13890 fi
|
|
13891 if test -n "$native_sound_lib"; then
|
|
13892 sound_found=yes sound_cflags=""
|
151
|
13893 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
|
|
13894 echo " xemacs will be linked with \"sgiplay.o\""
|
|
13895 fi
|
149
|
13896 fi ;;
|
|
13897 hppa*-hp-hpux* )
|
155
|
13898 if test -z "$native_sound_lib"; then
|
|
13899
|
149
|
13900 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
|
1161
|
13901 echo "configure:13902: checking for AOpenAudio in -lAlib" >&5
|
149
|
13902 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
|
|
13903
|
|
13904 xe_check_libs=" -lAlib "
|
|
13905 cat > conftest.$ac_ext <<EOF
|
1161
|
13906 #line 13907 "configure"
|
149
|
13907 #include "confdefs.h"
|
|
13908 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13909 /* We use char because int might match the return type of a gcc2
|
|
13910 builtin and then its argument prototype would still apply. */
|
|
13911 char AOpenAudio();
|
|
13912
|
|
13913 int main() {
|
|
13914 AOpenAudio()
|
|
13915 ; return 0; }
|
|
13916 EOF
|
1161
|
13917 if { (eval echo configure:13918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13918 rm -rf conftest*
|
|
13919 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13920 else
|
|
13921 echo "configure: failed program was:" >&5
|
|
13922 cat conftest.$ac_ext >&5
|
|
13923 rm -rf conftest*
|
|
13924 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13925 fi
|
|
13926 rm -f conftest*
|
|
13927 xe_check_libs=""
|
|
13928
|
151
|
13929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
13930 echo "$ac_t""yes" 1>&6
|
|
13931 native_sound_lib="-lAlib"
|
|
13932 else
|
|
13933 echo "$ac_t""no" 1>&6
|
|
13934 fi
|
|
13935
|
|
13936
|
155
|
13937 fi
|
|
13938 if test -n "$native_sound_lib"; then
|
|
13939 sound_found=yes
|
151
|
13940 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
|
|
13941 echo " xemacs will be linked with \"hpplay.o\""
|
|
13942 fi
|
169
|
13943 if test "$GCC" = "yes" # Kludge city
|
149
|
13944 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
|
|
13945 else sound_cflags="+e -I/usr/audio/examples"
|
|
13946 fi
|
|
13947 fi ;;
|
0
|
13948 esac
|
|
13949 fi
|
149
|
13950
|
155
|
13951 if test -z "$sound_found"; then
|
553
|
13952 if test "$with_msw" = "yes"; then
|
594
|
13953 sound_found=yes
|
|
13954 native_sound_lib=
|
|
13955 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then
|
|
13956 echo " xemacs will be linked with \"ntplay.o\""
|
|
13957 fi
|
553
|
13958 fi
|
|
13959 fi
|
|
13960
|
|
13961 if test -z "$sound_found"; then
|
149
|
13962 for dir in "machine" "sys" "linux"; do
|
|
13963 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
|
|
13964 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
|
1161
|
13965 echo "configure:13966: checking for ${dir}/soundcard.h" >&5
|
|
13966
|
|
13967 cat > conftest.$ac_ext <<EOF
|
|
13968 #line 13969 "configure"
|
149
|
13969 #include "confdefs.h"
|
|
13970 #include <${dir}/soundcard.h>
|
|
13971 EOF
|
|
13972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
13973 { (eval echo configure:13974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
13975 if test -z "$ac_err"; then
|
|
13976 rm -rf conftest*
|
|
13977 eval "ac_cv_header_$ac_safe=yes"
|
|
13978 else
|
|
13979 echo "$ac_err" >&5
|
|
13980 echo "configure: failed program was:" >&5
|
|
13981 cat conftest.$ac_ext >&5
|
|
13982 rm -rf conftest*
|
|
13983 eval "ac_cv_header_$ac_safe=no"
|
|
13984 fi
|
|
13985 rm -f conftest*
|
|
13986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13987 echo "$ac_t""yes" 1>&6
|
|
13988 sound_found=yes
|
426
|
13989 need_miscplay=yes
|
151
|
13990 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
|
|
13991 echo " xemacs will be linked with \"linuxplay.o\""
|
|
13992 fi
|
149
|
13993 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
13994 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
|
|
13995 EOF
|
|
13996 cat >> confdefs.h <<EOF
|
|
13997 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
|
149
|
13998 EOF
|
|
13999 }
|
|
14000
|
|
14001 break
|
|
14002 else
|
|
14003 echo "$ac_t""no" 1>&6
|
|
14004 fi
|
|
14005
|
|
14006 done
|
100
|
14007 fi
|
149
|
14008
|
|
14009 test "$sound_found" = "yes" && with_native_sound=yes
|
|
14010 fi
|
|
14011
|
|
14012 if test "$with_native_sound" = "yes"; then
|
|
14013 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14014 Defining HAVE_NATIVE_SOUND
|
|
14015 EOF
|
|
14016 cat >> confdefs.h <<\EOF
|
|
14017 #define HAVE_NATIVE_SOUND 1
|
|
14018 EOF
|
|
14019 }
|
|
14020
|
151
|
14021 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
|
14022 fi
|
|
14023
|
432
|
14024 if test "$with_nas_sound" != "no"; then
|
|
14025 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
|
|
14026 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
|
1161
|
14027 echo "configure:14028: checking for audio/audiolib.h" >&5
|
|
14028
|
|
14029 cat > conftest.$ac_ext <<EOF
|
|
14030 #line 14031 "configure"
|
432
|
14031 #include "confdefs.h"
|
|
14032 #include <audio/audiolib.h>
|
|
14033 EOF
|
|
14034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
14035 { (eval echo configure:14036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
432
|
14036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
14037 if test -z "$ac_err"; then
|
|
14038 rm -rf conftest*
|
|
14039 eval "ac_cv_header_$ac_safe=yes"
|
|
14040 else
|
|
14041 echo "$ac_err" >&5
|
|
14042 echo "configure: failed program was:" >&5
|
|
14043 cat conftest.$ac_ext >&5
|
|
14044 rm -rf conftest*
|
|
14045 eval "ac_cv_header_$ac_safe=no"
|
|
14046 fi
|
|
14047 rm -f conftest*
|
|
14048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14049 echo "$ac_t""yes" 1>&6
|
|
14050
|
|
14051
|
|
14052 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
|
1161
|
14053 echo "configure:14054: checking for AuOpenServer in -laudio" >&5
|
432
|
14054 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
|
|
14055
|
|
14056 xe_check_libs=" -laudio "
|
|
14057 cat > conftest.$ac_ext <<EOF
|
1161
|
14058 #line 14059 "configure"
|
432
|
14059 #include "confdefs.h"
|
|
14060 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14061 /* We use char because int might match the return type of a gcc2
|
|
14062 builtin and then its argument prototype would still apply. */
|
|
14063 char AuOpenServer();
|
|
14064
|
|
14065 int main() {
|
|
14066 AuOpenServer()
|
|
14067 ; return 0; }
|
|
14068 EOF
|
1161
|
14069 if { (eval echo configure:14070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
432
|
14070 rm -rf conftest*
|
|
14071 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14072 else
|
|
14073 echo "configure: failed program was:" >&5
|
|
14074 cat conftest.$ac_ext >&5
|
|
14075 rm -rf conftest*
|
|
14076 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14077 fi
|
|
14078 rm -f conftest*
|
|
14079 xe_check_libs=""
|
|
14080
|
|
14081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14082 echo "$ac_t""yes" 1>&6
|
|
14083 have_nas_sound=yes
|
|
14084 else
|
|
14085 echo "$ac_t""no" 1>&6
|
|
14086 fi
|
|
14087
|
|
14088
|
|
14089 else
|
|
14090 echo "$ac_t""no" 1>&6
|
|
14091 fi
|
|
14092
|
|
14093 if test "$have_nas_sound" = "yes"; then
|
|
14094 with_nas_sound=yes
|
|
14095 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
14096 Defining HAVE_NAS_SOUND
|
|
14097 EOF
|
|
14098 cat >> confdefs.h <<\EOF
|
|
14099 #define HAVE_NAS_SOUND 1
|
|
14100 EOF
|
|
14101 }
|
|
14102
|
432
|
14103 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
|
151
|
14104 echo " xemacs will be linked with \"nas.o\""
|
|
14105 fi
|
432
|
14106 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
|
|
14107 cat > conftest.$ac_ext <<EOF
|
1161
|
14108 #line 14109 "configure"
|
149
|
14109 #include "confdefs.h"
|
|
14110 #include <audio/Xtutil.h>
|
|
14111 EOF
|
|
14112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
14113 egrep "AuXtErrorJump" >/dev/null 2>&1; then
|
|
14114 :
|
|
14115 else
|
|
14116 rm -rf conftest*
|
432
|
14117 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
14118 Defining NAS_NO_ERROR_JUMP
|
|
14119 EOF
|
|
14120 cat >> confdefs.h <<\EOF
|
|
14121 #define NAS_NO_ERROR_JUMP 1
|
|
14122 EOF
|
|
14123 }
|
|
14124
|
|
14125 fi
|
|
14126 rm -f conftest*
|
|
14127
|
432
|
14128 else
|
|
14129 test "$with_nas_sound" = "yes" && \
|
|
14130 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
|
|
14131 with_nas_sound=no
|
|
14132 fi
|
|
14133 fi
|
|
14134
|
|
14135 if test "$with_esd_sound" != "no"; then
|
|
14136 # Extract the first word of "esd-config", so it can be a program name with args.
|
426
|
14137 set dummy esd-config; ac_word=$2
|
|
14138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1161
|
14139 echo "configure:14140: checking for $ac_word" >&5
|
426
|
14140
|
|
14141 if test -n "$have_esd_config"; then
|
|
14142 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
|
|
14143 else
|
|
14144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
14145 ac_dummy="$PATH"
|
|
14146 for ac_dir in $ac_dummy; do
|
|
14147 test -z "$ac_dir" && ac_dir=.
|
|
14148 if test -f $ac_dir/$ac_word; then
|
|
14149 ac_cv_prog_have_esd_config="yes"
|
|
14150 break
|
|
14151 fi
|
|
14152 done
|
|
14153 IFS="$ac_save_ifs"
|
|
14154 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
|
|
14155 fi
|
|
14156 have_esd_config="$ac_cv_prog_have_esd_config"
|
|
14157 if test -n "$have_esd_config"; then
|
|
14158 echo "$ac_t""$have_esd_config" 1>&6
|
|
14159 else
|
|
14160 echo "$ac_t""no" 1>&6
|
|
14161 fi
|
|
14162
|
432
|
14163 if test "$have_esd_config" = "yes"; then
|
|
14164 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
|
|
14165 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
|
|
14166 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
|
|
14167 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
|
1161
|
14168 echo "configure:14169: checking for esd_play_stream" >&5
|
|
14169
|
|
14170 cat > conftest.$ac_ext <<EOF
|
|
14171 #line 14172 "configure"
|
432
|
14172 #include "confdefs.h"
|
|
14173 /* System header to define __stub macros and hopefully few prototypes,
|
|
14174 which can conflict with char esd_play_stream(); below. */
|
|
14175 #include <assert.h>
|
|
14176 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14177 /* We use char because int might match the return type of a gcc2
|
|
14178 builtin and then its argument prototype would still apply. */
|
|
14179 char esd_play_stream();
|
|
14180
|
|
14181 int main() {
|
|
14182
|
|
14183 /* The GNU C library defines this for functions which it implements
|
|
14184 to always fail with ENOSYS. Some functions are actually named
|
|
14185 something starting with __ and the normal name is an alias. */
|
|
14186 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
|
|
14187 choke me
|
|
14188 #else
|
|
14189 esd_play_stream();
|
|
14190 #endif
|
|
14191
|
|
14192 ; return 0; }
|
|
14193 EOF
|
1161
|
14194 if { (eval echo configure:14195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
432
|
14195 rm -rf conftest*
|
|
14196 eval "ac_cv_func_esd_play_stream=yes"
|
|
14197 else
|
|
14198 echo "configure: failed program was:" >&5
|
|
14199 cat conftest.$ac_ext >&5
|
|
14200 rm -rf conftest*
|
|
14201 eval "ac_cv_func_esd_play_stream=no"
|
|
14202 fi
|
|
14203 rm -f conftest*
|
|
14204
|
|
14205 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
|
|
14206 echo "$ac_t""yes" 1>&6
|
|
14207 have_esd_sound=yes
|
|
14208 else
|
|
14209 echo "$ac_t""no" 1>&6
|
|
14210 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
|
|
14211 fi
|
|
14212
|
|
14213 fi
|
|
14214
|
|
14215 if test "$have_esd_sound" = "yes"; then
|
|
14216 with_esd_sound=yes
|
|
14217 need_miscplay=yes
|
|
14218 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
|
|
14219 echo " xemacs will be linked with \"esd.o\""
|
|
14220 fi
|
426
|
14221 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14222 Defining HAVE_ESD_SOUND
|
|
14223 EOF
|
|
14224 cat >> confdefs.h <<\EOF
|
|
14225 #define HAVE_ESD_SOUND 1
|
|
14226 EOF
|
|
14227 }
|
|
14228
|
432
|
14229 else
|
|
14230 test "$with_esd_sound" = "yes" && \
|
|
14231 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
|
|
14232 with_esd_sound=no
|
|
14233 fi
|
|
14234 fi
|
|
14235
|
|
14236 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
|
426
|
14237 echo " xemacs will be linked with \"miscplay.o\""
|
|
14238 fi
|
149
|
14239
|
|
14240
|
|
14241 test -z "$with_tty" && with_tty=yes
|
|
14242
|
|
14243 if test "$with_tty" = "yes" ; then
|
151
|
14244 echo "checking for TTY-related features" 1>&6
|
1161
|
14245 echo "configure:14246: checking for TTY-related features" >&5
|
149
|
14246 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14247 Defining HAVE_TTY
|
|
14248 EOF
|
|
14249 cat >> confdefs.h <<\EOF
|
|
14250 #define HAVE_TTY 1
|
|
14251 EOF
|
|
14252 }
|
|
14253
|
|
14254
|
|
14255 if test -z "$with_ncurses"; then
|
70
|
14256
|
151
|
14257 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
|
1161
|
14258 echo "configure:14259: checking for tgetent in -lncurses" >&5
|
151
|
14259 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
|
149
|
14260
|
|
14261 xe_check_libs=" -lncurses "
|
|
14262 cat > conftest.$ac_ext <<EOF
|
1161
|
14263 #line 14264 "configure"
|
149
|
14264 #include "confdefs.h"
|
|
14265 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14266 /* We use char because int might match the return type of a gcc2
|
|
14267 builtin and then its argument prototype would still apply. */
|
151
|
14268 char tgetent();
|
149
|
14269
|
|
14270 int main() {
|
151
|
14271 tgetent()
|
149
|
14272 ; return 0; }
|
|
14273 EOF
|
1161
|
14274 if { (eval echo configure:14275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14275 rm -rf conftest*
|
|
14276 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14277 else
|
|
14278 echo "configure: failed program was:" >&5
|
|
14279 cat conftest.$ac_ext >&5
|
|
14280 rm -rf conftest*
|
|
14281 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14282 fi
|
|
14283 rm -f conftest*
|
|
14284 xe_check_libs=""
|
|
14285
|
151
|
14286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14287 echo "$ac_t""yes" 1>&6
|
|
14288 with_ncurses=yes
|
|
14289 else
|
|
14290 echo "$ac_t""no" 1>&6
|
|
14291 with_ncurses=no
|
|
14292 fi
|
|
14293
|
|
14294
|
|
14295 fi
|
|
14296 if test "$with_ncurses" = "yes"; then
|
|
14297 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14298 Defining HAVE_NCURSES
|
|
14299 EOF
|
|
14300 cat >> confdefs.h <<\EOF
|
|
14301 #define HAVE_NCURSES 1
|
|
14302 EOF
|
|
14303 }
|
|
14304
|
|
14305 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
14306 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
1161
|
14307 echo "configure:14308: checking for ncurses/curses.h" >&5
|
|
14308
|
|
14309 cat > conftest.$ac_ext <<EOF
|
|
14310 #line 14311 "configure"
|
149
|
14311 #include "confdefs.h"
|
|
14312 #include <ncurses/curses.h>
|
|
14313 EOF
|
|
14314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
14315 { (eval echo configure:14316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
14317 if test -z "$ac_err"; then
|
|
14318 rm -rf conftest*
|
|
14319 eval "ac_cv_header_$ac_safe=yes"
|
|
14320 else
|
|
14321 echo "$ac_err" >&5
|
|
14322 echo "configure: failed program was:" >&5
|
|
14323 cat conftest.$ac_ext >&5
|
|
14324 rm -rf conftest*
|
|
14325 eval "ac_cv_header_$ac_safe=no"
|
|
14326 fi
|
|
14327 rm -f conftest*
|
|
14328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14329 echo "$ac_t""yes" 1>&6
|
442
|
14330 curses_h_file=ncurses/curses.h
|
149
|
14331 else
|
|
14332 echo "$ac_t""no" 1>&6
|
|
14333 fi
|
|
14334
|
|
14335 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
|
|
14336 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
|
1161
|
14337 echo "configure:14338: checking for ncurses/term.h" >&5
|
|
14338
|
|
14339 cat > conftest.$ac_ext <<EOF
|
|
14340 #line 14341 "configure"
|
0
|
14341 #include "confdefs.h"
|
|
14342 #include <ncurses/term.h>
|
|
14343 EOF
|
149
|
14344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
14345 { (eval echo configure:14346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14347 if test -z "$ac_err"; then
|
|
14348 rm -rf conftest*
|
149
|
14349 eval "ac_cv_header_$ac_safe=yes"
|
|
14350 else
|
|
14351 echo "$ac_err" >&5
|
|
14352 echo "configure: failed program was:" >&5
|
|
14353 cat conftest.$ac_ext >&5
|
|
14354 rm -rf conftest*
|
|
14355 eval "ac_cv_header_$ac_safe=no"
|
|
14356 fi
|
|
14357 rm -f conftest*
|
|
14358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14359 echo "$ac_t""yes" 1>&6
|
442
|
14360 term_h_file=ncurses/term.h
|
149
|
14361 else
|
|
14362 echo "$ac_t""no" 1>&6
|
|
14363 fi
|
|
14364
|
151
|
14365 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
14366 echo " xemacs will be linked with \"terminfo.o\""
|
|
14367 fi
|
|
14368 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
|
149
|
14369
|
153
|
14370 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
|
149
|
14371 save_c_switch_site="$c_switch_site"
|
|
14372 c_switch_site="$c_switch_site -I/usr/include/ncurses"
|
|
14373 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
14374 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
1161
|
14375 echo "configure:14376: checking for ncurses/curses.h" >&5
|
|
14376
|
|
14377 cat > conftest.$ac_ext <<EOF
|
|
14378 #line 14379 "configure"
|
0
|
14379 #include "confdefs.h"
|
|
14380 #include <ncurses/curses.h>
|
|
14381 EOF
|
149
|
14382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
14383 { (eval echo configure:14384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
14385 if test -z "$ac_err"; then
|
|
14386 rm -rf conftest*
|
149
|
14387 eval "ac_cv_header_$ac_safe=yes"
|
|
14388 else
|
|
14389 echo "$ac_err" >&5
|
|
14390 echo "configure: failed program was:" >&5
|
|
14391 cat conftest.$ac_ext >&5
|
|
14392 rm -rf conftest*
|
|
14393 eval "ac_cv_header_$ac_safe=no"
|
|
14394 fi
|
|
14395 rm -f conftest*
|
|
14396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14397 echo "$ac_t""yes" 1>&6
|
442
|
14398 curses_h_file=ncurses/curses.h
|
149
|
14399 else
|
|
14400 echo "$ac_t""no" 1>&6
|
|
14401 fi
|
|
14402
|
153
|
14403 if test "$ac_cv_header_ncurses_curses_h" = "yes"
|
561
|
14404 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2
|
149
|
14405 else c_switch_site="$save_c_switch_site"
|
|
14406 fi
|
|
14407 fi
|
151
|
14408 else if test "$have_terminfo" = "yes"; then
|
|
14409 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
14410 echo " xemacs will be linked with \"terminfo.o\""
|
|
14411 fi
|
|
14412 if test -n "$libs_termcap"; then
|
|
14413 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
14414 else
|
|
14415 for lib in curses termlib termcap; do
|
|
14416
|
|
14417 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
|
1161
|
14418 echo "configure:14419: checking for tgetent in -l$lib" >&5
|
151
|
14419 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
|
|
14420
|
|
14421 xe_check_libs=" -l$lib "
|
|
14422 cat > conftest.$ac_ext <<EOF
|
1161
|
14423 #line 14424 "configure"
|
149
|
14424 #include "confdefs.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. */
|
151
|
14428 char tgetent();
|
149
|
14429
|
|
14430 int main() {
|
151
|
14431 tgetent()
|
149
|
14432 ; return 0; }
|
|
14433 EOF
|
1161
|
14434 if { (eval echo configure:14435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14435 rm -rf conftest*
|
|
14436 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14437 else
|
|
14438 echo "configure: failed program was:" >&5
|
|
14439 cat conftest.$ac_ext >&5
|
|
14440 rm -rf conftest*
|
|
14441 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14442 fi
|
|
14443 rm -f conftest*
|
|
14444 xe_check_libs=""
|
|
14445
|
151
|
14446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14447 echo "$ac_t""yes" 1>&6
|
|
14448 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
|
|
14449 else
|
|
14450 echo "$ac_t""no" 1>&6
|
|
14451 fi
|
|
14452
|
|
14453
|
|
14454 done
|
|
14455 fi
|
|
14456 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
|
|
14457 echo " xemacs will be linked with \"tparam.o\""
|
|
14458 fi
|
|
14459 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
|
|
14460 if test -n "$libs_termcap"; then
|
|
14461 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
14462 else
|
|
14463
|
|
14464 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
|
1161
|
14465 echo "configure:14466: checking for tgetent in -lcurses" >&5
|
151
|
14466 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
14467
|
|
14468 xe_check_libs=" -lcurses "
|
|
14469 cat > conftest.$ac_ext <<EOF
|
1161
|
14470 #line 14471 "configure"
|
149
|
14471 #include "confdefs.h"
|
|
14472 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14473 /* We use char because int might match the return type of a gcc2
|
|
14474 builtin and then its argument prototype would still apply. */
|
151
|
14475 char tgetent();
|
149
|
14476
|
|
14477 int main() {
|
151
|
14478 tgetent()
|
149
|
14479 ; return 0; }
|
|
14480 EOF
|
1161
|
14481 if { (eval echo configure:14482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14482 rm -rf conftest*
|
|
14483 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14484 else
|
|
14485 echo "configure: failed program was:" >&5
|
|
14486 cat conftest.$ac_ext >&5
|
|
14487 rm -rf conftest*
|
|
14488 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14489 fi
|
|
14490 rm -f conftest*
|
|
14491 xe_check_libs=""
|
|
14492
|
151
|
14493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14494 echo "$ac_t""yes" 1>&6
|
|
14495 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
|
|
14496 else
|
|
14497 echo "$ac_t""no" 1>&6
|
|
14498 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
1161
|
14499 echo "configure:14500: checking for tgetent in -ltermcap" >&5
|
151
|
14500 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
|
14501
|
|
14502 xe_check_libs=" -ltermcap "
|
|
14503 cat > conftest.$ac_ext <<EOF
|
1161
|
14504 #line 14505 "configure"
|
149
|
14505 #include "confdefs.h"
|
|
14506 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14507 /* We use char because int might match the return type of a gcc2
|
|
14508 builtin and then its argument prototype would still apply. */
|
151
|
14509 char tgetent();
|
149
|
14510
|
|
14511 int main() {
|
151
|
14512 tgetent()
|
149
|
14513 ; return 0; }
|
|
14514 EOF
|
1161
|
14515 if { (eval echo configure:14516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14516 rm -rf conftest*
|
|
14517 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14518 else
|
|
14519 echo "configure: failed program was:" >&5
|
|
14520 cat conftest.$ac_ext >&5
|
|
14521 rm -rf conftest*
|
|
14522 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14523 fi
|
|
14524 rm -f conftest*
|
|
14525 xe_check_libs=""
|
|
14526
|
151
|
14527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14528 echo "$ac_t""yes" 1>&6
|
|
14529 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
|
|
14530 else
|
|
14531 echo "$ac_t""no" 1>&6
|
|
14532 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
|
|
14533 echo " xemacs will be linked with \"termcap.o\""
|
|
14534 fi
|
|
14535 fi
|
|
14536
|
|
14537
|
|
14538 fi
|
|
14539
|
|
14540
|
0
|
14541 fi
|
|
14542 fi
|
149
|
14543 fi
|
|
14544 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
14545 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
|
|
14546 EOF
|
|
14547 cat >> confdefs.h <<EOF
|
|
14548 #define CURSES_H_FILE "${curses_h_file-curses.h}"
|
149
|
14549 EOF
|
|
14550 }
|
|
14551
|
|
14552 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
14553 Defining TERM_H_FILE = "${term_h_file-term.h}"
|
|
14554 EOF
|
|
14555 cat >> confdefs.h <<EOF
|
|
14556 #define TERM_H_FILE "${term_h_file-term.h}"
|
149
|
14557 EOF
|
|
14558 }
|
|
14559
|
155
|
14560
|
|
14561 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
|
|
14562 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
|
1161
|
14563 echo "configure:14564: checking for gpm.h" >&5
|
|
14564
|
|
14565 cat > conftest.$ac_ext <<EOF
|
|
14566 #line 14567 "configure"
|
155
|
14567 #include "confdefs.h"
|
|
14568 #include <gpm.h>
|
|
14569 EOF
|
|
14570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
14571 { (eval echo configure:14572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
14573 if test -z "$ac_err"; then
|
|
14574 rm -rf conftest*
|
|
14575 eval "ac_cv_header_$ac_safe=yes"
|
|
14576 else
|
|
14577 echo "$ac_err" >&5
|
|
14578 echo "configure: failed program was:" >&5
|
|
14579 cat conftest.$ac_ext >&5
|
|
14580 rm -rf conftest*
|
|
14581 eval "ac_cv_header_$ac_safe=no"
|
|
14582 fi
|
|
14583 rm -f conftest*
|
|
14584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14585 echo "$ac_t""yes" 1>&6
|
|
14586 :
|
|
14587 else
|
|
14588 echo "$ac_t""no" 1>&6
|
|
14589 with_gpm=no
|
|
14590 fi
|
|
14591 }
|
|
14592 test -z "$with_gpm" && {
|
|
14593 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
|
1161
|
14594 echo "configure:14595: checking for Gpm_Open in -lgpm" >&5
|
155
|
14595 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
|
|
14596
|
|
14597 xe_check_libs=" -lgpm "
|
|
14598 cat > conftest.$ac_ext <<EOF
|
1161
|
14599 #line 14600 "configure"
|
155
|
14600 #include "confdefs.h"
|
|
14601 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14602 /* We use char because int might match the return type of a gcc2
|
|
14603 builtin and then its argument prototype would still apply. */
|
|
14604 char Gpm_Open();
|
|
14605
|
|
14606 int main() {
|
|
14607 Gpm_Open()
|
|
14608 ; return 0; }
|
|
14609 EOF
|
1161
|
14610 if { (eval echo configure:14611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
155
|
14611 rm -rf conftest*
|
|
14612 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14613 else
|
|
14614 echo "configure: failed program was:" >&5
|
|
14615 cat conftest.$ac_ext >&5
|
|
14616 rm -rf conftest*
|
|
14617 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14618 fi
|
|
14619 rm -f conftest*
|
|
14620 xe_check_libs=""
|
|
14621
|
|
14622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14623 echo "$ac_t""yes" 1>&6
|
|
14624 with_gpm=yes
|
|
14625 else
|
|
14626 echo "$ac_t""no" 1>&6
|
|
14627 with_gpm=no
|
|
14628 fi
|
|
14629
|
|
14630 }
|
|
14631 if test "$with_gpm" = "yes"; then
|
|
14632 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14633 Defining HAVE_GPM
|
|
14634 EOF
|
|
14635 cat >> confdefs.h <<\EOF
|
|
14636 #define HAVE_GPM 1
|
|
14637 EOF
|
|
14638 }
|
|
14639
|
|
14640 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
|
|
14641 fi
|
|
14642
|
151
|
14643 else for feature in ncurses gpm; do
|
149
|
14644 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
561
|
14645 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
|
149
|
14646 fi
|
|
14647 eval "with_${feature}=no"
|
|
14648 done
|
151
|
14649 fi
|
149
|
14650
|
426
|
14651 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
|
384
|
14652 != "no no no" && echo "checking for database support" 1>&6
|
1161
|
14653 echo "configure:14654: checking for database support" >&5
|
426
|
14654
|
|
14655 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
|
384
|
14656 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
|
|
14657 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
|
1161
|
14658 echo "configure:14659: checking for ndbm.h" >&5
|
|
14659
|
|
14660 cat > conftest.$ac_ext <<EOF
|
|
14661 #line 14662 "configure"
|
384
|
14662 #include "confdefs.h"
|
|
14663 #include <ndbm.h>
|
265
|
14664 EOF
|
|
14665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1161
|
14666 { (eval echo configure:14667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
265
|
14668 if test -z "$ac_err"; then
|
|
14669 rm -rf conftest*
|
|
14670 eval "ac_cv_header_$ac_safe=yes"
|
|
14671 else
|
|
14672 echo "$ac_err" >&5
|
|
14673 echo "configure: failed program was:" >&5
|
|
14674 cat conftest.$ac_ext >&5
|
|
14675 rm -rf conftest*
|
|
14676 eval "ac_cv_header_$ac_safe=no"
|
|
14677 fi
|
|
14678 rm -f conftest*
|
|
14679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14680 echo "$ac_t""yes" 1>&6
|
384
|
14681 :
|
|
14682 else
|
|
14683 echo "$ac_t""no" 1>&6
|
|
14684
|
426
|
14685 test "$with_database_gdbm" = "yes" -o \
|
|
14686 "$with_database_dbm" = "yes" && \
|
384
|
14687 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
|
426
|
14688 with_database_gdbm=no with_database_dbm=no
|
|
14689 fi
|
|
14690
|
|
14691 fi
|
|
14692
|
|
14693 if test "$with_database_gdbm" != "no"; then
|
384
|
14694
|
149
|
14695 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
|
1161
|
14696 echo "configure:14697: checking for dbm_open in -lgdbm" >&5
|
149
|
14697 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
14698
|
|
14699 xe_check_libs=" -lgdbm "
|
|
14700 cat > conftest.$ac_ext <<EOF
|
1161
|
14701 #line 14702 "configure"
|
149
|
14702 #include "confdefs.h"
|
|
14703 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14704 /* We use char because int might match the return type of a gcc2
|
|
14705 builtin and then its argument prototype would still apply. */
|
|
14706 char dbm_open();
|
|
14707
|
|
14708 int main() {
|
|
14709 dbm_open()
|
|
14710 ; return 0; }
|
|
14711 EOF
|
1161
|
14712 if { (eval echo configure:14713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14713 rm -rf conftest*
|
|
14714 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14715 else
|
|
14716 echo "configure: failed program was:" >&5
|
|
14717 cat conftest.$ac_ext >&5
|
|
14718 rm -rf conftest*
|
|
14719 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14720 fi
|
|
14721 rm -f conftest*
|
|
14722 xe_check_libs=""
|
|
14723
|
151
|
14724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14725 echo "$ac_t""yes" 1>&6
|
426
|
14726 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
|
|
14727 else
|
|
14728 echo "$ac_t""no" 1>&6
|
|
14729 if test "$with_database_gdbm" = "yes"; then
|
384
|
14730 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
|
|
14731 fi
|
426
|
14732 with_database_gdbm=no
|
384
|
14733 fi
|
|
14734
|
|
14735
|
149
|
14736 fi
|
|
14737
|
151
|
14738 if test "$with_database_dbm" != "no"; then
|
149
|
14739 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
1161
|
14740 echo "configure:14741: checking for dbm_open" >&5
|
|
14741
|
|
14742 cat > conftest.$ac_ext <<EOF
|
|
14743 #line 14744 "configure"
|
149
|
14744 #include "confdefs.h"
|
|
14745 /* System header to define __stub macros and hopefully few prototypes,
|
|
14746 which can conflict with char dbm_open(); below. */
|
|
14747 #include <assert.h>
|
|
14748 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14749 /* We use char because int might match the return type of a gcc2
|
|
14750 builtin and then its argument prototype would still apply. */
|
|
14751 char dbm_open();
|
|
14752
|
|
14753 int main() {
|
|
14754
|
|
14755 /* The GNU C library defines this for functions which it implements
|
|
14756 to always fail with ENOSYS. Some functions are actually named
|
|
14757 something starting with __ and the normal name is an alias. */
|
|
14758 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
14759 choke me
|
|
14760 #else
|
|
14761 dbm_open();
|
|
14762 #endif
|
|
14763
|
|
14764 ; return 0; }
|
|
14765 EOF
|
1161
|
14766 if { (eval echo configure:14767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14767 rm -rf conftest*
|
|
14768 eval "ac_cv_func_dbm_open=yes"
|
|
14769 else
|
|
14770 echo "configure: failed program was:" >&5
|
|
14771 cat conftest.$ac_ext >&5
|
|
14772 rm -rf conftest*
|
|
14773 eval "ac_cv_func_dbm_open=no"
|
|
14774 fi
|
|
14775 rm -f conftest*
|
|
14776
|
|
14777 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
14778 echo "$ac_t""yes" 1>&6
|
384
|
14779 with_database_dbm=yes libdbm=
|
|
14780 else
|
|
14781 echo "$ac_t""no" 1>&6
|
|
14782
|
149
|
14783
|
|
14784 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
|
1161
|
14785 echo "configure:14786: checking for dbm_open in -ldbm" >&5
|
149
|
14786 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
14787
|
|
14788 xe_check_libs=" -ldbm "
|
|
14789 cat > conftest.$ac_ext <<EOF
|
1161
|
14790 #line 14791 "configure"
|
149
|
14791 #include "confdefs.h"
|
|
14792 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14793 /* We use char because int might match the return type of a gcc2
|
|
14794 builtin and then its argument prototype would still apply. */
|
|
14795 char dbm_open();
|
|
14796
|
|
14797 int main() {
|
|
14798 dbm_open()
|
|
14799 ; return 0; }
|
|
14800 EOF
|
1161
|
14801 if { (eval echo configure:14802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14802 rm -rf conftest*
|
|
14803 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14804 else
|
|
14805 echo "configure: failed program was:" >&5
|
|
14806 cat conftest.$ac_ext >&5
|
|
14807 rm -rf conftest*
|
|
14808 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14809 fi
|
|
14810 rm -f conftest*
|
|
14811 xe_check_libs=""
|
|
14812
|
151
|
14813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14814 echo "$ac_t""yes" 1>&6
|
384
|
14815 with_database_dbm=yes libdbm=-ldbm
|
|
14816 else
|
|
14817 echo "$ac_t""no" 1>&6
|
|
14818 test "$with_database_dbm" = "yes" && \
|
|
14819 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
|
|
14820 with_database_dbm=no
|
|
14821 fi
|
|
14822
|
|
14823
|
|
14824 fi
|
|
14825
|
|
14826 fi
|
|
14827
|
|
14828 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
|
426
|
14829 test "$with_database_gdbm" = "yes" -o \
|
|
14830 "$with_database_dbm" = "yes" && \
|
384
|
14831 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
14832 Defining HAVE_DBM
|
|
14833 EOF
|
|
14834 cat >> confdefs.h <<\EOF
|
|
14835 #define HAVE_DBM 1
|
|
14836 EOF
|
|
14837 }
|
|
14838
|
|
14839
|
|
14840 if test "$with_database_berkdb" != "no"; then
|
298
|
14841 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
|
1161
|
14842 echo "configure:14843: checking for Berkeley db.h" >&5
|
442
|
14843 for header in "db/db.h" "db.h"; do
|
298
|
14844 cat > conftest.$ac_ext <<EOF
|
1161
|
14845 #line 14846 "configure"
|
442
|
14846 #include "confdefs.h"
|
|
14847
|
|
14848 #include <stdlib.h>
|
|
14849 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
|
298
|
14850 #ifdef HAVE_INTTYPES_H
|
|
14851 #define __BIT_TYPES_DEFINED__
|
|
14852 #include <inttypes.h>
|
|
14853 typedef uint8_t u_int8_t;
|
|
14854 typedef uint16_t u_int16_t;
|
|
14855 typedef uint32_t u_int32_t;
|
|
14856 #ifdef WE_DONT_NEED_QUADS
|
|
14857 typedef uint64_t u_int64_t;
|
|
14858 #endif
|
|
14859 #endif
|
442
|
14860 #endif
|
|
14861 #include <$header>
|
|
14862
|
|
14863 int main() {
|
|
14864
|
|
14865 ; return 0; }
|
|
14866 EOF
|
1161
|
14867 if { (eval echo configure:14868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
14868 rm -rf conftest*
|
|
14869 db_h_file="$header"; break
|
298
|
14870 else
|
|
14871 echo "configure: failed program was:" >&5
|
|
14872 cat conftest.$ac_ext >&5
|
|
14873 fi
|
|
14874 rm -f conftest*
|
|
14875 done
|
442
|
14876 if test -z "$db_h_file"
|
298
|
14877 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
|
442
|
14878 else echo "$ac_t""$db_h_file" 1>&6
|
298
|
14879 fi
|
|
14880
|
|
14881 if test "$with_database_berkdb" != "no"; then
|
|
14882 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
|
1161
|
14883 echo "configure:14884: checking for Berkeley DB version" >&5
|
298
|
14884 cat > conftest.$ac_ext <<EOF
|
1161
|
14885 #line 14886 "configure"
|
442
|
14886 #include "confdefs.h"
|
|
14887 #include <$db_h_file>
|
298
|
14888 #if DB_VERSION_MAJOR > 1
|
|
14889 yes
|
|
14890 #endif
|
|
14891
|
|
14892 EOF
|
|
14893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
14894 egrep "yes" >/dev/null 2>&1; then
|
|
14895 rm -rf conftest*
|
448
|
14896 cat > conftest.$ac_ext <<EOF
|
1161
|
14897 #line 14898 "configure"
|
448
|
14898 #include "confdefs.h"
|
|
14899 #include <$db_h_file>
|
|
14900 #if DB_VERSION_MAJOR > 2
|
|
14901 yes
|
|
14902 #endif
|
|
14903
|
|
14904 EOF
|
|
14905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
14906 egrep "yes" >/dev/null 2>&1; then
|
|
14907 rm -rf conftest*
|
|
14908 echo "$ac_t""3" 1>&6; dbfunc=db_create
|
|
14909 else
|
|
14910 rm -rf conftest*
|
|
14911
|
|
14912 echo "$ac_t""2" 1>&6; dbfunc=db_open
|
|
14913 fi
|
|
14914 rm -f conftest*
|
|
14915
|
|
14916 else
|
|
14917 rm -rf conftest*
|
|
14918
|
|
14919 echo "$ac_t""1" 1>&6; dbfunc=dbopen
|
298
|
14920 fi
|
|
14921 rm -f conftest*
|
|
14922
|
|
14923 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
|
1161
|
14924 echo "configure:14925: checking for $dbfunc" >&5
|
|
14925
|
|
14926 cat > conftest.$ac_ext <<EOF
|
|
14927 #line 14928 "configure"
|
298
|
14928 #include "confdefs.h"
|
149
|
14929 /* System header to define __stub macros and hopefully few prototypes,
|
298
|
14930 which can conflict with char $dbfunc(); below. */
|
149
|
14931 #include <assert.h>
|
|
14932 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14933 /* We use char because int might match the return type of a gcc2
|
|
14934 builtin and then its argument prototype would still apply. */
|
298
|
14935 char $dbfunc();
|
149
|
14936
|
|
14937 int main() {
|
|
14938
|
0
|
14939 /* The GNU C library defines this for functions which it implements
|
|
14940 to always fail with ENOSYS. Some functions are actually named
|
|
14941 something starting with __ and the normal name is an alias. */
|
298
|
14942 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
|
0
|
14943 choke me
|
|
14944 #else
|
298
|
14945 $dbfunc();
|
0
|
14946 #endif
|
149
|
14947
|
0
|
14948 ; return 0; }
|
|
14949 EOF
|
1161
|
14950 if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
298
|
14951 rm -rf conftest*
|
|
14952 eval "ac_cv_func_$dbfunc=yes"
|
|
14953 else
|
|
14954 echo "configure: failed program was:" >&5
|
|
14955 cat conftest.$ac_ext >&5
|
|
14956 rm -rf conftest*
|
|
14957 eval "ac_cv_func_$dbfunc=no"
|
|
14958 fi
|
|
14959 rm -f conftest*
|
|
14960
|
|
14961 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
|
149
|
14962 echo "$ac_t""yes" 1>&6
|
|
14963 with_database_berkdb=yes need_libdb=no
|
|
14964 else
|
|
14965 echo "$ac_t""no" 1>&6
|
298
|
14966
|
|
14967
|
|
14968 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
|
1161
|
14969 echo "configure:14970: checking for $dbfunc in -ldb" >&5
|
298
|
14970 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
|
149
|
14971
|
|
14972 xe_check_libs=" -ldb "
|
|
14973 cat > conftest.$ac_ext <<EOF
|
1161
|
14974 #line 14975 "configure"
|
149
|
14975 #include "confdefs.h"
|
0
|
14976 /* Override any gcc2 internal prototype to avoid an error. */
|
149
|
14977 /* We use char because int might match the return type of a gcc2
|
|
14978 builtin and then its argument prototype would still apply. */
|
298
|
14979 char $dbfunc();
|
|
14980
|
|
14981 int main() {
|
|
14982 $dbfunc()
|
|
14983 ; return 0; }
|
|
14984 EOF
|
1161
|
14985 if { (eval echo configure:14986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14986 rm -rf conftest*
|
|
14987 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14988 else
|
|
14989 echo "configure: failed program was:" >&5
|
|
14990 cat conftest.$ac_ext >&5
|
|
14991 rm -rf conftest*
|
|
14992 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14993 fi
|
|
14994 rm -f conftest*
|
|
14995 xe_check_libs=""
|
|
14996
|
151
|
14997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14998 echo "$ac_t""yes" 1>&6
|
|
14999 with_database_berkdb=yes need_libdb=yes
|
|
15000 else
|
|
15001 echo "$ac_t""no" 1>&6
|
298
|
15002 fi
|
|
15003
|
|
15004
|
|
15005 fi
|
|
15006
|
|
15007 fi
|
|
15008
|
149
|
15009 if test "$with_database_berkdb" = "yes"; then
|
|
15010 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
15011 Defining DB_H_FILE = "$db_h_file"
|
|
15012 EOF
|
|
15013 cat >> confdefs.h <<EOF
|
|
15014 #define DB_H_FILE "$db_h_file"
|
149
|
15015 EOF
|
|
15016 }
|
|
15017
|
|
15018 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15019 Defining HAVE_BERKELEY_DB
|
|
15020 EOF
|
|
15021 cat >> confdefs.h <<\EOF
|
|
15022 #define HAVE_BERKELEY_DB 1
|
|
15023 EOF
|
|
15024 }
|
|
15025
|
151
|
15026 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
|
149
|
15027 else with_database_berkdb=no
|
|
15028 fi
|
|
15029 fi
|
|
15030
|
426
|
15031 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
|
272
|
15032 != "no no no"; then
|
149
|
15033 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15034 Defining HAVE_DATABASE
|
|
15035 EOF
|
|
15036 cat >> confdefs.h <<\EOF
|
|
15037 #define HAVE_DATABASE 1
|
|
15038 EOF
|
|
15039 }
|
|
15040
|
|
15041 fi
|
|
15042
|
|
15043 if test "$with_socks" = "yes"; then
|
|
15044
|
|
15045 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
|
1161
|
15046 echo "configure:15047: checking for SOCKSinit in -lsocks" >&5
|
149
|
15047 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
|
|
15048
|
|
15049 xe_check_libs=" -lsocks "
|
|
15050 cat > conftest.$ac_ext <<EOF
|
1161
|
15051 #line 15052 "configure"
|
149
|
15052 #include "confdefs.h"
|
|
15053 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15054 /* We use char because int might match the return type of a gcc2
|
|
15055 builtin and then its argument prototype would still apply. */
|
|
15056 char SOCKSinit();
|
|
15057
|
|
15058 int main() {
|
|
15059 SOCKSinit()
|
|
15060 ; return 0; }
|
|
15061 EOF
|
1161
|
15062 if { (eval echo configure:15063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
15063 rm -rf conftest*
|
|
15064 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
15065 else
|
|
15066 echo "configure: failed program was:" >&5
|
|
15067 cat conftest.$ac_ext >&5
|
|
15068 rm -rf conftest*
|
|
15069 eval "ac_cv_lib_$ac_lib_var=no"
|
|
15070 fi
|
|
15071 rm -f conftest*
|
|
15072 xe_check_libs=""
|
|
15073
|
151
|
15074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
15075 echo "$ac_t""yes" 1>&6
|
|
15076 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
15077 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
15078 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15079 Defining $ac_tr_lib
|
|
15080 EOF
|
|
15081 cat >> confdefs.h <<EOF
|
|
15082 #define $ac_tr_lib 1
|
|
15083 EOF
|
|
15084 }
|
|
15085
|
151
|
15086 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
|
149
|
15087
|
|
15088 else
|
|
15089 echo "$ac_t""no" 1>&6
|
|
15090 fi
|
|
15091
|
|
15092
|
|
15093 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15094 Defining HAVE_SOCKS
|
|
15095 EOF
|
|
15096 cat >> confdefs.h <<\EOF
|
|
15097 #define HAVE_SOCKS 1
|
|
15098 EOF
|
|
15099 }
|
|
15100
|
|
15101 fi
|
|
15102
|
|
15103 if test "$usage_tracking" = "yes"; then
|
|
15104 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15105 Defining USAGE_TRACKING
|
|
15106 EOF
|
|
15107 cat >> confdefs.h <<\EOF
|
|
15108 #define USAGE_TRACKING 1
|
|
15109 EOF
|
|
15110 }
|
|
15111
|
151
|
15112 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
|
149
|
15113 fi
|
|
15114
|
997
|
15115 cat > conftest.$ac_ext <<EOF
|
1161
|
15116 #line 15117 "configure"
|
272
|
15117 #include "confdefs.h"
|
|
15118 int main(int c,char *v[]){return 0;}
|
|
15119 EOF
|
1161
|
15120 if { (eval echo configure:15121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
272
|
15121 then
|
|
15122 :
|
|
15123 else
|
373
|
15124 conftest_rc="$?"
|
272
|
15125 echo "configure: failed program was:" >&5
|
|
15126 cat conftest.$ac_ext >&5
|
|
15127 rm -fr conftest*
|
|
15128
|
|
15129 echo ""
|
|
15130 echo "*** PANIC *** The C compiler can no longer build working executables."
|
|
15131 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
|
|
15132 echo "*** PANIC *** The most likely reason for this problem is that configure"
|
|
15133 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
|
|
15134 echo "*** PANIC *** found at run time."
|
|
15135 echo "*** PANIC ***"
|
|
15136 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
|
|
15137 echo "*** PANIC *** On other systems, try telling configure where to find the"
|
|
15138 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
|
|
15139 echo "*** PANIC ***"
|
|
15140 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
|
|
15141 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
|
|
15142 echo "*** PANIC *** on your system. Don't do that."
|
|
15143 exit 1
|
|
15144 fi
|
|
15145 rm -fr conftest*
|
|
15146
|
771
|
15147 if test "$win32_processes" != "yes"; then
|
398
|
15148 { test "$extra_verbose" = "yes" && cat << \EOF
|
263
|
15149 Defining HAVE_UNIX_PROCESSES
|
|
15150 EOF
|
|
15151 cat >> confdefs.h <<\EOF
|
|
15152 #define HAVE_UNIX_PROCESSES 1
|
|
15153 EOF
|
|
15154 }
|
|
15155
|
398
|
15156 fi
|
261
|
15157
|
155
|
15158
|
997
|
15159 if test "$with_modules" = "yes"; then
|
|
15160 ld_libs_module=
|
|
15161 else
|
|
15162
|
|
15163 T=""
|
|
15164 for W in $ldap_libs $postgresql_libs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15165 ld_libs_module="$T"
|
|
15166
|
|
15167 fi
|
|
15168
|
155
|
15169
|
|
15170 T=""
|
175
|
15171 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15172 CFLAGS="$T"
|
|
15173
|
|
15174
|
|
15175 T=""
|
155
|
15176 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15177 extra_objs="$T"
|
|
15178
|
|
15179
|
|
15180 T=""
|
|
15181 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
|
|
15182 c_switch_general="$T"
|
|
15183
|
|
15184
|
|
15185 T=""
|
462
|
15186 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
|
15187 c_switch_window_system="$T"
|
|
15188
|
|
15189
|
|
15190 T=""
|
|
15191 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15192 c_switch_all="$T"
|
|
15193
|
|
15194
|
|
15195 T=""
|
|
15196 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
|
|
15197 ld_switch_general="$T"
|
|
15198
|
|
15199
|
|
15200 T=""
|
|
15201 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15202 ld_switch_window_system="$T"
|
|
15203
|
|
15204
|
|
15205 T=""
|
|
15206 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15207 ld_switch_all="$T"
|
|
15208
|
|
15209
|
|
15210 T=""
|
|
15211 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15212 ld_libs_general="$T"
|
|
15213
|
|
15214
|
|
15215 T=""
|
462
|
15216 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
|
15217 ld_libs_window_system="$T"
|
|
15218
|
|
15219
|
|
15220 T=""
|
997
|
15221 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
|
15222 ld_libs_all="$T"
|
|
15223
|
149
|
15224
|
151
|
15225
|
|
15226 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
380
|
15227 internal_makefile_list="Makefile.in"
|
149
|
15228 SUBDIR_MAKEFILES=''
|
151
|
15229 test -d lock || mkdir lock
|
149
|
15230 for dir in $MAKE_SUBDIR; do
|
167
|
15231 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
|
|
15232 test -d "$d" || mkdir "$d"; cd "$d"
|
|
15233 done ) ;;
|
|
15234 * ) test -d "$dir" || mkdir "$dir" ;;
|
|
15235 esac
|
155
|
15236
|
|
15237 T=""
|
384
|
15238 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
155
|
15239 SUBDIR_MAKEFILES="$T"
|
|
15240
|
|
15241
|
|
15242 T=""
|
|
15243 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15244 internal_makefile_list="$T"
|
|
15245
|
149
|
15246 done
|
|
15247
|
|
15248
|
|
15249
|
167
|
15250
|
157
|
15251 for dir in src/s src/m; do
|
|
15252 if test ! -d "$dir" ; then
|
|
15253 echo Making symbolic link to "$srcdir/$dir"
|
|
15254 ${LN_S} "$srcdir/$dir" "$dir"
|
|
15255 fi
|
|
15256 done
|
|
15257
|
1111
|
15258 if test "$need_modules_common" = "yes"; then
|
|
15259 for dir in modules/common; do
|
|
15260 if test ! -d "$dir" ; then
|
|
15261 echo Making symbolic link to "$srcdir/$dir"
|
|
15262 ${LN_S} "$srcdir/$dir" "$dir"
|
|
15263 fi
|
|
15264 done
|
|
15265 fi
|
|
15266
|
149
|
15267 if test "$extra_verbose" = "yes"; then
|
151
|
15268 echo ""
|
163
|
15269 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
|
15270 echo ""
|
|
15271 fi
|
|
15272
|
438
|
15273
|
|
15274 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
|
|
15275 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
|
|
15276 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
|
|
15277 fi
|
|
15278
|
|
15279 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
|
|
15280 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
|
|
15281 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
|
|
15282 fi
|
|
15283
|
|
15284 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
|
|
15285 test "$extra_verbose" = "yes" && echo "creating TAGS"
|
|
15286 echo "
|
|
15287 $srcdir/TAGS,include" > "TAGS"
|
151
|
15288 fi
|
|
15289
|
373
|
15290 if test "$__SUNPRO_C" = "yes"; then
|
438
|
15291 test "$extra_verbose" = "yes" && echo "creating .sbinit"
|
157
|
15292 ( echo "# For use with Sun WorkShop's Source browser."
|
|
15293 echo "# See sbquery(1) and sbinit(4) for more information"
|
|
15294 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
|
|
15295 ) > .sbinit
|
|
15296 fi
|
151
|
15297
|
|
15298 rm -f core
|
|
15299
|
149
|
15300
|
|
15301
|
|
15302
|
|
15303
|
|
15304
|
|
15305
|
|
15306
|
|
15307
|
|
15308
|
|
15309
|
|
15310
|
|
15311
|
|
15312
|
|
15313
|
280
|
15314
|
420
|
15315
|
422
|
15316
|
|
15317
|
452
|
15318
|
278
|
15319 PREFIX=$prefix
|
|
15320 while true; do
|
|
15321 case "$PREFIX" in
|
|
15322 *\$* ) eval "PREFIX=$PREFIX" ;;
|
|
15323 *) break ;;
|
|
15324 esac
|
|
15325 done
|
|
15326
|
|
15327
|
|
15328
|
420
|
15329
|
278
|
15330 EXEC_PREFIX=$exec_prefix
|
|
15331 while true; do
|
|
15332 case "$EXEC_PREFIX" in
|
|
15333 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
|
|
15334 *) break ;;
|
|
15335 esac
|
|
15336 done
|
|
15337
|
149
|
15338
|
|
15339
|
|
15340
|
274
|
15341 INFODIR=$infodir
|
|
15342 while true; do
|
|
15343 case "$INFODIR" in
|
|
15344 *\$* ) eval "INFODIR=$INFODIR" ;;
|
|
15345 *) break ;;
|
|
15346 esac
|
|
15347 done
|
|
15348
|
|
15349
|
|
15350
|
|
15351
|
|
15352 INFOPATH=$infopath
|
|
15353 while true; do
|
|
15354 case "$INFOPATH" in
|
|
15355 *\$* ) eval "INFOPATH=$INFOPATH" ;;
|
|
15356 *) break ;;
|
|
15357 esac
|
|
15358 done
|
|
15359
|
|
15360
|
|
15361
|
|
15362
|
|
15363 PACKAGE_PATH=$package_path
|
|
15364 while true; do
|
|
15365 case "$PACKAGE_PATH" in
|
|
15366 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
|
|
15367 *) break ;;
|
|
15368 esac
|
|
15369 done
|
|
15370
|
|
15371
|
|
15372
|
|
15373
|
|
15374 LISPDIR=$lispdir
|
|
15375 while true; do
|
|
15376 case "$LISPDIR" in
|
|
15377 *\$* ) eval "LISPDIR=$LISPDIR" ;;
|
|
15378 *) break ;;
|
|
15379 esac
|
|
15380 done
|
|
15381
|
|
15382
|
|
15383
|
|
15384
|
388
|
15385 MODULEDIR=$moduledir
|
|
15386 while true; do
|
|
15387 case "$MODULEDIR" in
|
|
15388 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
|
|
15389 *) break ;;
|
|
15390 esac
|
|
15391 done
|
|
15392
|
|
15393
|
|
15394
|
|
15395
|
|
15396 SITELISPDIR=$sitelispdir
|
|
15397 while true; do
|
|
15398 case "$SITELISPDIR" in
|
|
15399 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
|
|
15400 *) break ;;
|
|
15401 esac
|
|
15402 done
|
|
15403
|
|
15404
|
|
15405
|
|
15406
|
|
15407 SITEMODULEDIR=$sitemoduledir
|
|
15408 while true; do
|
|
15409 case "$SITEMODULEDIR" in
|
|
15410 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
|
|
15411 *) break ;;
|
|
15412 esac
|
|
15413 done
|
|
15414
|
|
15415
|
|
15416
|
274
|
15417
|
|
15418 ETCDIR=$etcdir
|
|
15419 while true; do
|
|
15420 case "$ETCDIR" in
|
|
15421 *\$* ) eval "ETCDIR=$ETCDIR" ;;
|
|
15422 *) break ;;
|
|
15423 esac
|
|
15424 done
|
|
15425
|
|
15426
|
|
15427
|
|
15428
|
420
|
15429 DOCDIR=$docdir
|
|
15430 while true; do
|
|
15431 case "$DOCDIR" in
|
|
15432 *\$* ) eval "DOCDIR=$DOCDIR" ;;
|
|
15433 *) break ;;
|
|
15434 esac
|
|
15435 done
|
|
15436
|
|
15437
|
|
15438
|
|
15439
|
274
|
15440 ARCHLIBDIR=$archlibdir
|
|
15441 while true; do
|
|
15442 case "$ARCHLIBDIR" in
|
|
15443 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
|
|
15444 *) break ;;
|
|
15445 esac
|
|
15446 done
|
149
|
15447
|
|
15448
|
|
15449
|
|
15450
|
|
15451
|
|
15452
|
|
15453
|
|
15454
|
|
15455
|
|
15456
|
|
15457
|
|
15458
|
|
15459
|
|
15460
|
|
15461
|
|
15462
|
203
|
15463
|
207
|
15464
|
263
|
15465
|
267
|
15466
|
173
|
15467 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
|
|
15468
|
|
15469
|
|
15470
|
|
15471
|
|
15472
|
|
15473
|
|
15474
|
594
|
15475
|
380
|
15476
|
420
|
15477 if test "$with_prefix" = "yes"; then
|
|
15478 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15479 Defining PREFIX_USER_DEFINED
|
|
15480 EOF
|
|
15481 cat >> confdefs.h <<\EOF
|
|
15482 #define PREFIX_USER_DEFINED 1
|
|
15483 EOF
|
|
15484 }
|
|
15485
|
|
15486 fi
|
380
|
15487
|
267
|
15488 if test "$with_site_lisp" = "no"; then
|
|
15489 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15490 Defining INHIBIT_SITE_LISP
|
|
15491 EOF
|
|
15492 cat >> confdefs.h <<\EOF
|
|
15493 #define INHIBIT_SITE_LISP 1
|
|
15494 EOF
|
|
15495 }
|
|
15496
|
|
15497 fi
|
388
|
15498 if test "$with_site_modules" = "no"; then
|
|
15499 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15500 Defining INHIBIT_SITE_MODULES
|
|
15501 EOF
|
|
15502 cat >> confdefs.h <<\EOF
|
|
15503 #define INHIBIT_SITE_MODULES 1
|
|
15504 EOF
|
|
15505 }
|
|
15506
|
|
15507 fi
|
155
|
15508
|
207
|
15509
|
|
15510 T=""
|
|
15511 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15512 ac_configure_args="$T"
|
|
15513
|
149
|
15514 { test "$extra_verbose" = "yes" && cat << EOF
|
424
|
15515 Defining EMACS_CONFIGURATION = "$configuration"
|
149
|
15516 EOF
|
|
15517 cat >> confdefs.h <<EOF
|
424
|
15518 #define EMACS_CONFIGURATION "$configuration"
|
149
|
15519 EOF
|
|
15520 }
|
|
15521
|
|
15522 { test "$extra_verbose" = "yes" && cat << EOF
|
207
|
15523 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
|
173
|
15524 EOF
|
|
15525 cat >> confdefs.h <<EOF
|
207
|
15526 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
|
173
|
15527 EOF
|
|
15528 }
|
|
15529
|
149
|
15530
|
|
15531
|
|
15532 null_string=""
|
|
15533 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15534 Defining LD_SWITCH_X_SITE = $null_string
|
|
15535 EOF
|
|
15536 cat >> confdefs.h <<EOF
|
|
15537 #define LD_SWITCH_X_SITE $null_string
|
|
15538 EOF
|
|
15539 }
|
|
15540
|
|
15541 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15542 Defining LD_SWITCH_X_SITE_AUX = $null_string
|
|
15543 EOF
|
|
15544 cat >> confdefs.h <<EOF
|
|
15545 #define LD_SWITCH_X_SITE_AUX $null_string
|
|
15546 EOF
|
|
15547 }
|
|
15548
|
|
15549 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15550 Defining C_SWITCH_X_SITE = $null_string
|
|
15551 EOF
|
|
15552 cat >> confdefs.h <<EOF
|
|
15553 #define C_SWITCH_X_SITE $null_string
|
|
15554 EOF
|
|
15555 }
|
|
15556
|
|
15557 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15558 Defining LD_SWITCH_SITE = $null_string
|
|
15559 EOF
|
|
15560 cat >> confdefs.h <<EOF
|
|
15561 #define LD_SWITCH_SITE $null_string
|
|
15562 EOF
|
|
15563 }
|
|
15564
|
|
15565 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15566 Defining C_SWITCH_SITE = $null_string
|
|
15567 EOF
|
|
15568 cat >> confdefs.h <<EOF
|
|
15569 #define C_SWITCH_SITE $null_string
|
|
15570 EOF
|
|
15571 }
|
|
15572
|
|
15573
|
|
15574
|
181
|
15575 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15576 Defining GNU_MALLOC
|
|
15577 EOF
|
|
15578 cat >> confdefs.h <<\EOF
|
|
15579 #define GNU_MALLOC 1
|
|
15580 EOF
|
|
15581 }
|
|
15582
|
181
|
15583 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15584 Defining USE_SYSTEM_MALLOC
|
|
15585 EOF
|
|
15586 cat >> confdefs.h <<\EOF
|
|
15587 #define USE_SYSTEM_MALLOC 1
|
|
15588 EOF
|
|
15589 }
|
|
15590
|
181
|
15591 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
15592 Defining USE_DEBUG_MALLOC
|
|
15593 EOF
|
|
15594 cat >> confdefs.h <<\EOF
|
|
15595 #define USE_DEBUG_MALLOC 1
|
|
15596 EOF
|
|
15597 }
|
|
15598
|
181
|
15599 { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
15600 Defining USE_SYSTEM_MALLOC
|
|
15601 EOF
|
|
15602 cat >> confdefs.h <<\EOF
|
|
15603 #define USE_SYSTEM_MALLOC 1
|
|
15604 EOF
|
|
15605 }
|
|
15606
|
149
|
15607 fi
|
169
|
15608 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15609 Defining USE_GCC
|
|
15610 EOF
|
|
15611 cat >> confdefs.h <<\EOF
|
|
15612 #define USE_GCC 1
|
|
15613 EOF
|
|
15614 }
|
|
15615
|
|
15616 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15617 Defining EXTERNAL_WIDGET
|
|
15618 EOF
|
|
15619 cat >> confdefs.h <<\EOF
|
|
15620 #define EXTERNAL_WIDGET 1
|
|
15621 EOF
|
|
15622 }
|
|
15623
|
925
|
15624 test "$use_kkcc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15625 Defining USE_KKCC
|
|
15626 EOF
|
|
15627 cat >> confdefs.h <<\EOF
|
|
15628 #define USE_KKCC 1
|
|
15629 EOF
|
|
15630 }
|
|
15631
|
442
|
15632 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15633 Defining QUICK_BUILD
|
|
15634 EOF
|
|
15635 cat >> confdefs.h <<\EOF
|
|
15636 #define QUICK_BUILD 1
|
149
|
15637 EOF
|
|
15638 }
|
|
15639
|
380
|
15640 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15641 Defining PURIFY
|
|
15642 EOF
|
|
15643 cat >> confdefs.h <<\EOF
|
|
15644 #define PURIFY 1
|
|
15645 EOF
|
|
15646 }
|
|
15647
|
149
|
15648 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15649 Defining QUANTIFY
|
|
15650 EOF
|
|
15651 cat >> confdefs.h <<\EOF
|
|
15652 #define QUANTIFY 1
|
|
15653 EOF
|
|
15654 }
|
|
15655
|
|
15656 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15657 Defining MAIL_USE_POP
|
|
15658 EOF
|
|
15659 cat >> confdefs.h <<\EOF
|
|
15660 #define MAIL_USE_POP 1
|
|
15661 EOF
|
|
15662 }
|
|
15663
|
|
15664 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15665 Defining KERBEROS
|
|
15666 EOF
|
|
15667 cat >> confdefs.h <<\EOF
|
|
15668 #define KERBEROS 1
|
|
15669 EOF
|
|
15670 }
|
|
15671
|
|
15672 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15673 Defining HESIOD
|
|
15674 EOF
|
|
15675 cat >> confdefs.h <<\EOF
|
|
15676 #define HESIOD 1
|
|
15677 EOF
|
|
15678 }
|
|
15679
|
272
|
15680 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15681 Defining USE_UNION_TYPE
|
|
15682 EOF
|
|
15683 cat >> confdefs.h <<\EOF
|
|
15684 #define USE_UNION_TYPE 1
|
149
|
15685 EOF
|
0
|
15686 }
|
70
|
15687
|
424
|
15688 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15689 Defining PDUMP
|
|
15690 EOF
|
|
15691 cat >> confdefs.h <<\EOF
|
|
15692 #define PDUMP 1
|
|
15693 EOF
|
|
15694 }
|
|
15695
|
724
|
15696 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15697 Defining IPV6_CANONICALIZE
|
|
15698 EOF
|
|
15699 cat >> confdefs.h <<\EOF
|
|
15700 #define IPV6_CANONICALIZE 1
|
|
15701 EOF
|
|
15702 }
|
|
15703
|
70
|
15704
|
0
|
15705
|
118
|
15706 (
|
149
|
15707 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
|
|
15708 else
|
|
15709 echo "uname -a: `uname -a`"
|
|
15710 fi
|
|
15711 echo ""
|
|
15712 echo "$0 $quoted_arguments"
|
261
|
15713 ) > Installation
|
|
15714
|
414
|
15715 if test ! -z ${emacs_beta_version} ; then
|
|
15716 if test -z "${emacs_is_beta}" ; then
|
|
15717 xemacs_betaname=".${emacs_beta_version}"
|
|
15718 else
|
|
15719 xemacs_betaname="-b${emacs_beta_version}"
|
|
15720 fi
|
|
15721 else
|
430
|
15722 xemacs_betaname=""
|
414
|
15723 fi
|
149
|
15724
|
116
|
15725 (
|
0
|
15726 echo "
|
|
15727
|
975
|
15728 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" $xemacs_extra_name configured for \`$canonical'.
|
442
|
15729 "
|
|
15730 echo "
|
|
15731 Compilation / Installation:"
|
|
15732 echo " Source code location: $srcdir"
|
|
15733 echo " Installation prefix: $prefix"
|
70
|
15734 if test -n "$site_includes"; then
|
442
|
15735 echo " Additional header files: $site_includes"
|
149
|
15736 fi
|
|
15737 if test -n "$site_libraries"; then
|
442
|
15738 echo " Additional libraries: $site_libraries"
|
149
|
15739 fi
|
209
|
15740 if test -n "$site_prefixes"; then
|
442
|
15741 echo " Additional prefixes: $site_prefixes"
|
209
|
15742 fi
|
149
|
15743 if test -n "$runpath"; then
|
442
|
15744 echo " Runtime library search path: $runpath"
|
|
15745 fi
|
|
15746
|
|
15747 if test -n "$opsysfile"
|
|
15748 then echo " Operating system description file: \`$opsysfile'"
|
|
15749 else echo " Not using any operating system description file"
|
|
15750 fi
|
|
15751 if test -n "$machfile"
|
|
15752 then echo " Machine description file: \`$machfile'"
|
|
15753 else echo " Not using any machine description file"
|
|
15754 fi
|
|
15755
|
1111
|
15756 echo " Compiler: $XEMACS_CC $CFLAGS"
|
442
|
15757 echo " Relocating allocator for buffers: $rel_alloc"
|
|
15758 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
|
708
|
15759 case "$ld_switch_site" in
|
|
15760 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
|
|
15761 - Consider configuring with --pdump." ;;
|
|
15762 esac
|
442
|
15763
|
|
15764 echo "
|
|
15765 Window System:"
|
|
15766 if test "$with_msw" = "yes"; then
|
|
15767 echo " Compiling in support for the Microsoft window system."
|
|
15768 fi
|
|
15769 if test "$with_x11" = "yes"; then
|
|
15770 echo " Compiling in support for the X window system:"
|
|
15771 echo " - X Windows headers location: $x_includes"
|
|
15772 echo " - X Windows libraries location: $x_libraries"
|
|
15773 if test "$with_xauth" != yes; then
|
|
15774 echo " - Xau (X authority) not available."
|
|
15775 fi
|
|
15776 if test "$with_xmu" != yes; then
|
|
15777 echo " - Xmu library not available; substituting equivalent routines."
|
|
15778 fi
|
|
15779 if test "$with_wmcommand" != no; then
|
|
15780 echo " - Handling WM_COMMAND properly."
|
|
15781 fi
|
|
15782 fi
|
|
15783 if test "$need_athena" = "yes"; then
|
|
15784 echo " Compiling in support for the Athena widget set:"
|
|
15785 echo " - Athena headers location: $athena_h_path"
|
|
15786 echo " - Athena library to link: $athena_lib"
|
|
15787 fi
|
|
15788 case "$with_menubars" in
|
462
|
15789 gtk ) echo " Using GTK menubars." ;;
|
442
|
15790 lucid ) echo " Using Lucid menubars." ;;
|
|
15791 motif ) echo " Using Motif menubars."
|
|
15792 echo " *WARNING* The Motif menubar implementation is currently buggy."
|
|
15793 echo " We recommend using the Lucid menubar instead."
|
|
15794 echo " Re-run configure with --with-menubars='lucid'." ;;
|
|
15795 msw ) echo " Using MS-Windows menubars." ;;
|
|
15796 esac
|
|
15797 case "$with_scrollbars" in
|
462
|
15798 gtk ) echo " Using GTK scrollbars." ;;
|
442
|
15799 lucid ) echo " Using Lucid scrollbars." ;;
|
|
15800 motif ) echo " Using Motif scrollbars." ;;
|
|
15801 athena ) echo " Using Athena scrollbars." ;;
|
|
15802 msw ) echo " Using MS-Windows scrollbars." ;;
|
|
15803 esac
|
|
15804 case "$with_dialogs" in
|
462
|
15805 gtk ) echo " Using GTK dialog boxes." ;;
|
442
|
15806 motif ) echo " Using Motif dialog boxes."
|
|
15807 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
|
|
15808 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
|
|
15809 echo " We recommend using the Athena dialog boxes instead."
|
|
15810 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
|
|
15811 echo " Read the PROBLEMS file for more information."
|
|
15812 fi; fi ;;
|
|
15813 athena ) echo " Using Athena dialog boxes." ;;
|
|
15814 msw ) echo " Using MS-Windows dialog boxes." ;;
|
|
15815 esac
|
|
15816 case "$with_widgets" in
|
462
|
15817 gtk ) echo " Using GTK native widgets." ;;
|
442
|
15818 motif ) echo " Using Motif native widgets." ;;
|
|
15819 athena ) echo " Using Athena native widgets." ;;
|
|
15820 msw ) echo " Using MS-Windows native widgets." ;;
|
|
15821 esac
|
|
15822 if test "$with_dragndrop" = yes; then
|
|
15823 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
|
|
15824 echo " - Drag'n'Drop prototype: $dragndrop_proto."
|
|
15825 fi
|
|
15826
|
|
15827 echo "
|
|
15828 TTY:"
|
|
15829 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
15830 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
|
|
15831
|
|
15832 echo "
|
|
15833 Images:"
|
|
15834 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
|
153
|
15835 if test "$with_xpm" = yes; then
|
442
|
15836 echo " Compiling in support for XPM images."
|
175
|
15837 elif test "$with_x11" = yes; then
|
442
|
15838 echo " WARNING: -----------------------------------------------------------"
|
|
15839 echo " WARNING: Compiling without XPM image support."
|
373
|
15840 if test "$xpm_problem" != ""; then
|
|
15841 echo " Reason: $xpm_problem"
|
|
15842 fi
|
|
15843 echo " WARNING: You should strongly consider installing XPM."
|
151
|
15844 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
|
373
|
15845 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
442
|
15846 echo " WARNING: -----------------------------------------------------------"
|
371
|
15847 fi
|
373
|
15848 if test "$with_png" = yes; then
|
442
|
15849 echo " Compiling in support for PNG images."
|
373
|
15850 elif test "$window_system" != "none"; then
|
442
|
15851 echo " WARNING: -----------------------------------------------------------"
|
373
|
15852 echo " WARNING: Compiling without PNG image support."
|
|
15853 if test "$png_problem" != ""; then
|
|
15854 echo " Reason: $png_problem"
|
|
15855 fi
|
|
15856 echo " WARNING: You should strongly consider installing the PNG libraries."
|
|
15857 echo " WARNING: Otherwise certain images and glyphs may not display."
|
|
15858 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
442
|
15859 echo " WARNING: -----------------------------------------------------------"
|
|
15860 fi
|
|
15861 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
|
|
15862 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
|
310
|
15863 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
|
432
|
15864
|
442
|
15865 echo "
|
|
15866 Sound:"
|
|
15867 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
|
|
15868 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
|
|
15869 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
|
|
15870 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
|
|
15871
|
|
15872 echo "
|
|
15873 Databases:"
|
|
15874 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
|
116
|
15875 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
426
|
15876 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
|
442
|
15877 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
|
|
15878 if test "$with_postgresql" = yes; then
|
|
15879 echo " Compiling in support for PostgreSQL."
|
|
15880 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
|
|
15881 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
|
|
15882 fi
|
|
15883
|
|
15884 echo "
|
|
15885 Internationalization:"
|
|
15886 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
|
|
15887 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
|
|
15888 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
|
|
15889 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
|
|
15890 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
|
|
15891 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
120
|
15892 if test "$with_wnn" = yes; then
|
|
15893 echo " Compiling in support for the WNN input method on Mule."
|
442
|
15894 test "$with_wnn6" = yes && echo " - Using WNN version 6."
|
|
15895 fi
|
|
15896
|
|
15897 echo "
|
|
15898 Mail:"
|
|
15899 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
|
|
15900 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
|
|
15901 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
|
|
15902 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
|
|
15903
|
|
15904 echo "
|
|
15905 Other Features:"
|
708
|
15906 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
|
116
|
15907 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
149
|
15908 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
|
442
|
15909 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
15910 test "$with_dnet" = yes && echo " Compiling in support for DNET."
|
|
15911 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
|
|
15912 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
|
925
|
15913 test "$use_kkcc" = yes && echo " Using the new GC algorithms."
|
442
|
15914 test "$pdump" = yes && echo " Using the new portable dumper."
|
|
15915 test "$debug" = yes && echo " Compiling in support for extra debugging code."
|
|
15916 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
|
800
|
15917 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
|
15918 != "no no no no no no no no no"; then
|
151
|
15919 echo " WARNING: ---------------------------------------------------------"
|
|
15920 echo " WARNING: Compiling in support for runtime error checking."
|
|
15921 echo " WARNING: XEmacs will run noticeably more slowly as a result."
|
|
15922 echo " WARNING: Error checking is on by default for XEmacs beta releases."
|
|
15923 echo " WARNING: ---------------------------------------------------------"
|
|
15924 fi
|
118
|
15925 echo ""
|
116
|
15926 ) | tee -a Installation
|
118
|
15927 echo ""
|
|
15928
|
70
|
15929
|
0
|
15930 # Remove any trailing slashes in these variables.
|
149
|
15931 test -n "$prefix" &&
|
159
|
15932 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
15933 test -n "$exec_prefix" &&
|
159
|
15934 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
15935
|
|
15936
|
272
|
15937 for file in $internal_makefile_list; do
|
1111
|
15938 case $file in
|
|
15939 src/Makefile.in ) file="src/Makefile.in:src/Makefile.in.in:src/depend" ;;
|
|
15940 modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;;
|
|
15941 esac
|
430
|
15942 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
|
272
|
15943 done
|
276
|
15944 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
|
430
|
15945 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
|
15946
|
149
|
15947 trap '' 1 2 15
|
|
15948
|
|
15949 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
15950
|
|
15951 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
15952 # Let make expand exec_prefix.
|
|
15953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
0
|
15954
|
|
15955 # Any assignment to VPATH causes Sun make to only execute
|
|
15956 # the first set of double-colon rules, so remove it if not needed.
|
|
15957 # If there is a colon in the path, we need to keep it.
|
|
15958 if test "x$srcdir" = x.; then
|
|
15959 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
15960 fi
|
|
15961
|
149
|
15962 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
15963
|
|
15964 DEFS=-DHAVE_CONFIG_H
|
|
15965
|
|
15966 # Without the "./", some shells look in PATH for config.status.
|
|
15967 : ${CONFIG_STATUS=./config.status}
|
|
15968
|
|
15969 echo creating $CONFIG_STATUS
|
|
15970 rm -f $CONFIG_STATUS
|
|
15971 cat > $CONFIG_STATUS <<EOF
|
|
15972 #! /bin/sh
|
0
|
15973 # Generated automatically by configure.
|
|
15974 # Run this file to recreate the current configuration.
|
|
15975 # This directory was configured as follows,
|
|
15976 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
15977 #
|
149
|
15978 # $0 $ac_configure_args
|
|
15979 #
|
|
15980 # Compiler output produced by configure, useful for debugging
|
|
15981 # configure, is in ./config.log if it exists.
|
|
15982
|
|
15983 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
0
|
15984 for ac_option
|
|
15985 do
|
|
15986 case "\$ac_option" in
|
|
15987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
149
|
15988 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
15989 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
0
|
15990 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
420
|
15991 echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
0
|
15992 exit 0 ;;
|
|
15993 -help | --help | --hel | --he | --h)
|
|
15994 echo "\$ac_cs_usage"; exit 0 ;;
|
|
15995 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
15996 esac
|
|
15997 done
|
|
15998
|
|
15999 ac_given_srcdir=$srcdir
|
149
|
16000 ac_given_INSTALL="$INSTALL"
|
|
16001
|
276
|
16002 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
149
|
16003 EOF
|
|
16004 cat >> $CONFIG_STATUS <<EOF
|
|
16005
|
|
16006 # Protect against being on the right side of a sed subst in config.status.
|
|
16007 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
16008 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
0
|
16009 $ac_vpsub
|
|
16010 $extrasub
|
420
|
16011 s%@SHELL@%$SHELL%g
|
149
|
16012 s%@CFLAGS@%$CFLAGS%g
|
|
16013 s%@CPPFLAGS@%$CPPFLAGS%g
|
|
16014 s%@CXXFLAGS@%$CXXFLAGS%g
|
420
|
16015 s%@FFLAGS@%$FFLAGS%g
|
149
|
16016 s%@DEFS@%$DEFS%g
|
|
16017 s%@LDFLAGS@%$LDFLAGS%g
|
|
16018 s%@LIBS@%$LIBS%g
|
|
16019 s%@exec_prefix@%$exec_prefix%g
|
|
16020 s%@prefix@%$prefix%g
|
|
16021 s%@program_transform_name@%$program_transform_name%g
|
|
16022 s%@bindir@%$bindir%g
|
|
16023 s%@sbindir@%$sbindir%g
|
|
16024 s%@libexecdir@%$libexecdir%g
|
|
16025 s%@datadir@%$datadir%g
|
|
16026 s%@sysconfdir@%$sysconfdir%g
|
|
16027 s%@sharedstatedir@%$sharedstatedir%g
|
|
16028 s%@localstatedir@%$localstatedir%g
|
|
16029 s%@libdir@%$libdir%g
|
|
16030 s%@includedir@%$includedir%g
|
|
16031 s%@oldincludedir@%$oldincludedir%g
|
|
16032 s%@infodir@%$infodir%g
|
|
16033 s%@mandir@%$mandir%g
|
0
|
16034 s%@LN_S@%$LN_S%g
|
181
|
16035 s%@blddir@%$blddir%g
|
0
|
16036 s%@CC@%$CC%g
|
|
16037 s%@CPP@%$CPP%g
|
207
|
16038 s%@start_flags@%$start_flags%g
|
163
|
16039 s%@ld_switch_shared@%$ld_switch_shared%g
|
|
16040 s%@start_files@%$start_files%g
|
|
16041 s%@ld@%$ld%g
|
|
16042 s%@lib_gcc@%$lib_gcc%g
|
0
|
16043 s%@RANLIB@%$RANLIB%g
|
|
16044 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
420
|
16045 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
0
|
16046 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
16047 s%@YACC@%$YACC%g
|
|
16048 s%@SET_MAKE@%$SET_MAKE%g
|
462
|
16049 s%@GTK_CONFIG@%$GTK_CONFIG%g
|
149
|
16050 s%@X_CFLAGS@%$X_CFLAGS%g
|
|
16051 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
|
16052 s%@X_LIBS@%$X_LIBS%g
|
|
16053 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
276
|
16054 s%@install_pp@%$install_pp%g
|
159
|
16055 s%@libs_xauth@%$libs_xauth%g
|
274
|
16056 s%@dnd_objs@%$dnd_objs%g
|
265
|
16057 s%@dll_ld@%$dll_ld%g
|
|
16058 s%@dll_cflags@%$dll_cflags%g
|
388
|
16059 s%@dll_ldflags@%$dll_ldflags%g
|
|
16060 s%@dll_post@%$dll_post%g
|
|
16061 s%@dll_ldo@%$dll_ldo%g
|
|
16062 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
|
997
|
16063 s%@with_modules@%$with_modules%g
|
|
16064 s%@MOD_CC@%$MOD_CC%g
|
|
16065 s%@MODARCHDIR@%$MODARCHDIR%g
|
|
16066 s%@MAKE_DOCFILE@%$MAKE_DOCFILE%g
|
|
16067 s%@MODCFLAGS@%$MODCFLAGS%g
|
|
16068 s%@INSTALLPATH@%$INSTALLPATH%g
|
|
16069 s%@MOD_INSTALL_PROGRAM@%$MOD_INSTALL_PROGRAM%g
|
|
16070 s%@OBJECT_TO_BUILD@%$OBJECT_TO_BUILD%g
|
|
16071 s%@ldap_libs@%$ldap_libs%g
|
|
16072 s%@postgresql_libs@%$postgresql_libs%g
|
|
16073 s%@lwlib_objs@%$lwlib_objs%g
|
|
16074 s%@ALLOCA@%$ALLOCA%g
|
|
16075 s%@have_esd_config@%$have_esd_config%g
|
151
|
16076 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
|
167
|
16077 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
|
149
|
16078 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
|
|
16079 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
|
280
|
16080 s%@PROGNAME@%$PROGNAME%g
|
0
|
16081 s%@version@%$version%g
|
|
16082 s%@configuration@%$configuration%g
|
|
16083 s%@canonical@%$canonical%g
|
422
|
16084 s%@inststaticdir@%$inststaticdir%g
|
|
16085 s%@instvardir@%$instvardir%g
|
0
|
16086 s%@srcdir@%$srcdir%g
|
155
|
16087 s%@pkgdir@%$pkgdir%g
|
0
|
16088 s%@statedir@%$statedir%g
|
452
|
16089 s%@extra_includes@%$extra_includes%g
|
420
|
16090 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
|
278
|
16091 s%@PREFIX@%$PREFIX%g
|
420
|
16092 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
|
278
|
16093 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
|
274
|
16094 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
|
|
16095 s%@INFODIR@%$INFODIR%g
|
203
|
16096 s%@infopath@%$infopath%g
|
274
|
16097 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
|
|
16098 s%@INFOPATH@%$INFOPATH%g
|
269
|
16099 s%@package_path@%$package_path%g
|
274
|
16100 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
|
|
16101 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
|
0
|
16102 s%@lispdir@%$lispdir%g
|
274
|
16103 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
|
|
16104 s%@LISPDIR@%$LISPDIR%g
|
388
|
16105 s%@moduledir@%$moduledir%g
|
|
16106 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
|
|
16107 s%@MODULEDIR@%$MODULEDIR%g
|
|
16108 s%@sitelispdir@%$sitelispdir%g
|
|
16109 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
|
|
16110 s%@SITELISPDIR@%$SITELISPDIR%g
|
|
16111 s%@sitemoduledir@%$sitemoduledir%g
|
|
16112 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
|
|
16113 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
|
0
|
16114 s%@etcdir@%$etcdir%g
|
274
|
16115 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
|
|
16116 s%@ETCDIR@%$ETCDIR%g
|
420
|
16117 s%@docdir@%$docdir%g
|
|
16118 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
|
|
16119 s%@DOCDIR@%$DOCDIR%g
|
0
|
16120 s%@archlibdir@%$archlibdir%g
|
274
|
16121 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
|
|
16122 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
|
0
|
16123 s%@bitmapdir@%$bitmapdir%g
|
149
|
16124 s%@extra_objs@%$extra_objs%g
|
0
|
16125 s%@machfile@%$machfile%g
|
|
16126 s%@opsysfile@%$opsysfile%g
|
149
|
16127 s%@c_switch_general@%$c_switch_general%g
|
|
16128 s%@c_switch_window_system@%$c_switch_window_system%g
|
|
16129 s%@c_switch_all@%$c_switch_all%g
|
|
16130 s%@ld_switch_general@%$ld_switch_general%g
|
|
16131 s%@ld_switch_window_system@%$ld_switch_window_system%g
|
|
16132 s%@ld_switch_all@%$ld_switch_all%g
|
|
16133 s%@ld_libs_general@%$ld_libs_general%g
|
|
16134 s%@ld_libs_window_system@%$ld_libs_window_system%g
|
|
16135 s%@ld_libs_all@%$ld_libs_all%g
|
173
|
16136 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
|
149
|
16137 s%@native_sound_lib@%$native_sound_lib%g
|
|
16138 s%@sound_cflags@%$sound_cflags%g
|
0
|
16139 s%@dynodump_arch@%$dynodump_arch%g
|
380
|
16140 s%@XEMACS_CC@%$XEMACS_CC%g
|
0
|
16141 s%@internal_makefile_list@%$internal_makefile_list%g
|
149
|
16142
|
|
16143 CEOF
|
|
16144 EOF
|
|
16145
|
|
16146 cat >> $CONFIG_STATUS <<\EOF
|
|
16147
|
|
16148 # Split the substitutions into bite-sized pieces for seds with
|
|
16149 # small command number limits, like on Digital OSF/1 and HP-UX.
|
|
16150 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
16151 ac_file=1 # Number of current file.
|
|
16152 ac_beg=1 # First line for current file.
|
|
16153 ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
16154 ac_more_lines=:
|
|
16155 ac_sed_cmds=""
|
|
16156 while $ac_more_lines; do
|
|
16157 if test $ac_beg -gt 1; then
|
|
16158 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
16159 else
|
|
16160 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
16161 fi
|
|
16162 if test ! -s conftest.s$ac_file; then
|
|
16163 ac_more_lines=false
|
|
16164 rm -f conftest.s$ac_file
|
|
16165 else
|
|
16166 if test -z "$ac_sed_cmds"; then
|
|
16167 ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
16168 else
|
|
16169 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
16170 fi
|
|
16171 ac_file=`expr $ac_file + 1`
|
|
16172 ac_beg=$ac_end
|
|
16173 ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
16174 fi
|
|
16175 done
|
|
16176 if test -z "$ac_sed_cmds"; then
|
|
16177 ac_sed_cmds=cat
|
|
16178 fi
|
|
16179 EOF
|
|
16180
|
|
16181 cat >> $CONFIG_STATUS <<EOF
|
|
16182
|
272
|
16183 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
|
149
|
16184 EOF
|
|
16185 cat >> $CONFIG_STATUS <<\EOF
|
|
16186 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
16187 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
16188 case "$ac_file" in
|
|
16189 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
16190 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
16191 *) ac_file_in="${ac_file}.in" ;;
|
|
16192 esac
|
|
16193
|
|
16194 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
16195
|
|
16196 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
16197 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
16198 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
16199 # The file is in a subdirectory.
|
|
16200 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
16201 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
16202 # A "../" for each directory in $ac_dir_suffix.
|
|
16203 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
16204 else
|
|
16205 ac_dir_suffix= ac_dots=
|
|
16206 fi
|
|
16207
|
|
16208 case "$ac_given_srcdir" in
|
|
16209 .) srcdir=.
|
|
16210 if test -z "$ac_dots"; then top_srcdir=.
|
|
16211 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
16212 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
16213 *) # Relative path.
|
|
16214 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
16215 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
16216 esac
|
|
16217
|
|
16218 case "$ac_given_INSTALL" in
|
|
16219 [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
16220 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
16221 esac
|
|
16222
|
|
16223 echo creating "$ac_file"
|
|
16224 rm -f "$ac_file"
|
|
16225 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
16226 case "$ac_file" in
|
|
16227 *Makefile*) ac_comsub="1i\\
|
|
16228 # $configure_input" ;;
|
|
16229 *) ac_comsub= ;;
|
|
16230 esac
|
|
16231
|
|
16232 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
16233 sed -e "$ac_comsub
|
|
16234 s%@configure_input@%$configure_input%g
|
|
16235 s%@srcdir@%$srcdir%g
|
0
|
16236 s%@top_srcdir@%$top_srcdir%g
|
149
|
16237 s%@INSTALL@%$INSTALL%g
|
|
16238 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
0
|
16239 fi; done
|
149
|
16240 rm -f conftest.s*
|
|
16241
|
|
16242 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
16243 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
0
|
16244 #
|
|
16245 # ac_d sets the value in "#define NAME VALUE" lines.
|
149
|
16246 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
16247 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
0
|
16248 ac_dC='\3'
|
149
|
16249 ac_dD='%g'
|
0
|
16250 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
149
|
16251 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
16252 ac_uB='\([ ]\)%\1#\2define\3'
|
0
|
16253 ac_uC=' '
|
149
|
16254 ac_uD='\4%g'
|
0
|
16255 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
149
|
16256 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
16257 ac_eB='$%\1#\2define\3'
|
0
|
16258 ac_eC=' '
|
149
|
16259 ac_eD='%g'
|
|
16260
|
|
16261 if test "${CONFIG_HEADERS+set}" != set; then
|
|
16262 EOF
|
|
16263 cat >> $CONFIG_STATUS <<EOF
|
276
|
16264 CONFIG_HEADERS="src/config.h lwlib/config.h"
|
149
|
16265 EOF
|
|
16266 cat >> $CONFIG_STATUS <<\EOF
|
|
16267 fi
|
|
16268 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
16269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
16270 case "$ac_file" in
|
|
16271 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
16272 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
16273 *) ac_file_in="${ac_file}.in" ;;
|
|
16274 esac
|
|
16275
|
|
16276 echo creating $ac_file
|
|
16277
|
|
16278 rm -f conftest.frag conftest.in conftest.out
|
|
16279 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
16280 cat $ac_file_inputs > conftest.in
|
|
16281
|
|
16282 EOF
|
|
16283
|
|
16284 # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
16285 # the proper values into config.h.in to produce config.h. And first:
|
|
16286 # Protect against being on the right side of a sed subst in config.status.
|
|
16287 # Protect against being in an unquoted here document in config.status.
|
|
16288 rm -f conftest.vals
|
|
16289 cat > conftest.hdr <<\EOF
|
|
16290 s/[\\&%]/\\&/g
|
|
16291 s%[\\$`]%\\&%g
|
|
16292 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
16293 s%ac_d%ac_u%gp
|
|
16294 s%ac_u%ac_e%gp
|
|
16295 EOF
|
|
16296 sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
16297 rm -f conftest.hdr
|
|
16298
|
|
16299 # This sed command replaces #undef with comments. This is necessary, for
|
|
16300 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
16301 # on some systems where configure will not decide to define it.
|
|
16302 cat >> conftest.vals <<\EOF
|
|
16303 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
16304 EOF
|
|
16305
|
|
16306 # Break up conftest.vals because some shells have a limit on
|
|
16307 # the size of here documents, and old seds have small limits too.
|
|
16308
|
|
16309 rm -f conftest.tail
|
0
|
16310 while :
|
|
16311 do
|
149
|
16312 ac_lines=`grep -c . conftest.vals`
|
|
16313 # grep -c gives empty output for an empty file on some AIX systems.
|
0
|
16314 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
149
|
16315 # Write a limited-size here document to conftest.frag.
|
|
16316 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
16317 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
16318 echo 'CEOF
|
|
16319 sed -f conftest.frag conftest.in > conftest.out
|
|
16320 rm -f conftest.in
|
|
16321 mv conftest.out conftest.in
|
|
16322 ' >> $CONFIG_STATUS
|
|
16323 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
16324 rm -f conftest.vals
|
|
16325 mv conftest.tail conftest.vals
|
0
|
16326 done
|
149
|
16327 rm -f conftest.vals
|
|
16328
|
|
16329 cat >> $CONFIG_STATUS <<\EOF
|
|
16330 rm -f conftest.frag conftest.h
|
0
|
16331 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
149
|
16332 cat conftest.in >> conftest.h
|
|
16333 rm -f conftest.in
|
0
|
16334 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
16335 echo "$ac_file is unchanged"
|
|
16336 rm -f conftest.h
|
|
16337 else
|
149
|
16338 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
16339 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
16340 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
16341 # The file is in a subdirectory.
|
|
16342 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
16343 fi
|
0
|
16344 rm -f $ac_file
|
|
16345 mv conftest.h $ac_file
|
|
16346 fi
|
|
16347 fi; done
|
149
|
16348
|
|
16349 EOF
|
|
16350 cat >> $CONFIG_STATUS <<EOF
|
|
16351 CPP="$CPP"
|
|
16352 top_srcdir="$srcdir"
|
|
16353 MAKE_SUBDIR="$MAKE_SUBDIR"
|
|
16354
|
|
16355 EOF
|
|
16356 cat >> $CONFIG_STATUS <<\EOF
|
380
|
16357 for dir in . $MAKE_SUBDIR; do
|
151
|
16358 (
|
149
|
16359 cd $dir
|
|
16360 rm -f junk.c
|
163
|
16361 < Makefile.in \
|
165
|
16362 sed -e '/^# Generated/d' \
|
163
|
16363 -e 's%/\*\*/#.*%%' \
|
165
|
16364 -e 's/^ *# */#/' \
|
163
|
16365 -e '/^##/d' \
|
|
16366 -e '/^#/ {
|
|
16367 p
|
|
16368 d
|
380
|
16369 }' \
|
|
16370 -e '/./ {
|
163
|
16371 s/\([\"]\)/\\\1/g
|
|
16372 s/^/"/
|
|
16373 s/$/"/
|
|
16374 }' > junk.c;
|
380
|
16375
|
|
16376
|
|
16377
|
|
16378 echo creating $dir/Makefile
|
|
16379 $CPP -I. -I${top_srcdir}/src junk.c \
|
|
16380 | sed -e 's/^\#.*//' \
|
|
16381 -e 's/^[ ][ ]*$//'\
|
|
16382 -e 's/^ / /' \
|
442
|
16383 -e '/^[ ]*$/d' \
|
|
16384 -e '/^\"/ {
|
380
|
16385 s/\\\([\"]\)/\1/g
|
|
16386 s/^[ ]*\"//
|
|
16387 s/\"[ ]*$//
|
|
16388 }' > Makefile.new
|
149
|
16389 chmod 444 Makefile.new
|
|
16390 mv -f Makefile.new Makefile
|
380
|
16391
|
|
16392 echo creating $dir/GNUmakefile
|
|
16393 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
|
|
16394 | sed -e 's/^\#.*//' \
|
|
16395 -e 's/^[ ][ ]*$//'\
|
|
16396 -e 's/^ / /' \
|
442
|
16397 -e '/^[ ]*$/d' \
|
|
16398 -e '/^\"/ {
|
380
|
16399 s/\\\([\"]\)/\1/g
|
|
16400 s/^[ ]*\"//
|
|
16401 s/\"[ ]*$//
|
|
16402 }' > Makefile.new
|
|
16403 chmod 444 Makefile.new
|
|
16404 mv -f Makefile.new GNUmakefile
|
|
16405
|
|
16406 rm -f junk.c
|
|
16407 )
|
149
|
16408 done
|
0
|
16409
|
181
|
16410 sed < config.status >> lib-src/config.values \
|
|
16411 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
|
|
16412 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
|
|
16413 -e 's/^\([^ ]*\) $/\1 ""/' \
|
|
16414 -e 's/ 1$/ t/'
|
175
|
16415
|
|
16416
|
0
|
16417 exit 0
|
|
16418 EOF
|
149
|
16419 chmod +x $CONFIG_STATUS
|
|
16420 rm -fr confdefs* $ac_clean_files
|
|
16421 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|