Upgrade to version 1.0.6.12
[texmacs.git] / src / configure
blob08702ea7c9afff6f6c8f2ad2cbf9dabb8c1aa30c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
149 esac
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
226 IFS=" $as_nl"
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237 exec 6>&1
240 # Initializations.
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
261 # Factoring default headers for most tests.
262 ac_includes_default="\
263 #include <stdio.h>
264 #if HAVE_SYS_TYPES_H
265 # include <sys/types.h>
266 #endif
267 #if HAVE_SYS_STAT_H
268 # include <sys/stat.h>
269 #endif
270 #if STDC_HEADERS
271 # include <stdlib.h>
272 # include <stddef.h>
273 #else
274 # if HAVE_STDLIB_H
275 # include <stdlib.h>
276 # endif
277 #endif
278 #if HAVE_STRING_H
279 # if !STDC_HEADERS && HAVE_MEMORY_H
280 # include <memory.h>
281 # endif
282 # include <string.h>
283 #endif
284 #if HAVE_STRINGS_H
285 # include <strings.h>
286 #endif
287 #if HAVE_INTTYPES_H
288 # include <inttypes.h>
289 #else
290 # if HAVE_STDINT_H
291 # include <stdint.h>
292 # endif
293 #endif
294 #if HAVE_UNISTD_H
295 # include <unistd.h>
296 #endif"
299 # Initialize some variables set by options.
300 ac_init_help=
301 ac_init_version=false
302 # The variables have the same names as the options, with
303 # dashes changed to underlines.
304 cache_file=/dev/null
305 exec_prefix=NONE
306 no_create=
307 no_recursion=
308 prefix=NONE
309 program_prefix=NONE
310 program_suffix=NONE
311 program_transform_name=s,x,x,
312 silent=
313 site=
314 srcdir=
315 verbose=
316 x_includes=NONE
317 x_libraries=NONE
319 # Installation directory options.
320 # These are left unexpanded so users can "make install exec_prefix=/foo"
321 # and all the variables that are supposed to be based on exec_prefix
322 # by default will actually change.
323 # Use braces instead of parens because sh, perl, etc. also accept them.
324 bindir='${exec_prefix}/bin'
325 sbindir='${exec_prefix}/sbin'
326 libexecdir='${exec_prefix}/libexec'
327 datadir='${prefix}/share'
328 sysconfdir='${prefix}/etc'
329 sharedstatedir='${prefix}/com'
330 localstatedir='${prefix}/var'
331 libdir='${exec_prefix}/lib'
332 includedir='${prefix}/include'
333 oldincludedir='/usr/include'
334 infodir='${prefix}/info'
335 mandir='${prefix}/man'
337 ac_prev=
338 for ac_option
340 # If the previous option needs an argument, assign it.
341 if test -n "$ac_prev"; then
342 eval "$ac_prev=\$ac_option"
343 ac_prev=
344 continue
347 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349 # Accept the important Cygnus configure options, so we can diagnose typos.
351 case $ac_option in
353 -bindir | --bindir | --bindi | --bind | --bin | --bi)
354 ac_prev=bindir ;;
355 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
356 bindir=$ac_optarg ;;
358 -build | --build | --buil | --bui | --bu)
359 ac_prev=build_alias ;;
360 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
361 build_alias=$ac_optarg ;;
363 -cache-file | --cache-file | --cache-fil | --cache-fi \
364 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
365 ac_prev=cache_file ;;
366 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
367 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
368 cache_file=$ac_optarg ;;
370 --config-cache | -C)
371 cache_file=config.cache ;;
373 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
374 ac_prev=datadir ;;
375 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
376 | --da=*)
377 datadir=$ac_optarg ;;
379 -disable-* | --disable-*)
380 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
381 # Reject names that are not valid shell variable names.
382 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
383 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
384 { (exit 1); exit 1; }; }
385 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
386 eval "enable_$ac_feature=no" ;;
388 -enable-* | --enable-*)
389 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
393 { (exit 1); exit 1; }; }
394 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
395 case $ac_option in
396 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
397 *) ac_optarg=yes ;;
398 esac
399 eval "enable_$ac_feature='$ac_optarg'" ;;
401 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
402 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
403 | --exec | --exe | --ex)
404 ac_prev=exec_prefix ;;
405 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
406 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
407 | --exec=* | --exe=* | --ex=*)
408 exec_prefix=$ac_optarg ;;
410 -gas | --gas | --ga | --g)
411 # Obsolete; use --with-gas.
412 with_gas=yes ;;
414 -help | --help | --hel | --he | -h)
415 ac_init_help=long ;;
416 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
417 ac_init_help=recursive ;;
418 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
419 ac_init_help=short ;;
421 -host | --host | --hos | --ho)
422 ac_prev=host_alias ;;
423 -host=* | --host=* | --hos=* | --ho=*)
424 host_alias=$ac_optarg ;;
426 -includedir | --includedir | --includedi | --included | --include \
427 | --includ | --inclu | --incl | --inc)
428 ac_prev=includedir ;;
429 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
430 | --includ=* | --inclu=* | --incl=* | --inc=*)
431 includedir=$ac_optarg ;;
433 -infodir | --infodir | --infodi | --infod | --info | --inf)
434 ac_prev=infodir ;;
435 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
436 infodir=$ac_optarg ;;
438 -libdir | --libdir | --libdi | --libd)
439 ac_prev=libdir ;;
440 -libdir=* | --libdir=* | --libdi=* | --libd=*)
441 libdir=$ac_optarg ;;
443 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
444 | --libexe | --libex | --libe)
445 ac_prev=libexecdir ;;
446 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
447 | --libexe=* | --libex=* | --libe=*)
448 libexecdir=$ac_optarg ;;
450 -localstatedir | --localstatedir | --localstatedi | --localstated \
451 | --localstate | --localstat | --localsta | --localst \
452 | --locals | --local | --loca | --loc | --lo)
453 ac_prev=localstatedir ;;
454 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
455 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
456 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
457 localstatedir=$ac_optarg ;;
459 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
460 ac_prev=mandir ;;
461 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
462 mandir=$ac_optarg ;;
464 -nfp | --nfp | --nf)
465 # Obsolete; use --without-fp.
466 with_fp=no ;;
468 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
469 | --no-cr | --no-c | -n)
470 no_create=yes ;;
472 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
473 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
474 no_recursion=yes ;;
476 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
477 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
478 | --oldin | --oldi | --old | --ol | --o)
479 ac_prev=oldincludedir ;;
480 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
481 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
482 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
483 oldincludedir=$ac_optarg ;;
485 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
486 ac_prev=prefix ;;
487 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
488 prefix=$ac_optarg ;;
490 -program-prefix | --program-prefix | --program-prefi | --program-pref \
491 | --program-pre | --program-pr | --program-p)
492 ac_prev=program_prefix ;;
493 -program-prefix=* | --program-prefix=* | --program-prefi=* \
494 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
495 program_prefix=$ac_optarg ;;
497 -program-suffix | --program-suffix | --program-suffi | --program-suff \
498 | --program-suf | --program-su | --program-s)
499 ac_prev=program_suffix ;;
500 -program-suffix=* | --program-suffix=* | --program-suffi=* \
501 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
502 program_suffix=$ac_optarg ;;
504 -program-transform-name | --program-transform-name \
505 | --program-transform-nam | --program-transform-na \
506 | --program-transform-n | --program-transform- \
507 | --program-transform | --program-transfor \
508 | --program-transfo | --program-transf \
509 | --program-trans | --program-tran \
510 | --progr-tra | --program-tr | --program-t)
511 ac_prev=program_transform_name ;;
512 -program-transform-name=* | --program-transform-name=* \
513 | --program-transform-nam=* | --program-transform-na=* \
514 | --program-transform-n=* | --program-transform-=* \
515 | --program-transform=* | --program-transfor=* \
516 | --program-transfo=* | --program-transf=* \
517 | --program-trans=* | --program-tran=* \
518 | --progr-tra=* | --program-tr=* | --program-t=*)
519 program_transform_name=$ac_optarg ;;
521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
522 | -silent | --silent | --silen | --sile | --sil)
523 silent=yes ;;
525 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
526 ac_prev=sbindir ;;
527 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
528 | --sbi=* | --sb=*)
529 sbindir=$ac_optarg ;;
531 -sharedstatedir | --sharedstatedir | --sharedstatedi \
532 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
533 | --sharedst | --shareds | --shared | --share | --shar \
534 | --sha | --sh)
535 ac_prev=sharedstatedir ;;
536 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
537 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
538 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
539 | --sha=* | --sh=*)
540 sharedstatedir=$ac_optarg ;;
542 -site | --site | --sit)
543 ac_prev=site ;;
544 -site=* | --site=* | --sit=*)
545 site=$ac_optarg ;;
547 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
548 ac_prev=srcdir ;;
549 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
550 srcdir=$ac_optarg ;;
552 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
553 | --syscon | --sysco | --sysc | --sys | --sy)
554 ac_prev=sysconfdir ;;
555 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
556 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
557 sysconfdir=$ac_optarg ;;
559 -target | --target | --targe | --targ | --tar | --ta | --t)
560 ac_prev=target_alias ;;
561 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
562 target_alias=$ac_optarg ;;
564 -v | -verbose | --verbose | --verbos | --verbo | --verb)
565 verbose=yes ;;
567 -version | --version | --versio | --versi | --vers | -V)
568 ac_init_version=: ;;
570 -with-* | --with-*)
571 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574 { echo "$as_me: error: invalid package name: $ac_package" >&2
575 { (exit 1); exit 1; }; }
576 ac_package=`echo $ac_package| sed 's/-/_/g'`
577 case $ac_option in
578 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579 *) ac_optarg=yes ;;
580 esac
581 eval "with_$ac_package='$ac_optarg'" ;;
583 -without-* | --without-*)
584 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
585 # Reject names that are not valid shell variable names.
586 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587 { echo "$as_me: error: invalid package name: $ac_package" >&2
588 { (exit 1); exit 1; }; }
589 ac_package=`echo $ac_package | sed 's/-/_/g'`
590 eval "with_$ac_package=no" ;;
592 --x)
593 # Obsolete; use --with-x.
594 with_x=yes ;;
596 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
597 | --x-incl | --x-inc | --x-in | --x-i)
598 ac_prev=x_includes ;;
599 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
600 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
601 x_includes=$ac_optarg ;;
603 -x-libraries | --x-libraries | --x-librarie | --x-librari \
604 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
605 ac_prev=x_libraries ;;
606 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
607 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
608 x_libraries=$ac_optarg ;;
610 -*) { echo "$as_me: error: unrecognized option: $ac_option
611 Try \`$0 --help' for more information." >&2
612 { (exit 1); exit 1; }; }
615 *=*)
616 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
617 # Reject names that are not valid shell variable names.
618 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
619 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
620 { (exit 1); exit 1; }; }
621 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
622 eval "$ac_envvar='$ac_optarg'"
623 export $ac_envvar ;;
626 # FIXME: should be removed in autoconf 3.0.
627 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
628 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
629 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
630 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
633 esac
634 done
636 if test -n "$ac_prev"; then
637 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
638 { echo "$as_me: error: missing argument to $ac_option" >&2
639 { (exit 1); exit 1; }; }
642 # Be sure to have absolute paths.
643 for ac_var in exec_prefix prefix
645 eval ac_val=$`echo $ac_var`
646 case $ac_val in
647 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
648 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
649 { (exit 1); exit 1; }; };;
650 esac
651 done
653 # Be sure to have absolute paths.
654 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
655 localstatedir libdir includedir oldincludedir infodir mandir
657 eval ac_val=$`echo $ac_var`
658 case $ac_val in
659 [\\/$]* | ?:[\\/]* ) ;;
660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661 { (exit 1); exit 1; }; };;
662 esac
663 done
665 # There might be people who depend on the old broken behavior: `$host'
666 # used to hold the argument of --host etc.
667 # FIXME: To remove some day.
668 build=$build_alias
669 host=$host_alias
670 target=$target_alias
672 # FIXME: To remove some day.
673 if test "x$host_alias" != x; then
674 if test "x$build_alias" = x; then
675 cross_compiling=maybe
676 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
677 If a cross compiler is detected then cross compile mode will be used." >&2
678 elif test "x$build_alias" != "x$host_alias"; then
679 cross_compiling=yes
683 ac_tool_prefix=
684 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686 test "$silent" = yes && exec 6>/dev/null
689 # Find the source files, if location was not specified.
690 if test -z "$srcdir"; then
691 ac_srcdir_defaulted=yes
692 # Try the directory containing this script, then its parent.
693 ac_confdir=`(dirname "$0") 2>/dev/null ||
694 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
695 X"$0" : 'X\(//\)[^/]' \| \
696 X"$0" : 'X\(//\)$' \| \
697 X"$0" : 'X\(/\)' \| \
698 . : '\(.\)' 2>/dev/null ||
699 echo X"$0" |
700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
702 /^X\(\/\/\)$/{ s//\1/; q; }
703 /^X\(\/\).*/{ s//\1/; q; }
704 s/.*/./; q'`
705 srcdir=$ac_confdir
706 if test ! -r $srcdir/$ac_unique_file; then
707 srcdir=..
709 else
710 ac_srcdir_defaulted=no
712 if test ! -r $srcdir/$ac_unique_file; then
713 if test "$ac_srcdir_defaulted" = yes; then
714 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
715 { (exit 1); exit 1; }; }
716 else
717 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
718 { (exit 1); exit 1; }; }
721 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
722 ac_env_build_alias_set=${build_alias+set}
723 ac_env_build_alias_value=$build_alias
724 ac_cv_env_build_alias_set=${build_alias+set}
725 ac_cv_env_build_alias_value=$build_alias
726 ac_env_host_alias_set=${host_alias+set}
727 ac_env_host_alias_value=$host_alias
728 ac_cv_env_host_alias_set=${host_alias+set}
729 ac_cv_env_host_alias_value=$host_alias
730 ac_env_target_alias_set=${target_alias+set}
731 ac_env_target_alias_value=$target_alias
732 ac_cv_env_target_alias_set=${target_alias+set}
733 ac_cv_env_target_alias_value=$target_alias
734 ac_env_CC_set=${CC+set}
735 ac_env_CC_value=$CC
736 ac_cv_env_CC_set=${CC+set}
737 ac_cv_env_CC_value=$CC
738 ac_env_CFLAGS_set=${CFLAGS+set}
739 ac_env_CFLAGS_value=$CFLAGS
740 ac_cv_env_CFLAGS_set=${CFLAGS+set}
741 ac_cv_env_CFLAGS_value=$CFLAGS
742 ac_env_LDFLAGS_set=${LDFLAGS+set}
743 ac_env_LDFLAGS_value=$LDFLAGS
744 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
745 ac_cv_env_LDFLAGS_value=$LDFLAGS
746 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
747 ac_env_CPPFLAGS_value=$CPPFLAGS
748 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
749 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
750 ac_env_CXX_set=${CXX+set}
751 ac_env_CXX_value=$CXX
752 ac_cv_env_CXX_set=${CXX+set}
753 ac_cv_env_CXX_value=$CXX
754 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
755 ac_env_CXXFLAGS_value=$CXXFLAGS
756 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
757 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
758 ac_env_CXXCPP_set=${CXXCPP+set}
759 ac_env_CXXCPP_value=$CXXCPP
760 ac_cv_env_CXXCPP_set=${CXXCPP+set}
761 ac_cv_env_CXXCPP_value=$CXXCPP
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures this package to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
783 Configuration:
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 _ACEOF
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
825 cat <<\_ACEOF
827 X features:
828 --x-includes=DIR X include files are in DIR
829 --x-libraries=DIR X library files are in DIR
831 System types:
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 _ACEOF
837 if test -n "$ac_init_help"; then
839 cat <<\_ACEOF
841 Optional Features:
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --disable-fastalloc omit fast allocator for small objects
845 --enable-experimental support new style rewriting code
846 --enable-debug=ARG install a debugging enable executable -ggdb
847 --enable-warnings print warning messages during compilation
848 --enable-optimize=ARG compile with optimizations guessed
850 Optional Packages:
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
853 --with-x use the X Window System
854 --with-iconv=DIR where to find iconv system
855 --with-freetype=ARG with freetype support ARG=linked
856 --with-imlib2=ARG with imlib2 support ARG=no
858 Some influential environment variables:
859 CC C compiler command
860 CFLAGS C compiler flags
861 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862 nonstandard directory <lib dir>
863 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864 headers in a nonstandard directory <include dir>
865 CXX C++ compiler command
866 CXXFLAGS C++ compiler flags
867 CXXCPP C++ preprocessor
868 CPP C preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 # absolute.
908 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
910 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 cd $ac_dir
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f $ac_srcdir/configure.gnu; then
916 echo
917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
919 echo
920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
923 echo
924 $ac_configure --help
925 else
926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 cd $ac_popdir
929 done
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
934 cat <<\_ACEOF
936 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
937 Free Software Foundation, Inc.
938 This configure script is free software; the Free Software Foundation
939 gives unlimited permission to copy, distribute and modify it.
940 _ACEOF
941 exit 0
943 exec 5>config.log
944 cat >&5 <<_ACEOF
945 This file contains any messages produced by compilers while
946 running configure, to aid debugging if configure makes a mistake.
948 It was created by $as_me, which was
949 generated by GNU Autoconf 2.53. Invocation command line was
951 $ $0 $@
953 _ACEOF
955 cat <<_ASUNAME
956 ## --------- ##
957 ## Platform. ##
958 ## --------- ##
960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
972 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
977 _ASUNAME
979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
980 for as_dir in $PATH
982 IFS=$as_save_IFS
983 test -z "$as_dir" && as_dir=.
984 echo "PATH: $as_dir"
985 done
987 } >&5
989 cat >&5 <<_ACEOF
992 ## ----------- ##
993 ## Core tests. ##
994 ## ----------- ##
996 _ACEOF
999 # Keep a trace of the command line.
1000 # Strip out --no-create and --no-recursion so they do not pile up.
1001 # Also quote any args containing shell meta-characters.
1002 ac_configure_args=
1003 ac_sep=
1004 for ac_arg
1006 case $ac_arg in
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n ) continue ;;
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 continue ;;
1012 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1013 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1014 esac
1015 case " $ac_configure_args " in
1016 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1017 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1018 ac_sep=" " ;;
1019 esac
1020 # Get rid of the leading space.
1021 done
1023 # When interrupted or exit'd, cleanup temporary files, and complete
1024 # config.log. We remove comments because anyway the quotes in there
1025 # would cause problems or look ugly.
1026 # WARNING: Be sure not to use single quotes in there, as some shells,
1027 # such as our DU 5.0 friend, will then `close' the trap.
1028 trap 'exit_status=$?
1029 # Save into config.log some information that might help in debugging.
1031 echo
1032 cat <<\_ASBOX
1033 ## ---------------- ##
1034 ## Cache variables. ##
1035 ## ---------------- ##
1036 _ASBOX
1037 echo
1038 # The following way of writing the cache mishandles newlines in values,
1040 (set) 2>&1 |
1041 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1042 *ac_space=\ *)
1043 sed -n \
1044 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1048 sed -n \
1049 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1051 esac;
1053 echo
1054 if test -s confdefs.h; then
1055 cat <<\_ASBOX
1056 ## ----------- ##
1057 ## confdefs.h. ##
1058 ## ----------- ##
1059 _ASBOX
1060 echo
1061 sed "/^$/d" confdefs.h
1062 echo
1064 test "$ac_signal" != 0 &&
1065 echo "$as_me: caught signal $ac_signal"
1066 echo "$as_me: exit $exit_status"
1067 } >&5
1068 rm -f core core.* *.core &&
1069 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1070 exit $exit_status
1072 for ac_signal in 1 2 13 15; do
1073 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1074 done
1075 ac_signal=0
1077 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1078 rm -rf conftest* confdefs.h
1079 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1080 echo >confdefs.h
1082 # Predefined preprocessor variables.
1084 cat >>confdefs.h <<_ACEOF
1085 #define PACKAGE_NAME "$PACKAGE_NAME"
1086 _ACEOF
1089 cat >>confdefs.h <<_ACEOF
1090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1091 _ACEOF
1094 cat >>confdefs.h <<_ACEOF
1095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1096 _ACEOF
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_STRING "$PACKAGE_STRING"
1101 _ACEOF
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1106 _ACEOF
1109 # Let the site file select an alternate cache file if it wants to.
1110 # Prefer explicitly selected file to automatically selected ones.
1111 if test -z "$CONFIG_SITE"; then
1112 if test "x$prefix" != xNONE; then
1113 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1114 else
1115 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1118 for ac_site_file in $CONFIG_SITE; do
1119 if test -r "$ac_site_file"; then
1120 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1121 echo "$as_me: loading site script $ac_site_file" >&6;}
1122 sed 's/^/| /' "$ac_site_file" >&5
1123 . "$ac_site_file"
1125 done
1127 if test -r "$cache_file"; then
1128 # Some versions of bash will fail to source /dev/null (special
1129 # files actually), so we avoid doing that.
1130 if test -f "$cache_file"; then
1131 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1132 echo "$as_me: loading cache $cache_file" >&6;}
1133 case $cache_file in
1134 [\\/]* | ?:[\\/]* ) . $cache_file;;
1135 *) . ./$cache_file;;
1136 esac
1138 else
1139 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1140 echo "$as_me: creating cache $cache_file" >&6;}
1141 >$cache_file
1144 # Check that the precious variables saved in the cache have kept the same
1145 # value.
1146 ac_cache_corrupted=false
1147 for ac_var in `(set) 2>&1 |
1148 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1149 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1150 eval ac_new_set=\$ac_env_${ac_var}_set
1151 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1152 eval ac_new_val="\$ac_env_${ac_var}_value"
1153 case $ac_old_set,$ac_new_set in
1154 set,)
1155 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1156 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1157 ac_cache_corrupted=: ;;
1158 ,set)
1159 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1160 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1161 ac_cache_corrupted=: ;;
1162 ,);;
1164 if test "x$ac_old_val" != "x$ac_new_val"; then
1165 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1166 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1167 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1168 echo "$as_me: former value: $ac_old_val" >&2;}
1169 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1170 echo "$as_me: current value: $ac_new_val" >&2;}
1171 ac_cache_corrupted=:
1172 fi;;
1173 esac
1174 # Pass precious variables to config.status.
1175 if test "$ac_new_set" = set; then
1176 case $ac_new_val in
1177 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1178 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1179 *) ac_arg=$ac_var=$ac_new_val ;;
1180 esac
1181 case " $ac_configure_args " in
1182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1183 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1184 esac
1186 done
1187 if $ac_cache_corrupted; then
1188 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1189 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1190 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1191 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1192 { (exit 1); exit 1; }; }
1195 ac_ext=c
1196 ac_cpp='$CPP $CPPFLAGS'
1197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1218 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1221 PACKAGE="TeXmacs"
1222 DEVEL_VERSION="1.0.6.12"
1223 DEVEL_RELEASE="1"
1224 STABLE_VERSION="1.0.6"
1225 STABLE_RELEASE="1"
1226 WINDOWS_VERSION="1.0.5"
1227 WINDOWS_RELEASE="1"
1234 #--------------------------------------------------------------------
1235 # Checks for C++ compiler
1236 #--------------------------------------------------------------------
1238 ac_ext=c
1239 ac_cpp='$CPP $CPPFLAGS'
1240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1243 if test -n "$ac_tool_prefix"; then
1244 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1245 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1246 echo "$as_me:$LINENO: checking for $ac_word" >&5
1247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1248 if test "${ac_cv_prog_CC+set}" = set; then
1249 echo $ECHO_N "(cached) $ECHO_C" >&6
1250 else
1251 if test -n "$CC"; then
1252 ac_cv_prog_CC="$CC" # Let the user override the test.
1253 else
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255 for as_dir in $PATH
1257 IFS=$as_save_IFS
1258 test -z "$as_dir" && as_dir=.
1259 for ac_exec_ext in '' $ac_executable_extensions; do
1260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1261 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1263 break 2
1265 done
1266 done
1270 CC=$ac_cv_prog_CC
1271 if test -n "$CC"; then
1272 echo "$as_me:$LINENO: result: $CC" >&5
1273 echo "${ECHO_T}$CC" >&6
1274 else
1275 echo "$as_me:$LINENO: result: no" >&5
1276 echo "${ECHO_T}no" >&6
1280 if test -z "$ac_cv_prog_CC"; then
1281 ac_ct_CC=$CC
1282 # Extract the first word of "gcc", so it can be a program name with args.
1283 set dummy gcc; ac_word=$2
1284 echo "$as_me:$LINENO: checking for $ac_word" >&5
1285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1287 echo $ECHO_N "(cached) $ECHO_C" >&6
1288 else
1289 if test -n "$ac_ct_CC"; then
1290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1291 else
1292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1293 for as_dir in $PATH
1295 IFS=$as_save_IFS
1296 test -z "$as_dir" && as_dir=.
1297 for ac_exec_ext in '' $ac_executable_extensions; do
1298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1299 ac_cv_prog_ac_ct_CC="gcc"
1300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1301 break 2
1303 done
1304 done
1308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1309 if test -n "$ac_ct_CC"; then
1310 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1311 echo "${ECHO_T}$ac_ct_CC" >&6
1312 else
1313 echo "$as_me:$LINENO: result: no" >&5
1314 echo "${ECHO_T}no" >&6
1317 CC=$ac_ct_CC
1318 else
1319 CC="$ac_cv_prog_CC"
1322 if test -z "$CC"; then
1323 if test -n "$ac_tool_prefix"; then
1324 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1325 set dummy ${ac_tool_prefix}cc; ac_word=$2
1326 echo "$as_me:$LINENO: checking for $ac_word" >&5
1327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1328 if test "${ac_cv_prog_CC+set}" = set; then
1329 echo $ECHO_N "(cached) $ECHO_C" >&6
1330 else
1331 if test -n "$CC"; then
1332 ac_cv_prog_CC="$CC" # Let the user override the test.
1333 else
1334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1335 for as_dir in $PATH
1337 IFS=$as_save_IFS
1338 test -z "$as_dir" && as_dir=.
1339 for ac_exec_ext in '' $ac_executable_extensions; do
1340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1341 ac_cv_prog_CC="${ac_tool_prefix}cc"
1342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1343 break 2
1345 done
1346 done
1350 CC=$ac_cv_prog_CC
1351 if test -n "$CC"; then
1352 echo "$as_me:$LINENO: result: $CC" >&5
1353 echo "${ECHO_T}$CC" >&6
1354 else
1355 echo "$as_me:$LINENO: result: no" >&5
1356 echo "${ECHO_T}no" >&6
1360 if test -z "$ac_cv_prog_CC"; then
1361 ac_ct_CC=$CC
1362 # Extract the first word of "cc", so it can be a program name with args.
1363 set dummy cc; ac_word=$2
1364 echo "$as_me:$LINENO: checking for $ac_word" >&5
1365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 else
1369 if test -n "$ac_ct_CC"; then
1370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1371 else
1372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1373 for as_dir in $PATH
1375 IFS=$as_save_IFS
1376 test -z "$as_dir" && as_dir=.
1377 for ac_exec_ext in '' $ac_executable_extensions; do
1378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1379 ac_cv_prog_ac_ct_CC="cc"
1380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1381 break 2
1383 done
1384 done
1388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1389 if test -n "$ac_ct_CC"; then
1390 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1391 echo "${ECHO_T}$ac_ct_CC" >&6
1392 else
1393 echo "$as_me:$LINENO: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1397 CC=$ac_ct_CC
1398 else
1399 CC="$ac_cv_prog_CC"
1403 if test -z "$CC"; then
1404 # Extract the first word of "cc", so it can be a program name with args.
1405 set dummy cc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 if test -n "$CC"; then
1412 ac_cv_prog_CC="$CC" # Let the user override the test.
1413 else
1414 ac_prog_rejected=no
1415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1416 for as_dir in $PATH
1418 IFS=$as_save_IFS
1419 test -z "$as_dir" && as_dir=.
1420 for ac_exec_ext in '' $ac_executable_extensions; do
1421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1422 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1423 ac_prog_rejected=yes
1424 continue
1426 ac_cv_prog_CC="cc"
1427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1428 break 2
1430 done
1431 done
1433 if test $ac_prog_rejected = yes; then
1434 # We found a bogon in the path, so make sure we never use it.
1435 set dummy $ac_cv_prog_CC
1436 shift
1437 if test $# != 0; then
1438 # We chose a different compiler from the bogus one.
1439 # However, it has the same basename, so the bogon will be chosen
1440 # first if we set CC to just the basename; use the full file name.
1441 shift
1442 set dummy "$as_dir/$ac_word" ${1+"$@"}
1443 shift
1444 ac_cv_prog_CC="$@"
1449 CC=$ac_cv_prog_CC
1450 if test -n "$CC"; then
1451 echo "$as_me:$LINENO: result: $CC" >&5
1452 echo "${ECHO_T}$CC" >&6
1453 else
1454 echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1459 if test -z "$CC"; then
1460 if test -n "$ac_tool_prefix"; then
1461 for ac_prog in cl
1463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC="$CC" # Let the user override the test.
1472 else
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1478 for ac_exec_ext in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1482 break 2
1484 done
1485 done
1489 CC=$ac_cv_prog_CC
1490 if test -n "$CC"; then
1491 echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1493 else
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1498 test -n "$CC" && break
1499 done
1501 if test -z "$CC"; then
1502 ac_ct_CC=$CC
1503 for ac_prog in cl
1505 # Extract the first word of "$ac_prog", so it can be a program name with args.
1506 set dummy $ac_prog; ac_word=$2
1507 echo "$as_me:$LINENO: checking for $ac_word" >&5
1508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 else
1512 if test -n "$ac_ct_CC"; then
1513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1514 else
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 for as_dir in $PATH
1518 IFS=$as_save_IFS
1519 test -z "$as_dir" && as_dir=.
1520 for ac_exec_ext in '' $ac_executable_extensions; do
1521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1522 ac_cv_prog_ac_ct_CC="$ac_prog"
1523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1524 break 2
1526 done
1527 done
1531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1532 if test -n "$ac_ct_CC"; then
1533 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1534 echo "${ECHO_T}$ac_ct_CC" >&6
1535 else
1536 echo "$as_me:$LINENO: result: no" >&5
1537 echo "${ECHO_T}no" >&6
1540 test -n "$ac_ct_CC" && break
1541 done
1543 CC=$ac_ct_CC
1549 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1550 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1551 { (exit 1); exit 1; }; }
1553 # Provide some information about the compiler.
1554 echo "$as_me:$LINENO:" \
1555 "checking for C compiler version" >&5
1556 ac_compiler=`set X $ac_compile; echo $2`
1557 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1558 (eval $ac_compiler --version </dev/null >&5) 2>&5
1559 ac_status=$?
1560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1561 (exit $ac_status); }
1562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1563 (eval $ac_compiler -v </dev/null >&5) 2>&5
1564 ac_status=$?
1565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1566 (exit $ac_status); }
1567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1568 (eval $ac_compiler -V </dev/null >&5) 2>&5
1569 ac_status=$?
1570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1571 (exit $ac_status); }
1573 cat >conftest.$ac_ext <<_ACEOF
1574 #line $LINENO "configure"
1575 #include "confdefs.h"
1577 #ifdef F77_DUMMY_MAIN
1578 # ifdef __cplusplus
1579 extern "C"
1580 # endif
1581 int F77_DUMMY_MAIN() { return 1; }
1582 #endif
1584 main ()
1588 return 0;
1590 _ACEOF
1591 ac_clean_files_save=$ac_clean_files
1592 ac_clean_files="$ac_clean_files a.out a.exe"
1593 # Try to create an executable without -o first, disregard a.out.
1594 # It will help us diagnose broken compilers, and finding out an intuition
1595 # of exeext.
1596 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1597 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1598 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1599 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1600 (eval $ac_link_default) 2>&5
1601 ac_status=$?
1602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1603 (exit $ac_status); }; then
1604 # Find the output, starting from the most likely. This scheme is
1605 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1606 # resort.
1608 # Be careful to initialize this variable, since it used to be cached.
1609 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1610 ac_cv_exeext=
1611 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1612 ls a.out conftest 2>/dev/null;
1613 ls a.* conftest.* 2>/dev/null`; do
1614 case $ac_file in
1615 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1616 a.out ) # We found the default executable, but exeext='' is most
1617 # certainly right.
1618 break;;
1619 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1620 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1621 export ac_cv_exeext
1622 break;;
1623 * ) break;;
1624 esac
1625 done
1626 else
1627 echo "$as_me: failed program was:" >&5
1628 cat conftest.$ac_ext >&5
1629 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1630 echo "$as_me: error: C compiler cannot create executables" >&2;}
1631 { (exit 77); exit 77; }; }
1634 ac_exeext=$ac_cv_exeext
1635 echo "$as_me:$LINENO: result: $ac_file" >&5
1636 echo "${ECHO_T}$ac_file" >&6
1638 # Check the compiler produces executables we can run. If not, either
1639 # the compiler is broken, or we cross compile.
1640 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1641 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1642 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1643 # If not cross compiling, check that we can run a simple program.
1644 if test "$cross_compiling" != yes; then
1645 if { ac_try='./$ac_file'
1646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1647 (eval $ac_try) 2>&5
1648 ac_status=$?
1649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650 (exit $ac_status); }; }; then
1651 cross_compiling=no
1652 else
1653 if test "$cross_compiling" = maybe; then
1654 cross_compiling=yes
1655 else
1656 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1657 If you meant to cross compile, use \`--host'." >&5
1658 echo "$as_me: error: cannot run C compiled programs.
1659 If you meant to cross compile, use \`--host'." >&2;}
1660 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: result: yes" >&5
1665 echo "${ECHO_T}yes" >&6
1667 rm -f a.out a.exe conftest$ac_cv_exeext
1668 ac_clean_files=$ac_clean_files_save
1669 # Check the compiler produces executables we can run. If not, either
1670 # the compiler is broken, or we cross compile.
1671 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1672 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1673 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1674 echo "${ECHO_T}$cross_compiling" >&6
1676 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1677 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1679 (eval $ac_link) 2>&5
1680 ac_status=$?
1681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1682 (exit $ac_status); }; then
1683 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1684 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1685 # work properly (i.e., refer to `conftest.exe'), while it won't with
1686 # `rm'.
1687 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1688 case $ac_file in
1689 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1690 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1691 export ac_cv_exeext
1692 break;;
1693 * ) break;;
1694 esac
1695 done
1696 else
1697 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1698 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1699 { (exit 1); exit 1; }; }
1702 rm -f conftest$ac_cv_exeext
1703 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1704 echo "${ECHO_T}$ac_cv_exeext" >&6
1706 rm -f conftest.$ac_ext
1707 EXEEXT=$ac_cv_exeext
1708 ac_exeext=$EXEEXT
1709 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1710 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1711 if test "${ac_cv_objext+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714 cat >conftest.$ac_ext <<_ACEOF
1715 #line $LINENO "configure"
1716 #include "confdefs.h"
1718 #ifdef F77_DUMMY_MAIN
1719 # ifdef __cplusplus
1720 extern "C"
1721 # endif
1722 int F77_DUMMY_MAIN() { return 1; }
1723 #endif
1725 main ()
1729 return 0;
1731 _ACEOF
1732 rm -f conftest.o conftest.obj
1733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1734 (eval $ac_compile) 2>&5
1735 ac_status=$?
1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 (exit $ac_status); }; then
1738 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1739 case $ac_file in
1740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1741 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1742 break;;
1743 esac
1744 done
1745 else
1746 echo "$as_me: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1748 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1749 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1750 { (exit 1); exit 1; }; }
1753 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1755 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1756 echo "${ECHO_T}$ac_cv_objext" >&6
1757 OBJEXT=$ac_cv_objext
1758 ac_objext=$OBJEXT
1759 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1760 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1761 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764 cat >conftest.$ac_ext <<_ACEOF
1765 #line $LINENO "configure"
1766 #include "confdefs.h"
1768 #ifdef F77_DUMMY_MAIN
1769 # ifdef __cplusplus
1770 extern "C"
1771 # endif
1772 int F77_DUMMY_MAIN() { return 1; }
1773 #endif
1775 main ()
1777 #ifndef __GNUC__
1778 choke me
1779 #endif
1782 return 0;
1784 _ACEOF
1785 rm -f conftest.$ac_objext
1786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1787 (eval $ac_compile) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); } &&
1791 { ac_try='test -s conftest.$ac_objext'
1792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1793 (eval $ac_try) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; }; then
1797 ac_compiler_gnu=yes
1798 else
1799 echo "$as_me: failed program was:" >&5
1800 cat conftest.$ac_ext >&5
1801 ac_compiler_gnu=no
1803 rm -f conftest.$ac_objext conftest.$ac_ext
1804 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1807 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1808 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1809 GCC=`test $ac_compiler_gnu = yes && echo yes`
1810 ac_test_CFLAGS=${CFLAGS+set}
1811 ac_save_CFLAGS=$CFLAGS
1812 CFLAGS="-g"
1813 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1814 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1815 if test "${ac_cv_prog_cc_g+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818 cat >conftest.$ac_ext <<_ACEOF
1819 #line $LINENO "configure"
1820 #include "confdefs.h"
1822 #ifdef F77_DUMMY_MAIN
1823 # ifdef __cplusplus
1824 extern "C"
1825 # endif
1826 int F77_DUMMY_MAIN() { return 1; }
1827 #endif
1829 main ()
1833 return 0;
1835 _ACEOF
1836 rm -f conftest.$ac_objext
1837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1838 (eval $ac_compile) 2>&5
1839 ac_status=$?
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); } &&
1842 { ac_try='test -s conftest.$ac_objext'
1843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1844 (eval $ac_try) 2>&5
1845 ac_status=$?
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }; }; then
1848 ac_cv_prog_cc_g=yes
1849 else
1850 echo "$as_me: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1852 ac_cv_prog_cc_g=no
1854 rm -f conftest.$ac_objext conftest.$ac_ext
1856 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1857 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1858 if test "$ac_test_CFLAGS" = set; then
1859 CFLAGS=$ac_save_CFLAGS
1860 elif test $ac_cv_prog_cc_g = yes; then
1861 if test "$GCC" = yes; then
1862 CFLAGS="-g -O2"
1863 else
1864 CFLAGS="-g"
1866 else
1867 if test "$GCC" = yes; then
1868 CFLAGS="-O2"
1869 else
1870 CFLAGS=
1873 # Some people use a C++ compiler to compile C. Since we use `exit',
1874 # in C++ we need to declare it. In case someone uses the same compiler
1875 # for both compiling C and C++ we need to have the C++ compiler decide
1876 # the declaration of exit, since it's the most demanding environment.
1877 cat >conftest.$ac_ext <<_ACEOF
1878 #ifndef __cplusplus
1879 choke me
1880 #endif
1881 _ACEOF
1882 rm -f conftest.$ac_objext
1883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1884 (eval $ac_compile) 2>&5
1885 ac_status=$?
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); } &&
1888 { ac_try='test -s conftest.$ac_objext'
1889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1890 (eval $ac_try) 2>&5
1891 ac_status=$?
1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893 (exit $ac_status); }; }; then
1894 for ac_declaration in \
1896 '#include <stdlib.h>' \
1897 'extern "C" void std::exit (int) throw (); using std::exit;' \
1898 'extern "C" void std::exit (int); using std::exit;' \
1899 'extern "C" void exit (int) throw ();' \
1900 'extern "C" void exit (int);' \
1901 'void exit (int);'
1903 cat >conftest.$ac_ext <<_ACEOF
1904 #line $LINENO "configure"
1905 #include "confdefs.h"
1906 #include <stdlib.h>
1907 $ac_declaration
1908 #ifdef F77_DUMMY_MAIN
1909 # ifdef __cplusplus
1910 extern "C"
1911 # endif
1912 int F77_DUMMY_MAIN() { return 1; }
1913 #endif
1915 main ()
1917 exit (42);
1919 return 0;
1921 _ACEOF
1922 rm -f conftest.$ac_objext
1923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1924 (eval $ac_compile) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); } &&
1928 { ac_try='test -s conftest.$ac_objext'
1929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1930 (eval $ac_try) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }; }; then
1935 else
1936 echo "$as_me: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1938 continue
1940 rm -f conftest.$ac_objext conftest.$ac_ext
1941 cat >conftest.$ac_ext <<_ACEOF
1942 #line $LINENO "configure"
1943 #include "confdefs.h"
1944 $ac_declaration
1945 #ifdef F77_DUMMY_MAIN
1946 # ifdef __cplusplus
1947 extern "C"
1948 # endif
1949 int F77_DUMMY_MAIN() { return 1; }
1950 #endif
1952 main ()
1954 exit (42);
1956 return 0;
1958 _ACEOF
1959 rm -f conftest.$ac_objext
1960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1961 (eval $ac_compile) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); } &&
1965 { ac_try='test -s conftest.$ac_objext'
1966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1967 (eval $ac_try) 2>&5
1968 ac_status=$?
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); }; }; then
1971 break
1972 else
1973 echo "$as_me: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1976 rm -f conftest.$ac_objext conftest.$ac_ext
1977 done
1978 rm -f conftest*
1979 if test -n "$ac_declaration"; then
1980 echo '#ifdef __cplusplus' >>confdefs.h
1981 echo $ac_declaration >>confdefs.h
1982 echo '#endif' >>confdefs.h
1985 else
1986 echo "$as_me: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1989 rm -f conftest.$ac_objext conftest.$ac_ext
1990 ac_ext=c
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996 ac_ext=cc
1997 ac_cpp='$CXXCPP $CPPFLAGS'
1998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2001 if test -n "$ac_tool_prefix"; then
2002 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_CXX+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011 if test -n "$CXX"; then
2012 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2017 IFS=$as_save_IFS
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 break 2
2025 done
2026 done
2030 CXX=$ac_cv_prog_CXX
2031 if test -n "$CXX"; then
2032 echo "$as_me:$LINENO: result: $CXX" >&5
2033 echo "${ECHO_T}$CXX" >&6
2034 else
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2039 test -n "$CXX" && break
2040 done
2042 if test -z "$CXX"; then
2043 ac_ct_CXX=$CXX
2044 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2046 # Extract the first word of "$ac_prog", so it can be a program name with args.
2047 set dummy $ac_prog; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053 if test -n "$ac_ct_CXX"; then
2054 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_ac_ct_CXX="$ac_prog"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2
2067 done
2068 done
2072 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2073 if test -n "$ac_ct_CXX"; then
2074 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2075 echo "${ECHO_T}$ac_ct_CXX" >&6
2076 else
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2081 test -n "$ac_ct_CXX" && break
2082 done
2083 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2085 CXX=$ac_ct_CXX
2089 # Provide some information about the compiler.
2090 echo "$as_me:$LINENO:" \
2091 "checking for C++ compiler version" >&5
2092 ac_compiler=`set X $ac_compile; echo $2`
2093 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2094 (eval $ac_compiler --version </dev/null >&5) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2099 (eval $ac_compiler -v </dev/null >&5) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2104 (eval $ac_compiler -V </dev/null >&5) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2109 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2110 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2111 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 cat >conftest.$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2116 #include "confdefs.h"
2118 #ifdef F77_DUMMY_MAIN
2119 # ifdef __cplusplus
2120 extern "C"
2121 # endif
2122 int F77_DUMMY_MAIN() { return 1; }
2123 #endif
2125 main ()
2127 #ifndef __GNUC__
2128 choke me
2129 #endif
2132 return 0;
2134 _ACEOF
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 (eval $ac_try) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2147 ac_compiler_gnu=yes
2148 else
2149 echo "$as_me: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2151 ac_compiler_gnu=no
2153 rm -f conftest.$ac_objext conftest.$ac_ext
2154 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2157 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2158 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2159 GXX=`test $ac_compiler_gnu = yes && echo yes`
2160 ac_test_CXXFLAGS=${CXXFLAGS+set}
2161 ac_save_CXXFLAGS=$CXXFLAGS
2162 CXXFLAGS="-g"
2163 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2164 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2165 if test "${ac_cv_prog_cxx_g+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168 cat >conftest.$ac_ext <<_ACEOF
2169 #line $LINENO "configure"
2170 #include "confdefs.h"
2172 #ifdef F77_DUMMY_MAIN
2173 # ifdef __cplusplus
2174 extern "C"
2175 # endif
2176 int F77_DUMMY_MAIN() { return 1; }
2177 #endif
2179 main ()
2183 return 0;
2185 _ACEOF
2186 rm -f conftest.$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); } &&
2192 { ac_try='test -s conftest.$ac_objext'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 ac_cv_prog_cxx_g=yes
2199 else
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 ac_cv_prog_cxx_g=no
2204 rm -f conftest.$ac_objext conftest.$ac_ext
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2208 if test "$ac_test_CXXFLAGS" = set; then
2209 CXXFLAGS=$ac_save_CXXFLAGS
2210 elif test $ac_cv_prog_cxx_g = yes; then
2211 if test "$GXX" = yes; then
2212 CXXFLAGS="-g -O2"
2213 else
2214 CXXFLAGS="-g"
2216 else
2217 if test "$GXX" = yes; then
2218 CXXFLAGS="-O2"
2219 else
2220 CXXFLAGS=
2223 for ac_declaration in \
2225 '#include <stdlib.h>' \
2226 'extern "C" void std::exit (int) throw (); using std::exit;' \
2227 'extern "C" void std::exit (int); using std::exit;' \
2228 'extern "C" void exit (int) throw ();' \
2229 'extern "C" void exit (int);' \
2230 'void exit (int);'
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #line $LINENO "configure"
2234 #include "confdefs.h"
2235 #include <stdlib.h>
2236 $ac_declaration
2237 #ifdef F77_DUMMY_MAIN
2238 # ifdef __cplusplus
2239 extern "C"
2240 # endif
2241 int F77_DUMMY_MAIN() { return 1; }
2242 #endif
2244 main ()
2246 exit (42);
2248 return 0;
2250 _ACEOF
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2264 else
2265 echo "$as_me: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 continue
2269 rm -f conftest.$ac_objext conftest.$ac_ext
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #line $LINENO "configure"
2272 #include "confdefs.h"
2273 $ac_declaration
2274 #ifdef F77_DUMMY_MAIN
2275 # ifdef __cplusplus
2276 extern "C"
2277 # endif
2278 int F77_DUMMY_MAIN() { return 1; }
2279 #endif
2281 main ()
2283 exit (42);
2285 return 0;
2287 _ACEOF
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -s conftest.$ac_objext'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 (eval $ac_try) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; }; then
2300 break
2301 else
2302 echo "$as_me: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2305 rm -f conftest.$ac_objext conftest.$ac_ext
2306 done
2307 rm -f conftest*
2308 if test -n "$ac_declaration"; then
2309 echo '#ifdef __cplusplus' >>confdefs.h
2310 echo $ac_declaration >>confdefs.h
2311 echo '#endif' >>confdefs.h
2314 ac_ext=c
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320 ac_ext=cc
2321 ac_cpp='$CXXCPP $CPPFLAGS'
2322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2326 echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
2327 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6
2328 case "$GXX" in
2329 yes )
2330 GCC_VERSION=`$CC -dumpversion`
2331 GXX_VERSION=`$CXX -dumpversion`
2332 echo "$as_me:$LINENO: result: yes" >&5
2333 echo "${ECHO_T}yes" >&6
2334 echo "$as_me:$LINENO: checking version of gcc" >&5
2335 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6
2336 echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
2337 echo "${ECHO_T}$GCC_VERSION" >&6
2338 echo "$as_me:$LINENO: checking version of g++" >&5
2339 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
2340 echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
2341 echo "${ECHO_T}$GXX_VERSION" >&6
2344 GCC_VERSION="none"
2345 GXX_VERSION="none"
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2348 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
2349 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
2351 esac
2353 #--------------------------------------------------------------------
2354 # Checks for Guile
2355 #--------------------------------------------------------------------
2358 ## The GUILE_FLAGS macro.
2359 ## First, let's just see if we can find Guile at all.
2360 echo "$as_me:$LINENO: checking for Guile" >&5
2361 echo $ECHO_N "checking for Guile... $ECHO_C" >&6
2362 guile-config link > /dev/null || {
2363 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
2364 exit 1
2366 GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
2367 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
2368 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
2369 GUILE_LDFLAGS="`guile-config link`"
2370 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
2373 echo "$as_me:$LINENO: result: yes" >&5
2374 echo "${ECHO_T}yes" >&6
2376 echo "$as_me:$LINENO: checking version of guile" >&5
2377 echo $ECHO_N "checking version of guile... $ECHO_C" >&6
2378 GUILE_VERSION=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
2379 echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
2380 echo "${ECHO_T}$GUILE_VERSION" >&6
2382 case "$GUILE_VERSION" in
2383 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
2384 CONFIG_GUILE_SERIAL="A"
2386 1.6* | 1.7*)
2387 CONFIG_GUILE_SERIAL="B"
2390 CONFIG_GUILE_SERIAL="C"
2392 esac
2395 #--------------------------------------------------------------------
2396 # Checks for standard functionality
2397 #--------------------------------------------------------------------
2401 echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
2402 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6
2403 ac_save_cppflags="$CPPFLAGS"
2404 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2405 cat >conftest.$ac_ext <<_ACEOF
2406 #line $LINENO "configure"
2407 #include "confdefs.h"
2408 #include <X11/Xlib.h>
2409 #include <X11/Xutil.h>
2410 #ifdef F77_DUMMY_MAIN
2411 # ifdef __cplusplus
2412 extern "C"
2413 # endif
2414 int F77_DUMMY_MAIN() { return 1; }
2415 #endif
2417 main ()
2421 return 0;
2423 _ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 (eval $ac_try) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2436 echo yes
2437 else
2438 echo "$as_me: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2440 rm -rf X11
2441 mkdir X11
2442 for ac_dir in \
2443 /usr/X11/include \
2444 /usr/X11R6/include \
2445 /usr/X11R5/include \
2446 /usr/X11R4/include \
2448 /usr/include/X11 \
2449 /usr/include/X11R6 \
2450 /usr/include/X11R5 \
2451 /usr/include/X11R4 \
2453 /usr/local/X11/include \
2454 /usr/local/X11R6/include \
2455 /usr/local/X11R5/include \
2456 /usr/local/X11R4/include \
2458 /usr/local/include/X11 \
2459 /usr/local/include/X11R6 \
2460 /usr/local/include/X11R5 \
2461 /usr/local/include/X11R4 \
2463 /usr/X386/include \
2464 /usr/x386/include \
2465 /usr/XFree86/include/X11 \
2467 /usr/include \
2468 /usr/local/include \
2469 /usr/unsupported/include \
2470 /usr/athena/include \
2471 /usr/local/x11r5/include \
2472 /usr/lpp/Xamples/include \
2474 /usr/openwin/include \
2475 /usr/openwin/share/include \
2478 if test -r "$ac_dir/X11/Xlib.h"; then
2479 tm_x_includes=$ac_dir
2480 break
2482 done
2483 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
2484 < "$tm_x_includes/X11/Xlib.h" > X11/Xlib.h
2485 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
2486 < "$tm_x_includes/X11/Xutil.h" > X11/Xutil.h
2487 X_CFLAGS="-I.. $X_CFLAGS"
2488 echo "no; fixing"
2490 rm -f conftest.$ac_objext conftest.$ac_ext
2491 CPPFLAGS="$ac_save_cppflags"
2493 ac_ext=cc
2494 ac_cpp='$CXXCPP $CPPFLAGS'
2495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2498 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2499 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2500 if test -z "$CXXCPP"; then
2501 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 # Double quotes because CXXCPP needs to be expanded
2505 for CXXCPP in "$CXX -E" "/lib/cpp"
2507 ac_preproc_ok=false
2508 for ac_cxx_preproc_warn_flag in '' yes
2510 # Use a header file that comes with gcc, so configuring glibc
2511 # with a fresh cross-compiler works.
2512 # On the NeXT, cc -E runs the code through the compiler's parser,
2513 # not just through cpp. "Syntax error" is here to catch this case.
2514 cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 #include "confdefs.h"
2517 #include <assert.h>
2518 Syntax error
2519 _ACEOF
2520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2522 ac_status=$?
2523 egrep -v '^ *\+' conftest.er1 >conftest.err
2524 rm -f conftest.er1
2525 cat conftest.err >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } >/dev/null; then
2528 if test -s conftest.err; then
2529 ac_cpp_err=$ac_cxx_preproc_warn_flag
2530 else
2531 ac_cpp_err=
2533 else
2534 ac_cpp_err=yes
2536 if test -z "$ac_cpp_err"; then
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 cat conftest.$ac_ext >&5
2541 # Broken: fails on valid input.
2542 continue
2544 rm -f conftest.err conftest.$ac_ext
2546 # OK, works on sane cases. Now check whether non-existent headers
2547 # can be detected and how.
2548 cat >conftest.$ac_ext <<_ACEOF
2549 #line $LINENO "configure"
2550 #include "confdefs.h"
2551 #include <ac_nonexistent.h>
2552 _ACEOF
2553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2555 ac_status=$?
2556 egrep -v '^ *\+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } >/dev/null; then
2561 if test -s conftest.err; then
2562 ac_cpp_err=$ac_cxx_preproc_warn_flag
2563 else
2564 ac_cpp_err=
2566 else
2567 ac_cpp_err=yes
2569 if test -z "$ac_cpp_err"; then
2570 # Broken: success on invalid input.
2571 continue
2572 else
2573 echo "$as_me: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2575 # Passes both tests.
2576 ac_preproc_ok=:
2577 break
2579 rm -f conftest.err conftest.$ac_ext
2581 done
2582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2583 rm -f conftest.err conftest.$ac_ext
2584 if $ac_preproc_ok; then
2585 break
2588 done
2589 ac_cv_prog_CXXCPP=$CXXCPP
2592 CXXCPP=$ac_cv_prog_CXXCPP
2593 else
2594 ac_cv_prog_CXXCPP=$CXXCPP
2596 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2597 echo "${ECHO_T}$CXXCPP" >&6
2598 ac_preproc_ok=false
2599 for ac_cxx_preproc_warn_flag in '' yes
2601 # Use a header file that comes with gcc, so configuring glibc
2602 # with a fresh cross-compiler works.
2603 # On the NeXT, cc -E runs the code through the compiler's parser,
2604 # not just through cpp. "Syntax error" is here to catch this case.
2605 cat >conftest.$ac_ext <<_ACEOF
2606 #line $LINENO "configure"
2607 #include "confdefs.h"
2608 #include <assert.h>
2609 Syntax error
2610 _ACEOF
2611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2613 ac_status=$?
2614 egrep -v '^ *\+' conftest.er1 >conftest.err
2615 rm -f conftest.er1
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } >/dev/null; then
2619 if test -s conftest.err; then
2620 ac_cpp_err=$ac_cxx_preproc_warn_flag
2621 else
2622 ac_cpp_err=
2624 else
2625 ac_cpp_err=yes
2627 if test -z "$ac_cpp_err"; then
2629 else
2630 echo "$as_me: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2632 # Broken: fails on valid input.
2633 continue
2635 rm -f conftest.err conftest.$ac_ext
2637 # OK, works on sane cases. Now check whether non-existent headers
2638 # can be detected and how.
2639 cat >conftest.$ac_ext <<_ACEOF
2640 #line $LINENO "configure"
2641 #include "confdefs.h"
2642 #include <ac_nonexistent.h>
2643 _ACEOF
2644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2646 ac_status=$?
2647 egrep -v '^ *\+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } >/dev/null; then
2652 if test -s conftest.err; then
2653 ac_cpp_err=$ac_cxx_preproc_warn_flag
2654 else
2655 ac_cpp_err=
2657 else
2658 ac_cpp_err=yes
2660 if test -z "$ac_cpp_err"; then
2661 # Broken: success on invalid input.
2662 continue
2663 else
2664 echo "$as_me: failed program was:" >&5
2665 cat conftest.$ac_ext >&5
2666 # Passes both tests.
2667 ac_preproc_ok=:
2668 break
2670 rm -f conftest.err conftest.$ac_ext
2672 done
2673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2674 rm -f conftest.err conftest.$ac_ext
2675 if $ac_preproc_ok; then
2677 else
2678 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
2679 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
2680 { (exit 1); exit 1; }; }
2683 ac_ext=cc
2684 ac_cpp='$CXXCPP $CPPFLAGS'
2685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2690 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2691 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2692 if test "${ac_cv_header_stdc+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695 cat >conftest.$ac_ext <<_ACEOF
2696 #line $LINENO "configure"
2697 #include "confdefs.h"
2698 #include <stdlib.h>
2699 #include <stdarg.h>
2700 #include <string.h>
2701 #include <float.h>
2703 _ACEOF
2704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2706 ac_status=$?
2707 egrep -v '^ *\+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } >/dev/null; then
2712 if test -s conftest.err; then
2713 ac_cpp_err=$ac_cxx_preproc_warn_flag
2714 else
2715 ac_cpp_err=
2717 else
2718 ac_cpp_err=yes
2720 if test -z "$ac_cpp_err"; then
2721 ac_cv_header_stdc=yes
2722 else
2723 echo "$as_me: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2725 ac_cv_header_stdc=no
2727 rm -f conftest.err conftest.$ac_ext
2729 if test $ac_cv_header_stdc = yes; then
2730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2731 cat >conftest.$ac_ext <<_ACEOF
2732 #line $LINENO "configure"
2733 #include "confdefs.h"
2734 #include <string.h>
2736 _ACEOF
2737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2738 egrep "memchr" >/dev/null 2>&1; then
2740 else
2741 ac_cv_header_stdc=no
2743 rm -f conftest*
2747 if test $ac_cv_header_stdc = yes; then
2748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2749 cat >conftest.$ac_ext <<_ACEOF
2750 #line $LINENO "configure"
2751 #include "confdefs.h"
2752 #include <stdlib.h>
2754 _ACEOF
2755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2756 egrep "free" >/dev/null 2>&1; then
2758 else
2759 ac_cv_header_stdc=no
2761 rm -f conftest*
2765 if test $ac_cv_header_stdc = yes; then
2766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2767 if test "$cross_compiling" = yes; then
2769 else
2770 cat >conftest.$ac_ext <<_ACEOF
2771 #line $LINENO "configure"
2772 #include "confdefs.h"
2773 #include <ctype.h>
2774 #if ((' ' & 0x0FF) == 0x020)
2775 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2776 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2777 #else
2778 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2779 || ('j' <= (c) && (c) <= 'r') \
2780 || ('s' <= (c) && (c) <= 'z'))
2781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2782 #endif
2784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2786 main ()
2788 int i;
2789 for (i = 0; i < 256; i++)
2790 if (XOR (islower (i), ISLOWER (i))
2791 || toupper (i) != TOUPPER (i))
2792 exit(2);
2793 exit (0);
2795 _ACEOF
2796 rm -f conftest$ac_exeext
2797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2798 (eval $ac_link) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2808 else
2809 echo "$as_me: program exited with status $ac_status" >&5
2810 echo "$as_me: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2812 ( exit $ac_status )
2813 ac_cv_header_stdc=no
2815 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2819 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2820 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2821 if test $ac_cv_header_stdc = yes; then
2823 cat >>confdefs.h <<\_ACEOF
2824 #define STDC_HEADERS 1
2825 _ACEOF
2829 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2839 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2840 inttypes.h stdint.h unistd.h
2842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2843 echo "$as_me:$LINENO: checking for $ac_header" >&5
2844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2850 #include "confdefs.h"
2851 $ac_includes_default
2853 #include <$ac_header>
2854 _ACEOF
2855 rm -f conftest.$ac_objext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857 (eval $ac_compile) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -s conftest.$ac_objext'
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 (eval $ac_try) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; }; then
2867 eval "$as_ac_Header=yes"
2868 else
2869 echo "$as_me: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2871 eval "$as_ac_Header=no"
2873 rm -f conftest.$ac_objext conftest.$ac_ext
2875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2878 cat >>confdefs.h <<_ACEOF
2879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2880 _ACEOF
2884 done
2887 echo "$as_me:$LINENO: checking for FILE" >&5
2888 echo $ECHO_N "checking for FILE... $ECHO_C" >&6
2889 if test "${ac_cv_type_FILE+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #line $LINENO "configure"
2894 #include "confdefs.h"
2895 $ac_includes_default
2896 #ifdef F77_DUMMY_MAIN
2897 # ifdef __cplusplus
2898 extern "C"
2899 # endif
2900 int F77_DUMMY_MAIN() { return 1; }
2901 #endif
2903 main ()
2905 if ((FILE *) 0)
2906 return 0;
2907 if (sizeof (FILE))
2908 return 0;
2910 return 0;
2912 _ACEOF
2913 rm -f conftest.$ac_objext
2914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915 (eval $ac_compile) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 ac_cv_type_FILE=yes
2926 else
2927 echo "$as_me: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2929 ac_cv_type_FILE=no
2931 rm -f conftest.$ac_objext conftest.$ac_ext
2933 echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
2934 echo "${ECHO_T}$ac_cv_type_FILE" >&6
2935 if test $ac_cv_type_FILE = yes; then
2937 cat >>confdefs.h <<_ACEOF
2938 #define HAVE_FILE 1
2939 _ACEOF
2944 echo "$as_me:$LINENO: checking for intptr_t" >&5
2945 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
2946 if test "${ac_cv_type_intptr_t+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949 cat >conftest.$ac_ext <<_ACEOF
2950 #line $LINENO "configure"
2951 #include "confdefs.h"
2952 $ac_includes_default
2953 #ifdef F77_DUMMY_MAIN
2954 # ifdef __cplusplus
2955 extern "C"
2956 # endif
2957 int F77_DUMMY_MAIN() { return 1; }
2958 #endif
2960 main ()
2962 if ((intptr_t *) 0)
2963 return 0;
2964 if (sizeof (intptr_t))
2965 return 0;
2967 return 0;
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972 (eval $ac_compile) 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 (eval $ac_try) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 ac_cv_type_intptr_t=yes
2983 else
2984 echo "$as_me: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2986 ac_cv_type_intptr_t=no
2988 rm -f conftest.$ac_objext conftest.$ac_ext
2990 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
2991 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
2992 if test $ac_cv_type_intptr_t = yes; then
2994 cat >>confdefs.h <<_ACEOF
2995 #define HAVE_INTPTR_T 1
2996 _ACEOF
3001 echo "$as_me:$LINENO: checking for time_t" >&5
3002 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
3003 if test "${ac_cv_type_time_t+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006 cat >conftest.$ac_ext <<_ACEOF
3007 #line $LINENO "configure"
3008 #include "confdefs.h"
3009 $ac_includes_default
3010 #ifdef F77_DUMMY_MAIN
3011 # ifdef __cplusplus
3012 extern "C"
3013 # endif
3014 int F77_DUMMY_MAIN() { return 1; }
3015 #endif
3017 main ()
3019 if ((time_t *) 0)
3020 return 0;
3021 if (sizeof (time_t))
3022 return 0;
3024 return 0;
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029 (eval $ac_compile) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try='test -s conftest.$ac_objext'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_type_time_t=yes
3040 else
3041 echo "$as_me: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3043 ac_cv_type_time_t=no
3045 rm -f conftest.$ac_objext conftest.$ac_ext
3047 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
3048 echo "${ECHO_T}$ac_cv_type_time_t" >&6
3049 if test $ac_cv_type_time_t = yes; then
3051 cat >>confdefs.h <<_ACEOF
3052 #define HAVE_TIME_T 1
3053 _ACEOF
3058 echo "$as_me:$LINENO: checking for X" >&5
3059 echo $ECHO_N "checking for X... $ECHO_C" >&6
3062 # Check whether --with-x or --without-x was given.
3063 if test "${with_x+set}" = set; then
3064 withval="$with_x"
3067 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3068 if test "x$with_x" = xno; then
3069 # The user explicitly disabled X.
3070 have_x=disabled
3071 else
3072 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3073 # Both variables are already set.
3074 have_x=yes
3075 else
3076 if test "${ac_cv_have_x+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079 # One or both of the vars are not set, and there is no cached value.
3080 ac_x_includes=no ac_x_libraries=no
3081 rm -fr conftest.dir
3082 if mkdir conftest.dir; then
3083 cd conftest.dir
3084 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3085 cat >Imakefile <<'_ACEOF'
3086 acfindx:
3087 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3088 _ACEOF
3089 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3091 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3092 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3093 for ac_extension in a so sl; do
3094 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3095 test -f $ac_im_libdir/libX11.$ac_extension; then
3096 ac_im_usrlibdir=$ac_im_libdir; break
3098 done
3099 # Screen out bogus values from the imake configuration. They are
3100 # bogus both because they are the default anyway, and because
3101 # using them would break gcc on systems where it needs fixed includes.
3102 case $ac_im_incroot in
3103 /usr/include) ;;
3104 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3105 esac
3106 case $ac_im_usrlibdir in
3107 /usr/lib | /lib) ;;
3108 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3109 esac
3111 cd ..
3112 rm -fr conftest.dir
3115 # Standard set of common directories for X headers.
3116 # Check X11 before X11Rn because it is often a symlink to the current release.
3117 ac_x_header_dirs='
3118 /usr/X11/include
3119 /usr/X11R6/include
3120 /usr/X11R5/include
3121 /usr/X11R4/include
3123 /usr/include/X11
3124 /usr/include/X11R6
3125 /usr/include/X11R5
3126 /usr/include/X11R4
3128 /usr/local/X11/include
3129 /usr/local/X11R6/include
3130 /usr/local/X11R5/include
3131 /usr/local/X11R4/include
3133 /usr/local/include/X11
3134 /usr/local/include/X11R6
3135 /usr/local/include/X11R5
3136 /usr/local/include/X11R4
3138 /usr/X386/include
3139 /usr/x386/include
3140 /usr/XFree86/include/X11
3142 /usr/include
3143 /usr/local/include
3144 /usr/unsupported/include
3145 /usr/athena/include
3146 /usr/local/x11r5/include
3147 /usr/lpp/Xamples/include
3149 /usr/openwin/include
3150 /usr/openwin/share/include'
3152 if test "$ac_x_includes" = no; then
3153 # Guess where to find include files, by looking for Intrinsic.h.
3154 # First, try using that file with no special directory specified.
3155 cat >conftest.$ac_ext <<_ACEOF
3156 #line $LINENO "configure"
3157 #include "confdefs.h"
3158 #include <X11/Intrinsic.h>
3159 _ACEOF
3160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3162 ac_status=$?
3163 egrep -v '^ *\+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } >/dev/null; then
3168 if test -s conftest.err; then
3169 ac_cpp_err=$ac_cxx_preproc_warn_flag
3170 else
3171 ac_cpp_err=
3173 else
3174 ac_cpp_err=yes
3176 if test -z "$ac_cpp_err"; then
3177 # We can compile using X headers with no special include directory.
3178 ac_x_includes=
3179 else
3180 echo "$as_me: failed program was:" >&5
3181 cat conftest.$ac_ext >&5
3182 for ac_dir in $ac_x_header_dirs; do
3183 if test -r "$ac_dir/X11/Intrinsic.h"; then
3184 ac_x_includes=$ac_dir
3185 break
3187 done
3189 rm -f conftest.err conftest.$ac_ext
3190 fi # $ac_x_includes = no
3192 if test "$ac_x_libraries" = no; then
3193 # Check for the libraries.
3194 # See if we find them without any special options.
3195 # Don't add to $LIBS permanently.
3196 ac_save_LIBS=$LIBS
3197 LIBS="-lXt $LIBS"
3198 cat >conftest.$ac_ext <<_ACEOF
3199 #line $LINENO "configure"
3200 #include "confdefs.h"
3201 #include <X11/Intrinsic.h>
3202 #ifdef F77_DUMMY_MAIN
3203 # ifdef __cplusplus
3204 extern "C"
3205 # endif
3206 int F77_DUMMY_MAIN() { return 1; }
3207 #endif
3209 main ()
3211 XtMalloc (0)
3213 return 0;
3215 _ACEOF
3216 rm -f conftest.$ac_objext conftest$ac_exeext
3217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3218 (eval $ac_link) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } &&
3222 { ac_try='test -s conftest$ac_exeext'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 (eval $ac_try) 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3228 LIBS=$ac_save_LIBS
3229 # We can link X programs with no special library path.
3230 ac_x_libraries=
3231 else
3232 echo "$as_me: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3234 LIBS=$ac_save_LIBS
3235 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3237 # Don't even attempt the hair of trying to link an X program!
3238 for ac_extension in a so sl; do
3239 if test -r $ac_dir/libXt.$ac_extension; then
3240 ac_x_libraries=$ac_dir
3241 break 2
3243 done
3244 done
3246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3247 fi # $ac_x_libraries = no
3249 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3250 # Didn't find X anywhere. Cache the known absence of X.
3251 ac_cv_have_x="have_x=no"
3252 else
3253 # Record where we found X for the cache.
3254 ac_cv_have_x="have_x=yes \
3255 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3260 eval "$ac_cv_have_x"
3261 fi # $with_x != no
3263 if test "$have_x" != yes; then
3264 echo "$as_me:$LINENO: result: $have_x" >&5
3265 echo "${ECHO_T}$have_x" >&6
3266 no_x=yes
3267 else
3268 # If each of the values was on the command line, it overrides each guess.
3269 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3270 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3271 # Update the cache value to reflect the command line values.
3272 ac_cv_have_x="have_x=yes \
3273 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3274 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3275 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3278 if test "$no_x" = yes; then
3279 # Not all programs may use this symbol, but it does not hurt to define it.
3281 cat >>confdefs.h <<\_ACEOF
3282 #define X_DISPLAY_MISSING 1
3283 _ACEOF
3285 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3286 else
3287 if test -n "$x_includes"; then
3288 X_CFLAGS="$X_CFLAGS -I$x_includes"
3291 # It would also be nice to do this for all -L options, not just this one.
3292 if test -n "$x_libraries"; then
3293 X_LIBS="$X_LIBS -L$x_libraries"
3294 # For Solaris; some versions of Sun CC require a space after -R and
3295 # others require no space. Words are not sufficient . . . .
3296 case `(uname -sr) 2>/dev/null` in
3297 "SunOS 5"*)
3298 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3299 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3300 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3301 cat >conftest.$ac_ext <<_ACEOF
3302 #line $LINENO "configure"
3303 #include "confdefs.h"
3305 #ifdef F77_DUMMY_MAIN
3306 # ifdef __cplusplus
3307 extern "C"
3308 # endif
3309 int F77_DUMMY_MAIN() { return 1; }
3310 #endif
3312 main ()
3316 return 0;
3318 _ACEOF
3319 rm -f conftest.$ac_objext conftest$ac_exeext
3320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3321 (eval $ac_link) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } &&
3325 { ac_try='test -s conftest$ac_exeext'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 (eval $ac_try) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
3331 ac_R_nospace=yes
3332 else
3333 echo "$as_me: failed program was:" >&5
3334 cat conftest.$ac_ext >&5
3335 ac_R_nospace=no
3337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3338 if test $ac_R_nospace = yes; then
3339 echo "$as_me:$LINENO: result: no" >&5
3340 echo "${ECHO_T}no" >&6
3341 X_LIBS="$X_LIBS -R$x_libraries"
3342 else
3343 LIBS="$ac_xsave_LIBS -R $x_libraries"
3344 cat >conftest.$ac_ext <<_ACEOF
3345 #line $LINENO "configure"
3346 #include "confdefs.h"
3348 #ifdef F77_DUMMY_MAIN
3349 # ifdef __cplusplus
3350 extern "C"
3351 # endif
3352 int F77_DUMMY_MAIN() { return 1; }
3353 #endif
3355 main ()
3359 return 0;
3361 _ACEOF
3362 rm -f conftest.$ac_objext conftest$ac_exeext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3364 (eval $ac_link) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -s conftest$ac_exeext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 ac_R_space=yes
3375 else
3376 echo "$as_me: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 ac_R_space=no
3380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3381 if test $ac_R_space = yes; then
3382 echo "$as_me:$LINENO: result: yes" >&5
3383 echo "${ECHO_T}yes" >&6
3384 X_LIBS="$X_LIBS -R $x_libraries"
3385 else
3386 echo "$as_me:$LINENO: result: neither works" >&5
3387 echo "${ECHO_T}neither works" >&6
3390 LIBS=$ac_xsave_LIBS
3391 esac
3394 # Check for system-dependent libraries X programs must link with.
3395 # Do this before checking for the system-independent R6 libraries
3396 # (-lICE), since we may need -lsocket or whatever for X linking.
3398 if test "$ISC" = yes; then
3399 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3400 else
3401 # Martyn Johnson says this is needed for Ultrix, if the X
3402 # libraries were built with DECnet support. And Karl Berry says
3403 # the Alpha needs dnet_stub (dnet does not exist).
3404 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3405 cat >conftest.$ac_ext <<_ACEOF
3406 #line $LINENO "configure"
3407 #include "confdefs.h"
3409 /* Override any gcc2 internal prototype to avoid an error. */
3410 #ifdef __cplusplus
3411 extern "C"
3412 #endif
3413 /* We use char because int might match the return type of a gcc2
3414 builtin and then its argument prototype would still apply. */
3415 char XOpenDisplay ();
3416 #ifdef F77_DUMMY_MAIN
3417 # ifdef __cplusplus
3418 extern "C"
3419 # endif
3420 int F77_DUMMY_MAIN() { return 1; }
3421 #endif
3423 main ()
3425 XOpenDisplay ();
3427 return 0;
3429 _ACEOF
3430 rm -f conftest.$ac_objext conftest$ac_exeext
3431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3432 (eval $ac_link) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } &&
3436 { ac_try='test -s conftest$ac_exeext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3443 else
3444 echo "$as_me: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3446 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3447 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3448 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451 ac_check_lib_save_LIBS=$LIBS
3452 LIBS="-ldnet $LIBS"
3453 cat >conftest.$ac_ext <<_ACEOF
3454 #line $LINENO "configure"
3455 #include "confdefs.h"
3457 /* Override any gcc2 internal prototype to avoid an error. */
3458 #ifdef __cplusplus
3459 extern "C"
3460 #endif
3461 /* We use char because int might match the return type of a gcc2
3462 builtin and then its argument prototype would still apply. */
3463 char dnet_ntoa ();
3464 #ifdef F77_DUMMY_MAIN
3465 # ifdef __cplusplus
3466 extern "C"
3467 # endif
3468 int F77_DUMMY_MAIN() { return 1; }
3469 #endif
3471 main ()
3473 dnet_ntoa ();
3475 return 0;
3477 _ACEOF
3478 rm -f conftest.$ac_objext conftest$ac_exeext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3480 (eval $ac_link) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -s conftest$ac_exeext'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 ac_cv_lib_dnet_dnet_ntoa=yes
3491 else
3492 echo "$as_me: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3494 ac_cv_lib_dnet_dnet_ntoa=no
3496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3497 LIBS=$ac_check_lib_save_LIBS
3499 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3500 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3501 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3502 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3505 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3506 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3507 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3508 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511 ac_check_lib_save_LIBS=$LIBS
3512 LIBS="-ldnet_stub $LIBS"
3513 cat >conftest.$ac_ext <<_ACEOF
3514 #line $LINENO "configure"
3515 #include "confdefs.h"
3517 /* Override any gcc2 internal prototype to avoid an error. */
3518 #ifdef __cplusplus
3519 extern "C"
3520 #endif
3521 /* We use char because int might match the return type of a gcc2
3522 builtin and then its argument prototype would still apply. */
3523 char dnet_ntoa ();
3524 #ifdef F77_DUMMY_MAIN
3525 # ifdef __cplusplus
3526 extern "C"
3527 # endif
3528 int F77_DUMMY_MAIN() { return 1; }
3529 #endif
3531 main ()
3533 dnet_ntoa ();
3535 return 0;
3537 _ACEOF
3538 rm -f conftest.$ac_objext conftest$ac_exeext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3540 (eval $ac_link) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -s conftest$ac_exeext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 (eval $ac_try) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3550 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3551 else
3552 echo "$as_me: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3554 ac_cv_lib_dnet_stub_dnet_ntoa=no
3556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3557 LIBS=$ac_check_lib_save_LIBS
3559 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3560 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3561 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3562 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3568 LIBS="$ac_xsave_LIBS"
3570 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3571 # to get the SysV transport functions.
3572 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3573 # needs -lnsl.
3574 # The nsl library prevents programs from opening the X display
3575 # on Irix 5.2, according to T.E. Dickey.
3576 # The functions gethostbyname, getservbyname, and inet_addr are
3577 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3578 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3579 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3580 if test "${ac_cv_func_gethostbyname+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 cat >conftest.$ac_ext <<_ACEOF
3584 #line $LINENO "configure"
3585 #include "confdefs.h"
3586 /* System header to define __stub macros and hopefully few prototypes,
3587 which can conflict with char gethostbyname (); below. */
3588 #include <assert.h>
3589 /* Override any gcc2 internal prototype to avoid an error. */
3590 #ifdef __cplusplus
3591 extern "C"
3592 #endif
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3595 char gethostbyname ();
3596 char (*f) ();
3598 #ifdef F77_DUMMY_MAIN
3599 # ifdef __cplusplus
3600 extern "C"
3601 # endif
3602 int F77_DUMMY_MAIN() { return 1; }
3603 #endif
3605 main ()
3607 /* The GNU C library defines this for functions which it implements
3608 to always fail with ENOSYS. Some functions are actually named
3609 something starting with __ and the normal name is an alias. */
3610 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3611 choke me
3612 #else
3613 f = gethostbyname;
3614 #endif
3617 return 0;
3619 _ACEOF
3620 rm -f conftest.$ac_objext conftest$ac_exeext
3621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3622 (eval $ac_link) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -s conftest$ac_exeext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 ac_cv_func_gethostbyname=yes
3633 else
3634 echo "$as_me: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3636 ac_cv_func_gethostbyname=no
3638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3640 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3641 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3643 if test $ac_cv_func_gethostbyname = no; then
3644 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3645 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3646 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 ac_check_lib_save_LIBS=$LIBS
3650 LIBS="-lnsl $LIBS"
3651 cat >conftest.$ac_ext <<_ACEOF
3652 #line $LINENO "configure"
3653 #include "confdefs.h"
3655 /* Override any gcc2 internal prototype to avoid an error. */
3656 #ifdef __cplusplus
3657 extern "C"
3658 #endif
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3661 char gethostbyname ();
3662 #ifdef F77_DUMMY_MAIN
3663 # ifdef __cplusplus
3664 extern "C"
3665 # endif
3666 int F77_DUMMY_MAIN() { return 1; }
3667 #endif
3669 main ()
3671 gethostbyname ();
3673 return 0;
3675 _ACEOF
3676 rm -f conftest.$ac_objext conftest$ac_exeext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3678 (eval $ac_link) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -s conftest$ac_exeext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_cv_lib_nsl_gethostbyname=yes
3689 else
3690 echo "$as_me: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3692 ac_cv_lib_nsl_gethostbyname=no
3694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3695 LIBS=$ac_check_lib_save_LIBS
3697 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3698 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3699 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3700 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3703 if test $ac_cv_lib_nsl_gethostbyname = no; then
3704 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3705 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3706 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 ac_check_lib_save_LIBS=$LIBS
3710 LIBS="-lbsd $LIBS"
3711 cat >conftest.$ac_ext <<_ACEOF
3712 #line $LINENO "configure"
3713 #include "confdefs.h"
3715 /* Override any gcc2 internal prototype to avoid an error. */
3716 #ifdef __cplusplus
3717 extern "C"
3718 #endif
3719 /* We use char because int might match the return type of a gcc2
3720 builtin and then its argument prototype would still apply. */
3721 char gethostbyname ();
3722 #ifdef F77_DUMMY_MAIN
3723 # ifdef __cplusplus
3724 extern "C"
3725 # endif
3726 int F77_DUMMY_MAIN() { return 1; }
3727 #endif
3729 main ()
3731 gethostbyname ();
3733 return 0;
3735 _ACEOF
3736 rm -f conftest.$ac_objext conftest$ac_exeext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738 (eval $ac_link) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -s conftest$ac_exeext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_lib_bsd_gethostbyname=yes
3749 else
3750 echo "$as_me: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3752 ac_cv_lib_bsd_gethostbyname=no
3754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3755 LIBS=$ac_check_lib_save_LIBS
3757 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3758 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3759 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3760 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3766 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3767 # socket/setsockopt and other routines are undefined under SCO ODT
3768 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3769 # on later versions), says Simon Leinen: it contains gethostby*
3770 # variants that don't use the nameserver (or something). -lsocket
3771 # must be given before -lnsl if both are needed. We assume that
3772 # if connect needs -lnsl, so does gethostbyname.
3773 echo "$as_me:$LINENO: checking for connect" >&5
3774 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3775 if test "${ac_cv_func_connect+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 cat >conftest.$ac_ext <<_ACEOF
3779 #line $LINENO "configure"
3780 #include "confdefs.h"
3781 /* System header to define __stub macros and hopefully few prototypes,
3782 which can conflict with char connect (); below. */
3783 #include <assert.h>
3784 /* Override any gcc2 internal prototype to avoid an error. */
3785 #ifdef __cplusplus
3786 extern "C"
3787 #endif
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3790 char connect ();
3791 char (*f) ();
3793 #ifdef F77_DUMMY_MAIN
3794 # ifdef __cplusplus
3795 extern "C"
3796 # endif
3797 int F77_DUMMY_MAIN() { return 1; }
3798 #endif
3800 main ()
3802 /* The GNU C library defines this for functions which it implements
3803 to always fail with ENOSYS. Some functions are actually named
3804 something starting with __ and the normal name is an alias. */
3805 #if defined (__stub_connect) || defined (__stub___connect)
3806 choke me
3807 #else
3808 f = connect;
3809 #endif
3812 return 0;
3814 _ACEOF
3815 rm -f conftest.$ac_objext conftest$ac_exeext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817 (eval $ac_link) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
3821 { ac_try='test -s conftest$ac_exeext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 ac_cv_func_connect=yes
3828 else
3829 echo "$as_me: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3831 ac_cv_func_connect=no
3833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3835 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3836 echo "${ECHO_T}$ac_cv_func_connect" >&6
3838 if test $ac_cv_func_connect = no; then
3839 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3840 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3841 if test "${ac_cv_lib_socket_connect+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844 ac_check_lib_save_LIBS=$LIBS
3845 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3846 cat >conftest.$ac_ext <<_ACEOF
3847 #line $LINENO "configure"
3848 #include "confdefs.h"
3850 /* Override any gcc2 internal prototype to avoid an error. */
3851 #ifdef __cplusplus
3852 extern "C"
3853 #endif
3854 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3856 char connect ();
3857 #ifdef F77_DUMMY_MAIN
3858 # ifdef __cplusplus
3859 extern "C"
3860 # endif
3861 int F77_DUMMY_MAIN() { return 1; }
3862 #endif
3864 main ()
3866 connect ();
3868 return 0;
3870 _ACEOF
3871 rm -f conftest.$ac_objext conftest$ac_exeext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3873 (eval $ac_link) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -s conftest$ac_exeext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_cv_lib_socket_connect=yes
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 ac_cv_lib_socket_connect=no
3889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3890 LIBS=$ac_check_lib_save_LIBS
3892 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3893 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3894 if test $ac_cv_lib_socket_connect = yes; then
3895 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3900 # Guillermo Gomez says -lposix is necessary on A/UX.
3901 echo "$as_me:$LINENO: checking for remove" >&5
3902 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3903 if test "${ac_cv_func_remove+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 cat >conftest.$ac_ext <<_ACEOF
3907 #line $LINENO "configure"
3908 #include "confdefs.h"
3909 /* System header to define __stub macros and hopefully few prototypes,
3910 which can conflict with char remove (); below. */
3911 #include <assert.h>
3912 /* Override any gcc2 internal prototype to avoid an error. */
3913 #ifdef __cplusplus
3914 extern "C"
3915 #endif
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3918 char remove ();
3919 char (*f) ();
3921 #ifdef F77_DUMMY_MAIN
3922 # ifdef __cplusplus
3923 extern "C"
3924 # endif
3925 int F77_DUMMY_MAIN() { return 1; }
3926 #endif
3928 main ()
3930 /* The GNU C library defines this for functions which it implements
3931 to always fail with ENOSYS. Some functions are actually named
3932 something starting with __ and the normal name is an alias. */
3933 #if defined (__stub_remove) || defined (__stub___remove)
3934 choke me
3935 #else
3936 f = remove;
3937 #endif
3940 return 0;
3942 _ACEOF
3943 rm -f conftest.$ac_objext conftest$ac_exeext
3944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3945 (eval $ac_link) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } &&
3949 { ac_try='test -s conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_func_remove=yes
3956 else
3957 echo "$as_me: failed program was:" >&5
3958 cat conftest.$ac_ext >&5
3959 ac_cv_func_remove=no
3961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3963 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3964 echo "${ECHO_T}$ac_cv_func_remove" >&6
3966 if test $ac_cv_func_remove = no; then
3967 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3968 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3969 if test "${ac_cv_lib_posix_remove+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972 ac_check_lib_save_LIBS=$LIBS
3973 LIBS="-lposix $LIBS"
3974 cat >conftest.$ac_ext <<_ACEOF
3975 #line $LINENO "configure"
3976 #include "confdefs.h"
3978 /* Override any gcc2 internal prototype to avoid an error. */
3979 #ifdef __cplusplus
3980 extern "C"
3981 #endif
3982 /* We use char because int might match the return type of a gcc2
3983 builtin and then its argument prototype would still apply. */
3984 char remove ();
3985 #ifdef F77_DUMMY_MAIN
3986 # ifdef __cplusplus
3987 extern "C"
3988 # endif
3989 int F77_DUMMY_MAIN() { return 1; }
3990 #endif
3992 main ()
3994 remove ();
3996 return 0;
3998 _ACEOF
3999 rm -f conftest.$ac_objext conftest$ac_exeext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4001 (eval $ac_link) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -s conftest$ac_exeext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_lib_posix_remove=yes
4012 else
4013 echo "$as_me: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4015 ac_cv_lib_posix_remove=no
4017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4018 LIBS=$ac_check_lib_save_LIBS
4020 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4021 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4022 if test $ac_cv_lib_posix_remove = yes; then
4023 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4028 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4029 echo "$as_me:$LINENO: checking for shmat" >&5
4030 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4031 if test "${ac_cv_func_shmat+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034 cat >conftest.$ac_ext <<_ACEOF
4035 #line $LINENO "configure"
4036 #include "confdefs.h"
4037 /* System header to define __stub macros and hopefully few prototypes,
4038 which can conflict with char shmat (); below. */
4039 #include <assert.h>
4040 /* Override any gcc2 internal prototype to avoid an error. */
4041 #ifdef __cplusplus
4042 extern "C"
4043 #endif
4044 /* We use char because int might match the return type of a gcc2
4045 builtin and then its argument prototype would still apply. */
4046 char shmat ();
4047 char (*f) ();
4049 #ifdef F77_DUMMY_MAIN
4050 # ifdef __cplusplus
4051 extern "C"
4052 # endif
4053 int F77_DUMMY_MAIN() { return 1; }
4054 #endif
4056 main ()
4058 /* The GNU C library defines this for functions which it implements
4059 to always fail with ENOSYS. Some functions are actually named
4060 something starting with __ and the normal name is an alias. */
4061 #if defined (__stub_shmat) || defined (__stub___shmat)
4062 choke me
4063 #else
4064 f = shmat;
4065 #endif
4068 return 0;
4070 _ACEOF
4071 rm -f conftest.$ac_objext conftest$ac_exeext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4073 (eval $ac_link) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -s conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_func_shmat=yes
4084 else
4085 echo "$as_me: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4087 ac_cv_func_shmat=no
4089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4091 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4092 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4094 if test $ac_cv_func_shmat = no; then
4095 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4096 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4097 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100 ac_check_lib_save_LIBS=$LIBS
4101 LIBS="-lipc $LIBS"
4102 cat >conftest.$ac_ext <<_ACEOF
4103 #line $LINENO "configure"
4104 #include "confdefs.h"
4106 /* Override any gcc2 internal prototype to avoid an error. */
4107 #ifdef __cplusplus
4108 extern "C"
4109 #endif
4110 /* We use char because int might match the return type of a gcc2
4111 builtin and then its argument prototype would still apply. */
4112 char shmat ();
4113 #ifdef F77_DUMMY_MAIN
4114 # ifdef __cplusplus
4115 extern "C"
4116 # endif
4117 int F77_DUMMY_MAIN() { return 1; }
4118 #endif
4120 main ()
4122 shmat ();
4124 return 0;
4126 _ACEOF
4127 rm -f conftest.$ac_objext conftest$ac_exeext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try='test -s conftest$ac_exeext'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 (eval $ac_try) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 ac_cv_lib_ipc_shmat=yes
4140 else
4141 echo "$as_me: failed program was:" >&5
4142 cat conftest.$ac_ext >&5
4143 ac_cv_lib_ipc_shmat=no
4145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4146 LIBS=$ac_check_lib_save_LIBS
4148 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4149 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4150 if test $ac_cv_lib_ipc_shmat = yes; then
4151 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4157 # Check for libraries that X11R6 Xt/Xaw programs need.
4158 ac_save_LDFLAGS=$LDFLAGS
4159 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4160 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4161 # check for ICE first), but we must link in the order -lSM -lICE or
4162 # we get undefined symbols. So assume we have SM if we have ICE.
4163 # These have to be linked with before -lX11, unlike the other
4164 # libraries we check for below, so use a different variable.
4165 # John Interrante, Karl Berry
4166 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4167 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4168 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 ac_check_lib_save_LIBS=$LIBS
4172 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4173 cat >conftest.$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 #include "confdefs.h"
4177 /* Override any gcc2 internal prototype to avoid an error. */
4178 #ifdef __cplusplus
4179 extern "C"
4180 #endif
4181 /* We use char because int might match the return type of a gcc2
4182 builtin and then its argument prototype would still apply. */
4183 char IceConnectionNumber ();
4184 #ifdef F77_DUMMY_MAIN
4185 # ifdef __cplusplus
4186 extern "C"
4187 # endif
4188 int F77_DUMMY_MAIN() { return 1; }
4189 #endif
4191 main ()
4193 IceConnectionNumber ();
4195 return 0;
4197 _ACEOF
4198 rm -f conftest.$ac_objext conftest$ac_exeext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -s conftest$ac_exeext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_cv_lib_ICE_IceConnectionNumber=yes
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4214 ac_cv_lib_ICE_IceConnectionNumber=no
4216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4217 LIBS=$ac_check_lib_save_LIBS
4219 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4220 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4221 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4222 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4225 LDFLAGS=$ac_save_LDFLAGS
4231 for ac_header in pty.h util.h
4233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4235 echo "$as_me:$LINENO: checking for $ac_header" >&5
4236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4242 else
4243 # Is the header compilable?
4244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4246 cat >conftest.$ac_ext <<_ACEOF
4247 #line $LINENO "configure"
4248 #include "confdefs.h"
4249 $ac_includes_default
4250 #include <$ac_header>
4251 _ACEOF
4252 rm -f conftest.$ac_objext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4254 (eval $ac_compile) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 ac_header_compiler=yes
4265 else
4266 echo "$as_me: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4268 ac_header_compiler=no
4270 rm -f conftest.$ac_objext conftest.$ac_ext
4271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4272 echo "${ECHO_T}$ac_header_compiler" >&6
4274 # Is the header present?
4275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4277 cat >conftest.$ac_ext <<_ACEOF
4278 #line $LINENO "configure"
4279 #include "confdefs.h"
4280 #include <$ac_header>
4281 _ACEOF
4282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4284 ac_status=$?
4285 egrep -v '^ *\+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } >/dev/null; then
4290 if test -s conftest.err; then
4291 ac_cpp_err=$ac_cxx_preproc_warn_flag
4292 else
4293 ac_cpp_err=
4295 else
4296 ac_cpp_err=yes
4298 if test -z "$ac_cpp_err"; then
4299 ac_header_preproc=yes
4300 else
4301 echo "$as_me: failed program was:" >&5
4302 cat conftest.$ac_ext >&5
4303 ac_header_preproc=no
4305 rm -f conftest.err conftest.$ac_ext
4306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4307 echo "${ECHO_T}$ac_header_preproc" >&6
4309 # So? What about this header?
4310 case $ac_header_compiler:$ac_header_preproc in
4311 yes:no )
4312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4316 no:yes )
4317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4323 esac
4324 echo "$as_me:$LINENO: checking for $ac_header" >&5
4325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 eval "$as_ac_Header=$ac_header_preproc"
4331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4336 cat >>confdefs.h <<_ACEOF
4337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4338 _ACEOF
4342 done
4345 for ac_func in gettimeofday
4347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4348 echo "$as_me:$LINENO: checking for $ac_func" >&5
4349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4350 if eval "test \"\${$as_ac_var+set}\" = set"; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 cat >conftest.$ac_ext <<_ACEOF
4354 #line $LINENO "configure"
4355 #include "confdefs.h"
4356 /* System header to define __stub macros and hopefully few prototypes,
4357 which can conflict with char $ac_func (); below. */
4358 #include <assert.h>
4359 /* Override any gcc2 internal prototype to avoid an error. */
4360 #ifdef __cplusplus
4361 extern "C"
4362 #endif
4363 /* We use char because int might match the return type of a gcc2
4364 builtin and then its argument prototype would still apply. */
4365 char $ac_func ();
4366 char (*f) ();
4368 #ifdef F77_DUMMY_MAIN
4369 # ifdef __cplusplus
4370 extern "C"
4371 # endif
4372 int F77_DUMMY_MAIN() { return 1; }
4373 #endif
4375 main ()
4377 /* The GNU C library defines this for functions which it implements
4378 to always fail with ENOSYS. Some functions are actually named
4379 something starting with __ and the normal name is an alias. */
4380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4381 choke me
4382 #else
4383 f = $ac_func;
4384 #endif
4387 return 0;
4389 _ACEOF
4390 rm -f conftest.$ac_objext conftest$ac_exeext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -s conftest$ac_exeext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 eval "$as_ac_var=yes"
4403 else
4404 echo "$as_me: failed program was:" >&5
4405 cat conftest.$ac_ext >&5
4406 eval "$as_ac_var=no"
4408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4412 if test `eval echo '${'$as_ac_var'}'` = yes; then
4413 cat >>confdefs.h <<_ACEOF
4414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4415 _ACEOF
4418 done
4421 #--------------------------------------------------------------------
4422 # Checks for dl library
4423 #--------------------------------------------------------------------
4425 echo "$as_me:$LINENO: checking for dlopen" >&5
4426 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
4427 if test "${ac_cv_func_dlopen+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 cat >conftest.$ac_ext <<_ACEOF
4431 #line $LINENO "configure"
4432 #include "confdefs.h"
4433 /* System header to define __stub macros and hopefully few prototypes,
4434 which can conflict with char dlopen (); below. */
4435 #include <assert.h>
4436 /* Override any gcc2 internal prototype to avoid an error. */
4437 #ifdef __cplusplus
4438 extern "C"
4439 #endif
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4442 char dlopen ();
4443 char (*f) ();
4445 #ifdef F77_DUMMY_MAIN
4446 # ifdef __cplusplus
4447 extern "C"
4448 # endif
4449 int F77_DUMMY_MAIN() { return 1; }
4450 #endif
4452 main ()
4454 /* The GNU C library defines this for functions which it implements
4455 to always fail with ENOSYS. Some functions are actually named
4456 something starting with __ and the normal name is an alias. */
4457 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4458 choke me
4459 #else
4460 f = dlopen;
4461 #endif
4464 return 0;
4466 _ACEOF
4467 rm -f conftest.$ac_objext conftest$ac_exeext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469 (eval $ac_link) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } &&
4473 { ac_try='test -s conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_cv_func_dlopen=yes
4480 else
4481 echo "$as_me: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4483 ac_cv_func_dlopen=no
4485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4487 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
4488 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
4490 if test "$ac_cv_func_dl" = "yes"; then
4492 cat >>confdefs.h <<\_ACEOF
4493 #define DYNAMIC_LINKING 1
4494 _ACEOF
4496 else
4498 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503 ac_check_lib_save_LIBS=$LIBS
4504 LIBS="-ldl $LIBS"
4505 cat >conftest.$ac_ext <<_ACEOF
4506 #line $LINENO "configure"
4507 #include "confdefs.h"
4509 /* Override any gcc2 internal prototype to avoid an error. */
4510 #ifdef __cplusplus
4511 extern "C"
4512 #endif
4513 /* We use char because int might match the return type of a gcc2
4514 builtin and then its argument prototype would still apply. */
4515 char dlopen ();
4516 #ifdef F77_DUMMY_MAIN
4517 # ifdef __cplusplus
4518 extern "C"
4519 # endif
4520 int F77_DUMMY_MAIN() { return 1; }
4521 #endif
4523 main ()
4525 dlopen ();
4527 return 0;
4529 _ACEOF
4530 rm -f conftest.$ac_objext conftest$ac_exeext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4532 (eval $ac_link) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try='test -s conftest$ac_exeext'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 ac_cv_lib_dl_dlopen=yes
4543 else
4544 echo "$as_me: failed program was:" >&5
4545 cat conftest.$ac_ext >&5
4546 ac_cv_lib_dl_dlopen=no
4548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4549 LIBS=$ac_check_lib_save_LIBS
4551 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4552 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4553 if test $ac_cv_lib_dl_dlopen = yes; then
4554 cat >>confdefs.h <<_ACEOF
4555 #define HAVE_LIBDL 1
4556 _ACEOF
4558 LIBS="-ldl $LIBS"
4562 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
4564 for ac_func in dlopen
4566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4567 echo "$as_me:$LINENO: checking for $ac_func" >&5
4568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4569 if eval "test \"\${$as_ac_var+set}\" = set"; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 cat >conftest.$ac_ext <<_ACEOF
4573 #line $LINENO "configure"
4574 #include "confdefs.h"
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func (); below. */
4577 #include <assert.h>
4578 /* Override any gcc2 internal prototype to avoid an error. */
4579 #ifdef __cplusplus
4580 extern "C"
4581 #endif
4582 /* We use char because int might match the return type of a gcc2
4583 builtin and then its argument prototype would still apply. */
4584 char $ac_func ();
4585 char (*f) ();
4587 #ifdef F77_DUMMY_MAIN
4588 # ifdef __cplusplus
4589 extern "C"
4590 # endif
4591 int F77_DUMMY_MAIN() { return 1; }
4592 #endif
4594 main ()
4596 /* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4600 choke me
4601 #else
4602 f = $ac_func;
4603 #endif
4606 return 0;
4608 _ACEOF
4609 rm -f conftest.$ac_objext conftest$ac_exeext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4611 (eval $ac_link) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -s conftest$ac_exeext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 eval "$as_ac_var=yes"
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4625 eval "$as_ac_var=no"
4627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4631 if test `eval echo '${'$as_ac_var'}'` = yes; then
4632 cat >>confdefs.h <<_ACEOF
4633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4634 _ACEOF
4637 done
4639 CONFIG_BDL="-ldl"
4641 cat >>confdefs.h <<\_ACEOF
4642 #define DYNAMIC_LINKING 1
4643 _ACEOF
4645 else
4647 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
4648 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
4649 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652 ac_check_lib_save_LIBS=$LIBS
4653 LIBS="-ldld $LIBS"
4654 cat >conftest.$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4656 #include "confdefs.h"
4658 /* Override any gcc2 internal prototype to avoid an error. */
4659 #ifdef __cplusplus
4660 extern "C"
4661 #endif
4662 /* We use char because int might match the return type of a gcc2
4663 builtin and then its argument prototype would still apply. */
4664 char dld_link ();
4665 #ifdef F77_DUMMY_MAIN
4666 # ifdef __cplusplus
4667 extern "C"
4668 # endif
4669 int F77_DUMMY_MAIN() { return 1; }
4670 #endif
4672 main ()
4674 dld_link ();
4676 return 0;
4678 _ACEOF
4679 rm -f conftest.$ac_objext conftest$ac_exeext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try='test -s conftest$ac_exeext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_cv_lib_dld_dld_link=yes
4692 else
4693 echo "$as_me: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4695 ac_cv_lib_dld_dld_link=no
4697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4698 LIBS=$ac_check_lib_save_LIBS
4700 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
4701 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
4702 if test $ac_cv_lib_dld_dld_link = yes; then
4703 cat >>confdefs.h <<_ACEOF
4704 #define HAVE_LIBDLD 1
4705 _ACEOF
4707 LIBS="-ldld $LIBS"
4711 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
4712 CONFIG_BDL="-ldl"
4714 cat >>confdefs.h <<\_ACEOF
4715 #define DYNAMIC_LINKING 1
4716 _ACEOF
4718 else
4720 for ac_func in shl_load
4722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4723 echo "$as_me:$LINENO: checking for $ac_func" >&5
4724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4725 if eval "test \"\${$as_ac_var+set}\" = set"; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728 cat >conftest.$ac_ext <<_ACEOF
4729 #line $LINENO "configure"
4730 #include "confdefs.h"
4731 /* System header to define __stub macros and hopefully few prototypes,
4732 which can conflict with char $ac_func (); below. */
4733 #include <assert.h>
4734 /* Override any gcc2 internal prototype to avoid an error. */
4735 #ifdef __cplusplus
4736 extern "C"
4737 #endif
4738 /* We use char because int might match the return type of a gcc2
4739 builtin and then its argument prototype would still apply. */
4740 char $ac_func ();
4741 char (*f) ();
4743 #ifdef F77_DUMMY_MAIN
4744 # ifdef __cplusplus
4745 extern "C"
4746 # endif
4747 int F77_DUMMY_MAIN() { return 1; }
4748 #endif
4750 main ()
4752 /* The GNU C library defines this for functions which it implements
4753 to always fail with ENOSYS. Some functions are actually named
4754 something starting with __ and the normal name is an alias. */
4755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4756 choke me
4757 #else
4758 f = $ac_func;
4759 #endif
4762 return 0;
4764 _ACEOF
4765 rm -f conftest.$ac_objext conftest$ac_exeext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4767 (eval $ac_link) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -s conftest$ac_exeext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 eval "$as_ac_var=yes"
4778 else
4779 echo "$as_me: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4781 eval "$as_ac_var=no"
4783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4787 if test `eval echo '${'$as_ac_var'}'` = yes; then
4788 cat >>confdefs.h <<_ACEOF
4789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4790 _ACEOF
4793 done
4795 if test "$ac_cv_func_shl_load" = "yes"; then
4796 CONFIG_BDL="-ldl"
4798 cat >>confdefs.h <<\_ACEOF
4799 #define DYNAMIC_LINKING 1
4800 _ACEOF
4802 else
4804 for ac_func in dlopen
4806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4807 echo "$as_me:$LINENO: checking for $ac_func" >&5
4808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4809 if eval "test \"\${$as_ac_var+set}\" = set"; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812 cat >conftest.$ac_ext <<_ACEOF
4813 #line $LINENO "configure"
4814 #include "confdefs.h"
4815 /* System header to define __stub macros and hopefully few prototypes,
4816 which can conflict with char $ac_func (); below. */
4817 #include <assert.h>
4818 /* Override any gcc2 internal prototype to avoid an error. */
4819 #ifdef __cplusplus
4820 extern "C"
4821 #endif
4822 /* We use char because int might match the return type of a gcc2
4823 builtin and then its argument prototype would still apply. */
4824 char $ac_func ();
4825 char (*f) ();
4827 #ifdef F77_DUMMY_MAIN
4828 # ifdef __cplusplus
4829 extern "C"
4830 # endif
4831 int F77_DUMMY_MAIN() { return 1; }
4832 #endif
4834 main ()
4836 /* The GNU C library defines this for functions which it implements
4837 to always fail with ENOSYS. Some functions are actually named
4838 something starting with __ and the normal name is an alias. */
4839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4840 choke me
4841 #else
4842 f = $ac_func;
4843 #endif
4846 return 0;
4848 _ACEOF
4849 rm -f conftest.$ac_objext conftest$ac_exeext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4851 (eval $ac_link) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } &&
4855 { ac_try='test -s conftest$ac_exeext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4861 eval "$as_ac_var=yes"
4862 else
4863 echo "$as_me: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4865 eval "$as_ac_var=no"
4867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4871 if test `eval echo '${'$as_ac_var'}'` = yes; then
4872 cat >>confdefs.h <<_ACEOF
4873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4874 _ACEOF
4877 done
4879 if test "$ac_cv_func_dlopen" = "yes"; then
4881 cat >>confdefs.h <<\_ACEOF
4882 #define DYNAMIC_LINKING 1
4883 _ACEOF
4892 #--------------------------------------------------------------------
4893 # Checks for iconv library
4894 #--------------------------------------------------------------------
4897 # Check whether --with-iconv or --without-iconv was given.
4898 if test "${with_iconv+set}" = set; then
4899 withval="$with_iconv"
4903 # Check for iconv
4904 # Modified from GNOME's libxml2 configure.in
4907 ac_ext=c
4908 ac_cpp='$CPP $CPPFLAGS'
4909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4912 # compile C to avoid the 'const char**' problem
4913 SAVE_CPPFLAGS="$CPPFLAGS"
4914 SAVE_LDFLAGS="$LDFLAGS"
4915 SAVE_LIBS="$LIBS"
4916 if test "$with_iconv" = "no" ; then
4917 echo "$as_me:$LINENO: result: disabling iconv support" >&5
4918 echo "${ECHO_T}disabling iconv support" >&6
4919 else
4920 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
4921 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
4922 ICONV_CFLAGS="-I$with_iconv/include"
4923 ICONV_LDFLAGS="-L$with_iconv/lib"
4926 ac_ext=c
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4932 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4933 # On Suns, sometimes $CPP names a directory.
4934 if test -n "$CPP" && test -d "$CPP"; then
4935 CPP=
4937 if test -z "$CPP"; then
4938 if test "${ac_cv_prog_CPP+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 # Double quotes because CPP needs to be expanded
4942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4944 ac_preproc_ok=false
4945 for ac_c_preproc_warn_flag in '' yes
4947 # Use a header file that comes with gcc, so configuring glibc
4948 # with a fresh cross-compiler works.
4949 # On the NeXT, cc -E runs the code through the compiler's parser,
4950 # not just through cpp. "Syntax error" is here to catch this case.
4951 cat >conftest.$ac_ext <<_ACEOF
4952 #line $LINENO "configure"
4953 #include "confdefs.h"
4954 #include <assert.h>
4955 Syntax error
4956 _ACEOF
4957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4959 ac_status=$?
4960 egrep -v '^ *\+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } >/dev/null; then
4965 if test -s conftest.err; then
4966 ac_cpp_err=$ac_c_preproc_warn_flag
4967 else
4968 ac_cpp_err=
4970 else
4971 ac_cpp_err=yes
4973 if test -z "$ac_cpp_err"; then
4975 else
4976 echo "$as_me: failed program was:" >&5
4977 cat conftest.$ac_ext >&5
4978 # Broken: fails on valid input.
4979 continue
4981 rm -f conftest.err conftest.$ac_ext
4983 # OK, works on sane cases. Now check whether non-existent headers
4984 # can be detected and how.
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4987 #include "confdefs.h"
4988 #include <ac_nonexistent.h>
4989 _ACEOF
4990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4992 ac_status=$?
4993 egrep -v '^ *\+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } >/dev/null; then
4998 if test -s conftest.err; then
4999 ac_cpp_err=$ac_c_preproc_warn_flag
5000 else
5001 ac_cpp_err=
5003 else
5004 ac_cpp_err=yes
5006 if test -z "$ac_cpp_err"; then
5007 # Broken: success on invalid input.
5008 continue
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 cat conftest.$ac_ext >&5
5012 # Passes both tests.
5013 ac_preproc_ok=:
5014 break
5016 rm -f conftest.err conftest.$ac_ext
5018 done
5019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5020 rm -f conftest.err conftest.$ac_ext
5021 if $ac_preproc_ok; then
5022 break
5025 done
5026 ac_cv_prog_CPP=$CPP
5029 CPP=$ac_cv_prog_CPP
5030 else
5031 ac_cv_prog_CPP=$CPP
5033 echo "$as_me:$LINENO: result: $CPP" >&5
5034 echo "${ECHO_T}$CPP" >&6
5035 ac_preproc_ok=false
5036 for ac_c_preproc_warn_flag in '' yes
5038 # Use a header file that comes with gcc, so configuring glibc
5039 # with a fresh cross-compiler works.
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5044 #include "confdefs.h"
5045 #include <assert.h>
5046 Syntax error
5047 _ACEOF
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050 ac_status=$?
5051 egrep -v '^ *\+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null; then
5056 if test -s conftest.err; then
5057 ac_cpp_err=$ac_c_preproc_warn_flag
5058 else
5059 ac_cpp_err=
5061 else
5062 ac_cpp_err=yes
5064 if test -z "$ac_cpp_err"; then
5066 else
5067 echo "$as_me: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5069 # Broken: fails on valid input.
5070 continue
5072 rm -f conftest.err conftest.$ac_ext
5074 # OK, works on sane cases. Now check whether non-existent headers
5075 # can be detected and how.
5076 cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5078 #include "confdefs.h"
5079 #include <ac_nonexistent.h>
5080 _ACEOF
5081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083 ac_status=$?
5084 egrep -v '^ *\+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null; then
5089 if test -s conftest.err; then
5090 ac_cpp_err=$ac_c_preproc_warn_flag
5091 else
5092 ac_cpp_err=
5094 else
5095 ac_cpp_err=yes
5097 if test -z "$ac_cpp_err"; then
5098 # Broken: success on invalid input.
5099 continue
5100 else
5101 echo "$as_me: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5103 # Passes both tests.
5104 ac_preproc_ok=:
5105 break
5107 rm -f conftest.err conftest.$ac_ext
5109 done
5110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5111 rm -f conftest.err conftest.$ac_ext
5112 if $ac_preproc_ok; then
5114 else
5115 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
5116 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
5117 { (exit 1); exit 1; }; }
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5127 if test "${ac_cv_header_iconv_h+set}" = set; then
5128 echo "$as_me:$LINENO: checking for iconv.h" >&5
5129 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
5130 if test "${ac_cv_header_iconv_h+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
5134 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
5135 else
5136 # Is the header compilable?
5137 echo "$as_me:$LINENO: checking iconv.h usability" >&5
5138 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
5139 cat >conftest.$ac_ext <<_ACEOF
5140 #line $LINENO "configure"
5141 #include "confdefs.h"
5142 $ac_includes_default
5143 #include <iconv.h>
5144 _ACEOF
5145 rm -f conftest.$ac_objext
5146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5147 (eval $ac_compile) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } &&
5151 { ac_try='test -s conftest.$ac_objext'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 (eval $ac_try) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; }; then
5157 ac_header_compiler=yes
5158 else
5159 echo "$as_me: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5161 ac_header_compiler=no
5163 rm -f conftest.$ac_objext conftest.$ac_ext
5164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5165 echo "${ECHO_T}$ac_header_compiler" >&6
5167 # Is the header present?
5168 echo "$as_me:$LINENO: checking iconv.h presence" >&5
5169 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
5170 cat >conftest.$ac_ext <<_ACEOF
5171 #line $LINENO "configure"
5172 #include "confdefs.h"
5173 #include <iconv.h>
5174 _ACEOF
5175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5177 ac_status=$?
5178 egrep -v '^ *\+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } >/dev/null; then
5183 if test -s conftest.err; then
5184 ac_cpp_err=$ac_c_preproc_warn_flag
5185 else
5186 ac_cpp_err=
5188 else
5189 ac_cpp_err=yes
5191 if test -z "$ac_cpp_err"; then
5192 ac_header_preproc=yes
5193 else
5194 echo "$as_me: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5196 ac_header_preproc=no
5198 rm -f conftest.err conftest.$ac_ext
5199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5200 echo "${ECHO_T}$ac_header_preproc" >&6
5202 # So? What about this header?
5203 case $ac_header_compiler:$ac_header_preproc in
5204 yes:no )
5205 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
5206 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5207 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
5208 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
5209 no:yes )
5210 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
5211 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
5213 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
5214 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
5215 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
5216 esac
5217 echo "$as_me:$LINENO: checking for iconv.h" >&5
5218 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
5219 if test "${ac_cv_header_iconv_h+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 ac_cv_header_iconv_h=$ac_header_preproc
5224 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
5225 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
5228 if test $ac_cv_header_iconv_h = yes; then
5229 echo "$as_me:$LINENO: checking for iconv" >&5
5230 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5232 cat >conftest.$ac_ext <<_ACEOF
5233 #line $LINENO "configure"
5234 #include "confdefs.h"
5236 #include <stdlib.h>
5237 #include <iconv.h>
5239 #ifdef F77_DUMMY_MAIN
5240 # ifdef __cplusplus
5241 extern "C"
5242 # endif
5243 int F77_DUMMY_MAIN() { return 1; }
5244 #endif
5246 main ()
5249 iconv_t cd = iconv_open ("","");
5250 iconv (cd, NULL, NULL, NULL, NULL);
5253 return 0;
5255 _ACEOF
5256 rm -f conftest.$ac_objext conftest$ac_exeext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5258 (eval $ac_link) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } &&
5262 { ac_try='test -s conftest$ac_exeext'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 (eval $ac_try) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5269 echo "$as_me:$LINENO: result: yes" >&5
5270 echo "${ECHO_T}yes" >&6
5272 cat >>confdefs.h <<\_ACEOF
5273 #define USE_ICONV 1
5274 _ACEOF
5277 else
5278 echo "$as_me: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5281 echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6
5283 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
5284 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
5285 LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
5286 LIBS="-liconv" # for AC_TRY_LINK
5287 cat >conftest.$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5289 #include "confdefs.h"
5291 #include <stdlib.h>
5292 #include <iconv.h>
5294 #ifdef F77_DUMMY_MAIN
5295 # ifdef __cplusplus
5296 extern "C"
5297 # endif
5298 int F77_DUMMY_MAIN() { return 1; }
5299 #endif
5301 main ()
5304 iconv_t cd = iconv_open ("","");
5305 iconv (cd, NULL, NULL, NULL, NULL);
5308 return 0;
5310 _ACEOF
5311 rm -f conftest.$ac_objext conftest$ac_exeext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5313 (eval $ac_link) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest$ac_exeext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5324 echo "$as_me:$LINENO: result: yes" >&5
5325 echo "${ECHO_T}yes" >&6
5327 cat >>confdefs.h <<\_ACEOF
5328 #define USE_ICONV 1
5329 _ACEOF
5331 ICONV_LDFLAGS="${ICONV_LDFLAGS} -liconv"
5333 else
5334 echo "$as_me: failed program was:" >&5
5335 cat conftest.$ac_ext >&5
5337 echo "$as_me:$LINENO: result: no" >&5
5338 echo "${ECHO_T}no" >&6
5339 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
5340 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
5343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5351 CPPFLAGS="$SAVE_CPPFLAGS"
5352 LDFLAGS="$SAVE_LDFLAGS"
5353 LIBS="$SAVE_LIBS"
5354 ac_ext=cc
5355 ac_cpp='$CXXCPP $CPPFLAGS'
5356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5359 # restore C++ language
5364 #--------------------------------------------------------------------
5365 # Checks for freetype library
5366 #--------------------------------------------------------------------
5369 # Check whether --with-freetype or --without-freetype was given.
5370 if test "${with_freetype+set}" = set; then
5371 withval="$with_freetype"
5375 SAVE_CPPFLAGS="$CPPFLAGS"
5376 SAVE_LDFLAGS="$LDFLAGS"
5377 SAVE_LIBS="$LIBS"
5378 if test "$with_freetype" = "no" ; then
5379 echo "$as_me:$LINENO: result: disabling freetype support" >&5
5380 echo "${ECHO_T}disabling freetype support" >&6
5381 else
5382 CPPFLAGS=`freetype-config --cflags`
5383 LIBS=`freetype-config --libs`
5384 if test "${ac_cv_header_ft2build_h+set}" = set; then
5385 echo "$as_me:$LINENO: checking for ft2build.h" >&5
5386 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6
5387 if test "${ac_cv_header_ft2build_h+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
5391 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6
5392 else
5393 # Is the header compilable?
5394 echo "$as_me:$LINENO: checking ft2build.h usability" >&5
5395 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6
5396 cat >conftest.$ac_ext <<_ACEOF
5397 #line $LINENO "configure"
5398 #include "confdefs.h"
5399 $ac_includes_default
5400 #include <ft2build.h>
5401 _ACEOF
5402 rm -f conftest.$ac_objext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } &&
5408 { ac_try='test -s conftest.$ac_objext'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 (eval $ac_try) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 ac_header_compiler=yes
5415 else
5416 echo "$as_me: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5418 ac_header_compiler=no
5420 rm -f conftest.$ac_objext conftest.$ac_ext
5421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5422 echo "${ECHO_T}$ac_header_compiler" >&6
5424 # Is the header present?
5425 echo "$as_me:$LINENO: checking ft2build.h presence" >&5
5426 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6
5427 cat >conftest.$ac_ext <<_ACEOF
5428 #line $LINENO "configure"
5429 #include "confdefs.h"
5430 #include <ft2build.h>
5431 _ACEOF
5432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5434 ac_status=$?
5435 egrep -v '^ *\+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } >/dev/null; then
5440 if test -s conftest.err; then
5441 ac_cpp_err=$ac_cxx_preproc_warn_flag
5442 else
5443 ac_cpp_err=
5445 else
5446 ac_cpp_err=yes
5448 if test -z "$ac_cpp_err"; then
5449 ac_header_preproc=yes
5450 else
5451 echo "$as_me: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5453 ac_header_preproc=no
5455 rm -f conftest.err conftest.$ac_ext
5456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5457 echo "${ECHO_T}$ac_header_preproc" >&6
5459 # So? What about this header?
5460 case $ac_header_compiler:$ac_header_preproc in
5461 yes:no )
5462 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
5463 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5464 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
5465 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;};;
5466 no:yes )
5467 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
5468 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
5470 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
5471 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
5472 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;};;
5473 esac
5474 echo "$as_me:$LINENO: checking for ft2build.h" >&5
5475 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6
5476 if test "${ac_cv_header_ft2build_h+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 ac_cv_header_ft2build_h=$ac_header_preproc
5481 echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
5482 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6
5485 if test $ac_cv_header_ft2build_h = yes; then
5486 echo "$as_me:$LINENO: checking for freetype" >&5
5487 echo $ECHO_N "checking for freetype... $ECHO_C" >&6
5488 cat >conftest.$ac_ext <<_ACEOF
5489 #line $LINENO "configure"
5490 #include "confdefs.h"
5492 #include <ft2build.h>
5493 #include FT_FREETYPE_H
5495 #ifdef F77_DUMMY_MAIN
5496 # ifdef __cplusplus
5497 extern "C"
5498 # endif
5499 int F77_DUMMY_MAIN() { return 1; }
5500 #endif
5502 main ()
5505 FT_Library ft_library;
5506 (void) FT_Init_FreeType (&ft_library);
5509 return 0;
5511 _ACEOF
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try='test -s conftest$ac_exeext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 (eval $ac_try) 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5525 echo "$as_me:$LINENO: result: yes" >&5
5526 echo "${ECHO_T}yes" >&6
5528 cat >>confdefs.h <<\_ACEOF
5529 #define USE_FREETYPE 1
5530 _ACEOF
5532 FREETYPE_CFLAGS="$CPPFLAGS"
5533 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
5534 FREETYPE_LDFLAGS="$LIBS"
5536 cat >>confdefs.h <<\_ACEOF
5537 #define LINKED_FREETYPE 1
5538 _ACEOF
5542 else
5543 echo "$as_me: failed program was:" >&5
5544 cat conftest.$ac_ext >&5
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5555 CPPFLAGS="$SAVE_CPPFLAGS"
5556 LDFLAGS="$SAVE_LDFLAGS"
5557 LIBS="$SAVE_LIBS"
5562 #--------------------------------------------------------------------
5563 # Checks for Imlib2 library
5564 #--------------------------------------------------------------------
5567 # Check whether --with-imlib2 or --without-imlib2 was given.
5568 if test "${with_imlib2+set}" = set; then
5569 withval="$with_imlib2"
5573 SAVE_CPPFLAGS="$CPPFLAGS"
5574 SAVE_LDFLAGS="$LDFLAGS"
5575 SAVE_LIBS="$LIBS"
5576 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
5577 echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
5578 echo "${ECHO_T}disabling imlib2 support" >&6
5579 else
5580 CPPFLAGS=`imlib2-config --cflags`
5581 LIBS=`imlib2-config --libs`
5582 if test "${ac_cv_header_ft2build_h+set}" = set; then
5583 echo "$as_me:$LINENO: checking for ft2build.h" >&5
5584 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6
5585 if test "${ac_cv_header_ft2build_h+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
5589 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6
5590 else
5591 # Is the header compilable?
5592 echo "$as_me:$LINENO: checking ft2build.h usability" >&5
5593 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6
5594 cat >conftest.$ac_ext <<_ACEOF
5595 #line $LINENO "configure"
5596 #include "confdefs.h"
5597 $ac_includes_default
5598 #include <ft2build.h>
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try='test -s conftest.$ac_objext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_header_compiler=yes
5613 else
5614 echo "$as_me: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5616 ac_header_compiler=no
5618 rm -f conftest.$ac_objext conftest.$ac_ext
5619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5620 echo "${ECHO_T}$ac_header_compiler" >&6
5622 # Is the header present?
5623 echo "$as_me:$LINENO: checking ft2build.h presence" >&5
5624 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6
5625 cat >conftest.$ac_ext <<_ACEOF
5626 #line $LINENO "configure"
5627 #include "confdefs.h"
5628 #include <ft2build.h>
5629 _ACEOF
5630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5632 ac_status=$?
5633 egrep -v '^ *\+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } >/dev/null; then
5638 if test -s conftest.err; then
5639 ac_cpp_err=$ac_cxx_preproc_warn_flag
5640 else
5641 ac_cpp_err=
5643 else
5644 ac_cpp_err=yes
5646 if test -z "$ac_cpp_err"; then
5647 ac_header_preproc=yes
5648 else
5649 echo "$as_me: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5651 ac_header_preproc=no
5653 rm -f conftest.err conftest.$ac_ext
5654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5655 echo "${ECHO_T}$ac_header_preproc" >&6
5657 # So? What about this header?
5658 case $ac_header_compiler:$ac_header_preproc in
5659 yes:no )
5660 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
5661 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5662 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
5663 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;};;
5664 no:yes )
5665 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
5666 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
5668 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
5670 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;};;
5671 esac
5672 echo "$as_me:$LINENO: checking for ft2build.h" >&5
5673 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6
5674 if test "${ac_cv_header_ft2build_h+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 ac_cv_header_ft2build_h=$ac_header_preproc
5679 echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
5680 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6
5683 if test $ac_cv_header_ft2build_h = yes; then
5684 echo "$as_me:$LINENO: checking for imlib2" >&5
5685 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6
5686 cat >conftest.$ac_ext <<_ACEOF
5687 #line $LINENO "configure"
5688 #include "confdefs.h"
5690 #include <X11/Xlib.h>
5691 #include <Imlib2.h>
5692 #include <stdio.h>
5693 #include <string.h>
5695 #ifdef F77_DUMMY_MAIN
5696 # ifdef __cplusplus
5697 extern "C"
5698 # endif
5699 int F77_DUMMY_MAIN() { return 1; }
5700 #endif
5702 main ()
5705 Imlib_Image image= imlib_load_image("");
5708 return 0;
5710 _ACEOF
5711 rm -f conftest.$ac_objext conftest$ac_exeext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5713 (eval $ac_link) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -s conftest$ac_exeext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5724 echo "$as_me:$LINENO: result: yes" >&5
5725 echo "${ECHO_T}yes" >&6
5727 cat >>confdefs.h <<\_ACEOF
5728 #define USE_IMLIB2 1
5729 _ACEOF
5731 IMLIB2_CFLAGS="$CPPFLAGS"
5732 if test "$with_imlib2" = "linked" ; then
5733 IMLIB2_LDFLAGS="$LIBS"
5735 cat >>confdefs.h <<\_ACEOF
5736 #define LINKED_IMLIB2 1
5737 _ACEOF
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 cat conftest.$ac_ext >&5
5745 echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5754 CPPFLAGS="$SAVE_CPPFLAGS"
5755 LDFLAGS="$SAVE_LDFLAGS"
5756 LIBS="$SAVE_LIBS"
5761 #--------------------------------------------------------------------
5762 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
5763 #--------------------------------------------------------------------
5765 echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
5766 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6
5767 CXXFLAGS="`guile-config compile`"
5768 cat >conftest.$ac_ext <<_ACEOF
5769 #line $LINENO "configure"
5770 #include "confdefs.h"
5772 #include <guile/gh.h>
5773 #include <libguile.h>
5774 typedef SCM (*FN)(...);
5775 static SCM identity (SCM x) { return x; }
5776 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
5778 #ifdef F77_DUMMY_MAIN
5779 # ifdef __cplusplus
5780 extern "C"
5781 # endif
5782 int F77_DUMMY_MAIN() { return 1; }
5783 #endif
5785 main ()
5790 return 0;
5792 _ACEOF
5793 rm -f conftest.$ac_objext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5795 (eval $ac_compile) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5807 cat >>confdefs.h <<\_ACEOF
5808 #define DOTS_OK 1
5809 _ACEOF
5811 echo "$as_me:$LINENO: result: yes" >&5
5812 echo "${ECHO_T}yes" >&6
5814 else
5815 echo "$as_me: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5818 echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6
5822 rm -f conftest.$ac_objext conftest.$ac_ext
5823 CXXFLAGS=""
5825 echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
5826 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6
5827 CXXFLAGS="`guile-config compile`"
5828 cat >conftest.$ac_ext <<_ACEOF
5829 #line $LINENO "configure"
5830 #include "confdefs.h"
5832 #include <guile/gh.h>
5833 #include <libguile.h>
5834 void print_string (SCM s) {
5835 int len_r;
5836 char* r= gh_scm2newstr (s, &len_r); }
5838 #ifdef F77_DUMMY_MAIN
5839 # ifdef __cplusplus
5840 extern "C"
5841 # endif
5842 int F77_DUMMY_MAIN() { return 1; }
5843 #endif
5845 main ()
5850 return 0;
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
5859 { ac_try='test -s conftest.$ac_objext'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 (eval $ac_try) 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5867 cat >>confdefs.h <<\_ACEOF
5868 #define guile_str_size_t int
5869 _ACEOF
5871 echo "$as_me:$LINENO: result: int" >&5
5872 echo "${ECHO_T}int" >&6
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 cat conftest.$ac_ext >&5
5879 cat >>confdefs.h <<\_ACEOF
5880 #define guile_str_size_t size_t
5881 _ACEOF
5883 echo "$as_me:$LINENO: result: size_t" >&5
5884 echo "${ECHO_T}size_t" >&6
5887 rm -f conftest.$ac_objext conftest.$ac_ext
5888 CXXFLAGS=""
5890 echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
5891 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6
5892 CPPFLAGS="$GUILE_CFLAGS"
5893 LDFLAGS="-static"
5894 LIBS="$GUILE_LDFLAGS"
5895 cat >conftest.$ac_ext <<_ACEOF
5896 #line $LINENO "configure"
5897 #include "confdefs.h"
5899 #include <guile/gh.h>
5900 $CONFIG_DOTS
5902 #ifdef F77_DUMMY_MAIN
5903 # ifdef __cplusplus
5904 extern "C"
5905 # endif
5906 int F77_DUMMY_MAIN() { return 1; }
5907 #endif
5909 main ()
5912 struct dummy {
5913 static void my_main (int argc, char** argv) {}
5914 static void install_guile () {
5915 #ifdef DOTS_OK
5916 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5917 #else
5918 gh_enter (0, NULL, my_main);
5919 #endif
5922 dummy::install_guile ();
5925 return 0;
5927 _ACEOF
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -s conftest$ac_exeext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 tm_link_guile_static="yes"
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5944 tm_link_guile_static="no"
5946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5948 echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
5949 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6
5950 if test "$tm_link_guile_static" = "no" ; then
5951 echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
5952 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6
5953 LIBS="$GUILE_LDFLAGS -lltdl"
5954 cat >conftest.$ac_ext <<_ACEOF
5955 #line $LINENO "configure"
5956 #include "confdefs.h"
5958 #include <guile/gh.h>
5959 $CONFIG_DOTS
5961 #ifdef F77_DUMMY_MAIN
5962 # ifdef __cplusplus
5963 extern "C"
5964 # endif
5965 int F77_DUMMY_MAIN() { return 1; }
5966 #endif
5968 main ()
5971 struct dummy {
5972 static void my_main (int argc, char** argv) {}
5973 static void install_guile () {
5974 #ifdef DOTS_OK
5975 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5976 #else
5977 gh_enter (0, NULL, my_main);
5978 #endif
5981 dummy::install_guile ();
5984 return 0;
5986 _ACEOF
5987 rm -f conftest.$ac_objext conftest$ac_exeext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989 (eval $ac_link) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -s conftest$ac_exeext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
5999 tm_link_guile_static_ltdl="yes"
6000 else
6001 echo "$as_me: failed program was:" >&5
6002 cat conftest.$ac_ext >&5
6003 tm_link_guile_static_ltdl="no"
6005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6007 echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
6008 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6
6009 if test "$tm_link_guile_static_ltdl" = "yes" ; then
6010 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
6011 else
6012 echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
6013 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6
6014 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 #include "confdefs.h"
6019 #include <guile/gh.h>
6020 $CONFIG_DOTS
6022 #ifdef F77_DUMMY_MAIN
6023 # ifdef __cplusplus
6024 extern "C"
6025 # endif
6026 int F77_DUMMY_MAIN() { return 1; }
6027 #endif
6029 main ()
6032 struct dummy {
6033 static void my_main (int argc, char** argv) {}
6034 static void install_guile () {
6035 #ifdef DOTS_OK
6036 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6037 #else
6038 gh_enter (0, NULL, my_main);
6039 #endif
6042 dummy::install_guile ();
6045 return 0;
6047 _ACEOF
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050 (eval $ac_link) 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try='test -s conftest$ac_exeext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 tm_link_guile_static_ltdl_ldl="yes"
6061 else
6062 echo "$as_me: failed program was:" >&5
6063 cat conftest.$ac_ext >&5
6064 tm_link_guile_static_ltdl_ldl="no"
6066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6068 echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
6069 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6
6070 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
6071 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
6072 else
6073 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
6074 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
6078 CPPFLAGS=""
6079 LDFLAGS=""
6080 LIBS=""
6082 #--------------------------------------------------------------------
6083 # Handle different systems case by case
6084 #--------------------------------------------------------------------
6086 CONFIG_OS="GNU_LINUX"
6087 CONFIG_OS_SUFFIX="gnu-linux"
6088 CONFIG_CXXFLAGS=""
6089 CONFIG_CXXTEMPLATE=""
6090 CONFIG_STD_SETENV="#define STD_SETENV"
6091 CONFIG_SO="so"
6092 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
6093 CONFIG_CHMOD="chmod -f"
6094 CONFIG_CX="$X_CFLAGS"
6095 CONFIG_CXXOPTIMIZE="-O2"
6096 CONFIG_BSTATIC="-Wl,-Bstatic"
6097 CONFIG_BSHARED="-Wl,-Bdynamic"
6098 CONFIG_BFLAGS=""
6099 CONFIG_BPATH="-Wl,-rpath,"
6100 CONFIG_BX="$X_LIBS -lXext -lX11"
6101 CONFIG_WORD_LENGTH="4"
6102 CONFIG_WORD_LENGTH_INC="3"
6103 CONFIG_WORD_MASK="0xfffffffc"
6104 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
6106 echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
6107 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6
6108 if test "$cross_compiling" = yes; then
6109 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6110 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6111 { (exit 1); exit 1; }; }
6112 else
6113 cat >conftest.$ac_ext <<_ACEOF
6114 #line $LINENO "configure"
6115 #include "confdefs.h"
6117 #ifdef F77_DUMMY_MAIN
6118 # ifdef __cplusplus
6119 extern "C"
6120 # endif
6121 int F77_DUMMY_MAIN() { return 1; }
6122 #endif
6124 main ()
6126 return(sizeof(void*))
6128 return 0;
6130 _ACEOF
6131 rm -f conftest$ac_exeext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6133 (eval $ac_link) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 void_size=0
6143 else
6144 echo "$as_me: program exited with status $ac_status" >&5
6145 echo "$as_me: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6147 ( exit $ac_status )
6148 void_size=$?
6150 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6152 if test "$void_size" = "8"; then
6153 echo "$as_me:$LINENO: result: yes" >&5
6154 echo "${ECHO_T}yes" >&6
6155 CONFIG_WORD_LENGTH="8"
6156 CONFIG_WORD_LENGTH_INC="7"
6157 CONFIG_WORD_MASK="0xfffffffffffffff8"
6158 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6159 else
6160 echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6
6164 ac_aux_dir=
6165 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6166 if test -f $ac_dir/install-sh; then
6167 ac_aux_dir=$ac_dir
6168 ac_install_sh="$ac_aux_dir/install-sh -c"
6169 break
6170 elif test -f $ac_dir/install.sh; then
6171 ac_aux_dir=$ac_dir
6172 ac_install_sh="$ac_aux_dir/install.sh -c"
6173 break
6174 elif test -f $ac_dir/shtool; then
6175 ac_aux_dir=$ac_dir
6176 ac_install_sh="$ac_aux_dir/shtool install -c"
6177 break
6179 done
6180 if test -z "$ac_aux_dir"; then
6181 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6182 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6183 { (exit 1); exit 1; }; }
6185 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6186 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6187 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6189 # Make sure we can run config.sub.
6190 $ac_config_sub sun4 >/dev/null 2>&1 ||
6191 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6192 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6193 { (exit 1); exit 1; }; }
6195 echo "$as_me:$LINENO: checking build system type" >&5
6196 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6197 if test "${ac_cv_build+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200 ac_cv_build_alias=$build_alias
6201 test -z "$ac_cv_build_alias" &&
6202 ac_cv_build_alias=`$ac_config_guess`
6203 test -z "$ac_cv_build_alias" &&
6204 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6205 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6206 { (exit 1); exit 1; }; }
6207 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6208 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6209 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6210 { (exit 1); exit 1; }; }
6213 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6214 echo "${ECHO_T}$ac_cv_build" >&6
6215 build=$ac_cv_build
6216 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6217 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6218 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6221 echo "$as_me:$LINENO: checking host system type" >&5
6222 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6223 if test "${ac_cv_host+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 ac_cv_host_alias=$host_alias
6227 test -z "$ac_cv_host_alias" &&
6228 ac_cv_host_alias=$ac_cv_build_alias
6229 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6230 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6231 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6232 { (exit 1); exit 1; }; }
6235 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6236 echo "${ECHO_T}$ac_cv_host" >&6
6237 host=$ac_cv_host
6238 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6239 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6240 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6243 case "${host}" in
6244 i*86-*-linux* | x86_64-*-linux*)
6245 echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
6246 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6
6247 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6249 i*86-*-freebsd* | x86_64-*-freebsd*)
6250 echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
6251 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6
6252 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6254 i*86-*-solaris*)
6255 echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
6256 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6
6257 CONFIG_CXXOPTIMIZE="-O3"
6258 CONFIG_BPATH="-Wl,-R,"
6259 CONFIG_BX="$X_LIBS -lXext -lX11 -lsocket"
6261 *-*-cygwin)
6262 echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
6263 echo "${ECHO_T}final adjustments for cygwin host" >&6
6264 CONFIG_OS="CYGWIN"
6265 CONFIG_BFLAGS="-Wl,-stack,8388608"
6266 # CXX="export CYGWIN=check_case:strict; $CXX"
6267 # AC_SUBST(CXX)
6269 powerpc-*-darwin*)
6270 echo "$ac_t""final adjustments for a PowerPC/Darwin host" 1>&6
6271 CONFIG_OS="DARWIN"
6272 CONFIG_CXXFLAGS="-I${prefix}/include"
6273 CONFIG_BSHARED=""
6274 CONFIG_BPATH=""
6275 CONFIG_SO="dylib"
6276 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
6278 powerpc-*-linux*)
6279 echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
6280 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6
6281 CONFIG_OS="POWERPC_GNU_LINUX"
6282 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6284 *sun*)
6285 echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
6286 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6
6287 CONFIG_OS="SUN"
6288 CONFIG_OS_SUFFIX="sun"
6289 CONFIG_BSTATIC=""
6290 CONFIG_BSHARED=""
6291 CONFIG_BPATH="-Wl,-R,"
6292 CONFIG_BX="$X_LIBS -lXext -lX11 -lsocket"
6293 CONFIG_WORD_LENGTH="8"
6294 CONFIG_WORD_LENGTH_INC="7"
6295 CONFIG_WORD_MASK="0xfffffff8"
6296 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6297 CONFIG_STD_SETENV=""
6299 sparc*-*-linux*)
6300 echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
6301 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6
6302 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6303 CONFIG_WORD_LENGTH="8"
6304 CONFIG_WORD_LENGTH_INC="7"
6305 CONFIG_WORD_MASK="0xfffffff8"
6306 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6307 CONFIG_STD_SETENV=""
6309 *dec*)
6310 echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
6311 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6
6312 CONFIG_BSTATIC=""
6313 CONFIG_BSHARED="-shared"
6314 CONFIG_STD_SETENV=""
6316 *alpha*-*-linux*)
6317 echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
6318 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6
6319 CONFIG_BSTATIC=""
6320 CONFIG_BSHARED="-shared"
6322 s390-*-linux*)
6323 echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
6324 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6
6325 CONFIG_STD_SETENV=""
6327 ia64-*-linux*)
6328 echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
6329 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6
6330 CONFIG_BSTATIC=""
6331 CONFIG_BSHARED="-shared"
6333 hppa*-*-linux*)
6334 echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
6335 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6
6336 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
6337 CONFIG_BSTATIC=""
6338 CONFIG_BSHARED="-shared"
6340 *sgi-irix*)
6341 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
6342 CONFIG_OS="IRIX"
6343 CONFIG_CXXFLAGS=""
6344 X_LIBS=-L/usr/lib32
6345 CONFIG_BSTATIC=""
6346 CONFIG_BSHARED=""
6347 CONFIG_BPATH=""
6348 CONFIG_BX="$X_LIBS -lX11"
6349 CONFIG_WORD_MASK="0xfffffff8"
6350 CONFIG_STD_SETENV=""
6351 CONFIG_CHMOD="chmod"
6352 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
6354 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
6355 echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
6356 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6
6358 *-linux*)
6359 echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
6360 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6
6363 echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
6364 echo "${ECHO_T}final adjustments for a generic host" >&6
6366 esac
6368 #--------------------------------------------------------------------
6369 # Temporary fix for link problem
6370 #--------------------------------------------------------------------
6372 case "$GXX_VERSION" in
6373 3.* | 4.*)
6374 CONFIG_BSTATIC="-static"
6375 CONFIG_BSHARED="-dynamic"
6377 esac
6379 #--------------------------------------------------------------------
6380 # Memory allocation options
6381 #--------------------------------------------------------------------
6383 # Check whether --enable-fastalloc or --disable-fastalloc was given.
6384 if test "${enable_fastalloc+set}" = set; then
6385 enableval="$enable_fastalloc"
6387 else
6388 enable_fastalloc="yes"
6390 case "$enable_fastalloc" in
6391 yes)
6394 echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
6395 echo "${ECHO_T}disabling fast allocator for small objects" >&6
6397 cat >>confdefs.h <<\_ACEOF
6398 #define NO_FAST_ALLOC 1
6399 _ACEOF
6403 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
6404 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
6405 { (exit 1); exit 1; }; }
6407 esac
6409 #--------------------------------------------------------------------
6410 # Experimental options
6411 #--------------------------------------------------------------------
6413 # Check whether --enable-experimental or --disable-experimental was given.
6414 if test "${enable_experimental+set}" = set; then
6415 enableval="$enable_experimental"
6417 else
6418 enable_experimental="no"
6420 case "$enable_experimental" in
6421 yes)
6422 echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
6423 echo "${ECHO_T}enabling experimental style rewriting code" >&6
6425 cat >>confdefs.h <<\_ACEOF
6426 #define EXPERIMENTAL 1
6427 _ACEOF
6429 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
6432 echo "$as_me:$LINENO: result: disabling experimental features" >&5
6433 echo "${ECHO_T}disabling experimental features" >&6
6434 CONFIG_EXPERIMENTAL=""
6437 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
6438 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
6439 { (exit 1); exit 1; }; }
6441 esac
6444 #--------------------------------------------------------------------
6445 # Debugging options
6446 #--------------------------------------------------------------------
6448 echo "$as_me:$LINENO: checking if compiler supports -fno-rtti -fno-exceptions" >&5
6449 echo $ECHO_N "checking if compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6450 CXXFLAGS="-fno-rtti -fno-exceptions"
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 #include "confdefs.h"
6455 int some_variable = 0;
6457 #ifdef F77_DUMMY_MAIN
6458 # ifdef __cplusplus
6459 extern "C"
6460 # endif
6461 int F77_DUMMY_MAIN() { return 1; }
6462 #endif
6464 main ()
6469 return 0;
6471 _ACEOF
6472 rm -f conftest.$ac_objext
6473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474 (eval $ac_compile) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
6478 { ac_try='test -s conftest.$ac_objext'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 (eval $ac_try) 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6485 CONFIG_CXXDIALECT="-fno-rtti -fno-exceptions"
6486 echo "$as_me:$LINENO: result: yes" >&5
6487 echo "${ECHO_T}yes" >&6
6489 else
6490 echo "$as_me: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6493 CONFIG_CXXDIALECT=""
6494 echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6
6498 rm -f conftest.$ac_objext conftest.$ac_ext
6499 CXXFLAGS=""
6502 # Check whether --enable-debug or --disable-debug was given.
6503 if test "${enable_debug+set}" = set; then
6504 enableval="$enable_debug"
6506 else
6507 enable_debug="no"
6510 if test "$enable_debug" = "yes"; then
6511 if test "$GXX" = "yes"; then
6512 enable_debug="-ggdb"
6513 else
6514 enable_debug="-g3"
6518 if test "$enable_debug" = "no"; then
6519 echo "$as_me:$LINENO: result: disabling debugging" >&5
6520 echo "${ECHO_T}disabling debugging" >&6
6521 CONFIG_STRIP="strip"
6522 CONFIG_CXXDEBUG=""
6523 optimize_default="yes"
6524 else
6525 echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
6526 echo "${ECHO_T}enabling debugging, $enable_debug" >&6
6527 CONFIG_STRIP="true"
6528 CONFIG_CXXDEBUG="$enable_debug"
6529 optimize_default="no"
6532 #--------------------------------------------------------------------
6533 # Warning options
6534 #--------------------------------------------------------------------
6536 case "$GXX_VERSION" in
6537 none)
6538 CONFIG_CXXWARNING="";
6541 CONFIG_CXXWARNING="-Wall -Wno-return-type"
6543 esac
6545 # Check whether --enable-warnings or --disable-warnings was given.
6546 if test "${enable_warnings+set}" = set; then
6547 enableval="$enable_warnings"
6549 else
6550 enable_warnings="yes"
6552 case "$enable_warnings" in
6553 yes)
6554 echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
6555 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6 ;;
6557 CONFIG_CXXWARNING=""
6558 echo "$as_me:$LINENO: result: disabling warning flags" >&5
6559 echo "${ECHO_T}disabling warning flags" >&6 ;;
6561 CONFIG_CXXWARNING="$enable_warnings"
6562 echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
6563 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6 ;;
6564 esac
6566 #--------------------------------------------------------------------
6567 # Optimization options
6568 #--------------------------------------------------------------------
6570 if test "$optimize_default" = "yes"; then
6571 case "$GXX_VERSION" in
6572 3.3.3 | 3.3.4 | 4.*)
6574 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
6575 case "${host}" in
6576 i*86-*-linux-gnu* | i*86-*-freebsd*)
6577 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
6578 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
6579 optimize_default="no-inline"
6582 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
6583 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
6584 optimize_default="no-inline"
6586 esac
6588 esac
6591 # Check whether --enable-optimize or --disable-optimize was given.
6592 if test "${enable_optimize+set}" = set; then
6593 enableval="$enable_optimize"
6595 else
6596 enable_optimize="$optimize_default"
6599 case "$enable_optimize" in
6600 yes)
6601 # keep optimization options
6602 echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
6603 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6 ;;
6604 no-inline)
6605 optimize_no_inline="-fno-default-inline -fno-inline"
6606 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
6607 echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
6608 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6 ;;
6610 CONFIG_CXXOPTIMIZE=""
6611 echo "$as_me:$LINENO: result: disabling optimizations" >&5
6612 echo "${ECHO_T}disabling optimizations" >&6 ;;
6614 CONFIG_CXXOPTIMIZE="$enable_optimize"
6615 echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
6616 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6 ;;
6617 esac
6619 #--------------------------------------------------------------------
6620 # Substitute TeXmacs specific configuration parameters
6621 #--------------------------------------------------------------------
6646 #--------------------------------------------------------------------
6647 # Default paths for installation
6648 #--------------------------------------------------------------------
6650 if test "$prefix" = ""; then
6651 prefix=/usr/local
6653 if test "$prefix" = "NONE"; then
6654 prefix=/usr/local
6656 if test "$exec_prefix" = ""; then
6657 exec_prefix='${prefix}'
6659 if test "$exec_prefix" = "NONE"; then
6660 exec_prefix='${prefix}'
6662 if test "$exec_prefix" = '${prefix}'; then
6663 exec_prefix='${prefix}'
6665 if test "$includedir" = ""; then
6666 includedir='${prefix}/include'
6668 if test "$includedir" = "NONE"; then
6669 includedir='${prefix}/include'
6671 if test "$includedir" = '${prefix}/include'; then
6672 includedir='${prefix}/include'
6674 if test "$libdir" = ""; then
6675 libdir='${exec_prefix}/lib'
6677 if test "$libdir" = "NONE"; then
6678 libdir='${exec_prefix}/lib'
6680 if test "$libdir" = '${exec_prefix}/lib'; then
6681 libdir='${exec_prefix}/lib'
6683 if test "$bindir" = ""; then
6684 bindir='${exec_prefix}/bin'
6686 if test "$bindir" = "NONE"; then
6687 bindir=${exec_prefix}/bin
6689 if test "$bindir" = '${exec_prefix}/bin'; then
6690 bindir='${exec_prefix}/bin'
6692 if test "$datadir" = ""; then
6693 datadir='${prefix}/share'
6695 if test "$datadir" = "NONE"; then
6696 datadir='${prefix}/share'
6698 if test "$datadir" = '${prefix}/share'; then
6699 datadir='${prefix}/share'
6701 if test "$mandir" = ""; then
6702 mandir='${prefix}/man'
6704 if test "$mandir" = "NONE"; then
6705 mandir='${prefix}/man'
6707 if test "$mandir" = '${prefix}/man'; then
6708 mandir='${prefix}/man'
6710 if test "$libexecdir" = ""; then
6711 libexecdir='${exec_prefix}/libexec'
6713 if test "$libexecdir" = "NONE"; then
6714 libexecdir='${exec_prefix}/libexec'
6716 if test "$libexecdir" = '${exec_prefix}/libexec'; then
6717 libexecdir='${exec_prefix}/libexec'
6720 curdir="`pwd`"
6721 tmorig=${curdir}
6722 tmdir=${PACKAGE}
6723 tmsrc=${curdir}/${tmdir}
6724 tmbin=${libexecdir}/${tmdir}
6725 tmdata=${datadir}/${tmdir}
6732 if test "$DEVEL_RELEASE" = "1"; then
6733 tmtgz=${PACKAGE}-${DEVEL_VERSION}
6734 else
6735 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
6737 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
6738 if test "$STABLE_RELEASE" = "1"; then
6739 tmstgz=${PACKAGE}-${STABLE_VERSION}
6740 else
6741 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
6743 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
6744 if test "$WINDOWS_RELEASE" = "1"; then
6745 tmwin=wintexmacs-${WINDOWS_VERSION}
6746 else
6747 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
6755 #--------------------------------------------------------------------
6756 # Done
6757 #--------------------------------------------------------------------
6759 ac_config_files="$ac_config_files Makefile:Makefile.in src/makefile:src/makefile.in src/System/tm_configure.hpp:src/System/tm_configure.in misc/admin/admin.makefile:misc/admin/admin.makefile.in misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in misc/man/texmacs.1:misc/man/texmacs.1.in misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in misc/scripts/fig2ps:misc/scripts/fig2ps.in misc/scripts/texmacs:misc/scripts/texmacs.in TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in"
6760 cat >confcache <<\_ACEOF
6761 # This file is a shell script that caches the results of configure
6762 # tests run on this system so they can be shared between configure
6763 # scripts and configure runs, see configure's option --config-cache.
6764 # It is not useful on other systems. If it contains results you don't
6765 # want to keep, you may remove or edit it.
6767 # config.status only pays attention to the cache file if you give it
6768 # the --recheck option to rerun configure.
6770 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6772 # following values.
6774 _ACEOF
6776 # The following way of writing the cache mishandles newlines in values,
6777 # but we know of no workaround that is simple, portable, and efficient.
6778 # So, don't put newlines in cache variables' values.
6779 # Ultrix sh set writes to stderr and can't be redirected directly,
6780 # and sets the high bit in the cache file unless we assign to the vars.
6782 (set) 2>&1 |
6783 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6784 *ac_space=\ *)
6785 # `set' does not quote correctly, so add quotes (double-quote
6786 # substitution turns \\\\ into \\, and sed turns \\ into \).
6787 sed -n \
6788 "s/'/'\\\\''/g;
6789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6792 # `set' quotes correctly as required by POSIX, so do not add quotes.
6793 sed -n \
6794 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6796 esac;
6798 sed '
6799 t clear
6800 : clear
6801 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6802 t end
6803 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6804 : end' >>confcache
6805 if cmp -s $cache_file confcache; then :; else
6806 if test -w $cache_file; then
6807 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6808 cat confcache >$cache_file
6809 else
6810 echo "not updating unwritable cache $cache_file"
6813 rm -f confcache
6815 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6816 # Let make expand exec_prefix.
6817 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6819 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6820 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6821 # trailing colons and then remove the whole line if VPATH becomes empty
6822 # (actually we leave an empty line to preserve line numbers).
6823 if test "x$srcdir" = x.; then
6824 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6825 s/:*\$(srcdir):*/:/;
6826 s/:*\${srcdir}:*/:/;
6827 s/:*@srcdir@:*/:/;
6828 s/^\([^=]*=[ ]*\):*/\1/;
6829 s/:*$//;
6830 s/^[^=]*=[ ]*$//;
6834 DEFS=-DHAVE_CONFIG_H
6837 : ${CONFIG_STATUS=./config.status}
6838 ac_clean_files_save=$ac_clean_files
6839 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6840 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6841 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6842 cat >$CONFIG_STATUS <<_ACEOF
6843 #! $SHELL
6844 # Generated by $as_me.
6845 # Run this file to recreate the current configuration.
6846 # Compiler output produced by configure, useful for debugging
6847 # configure, is in config.log if it exists.
6849 debug=false
6850 SHELL=\${CONFIG_SHELL-$SHELL}
6851 _ACEOF
6853 cat >>$CONFIG_STATUS <<\_ACEOF
6855 ## --------------------- ##
6856 ## M4sh Initialization. ##
6857 ## --------------------- ##
6859 # Be Bourne compatible
6860 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6861 emulate sh
6862 NULLCMD=:
6863 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6864 set -o posix
6867 # NLS nuisances.
6868 # Support unset when possible.
6869 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6870 as_unset=unset
6871 else
6872 as_unset=false
6875 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6876 { $as_unset LANG || test "${LANG+set}" != set; } ||
6877 { LANG=C; export LANG; }
6878 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6879 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6880 { LC_ALL=C; export LC_ALL; }
6881 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6882 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6883 { LC_TIME=C; export LC_TIME; }
6884 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6885 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6886 { LC_CTYPE=C; export LC_CTYPE; }
6887 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6888 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6889 { LANGUAGE=C; export LANGUAGE; }
6890 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6891 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6892 { LC_COLLATE=C; export LC_COLLATE; }
6893 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6894 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6895 { LC_NUMERIC=C; export LC_NUMERIC; }
6896 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6897 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6898 { LC_MESSAGES=C; export LC_MESSAGES; }
6901 # Name of the executable.
6902 as_me=`(basename "$0") 2>/dev/null ||
6903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6904 X"$0" : 'X\(//\)$' \| \
6905 X"$0" : 'X\(/\)$' \| \
6906 . : '\(.\)' 2>/dev/null ||
6907 echo X/"$0" |
6908 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6909 /^X\/\(\/\/\)$/{ s//\1/; q; }
6910 /^X\/\(\/\).*/{ s//\1/; q; }
6911 s/.*/./; q'`
6913 # PATH needs CR, and LINENO needs CR and PATH.
6914 # Avoid depending upon Character Ranges.
6915 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6916 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6917 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6918 as_cr_digits='0123456789'
6919 as_cr_alnum=$as_cr_Letters$as_cr_digits
6921 # The user is always right.
6922 if test "${PATH_SEPARATOR+set}" != set; then
6923 echo "#! /bin/sh" >conftest.sh
6924 echo "exit 0" >>conftest.sh
6925 chmod +x conftest.sh
6926 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6927 PATH_SEPARATOR=';'
6928 else
6929 PATH_SEPARATOR=:
6931 rm -f conftest.sh
6935 as_lineno_1=$LINENO
6936 as_lineno_2=$LINENO
6937 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6938 test "x$as_lineno_1" != "x$as_lineno_2" &&
6939 test "x$as_lineno_3" = "x$as_lineno_2" || {
6940 # Find who we are. Look in the path if we contain no path at all
6941 # relative or not.
6942 case $0 in
6943 *[\\/]* ) as_myself=$0 ;;
6944 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6950 done
6953 esac
6954 # We did not find ourselves, most probably we were run as `sh COMMAND'
6955 # in which case we are not to be found in the path.
6956 if test "x$as_myself" = x; then
6957 as_myself=$0
6959 if test ! -f "$as_myself"; then
6960 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6961 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6962 { (exit 1); exit 1; }; }
6964 case $CONFIG_SHELL in
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for as_base in sh bash ksh sh5; do
6972 case $as_dir in
6974 if ("$as_dir/$as_base" -c '
6975 as_lineno_1=$LINENO
6976 as_lineno_2=$LINENO
6977 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6978 test "x$as_lineno_1" != "x$as_lineno_2" &&
6979 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6980 CONFIG_SHELL=$as_dir/$as_base
6981 export CONFIG_SHELL
6982 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6983 fi;;
6984 esac
6985 done
6986 done
6988 esac
6990 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6991 # uniformly replaced by the line number. The first 'sed' inserts a
6992 # line-number line before each line; the second 'sed' does the real
6993 # work. The second script uses 'N' to pair each line-number line
6994 # with the numbered line, and appends trailing '-' during
6995 # substitution so that $LINENO is not a special case at line end.
6996 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6997 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6998 sed '=' <$as_myself |
6999 sed '
7001 s,$,-,
7002 : loop
7003 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7004 t loop
7005 s,-$,,
7006 s,^['$as_cr_digits']*\n,,
7007 ' >$as_me.lineno &&
7008 chmod +x $as_me.lineno ||
7009 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7010 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7011 { (exit 1); exit 1; }; }
7013 # Don't try to exec as it changes $[0], causing all sort of problems
7014 # (the dirname of $[0] is not the place where we might find the
7015 # original and so on. Autoconf is especially sensible to this).
7016 . ./$as_me.lineno
7017 # Exit status is that of the last command.
7018 exit
7022 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7023 *c*,-n*) ECHO_N= ECHO_C='
7024 ' ECHO_T=' ' ;;
7025 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7026 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7027 esac
7029 if expr a : '\(a\)' >/dev/null 2>&1; then
7030 as_expr=expr
7031 else
7032 as_expr=false
7035 rm -f conf$$ conf$$.exe conf$$.file
7036 echo >conf$$.file
7037 if ln -s conf$$.file conf$$ 2>/dev/null; then
7038 # We could just check for DJGPP; but this test a) works b) is more generic
7039 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7040 if test -f conf$$.exe; then
7041 # Don't use ln at all; we don't have any links
7042 as_ln_s='cp -p'
7043 else
7044 as_ln_s='ln -s'
7046 elif ln conf$$.file conf$$ 2>/dev/null; then
7047 as_ln_s=ln
7048 else
7049 as_ln_s='cp -p'
7051 rm -f conf$$ conf$$.exe conf$$.file
7053 as_executable_p="test -f"
7055 # Sed expression to map a string onto a valid CPP name.
7056 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7058 # Sed expression to map a string onto a valid variable name.
7059 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7062 # IFS
7063 # We need space, tab and new line, in precisely that order.
7064 as_nl='
7066 IFS=" $as_nl"
7068 # CDPATH.
7069 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
7071 exec 6>&1
7073 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7074 # report actual input values of CONFIG_FILES etc. instead of their
7075 # values after options handling. Logging --version etc. is OK.
7076 exec 5>>config.log
7078 echo
7079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7080 ## Running $as_me. ##
7081 _ASBOX
7082 } >&5
7083 cat >&5 <<_CSEOF
7085 This file was extended by $as_me, which was
7086 generated by GNU Autoconf 2.53. Invocation command line was
7088 CONFIG_FILES = $CONFIG_FILES
7089 CONFIG_HEADERS = $CONFIG_HEADERS
7090 CONFIG_LINKS = $CONFIG_LINKS
7091 CONFIG_COMMANDS = $CONFIG_COMMANDS
7092 $ $0 $@
7094 _CSEOF
7095 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7096 echo >&5
7097 _ACEOF
7099 # Files that config.status was made for.
7100 if test -n "$ac_config_files"; then
7101 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7104 if test -n "$ac_config_headers"; then
7105 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7108 if test -n "$ac_config_links"; then
7109 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7112 if test -n "$ac_config_commands"; then
7113 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7116 cat >>$CONFIG_STATUS <<\_ACEOF
7118 ac_cs_usage="\
7119 \`$as_me' instantiates files from templates according to the
7120 current configuration.
7122 Usage: $0 [OPTIONS] [FILE]...
7124 -h, --help print this help, then exit
7125 -V, --version print version number, then exit
7126 -d, --debug don't remove temporary files
7127 --recheck update $as_me by reconfiguring in the same conditions
7128 --file=FILE[:TEMPLATE]
7129 instantiate the configuration file FILE
7130 --header=FILE[:TEMPLATE]
7131 instantiate the configuration header FILE
7133 Configuration files:
7134 $config_files
7136 Configuration headers:
7137 $config_headers
7139 Report bugs to <bug-autoconf@gnu.org>."
7140 _ACEOF
7142 cat >>$CONFIG_STATUS <<_ACEOF
7143 ac_cs_version="\\
7144 config.status
7145 configured by $0, generated by GNU Autoconf 2.53,
7146 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7148 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7149 Free Software Foundation, Inc.
7150 This config.status script is free software; the Free Software Foundation
7151 gives unlimited permission to copy, distribute and modify it."
7152 srcdir=$srcdir
7153 _ACEOF
7155 cat >>$CONFIG_STATUS <<\_ACEOF
7156 # If no file are specified by the user, then we need to provide default
7157 # value. By we need to know if files were specified by the user.
7158 ac_need_defaults=:
7159 while test $# != 0
7161 case $1 in
7162 --*=*)
7163 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7164 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7165 shift
7166 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7167 shift
7169 -*);;
7170 *) # This is not an option, so the user has probably given explicit
7171 # arguments.
7172 ac_need_defaults=false;;
7173 esac
7175 case $1 in
7176 # Handling of the options.
7177 _ACEOF
7178 cat >>$CONFIG_STATUS <<_ACEOF
7179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7180 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7181 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7182 _ACEOF
7183 cat >>$CONFIG_STATUS <<\_ACEOF
7184 --version | --vers* | -V )
7185 echo "$ac_cs_version"; exit 0 ;;
7186 --he | --h)
7187 # Conflict between --help and --header
7188 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7189 Try \`$0 --help' for more information." >&5
7190 echo "$as_me: error: ambiguous option: $1
7191 Try \`$0 --help' for more information." >&2;}
7192 { (exit 1); exit 1; }; };;
7193 --help | --hel | -h )
7194 echo "$ac_cs_usage"; exit 0 ;;
7195 --debug | --d* | -d )
7196 debug=: ;;
7197 --file | --fil | --fi | --f )
7198 shift
7199 CONFIG_FILES="$CONFIG_FILES $1"
7200 ac_need_defaults=false;;
7201 --header | --heade | --head | --hea )
7202 shift
7203 CONFIG_HEADERS="$CONFIG_HEADERS $1"
7204 ac_need_defaults=false;;
7206 # This is an error.
7207 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7208 Try \`$0 --help' for more information." >&5
7209 echo "$as_me: error: unrecognized option: $1
7210 Try \`$0 --help' for more information." >&2;}
7211 { (exit 1); exit 1; }; } ;;
7213 *) ac_config_targets="$ac_config_targets $1" ;;
7215 esac
7216 shift
7217 done
7219 _ACEOF
7225 cat >>$CONFIG_STATUS <<\_ACEOF
7226 for ac_config_target in $ac_config_targets
7228 case "$ac_config_target" in
7229 # Handling of arguments.
7230 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
7231 "src/makefile" ) CONFIG_FILES="$CONFIG_FILES src/makefile:src/makefile.in" ;;
7232 "src/System/tm_configure.hpp" ) CONFIG_FILES="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
7233 "misc/admin/admin.makefile" ) CONFIG_FILES="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
7234 "misc/doxygen/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
7235 "misc/man/texmacs.1" ) CONFIG_FILES="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
7236 "misc/rpm/TeXmacs.spec" ) CONFIG_FILES="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
7237 "misc/scripts/fig2ps" ) CONFIG_FILES="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
7238 "misc/scripts/texmacs" ) CONFIG_FILES="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
7239 "TeXmacs/examples/plugins/dynlink/Makefile" ) CONFIG_FILES="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
7240 "src/System/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
7241 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7242 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7243 { (exit 1); exit 1; }; };;
7244 esac
7245 done
7247 # If the user did not use the arguments to specify the items to instantiate,
7248 # then the envvar interface is used. Set only those that are not.
7249 # We use the long form for the default assignment because of an extremely
7250 # bizarre bug on SunOS 4.1.3.
7251 if $ac_need_defaults; then
7252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7256 # Create a temporary directory, and hook for its removal unless debugging.
7257 $debug ||
7259 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7260 trap '{ (exit 1); exit 1; }' 1 2 13 15
7263 # Create a (secure) tmp directory for tmp files.
7264 : ${TMPDIR=/tmp}
7266 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7267 test -n "$tmp" && test -d "$tmp"
7268 } ||
7270 tmp=$TMPDIR/cs$$-$RANDOM
7271 (umask 077 && mkdir $tmp)
7272 } ||
7274 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7275 { (exit 1); exit 1; }
7278 _ACEOF
7280 cat >>$CONFIG_STATUS <<_ACEOF
7283 # CONFIG_FILES section.
7286 # No need to generate the scripts if there are no CONFIG_FILES.
7287 # This happens for instance when ./config.status config.h
7288 if test -n "\$CONFIG_FILES"; then
7289 # Protect against being on the right side of a sed subst in config.status.
7290 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7291 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7292 s,@SHELL@,$SHELL,;t t
7293 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7294 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7295 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7296 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7297 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7298 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7299 s,@exec_prefix@,$exec_prefix,;t t
7300 s,@prefix@,$prefix,;t t
7301 s,@program_transform_name@,$program_transform_name,;t t
7302 s,@bindir@,$bindir,;t t
7303 s,@sbindir@,$sbindir,;t t
7304 s,@libexecdir@,$libexecdir,;t t
7305 s,@datadir@,$datadir,;t t
7306 s,@sysconfdir@,$sysconfdir,;t t
7307 s,@sharedstatedir@,$sharedstatedir,;t t
7308 s,@localstatedir@,$localstatedir,;t t
7309 s,@libdir@,$libdir,;t t
7310 s,@includedir@,$includedir,;t t
7311 s,@oldincludedir@,$oldincludedir,;t t
7312 s,@infodir@,$infodir,;t t
7313 s,@mandir@,$mandir,;t t
7314 s,@build_alias@,$build_alias,;t t
7315 s,@host_alias@,$host_alias,;t t
7316 s,@target_alias@,$target_alias,;t t
7317 s,@DEFS@,$DEFS,;t t
7318 s,@ECHO_C@,$ECHO_C,;t t
7319 s,@ECHO_N@,$ECHO_N,;t t
7320 s,@ECHO_T@,$ECHO_T,;t t
7321 s,@LIBS@,$LIBS,;t t
7322 s,@PACKAGE@,$PACKAGE,;t t
7323 s,@DEVEL_VERSION@,$DEVEL_VERSION,;t t
7324 s,@DEVEL_RELEASE@,$DEVEL_RELEASE,;t t
7325 s,@STABLE_VERSION@,$STABLE_VERSION,;t t
7326 s,@STABLE_RELEASE@,$STABLE_RELEASE,;t t
7327 s,@CC@,$CC,;t t
7328 s,@CFLAGS@,$CFLAGS,;t t
7329 s,@LDFLAGS@,$LDFLAGS,;t t
7330 s,@CPPFLAGS@,$CPPFLAGS,;t t
7331 s,@ac_ct_CC@,$ac_ct_CC,;t t
7332 s,@EXEEXT@,$EXEEXT,;t t
7333 s,@OBJEXT@,$OBJEXT,;t t
7334 s,@CXX@,$CXX,;t t
7335 s,@CXXFLAGS@,$CXXFLAGS,;t t
7336 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7337 s,@GUILE_CFLAGS@,$GUILE_CFLAGS,;t t
7338 s,@GUILE_LDFLAGS@,$GUILE_LDFLAGS,;t t
7339 s,@CONFIG_GUILE_SERIAL@,$CONFIG_GUILE_SERIAL,;t t
7340 s,@CXXCPP@,$CXXCPP,;t t
7341 s,@X_CFLAGS@,$X_CFLAGS,;t t
7342 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
7343 s,@X_LIBS@,$X_LIBS,;t t
7344 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
7345 s,@CONFIG_BDL@,$CONFIG_BDL,;t t
7346 s,@CPP@,$CPP,;t t
7347 s,@ICONV_CFLAGS@,$ICONV_CFLAGS,;t t
7348 s,@ICONV_LDFLAGS@,$ICONV_LDFLAGS,;t t
7349 s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
7350 s,@FREETYPE_LDFLAGS@,$FREETYPE_LDFLAGS,;t t
7351 s,@IMLIB2_CFLAGS@,$IMLIB2_CFLAGS,;t t
7352 s,@IMLIB2_LDFLAGS@,$IMLIB2_LDFLAGS,;t t
7353 s,@build@,$build,;t t
7354 s,@build_cpu@,$build_cpu,;t t
7355 s,@build_vendor@,$build_vendor,;t t
7356 s,@build_os@,$build_os,;t t
7357 s,@host@,$host,;t t
7358 s,@host_cpu@,$host_cpu,;t t
7359 s,@host_vendor@,$host_vendor,;t t
7360 s,@host_os@,$host_os,;t t
7361 s,@CONFIG_EXPERIMENTAL@,$CONFIG_EXPERIMENTAL,;t t
7362 s,@CONFIG_CXXDIALECT@,$CONFIG_CXXDIALECT,;t t
7363 s,@CONFIG_OS@,$CONFIG_OS,;t t
7364 s,@CONFIG_OS_SUFFIX@,$CONFIG_OS_SUFFIX,;t t
7365 s,@CONFIG_CX@,$CONFIG_CX,;t t
7366 s,@CONFIG_CXXWARNING@,$CONFIG_CXXWARNING,;t t
7367 s,@CONFIG_CXXTEMPLATE@,$CONFIG_CXXTEMPLATE,;t t
7368 s,@CONFIG_CXXOPTIMIZE@,$CONFIG_CXXOPTIMIZE,;t t
7369 s,@CONFIG_CXXDEBUG@,$CONFIG_CXXDEBUG,;t t
7370 s,@CONFIG_BFLAGS@,$CONFIG_BFLAGS,;t t
7371 s,@CONFIG_BSTATIC@,$CONFIG_BSTATIC,;t t
7372 s,@CONFIG_BSHARED@,$CONFIG_BSHARED,;t t
7373 s,@CONFIG_BPATH@,$CONFIG_BPATH,;t t
7374 s,@CONFIG_BX@,$CONFIG_BX,;t t
7375 s,@CONFIG_WORD_LENGTH@,$CONFIG_WORD_LENGTH,;t t
7376 s,@CONFIG_WORD_LENGTH_INC@,$CONFIG_WORD_LENGTH_INC,;t t
7377 s,@CONFIG_WORD_MASK@,$CONFIG_WORD_MASK,;t t
7378 s,@CONFIG_MAX_FAST@,$CONFIG_MAX_FAST,;t t
7379 s,@CONFIG_CXXFLAGS@,$CONFIG_CXXFLAGS,;t t
7380 s,@CONFIG_STD_SETENV@,$CONFIG_STD_SETENV,;t t
7381 s,@CONFIG_SO@,$CONFIG_SO,;t t
7382 s,@CONFIG_LIB_PATH@,$CONFIG_LIB_PATH,;t t
7383 s,@CONFIG_STRIP@,$CONFIG_STRIP,;t t
7384 s,@CONFIG_CHMOD@,$CONFIG_CHMOD,;t t
7385 s,@tmorig@,$tmorig,;t t
7386 s,@tmdir@,$tmdir,;t t
7387 s,@tmsrc@,$tmsrc,;t t
7388 s,@tmbin@,$tmbin,;t t
7389 s,@tmdata@,$tmdata,;t t
7390 s,@tmtgz@,$tmtgz,;t t
7391 s,@tmrpm@,$tmrpm,;t t
7392 s,@tmstgz@,$tmstgz,;t t
7393 s,@tmsrpm@,$tmsrpm,;t t
7394 s,@tmwin@,$tmwin,;t t
7395 CEOF
7397 _ACEOF
7399 cat >>$CONFIG_STATUS <<\_ACEOF
7400 # Split the substitutions into bite-sized pieces for seds with
7401 # small command number limits, like on Digital OSF/1 and HP-UX.
7402 ac_max_sed_lines=48
7403 ac_sed_frag=1 # Number of current file.
7404 ac_beg=1 # First line for current file.
7405 ac_end=$ac_max_sed_lines # Line after last line for current file.
7406 ac_more_lines=:
7407 ac_sed_cmds=
7408 while $ac_more_lines; do
7409 if test $ac_beg -gt 1; then
7410 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7411 else
7412 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7414 if test ! -s $tmp/subs.frag; then
7415 ac_more_lines=false
7416 else
7417 # The purpose of the label and of the branching condition is to
7418 # speed up the sed processing (if there are no `@' at all, there
7419 # is no need to browse any of the substitutions).
7420 # These are the two extra sed commands mentioned above.
7421 (echo ':t
7422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7423 if test -z "$ac_sed_cmds"; then
7424 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7425 else
7426 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7428 ac_sed_frag=`expr $ac_sed_frag + 1`
7429 ac_beg=$ac_end
7430 ac_end=`expr $ac_end + $ac_max_sed_lines`
7432 done
7433 if test -z "$ac_sed_cmds"; then
7434 ac_sed_cmds=cat
7436 fi # test -n "$CONFIG_FILES"
7438 _ACEOF
7439 cat >>$CONFIG_STATUS <<\_ACEOF
7440 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7441 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7442 case $ac_file in
7443 - | *:- | *:-:* ) # input from stdin
7444 cat >$tmp/stdin
7445 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7446 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7447 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7448 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7449 * ) ac_file_in=$ac_file.in ;;
7450 esac
7452 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7453 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7454 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7455 X"$ac_file" : 'X\(//\)[^/]' \| \
7456 X"$ac_file" : 'X\(//\)$' \| \
7457 X"$ac_file" : 'X\(/\)' \| \
7458 . : '\(.\)' 2>/dev/null ||
7459 echo X"$ac_file" |
7460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7462 /^X\(\/\/\)$/{ s//\1/; q; }
7463 /^X\(\/\).*/{ s//\1/; q; }
7464 s/.*/./; q'`
7465 { case "$ac_dir" in
7466 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7467 *) as_incr_dir=.;;
7468 esac
7469 as_dummy="$ac_dir"
7470 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7471 case $as_mkdir_dir in
7472 # Skip DOS drivespec
7473 ?:) as_incr_dir=$as_mkdir_dir ;;
7475 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7476 test -d "$as_incr_dir" ||
7477 mkdir "$as_incr_dir" ||
7478 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7479 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7480 { (exit 1); exit 1; }; }
7482 esac
7483 done; }
7485 ac_builddir=.
7487 if test "$ac_dir" != .; then
7488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7489 # A "../" for each directory in $ac_dir_suffix.
7490 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7491 else
7492 ac_dir_suffix= ac_top_builddir=
7495 case $srcdir in
7496 .) # No --srcdir option. We are building in place.
7497 ac_srcdir=.
7498 if test -z "$ac_top_builddir"; then
7499 ac_top_srcdir=.
7500 else
7501 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7502 fi ;;
7503 [\\/]* | ?:[\\/]* ) # Absolute path.
7504 ac_srcdir=$srcdir$ac_dir_suffix;
7505 ac_top_srcdir=$srcdir ;;
7506 *) # Relative path.
7507 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7508 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7509 esac
7510 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7511 # absolute.
7512 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7513 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7514 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7515 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7519 if test x"$ac_file" != x-; then
7520 { echo "$as_me:$LINENO: creating $ac_file" >&5
7521 echo "$as_me: creating $ac_file" >&6;}
7522 rm -f "$ac_file"
7524 # Let's still pretend it is `configure' which instantiates (i.e., don't
7525 # use $as_me), people would be surprised to read:
7526 # /* config.h. Generated by config.status. */
7527 if test x"$ac_file" = x-; then
7528 configure_input=
7529 else
7530 configure_input="$ac_file. "
7532 configure_input=$configure_input"Generated from `echo $ac_file_in |
7533 sed 's,.*/,,'` by configure."
7535 # First look for the input files in the build tree, otherwise in the
7536 # src tree.
7537 ac_file_inputs=`IFS=:
7538 for f in $ac_file_in; do
7539 case $f in
7540 -) echo $tmp/stdin ;;
7541 [\\/$]*)
7542 # Absolute (can't be DOS-style, as IFS=:)
7543 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7544 echo "$as_me: error: cannot find input file: $f" >&2;}
7545 { (exit 1); exit 1; }; }
7546 echo $f;;
7547 *) # Relative
7548 if test -f "$f"; then
7549 # Build tree
7550 echo $f
7551 elif test -f "$srcdir/$f"; then
7552 # Source tree
7553 echo $srcdir/$f
7554 else
7555 # /dev/null tree
7556 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7557 echo "$as_me: error: cannot find input file: $f" >&2;}
7558 { (exit 1); exit 1; }; }
7559 fi;;
7560 esac
7561 done` || { (exit 1); exit 1; }
7562 _ACEOF
7563 cat >>$CONFIG_STATUS <<_ACEOF
7564 sed "$ac_vpsub
7565 $extrasub
7566 _ACEOF
7567 cat >>$CONFIG_STATUS <<\_ACEOF
7569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7570 s,@configure_input@,$configure_input,;t t
7571 s,@srcdir@,$ac_srcdir,;t t
7572 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7573 s,@top_srcdir@,$ac_top_srcdir,;t t
7574 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7575 s,@builddir@,$ac_builddir,;t t
7576 s,@abs_builddir@,$ac_abs_builddir,;t t
7577 s,@top_builddir@,$ac_top_builddir,;t t
7578 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7579 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7580 rm -f $tmp/stdin
7581 if test x"$ac_file" != x-; then
7582 mv $tmp/out $ac_file
7583 else
7584 cat $tmp/out
7585 rm -f $tmp/out
7588 done
7589 _ACEOF
7590 cat >>$CONFIG_STATUS <<\_ACEOF
7593 # CONFIG_HEADER section.
7596 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7597 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7599 # ac_d sets the value in "#define NAME VALUE" lines.
7600 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7601 ac_dB='[ ].*$,\1#\2'
7602 ac_dC=' '
7603 ac_dD=',;t'
7604 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7605 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7606 ac_uB='$,\1#\2define\3'
7607 ac_uC=' '
7608 ac_uD=',;t'
7610 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7611 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7612 case $ac_file in
7613 - | *:- | *:-:* ) # input from stdin
7614 cat >$tmp/stdin
7615 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7616 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7617 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7618 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7619 * ) ac_file_in=$ac_file.in ;;
7620 esac
7622 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7623 echo "$as_me: creating $ac_file" >&6;}
7625 # First look for the input files in the build tree, otherwise in the
7626 # src tree.
7627 ac_file_inputs=`IFS=:
7628 for f in $ac_file_in; do
7629 case $f in
7630 -) echo $tmp/stdin ;;
7631 [\\/$]*)
7632 # Absolute (can't be DOS-style, as IFS=:)
7633 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7634 echo "$as_me: error: cannot find input file: $f" >&2;}
7635 { (exit 1); exit 1; }; }
7636 echo $f;;
7637 *) # Relative
7638 if test -f "$f"; then
7639 # Build tree
7640 echo $f
7641 elif test -f "$srcdir/$f"; then
7642 # Source tree
7643 echo $srcdir/$f
7644 else
7645 # /dev/null tree
7646 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7647 echo "$as_me: error: cannot find input file: $f" >&2;}
7648 { (exit 1); exit 1; }; }
7649 fi;;
7650 esac
7651 done` || { (exit 1); exit 1; }
7652 # Remove the trailing spaces.
7653 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7655 _ACEOF
7657 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7658 # `conftest.undefs', that substitutes the proper values into
7659 # config.h.in to produce config.h. The first handles `#define'
7660 # templates, and the second `#undef' templates.
7661 # And first: Protect against being on the right side of a sed subst in
7662 # config.status. Protect against being in an unquoted here document
7663 # in config.status.
7664 rm -f conftest.defines conftest.undefs
7665 # Using a here document instead of a string reduces the quoting nightmare.
7666 # Putting comments in sed scripts is not portable.
7668 # `end' is used to avoid that the second main sed command (meant for
7669 # 0-ary CPP macros) applies to n-ary macro definitions.
7670 # See the Autoconf documentation for `clear'.
7671 cat >confdef2sed.sed <<\_ACEOF
7672 s/[\\&,]/\\&/g
7673 s,[\\$`],\\&,g
7674 t clear
7675 : clear
7676 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7677 t end
7678 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7679 : end
7680 _ACEOF
7681 # If some macros were called several times there might be several times
7682 # the same #defines, which is useless. Nevertheless, we may not want to
7683 # sort them, since we want the *last* AC-DEFINE to be honored.
7684 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7685 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7686 rm -f confdef2sed.sed
7688 # This sed command replaces #undef with comments. This is necessary, for
7689 # example, in the case of _POSIX_SOURCE, which is predefined and required
7690 # on some systems where configure will not decide to define it.
7691 cat >>conftest.undefs <<\_ACEOF
7692 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7693 _ACEOF
7695 # Break up conftest.defines because some shells have a limit on the size
7696 # of here documents, and old seds have small limits too (100 cmds).
7697 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7698 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7699 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7700 echo ' :' >>$CONFIG_STATUS
7701 rm -f conftest.tail
7702 while grep . conftest.defines >/dev/null
7704 # Write a limited-size here document to $tmp/defines.sed.
7705 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7706 # Speed up: don't consider the non `#define' lines.
7707 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7708 # Work around the forget-to-reset-the-flag bug.
7709 echo 't clr' >>$CONFIG_STATUS
7710 echo ': clr' >>$CONFIG_STATUS
7711 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7712 echo 'CEOF
7713 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7714 rm -f $tmp/in
7715 mv $tmp/out $tmp/in
7716 ' >>$CONFIG_STATUS
7717 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7718 rm -f conftest.defines
7719 mv conftest.tail conftest.defines
7720 done
7721 rm -f conftest.defines
7722 echo ' fi # egrep' >>$CONFIG_STATUS
7723 echo >>$CONFIG_STATUS
7725 # Break up conftest.undefs because some shells have a limit on the size
7726 # of here documents, and old seds have small limits too (100 cmds).
7727 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7728 rm -f conftest.tail
7729 while grep . conftest.undefs >/dev/null
7731 # Write a limited-size here document to $tmp/undefs.sed.
7732 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7733 # Speed up: don't consider the non `#undef'
7734 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7735 # Work around the forget-to-reset-the-flag bug.
7736 echo 't clr' >>$CONFIG_STATUS
7737 echo ': clr' >>$CONFIG_STATUS
7738 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7739 echo 'CEOF
7740 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7741 rm -f $tmp/in
7742 mv $tmp/out $tmp/in
7743 ' >>$CONFIG_STATUS
7744 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7745 rm -f conftest.undefs
7746 mv conftest.tail conftest.undefs
7747 done
7748 rm -f conftest.undefs
7750 cat >>$CONFIG_STATUS <<\_ACEOF
7751 # Let's still pretend it is `configure' which instantiates (i.e., don't
7752 # use $as_me), people would be surprised to read:
7753 # /* config.h. Generated by config.status. */
7754 if test x"$ac_file" = x-; then
7755 echo "/* Generated by configure. */" >$tmp/config.h
7756 else
7757 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7759 cat $tmp/in >>$tmp/config.h
7760 rm -f $tmp/in
7761 if test x"$ac_file" != x-; then
7762 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7763 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7764 echo "$as_me: $ac_file is unchanged" >&6;}
7765 else
7766 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7768 X"$ac_file" : 'X\(//\)[^/]' \| \
7769 X"$ac_file" : 'X\(//\)$' \| \
7770 X"$ac_file" : 'X\(/\)' \| \
7771 . : '\(.\)' 2>/dev/null ||
7772 echo X"$ac_file" |
7773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7775 /^X\(\/\/\)$/{ s//\1/; q; }
7776 /^X\(\/\).*/{ s//\1/; q; }
7777 s/.*/./; q'`
7778 { case "$ac_dir" in
7779 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7780 *) as_incr_dir=.;;
7781 esac
7782 as_dummy="$ac_dir"
7783 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7784 case $as_mkdir_dir in
7785 # Skip DOS drivespec
7786 ?:) as_incr_dir=$as_mkdir_dir ;;
7788 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7789 test -d "$as_incr_dir" ||
7790 mkdir "$as_incr_dir" ||
7791 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7792 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7793 { (exit 1); exit 1; }; }
7795 esac
7796 done; }
7798 rm -f $ac_file
7799 mv $tmp/config.h $ac_file
7801 else
7802 cat $tmp/config.h
7803 rm -f $tmp/config.h
7805 done
7806 _ACEOF
7808 cat >>$CONFIG_STATUS <<\_ACEOF
7810 { (exit 0); exit 0; }
7811 _ACEOF
7812 chmod +x $CONFIG_STATUS
7813 ac_clean_files=$ac_clean_files_save
7816 # configure is writing to config.log, and then calls config.status.
7817 # config.status does its own redirection, appending to config.log.
7818 # Unfortunately, on DOS this fails, as config.log is still kept open
7819 # by configure, so config.status won't be able to write to it; its
7820 # output is simply discarded. So we exec the FD to /dev/null,
7821 # effectively closing config.log, so it can be properly (re)opened and
7822 # appended to by config.status. When coming back to configure, we
7823 # need to make the FD available again.
7824 if test "$no_create" != yes; then
7825 ac_cs_success=:
7826 exec 5>/dev/null
7827 $SHELL $CONFIG_STATUS || ac_cs_success=false
7828 exec 5>>config.log
7829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7830 # would make configure fail if this is the last instruction.
7831 $ac_cs_success || { (exit 1); exit 1; }