/[gnustep]/gnustep/core/base/configure
ViewVC logotype

Contents of /gnustep/core/base/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.180 - (show annotations) (download)
Mon Sep 22 22:51:23 2003 UTC (20 years, 6 months ago) by fedor
Branch: MAIN
Changes since 1.179: +2 -1 lines
Check for getopt

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="Source/NSArray.m"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subdirs_all="$ac_subdirs_all Source/mframe SSL"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP WHOAMI EGREP GS_WORDS_BIGENDIAN GS_SINT8 GS_UINT8 ac_cv_sizeof_short ac_cv_sizeof_int ac_cv_sizeof_long ac_cv_sizeof_long_long ac_cv_sizeof_float ac_cv_sizeof_double ac_cv_sizeof_voidp GS_ADDR GS_SINT16 GS_UINT16 GS_SINT32 GS_UINT32 GS_SINT64 GS_UINT64 GS_HAVE_I64 GS_SINT128 GS_UINT128 GS_HAVE_I128 GS_FLT32 GS_FLT64 _GSC_S_SHT _GSC_S_INT _GSC_S_LNG _GSC_S_LNG_LNG DYNAMIC_LINKER NX_CONST_STRING_OBJCFLAGS NX_CONST_STRING_CLASS HAVE_PTHREAD_H USE_ZLIB HAVE_PTS_STREAM_MODULES GS_PASS_ARGUMENTS GS_FAKE_MAIN WITH_FFI XML2_CONFIG XML_CONFIG XML_CFLAGS XML_LIBS HAVE_LIBXML USE_GMP INCLUDE_FLAGS subdirs VERSION MAJOR_VERSION MINOR_VERSION SUBMINOR_VERSION GCC_VERSION LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-procfs Use /proc filesystem (default)
849 --enable-pass-arguments Force user main call to NSProcessInfo initialize
850 --enable-fake-main Force redefine of user main function
851 --enable-libffi Enable use of libffi library
852 --enable-ffcall Enable use of ffcall library
853 --disable-do Compile even if DO-dependencies are not met
854 --disable-xmltest Do not try to compile and run a test XML program
855
856 Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-ffcall-include=PATH include path for ffcall headers
860 --with-ffcall-library=PATH library path for ffcall libraries
861 --with-xml-prefix=PFX Prefix where libxml is installed (optional)
862 --with-gmp-include=PATH include path for gmp headers
863 --with-gmp-library=PATH library path for gmp libraries
864 --with-libiconv-library=PATH library path for libiconv libraries
865
866 Some influential environment variables:
867 CC C compiler command
868 CFLAGS C compiler flags
869 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
870 nonstandard directory <lib dir>
871 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
872 headers in a nonstandard directory <include dir>
873 CPP C preprocessor
874
875 Use these variables to override the choices made by `configure' or to help
876 it to find libraries and programs with nonstandard names/locations.
877
878 _ACEOF
879 fi
880
881 if test "$ac_init_help" = "recursive"; then
882 # If there are subdirs, report their specific --help.
883 ac_popdir=`pwd`
884 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885 test -d $ac_dir || continue
886 ac_builddir=.
887
888 if test "$ac_dir" != .; then
889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890 # A "../" for each directory in $ac_dir_suffix.
891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 else
893 ac_dir_suffix= ac_top_builddir=
894 fi
895
896 case $srcdir in
897 .) # No --srcdir option. We are building in place.
898 ac_srcdir=.
899 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir=.
901 else
902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903 fi ;;
904 [\\/]* | ?:[\\/]* ) # Absolute path.
905 ac_srcdir=$srcdir$ac_dir_suffix;
906 ac_top_srcdir=$srcdir ;;
907 *) # Relative path.
908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 esac
911 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
912 # absolute.
913 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
914 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
915 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
916 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
917
918 cd $ac_dir
919 # Check for guested configure; otherwise get Cygnus style configure.
920 if test -f $ac_srcdir/configure.gnu; then
921 echo
922 $SHELL $ac_srcdir/configure.gnu --help=recursive
923 elif test -f $ac_srcdir/configure; then
924 echo
925 $SHELL $ac_srcdir/configure --help=recursive
926 elif test -f $ac_srcdir/configure.ac ||
927 test -f $ac_srcdir/configure.in; then
928 echo
929 $ac_configure --help
930 else
931 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
932 fi
933 cd $ac_popdir
934 done
935 fi
936
937 test -n "$ac_init_help" && exit 0
938 if $ac_init_version; then
939 cat <<\_ACEOF
940
941 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
942 Free Software Foundation, Inc.
943 This configure script is free software; the Free Software Foundation
944 gives unlimited permission to copy, distribute and modify it.
945 _ACEOF
946 exit 0
947 fi
948 exec 5>config.log
949 cat >&5 <<_ACEOF
950 This file contains any messages produced by compilers while
951 running configure, to aid debugging if configure makes a mistake.
952
953 It was created by $as_me, which was
954 generated by GNU Autoconf 2.57. Invocation command line was
955
956 $ $0 $@
957
958 _ACEOF
959 {
960 cat <<_ASUNAME
961 ## --------- ##
962 ## Platform. ##
963 ## --------- ##
964
965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
970
971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
973
974 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
975 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
978 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
979 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
980 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
981
982 _ASUNAME
983
984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985 for as_dir in $PATH
986 do
987 IFS=$as_save_IFS
988 test -z "$as_dir" && as_dir=.
989 echo "PATH: $as_dir"
990 done
991
992 } >&5
993
994 cat >&5 <<_ACEOF
995
996
997 ## ----------- ##
998 ## Core tests. ##
999 ## ----------- ##
1000
1001 _ACEOF
1002
1003
1004 # Keep a trace of the command line.
1005 # Strip out --no-create and --no-recursion so they do not pile up.
1006 # Strip out --silent because we don't want to record it for future runs.
1007 # Also quote any args containing shell meta-characters.
1008 # Make two passes to allow for proper duplicate-argument suppression.
1009 ac_configure_args=
1010 ac_configure_args0=
1011 ac_configure_args1=
1012 ac_sep=
1013 ac_must_keep_next=false
1014 for ac_pass in 1 2
1015 do
1016 for ac_arg
1017 do
1018 case $ac_arg in
1019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 continue ;;
1023 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025 esac
1026 case $ac_pass in
1027 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028 2)
1029 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030 if test $ac_must_keep_next = true; then
1031 ac_must_keep_next=false # Got value, back to normal.
1032 else
1033 case $ac_arg in
1034 *=* | --config-cache | -C | -disable-* | --disable-* \
1035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037 | -with-* | --with-* | -without-* | --without-* | --x)
1038 case "$ac_configure_args0 " in
1039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040 esac
1041 ;;
1042 -* ) ac_must_keep_next=true ;;
1043 esac
1044 fi
1045 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046 # Get rid of the leading space.
1047 ac_sep=" "
1048 ;;
1049 esac
1050 done
1051 done
1052 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1054
1055 # When interrupted or exit'd, cleanup temporary files, and complete
1056 # config.log. We remove comments because anyway the quotes in there
1057 # would cause problems or look ugly.
1058 # WARNING: Be sure not to use single quotes in there, as some shells,
1059 # such as our DU 5.0 friend, will then `close' the trap.
1060 trap 'exit_status=$?
1061 # Save into config.log some information that might help in debugging.
1062 {
1063 echo
1064
1065 cat <<\_ASBOX
1066 ## ---------------- ##
1067 ## Cache variables. ##
1068 ## ---------------- ##
1069 _ASBOX
1070 echo
1071 # The following way of writing the cache mishandles newlines in values,
1072 {
1073 (set) 2>&1 |
1074 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075 *ac_space=\ *)
1076 sed -n \
1077 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1079 ;;
1080 *)
1081 sed -n \
1082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083 ;;
1084 esac;
1085 }
1086 echo
1087
1088 cat <<\_ASBOX
1089 ## ----------------- ##
1090 ## Output variables. ##
1091 ## ----------------- ##
1092 _ASBOX
1093 echo
1094 for ac_var in $ac_subst_vars
1095 do
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1098 done | sort
1099 echo
1100
1101 if test -n "$ac_subst_files"; then
1102 cat <<\_ASBOX
1103 ## ------------- ##
1104 ## Output files. ##
1105 ## ------------- ##
1106 _ASBOX
1107 echo
1108 for ac_var in $ac_subst_files
1109 do
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1112 done | sort
1113 echo
1114 fi
1115
1116 if test -s confdefs.h; then
1117 cat <<\_ASBOX
1118 ## ----------- ##
1119 ## confdefs.h. ##
1120 ## ----------- ##
1121 _ASBOX
1122 echo
1123 sed "/^$/d" confdefs.h | sort
1124 echo
1125 fi
1126 test "$ac_signal" != 0 &&
1127 echo "$as_me: caught signal $ac_signal"
1128 echo "$as_me: exit $exit_status"
1129 } >&5
1130 rm -f core core.* *.core &&
1131 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1132 exit $exit_status
1133 ' 0
1134 for ac_signal in 1 2 13 15; do
1135 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136 done
1137 ac_signal=0
1138
1139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140 rm -rf conftest* confdefs.h
1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142 echo >confdefs.h
1143
1144 # Predefined preprocessor variables.
1145
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_NAME "$PACKAGE_NAME"
1148 _ACEOF
1149
1150
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153 _ACEOF
1154
1155
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1158 _ACEOF
1159
1160
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_STRING "$PACKAGE_STRING"
1163 _ACEOF
1164
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168 _ACEOF
1169
1170
1171 # Let the site file select an alternate cache file if it wants to.
1172 # Prefer explicitly selected file to automatically selected ones.
1173 if test -z "$CONFIG_SITE"; then
1174 if test "x$prefix" != xNONE; then
1175 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176 else
1177 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178 fi
1179 fi
1180 for ac_site_file in $CONFIG_SITE; do
1181 if test -r "$ac_site_file"; then
1182 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183 echo "$as_me: loading site script $ac_site_file" >&6;}
1184 sed 's/^/| /' "$ac_site_file" >&5
1185 . "$ac_site_file"
1186 fi
1187 done
1188
1189 if test -r "$cache_file"; then
1190 # Some versions of bash will fail to source /dev/null (special
1191 # files actually), so we avoid doing that.
1192 if test -f "$cache_file"; then
1193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194 echo "$as_me: loading cache $cache_file" >&6;}
1195 case $cache_file in
1196 [\\/]* | ?:[\\/]* ) . $cache_file;;
1197 *) . ./$cache_file;;
1198 esac
1199 fi
1200 else
1201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202 echo "$as_me: creating cache $cache_file" >&6;}
1203 >$cache_file
1204 fi
1205
1206 # Check that the precious variables saved in the cache have kept the same
1207 # value.
1208 ac_cache_corrupted=false
1209 for ac_var in `(set) 2>&1 |
1210 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212 eval ac_new_set=\$ac_env_${ac_var}_set
1213 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214 eval ac_new_val="\$ac_env_${ac_var}_value"
1215 case $ac_old_set,$ac_new_set in
1216 set,)
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1220 ,set)
1221 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223 ac_cache_corrupted=: ;;
1224 ,);;
1225 *)
1226 if test "x$ac_old_val" != "x$ac_new_val"; then
1227 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1230 echo "$as_me: former value: $ac_old_val" >&2;}
1231 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1232 echo "$as_me: current value: $ac_new_val" >&2;}
1233 ac_cache_corrupted=:
1234 fi;;
1235 esac
1236 # Pass precious variables to config.status.
1237 if test "$ac_new_set" = set; then
1238 case $ac_new_val in
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 *) ac_arg=$ac_var=$ac_new_val ;;
1242 esac
1243 case " $ac_configure_args " in
1244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1245 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1246 esac
1247 fi
1248 done
1249 if $ac_cache_corrupted; then
1250 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254 { (exit 1); exit 1; }; }
1255 fi
1256
1257 ac_ext=c
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283 if test -z "$GNUSTEP_SYSTEM_ROOT"; then
1284 { { echo "$as_me:$LINENO: error: You must run the GNUstep initialization script first!" >&5
1285 echo "$as_me: error: You must run the GNUstep initialization script first!" >&2;}
1286 { (exit 1); exit 1; }; }
1287 fi
1288
1289 #--------------------------------------------------------------------
1290 # Use config.guess, config.sub and install-sh provided by gnustep-make
1291 #--------------------------------------------------------------------
1292 ac_aux_dir=
1293 for ac_dir in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES; do
1294 if test -f $ac_dir/install-sh; then
1295 ac_aux_dir=$ac_dir
1296 ac_install_sh="$ac_aux_dir/install-sh -c"
1297 break
1298 elif test -f $ac_dir/install.sh; then
1299 ac_aux_dir=$ac_dir
1300 ac_install_sh="$ac_aux_dir/install.sh -c"
1301 break
1302 elif test -f $ac_dir/shtool; then
1303 ac_aux_dir=$ac_dir
1304 ac_install_sh="$ac_aux_dir/shtool install -c"
1305 break
1306 fi
1307 done
1308 if test -z "$ac_aux_dir"; then
1309 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES" >&5
1310 echo "$as_me: error: cannot find install-sh or install.sh in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES" >&2;}
1311 { (exit 1); exit 1; }; }
1312 fi
1313 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1314 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1315 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1316
1317
1318 #--------------------------------------------------------------------
1319 # Use a .h file with #define's, instead of -D command-line switches
1320 #--------------------------------------------------------------------
1321 ac_config_headers="$ac_config_headers Headers/Additions/GNUstepBase/config.h"
1322
1323
1324 #--------------------------------------------------------------------
1325 # Determine the host, build, and target systems
1326 #--------------------------------------------------------------------
1327 # Make sure we can run config.sub.
1328 $ac_config_sub sun4 >/dev/null 2>&1 ||
1329 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1330 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1331 { (exit 1); exit 1; }; }
1332
1333 echo "$as_me:$LINENO: checking build system type" >&5
1334 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1335 if test "${ac_cv_build+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1337 else
1338 ac_cv_build_alias=$build_alias
1339 test -z "$ac_cv_build_alias" &&
1340 ac_cv_build_alias=`$ac_config_guess`
1341 test -z "$ac_cv_build_alias" &&
1342 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1343 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1344 { (exit 1); exit 1; }; }
1345 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1346 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1347 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1348 { (exit 1); exit 1; }; }
1349
1350 fi
1351 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1352 echo "${ECHO_T}$ac_cv_build" >&6
1353 build=$ac_cv_build
1354 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1355 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1356 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1357
1358
1359 echo "$as_me:$LINENO: checking host system type" >&5
1360 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1361 if test "${ac_cv_host+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364 ac_cv_host_alias=$host_alias
1365 test -z "$ac_cv_host_alias" &&
1366 ac_cv_host_alias=$ac_cv_build_alias
1367 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1368 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1369 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1370 { (exit 1); exit 1; }; }
1371
1372 fi
1373 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1374 echo "${ECHO_T}$ac_cv_host" >&6
1375 host=$ac_cv_host
1376 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1377 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1378 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379
1380
1381 echo "$as_me:$LINENO: checking target system type" >&5
1382 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1383 if test "${ac_cv_target+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 else
1386 ac_cv_target_alias=$target_alias
1387 test "x$ac_cv_target_alias" = "x" &&
1388 ac_cv_target_alias=$ac_cv_host_alias
1389 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1390 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1391 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1392 { (exit 1); exit 1; }; }
1393
1394 fi
1395 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1396 echo "${ECHO_T}$ac_cv_target" >&6
1397 target=$ac_cv_target
1398 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1399 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1400 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401
1402
1403 # The aliases save the names the user supplied, while $host etc.
1404 # will get canonicalized.
1405 test -n "$target_alias" &&
1406 test "$program_prefix$program_suffix$program_transform_name" = \
1407 NONENONEs,x,x, &&
1408 program_prefix=${target_alias}-
1409
1410 #--------------------------------------------------------------------
1411 # Find the compiler
1412 #--------------------------------------------------------------------
1413 ac_ext=c
1414 ac_cpp='$CPP $CPPFLAGS'
1415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1418 if test -n "$ac_tool_prefix"; then
1419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1420 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_prog_CC+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426 if test -n "$CC"; then
1427 ac_cv_prog_CC="$CC" # Let the user override the test.
1428 else
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 for as_dir in $PATH
1431 do
1432 IFS=$as_save_IFS
1433 test -z "$as_dir" && as_dir=.
1434 for ac_exec_ext in '' $ac_executable_extensions; do
1435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438 break 2
1439 fi
1440 done
1441 done
1442
1443 fi
1444 fi
1445 CC=$ac_cv_prog_CC
1446 if test -n "$CC"; then
1447 echo "$as_me:$LINENO: result: $CC" >&5
1448 echo "${ECHO_T}$CC" >&6
1449 else
1450 echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1452 fi
1453
1454 fi
1455 if test -z "$ac_cv_prog_CC"; then
1456 ac_ct_CC=$CC
1457 # Extract the first word of "gcc", so it can be a program name with args.
1458 set dummy gcc; ac_word=$2
1459 echo "$as_me:$LINENO: checking for $ac_word" >&5
1460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464 if test -n "$ac_ct_CC"; then
1465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1466 else
1467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468 for as_dir in $PATH
1469 do
1470 IFS=$as_save_IFS
1471 test -z "$as_dir" && as_dir=.
1472 for ac_exec_ext in '' $ac_executable_extensions; do
1473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1474 ac_cv_prog_ac_ct_CC="gcc"
1475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1476 break 2
1477 fi
1478 done
1479 done
1480
1481 fi
1482 fi
1483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1484 if test -n "$ac_ct_CC"; then
1485 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1486 echo "${ECHO_T}$ac_ct_CC" >&6
1487 else
1488 echo "$as_me:$LINENO: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1490 fi
1491
1492 CC=$ac_ct_CC
1493 else
1494 CC="$ac_cv_prog_CC"
1495 fi
1496
1497 if test -z "$CC"; then
1498 if test -n "$ac_tool_prefix"; then
1499 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1500 set dummy ${ac_tool_prefix}cc; ac_word=$2
1501 echo "$as_me:$LINENO: checking for $ac_word" >&5
1502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503 if test "${ac_cv_prog_CC+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506 if test -n "$CC"; then
1507 ac_cv_prog_CC="$CC" # Let the user override the test.
1508 else
1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 for as_dir in $PATH
1511 do
1512 IFS=$as_save_IFS
1513 test -z "$as_dir" && as_dir=.
1514 for ac_exec_ext in '' $ac_executable_extensions; do
1515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516 ac_cv_prog_CC="${ac_tool_prefix}cc"
1517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 break 2
1519 fi
1520 done
1521 done
1522
1523 fi
1524 fi
1525 CC=$ac_cv_prog_CC
1526 if test -n "$CC"; then
1527 echo "$as_me:$LINENO: result: $CC" >&5
1528 echo "${ECHO_T}$CC" >&6
1529 else
1530 echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1532 fi
1533
1534 fi
1535 if test -z "$ac_cv_prog_CC"; then
1536 ac_ct_CC=$CC
1537 # Extract the first word of "cc", so it can be a program name with args.
1538 set dummy cc; ac_word=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544 if test -n "$ac_ct_CC"; then
1545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1546 else
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1549 do
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_ac_ct_CC="cc"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 break 2
1557 fi
1558 done
1559 done
1560
1561 fi
1562 fi
1563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1564 if test -n "$ac_ct_CC"; then
1565 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1566 echo "${ECHO_T}$ac_ct_CC" >&6
1567 else
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1570 fi
1571
1572 CC=$ac_ct_CC
1573 else
1574 CC="$ac_cv_prog_CC"
1575 fi
1576
1577 fi
1578 if test -z "$CC"; then
1579 # Extract the first word of "cc", so it can be a program name with args.
1580 set dummy cc; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 if test -n "$CC"; then
1587 ac_cv_prog_CC="$CC" # Let the user override the test.
1588 else
1589 ac_prog_rejected=no
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1592 do
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1598 ac_prog_rejected=yes
1599 continue
1600 fi
1601 ac_cv_prog_CC="cc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603 break 2
1604 fi
1605 done
1606 done
1607
1608 if test $ac_prog_rejected = yes; then
1609 # We found a bogon in the path, so make sure we never use it.
1610 set dummy $ac_cv_prog_CC
1611 shift
1612 if test $# != 0; then
1613 # We chose a different compiler from the bogus one.
1614 # However, it has the same basename, so the bogon will be chosen
1615 # first if we set CC to just the basename; use the full file name.
1616 shift
1617 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1618 fi
1619 fi
1620 fi
1621 fi
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624 echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631 fi
1632 if test -z "$CC"; then
1633 if test -n "$ac_tool_prefix"; then
1634 for ac_prog in cl
1635 do
1636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643 if test -n "$CC"; then
1644 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
1656 fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 CC=$ac_cv_prog_CC
1663 if test -n "$CC"; then
1664 echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1666 else
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671 test -n "$CC" && break
1672 done
1673 fi
1674 if test -z "$CC"; then
1675 ac_ct_CC=$CC
1676 for ac_prog in cl
1677 do
1678 # Extract the first word of "$ac_prog", so it can be a program name with args.
1679 set dummy $ac_prog; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685 if test -n "$ac_ct_CC"; then
1686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1687 else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_ac_ct_CC="$ac_prog"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 break 2
1698 fi
1699 done
1700 done
1701
1702 fi
1703 fi
1704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1705 if test -n "$ac_ct_CC"; then
1706 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1707 echo "${ECHO_T}$ac_ct_CC" >&6
1708 else
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1711 fi
1712
1713 test -n "$ac_ct_CC" && break
1714 done
1715
1716 CC=$ac_ct_CC
1717 fi
1718
1719 fi
1720
1721
1722 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1723 See \`config.log' for more details." >&5
1724 echo "$as_me: error: no acceptable C compiler found in \$PATH
1725 See \`config.log' for more details." >&2;}
1726 { (exit 1); exit 1; }; }
1727
1728 # Provide some information about the compiler.
1729 echo "$as_me:$LINENO:" \
1730 "checking for C compiler version" >&5
1731 ac_compiler=`set X $ac_compile; echo $2`
1732 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1733 (eval $ac_compiler --version </dev/null >&5) 2>&5
1734 ac_status=$?
1735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1736 (exit $ac_status); }
1737 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1738 (eval $ac_compiler -v </dev/null >&5) 2>&5
1739 ac_status=$?
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }
1742 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1743 (eval $ac_compiler -V </dev/null >&5) 2>&5
1744 ac_status=$?
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }
1747
1748 cat >conftest.$ac_ext <<_ACEOF
1749 #line $LINENO "configure"
1750 /* confdefs.h. */
1751 _ACEOF
1752 cat confdefs.h >>conftest.$ac_ext
1753 cat >>conftest.$ac_ext <<_ACEOF
1754 /* end confdefs.h. */
1755
1756 int
1757 main ()
1758 {
1759
1760 ;
1761 return 0;
1762 }
1763 _ACEOF
1764 ac_clean_files_save=$ac_clean_files
1765 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1766 # Try to create an executable without -o first, disregard a.out.
1767 # It will help us diagnose broken compilers, and finding out an intuition
1768 # of exeext.
1769 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1770 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1771 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1772 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1773 (eval $ac_link_default) 2>&5
1774 ac_status=$?
1775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776 (exit $ac_status); }; then
1777 # Find the output, starting from the most likely. This scheme is
1778 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1779 # resort.
1780
1781 # Be careful to initialize this variable, since it used to be cached.
1782 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1783 ac_cv_exeext=
1784 # b.out is created by i960 compilers.
1785 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1786 do
1787 test -f "$ac_file" || continue
1788 case $ac_file in
1789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1790 ;;
1791 conftest.$ac_ext )
1792 # This is the source file.
1793 ;;
1794 [ab].out )
1795 # We found the default executable, but exeext='' is most
1796 # certainly right.
1797 break;;
1798 *.* )
1799 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1800 # FIXME: I believe we export ac_cv_exeext for Libtool,
1801 # but it would be cool to find out if it's true. Does anybody
1802 # maintain Libtool? --akim.
1803 export ac_cv_exeext
1804 break;;
1805 * )
1806 break;;
1807 esac
1808 done
1809 else
1810 echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1814 See \`config.log' for more details." >&5
1815 echo "$as_me: error: C compiler cannot create executables
1816 See \`config.log' for more details." >&2;}
1817 { (exit 77); exit 77; }; }
1818 fi
1819
1820 ac_exeext=$ac_cv_exeext
1821 echo "$as_me:$LINENO: result: $ac_file" >&5
1822 echo "${ECHO_T}$ac_file" >&6
1823
1824 # Check the compiler produces executables we can run. If not, either
1825 # the compiler is broken, or we cross compile.
1826 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1827 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1828 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1829 # If not cross compiling, check that we can run a simple program.
1830 if test "$cross_compiling" != yes; then
1831 if { ac_try='./$ac_file'
1832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1833 (eval $ac_try) 2>&5
1834 ac_status=$?
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; }; then
1837 cross_compiling=no
1838 else
1839 if test "$cross_compiling" = maybe; then
1840 cross_compiling=yes
1841 else
1842 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1843 If you meant to cross compile, use \`--host'.
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: cannot run C compiled programs.
1846 If you meant to cross compile, use \`--host'.
1847 See \`config.log' for more details." >&2;}
1848 { (exit 1); exit 1; }; }
1849 fi
1850 fi
1851 fi
1852 echo "$as_me:$LINENO: result: yes" >&5
1853 echo "${ECHO_T}yes" >&6
1854
1855 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1856 ac_clean_files=$ac_clean_files_save
1857 # Check the compiler produces executables we can run. If not, either
1858 # the compiler is broken, or we cross compile.
1859 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1860 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1861 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1862 echo "${ECHO_T}$cross_compiling" >&6
1863
1864 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1865 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1867 (eval $ac_link) 2>&5
1868 ac_status=$?
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); }; then
1871 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1872 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1873 # work properly (i.e., refer to `conftest.exe'), while it won't with
1874 # `rm'.
1875 for ac_file in conftest.exe conftest conftest.*; do
1876 test -f "$ac_file" || continue
1877 case $ac_file in
1878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1879 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1880 export ac_cv_exeext
1881 break;;
1882 * ) break;;
1883 esac
1884 done
1885 else
1886 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1887 See \`config.log' for more details." >&5
1888 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1889 See \`config.log' for more details." >&2;}
1890 { (exit 1); exit 1; }; }
1891 fi
1892
1893 rm -f conftest$ac_cv_exeext
1894 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1895 echo "${ECHO_T}$ac_cv_exeext" >&6
1896
1897 rm -f conftest.$ac_ext
1898 EXEEXT=$ac_cv_exeext
1899 ac_exeext=$EXEEXT
1900 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1901 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1902 if test "${ac_cv_objext+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 cat >conftest.$ac_ext <<_ACEOF
1906 #line $LINENO "configure"
1907 /* confdefs.h. */
1908 _ACEOF
1909 cat confdefs.h >>conftest.$ac_ext
1910 cat >>conftest.$ac_ext <<_ACEOF
1911 /* end confdefs.h. */
1912
1913 int
1914 main ()
1915 {
1916
1917 ;
1918 return 0;
1919 }
1920 _ACEOF
1921 rm -f conftest.o conftest.obj
1922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1923 (eval $ac_compile) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }; then
1927 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1928 case $ac_file in
1929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1930 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1931 break;;
1932 esac
1933 done
1934 else
1935 echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1943 fi
1944
1945 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1946 fi
1947 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1948 echo "${ECHO_T}$ac_cv_objext" >&6
1949 OBJEXT=$ac_cv_objext
1950 ac_objext=$OBJEXT
1951 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1952 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1953 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 cat >conftest.$ac_ext <<_ACEOF
1957 #line $LINENO "configure"
1958 /* confdefs.h. */
1959 _ACEOF
1960 cat confdefs.h >>conftest.$ac_ext
1961 cat >>conftest.$ac_ext <<_ACEOF
1962 /* end confdefs.h. */
1963
1964 int
1965 main ()
1966 {
1967 #ifndef __GNUC__
1968 choke me
1969 #endif
1970
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1978 ac_status=$?
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1983 (eval $ac_try) 2>&5
1984 ac_status=$?
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1987 ac_compiler_gnu=yes
1988 else
1989 echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992 ac_compiler_gnu=no
1993 fi
1994 rm -f conftest.$ac_objext conftest.$ac_ext
1995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1996
1997 fi
1998 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1999 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2000 GCC=`test $ac_compiler_gnu = yes && echo yes`
2001 ac_test_CFLAGS=${CFLAGS+set}
2002 ac_save_CFLAGS=$CFLAGS
2003 CFLAGS="-g"
2004 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2005 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2006 if test "${ac_cv_prog_cc_g+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 cat >conftest.$ac_ext <<_ACEOF
2010 #line $LINENO "configure"
2011 /* confdefs.h. */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2016
2017 int
2018 main ()
2019 {
2020
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 rm -f conftest.$ac_objext
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
2031 { ac_try='test -s conftest.$ac_objext'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 (eval $ac_try) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; }; then
2037 ac_cv_prog_cc_g=yes
2038 else
2039 echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 ac_cv_prog_cc_g=no
2043 fi
2044 rm -f conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2047 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2048 if test "$ac_test_CFLAGS" = set; then
2049 CFLAGS=$ac_save_CFLAGS
2050 elif test $ac_cv_prog_cc_g = yes; then
2051 if test "$GCC" = yes; then
2052 CFLAGS="-g -O2"
2053 else
2054 CFLAGS="-g"
2055 fi
2056 else
2057 if test "$GCC" = yes; then
2058 CFLAGS="-O2"
2059 else
2060 CFLAGS=
2061 fi
2062 fi
2063 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2064 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 ac_cv_prog_cc_stdc=no
2069 ac_save_CC=$CC
2070 cat >conftest.$ac_ext <<_ACEOF
2071 #line $LINENO "configure"
2072 /* confdefs.h. */
2073 _ACEOF
2074 cat confdefs.h >>conftest.$ac_ext
2075 cat >>conftest.$ac_ext <<_ACEOF
2076 /* end confdefs.h. */
2077 #include <stdarg.h>
2078 #include <stdio.h>
2079 #include <sys/types.h>
2080 #include <sys/stat.h>
2081 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2082 struct buf { int x; };
2083 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2084 static char *e (p, i)
2085 char **p;
2086 int i;
2087 {
2088 return p[i];
2089 }
2090 static char *f (char * (*g) (char **, int), char **p, ...)
2091 {
2092 char *s;
2093 va_list v;
2094 va_start (v,p);
2095 s = g (p, va_arg (v,int));
2096 va_end (v);
2097 return s;
2098 }
2099 int test (int i, double x);
2100 struct s1 {int (*f) (int a);};
2101 struct s2 {int (*f) (double a);};
2102 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2103 int argc;
2104 char **argv;
2105 int
2106 main ()
2107 {
2108 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 # Don't try gcc -ansi; that turns off useful extensions and
2114 # breaks some systems' header files.
2115 # AIX -qlanglvl=ansi
2116 # Ultrix and OSF/1 -std1
2117 # HP-UX 10.20 and later -Ae
2118 # HP-UX older versions -Aa -D_HPUX_SOURCE
2119 # SVR4 -Xc -D__EXTENSIONS__
2120 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2121 do
2122 CC="$ac_save_CC $ac_arg"
2123 rm -f conftest.$ac_objext
2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); } &&
2129 { ac_try='test -s conftest.$ac_objext'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131 (eval $ac_try) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; }; then
2135 ac_cv_prog_cc_stdc=$ac_arg
2136 break
2137 else
2138 echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141 fi
2142 rm -f conftest.$ac_objext
2143 done
2144 rm -f conftest.$ac_ext conftest.$ac_objext
2145 CC=$ac_save_CC
2146
2147 fi
2148
2149 case "x$ac_cv_prog_cc_stdc" in
2150 x|xno)
2151 echo "$as_me:$LINENO: result: none needed" >&5
2152 echo "${ECHO_T}none needed" >&6 ;;
2153 *)
2154 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2155 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2156 CC="$CC $ac_cv_prog_cc_stdc" ;;
2157 esac
2158
2159 # Some people use a C++ compiler to compile C. Since we use `exit',
2160 # in C++ we need to declare it. In case someone uses the same compiler
2161 # for both compiling C and C++ we need to have the C++ compiler decide
2162 # the declaration of exit, since it's the most demanding environment.
2163 cat >conftest.$ac_ext <<_ACEOF
2164 #ifndef __cplusplus
2165 choke me
2166 #endif
2167 _ACEOF
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2180 for ac_declaration in \
2181 ''\
2182 '#include <stdlib.h>' \
2183 'extern "C" void std::exit (int) throw (); using std::exit;' \
2184 'extern "C" void std::exit (int); using std::exit;' \
2185 'extern "C" void exit (int) throw ();' \
2186 'extern "C" void exit (int);' \
2187 'void exit (int);'
2188 do
2189 cat >conftest.$ac_ext <<_ACEOF
2190 #line $LINENO "configure"
2191 /* confdefs.h. */
2192 _ACEOF
2193 cat confdefs.h >>conftest.$ac_ext
2194 cat >>conftest.$ac_ext <<_ACEOF
2195 /* end confdefs.h. */
2196 #include <stdlib.h>
2197 $ac_declaration
2198 int
2199 main ()
2200 {
2201 exit (42);
2202 ;
2203 return 0;
2204 }
2205 _ACEOF
2206 rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); } &&
2212 { ac_try='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2218 :
2219 else
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223 continue
2224 fi
2225 rm -f conftest.$ac_objext conftest.$ac_ext
2226 cat >conftest.$ac_ext <<_ACEOF
2227 #line $LINENO "configure"
2228 /* confdefs.h. */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2233 $ac_declaration
2234 int
2235 main ()
2236 {
2237 exit (42);
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 rm -f conftest.$ac_objext
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); } &&
2248 { ac_try='test -s conftest.$ac_objext'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 (eval $ac_try) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; }; then
2254 break
2255 else
2256 echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2258
2259 fi
2260 rm -f conftest.$ac_objext conftest.$ac_ext
2261 done
2262 rm -f conftest*
2263 if test -n "$ac_declaration"; then
2264 echo '#ifdef __cplusplus' >>confdefs.h
2265 echo $ac_declaration >>confdefs.h
2266 echo '#endif' >>confdefs.h
2267 fi
2268
2269 else
2270 echo "$as_me: failed program was:" >&5
2271 sed 's/^/| /' conftest.$ac_ext >&5
2272
2273 fi
2274 rm -f conftest.$ac_objext conftest.$ac_ext
2275 ac_ext=c
2276 ac_cpp='$CPP $CPPFLAGS'
2277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2280
2281 ac_ext=c
2282 ac_cpp='$CPP $CPPFLAGS'
2283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2286 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2287 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2288 # On Suns, sometimes $CPP names a directory.
2289 if test -n "$CPP" && test -d "$CPP"; then
2290 CPP=
2291 fi
2292 if test -z "$CPP"; then
2293 if test "${ac_cv_prog_CPP+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296 # Double quotes because CPP needs to be expanded
2297 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2298 do
2299 ac_preproc_ok=false
2300 for ac_c_preproc_warn_flag in '' yes
2301 do
2302 # Use a header file that comes with gcc, so configuring glibc
2303 # with a fresh cross-compiler works.
2304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2305 # <limits.h> exists even on freestanding compilers.
2306 # On the NeXT, cc -E runs the code through the compiler's parser,
2307 # not just through cpp. "Syntax error" is here to catch this case.
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #line $LINENO "configure"
2310 /* confdefs.h. */
2311 _ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h. */
2315 #ifdef __STDC__
2316 # include <limits.h>
2317 #else
2318 # include <assert.h>
2319 #endif
2320 Syntax error
2321 _ACEOF
2322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2324 ac_status=$?
2325 grep -v '^ *+' conftest.er1 >conftest.err
2326 rm -f conftest.er1
2327 cat conftest.err >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); } >/dev/null; then
2330 if test -s conftest.err; then
2331 ac_cpp_err=$ac_c_preproc_warn_flag
2332 else
2333 ac_cpp_err=
2334 fi
2335 else
2336 ac_cpp_err=yes
2337 fi
2338 if test -z "$ac_cpp_err"; then
2339 :
2340 else
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 # Broken: fails on valid input.
2345 continue
2346 fi
2347 rm -f conftest.err conftest.$ac_ext
2348
2349 # OK, works on sane cases. Now check whether non-existent headers
2350 # can be detected and how.
2351 cat >conftest.$ac_ext <<_ACEOF
2352 #line $LINENO "configure"
2353 /* confdefs.h. */
2354 _ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2358 #include <ac_nonexistent.h>
2359 _ACEOF
2360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2362 ac_status=$?
2363 grep -v '^ *+' conftest.er1 >conftest.err
2364 rm -f conftest.er1
2365 cat conftest.err >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); } >/dev/null; then
2368 if test -s conftest.err; then
2369 ac_cpp_err=$ac_c_preproc_warn_flag
2370 else
2371 ac_cpp_err=
2372 fi
2373 else
2374 ac_cpp_err=yes
2375 fi
2376 if test -z "$ac_cpp_err"; then
2377 # Broken: success on invalid input.
2378 continue
2379 else
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 # Passes both tests.
2384 ac_preproc_ok=:
2385 break
2386 fi
2387 rm -f conftest.err conftest.$ac_ext
2388
2389 done
2390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2391 rm -f conftest.err conftest.$ac_ext
2392 if $ac_preproc_ok; then
2393 break
2394 fi
2395
2396 done
2397 ac_cv_prog_CPP=$CPP
2398
2399 fi
2400 CPP=$ac_cv_prog_CPP
2401 else
2402 ac_cv_prog_CPP=$CPP
2403 fi
2404 echo "$as_me:$LINENO: result: $CPP" >&5
2405 echo "${ECHO_T}$CPP" >&6
2406 ac_preproc_ok=false
2407 for ac_c_preproc_warn_flag in '' yes
2408 do
2409 # Use a header file that comes with gcc, so configuring glibc
2410 # with a fresh cross-compiler works.
2411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2412 # <limits.h> exists even on freestanding compilers.
2413 # On the NeXT, cc -E runs the code through the compiler's parser,
2414 # not just through cpp. "Syntax error" is here to catch this case.
2415 cat >conftest.$ac_ext <<_ACEOF
2416 #line $LINENO "configure"
2417 /* confdefs.h. */
2418 _ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2422 #ifdef __STDC__
2423 # include <limits.h>
2424 #else
2425 # include <assert.h>
2426 #endif
2427 Syntax error
2428 _ACEOF
2429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2431 ac_status=$?
2432 grep -v '^ *+' conftest.er1 >conftest.err
2433 rm -f conftest.er1
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } >/dev/null; then
2437 if test -s conftest.err; then
2438 ac_cpp_err=$ac_c_preproc_warn_flag
2439 else
2440 ac_cpp_err=
2441 fi
2442 else
2443 ac_cpp_err=yes
2444 fi
2445 if test -z "$ac_cpp_err"; then
2446 :
2447 else
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2450
2451 # Broken: fails on valid input.
2452 continue
2453 fi
2454 rm -f conftest.err conftest.$ac_ext
2455
2456 # OK, works on sane cases. Now check whether non-existent headers
2457 # can be detected and how.
2458 cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2460 /* confdefs.h. */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2465 #include <ac_nonexistent.h>
2466 _ACEOF
2467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2469 ac_status=$?
2470 grep -v '^ *+' conftest.er1 >conftest.err
2471 rm -f conftest.er1
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } >/dev/null; then
2475 if test -s conftest.err; then
2476 ac_cpp_err=$ac_c_preproc_warn_flag
2477 else
2478 ac_cpp_err=
2479 fi
2480 else
2481 ac_cpp_err=yes
2482 fi
2483 if test -z "$ac_cpp_err"; then
2484 # Broken: success on invalid input.
2485 continue
2486 else
2487 echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 # Passes both tests.
2491 ac_preproc_ok=:
2492 break
2493 fi
2494 rm -f conftest.err conftest.$ac_ext
2495
2496 done
2497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2498 rm -f conftest.err conftest.$ac_ext
2499 if $ac_preproc_ok; then
2500 :
2501 else
2502 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2503 See \`config.log' for more details." >&5
2504 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2505 See \`config.log' for more details." >&2;}
2506 { (exit 1); exit 1; }; }
2507 fi
2508
2509 ac_ext=c
2510 ac_cpp='$CPP $CPPFLAGS'
2511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514
2515
2516 # Extract the first word of "whoami", so it can be a program name with args.
2517 set dummy whoami; ac_word=$2
2518 echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2520 if test "${ac_cv_path_WHOAMI+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523 case $WHOAMI in
2524 [\\/]* | ?:[\\/]*)
2525 ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
2526 ;;
2527 *)
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 as_dummy="$PATH:/usr/ucb"
2530 for as_dir in $as_dummy
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540 done
2541 done
2542
2543 test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo"
2544 ;;
2545 esac
2546 fi
2547 WHOAMI=$ac_cv_path_WHOAMI
2548
2549 if test -n "$WHOAMI"; then
2550 echo "$as_me:$LINENO: result: $WHOAMI" >&5
2551 echo "${ECHO_T}$WHOAMI" >&6
2552 else
2553 echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6
2555 fi
2556
2557
2558 #--------------------------------------------------------------------
2559 # specific target_os options
2560 #--------------------------------------------------------------------
2561 INCLUDE_FLAGS="$CPPFLAGS"
2562 LIBS="$LDFLAGS $LIBS"
2563 # This is just for configuring. Later, in config.make, INCLUDE_FLAGS
2564 # goes in CONFIG_SYSTEM_INCL and LIBS goes in CONFIG_SYSTEM_LIBS
2565 case "$target_os" in
2566 freebsd* | openbsd* )
2567 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
2568 LDFLAGS="$LDFLAGS -L/usr/local/lib";;
2569 netbsd*) CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
2570 LDFLAGS="$LDFLAGS -R/usr/pkg/lib -L/usr/pkg/lib";;
2571 esac
2572
2573 #----------------------------------------------------------------
2574 # Find out if nested functions work on this machine
2575 #----------------------------------------------------------------
2576 echo "$as_me:$LINENO: checking whether nested functions work" >&5
2577 echo $ECHO_N "checking whether nested functions work... $ECHO_C" >&6
2578
2579 if test "$cross_compiling" = yes; then
2580 gcc_nested=1
2581 else
2582 cat >conftest.$ac_ext <<_ACEOF
2583 #line $LINENO "configure"
2584 /* confdefs.h. */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2589 #include "$srcdir/config/config.nested.c"
2590 _ACEOF
2591 rm -f conftest$ac_exeext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2593 (eval $ac_link) 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 (eval $ac_try) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2602 gcc_nested=1
2603 else
2604 echo "$as_me: program exited with status $ac_status" >&5
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 ( exit $ac_status )
2609 gcc_nested=0
2610 fi
2611 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2612 fi
2613 if test $gcc_nested = 0; then
2614 echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6
2616
2617 cat >>confdefs.h <<\_ACEOF
2618 #define BROKEN_NESTED_FUNCTIONS 1
2619 _ACEOF
2620
2621 else
2622 echo "$as_me:$LINENO: result: yes" >&5
2623 echo "${ECHO_T}yes" >&6
2624 fi
2625
2626 #--------------------------------------------------------------------
2627 # Set Apple/Darwin/OSX/NeXT information for other tests
2628 #--------------------------------------------------------------------
2629 OBJC_RUNTIME_LIB=`echo $LIBRARY_COMBO | tr '-' ' ' | awk '{print $1}'`
2630 echo "$as_me:$LINENO: checking the Objective-C runtime" >&5
2631 echo $ECHO_N "checking the Objective-C runtime... $ECHO_C" >&6
2632 if test "$OBJC_RUNTIME_LIB" = "nx" -o "$OBJC_RUNTIME_LIB" = "apple"; then
2633 echo "$as_me:$LINENO: result: NeXT" >&5
2634 echo "${ECHO_T}NeXT" >&6
2635 LIBOBJC='-lobjc'
2636 CPPFLAGS="$CPPFLAGS -fnext-runtime -DNeXT_RUNTIME"
2637 else
2638 echo "$as_me:$LINENO: result: GNU" >&5
2639 echo "${ECHO_T}GNU" >&6
2640 LIBOBJC='-lobjc'
2641 CPPFLAGS="$CPPFLAGS -fgnu-runtime"
2642 fi
2643
2644 #--------------------------------------------------------------------
2645 # Miscellaneous flags
2646 #--------------------------------------------------------------------
2647 # Set location of GNUstep dirs for later use
2648 if test "$GNUSTEP_FLATTENED" = yes; then
2649 GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries
2650 GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Library/Headers
2651 else
2652 clean_target_os=`$GNUSTEP_MAKEFILES/clean_os.sh $target_os`
2653 clean_target_cpu=`$GNUSTEP_MAKEFILES/clean_cpu.sh $target_cpu`
2654 obj_dir=$clean_target_cpu/$clean_target_os
2655 GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries/$obj_dir
2656 GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Library/Headers/$LIBRARY_COMBO
2657 fi
2658
2659 #
2660 # The following one is so that headers of custom libraries into
2661 # $GNUSTEP_HDIR are used before the standard ones
2662 #
2663 CPPFLAGS="$CPPFLAGS -I$GNUSTEP_HDIR"
2664 LDFLAGS="$LDFLAGS -L$GNUSTEP_LDIR/$LIBRARY_COMBO -L$GNUSTEP_LDIR"
2665
2666 #--------------------------------------------------------------------
2667 # Check if Objective-C is installed
2668 #--------------------------------------------------------------------
2669
2670 echo "$as_me:$LINENO: checking for egrep" >&5
2671 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2672 if test "${ac_cv_prog_egrep+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2676 then ac_cv_prog_egrep='grep -E'
2677 else ac_cv_prog_egrep='egrep'
2678 fi
2679 fi
2680 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2681 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2682 EGREP=$ac_cv_prog_egrep
2683
2684
2685 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2686 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2687 if test "${ac_cv_header_stdc+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line $LINENO "configure"
2692 /* confdefs.h. */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2697 #include <stdlib.h>
2698 #include <stdarg.h>
2699 #include <string.h>
2700 #include <float.h>
2701
2702 int
2703 main ()
2704 {
2705
2706 ;
2707 return 0;
2708 }
2709 _ACEOF
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_cv_header_stdc=yes
2723 else
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 ac_cv_header_stdc=no
2728 fi
2729 rm -f conftest.$ac_objext conftest.$ac_ext
2730
2731 if test $ac_cv_header_stdc = yes; then
2732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2733 cat >conftest.$ac_ext <<_ACEOF
2734 #line $LINENO "configure"
2735 /* confdefs.h. */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2740 #include <string.h>
2741
2742 _ACEOF
2743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2744 $EGREP "memchr" >/dev/null 2>&1; then
2745 :
2746 else
2747 ac_cv_header_stdc=no
2748 fi
2749 rm -f conftest*
2750
2751 fi
2752
2753 if test $ac_cv_header_stdc = yes; then
2754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2755 cat >conftest.$ac_ext <<_ACEOF
2756 #line $LINENO "configure"
2757 /* confdefs.h. */
2758 _ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2762 #include <stdlib.h>
2763
2764 _ACEOF
2765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2766 $EGREP "free" >/dev/null 2>&1; then
2767 :
2768 else
2769 ac_cv_header_stdc=no
2770 fi
2771 rm -f conftest*
2772
2773 fi
2774
2775 if test $ac_cv_header_stdc = yes; then
2776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2777 if test "$cross_compiling" = yes; then
2778 :
2779 else
2780 cat >conftest.$ac_ext <<_ACEOF
2781 #line $LINENO "configure"
2782 /* confdefs.h. */
2783 _ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2787 #include <ctype.h>
2788 #if ((' ' & 0x0FF) == 0x020)
2789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2791 #else
2792 # define ISLOWER(c) \
2793 (('a' <= (c) && (c) <= 'i') \
2794 || ('j' <= (c) && (c) <= 'r') \
2795 || ('s' <= (c) && (c) <= 'z'))
2796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2797 #endif
2798
2799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2800 int
2801 main ()
2802 {
2803 int i;
2804 for (i = 0; i < 256; i++)
2805 if (XOR (islower (i), ISLOWER (i))
2806 || toupper (i) != TOUPPER (i))
2807 exit(2);
2808 exit (0);
2809 }
2810 _ACEOF
2811 rm -f conftest$ac_exeext
2812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2813 (eval $ac_link) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 :
2823 else
2824 echo "$as_me: program exited with status $ac_status" >&5
2825 echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2827
2828 ( exit $ac_status )
2829 ac_cv_header_stdc=no
2830 fi
2831 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2832 fi
2833 fi
2834 fi
2835 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2836 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2837 if test $ac_cv_header_stdc = yes; then
2838
2839 cat >>confdefs.h <<\_ACEOF
2840 #define STDC_HEADERS 1
2841 _ACEOF
2842
2843 fi
2844
2845 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2856 inttypes.h stdint.h unistd.h
2857 do
2858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2859 echo "$as_me:$LINENO: checking for $ac_header" >&5
2860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864 cat >conftest.$ac_ext <<_ACEOF
2865 #line $LINENO "configure"
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871 $ac_includes_default
2872
2873 #include <$ac_header>
2874 _ACEOF
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -s conftest.$ac_objext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 eval "$as_ac_Header=yes"
2888 else
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892 eval "$as_ac_Header=no"
2893 fi
2894 rm -f conftest.$ac_objext conftest.$ac_ext
2895 fi
2896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2899 cat >>confdefs.h <<_ACEOF
2900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2901 _ACEOF
2902
2903 fi
2904
2905 done
2906
2907
2908
2909 for ac_header in objc/objc.h
2910 do
2911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2913 echo "$as_me:$LINENO: checking for $ac_header" >&5
2914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 fi
2918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2920 else
2921 # Is the header compilable?
2922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2924 cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 /* confdefs.h. */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2931 $ac_includes_default
2932 #include <$ac_header>
2933 _ACEOF
2934 rm -f conftest.$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936 (eval $ac_compile) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 ac_header_compiler=yes
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 ac_header_compiler=no
2952 fi
2953 rm -f conftest.$ac_objext conftest.$ac_ext
2954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2955 echo "${ECHO_T}$ac_header_compiler" >&6
2956
2957 # Is the header present?
2958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #line $LINENO "configure"
2962 /* confdefs.h. */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2967 #include <$ac_header>
2968 _ACEOF
2969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2971 ac_status=$?
2972 grep -v '^ *+' conftest.er1 >conftest.err
2973 rm -f conftest.er1
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } >/dev/null; then
2977 if test -s conftest.err; then
2978 ac_cpp_err=$ac_c_preproc_warn_flag
2979 else
2980 ac_cpp_err=
2981 fi
2982 else
2983 ac_cpp_err=yes
2984 fi
2985 if test -z "$ac_cpp_err"; then
2986 ac_header_preproc=yes
2987 else
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991 ac_header_preproc=no
2992 fi
2993 rm -f conftest.err conftest.$ac_ext
2994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2995 echo "${ECHO_T}$ac_header_preproc" >&6
2996
2997 # So? What about this header?
2998 case $ac_header_compiler:$ac_header_preproc in
2999 yes:no )
3000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3004 (
3005 cat <<\_ASBOX
3006 ## ------------------------------------ ##
3007 ## Report this to bug-autoconf@gnu.org. ##
3008 ## ------------------------------------ ##
3009 _ASBOX
3010 ) |
3011 sed "s/^/$as_me: WARNING: /" >&2
3012 ;;
3013 no:yes )
3014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3020 (
3021 cat <<\_ASBOX
3022 ## ------------------------------------ ##
3023 ## Report this to bug-autoconf@gnu.org. ##
3024 ## ------------------------------------ ##
3025 _ASBOX
3026 ) |
3027 sed "s/^/$as_me: WARNING: /" >&2
3028 ;;
3029 esac
3030 echo "$as_me:$LINENO: checking for $ac_header" >&5
3031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035 eval "$as_ac_Header=$ac_header_preproc"
3036 fi
3037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3039
3040 fi
3041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3042 cat >>confdefs.h <<_ACEOF
3043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3044 _ACEOF
3045
3046 fi
3047
3048 done
3049
3050 if test $ac_cv_header_objc_objc_h = no; then
3051 echo "Check to make sure you have a full installation of the GCC"
3052 echo "compiler that includes the Objective-C headers and libraries"
3053 { { echo "$as_me:$LINENO: error: Could not find Objective-C headers" >&5
3054 echo "$as_me: error: Could not find Objective-C headers" >&2;}
3055 { (exit 1); exit 1; }; }
3056 fi
3057
3058 #--------------------------------------------------------------------
3059 # Check for strange network stuff used by gdomap
3060 #--------------------------------------------------------------------
3061 { echo "$as_me:$LINENO: for gdomap network details" >&5
3062 echo "$as_me: for gdomap network details" >&6;}
3063 echo "$as_me:$LINENO: checking for variable length socket addresses" >&5
3064 echo $ECHO_N "checking for variable length socket addresses... $ECHO_C" >&6
3065 cat >conftest.$ac_ext <<_ACEOF
3066 #line $LINENO "configure"
3067 /* confdefs.h. */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3072
3073 #include <sys/types.h>
3074 #include <sys/socket.h>
3075 #include <net/if.h>
3076
3077 int
3078 main ()
3079 {
3080 struct ifreq s; s.ifr_addr.sa_len = 0;
3081 ;
3082 return 0;
3083 }
3084 _ACEOF
3085 rm -f conftest.$ac_objext
3086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3087 (eval $ac_compile) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 sa_len=1
3098 else
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102 sa_len=0
3103 fi
3104 rm -f conftest.$ac_objext conftest.$ac_ext
3105 if test $sa_len = 1; then
3106 echo "$as_me:$LINENO: result: found" >&5
3107 echo "${ECHO_T}found" >&6
3108
3109 cat >>confdefs.h <<\_ACEOF
3110 #define HAVE_SA_LEN 1
3111 _ACEOF
3112
3113 else
3114 echo "$as_me:$LINENO: result: not found" >&5
3115 echo "${ECHO_T}not found" >&6
3116 fi
3117
3118 #--------------------------------------------------------------------
3119 # Check if system has buggy SO_REUSEADDR
3120 #--------------------------------------------------------------------
3121 echo "$as_me:$LINENO: checking whether SO_REUSADDR is broken" >&5
3122 echo $ECHO_N "checking whether SO_REUSADDR is broken... $ECHO_C" >&6
3123 if test "$cross_compiling" = yes; then
3124 reuseaddr_ok=0
3125 else
3126 cat >conftest.$ac_ext <<_ACEOF
3127 #line $LINENO "configure"
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #include "$srcdir/config/config.reuseaddr.c"
3134 _ACEOF
3135 rm -f conftest$ac_exeext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3137 (eval $ac_link) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 reuseaddr_ok=1
3147 else
3148 echo "$as_me: program exited with status $ac_status" >&5
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 ( exit $ac_status )
3153 reuseaddr_ok=0
3154 fi
3155 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3156 fi
3157 if test $reuseaddr_ok = 0; then
3158
3159 cat >>confdefs.h <<\_ACEOF
3160 #define BROKEN_SO_REUSEADDR 1
3161 _ACEOF
3162
3163 echo
3164 echo "The SO_REUSEADDR socket option for controlling re-use of network"
3165 echo "sockets immediately after shutdown appears to be broken on this"
3166 echo "machine. Networking code will be built without using this"
3167 echo "feature."
3168 echo "The effect of this lack is that when a network service is shut"
3169 echo "down, it cannot be re-started on the same network port until"
3170 echo "an operating-system timeout has expired."
3171 echo "For servers other than gdomap, GNUstep does not normally need"
3172 echo "a particular network port, so the problem is unlikely to arise."
3173 echo "$as_me:$LINENO: result: yes" >&5
3174 echo "${ECHO_T}yes" >&6
3175 else
3176 echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3178 fi
3179
3180 #--------------------------------------------------------------------
3181 # Check for thread flags for libobjc.
3182 #--------------------------------------------------------------------
3183 #
3184 echo "$as_me:$LINENO: checking for objc threading flags" >&5
3185 echo $ECHO_N "checking for objc threading flags... $ECHO_C" >&6
3186 #
3187 # Get them from gnustep-make which contains the real code to get them
3188 #
3189 objc_threaded=`grep objc_threaded: $GNUSTEP_MAKEFILES/$obj_dir/config.make | sed -e 's/objc_threaded:=//'`
3190 #
3191 echo "$as_me:$LINENO: result: $objc_threaded" >&5
3192 echo "${ECHO_T}$objc_threaded" >&6
3193
3194 #--------------------------------------------------------------------
3195 # Byte order information needed for foundation headers.
3196 #--------------------------------------------------------------------
3197 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3198 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3199 if test "${ac_cv_c_bigendian+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 # See if sys/param.h defines the BYTE_ORDER macro.
3203 cat >conftest.$ac_ext <<_ACEOF
3204 #line $LINENO "configure"
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3210 #include <sys/types.h>
3211 #include <sys/param.h>
3212
3213 int
3214 main ()
3215 {
3216 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3217 bogus endian macros
3218 #endif
3219
3220 ;
3221 return 0;
3222 }
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -s conftest.$ac_objext'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 (eval $ac_try) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; }; then
3236 # It does; now see whether it defined to BIG_ENDIAN or not.
3237 cat >conftest.$ac_ext <<_ACEOF
3238 #line $LINENO "configure"
3239 /* confdefs.h. */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3244 #include <sys/types.h>
3245 #include <sys/param.h>
3246
3247 int
3248 main ()
3249 {
3250 #if BYTE_ORDER != BIG_ENDIAN
3251 not big endian
3252 #endif
3253
3254 ;
3255 return 0;
3256 }
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_cv_c_bigendian=yes
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 ac_cv_c_bigendian=no
3276 fi
3277 rm -f conftest.$ac_objext conftest.$ac_ext
3278 else
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 # It does not; compile a test program.
3283 if test "$cross_compiling" = yes; then
3284 # try to guess the endianness by grepping values into an object file
3285 ac_cv_c_bigendian=unknown
3286 cat >conftest.$ac_ext <<_ACEOF
3287 #line $LINENO "configure"
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3294 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3295 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3296 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3297 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3298 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3299 int
3300 main ()
3301 {
3302 _ascii (); _ebcdic ();
3303 ;
3304 return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -s conftest.$ac_objext'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3320 ac_cv_c_bigendian=yes
3321 fi
3322 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3323 if test "$ac_cv_c_bigendian" = unknown; then
3324 ac_cv_c_bigendian=no
3325 else
3326 # finding both strings is unlikely to happen, but who knows?
3327 ac_cv_c_bigendian=unknown
3328 fi
3329 fi
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 fi
3335 rm -f conftest.$ac_objext conftest.$ac_ext
3336 else
3337 cat >conftest.$ac_ext <<_ACEOF
3338 #line $LINENO "configure"
3339 /* confdefs.h. */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344 int
3345 main ()
3346 {
3347 /* Are we little or big endian? From Harbison&Steele. */
3348 union
3349 {
3350 long l;
3351 char c[sizeof (long)];
3352 } u;
3353 u.l = 1;
3354 exit (u.c[sizeof (long) - 1] == 1);
3355 }
3356 _ACEOF
3357 rm -f conftest$ac_exeext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3359 (eval $ac_link) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 (eval $ac_try) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3368 ac_cv_c_bigendian=no
3369 else
3370 echo "$as_me: program exited with status $ac_status" >&5
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 ( exit $ac_status )
3375 ac_cv_c_bigendian=yes
3376 fi
3377 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3378 fi
3379 fi
3380 rm -f conftest.$ac_objext conftest.$ac_ext
3381 fi
3382 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3383 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3384 case $ac_cv_c_bigendian in
3385 yes)
3386
3387 cat >>confdefs.h <<\_ACEOF
3388 #define WORDS_BIGENDIAN 1
3389 _ACEOF
3390 ;;
3391 no)
3392 ;;
3393 *)
3394 { { echo "$as_me:$LINENO: error: unknown endianness
3395 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3396 echo "$as_me: error: unknown endianness
3397 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3398 { (exit 1); exit 1; }; } ;;
3399 esac
3400
3401 if test $ac_cv_c_bigendian = yes; then
3402 GS_WORDS_BIGENDIAN=1
3403 else
3404 GS_WORDS_BIGENDIAN=0
3405 fi
3406
3407
3408 #--------------------------------------------------------------------
3409 # Type size information needed for foundation headers.
3410 #--------------------------------------------------------------------
3411 echo "$as_me:$LINENO: checking for void*" >&5
3412 echo $ECHO_N "checking for void*... $ECHO_C" >&6
3413 if test "${ac_cv_type_voidp+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 cat >conftest.$ac_ext <<_ACEOF
3417 #line $LINENO "configure"
3418 /* confdefs.h. */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 $ac_includes_default
3424 int
3425 main ()
3426 {
3427 if ((void* *) 0)
3428 return 0;
3429 if (sizeof (void*))
3430 return 0;
3431 ;
3432 return 0;
3433 }
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437 (eval $ac_compile) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -s conftest.$ac_objext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 ac_cv_type_voidp=yes
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 ac_cv_type_voidp=no
3453 fi
3454 rm -f conftest.$ac_objext conftest.$ac_ext
3455 fi
3456 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
3457 echo "${ECHO_T}$ac_cv_type_voidp" >&6
3458
3459 echo "$as_me:$LINENO: checking size of void*" >&5
3460 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
3461 if test "${ac_cv_sizeof_voidp+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 if test "$ac_cv_type_voidp" = yes; then
3465 # The cast to unsigned long works around a bug in the HP C Compiler
3466 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3467 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3468 # This bug is HP SR number 8606223364.
3469 if test "$cross_compiling" = yes; then
3470 # Depending upon the size, compute the lo and hi bounds.
3471 cat >conftest.$ac_ext <<_ACEOF
3472 #line $LINENO "configure"
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 $ac_includes_default
3479 int
3480 main ()
3481 {
3482 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
3483 test_array [0] = 0
3484
3485 ;
3486 return 0;
3487 }
3488 _ACEOF
3489 rm -f conftest.$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } &&
3495 { ac_try='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 ac_lo=0 ac_mid=0
3502 while :; do
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 /* confdefs.h. */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 $ac_includes_default
3511 int
3512 main ()
3513 {
3514 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
3515 test_array [0] = 0
3516
3517 ;
3518 return 0;
3519 }
3520 _ACEOF
3521 rm -f conftest.$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 ac_hi=$ac_mid; break
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 ac_lo=`expr $ac_mid + 1`
3539 if test $ac_lo -le $ac_mid; then
3540 ac_lo= ac_hi=
3541 break
3542 fi
3543 ac_mid=`expr 2 '*' $ac_mid + 1`
3544 fi
3545 rm -f conftest.$ac_objext conftest.$ac_ext
3546 done
3547 else
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551 cat >conftest.$ac_ext <<_ACEOF
3552 #line $LINENO "configure"
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 $ac_includes_default
3559 int
3560 main ()
3561 {
3562 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
3563 test_array [0] = 0
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 ac_hi=-1 ac_mid=-1
3582 while :; do
3583 cat >conftest.$ac_ext <<_ACEOF
3584 #line $LINENO "configure"
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 $ac_includes_default
3591 int
3592 main ()
3593 {
3594 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
3595 test_array [0] = 0
3596
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 rm -f conftest.$ac_objext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -s conftest.$ac_objext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_lo=$ac_mid; break
3614 else
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618 ac_hi=`expr '(' $ac_mid ')' - 1`
3619 if test $ac_mid -le $ac_hi; then
3620 ac_lo= ac_hi=
3621 break
3622 fi
3623 ac_mid=`expr 2 '*' $ac_mid`
3624 fi
3625 rm -f conftest.$ac_objext conftest.$ac_ext
3626 done
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 ac_lo= ac_hi=
3632 fi
3633 rm -f conftest.$ac_objext conftest.$ac_ext
3634 fi
3635 rm -f conftest.$ac_objext conftest.$ac_ext
3636 # Binary search between lo and hi bounds.
3637 while test "x$ac_lo" != "x$ac_hi"; do
3638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3639 cat >conftest.$ac_ext <<_ACEOF
3640 #line $LINENO "configure"
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 $ac_includes_default
3647 int
3648 main ()
3649 {
3650 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
3651 test_array [0] = 0
3652
3653 ;
3654 return 0;
3655 }
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 ac_hi=$ac_mid
3670 else
3671 echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3673
3674 ac_lo=`expr '(' $ac_mid ')' + 1`
3675 fi
3676 rm -f conftest.$ac_objext conftest.$ac_ext
3677 done
3678 case $ac_lo in
3679 ?*) ac_cv_sizeof_voidp=$ac_lo;;
3680 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
3681 See \`config.log' for more details." >&5
3682 echo "$as_me: error: cannot compute sizeof (void*), 77
3683 See \`config.log' for more details." >&2;}
3684 { (exit 1); exit 1; }; } ;;
3685 esac
3686 else
3687 if test "$cross_compiling" = yes; then
3688 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3689 See \`config.log' for more details." >&5
3690 echo "$as_me: error: cannot run test program while cross compiling
3691 See \`config.log' for more details." >&2;}
3692 { (exit 1); exit 1; }; }
3693 else
3694 cat >conftest.$ac_ext <<_ACEOF
3695 #line $LINENO "configure"
3696 /* confdefs.h. */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 $ac_includes_default
3702 long longval () { return (long) (sizeof (void*)); }
3703 unsigned long ulongval () { return (long) (sizeof (void*)); }
3704 #include <stdio.h>
3705 #include <stdlib.h>
3706 int
3707 main ()
3708 {
3709
3710 FILE *f = fopen ("conftest.val", "w");
3711 if (! f)
3712 exit (1);
3713 if (((long) (sizeof (void*))) < 0)
3714 {
3715 long i = longval ();
3716 if (i != ((long) (sizeof (void*))))
3717 exit (1);
3718 fprintf (f, "%ld\n", i);
3719 }
3720 else
3721 {
3722 unsigned long i = ulongval ();
3723 if (i != ((long) (sizeof (void*))))
3724 exit (1);
3725 fprintf (f, "%lu\n", i);
3726 }
3727 exit (ferror (f) || fclose (f) != 0);
3728
3729 ;
3730 return 0;
3731 }
3732 _ACEOF
3733 rm -f conftest$ac_exeext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3735 (eval $ac_link) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 ac_cv_sizeof_voidp=`cat conftest.val`
3745 else
3746 echo "$as_me: program exited with status $ac_status" >&5
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 ( exit $ac_status )
3751 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
3752 See \`config.log' for more details." >&5
3753 echo "$as_me: error: cannot compute sizeof (void*), 77
3754 See \`config.log' for more details." >&2;}
3755 { (exit 1); exit 1; }; }
3756 fi
3757 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3758 fi
3759 fi
3760 rm -f conftest.val
3761 else
3762 ac_cv_sizeof_voidp=0
3763 fi
3764 fi
3765 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
3766 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
3767 cat >>confdefs.h <<_ACEOF
3768 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
3769 _ACEOF
3770
3771
3772
3773 GS_SINT8="signed char"
3774 GS_UINT8="unsigned char"
3775
3776
3777
3778 echo "$as_me:$LINENO: checking for short" >&5
3779 echo $ECHO_N "checking for short... $ECHO_C" >&6
3780 if test "${ac_cv_type_short+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 cat >conftest.$ac_ext <<_ACEOF
3784 #line $LINENO "configure"
3785 /* confdefs.h. */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3790 $ac_includes_default
3791 int
3792 main ()
3793 {
3794 if ((short *) 0)
3795 return 0;
3796 if (sizeof (short))
3797 return 0;
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 rm -f conftest.$ac_objext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -s conftest.$ac_objext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 ac_cv_type_short=yes
3815 else
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 ac_cv_type_short=no
3820 fi
3821 rm -f conftest.$ac_objext conftest.$ac_ext
3822 fi
3823 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3824 echo "${ECHO_T}$ac_cv_type_short" >&6
3825
3826 echo "$as_me:$LINENO: checking size of short" >&5
3827 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3828 if test "${ac_cv_sizeof_short+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 if test "$ac_cv_type_short" = yes; then
3832 # The cast to unsigned long works around a bug in the HP C Compiler
3833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3835 # This bug is HP SR number 8606223364.
3836 if test "$cross_compiling" = yes; then
3837 # Depending upon the size, compute the lo and hi bounds.
3838 cat >conftest.$ac_ext <<_ACEOF
3839 #line $LINENO "configure"
3840 /* confdefs.h. */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845 $ac_includes_default
3846 int
3847 main ()
3848 {
3849 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3850 test_array [0] = 0
3851
3852 ;
3853 return 0;
3854 }
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 ac_lo=0 ac_mid=0
3869 while :; do
3870 cat >conftest.$ac_ext <<_ACEOF
3871 #line $LINENO "configure"
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3877 $ac_includes_default
3878 int
3879 main ()
3880 {
3881 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3882 test_array [0] = 0
3883
3884 ;
3885 return 0;
3886 }
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3890 (eval $ac_compile) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -s conftest.$ac_objext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 ac_hi=$ac_mid; break
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 ac_lo=`expr $ac_mid + 1`
3906 if test $ac_lo -le $ac_mid; then
3907 ac_lo= ac_hi=
3908 break
3909 fi
3910 ac_mid=`expr 2 '*' $ac_mid + 1`
3911 fi
3912 rm -f conftest.$ac_objext conftest.$ac_ext
3913 done
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 cat >conftest.$ac_ext <<_ACEOF
3919 #line $LINENO "configure"
3920 /* confdefs.h. */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 $ac_includes_default
3926 int
3927 main ()
3928 {
3929 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3930 test_array [0] = 0
3931
3932 ;
3933 return 0;
3934 }
3935 _ACEOF
3936 rm -f conftest.$ac_objext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3938 (eval $ac_compile) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } &&
3942 { ac_try='test -s conftest.$ac_objext'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3948 ac_hi=-1 ac_mid=-1
3949 while :; do
3950 cat >conftest.$ac_ext <<_ACEOF
3951 #line $LINENO "configure"
3952 /* confdefs.h. */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3957 $ac_includes_default
3958 int
3959 main ()
3960 {
3961 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3962 test_array [0] = 0
3963
3964 ;
3965 return 0;
3966 }
3967 _ACEOF
3968 rm -f conftest.$ac_objext
3969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3970 (eval $ac_compile) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } &&
3974 { ac_try='test -s conftest.$ac_objext'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3980 ac_lo=$ac_mid; break
3981 else
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 ac_hi=`expr '(' $ac_mid ')' - 1`
3986 if test $ac_mid -le $ac_hi; then
3987 ac_lo= ac_hi=
3988 break
3989 fi
3990 ac_mid=`expr 2 '*' $ac_mid`
3991 fi
3992 rm -f conftest.$ac_objext conftest.$ac_ext
3993 done
3994 else
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3997
3998 ac_lo= ac_hi=
3999 fi
4000 rm -f conftest.$ac_objext conftest.$ac_ext
4001 fi
4002 rm -f conftest.$ac_objext conftest.$ac_ext
4003 # Binary search between lo and hi bounds.
4004 while test "x$ac_lo" != "x$ac_hi"; do
4005 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4006 cat >conftest.$ac_ext <<_ACEOF
4007 #line $LINENO "configure"
4008 /* confdefs.h. */
4009 _ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4013 $ac_includes_default
4014 int
4015 main ()
4016 {
4017 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4018 test_array [0] = 0
4019
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 rm -f conftest.$ac_objext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026 (eval $ac_compile) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -s conftest.$ac_objext'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 ac_hi=$ac_mid
4037 else
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4040
4041 ac_lo=`expr '(' $ac_mid ')' + 1`
4042 fi
4043 rm -f conftest.$ac_objext conftest.$ac_ext
4044 done
4045 case $ac_lo in
4046 ?*) ac_cv_sizeof_short=$ac_lo;;
4047 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4048 See \`config.log' for more details." >&5
4049 echo "$as_me: error: cannot compute sizeof (short), 77
4050 See \`config.log' for more details." >&2;}
4051 { (exit 1); exit 1; }; } ;;
4052 esac
4053 else
4054 if test "$cross_compiling" = yes; then
4055 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4056 See \`config.log' for more details." >&5
4057 echo "$as_me: error: cannot run test program while cross compiling
4058 See \`config.log' for more details." >&2;}
4059 { (exit 1); exit 1; }; }
4060 else
4061 cat >conftest.$ac_ext <<_ACEOF
4062 #line $LINENO "configure"
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4069 long longval () { return (long) (sizeof (short)); }
4070 unsigned long ulongval () { return (long) (sizeof (short)); }
4071 #include <stdio.h>
4072 #include <stdlib.h>
4073 int
4074 main ()
4075 {
4076
4077 FILE *f = fopen ("conftest.val", "w");
4078 if (! f)
4079 exit (1);
4080 if (((long) (sizeof (short))) < 0)
4081 {
4082 long i = longval ();
4083 if (i != ((long) (sizeof (short))))
4084 exit (1);
4085 fprintf (f, "%ld\n", i);
4086 }
4087 else
4088 {
4089 unsigned long i = ulongval ();
4090 if (i != ((long) (sizeof (short))))
4091 exit (1);
4092 fprintf (f, "%lu\n", i);
4093 }
4094 exit (ferror (f) || fclose (f) != 0);
4095
4096 ;
4097 return 0;
4098 }
4099 _ACEOF
4100 rm -f conftest$ac_exeext
4101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4102 (eval $ac_link) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 ac_cv_sizeof_short=`cat conftest.val`
4112 else
4113 echo "$as_me: program exited with status $ac_status" >&5
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4116
4117 ( exit $ac_status )
4118 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4119 See \`config.log' for more details." >&5
4120 echo "$as_me: error: cannot compute sizeof (short), 77
4121 See \`config.log' for more details." >&2;}
4122 { (exit 1); exit 1; }; }
4123 fi
4124 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4125 fi
4126 fi
4127 rm -f conftest.val
4128 else
4129 ac_cv_sizeof_short=0
4130 fi
4131 fi
4132 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4133 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4134 cat >>confdefs.h <<_ACEOF
4135 #define SIZEOF_SHORT $ac_cv_sizeof_short
4136 _ACEOF
4137
4138
4139
4140
4141 echo "$as_me:$LINENO: checking for int" >&5
4142 echo $ECHO_N "checking for int... $ECHO_C" >&6
4143 if test "${ac_cv_type_int+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 cat >conftest.$ac_ext <<_ACEOF
4147 #line $LINENO "configure"
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 $ac_includes_default
4154 int
4155 main ()
4156 {
4157 if ((int *) 0)
4158 return 0;
4159 if (sizeof (int))
4160 return 0;
4161 ;
4162 return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167 (eval $ac_compile) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_type_int=yes
4178 else
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 ac_cv_type_int=no
4183 fi
4184 rm -f conftest.$ac_objext conftest.$ac_ext
4185 fi
4186 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4187 echo "${ECHO_T}$ac_cv_type_int" >&6
4188
4189 echo "$as_me:$LINENO: checking size of int" >&5
4190 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4191 if test "${ac_cv_sizeof_int+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 if test "$ac_cv_type_int" = yes; then
4195 # The cast to unsigned long works around a bug in the HP C Compiler
4196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4198 # This bug is HP SR number 8606223364.
4199 if test "$cross_compiling" = yes; then
4200 # Depending upon the size, compute the lo and hi bounds.
4201 cat >conftest.$ac_ext <<_ACEOF
4202 #line $LINENO "configure"
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208 $ac_includes_default
4209 int
4210 main ()
4211 {
4212 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4213 test_array [0] = 0
4214
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -s conftest.$ac_objext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 ac_lo=0 ac_mid=0
4232 while :; do
4233 cat >conftest.$ac_ext <<_ACEOF
4234 #line $LINENO "configure"
4235 /* confdefs.h. */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 $ac_includes_default
4241 int
4242 main ()
4243 {
4244 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4245 test_array [0] = 0
4246
4247 ;
4248 return 0;
4249 }
4250 _ACEOF
4251 rm -f conftest.$ac_objext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253 (eval $ac_compile) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -s conftest.$ac_objext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 (eval $ac_try) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 ac_hi=$ac_mid; break
4264 else
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 ac_lo=`expr $ac_mid + 1`
4269 if test $ac_lo -le $ac_mid; then
4270 ac_lo= ac_hi=
4271 break
4272 fi
4273 ac_mid=`expr 2 '*' $ac_mid + 1`
4274 fi
4275 rm -f conftest.$ac_objext conftest.$ac_ext
4276 done
4277 else
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 cat >conftest.$ac_ext <<_ACEOF
4282 #line $LINENO "configure"
4283 /* confdefs.h. */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 $ac_includes_default
4289 int
4290 main ()
4291 {
4292 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4293 test_array [0] = 0
4294
4295 ;
4296 return 0;
4297 }
4298 _ACEOF
4299 rm -f conftest.$ac_objext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4301 (eval $ac_compile) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_hi=-1 ac_mid=-1
4312 while :; do
4313 cat >conftest.$ac_ext <<_ACEOF
4314 #line $LINENO "configure"
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 $ac_includes_default
4321 int
4322 main ()
4323 {
4324 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4325 test_array [0] = 0
4326
4327 ;
4328 return 0;
4329 }
4330 _ACEOF
4331 rm -f conftest.$ac_objext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333 (eval $ac_compile) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } &&
4337 { ac_try='test -s conftest.$ac_objext'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 ac_lo=$ac_mid; break
4344 else
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 ac_hi=`expr '(' $ac_mid ')' - 1`
4349 if test $ac_mid -le $ac_hi; then
4350 ac_lo= ac_hi=
4351 break
4352 fi
4353 ac_mid=`expr 2 '*' $ac_mid`
4354 fi
4355 rm -f conftest.$ac_objext conftest.$ac_ext
4356 done
4357 else
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4360
4361 ac_lo= ac_hi=
4362 fi
4363 rm -f conftest.$ac_objext conftest.$ac_ext
4364 fi
4365 rm -f conftest.$ac_objext conftest.$ac_ext
4366 # Binary search between lo and hi bounds.
4367 while test "x$ac_lo" != "x$ac_hi"; do
4368 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4369 cat >conftest.$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4371 /* confdefs.h. */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 $ac_includes_default
4377 int
4378 main ()
4379 {
4380 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4381 test_array [0] = 0
4382
4383 ;
4384 return 0;
4385 }
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389 (eval $ac_compile) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 ac_hi=$ac_mid
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 ac_lo=`expr '(' $ac_mid ')' + 1`
4405 fi
4406 rm -f conftest.$ac_objext conftest.$ac_ext
4407 done
4408 case $ac_lo in
4409 ?*) ac_cv_sizeof_int=$ac_lo;;
4410 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4411 See \`config.log' for more details." >&5
4412 echo "$as_me: error: cannot compute sizeof (int), 77
4413 See \`config.log' for more details." >&2;}
4414 { (exit 1); exit 1; }; } ;;
4415 esac
4416 else
4417 if test "$cross_compiling" = yes; then
4418 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4419 See \`config.log' for more details." >&5
4420 echo "$as_me: error: cannot run test program while cross compiling
4421 See \`config.log' for more details." >&2;}
4422 { (exit 1); exit 1; }; }
4423 else
4424 cat >conftest.$ac_ext <<_ACEOF
4425 #line $LINENO "configure"
4426 /* confdefs.h. */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 $ac_includes_default
4432 long longval () { return (long) (sizeof (int)); }
4433 unsigned long ulongval () { return (long) (sizeof (int)); }
4434 #include <stdio.h>
4435 #include <stdlib.h>
4436 int
4437 main ()
4438 {
4439
4440 FILE *f = fopen ("conftest.val", "w");
4441 if (! f)
4442 exit (1);
4443 if (((long) (sizeof (int))) < 0)
4444 {
4445 long i = longval ();
4446 if (i != ((long) (sizeof (int))))
4447 exit (1);
4448 fprintf (f, "%ld\n", i);
4449 }
4450 else
4451 {
4452 unsigned long i = ulongval ();
4453 if (i != ((long) (sizeof (int))))
4454 exit (1);
4455 fprintf (f, "%lu\n", i);
4456 }
4457 exit (ferror (f) || fclose (f) != 0);
4458
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 rm -f conftest$ac_exeext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 ac_cv_sizeof_int=`cat conftest.val`
4475 else
4476 echo "$as_me: program exited with status $ac_status" >&5
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480 ( exit $ac_status )
4481 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4482 See \`config.log' for more details." >&5
4483 echo "$as_me: error: cannot compute sizeof (int), 77
4484 See \`config.log' for more details." >&2;}
4485 { (exit 1); exit 1; }; }
4486 fi
4487 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4488 fi
4489 fi
4490 rm -f conftest.val
4491 else
4492 ac_cv_sizeof_int=0
4493 fi
4494 fi
4495 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4496 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4497 cat >>confdefs.h <<_ACEOF
4498 #define SIZEOF_INT $ac_cv_sizeof_int
4499 _ACEOF
4500
4501
4502
4503
4504 echo "$as_me:$LINENO: checking for long" >&5
4505 echo $ECHO_N "checking for long... $ECHO_C" >&6
4506 if test "${ac_cv_type_long+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 cat >conftest.$ac_ext <<_ACEOF
4510 #line $LINENO "configure"
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 $ac_includes_default
4517 int
4518 main ()
4519 {
4520 if ((long *) 0)
4521 return 0;
4522 if (sizeof (long))
4523 return 0;
4524 ;
4525 return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_cv_type_long=yes
4541 else
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 ac_cv_type_long=no
4546 fi
4547 rm -f conftest.$ac_objext conftest.$ac_ext
4548 fi
4549 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4550 echo "${ECHO_T}$ac_cv_type_long" >&6
4551
4552 echo "$as_me:$LINENO: checking size of long" >&5
4553 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4554 if test "${ac_cv_sizeof_long+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 if test "$ac_cv_type_long" = yes; then
4558 # The cast to unsigned long works around a bug in the HP C Compiler
4559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4561 # This bug is HP SR number 8606223364.
4562 if test "$cross_compiling" = yes; then
4563 # Depending upon the size, compute the lo and hi bounds.
4564 cat >conftest.$ac_ext <<_ACEOF
4565 #line $LINENO "configure"
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 $ac_includes_default
4572 int
4573 main ()
4574 {
4575 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4576 test_array [0] = 0
4577
4578 ;
4579 return 0;
4580 }
4581 _ACEOF
4582 rm -f conftest.$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try='test -s conftest.$ac_objext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4594 ac_lo=0 ac_mid=0
4595 while :; do
4596 cat >conftest.$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4598 /* confdefs.h. */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 $ac_includes_default
4604 int
4605 main ()
4606 {
4607 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4608 test_array [0] = 0
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 rm -f conftest.$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try='test -s conftest.$ac_objext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 (eval $ac_try) 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_hi=$ac_mid; break
4627 else
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631 ac_lo=`expr $ac_mid + 1`
4632 if test $ac_lo -le $ac_mid; then
4633 ac_lo= ac_hi=
4634 break
4635 fi
4636 ac_mid=`expr 2 '*' $ac_mid + 1`
4637 fi
4638 rm -f conftest.$ac_objext conftest.$ac_ext
4639 done
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644 cat >conftest.$ac_ext <<_ACEOF
4645 #line $LINENO "configure"
4646 /* confdefs.h. */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 $ac_includes_default
4652 int
4653 main ()
4654 {
4655 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4656 test_array [0] = 0
4657
4658 ;
4659 return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_hi=-1 ac_mid=-1
4675 while :; do
4676 cat >conftest.$ac_ext <<_ACEOF
4677 #line $LINENO "configure"
4678 /* confdefs.h. */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4683 $ac_includes_default
4684 int
4685 main ()
4686 {
4687 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4688 test_array [0] = 0
4689
4690 ;
4691 return 0;
4692 }
4693 _ACEOF
4694 rm -f conftest.$ac_objext
4695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696 (eval $ac_compile) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_lo=$ac_mid; break
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711 ac_hi=`expr '(' $ac_mid ')' - 1`
4712 if test $ac_mid -le $ac_hi; then
4713 ac_lo= ac_hi=
4714 break
4715 fi
4716 ac_mid=`expr 2 '*' $ac_mid`
4717 fi
4718 rm -f conftest.$ac_objext conftest.$ac_ext
4719 done
4720 else
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4723
4724 ac_lo= ac_hi=
4725 fi
4726 rm -f conftest.$ac_objext conftest.$ac_ext
4727 fi
4728 rm -f conftest.$ac_objext conftest.$ac_ext
4729 # Binary search between lo and hi bounds.
4730 while test "x$ac_lo" != "x$ac_hi"; do
4731 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4732 cat >conftest.$ac_ext <<_ACEOF
4733 #line $LINENO "configure"
4734 /* confdefs.h. */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4739 $ac_includes_default
4740 int
4741 main ()
4742 {
4743 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4744 test_array [0] = 0
4745
4746 ;
4747 return 0;
4748 }
4749 _ACEOF
4750 rm -f conftest.$ac_objext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752 (eval $ac_compile) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 ac_hi=$ac_mid
4763 else
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 ac_lo=`expr '(' $ac_mid ')' + 1`
4768 fi
4769 rm -f conftest.$ac_objext conftest.$ac_ext
4770 done
4771 case $ac_lo in
4772 ?*) ac_cv_sizeof_long=$ac_lo;;
4773 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4774 See \`config.log' for more details." >&5
4775 echo "$as_me: error: cannot compute sizeof (long), 77
4776 See \`config.log' for more details." >&2;}
4777 { (exit 1); exit 1; }; } ;;
4778 esac
4779 else
4780 if test "$cross_compiling" = yes; then
4781 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4782 See \`config.log' for more details." >&5
4783 echo "$as_me: error: cannot run test program while cross compiling
4784 See \`config.log' for more details." >&2;}
4785 { (exit 1); exit 1; }; }
4786 else
4787 cat >conftest.$ac_ext <<_ACEOF
4788 #line $LINENO "configure"
4789 /* confdefs.h. */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4794 $ac_includes_default
4795 long longval () { return (long) (sizeof (long)); }
4796 unsigned long ulongval () { return (long) (sizeof (long)); }
4797 #include <stdio.h>
4798 #include <stdlib.h>
4799 int
4800 main ()
4801 {
4802
4803 FILE *f = fopen ("conftest.val", "w");
4804 if (! f)
4805 exit (1);
4806 if (((long) (sizeof (long))) < 0)
4807 {
4808 long i = longval ();
4809 if (i != ((long) (sizeof (long))))
4810 exit (1);
4811 fprintf (f, "%ld\n", i);
4812 }
4813 else
4814 {
4815 unsigned long i = ulongval ();
4816 if (i != ((long) (sizeof (long))))
4817 exit (1);
4818 fprintf (f, "%lu\n", i);
4819 }
4820 exit (ferror (f) || fclose (f) != 0);
4821
4822 ;
4823 return 0;
4824 }
4825 _ACEOF
4826 rm -f conftest$ac_exeext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4828 (eval $ac_link) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_cv_sizeof_long=`cat conftest.val`
4838 else
4839 echo "$as_me: program exited with status $ac_status" >&5
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 ( exit $ac_status )
4844 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4845 See \`config.log' for more details." >&5
4846 echo "$as_me: error: cannot compute sizeof (long), 77
4847 See \`config.log' for more details." >&2;}
4848 { (exit 1); exit 1; }; }
4849 fi
4850 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 fi
4853 rm -f conftest.val
4854 else
4855 ac_cv_sizeof_long=0
4856 fi
4857 fi
4858 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4859 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4860 cat >>confdefs.h <<_ACEOF
4861 #define SIZEOF_LONG $ac_cv_sizeof_long
4862 _ACEOF
4863
4864
4865
4866
4867 echo "$as_me:$LINENO: checking for long long" >&5
4868 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4869 if test "${ac_cv_type_long_long+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872 cat >conftest.$ac_ext <<_ACEOF
4873 #line $LINENO "configure"
4874 /* confdefs.h. */
4875 _ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4879 $ac_includes_default
4880 int
4881 main ()
4882 {
4883 if ((long long *) 0)
4884 return 0;
4885 if (sizeof (long long))
4886 return 0;
4887 ;
4888 return 0;
4889 }
4890 _ACEOF
4891 rm -f conftest.$ac_objext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893 (eval $ac_compile) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_type_long_long=yes
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 ac_cv_type_long_long=no
4909 fi
4910 rm -f conftest.$ac_objext conftest.$ac_ext
4911 fi
4912 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4913 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4914
4915 echo "$as_me:$LINENO: checking size of long long" >&5
4916 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4917 if test "${ac_cv_sizeof_long_long+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 if test "$ac_cv_type_long_long" = yes; then
4921 # The cast to unsigned long works around a bug in the HP C Compiler
4922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4924 # This bug is HP SR number 8606223364.
4925 if test "$cross_compiling" = yes; then
4926 # Depending upon the size, compute the lo and hi bounds.
4927 cat >conftest.$ac_ext <<_ACEOF
4928 #line $LINENO "configure"
4929 /* confdefs.h. */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4934 $ac_includes_default
4935 int
4936 main ()
4937 {
4938 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
4939 test_array [0] = 0
4940
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_lo=0 ac_mid=0
4958 while :; do
4959 cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4961 /* confdefs.h. */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 $ac_includes_default
4967 int
4968 main ()
4969 {
4970 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4971 test_array [0] = 0
4972
4973 ;
4974 return 0;
4975 }
4976 _ACEOF
4977 rm -f conftest.$ac_objext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -s conftest.$ac_objext'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 ac_hi=$ac_mid; break
4990 else
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 ac_lo=`expr $ac_mid + 1`
4995 if test $ac_lo -le $ac_mid; then
4996 ac_lo= ac_hi=
4997 break
4998 fi
4999 ac_mid=`expr 2 '*' $ac_mid + 1`
5000 fi
5001 rm -f conftest.$ac_objext conftest.$ac_ext
5002 done
5003 else
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 cat >conftest.$ac_ext <<_ACEOF
5008 #line $LINENO "configure"
5009 /* confdefs.h. */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5014 $ac_includes_default
5015 int
5016 main ()
5017 {
5018 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5019 test_array [0] = 0
5020
5021 ;
5022 return 0;
5023 }
5024 _ACEOF
5025 rm -f conftest.$ac_objext
5026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5027 (eval $ac_compile) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try='test -s conftest.$ac_objext'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5037 ac_hi=-1 ac_mid=-1
5038 while :; do
5039 cat >conftest.$ac_ext <<_ACEOF
5040 #line $LINENO "configure"
5041 /* confdefs.h. */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 $ac_includes_default
5047 int
5048 main ()
5049 {
5050 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5051 test_array [0] = 0
5052
5053 ;
5054 return 0;
5055 }
5056 _ACEOF
5057 rm -f conftest.$ac_objext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5059 (eval $ac_compile) 2>&5
5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -s conftest.$ac_objext'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5069 ac_lo=$ac_mid; break
5070 else
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074 ac_hi=`expr '(' $ac_mid ')' - 1`
5075 if test $ac_mid -le $ac_hi; then
5076 ac_lo= ac_hi=
5077 break
5078 fi
5079 ac_mid=`expr 2 '*' $ac_mid`
5080 fi
5081 rm -f conftest.$ac_objext conftest.$ac_ext
5082 done
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5086
5087 ac_lo= ac_hi=
5088 fi
5089 rm -f conftest.$ac_objext conftest.$ac_ext
5090 fi
5091 rm -f conftest.$ac_objext conftest.$ac_ext
5092 # Binary search between lo and hi bounds.
5093 while test "x$ac_lo" != "x$ac_hi"; do
5094 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5095 cat >conftest.$ac_ext <<_ACEOF
5096 #line $LINENO "configure"
5097 /* confdefs.h. */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 $ac_includes_default
5103 int
5104 main ()
5105 {
5106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5107 test_array [0] = 0
5108
5109 ;
5110 return 0;
5111 }
5112 _ACEOF
5113 rm -f conftest.$ac_objext
5114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5115 (eval $ac_compile) 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -s conftest.$ac_objext'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 (eval $ac_try) 2>&5
5122 ac_status=$?
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 ac_hi=$ac_mid
5126 else
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5129
5130 ac_lo=`expr '(' $ac_mid ')' + 1`
5131 fi
5132 rm -f conftest.$ac_objext conftest.$ac_ext
5133 done
5134 case $ac_lo in
5135 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5136 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5137 See \`config.log' for more details." >&5
5138 echo "$as_me: error: cannot compute sizeof (long long), 77
5139 See \`config.log' for more details." >&2;}
5140 { (exit 1); exit 1; }; } ;;
5141 esac
5142 else
5143 if test "$cross_compiling" = yes; then
5144 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5145 See \`config.log' for more details." >&5
5146 echo "$as_me: error: cannot run test program while cross compiling
5147 See \`config.log' for more details." >&2;}
5148 { (exit 1); exit 1; }; }
5149 else
5150 cat >conftest.$ac_ext <<_ACEOF
5151 #line $LINENO "configure"
5152 /* confdefs.h. */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5157 $ac_includes_default
5158 long longval () { return (long) (sizeof (long long)); }
5159 unsigned long ulongval () { return (long) (sizeof (long long)); }
5160 #include <stdio.h>
5161 #include <stdlib.h>
5162 int
5163 main ()
5164 {
5165
5166 FILE *f = fopen ("conftest.val", "w");
5167 if (! f)
5168 exit (1);
5169 if (((long) (sizeof (long long))) < 0)
5170 {
5171 long i = longval ();
5172 if (i != ((long) (sizeof (long long))))
5173 exit (1);
5174 fprintf (f, "%ld\n", i);
5175 }
5176 else
5177 {
5178 unsigned long i = ulongval ();
5179 if (i != ((long) (sizeof (long long))))
5180 exit (1);
5181 fprintf (f, "%lu\n", i);
5182 }
5183 exit (ferror (f) || fclose (f) != 0);
5184
5185 ;
5186 return 0;
5187 }
5188 _ACEOF
5189 rm -f conftest$ac_exeext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5191 (eval $ac_link) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 ac_cv_sizeof_long_long=`cat conftest.val`
5201 else
5202 echo "$as_me: program exited with status $ac_status" >&5
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5205
5206 ( exit $ac_status )
5207 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5208 See \`config.log' for more details." >&5
5209 echo "$as_me: error: cannot compute sizeof (long long), 77
5210 See \`config.log' for more details." >&2;}
5211 { (exit 1); exit 1; }; }
5212 fi
5213 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5214 fi
5215 fi
5216 rm -f conftest.val
5217 else
5218 ac_cv_sizeof_long_long=0
5219 fi
5220 fi
5221 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5222 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5223 cat >>confdefs.h <<_ACEOF
5224 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5225 _ACEOF
5226
5227
5228
5229
5230 echo "$as_me:$LINENO: checking for float" >&5
5231 echo $ECHO_N "checking for float... $ECHO_C" >&6
5232 if test "${ac_cv_type_float+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 /* confdefs.h. */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 $ac_includes_default
5243 int
5244 main ()
5245 {
5246 if ((float *) 0)
5247 return 0;
5248 if (sizeof (float))
5249 return 0;
5250 ;
5251 return 0;
5252 }
5253 _ACEOF
5254 rm -f conftest.$ac_objext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256 (eval $ac_compile) 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -s conftest.$ac_objext'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 (eval $ac_try) 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 ac_cv_type_float=yes
5267 else
5268 echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5270
5271 ac_cv_type_float=no
5272 fi
5273 rm -f conftest.$ac_objext conftest.$ac_ext
5274 fi
5275 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5276 echo "${ECHO_T}$ac_cv_type_float" >&6
5277
5278 echo "$as_me:$LINENO: checking size of float" >&5
5279 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5280 if test "${ac_cv_sizeof_float+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283 if test "$ac_cv_type_float" = yes; then
5284 # The cast to unsigned long works around a bug in the HP C Compiler
5285 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5286 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5287 # This bug is HP SR number 8606223364.
5288 if test "$cross_compiling" = yes; then
5289 # Depending upon the size, compute the lo and hi bounds.
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5298 int
5299 main ()
5300 {
5301 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5302 test_array [0] = 0
5303
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_lo=0 ac_mid=0
5321 while :; do
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 int
5331 main ()
5332 {
5333 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5334 test_array [0] = 0
5335
5336 ;
5337 return 0;
5338 }
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -s conftest.$ac_objext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_hi=$ac_mid; break
5353 else
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357 ac_lo=`expr $ac_mid + 1`
5358 if test $ac_lo -le $ac_mid; then
5359 ac_lo= ac_hi=
5360 break
5361 fi
5362 ac_mid=`expr 2 '*' $ac_mid + 1`
5363 fi
5364 rm -f conftest.$ac_objext conftest.$ac_ext
5365 done
5366 else
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5369
5370 cat >conftest.$ac_ext <<_ACEOF
5371 #line $LINENO "configure"
5372 /* confdefs.h. */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 $ac_includes_default
5378 int
5379 main ()
5380 {
5381 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5382 test_array [0] = 0
5383
5384 ;
5385 return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } &&
5394 { ac_try='test -s conftest.$ac_objext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 (eval $ac_try) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 ac_hi=-1 ac_mid=-1
5401 while :; do
5402 cat >conftest.$ac_ext <<_ACEOF
5403 #line $LINENO "configure"
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 $ac_includes_default
5410 int
5411 main ()
5412 {
5413 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5414 test_array [0] = 0
5415
5416 ;
5417 return 0;
5418 }
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try='test -s conftest.$ac_objext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 (eval $ac_try) 2>&5
5429 ac_status=$?
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 ac_lo=$ac_mid; break
5433 else
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 ac_hi=`expr '(' $ac_mid ')' - 1`
5438 if test $ac_mid -le $ac_hi; then
5439 ac_lo= ac_hi=
5440 break
5441 fi
5442 ac_mid=`expr 2 '*' $ac_mid`
5443 fi
5444 rm -f conftest.$ac_objext conftest.$ac_ext
5445 done
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450 ac_lo= ac_hi=
5451 fi
5452 rm -f conftest.$ac_objext conftest.$ac_ext
5453 fi
5454 rm -f conftest.$ac_objext conftest.$ac_ext
5455 # Binary search between lo and hi bounds.
5456 while test "x$ac_lo" != "x$ac_hi"; do
5457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5458 cat >conftest.$ac_ext <<_ACEOF
5459 #line $LINENO "configure"
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 $ac_includes_default
5466 int
5467 main ()
5468 {
5469 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5470 test_array [0] = 0
5471
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 rm -f conftest.$ac_objext
5477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5478 (eval $ac_compile) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } &&
5482 { ac_try='test -s conftest.$ac_objext'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 (eval $ac_try) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5488 ac_hi=$ac_mid
5489 else
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493 ac_lo=`expr '(' $ac_mid ')' + 1`
5494 fi
5495 rm -f conftest.$ac_objext conftest.$ac_ext
5496 done
5497 case $ac_lo in
5498 ?*) ac_cv_sizeof_float=$ac_lo;;
5499 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5500 See \`config.log' for more details." >&5
5501 echo "$as_me: error: cannot compute sizeof (float), 77
5502 See \`config.log' for more details." >&2;}
5503 { (exit 1); exit 1; }; } ;;
5504 esac
5505 else
5506 if test "$cross_compiling" = yes; then
5507 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5508 See \`config.log' for more details." >&5
5509 echo "$as_me: error: cannot run test program while cross compiling
5510 See \`config.log' for more details." >&2;}
5511 { (exit 1); exit 1; }; }
5512 else
5513 cat >conftest.$ac_ext <<_ACEOF
5514 #line $LINENO "configure"
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 $ac_includes_default
5521 long longval () { return (long) (sizeof (float)); }
5522 unsigned long ulongval () { return (long) (sizeof (float)); }
5523 #include <stdio.h>
5524 #include <stdlib.h>
5525 int
5526 main ()
5527 {
5528
5529 FILE *f = fopen ("conftest.val", "w");
5530 if (! f)
5531 exit (1);
5532 if (((long) (sizeof (float))) < 0)
5533 {
5534 long i = longval ();
5535 if (i != ((long) (sizeof (float))))
5536 exit (1);
5537 fprintf (f, "%ld\n", i);
5538 }
5539 else
5540 {
5541 unsigned long i = ulongval ();
5542 if (i != ((long) (sizeof (float))))
5543 exit (1);
5544 fprintf (f, "%lu\n", i);
5545 }
5546 exit (ferror (f) || fclose (f) != 0);
5547
5548 ;
5549 return 0;
5550 }
5551 _ACEOF
5552 rm -f conftest$ac_exeext
5553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5554 (eval $ac_link) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 (eval $ac_try) 2>&5
5560 ac_status=$?
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; }; then
5563 ac_cv_sizeof_float=`cat conftest.val`
5564 else
5565 echo "$as_me: program exited with status $ac_status" >&5
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5568
5569 ( exit $ac_status )
5570 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5571 See \`config.log' for more details." >&5
5572 echo "$as_me: error: cannot compute sizeof (float), 77
5573 See \`config.log' for more details." >&2;}
5574 { (exit 1); exit 1; }; }
5575 fi
5576 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5577 fi
5578 fi
5579 rm -f conftest.val
5580 else
5581 ac_cv_sizeof_float=0
5582 fi
5583 fi
5584 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5585 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5586 cat >>confdefs.h <<_ACEOF
5587 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5588 _ACEOF
5589
5590
5591
5592
5593 echo "$as_me:$LINENO: checking for double" >&5
5594 echo $ECHO_N "checking for double... $ECHO_C" >&6
5595 if test "${ac_cv_type_double+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598 cat >conftest.$ac_ext <<_ACEOF
5599 #line $LINENO "configure"
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605 $ac_includes_default
5606 int
5607 main ()
5608 {
5609 if ((double *) 0)
5610 return 0;
5611 if (sizeof (double))
5612 return 0;
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try='test -s conftest.$ac_objext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_cv_type_double=yes
5630 else
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5633
5634 ac_cv_type_double=no
5635 fi
5636 rm -f conftest.$ac_objext conftest.$ac_ext
5637 fi
5638 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5639 echo "${ECHO_T}$ac_cv_type_double" >&6
5640
5641 echo "$as_me:$LINENO: checking size of double" >&5
5642 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5643 if test "${ac_cv_sizeof_double+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 if test "$ac_cv_type_double" = yes; then
5647 # The cast to unsigned long works around a bug in the HP C Compiler
5648 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5649 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5650 # This bug is HP SR number 8606223364.
5651 if test "$cross_compiling" = yes; then
5652 # Depending upon the size, compute the lo and hi bounds.
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 $ac_includes_default
5661 int
5662 main ()
5663 {
5664 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5665 test_array [0] = 0
5666
5667 ;
5668 return 0;
5669 }
5670 _ACEOF
5671 rm -f conftest.$ac_objext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_lo=0 ac_mid=0
5684 while :; do
5685 cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 $ac_includes_default
5693 int
5694 main ()
5695 {
5696 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5697 test_array [0] = 0
5698
5699 ;
5700 return 0;
5701 }
5702 _ACEOF
5703 rm -f conftest.$ac_objext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5705 (eval $ac_compile) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_hi=$ac_mid; break
5716 else
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 ac_lo=`expr $ac_mid + 1`
5721 if test $ac_lo -le $ac_mid; then
5722 ac_lo= ac_hi=
5723 break
5724 fi
5725 ac_mid=`expr 2 '*' $ac_mid + 1`
5726 fi
5727 rm -f conftest.$ac_objext conftest.$ac_ext
5728 done
5729 else
5730 echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5732
5733 cat >conftest.$ac_ext <<_ACEOF
5734 #line $LINENO "configure"
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 $ac_includes_default
5741 int
5742 main ()
5743 {
5744 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5745 test_array [0] = 0
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -s conftest.$ac_objext'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 (eval $ac_try) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5763 ac_hi=-1 ac_mid=-1
5764 while :; do
5765 cat >conftest.$ac_ext <<_ACEOF
5766 #line $LINENO "configure"
5767 /* confdefs.h. */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 $ac_includes_default
5773 int
5774 main ()
5775 {
5776 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5777 test_array [0] = 0
5778
5779 ;
5780 return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try='test -s conftest.$ac_objext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 ac_lo=$ac_mid; break
5796 else
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5799
5800 ac_hi=`expr '(' $ac_mid ')' - 1`
5801 if test $ac_mid -le $ac_hi; then
5802 ac_lo= ac_hi=
5803 break
5804 fi
5805 ac_mid=`expr 2 '*' $ac_mid`
5806 fi
5807 rm -f conftest.$ac_objext conftest.$ac_ext
5808 done
5809 else
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5812
5813 ac_lo= ac_hi=
5814 fi
5815 rm -f conftest.$ac_objext conftest.$ac_ext
5816 fi
5817 rm -f conftest.$ac_objext conftest.$ac_ext
5818 # Binary search between lo and hi bounds.
5819 while test "x$ac_lo" != "x$ac_hi"; do
5820 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5821 cat >conftest.$ac_ext <<_ACEOF
5822 #line $LINENO "configure"
5823 /* confdefs.h. */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 $ac_includes_default
5829 int
5830 main ()
5831 {
5832 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5833 test_array [0] = 0
5834
5835 ;
5836 return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_hi=$ac_mid
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 ac_lo=`expr '(' $ac_mid ')' + 1`
5857 fi
5858 rm -f conftest.$ac_objext conftest.$ac_ext
5859 done
5860 case $ac_lo in
5861 ?*) ac_cv_sizeof_double=$ac_lo;;
5862 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5863 See \`config.log' for more details." >&5
5864 echo "$as_me: error: cannot compute sizeof (double), 77
5865 See \`config.log' for more details." >&2;}
5866 { (exit 1); exit 1; }; } ;;
5867 esac
5868 else
5869 if test "$cross_compiling" = yes; then
5870 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5871 See \`config.log' for more details." >&5
5872 echo "$as_me: error: cannot run test program while cross compiling
5873 See \`config.log' for more details." >&2;}
5874 { (exit 1); exit 1; }; }
5875 else
5876 cat >conftest.$ac_ext <<_ACEOF
5877 #line $LINENO "configure"
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 $ac_includes_default
5884 long longval () { return (long) (sizeof (double)); }
5885 unsigned long ulongval () { return (long) (sizeof (double)); }
5886 #include <stdio.h>
5887 #include <stdlib.h>
5888 int
5889 main ()
5890 {
5891
5892 FILE *f = fopen ("conftest.val", "w");
5893 if (! f)
5894 exit (1);
5895 if (((long) (sizeof (double))) < 0)
5896 {
5897 long i = longval ();
5898 if (i != ((long) (sizeof (double))))
5899 exit (1);
5900 fprintf (f, "%ld\n", i);
5901 }
5902 else
5903 {
5904 unsigned long i = ulongval ();
5905 if (i != ((long) (sizeof (double))))
5906 exit (1);
5907 fprintf (f, "%lu\n", i);
5908 }
5909 exit (ferror (f) || fclose (f) != 0);
5910
5911 ;
5912 return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917 (eval $ac_link) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 ac_cv_sizeof_double=`cat conftest.val`
5927 else
5928 echo "$as_me: program exited with status $ac_status" >&5
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932 ( exit $ac_status )
5933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5934 See \`config.log' for more details." >&5
5935 echo "$as_me: error: cannot compute sizeof (double), 77
5936 See \`config.log' for more details." >&2;}
5937 { (exit 1); exit 1; }; }
5938 fi
5939 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5940 fi
5941 fi
5942 rm -f conftest.val
5943 else
5944 ac_cv_sizeof_double=0
5945 fi
5946 fi
5947 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5948 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5949 cat >>confdefs.h <<_ACEOF
5950 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5951 _ACEOF
5952
5953
5954
5955
5956
5957 if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_int; then
5958 GS_ADDR="unsigned int"
5959 else
5960 if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long; then
5961 GS_ADDR="unsigned long"
5962 else
5963 if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long_long; then
5964 GS_ADDR="unsigned long long"
5965 else
5966 { { echo "$as_me:$LINENO: error: Unable to find integer of same size as void*" >&5
5967 echo "$as_me: error: Unable to find integer of same size as void*" >&2;}
5968 { (exit 1); exit 1; }; }
5969 fi
5970 fi
5971 fi
5972
5973
5974 if test $ac_cv_sizeof_short = 2; then
5975 GS_SINT16="signed short"
5976 GS_UINT16="unsigned short"
5977 else
5978 if test $ac_cv_sizeof_int = 2; then
5979 GS_SINT16="signed int"
5980 GS_UINT16="unsigned int"
5981 else
5982 { { echo "$as_me:$LINENO: error: Unable to determine type for 16-bit integer" >&5
5983 echo "$as_me: error: Unable to determine type for 16-bit integer" >&2;}
5984 { (exit 1); exit 1; }; }
5985 fi
5986 fi
5987
5988
5989
5990 if test $ac_cv_sizeof_int = 4; then
5991 GS_SINT32="signed int"
5992 GS_UINT32="unsigned int"
5993 else
5994 if test $ac_cv_sizeof_long = 4; then
5995 GS_SINT32="signed long"
5996 GS_UINT32="unsigned long"
5997 else
5998 if test $ac_cv_sizeof_short = 4; then
5999 GS_SINT32="signed short"
6000 GS_UINT32="unsigned short"
6001 else
6002 { { echo "$as_me:$LINENO: error: Unable to determine type for 32-bit integer" >&5
6003 echo "$as_me: error: Unable to determine type for 32-bit integer" >&2;}
6004 { (exit 1); exit 1; }; }
6005 fi
6006 fi
6007 fi
6008
6009
6010
6011 GS_HAVE_I64=1
6012 if test $ac_cv_sizeof_int = 8; then
6013 GS_SINT64="signed int"
6014 GS_UINT64="unsigned int"
6015 else
6016 if test $ac_cv_sizeof_long = 8; then
6017 GS_SINT64="signed long"
6018 GS_UINT64="unsigned long"
6019 else
6020 if test $ac_cv_sizeof_long_long = 8; then
6021 GS_SINT64="signed long long"
6022 GS_UINT64="unsigned long long"
6023 else
6024 # 64-bit ints not supported - but we need a dummy type for byte-swapping
6025 # of 64-bit values arriving from another system.
6026 GS_SINT64="struct { gsu8 a8; }"
6027 GS_SINT64="struct { gsu8 a8; }"
6028 GS_HAVE_I64=0
6029 fi
6030 fi
6031 fi
6032
6033
6034
6035
6036 GS_HAVE_I128=1
6037 if test $ac_cv_sizeof_long = 16; then
6038 GS_SINT128="signed long"
6039 GS_UINT128="unsigned long"
6040 else
6041 if test $ac_cv_sizeof_long_long = 16; then
6042 GS_SINT128="signed long long"
6043 GS_UINT128="unsigned long long"
6044 else
6045 # 128-bit ints not supported - but we need a dummy type for byte-swapping
6046 # of 128-bit values arriving from another system.
6047 GS_SINT128="struct { gsu8 a16; }"
6048 GS_UINT128="struct { gsu8 a16; }"
6049 GS_HAVE_I128=0
6050 fi
6051 fi
6052
6053
6054
6055
6056 if test $ac_cv_sizeof_float = 4; then
6057 GS_FLT32="float"
6058 else
6059 { { echo "$as_me:$LINENO: error: Unable to determine type for 32-bit float" >&5
6060 echo "$as_me: error: Unable to determine type for 32-bit float" >&2;}
6061 { (exit 1); exit 1; }; }
6062 fi
6063
6064
6065 if test $ac_cv_sizeof_double = 8; then
6066 GS_FLT64="double"
6067 else
6068 { { echo "$as_me:$LINENO: error: Unable to determine type for 64-bit float" >&5
6069 echo "$as_me: error: Unable to determine type for 64-bit float" >&2;}
6070 { (exit 1); exit 1; }; }
6071 fi
6072
6073
6074 #--------------------------------------------------------------------
6075 # Type-size information for encoding into archives using NSArchiver etc.
6076 #--------------------------------------------------------------------
6077 if test $ac_cv_sizeof_short = 2; then
6078 _GSC_S_SHT=_GSC_I16
6079 else
6080 _GSC_S_SHT=_GSC_I32
6081 fi
6082
6083
6084 if test $ac_cv_sizeof_int = 2; then
6085 _GSC_S_INT=_GSC_I16
6086 else
6087 if test $ac_cv_sizeof_int = 4; then
6088 _GSC_S_INT=_GSC_I32
6089 else
6090 if test $ac_cv_sizeof_int = 8; then
6091 _GSC_S_INT=_GSC_I64
6092 else
6093 if test $ac_cv_sizeof_int = 16; then
6094 _GSC_S_INT=_GSC_I128
6095 fi
6096 fi
6097 fi
6098 fi
6099
6100
6101 if test $ac_cv_sizeof_long = 4; then
6102 _GSC_S_LNG=_GSC_I32
6103 else
6104 if test $ac_cv_sizeof_long = 8; then
6105 _GSC_S_LNG=_GSC_I64
6106 else
6107 if test $ac_cv_sizeof_long = 16; then
6108 _GSC_S_LNG=_GSC_I128
6109 fi
6110 fi
6111 fi
6112
6113
6114 if test $ac_cv_sizeof_long_long = 4; then
6115 _GSC_S_LNG_LNG=_GSC_I32
6116 else
6117 if test $ac_cv_sizeof_long_long = 8; then
6118 _GSC_S_LNG_LNG=_GSC_I64
6119 else
6120 if test $ac_cv_sizeof_long_long = 16; then
6121 _GSC_S_LNG_LNG=_GSC_I128
6122 fi
6123 fi
6124 fi
6125
6126
6127 #--------------------------------------------------------------------
6128 # Setup dynamic linking
6129 #--------------------------------------------------------------------
6130 #--------------------------------------------------------------------
6131 # Guess if we are using a object file format that supports automatic
6132 # loading of constructor functions.
6133 #
6134 # If this system supports autoloading of constructors, that means that gcc
6135 # doesn't have to do it for us via collect2. This routine tests for this
6136 # in a very roundabout way by compiling a program with a constructor and
6137 # testing the file, via nm, for certain symbols that collect2 includes to
6138 # handle loading of constructors.
6139 #
6140 # Makes the following substitutions:
6141 # Defines CON_AUTOLOAD (whether constructor functions are autoloaded)
6142 #--------------------------------------------------------------------
6143 echo "$as_me:$LINENO: checking loading of constructor functions" >&5
6144 echo $ECHO_N "checking loading of constructor functions... $ECHO_C" >&6
6145 if test "${objc_cv_con_autoload+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148 if test "$cross_compiling" = yes; then
6149 objc_cv_con_autoload=no
6150 else
6151 cat >conftest.$ac_ext <<_ACEOF
6152 #line $LINENO "configure"
6153 /* confdefs.h. */
6154 _ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6158 static int loaded = 0;
6159 void cons_functions() __attribute__ ((constructor));
6160 void cons_functions() { loaded = 1; }
6161 int main()
6162 {
6163 return ( (loaded == 1) ? 0 : 1);
6164 }
6165 _ACEOF
6166 rm -f conftest$ac_exeext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6168 (eval $ac_link) 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 (eval $ac_try) 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 objc_cv_con_autoload=yes
6178 else
6179 echo "$as_me: program exited with status $ac_status" >&5
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183 ( exit $ac_status )
6184 objc_cv_con_autoload=no
6185 fi
6186 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6187 fi
6188 case "$target_os" in
6189 cygwin*) objc_cv_con_autoload=yes;;
6190 esac
6191
6192 fi
6193
6194 if test $objc_cv_con_autoload = yes; then
6195 echo "$as_me:$LINENO: result: yes" >&5
6196 echo "${ECHO_T}yes" >&6
6197
6198 cat >>confdefs.h <<\_ACEOF
6199 #define CON_AUTOLOAD 1
6200 _ACEOF
6201
6202 else
6203 echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6
6205 fi
6206
6207 #--------------------------------------------------------------------
6208 # Guess the type of dynamic linker for the system
6209 #
6210 # Makes the following substitutions:
6211 # DYNAMIC_LINKER - cooresponds to the interface that is included
6212 # in objc-load.c (i.e. #include "${DYNAMIC_LINKER}-load.h")
6213 #--------------------------------------------------------------------
6214 DYNAMIC_LINKER=null
6215 if test "${ac_cv_header_dlfcn_h+set}" = set; then
6216 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6217 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
6218 if test "${ac_cv_header_dlfcn_h+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 fi
6221 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6222 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
6223 else
6224 # Is the header compilable?
6225 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
6226 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
6227 cat >conftest.$ac_ext <<_ACEOF
6228 #line $LINENO "configure"
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 $ac_includes_default
6235 #include <dlfcn.h>
6236 _ACEOF
6237 rm -f conftest.$ac_objext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6239 (eval $ac_compile) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try='test -s conftest.$ac_objext'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 ac_header_compiler=yes
6250 else
6251 echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6253
6254 ac_header_compiler=no
6255 fi
6256 rm -f conftest.$ac_objext conftest.$ac_ext
6257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6258 echo "${ECHO_T}$ac_header_compiler" >&6
6259
6260 # Is the header present?
6261 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
6262 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
6263 cat >conftest.$ac_ext <<_ACEOF
6264 #line $LINENO "configure"
6265 /* confdefs.h. */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 #include <dlfcn.h>
6271 _ACEOF
6272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } >/dev/null; then
6280 if test -s conftest.err; then
6281 ac_cpp_err=$ac_c_preproc_warn_flag
6282 else
6283 ac_cpp_err=
6284 fi
6285 else
6286 ac_cpp_err=yes
6287 fi
6288 if test -z "$ac_cpp_err"; then
6289 ac_header_preproc=yes
6290 else
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294 ac_header_preproc=no
6295 fi
6296 rm -f conftest.err conftest.$ac_ext
6297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6298 echo "${ECHO_T}$ac_header_preproc" >&6
6299
6300 # So? What about this header?
6301 case $ac_header_compiler:$ac_header_preproc in
6302 yes:no )
6303 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
6304 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6305 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
6306 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
6307 (
6308 cat <<\_ASBOX
6309 ## ------------------------------------ ##
6310 ## Report this to bug-autoconf@gnu.org. ##
6311 ## ------------------------------------ ##
6312 _ASBOX
6313 ) |
6314 sed "s/^/$as_me: WARNING: /" >&2
6315 ;;
6316 no:yes )
6317 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
6318 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
6319 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
6320 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
6321 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
6322 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
6323 (
6324 cat <<\_ASBOX
6325 ## ------------------------------------ ##
6326 ## Report this to bug-autoconf@gnu.org. ##
6327 ## ------------------------------------ ##
6328 _ASBOX
6329 ) |
6330 sed "s/^/$as_me: WARNING: /" >&2
6331 ;;
6332 esac
6333 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6334 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
6335 if test "${ac_cv_header_dlfcn_h+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338 ac_cv_header_dlfcn_h=$ac_header_preproc
6339 fi
6340 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6341 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
6342
6343 fi
6344 if test $ac_cv_header_dlfcn_h = yes; then
6345 DYNAMIC_LINKER=simple
6346 fi
6347
6348
6349 if test $DYNAMIC_LINKER = null; then
6350 if test "${ac_cv_header_dl_h+set}" = set; then
6351 echo "$as_me:$LINENO: checking for dl.h" >&5
6352 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
6353 if test "${ac_cv_header_dl_h+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 fi
6356 echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
6357 echo "${ECHO_T}$ac_cv_header_dl_h" >&6
6358 else
6359 # Is the header compilable?
6360 echo "$as_me:$LINENO: checking dl.h usability" >&5
6361 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
6362 cat >conftest.$ac_ext <<_ACEOF
6363 #line $LINENO "configure"
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 $ac_includes_default
6370 #include <dl.h>
6371 _ACEOF
6372 rm -f conftest.$ac_objext
6373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374 (eval $ac_compile) 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -s conftest.$ac_objext'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 (eval $ac_try) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 ac_header_compiler=yes
6385 else
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6388
6389 ac_header_compiler=no
6390 fi
6391 rm -f conftest.$ac_objext conftest.$ac_ext
6392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6393 echo "${ECHO_T}$ac_header_compiler" >&6
6394
6395 # Is the header present?
6396 echo "$as_me:$LINENO: checking dl.h presence" >&5
6397 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
6398 cat >conftest.$ac_ext <<_ACEOF
6399 #line $LINENO "configure"
6400 /* confdefs.h. */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 #include <dl.h>
6406 _ACEOF
6407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6409 ac_status=$?
6410 grep -v '^ *+' conftest.er1 >conftest.err
6411 rm -f conftest.er1
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } >/dev/null; then
6415 if test -s conftest.err; then
6416 ac_cpp_err=$ac_c_preproc_warn_flag
6417 else
6418 ac_cpp_err=
6419 fi
6420 else
6421 ac_cpp_err=yes
6422 fi
6423 if test -z "$ac_cpp_err"; then
6424 ac_header_preproc=yes
6425 else
6426 echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6428
6429 ac_header_preproc=no
6430 fi
6431 rm -f conftest.err conftest.$ac_ext
6432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6433 echo "${ECHO_T}$ac_header_preproc" >&6
6434
6435 # So? What about this header?
6436 case $ac_header_compiler:$ac_header_preproc in
6437 yes:no )
6438 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6439 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6440 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
6441 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
6442 (
6443 cat <<\_ASBOX
6444 ## ------------------------------------ ##
6445 ## Report this to bug-autoconf@gnu.org. ##
6446 ## ------------------------------------ ##
6447 _ASBOX
6448 ) |
6449 sed "s/^/$as_me: WARNING: /" >&2
6450 ;;
6451 no:yes )
6452 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
6453 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
6454 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
6455 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
6456 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
6457 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
6458 (
6459 cat <<\_ASBOX
6460 ## ------------------------------------ ##
6461 ## Report this to bug-autoconf@gnu.org. ##
6462 ## ------------------------------------ ##
6463 _ASBOX
6464 ) |
6465 sed "s/^/$as_me: WARNING: /" >&2
6466 ;;
6467 esac
6468 echo "$as_me:$LINENO: checking for dl.h" >&5
6469 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
6470 if test "${ac_cv_header_dl_h+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 ac_cv_header_dl_h=$ac_header_preproc
6474 fi
6475 echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
6476 echo "${ECHO_T}$ac_cv_header_dl_h" >&6
6477
6478 fi
6479 if test $ac_cv_header_dl_h = yes; then
6480 DYNAMIC_LINKER=hpux
6481 fi
6482
6483
6484 fi
6485 if test $DYNAMIC_LINKER = null; then
6486 if test "${ac_cv_header_windows_h+set}" = set; then
6487 echo "$as_me:$LINENO: checking for windows.h" >&5
6488 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
6489 if test "${ac_cv_header_windows_h+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 fi
6492 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
6493 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
6494 else
6495 # Is the header compilable?
6496 echo "$as_me:$LINENO: checking windows.h usability" >&5
6497 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
6498 cat >conftest.$ac_ext <<_ACEOF
6499 #line $LINENO "configure"
6500 /* confdefs.h. */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 $ac_includes_default
6506 #include <windows.h>
6507 _ACEOF
6508 rm -f conftest.$ac_objext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510 (eval $ac_compile) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 ac_header_compiler=yes
6521 else
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 ac_header_compiler=no
6526 fi
6527 rm -f conftest.$ac_objext conftest.$ac_ext
6528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6529 echo "${ECHO_T}$ac_header_compiler" >&6
6530
6531 # Is the header present?
6532 echo "$as_me:$LINENO: checking windows.h presence" >&5
6533 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
6534 cat >conftest.$ac_ext <<_ACEOF
6535 #line $LINENO "configure"
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 #include <windows.h>
6542 _ACEOF
6543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } >/dev/null; then
6551 if test -s conftest.err; then
6552 ac_cpp_err=$ac_c_preproc_warn_flag
6553 else
6554 ac_cpp_err=
6555 fi
6556 else
6557 ac_cpp_err=yes
6558 fi
6559 if test -z "$ac_cpp_err"; then
6560 ac_header_preproc=yes
6561 else
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6564
6565 ac_header_preproc=no
6566 fi
6567 rm -f conftest.err conftest.$ac_ext
6568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6569 echo "${ECHO_T}$ac_header_preproc" >&6
6570
6571 # So? What about this header?
6572 case $ac_header_compiler:$ac_header_preproc in
6573 yes:no )
6574 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
6575 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
6577 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
6578 (
6579 cat <<\_ASBOX
6580 ## ------------------------------------ ##
6581 ## Report this to bug-autoconf@gnu.org. ##
6582 ## ------------------------------------ ##
6583 _ASBOX
6584 ) |
6585 sed "s/^/$as_me: WARNING: /" >&2
6586 ;;
6587 no:yes )
6588 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
6589 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
6590 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
6591 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
6592 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
6593 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
6594 (
6595 cat <<\_ASBOX
6596 ## ------------------------------------ ##
6597 ## Report this to bug-autoconf@gnu.org. ##
6598 ## ------------------------------------ ##
6599 _ASBOX
6600 ) |
6601 sed "s/^/$as_me: WARNING: /" >&2
6602 ;;
6603 esac
6604 echo "$as_me:$LINENO: checking for windows.h" >&5
6605 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
6606 if test "${ac_cv_header_windows_h+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609 ac_cv_header_windows_h=$ac_header_preproc
6610 fi
6611 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
6612 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
6613
6614 fi
6615 if test $ac_cv_header_windows_h = yes; then
6616 DYNAMIC_LINKER=win32
6617 fi
6618
6619
6620 fi
6621 if test $DYNAMIC_LINKER = null; then
6622 if test "${ac_cv_header_dld_defs_h+set}" = set; then
6623 echo "$as_me:$LINENO: checking for dld/defs.h" >&5
6624 echo $ECHO_N "checking for dld/defs.h... $ECHO_C" >&6
6625 if test "${ac_cv_header_dld_defs_h+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 fi
6628 echo "$as_me:$LINENO: result: $ac_cv_header_dld_defs_h" >&5
6629 echo "${ECHO_T}$ac_cv_header_dld_defs_h" >&6
6630 else
6631 # Is the header compilable?
6632 echo "$as_me:$LINENO: checking dld/defs.h usability" >&5
6633 echo $ECHO_N "checking dld/defs.h usability... $ECHO_C" >&6
6634 cat >conftest.$ac_ext <<_ACEOF
6635 #line $LINENO "configure"
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 $ac_includes_default
6642 #include <dld/defs.h>
6643 _ACEOF
6644 rm -f conftest.$ac_objext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646 (eval $ac_compile) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_header_compiler=yes
6657 else
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 ac_header_compiler=no
6662 fi
6663 rm -f conftest.$ac_objext conftest.$ac_ext
6664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665 echo "${ECHO_T}$ac_header_compiler" >&6
6666
6667 # Is the header present?
6668 echo "$as_me:$LINENO: checking dld/defs.h presence" >&5
6669 echo $ECHO_N "checking dld/defs.h presence... $ECHO_C" >&6
6670 cat >conftest.$ac_ext <<_ACEOF
6671 #line $LINENO "configure"
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <dld/defs.h>
6678 _ACEOF
6679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } >/dev/null; then
6687 if test -s conftest.err; then
6688 ac_cpp_err=$ac_c_preproc_warn_flag
6689 else
6690 ac_cpp_err=
6691 fi
6692 else
6693 ac_cpp_err=yes
6694 fi
6695 if test -z "$ac_cpp_err"; then
6696 ac_header_preproc=yes
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701 ac_header_preproc=no
6702 fi
6703 rm -f conftest.err conftest.$ac_ext
6704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705 echo "${ECHO_T}$ac_header_preproc" >&6
6706
6707 # So? What about this header?
6708 case $ac_header_compiler:$ac_header_preproc in
6709 yes:no )
6710 { echo "$as_me:$LINENO: WARNING: dld/defs.h: accepted by the compiler, rejected by the preprocessor!" >&5
6711 echo "$as_me: WARNING: dld/defs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: dld/defs.h: proceeding with the preprocessor's result" >&5
6713 echo "$as_me: WARNING: dld/defs.h: proceeding with the preprocessor's result" >&2;}
6714 (
6715 cat <<\_ASBOX
6716 ## ------------------------------------ ##
6717 ## Report this to bug-autoconf@gnu.org. ##
6718 ## ------------------------------------ ##
6719 _ASBOX
6720 ) |
6721 sed "s/^/$as_me: WARNING: /" >&2
6722 ;;
6723 no:yes )
6724 { echo "$as_me:$LINENO: WARNING: dld/defs.h: present but cannot be compiled" >&5
6725 echo "$as_me: WARNING: dld/defs.h: present but cannot be compiled" >&2;}
6726 { echo "$as_me:$LINENO: WARNING: dld/defs.h: check for missing prerequisite headers?" >&5
6727 echo "$as_me: WARNING: dld/defs.h: check for missing prerequisite headers?" >&2;}
6728 { echo "$as_me:$LINENO: WARNING: dld/defs.h: proceeding with the preprocessor's result" >&5
6729 echo "$as_me: WARNING: dld/defs.h: proceeding with the preprocessor's result" >&2;}
6730 (
6731 cat <<\_ASBOX
6732 ## ------------------------------------ ##
6733 ## Report this to bug-autoconf@gnu.org. ##
6734 ## ------------------------------------ ##
6735 _ASBOX
6736 ) |
6737 sed "s/^/$as_me: WARNING: /" >&2
6738 ;;
6739 esac
6740 echo "$as_me:$LINENO: checking for dld/defs.h" >&5
6741 echo $ECHO_N "checking for dld/defs.h... $ECHO_C" >&6
6742 if test "${ac_cv_header_dld_defs_h+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745 ac_cv_header_dld_defs_h=$ac_header_preproc
6746 fi
6747 echo "$as_me:$LINENO: result: $ac_cv_header_dld_defs_h" >&5
6748 echo "${ECHO_T}$ac_cv_header_dld_defs_h" >&6
6749
6750 fi
6751 if test $ac_cv_header_dld_defs_h = yes; then
6752 DYNAMIC_LINKER=dld
6753 fi
6754
6755
6756 fi
6757
6758 # NB: This is used as follows: in Source/Makefile.postamble we copy
6759 # $(DYNAMIC_LINKER)-load.h into dynamic-load.h
6760 echo "$as_me:$LINENO: checking for dynamic linker type" >&5
6761 echo $ECHO_N "checking for dynamic linker type... $ECHO_C" >&6
6762 echo "$as_me:$LINENO: result: $DYNAMIC_LINKER" >&5
6763 echo "${ECHO_T}$DYNAMIC_LINKER" >&6
6764
6765 if test $DYNAMIC_LINKER = simple; then
6766
6767 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
6768 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
6769 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 ac_check_lib_save_LIBS=$LIBS
6773 LIBS="-ldl $LIBS"
6774 cat >conftest.$ac_ext <<_ACEOF
6775 #line $LINENO "configure"
6776 /* confdefs.h. */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781
6782 /* Override any gcc2 internal prototype to avoid an error. */
6783 #ifdef __cplusplus
6784 extern "C"
6785 #endif
6786 /* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */
6788 char dladdr ();
6789 int
6790 main ()
6791 {
6792 dladdr ();
6793 ;
6794 return 0;
6795 }
6796 _ACEOF
6797 rm -f conftest.$ac_objext conftest$ac_exeext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6799 (eval $ac_link) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
6803 { ac_try='test -s conftest$ac_exeext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_cv_lib_dl_dladdr=yes
6810 else
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 ac_cv_lib_dl_dladdr=no
6815 fi
6816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6817 LIBS=$ac_check_lib_save_LIBS
6818 fi
6819 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
6820 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
6821 if test $ac_cv_lib_dl_dladdr = yes; then
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_LIBDL 1
6824 _ACEOF
6825
6826 LIBS="-ldl $LIBS"
6827
6828 fi
6829
6830 fi
6831
6832
6833
6834 #--------------------------------------------------------------------
6835 # Check whether Objective-C /really/ works
6836 #--------------------------------------------------------------------
6837 echo "$as_me:$LINENO: checking whether objc really works" >&5
6838 echo $ECHO_N "checking whether objc really works... $ECHO_C" >&6
6839 saved_LIBS="$LIBS"
6840 saved_CPPFLAGS="$CPPFLAGS"
6841 LIBS="$LIBS $LIBOBJC"
6842 CPPFLAGS="$CPPFLAGS -x objective-c"
6843 if test x"$objc_threaded" != x""; then
6844 LIBS="$LIBS $objc_threaded"
6845 fi
6846 LIBS="$LIBS $extra_LIBS"
6847 if test "${objc_works+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850 if test "$cross_compiling" = yes; then
6851 objc_works=yes
6852 else
6853 cat >conftest.$ac_ext <<_ACEOF
6854 #line $LINENO "configure"
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include "$srcdir/config/config.objc.m"
6861 _ACEOF
6862 rm -f conftest$ac_exeext
6863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6864 (eval $ac_link) 2>&5
6865 ac_status=$?
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6873 objc_works=yes
6874 else
6875 echo "$as_me: program exited with status $ac_status" >&5
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6878
6879 ( exit $ac_status )
6880 objc_works=no
6881 fi
6882 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6883 fi
6884
6885 fi
6886
6887 if test $objc_works = yes; then
6888 echo "$as_me:$LINENO: result: yes" >&5
6889 echo "${ECHO_T}yes" >&6
6890 else
6891 echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6
6893 echo "I don't seem to be able to use your Objective-C compiler to produce"
6894 echo "working binaries! Please check your Objective-C compiler installation."
6895 echo "If you are using gcc-3.x make sure that your compiler's libgcc_s and libobjc"
6896 echo "can be found by the dynamic linker - usually that requires you to play"
6897 echo "with LD_LIBRARY_PATH or /etc/ld.so.conf."
6898 echo "Please refer to your compiler installation instructions for more help."
6899 { { echo "$as_me:$LINENO: error: The Objective-C compiler doesn't work or is not installed properly." >&5
6900 echo "$as_me: error: The Objective-C compiler doesn't work or is not installed properly." >&2;}
6901 { (exit 1); exit 1; }; }
6902 fi
6903
6904 # Don't revert any Objective-C flags as they are used in the next test
6905
6906 #---------------------------------------------------------------------
6907 # Guess if we are using a compiler which allows us to change the class
6908 # to be used for constant strings by using the -fconstant-string-class
6909 # option. If that is the case, we change it to NSConstantString.
6910 #---------------------------------------------------------------------
6911 CPPFLAGS="$CPPFLAGS -fconstant-string-class=FooConstantString"
6912 echo "$as_me:$LINENO: checking if the compiler supports -fconstant-string-class" >&5
6913 echo $ECHO_N "checking if the compiler supports -fconstant-string-class... $ECHO_C" >&6
6914 if test "${objc_compiler_supports_constant_string_class+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 if test "$cross_compiling" = yes; then
6918 objc_compiler_supports_constant_string_class=no
6919 else
6920 cat >conftest.$ac_ext <<_ACEOF
6921 #line $LINENO "configure"
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 #include "$srcdir/config/config.constant-string-class.m"
6928 _ACEOF
6929 rm -f conftest$ac_exeext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931 (eval $ac_link) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 (eval $ac_try) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; }; then
6940 objc_compiler_supports_constant_string_class=yes
6941 else
6942 echo "$as_me: program exited with status $ac_status" >&5
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946 ( exit $ac_status )
6947 objc_compiler_supports_constant_string_class=no
6948 fi
6949 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6950 fi
6951
6952 fi
6953
6954 if test $objc_compiler_supports_constant_string_class = yes; then
6955 NX_CONST_STRING_OBJCFLAGS="-fconstant-string-class=NSConstantString"
6956 NX_CONST_STRING_CLASS=NSConstantString
6957 echo "$as_me:$LINENO: result: yes" >&5
6958 echo "${ECHO_T}yes" >&6
6959 else
6960 NX_CONST_STRING_OBJCFLAGS=""
6961 NX_CONST_STRING_CLASS=NXConstantString
6962 echo "$as_me:$LINENO: result: no" >&5
6963 echo "${ECHO_T}no" >&6
6964 fi
6965
6966
6967
6968
6969 CPPFLAGS="$saved_CPPFLAGS"
6970 # Don't revert LIBS, need it for the next test
6971
6972 #---------------------------------------------------------------------
6973 # Guess if we are using a compiler which has the (GNU extension) +load
6974 # method which is executed before main.
6975 # Defines HAVE_LOAD_METHOD if +load methods are called before main.
6976 # Needed by NSProcessInfo.m
6977 #---------------------------------------------------------------------
6978 saved_CPPFLAGS="$CPPFLAGS"
6979 CPPFLAGS="$CPPFLAGS -x objective-c"
6980 echo "$as_me:$LINENO: checking if +load method is executed before main" >&5
6981 echo $ECHO_N "checking if +load method is executed before main... $ECHO_C" >&6
6982 if test "${objc_load_method_worked+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 if test "$cross_compiling" = yes; then
6986 objc_load_method_worked=no
6987 else
6988 cat >conftest.$ac_ext <<_ACEOF
6989 #line $LINENO "configure"
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 #include "$srcdir/config/config.loadtest.m"
6996 _ACEOF
6997 rm -f conftest$ac_exeext
6998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6999 (eval $ac_link) 2>&5
7000 ac_status=$?
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 (eval $ac_try) 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; }; then
7008 objc_load_method_worked=yes
7009 else
7010 echo "$as_me: program exited with status $ac_status" >&5
7011 echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7013
7014 ( exit $ac_status )
7015 objc_load_method_worked=no
7016 fi
7017 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7018 fi
7019
7020 fi
7021
7022 if test $objc_load_method_worked = yes; then
7023
7024 cat >>confdefs.h <<\_ACEOF
7025 #define HAVE_LOAD_METHOD 1
7026 _ACEOF
7027
7028 echo "$as_me:$LINENO: result: yes" >&5
7029 echo "${ECHO_T}yes" >&6
7030 else
7031 echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6
7033 fi
7034
7035 CPPFLAGS="$saved_CPPFLAGS"
7036 # Don't revert LIBS, need it for the next test
7037
7038 #--------------------------------------------------------------------
7039 # This function needed by NSLock.m for conditioned wait
7040 # get_uninstalled_dtable used by behavior.m and objc-load.m
7041 # Thread functions used by NSThread
7042 #--------------------------------------------------------------------
7043
7044
7045 for ac_func in objc_condition_timedwait objc_thread_add
7046 do
7047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7048 echo "$as_me:$LINENO: checking for $ac_func" >&5
7049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7050 if eval "test \"\${$as_ac_var+set}\" = set"; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053 cat >conftest.$ac_ext <<_ACEOF
7054 #line $LINENO "configure"
7055 /* confdefs.h. */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 /* System header to define __stub macros and hopefully few prototypes,
7061 which can conflict with char $ac_func (); below.
7062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7063 <limits.h> exists even on freestanding compilers. */
7064 #ifdef __STDC__
7065 # include <limits.h>
7066 #else
7067 # include <assert.h>
7068 #endif
7069 /* Override any gcc2 internal prototype to avoid an error. */
7070 #ifdef __cplusplus
7071 extern "C"
7072 {
7073 #endif
7074 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7076 char $ac_func ();
7077 /* The GNU C library defines this for functions which it implements
7078 to always fail with ENOSYS. Some functions are actually named
7079 something starting with __ and the normal name is an alias. */
7080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7081 choke me
7082 #else
7083 char (*f) () = $ac_func;
7084 #endif
7085 #ifdef __cplusplus
7086 }
7087 #endif
7088
7089 int
7090 main ()
7091 {
7092 return f != $ac_func;
7093 ;
7094 return 0;
7095 }
7096 _ACEOF
7097 rm -f conftest.$ac_objext conftest$ac_exeext
7098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7099 (eval $ac_link) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } &&
7103 { ac_try='test -s conftest$ac_exeext'
7104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 (eval $ac_try) 2>&5
7106 ac_status=$?
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; }; then
7109 eval "$as_ac_var=yes"
7110 else
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7113
7114 eval "$as_ac_var=no"
7115 fi
7116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7117 fi
7118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7120 if test `eval echo '${'$as_ac_var'}'` = yes; then
7121 cat >>confdefs.h <<_ACEOF
7122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7123 _ACEOF
7124
7125 fi
7126 done
7127
7128
7129 cat >conftest.$ac_ext <<_ACEOF
7130 #line $LINENO "configure"
7131 /* confdefs.h. */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 #include <objc/objc-api.h>
7137
7138 _ACEOF
7139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140 $EGREP "objc_get_uninstalled_dtable" >/dev/null 2>&1; then
7141
7142 cat >>confdefs.h <<\_ACEOF
7143 #define HAVE_OBJC_GET_UNINSTALLED_DTABLE 1
7144 _ACEOF
7145
7146 fi
7147 rm -f conftest*
7148
7149
7150 LIBS="$saved_LIBS"
7151
7152 #--------------------------------------------------------------------
7153 # Generic settings needed by NSZone.m
7154 #--------------------------------------------------------------------
7155 echo "$as_me:$LINENO: checking for size_t" >&5
7156 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7157 if test "${ac_cv_type_size_t+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160 cat >conftest.$ac_ext <<_ACEOF
7161 #line $LINENO "configure"
7162 /* confdefs.h. */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7167 $ac_includes_default
7168 int
7169 main ()
7170 {
7171 if ((size_t *) 0)
7172 return 0;
7173 if (sizeof (size_t))
7174 return 0;
7175 ;
7176 return 0;
7177 }
7178 _ACEOF
7179 rm -f conftest.$ac_objext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7181 (eval $ac_compile) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 (eval $ac_try) 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 ac_cv_type_size_t=yes
7192 else
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7195
7196 ac_cv_type_size_t=no
7197 fi
7198 rm -f conftest.$ac_objext conftest.$ac_ext
7199 fi
7200 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7201 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7202 if test $ac_cv_type_size_t = yes; then
7203 :
7204 else
7205
7206 cat >>confdefs.h <<_ACEOF
7207 #define size_t unsigned
7208 _ACEOF
7209
7210 fi
7211
7212 echo "$as_me:$LINENO: checking for inline" >&5
7213 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7214 if test "${ac_cv_c_inline+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217 ac_cv_c_inline=no
7218 for ac_kw in inline __inline__ __inline; do
7219 cat >conftest.$ac_ext <<_ACEOF
7220 #line $LINENO "configure"
7221 /* confdefs.h. */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 #ifndef __cplusplus
7227 typedef int foo_t;
7228 static $ac_kw foo_t static_foo () {return 0; }
7229 $ac_kw foo_t foo () {return 0; }
7230 #endif
7231
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7235 (eval $ac_compile) 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } &&
7239 { ac_try='test -s conftest.$ac_objext'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 (eval $ac_try) 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 ac_cv_c_inline=$ac_kw; break
7246 else
7247 echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7249
7250 fi
7251 rm -f conftest.$ac_objext conftest.$ac_ext
7252 done
7253
7254 fi
7255 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7256 echo "${ECHO_T}$ac_cv_c_inline" >&6
7257 case $ac_cv_c_inline in
7258 inline | yes) ;;
7259 no)
7260 cat >>confdefs.h <<\_ACEOF
7261 #define inline
7262 _ACEOF
7263 ;;
7264 *) cat >>confdefs.h <<_ACEOF
7265 #define inline $ac_cv_c_inline
7266 _ACEOF
7267 ;;
7268 esac
7269
7270
7271 #--------------------------------------------------------------------
7272 # Following header checks needed for bzero in Storage.m and other places
7273 #--------------------------------------------------------------------
7274 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7275 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7276 if test "${ac_cv_header_stdc+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279 cat >conftest.$ac_ext <<_ACEOF
7280 #line $LINENO "configure"
7281 /* confdefs.h. */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7286 #include <stdlib.h>
7287 #include <stdarg.h>
7288 #include <string.h>
7289 #include <float.h>
7290
7291 int
7292 main ()
7293 {
7294
7295 ;
7296 return 0;
7297 }
7298 _ACEOF
7299 rm -f conftest.$ac_objext
7300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7301 (eval $ac_compile) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_cv_header_stdc=yes
7312 else
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316 ac_cv_header_stdc=no
7317 fi
7318 rm -f conftest.$ac_objext conftest.$ac_ext
7319
7320 if test $ac_cv_header_stdc = yes; then
7321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7322 cat >conftest.$ac_ext <<_ACEOF
7323 #line $LINENO "configure"
7324 /* confdefs.h. */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <string.h>
7330
7331 _ACEOF
7332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7333 $EGREP "memchr" >/dev/null 2>&1; then
7334 :
7335 else
7336 ac_cv_header_stdc=no
7337 fi
7338 rm -f conftest*
7339
7340 fi
7341
7342 if test $ac_cv_header_stdc = yes; then
7343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7344 cat >conftest.$ac_ext <<_ACEOF
7345 #line $LINENO "configure"
7346 /* confdefs.h. */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h. */
7351 #include <stdlib.h>
7352
7353 _ACEOF
7354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7355 $EGREP "free" >/dev/null 2>&1; then
7356 :
7357 else
7358 ac_cv_header_stdc=no
7359 fi
7360 rm -f conftest*
7361
7362 fi
7363
7364 if test $ac_cv_header_stdc = yes; then
7365 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7366 if test "$cross_compiling" = yes; then
7367 :
7368 else
7369 cat >conftest.$ac_ext <<_ACEOF
7370 #line $LINENO "configure"
7371 /* confdefs.h. */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 #include <ctype.h>
7377 #if ((' ' & 0x0FF) == 0x020)
7378 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7379 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7380 #else
7381 # define ISLOWER(c) \
7382 (('a' <= (c) && (c) <= 'i') \
7383 || ('j' <= (c) && (c) <= 'r') \
7384 || ('s' <= (c) && (c) <= 'z'))
7385 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7386 #endif
7387
7388 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7389 int
7390 main ()
7391 {
7392 int i;
7393 for (i = 0; i < 256; i++)
7394 if (XOR (islower (i), ISLOWER (i))
7395 || toupper (i) != TOUPPER (i))
7396 exit(2);
7397 exit (0);
7398 }
7399 _ACEOF
7400 rm -f conftest$ac_exeext
7401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7402 (eval $ac_link) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 :
7412 else
7413 echo "$as_me: program exited with status $ac_status" >&5
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417 ( exit $ac_status )
7418 ac_cv_header_stdc=no
7419 fi
7420 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7421 fi
7422 fi
7423 fi
7424 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7425 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7426 if test $ac_cv_header_stdc = yes; then
7427
7428 cat >>confdefs.h <<\_ACEOF
7429 #define STDC_HEADERS 1
7430 _ACEOF
7431
7432 fi
7433
7434
7435
7436 for ac_header in string.h memory.h
7437 do
7438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7440 echo "$as_me:$LINENO: checking for $ac_header" >&5
7441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 fi
7445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7447 else
7448 # Is the header compilable?
7449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7451 cat >conftest.$ac_ext <<_ACEOF
7452 #line $LINENO "configure"
7453 /* confdefs.h. */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 $ac_includes_default
7459 #include <$ac_header>
7460 _ACEOF
7461 rm -f conftest.$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>&5
7464 ac_status=$?
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try='test -s conftest.$ac_objext'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 (eval $ac_try) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 ac_header_compiler=yes
7474 else
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7477
7478 ac_header_compiler=no
7479 fi
7480 rm -f conftest.$ac_objext conftest.$ac_ext
7481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7482 echo "${ECHO_T}$ac_header_compiler" >&6
7483
7484 # Is the header present?
7485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7487 cat >conftest.$ac_ext <<_ACEOF
7488 #line $LINENO "configure"
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 #include <$ac_header>
7495 _ACEOF
7496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } >/dev/null; then
7504 if test -s conftest.err; then
7505 ac_cpp_err=$ac_c_preproc_warn_flag
7506 else
7507 ac_cpp_err=
7508 fi
7509 else
7510 ac_cpp_err=yes
7511 fi
7512 if test -z "$ac_cpp_err"; then
7513 ac_header_preproc=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7517
7518 ac_header_preproc=no
7519 fi
7520 rm -f conftest.err conftest.$ac_ext
7521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7522 echo "${ECHO_T}$ac_header_preproc" >&6
7523
7524 # So? What about this header?
7525 case $ac_header_compiler:$ac_header_preproc in
7526 yes:no )
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7531 (
7532 cat <<\_ASBOX
7533 ## ------------------------------------ ##
7534 ## Report this to bug-autoconf@gnu.org. ##
7535 ## ------------------------------------ ##
7536 _ASBOX
7537 ) |
7538 sed "s/^/$as_me: WARNING: /" >&2
7539 ;;
7540 no:yes )
7541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7547 (
7548 cat <<\_ASBOX
7549 ## ------------------------------------ ##
7550 ## Report this to bug-autoconf@gnu.org. ##
7551 ## ------------------------------------ ##
7552 _ASBOX
7553 ) |
7554 sed "s/^/$as_me: WARNING: /" >&2
7555 ;;
7556 esac
7557 echo "$as_me:$LINENO: checking for $ac_header" >&5
7558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 eval "$as_ac_Header=$ac_header_preproc"
7563 fi
7564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7566
7567 fi
7568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7569 cat >>confdefs.h <<_ACEOF
7570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7571 _ACEOF
7572
7573 fi
7574
7575 done
7576
7577
7578 #--------------------------------------------------------------------
7579 # Following header check needed NSConnection.h
7580 #--------------------------------------------------------------------
7581
7582 for ac_header in float.h
7583 do
7584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7586 echo "$as_me:$LINENO: checking for $ac_header" >&5
7587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 fi
7591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7593 else
7594 # Is the header compilable?
7595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7597 cat >conftest.$ac_ext <<_ACEOF
7598 #line $LINENO "configure"
7599 /* confdefs.h. */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 $ac_includes_default
7605 #include <$ac_header>
7606 _ACEOF
7607 rm -f conftest.$ac_objext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7609 (eval $ac_compile) 2>&5
7610 ac_status=$?
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -s conftest.$ac_objext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 ac_header_compiler=yes
7620 else
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7623
7624 ac_header_compiler=no
7625 fi
7626 rm -f conftest.$ac_objext conftest.$ac_ext
7627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7628 echo "${ECHO_T}$ac_header_compiler" >&6
7629
7630 # Is the header present?
7631 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7633 cat >conftest.$ac_ext <<_ACEOF
7634 #line $LINENO "configure"
7635 /* confdefs.h. */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 #include <$ac_header>
7641 _ACEOF
7642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } >/dev/null; then
7650 if test -s conftest.err; then
7651 ac_cpp_err=$ac_c_preproc_warn_flag
7652 else
7653 ac_cpp_err=
7654 fi
7655 else
7656 ac_cpp_err=yes
7657 fi
7658 if test -z "$ac_cpp_err"; then
7659 ac_header_preproc=yes
7660 else
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 ac_header_preproc=no
7665 fi
7666 rm -f conftest.err conftest.$ac_ext
7667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7668 echo "${ECHO_T}$ac_header_preproc" >&6
7669
7670 # So? What about this header?
7671 case $ac_header_compiler:$ac_header_preproc in
7672 yes:no )
7673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7677 (
7678 cat <<\_ASBOX
7679 ## ------------------------------------ ##
7680 ## Report this to bug-autoconf@gnu.org. ##
7681 ## ------------------------------------ ##
7682 _ASBOX
7683 ) |
7684 sed "s/^/$as_me: WARNING: /" >&2
7685 ;;
7686 no:yes )
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7693 (
7694 cat <<\_ASBOX
7695 ## ------------------------------------ ##
7696 ## Report this to bug-autoconf@gnu.org. ##
7697 ## ------------------------------------ ##
7698 _ASBOX
7699 ) |
7700 sed "s/^/$as_me: WARNING: /" >&2
7701 ;;
7702 esac
7703 echo "$as_me:$LINENO: checking for $ac_header" >&5
7704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708 eval "$as_ac_Header=$ac_header_preproc"
7709 fi
7710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7712
7713 fi
7714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7715 cat >>confdefs.h <<_ACEOF
7716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7717 _ACEOF
7718
7719 fi
7720
7721 done
7722
7723
7724 #--------------------------------------------------------------------
7725 # Header files and functions for files and filesystems
7726 #--------------------------------------------------------------------
7727
7728
7729
7730
7731
7732
7733 for ac_header in sys/stat.h sys/vfs.h sys/statfs.h sys/statvfs.h pwd.h grp.h
7734 do
7735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7737 echo "$as_me:$LINENO: checking for $ac_header" >&5
7738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 fi
7742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7744 else
7745 # Is the header compilable?
7746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7748 cat >conftest.$ac_ext <<_ACEOF
7749 #line $LINENO "configure"
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7756 #include <$ac_header>
7757 _ACEOF
7758 rm -f conftest.$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_header_compiler=yes
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7774
7775 ac_header_compiler=no
7776 fi
7777 rm -f conftest.$ac_objext conftest.$ac_ext
7778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7779 echo "${ECHO_T}$ac_header_compiler" >&6
7780
7781 # Is the header present?
7782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7784 cat >conftest.$ac_ext <<_ACEOF
7785 #line $LINENO "configure"
7786 /* confdefs.h. */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 #include <$ac_header>
7792 _ACEOF
7793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7795 ac_status=$?
7796 grep -v '^ *+' conftest.er1 >conftest.err
7797 rm -f conftest.er1
7798 cat conftest.err >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } >/dev/null; then
7801 if test -s conftest.err; then
7802 ac_cpp_err=$ac_c_preproc_warn_flag
7803 else
7804 ac_cpp_err=
7805 fi
7806 else
7807 ac_cpp_err=yes
7808 fi
7809 if test -z "$ac_cpp_err"; then
7810 ac_header_preproc=yes
7811 else
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7814
7815 ac_header_preproc=no
7816 fi
7817 rm -f conftest.err conftest.$ac_ext
7818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7819 echo "${ECHO_T}$ac_header_preproc" >&6
7820
7821 # So? What about this header?
7822 case $ac_header_compiler:$ac_header_preproc in
7823 yes:no )
7824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7828 (
7829 cat <<\_ASBOX
7830 ## ------------------------------------ ##
7831 ## Report this to bug-autoconf@gnu.org. ##
7832 ## ------------------------------------ ##
7833 _ASBOX
7834 ) |
7835 sed "s/^/$as_me: WARNING: /" >&2
7836 ;;
7837 no:yes )
7838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7844 (
7845 cat <<\_ASBOX
7846 ## ------------------------------------ ##
7847 ## Report this to bug-autoconf@gnu.org. ##
7848 ## ------------------------------------ ##
7849 _ASBOX
7850 ) |
7851 sed "s/^/$as_me: WARNING: /" >&2
7852 ;;
7853 esac
7854 echo "$as_me:$LINENO: checking for $ac_header" >&5
7855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859 eval "$as_ac_Header=$ac_header_preproc"
7860 fi
7861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7863
7864 fi
7865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7866 cat >>confdefs.h <<_ACEOF
7867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7868 _ACEOF
7869
7870 fi
7871
7872 done
7873
7874
7875
7876
7877
7878
7879 for ac_header in sys/mount.h sys/types.h windows.h locale.h langinfo.h
7880 do
7881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7883 echo "$as_me:$LINENO: checking for $ac_header" >&5
7884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 fi
7888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7890 else
7891 # Is the header compilable?
7892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7894 cat >conftest.$ac_ext <<_ACEOF
7895 #line $LINENO "configure"
7896 /* confdefs.h. */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7901 $ac_includes_default
7902 #include <$ac_header>
7903 _ACEOF
7904 rm -f conftest.$ac_objext
7905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7906 (eval $ac_compile) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -s conftest.$ac_objext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_header_compiler=yes
7917 else
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7920
7921 ac_header_compiler=no
7922 fi
7923 rm -f conftest.$ac_objext conftest.$ac_ext
7924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7925 echo "${ECHO_T}$ac_header_compiler" >&6
7926
7927 # Is the header present?
7928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7930 cat >conftest.$ac_ext <<_ACEOF
7931 #line $LINENO "configure"
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 #include <$ac_header>
7938 _ACEOF
7939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7941 ac_status=$?
7942 grep -v '^ *+' conftest.er1 >conftest.err
7943 rm -f conftest.er1
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } >/dev/null; then
7947 if test -s conftest.err; then
7948 ac_cpp_err=$ac_c_preproc_warn_flag
7949 else
7950 ac_cpp_err=
7951 fi
7952 else
7953 ac_cpp_err=yes
7954 fi
7955 if test -z "$ac_cpp_err"; then
7956 ac_header_preproc=yes
7957 else
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7960
7961 ac_header_preproc=no
7962 fi
7963 rm -f conftest.err conftest.$ac_ext
7964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7965 echo "${ECHO_T}$ac_header_preproc" >&6
7966
7967 # So? What about this header?
7968 case $ac_header_compiler:$ac_header_preproc in
7969 yes:no )
7970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7974 (
7975 cat <<\_ASBOX
7976 ## ------------------------------------ ##
7977 ## Report this to bug-autoconf@gnu.org. ##
7978 ## ------------------------------------ ##
7979 _ASBOX
7980 ) |
7981 sed "s/^/$as_me: WARNING: /" >&2
7982 ;;
7983 no:yes )
7984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7990 (
7991 cat <<\_ASBOX
7992 ## ------------------------------------ ##
7993 ## Report this to bug-autoconf@gnu.org. ##
7994 ## ------------------------------------ ##
7995 _ASBOX
7996 ) |
7997 sed "s/^/$as_me: WARNING: /" >&2
7998 ;;
7999 esac
8000 echo "$as_me:$LINENO: checking for $ac_header" >&5
8001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005 eval "$as_ac_Header=$ac_header_preproc"
8006 fi
8007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8009
8010 fi
8011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8012 cat >>confdefs.h <<_ACEOF
8013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8014 _ACEOF
8015
8016 fi
8017
8018 done
8019
8020 saved_LIBS="$LIBS"
8021
8022 echo "$as_me:$LINENO: checking for main in -lm" >&5
8023 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8024 if test "${ac_cv_lib_m_main+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027 ac_check_lib_save_LIBS=$LIBS
8028 LIBS="-lm $LIBS"
8029 cat >conftest.$ac_ext <<_ACEOF
8030 #line $LINENO "configure"
8031 /* confdefs.h. */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036
8037
8038 int
8039 main ()
8040 {
8041 main ();
8042 ;
8043 return 0;
8044 }
8045 _ACEOF
8046 rm -f conftest.$ac_objext conftest$ac_exeext
8047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8048 (eval $ac_link) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -s conftest$ac_exeext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 ac_cv_lib_m_main=yes
8059 else
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 ac_cv_lib_m_main=no
8064 fi
8065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8066 LIBS=$ac_check_lib_save_LIBS
8067 fi
8068 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8069 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8070 if test $ac_cv_lib_m_main = yes; then
8071 cat >>confdefs.h <<_ACEOF
8072 #define HAVE_LIBM 1
8073 _ACEOF
8074
8075 LIBS="-lm $LIBS"
8076
8077 fi
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090 for ac_func in statvfs link symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint getopt
8091 do
8092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8093 echo "$as_me:$LINENO: checking for $ac_func" >&5
8094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8095 if eval "test \"\${$as_ac_var+set}\" = set"; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098 cat >conftest.$ac_ext <<_ACEOF
8099 #line $LINENO "configure"
8100 /* confdefs.h. */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8105 /* System header to define __stub macros and hopefully few prototypes,
8106 which can conflict with char $ac_func (); below.
8107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8108 <limits.h> exists even on freestanding compilers. */
8109 #ifdef __STDC__
8110 # include <limits.h>
8111 #else
8112 # include <assert.h>
8113 #endif
8114 /* Override any gcc2 internal prototype to avoid an error. */
8115 #ifdef __cplusplus
8116 extern "C"
8117 {
8118 #endif
8119 /* We use char because int might match the return type of a gcc2
8120 builtin and then its argument prototype would still apply. */
8121 char $ac_func ();
8122 /* The GNU C library defines this for functions which it implements
8123 to always fail with ENOSYS. Some functions are actually named
8124 something starting with __ and the normal name is an alias. */
8125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8126 choke me
8127 #else
8128 char (*f) () = $ac_func;
8129 #endif
8130 #ifdef __cplusplus
8131 }
8132 #endif
8133
8134 int
8135 main ()
8136 {
8137 return f != $ac_func;
8138 ;
8139 return 0;
8140 }
8141 _ACEOF
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8144 (eval $ac_link) 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } &&
8148 { ac_try='test -s conftest$ac_exeext'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 (eval $ac_try) 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; }; then
8154 eval "$as_ac_var=yes"
8155 else
8156 echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8158
8159 eval "$as_ac_var=no"
8160 fi
8161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8162 fi
8163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8165 if test `eval echo '${'$as_ac_var'}'` = yes; then
8166 cat >>confdefs.h <<_ACEOF
8167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8168 _ACEOF
8169
8170 fi
8171 done
8172
8173 LIBS="$saved_LIBS"
8174
8175 #--------------------------------------------------------------------
8176 # These two headers (functions) needed by Time.m
8177 #--------------------------------------------------------------------
8178
8179
8180
8181
8182
8183 for ac_header in time.h sys/time.h sys/rusage.h ucbinclude/sys/resource.h
8184 do
8185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8187 echo "$as_me:$LINENO: checking for $ac_header" >&5
8188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 fi
8192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8194 else
8195 # Is the header compilable?
8196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8198 cat >conftest.$ac_ext <<_ACEOF
8199 #line $LINENO "configure"
8200 /* confdefs.h. */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8205 $ac_includes_default
8206 #include <$ac_header>
8207 _ACEOF
8208 rm -f conftest.$ac_objext
8209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8210 (eval $ac_compile) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -s conftest.$ac_objext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 ac_header_compiler=yes
8221 else
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225 ac_header_compiler=no
8226 fi
8227 rm -f conftest.$ac_objext conftest.$ac_ext
8228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8229 echo "${ECHO_T}$ac_header_compiler" >&6
8230
8231 # Is the header present?
8232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8234 cat >conftest.$ac_ext <<_ACEOF
8235 #line $LINENO "configure"
8236 /* confdefs.h. */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 #include <$ac_header>
8242 _ACEOF
8243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } >/dev/null; then
8251 if test -s conftest.err; then
8252 ac_cpp_err=$ac_c_preproc_warn_flag
8253 else
8254 ac_cpp_err=
8255 fi
8256 else
8257 ac_cpp_err=yes
8258 fi
8259 if test -z "$ac_cpp_err"; then
8260 ac_header_preproc=yes
8261 else
8262 echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8264
8265 ac_header_preproc=no
8266 fi
8267 rm -f conftest.err conftest.$ac_ext
8268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8269 echo "${ECHO_T}$ac_header_preproc" >&6
8270
8271 # So? What about this header?
8272 case $ac_header_compiler:$ac_header_preproc in
8273 yes:no )
8274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8278 (
8279 cat <<\_ASBOX
8280 ## ------------------------------------ ##
8281 ## Report this to bug-autoconf@gnu.org. ##
8282 ## ------------------------------------ ##
8283 _ASBOX
8284 ) |
8285 sed "s/^/$as_me: WARNING: /" >&2
8286 ;;
8287 no:yes )
8288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8294 (
8295 cat <<\_ASBOX
8296 ## ------------------------------------ ##
8297 ## Report this to bug-autoconf@gnu.org. ##
8298 ## ------------------------------------ ##
8299 _ASBOX
8300 ) |
8301 sed "s/^/$as_me: WARNING: /" >&2
8302 ;;
8303 esac
8304 echo "$as_me:$LINENO: checking for $ac_header" >&5
8305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 else
8309 eval "$as_ac_Header=$ac_header_preproc"
8310 fi
8311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8313
8314 fi
8315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8316 cat >>confdefs.h <<_ACEOF
8317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8318 _ACEOF
8319
8320 fi
8321
8322 done
8323
8324
8325
8326
8327 for ac_func in time ctime tzset
8328 do
8329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8330 echo "$as_me:$LINENO: checking for $ac_func" >&5
8331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8332 if eval "test \"\${$as_ac_var+set}\" = set"; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 cat >conftest.$ac_ext <<_ACEOF
8336 #line $LINENO "configure"
8337 /* confdefs.h. */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 /* System header to define __stub macros and hopefully few prototypes,
8343 which can conflict with char $ac_func (); below.
8344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8345 <limits.h> exists even on freestanding compilers. */
8346 #ifdef __STDC__
8347 # include <limits.h>
8348 #else
8349 # include <assert.h>
8350 #endif
8351 /* Override any gcc2 internal prototype to avoid an error. */
8352 #ifdef __cplusplus
8353 extern "C"
8354 {
8355 #endif
8356 /* We use char because int might match the return type of a gcc2
8357 builtin and then its argument prototype would still apply. */
8358 char $ac_func ();
8359 /* The GNU C library defines this for functions which it implements
8360 to always fail with ENOSYS. Some functions are actually named
8361 something starting with __ and the normal name is an alias. */
8362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8363 choke me
8364 #else
8365 char (*f) () = $ac_func;
8366 #endif
8367 #ifdef __cplusplus
8368 }
8369 #endif
8370
8371 int
8372 main ()
8373 {
8374 return f != $ac_func;
8375 ;
8376 return 0;
8377 }
8378 _ACEOF
8379 rm -f conftest.$ac_objext conftest$ac_exeext
8380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8381 (eval $ac_link) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -s conftest$ac_exeext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 eval "$as_ac_var=yes"
8392 else
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396 eval "$as_ac_var=no"
8397 fi
8398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8399 fi
8400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8402 if test `eval echo '${'$as_ac_var'}'` = yes; then
8403 cat >>confdefs.h <<_ACEOF
8404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8405 _ACEOF
8406
8407 fi
8408 done
8409
8410
8411 #--------------------------------------------------------------------
8412 # These headers/functions needed by GSTcpPort.m
8413 #--------------------------------------------------------------------
8414
8415
8416 for ac_header in sys/socket.h netinet/in.h
8417 do
8418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8420 echo "$as_me:$LINENO: checking for $ac_header" >&5
8421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 fi
8425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8427 else
8428 # Is the header compilable?
8429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8431 cat >conftest.$ac_ext <<_ACEOF
8432 #line $LINENO "configure"
8433 /* confdefs.h. */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 $ac_includes_default
8439 #include <$ac_header>
8440 _ACEOF
8441 rm -f conftest.$ac_objext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8443 (eval $ac_compile) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -s conftest.$ac_objext'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_header_compiler=yes
8454 else
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458 ac_header_compiler=no
8459 fi
8460 rm -f conftest.$ac_objext conftest.$ac_ext
8461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8462 echo "${ECHO_T}$ac_header_compiler" >&6
8463
8464 # Is the header present?
8465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8467 cat >conftest.$ac_ext <<_ACEOF
8468 #line $LINENO "configure"
8469 /* confdefs.h. */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 #include <$ac_header>
8475 _ACEOF
8476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8478 ac_status=$?
8479 grep -v '^ *+' conftest.er1 >conftest.err
8480 rm -f conftest.er1
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } >/dev/null; then
8484 if test -s conftest.err; then
8485 ac_cpp_err=$ac_c_preproc_warn_flag
8486 else
8487 ac_cpp_err=
8488 fi
8489 else
8490 ac_cpp_err=yes
8491 fi
8492 if test -z "$ac_cpp_err"; then
8493 ac_header_preproc=yes
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 ac_header_preproc=no
8499 fi
8500 rm -f conftest.err conftest.$ac_ext
8501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8502 echo "${ECHO_T}$ac_header_preproc" >&6
8503
8504 # So? What about this header?
8505 case $ac_header_compiler:$ac_header_preproc in
8506 yes:no )
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8511 (
8512 cat <<\_ASBOX
8513 ## ------------------------------------ ##
8514 ## Report this to bug-autoconf@gnu.org. ##
8515 ## ------------------------------------ ##
8516 _ASBOX
8517 ) |
8518 sed "s/^/$as_me: WARNING: /" >&2
8519 ;;
8520 no:yes )
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8527 (
8528 cat <<\_ASBOX
8529 ## ------------------------------------ ##
8530 ## Report this to bug-autoconf@gnu.org. ##
8531 ## ------------------------------------ ##
8532 _ASBOX
8533 ) |
8534 sed "s/^/$as_me: WARNING: /" >&2
8535 ;;
8536 esac
8537 echo "$as_me:$LINENO: checking for $ac_header" >&5
8538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542 eval "$as_ac_Header=$ac_header_preproc"
8543 fi
8544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8546
8547 fi
8548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8549 cat >>confdefs.h <<_ACEOF
8550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8551 _ACEOF
8552
8553 fi
8554
8555 done
8556
8557
8558 #--------------------------------------------------------------------
8559 # These headers/functions needed by NSLog.m
8560 #--------------------------------------------------------------------
8561
8562 for ac_header in syslog.h
8563 do
8564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566 echo "$as_me:$LINENO: checking for $ac_header" >&5
8567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 fi
8571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8573 else
8574 # Is the header compilable?
8575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8577 cat >conftest.$ac_ext <<_ACEOF
8578 #line $LINENO "configure"
8579 /* confdefs.h. */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584 $ac_includes_default
8585 #include <$ac_header>
8586 _ACEOF
8587 rm -f conftest.$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -s conftest.$ac_objext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 (eval $ac_try) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_header_compiler=yes
8600 else
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8603
8604 ac_header_compiler=no
8605 fi
8606 rm -f conftest.$ac_objext conftest.$ac_ext
8607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608 echo "${ECHO_T}$ac_header_compiler" >&6
8609
8610 # Is the header present?
8611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8614 #line $LINENO "configure"
8615 /* confdefs.h. */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 #include <$ac_header>
8621 _ACEOF
8622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } >/dev/null; then
8630 if test -s conftest.err; then
8631 ac_cpp_err=$ac_c_preproc_warn_flag
8632 else
8633 ac_cpp_err=
8634 fi
8635 else
8636 ac_cpp_err=yes
8637 fi
8638 if test -z "$ac_cpp_err"; then
8639 ac_header_preproc=yes
8640 else
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644 ac_header_preproc=no
8645 fi
8646 rm -f conftest.err conftest.$ac_ext
8647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8648 echo "${ECHO_T}$ac_header_preproc" >&6
8649
8650 # So? What about this header?
8651 case $ac_header_compiler:$ac_header_preproc in
8652 yes:no )
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8657 (
8658 cat <<\_ASBOX
8659 ## ------------------------------------ ##
8660 ## Report this to bug-autoconf@gnu.org. ##
8661 ## ------------------------------------ ##
8662 _ASBOX
8663 ) |
8664 sed "s/^/$as_me: WARNING: /" >&2
8665 ;;
8666 no:yes )
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8673 (
8674 cat <<\_ASBOX
8675 ## ------------------------------------ ##
8676 ## Report this to bug-autoconf@gnu.org. ##
8677 ## ------------------------------------ ##
8678 _ASBOX
8679 ) |
8680 sed "s/^/$as_me: WARNING: /" >&2
8681 ;;
8682 esac
8683 echo "$as_me:$LINENO: checking for $ac_header" >&5
8684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688 eval "$as_ac_Header=$ac_header_preproc"
8689 fi
8690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8692
8693 fi
8694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8695 cat >>confdefs.h <<_ACEOF
8696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8697 _ACEOF
8698
8699 fi
8700
8701 done
8702
8703
8704 for ac_func in syslog
8705 do
8706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8707 echo "$as_me:$LINENO: checking for $ac_func" >&5
8708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8709 if eval "test \"\${$as_ac_var+set}\" = set"; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712 cat >conftest.$ac_ext <<_ACEOF
8713 #line $LINENO "configure"
8714 /* confdefs.h. */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 /* System header to define __stub macros and hopefully few prototypes,
8720 which can conflict with char $ac_func (); below.
8721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8722 <limits.h> exists even on freestanding compilers. */
8723 #ifdef __STDC__
8724 # include <limits.h>
8725 #else
8726 # include <assert.h>
8727 #endif
8728 /* Override any gcc2 internal prototype to avoid an error. */
8729 #ifdef __cplusplus
8730 extern "C"
8731 {
8732 #endif
8733 /* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8735 char $ac_func ();
8736 /* The GNU C library defines this for functions which it implements
8737 to always fail with ENOSYS. Some functions are actually named
8738 something starting with __ and the normal name is an alias. */
8739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8740 choke me
8741 #else
8742 char (*f) () = $ac_func;
8743 #endif
8744 #ifdef __cplusplus
8745 }
8746 #endif
8747
8748 int
8749 main ()
8750 {
8751 return f != $ac_func;
8752 ;
8753 return 0;
8754 }
8755 _ACEOF
8756 rm -f conftest.$ac_objext conftest$ac_exeext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758 (eval $ac_link) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -s conftest$ac_exeext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 eval "$as_ac_var=yes"
8769 else
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8772
8773 eval "$as_ac_var=no"
8774 fi
8775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8776 fi
8777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8779 if test `eval echo '${'$as_ac_var'}'` = yes; then
8780 cat >>confdefs.h <<_ACEOF
8781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8782 _ACEOF
8783
8784 fi
8785 done
8786
8787
8788 #--------------------------------------------------------------------
8789 # These headers/functions needed by NSRunLoop.m
8790 #--------------------------------------------------------------------
8791
8792 for ac_header in poll.h
8793 do
8794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8796 echo "$as_me:$LINENO: checking for $ac_header" >&5
8797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 fi
8801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8803 else
8804 # Is the header compilable?
8805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8807 cat >conftest.$ac_ext <<_ACEOF
8808 #line $LINENO "configure"
8809 /* confdefs.h. */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8814 $ac_includes_default
8815 #include <$ac_header>
8816 _ACEOF
8817 rm -f conftest.$ac_objext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819 (eval $ac_compile) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -s conftest.$ac_objext'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825 (eval $ac_try) 2>&5
8826 ac_status=$?
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8829 ac_header_compiler=yes
8830 else
8831 echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8833
8834 ac_header_compiler=no
8835 fi
8836 rm -f conftest.$ac_objext conftest.$ac_ext
8837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8838 echo "${ECHO_T}$ac_header_compiler" >&6
8839
8840 # Is the header present?
8841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8843 cat >conftest.$ac_ext <<_ACEOF
8844 #line $LINENO "configure"
8845 /* confdefs.h. */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850 #include <$ac_header>
8851 _ACEOF
8852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } >/dev/null; then
8860 if test -s conftest.err; then
8861 ac_cpp_err=$ac_c_preproc_warn_flag
8862 else
8863 ac_cpp_err=
8864 fi
8865 else
8866 ac_cpp_err=yes
8867 fi
8868 if test -z "$ac_cpp_err"; then
8869 ac_header_preproc=yes
8870 else
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 ac_header_preproc=no
8875 fi
8876 rm -f conftest.err conftest.$ac_ext
8877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8878 echo "${ECHO_T}$ac_header_preproc" >&6
8879
8880 # So? What about this header?
8881 case $ac_header_compiler:$ac_header_preproc in
8882 yes:no )
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8887 (
8888 cat <<\_ASBOX
8889 ## ------------------------------------ ##
8890 ## Report this to bug-autoconf@gnu.org. ##
8891 ## ------------------------------------ ##
8892 _ASBOX
8893 ) |
8894 sed "s/^/$as_me: WARNING: /" >&2
8895 ;;
8896 no:yes )
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8903 (
8904 cat <<\_ASBOX
8905 ## ------------------------------------ ##
8906 ## Report this to bug-autoconf@gnu.org. ##
8907 ## ------------------------------------ ##
8908 _ASBOX
8909 ) |
8910 sed "s/^/$as_me: WARNING: /" >&2
8911 ;;
8912 esac
8913 echo "$as_me:$LINENO: checking for $ac_header" >&5
8914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 else
8918 eval "$as_ac_Header=$ac_header_preproc"
8919 fi
8920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8922
8923 fi
8924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8925 cat >>confdefs.h <<_ACEOF
8926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8927 _ACEOF
8928
8929 fi
8930
8931 done
8932
8933
8934 for ac_func in poll
8935 do
8936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8937 echo "$as_me:$LINENO: checking for $ac_func" >&5
8938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8939 if eval "test \"\${$as_ac_var+set}\" = set"; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942 cat >conftest.$ac_ext <<_ACEOF
8943 #line $LINENO "configure"
8944 /* confdefs.h. */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 /* System header to define __stub macros and hopefully few prototypes,
8950 which can conflict with char $ac_func (); below.
8951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8952 <limits.h> exists even on freestanding compilers. */
8953 #ifdef __STDC__
8954 # include <limits.h>
8955 #else
8956 # include <assert.h>
8957 #endif
8958 /* Override any gcc2 internal prototype to avoid an error. */
8959 #ifdef __cplusplus
8960 extern "C"
8961 {
8962 #endif
8963 /* We use char because int might match the return type of a gcc2
8964 builtin and then its argument prototype would still apply. */
8965 char $ac_func ();
8966 /* The GNU C library defines this for functions which it implements
8967 to always fail with ENOSYS. Some functions are actually named
8968 something starting with __ and the normal name is an alias. */
8969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8970 choke me
8971 #else
8972 char (*f) () = $ac_func;
8973 #endif
8974 #ifdef __cplusplus
8975 }
8976 #endif
8977
8978 int
8979 main ()
8980 {
8981 return f != $ac_func;
8982 ;
8983 return 0;
8984 }
8985 _ACEOF
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988 (eval $ac_link) 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try='test -s conftest$ac_exeext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 eval "$as_ac_var=yes"
8999 else
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003 eval "$as_ac_var=no"
9004 fi
9005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9006 fi
9007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9009 if test `eval echo '${'$as_ac_var'}'` = yes; then
9010 cat >>confdefs.h <<_ACEOF
9011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9012 _ACEOF
9013
9014 fi
9015 done
9016
9017
9018
9019 #--------------------------------------------------------------------
9020 # Check for pthread.h (only when building on Darwin machines)
9021 #--------------------------------------------------------------------
9022
9023 for ac_header in pthread.h
9024 do
9025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9027 echo "$as_me:$LINENO: checking for $ac_header" >&5
9028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 fi
9032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9034 else
9035 # Is the header compilable?
9036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 /* confdefs.h. */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045 $ac_includes_default
9046 #include <$ac_header>
9047 _ACEOF
9048 rm -f conftest.$ac_objext
9049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9050 (eval $ac_compile) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -s conftest.$ac_objext'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then
9060 ac_header_compiler=yes
9061 else
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9064
9065 ac_header_compiler=no
9066 fi
9067 rm -f conftest.$ac_objext conftest.$ac_ext
9068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9069 echo "${ECHO_T}$ac_header_compiler" >&6
9070
9071 # Is the header present?
9072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9076 /* confdefs.h. */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 #include <$ac_header>
9082 _ACEOF
9083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } >/dev/null; then
9091 if test -s conftest.err; then
9092 ac_cpp_err=$ac_c_preproc_warn_flag
9093 else
9094 ac_cpp_err=
9095 fi
9096 else
9097 ac_cpp_err=yes
9098 fi
9099 if test -z "$ac_cpp_err"; then
9100 ac_header_preproc=yes
9101 else
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9104
9105 ac_header_preproc=no
9106 fi
9107 rm -f conftest.err conftest.$ac_ext
9108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9109 echo "${ECHO_T}$ac_header_preproc" >&6
9110
9111 # So? What about this header?
9112 case $ac_header_compiler:$ac_header_preproc in
9113 yes:no )
9114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9118 (
9119 cat <<\_ASBOX
9120 ## ------------------------------------ ##
9121 ## Report this to bug-autoconf@gnu.org. ##
9122 ## ------------------------------------ ##
9123 _ASBOX
9124 ) |
9125 sed "s/^/$as_me: WARNING: /" >&2
9126 ;;
9127 no:yes )
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9134 (
9135 cat <<\_ASBOX
9136 ## ------------------------------------ ##
9137 ## Report this to bug-autoconf@gnu.org. ##
9138 ## ------------------------------------ ##
9139 _ASBOX
9140 ) |
9141 sed "s/^/$as_me: WARNING: /" >&2
9142 ;;
9143 esac
9144 echo "$as_me:$LINENO: checking for $ac_header" >&5
9145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149 eval "$as_ac_Header=$ac_header_preproc"
9150 fi
9151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9153
9154 fi
9155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9156 cat >>confdefs.h <<_ACEOF
9157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9158 _ACEOF
9159
9160 fi
9161
9162 done
9163
9164 HAVE_PTHREAD_H=no
9165 if test $ac_cv_header_pthread_h = yes ; then
9166 HAVE_PTHREAD_H=yes
9167 fi
9168
9169
9170 #--------------------------------------------------------------------
9171 # This function needed by StdioStream.m
9172 #--------------------------------------------------------------------
9173
9174
9175 for ac_func in vsprintf vasprintf
9176 do
9177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9178 echo "$as_me:$LINENO: checking for $ac_func" >&5
9179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9180 if eval "test \"\${$as_ac_var+set}\" = set"; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183 cat >conftest.$ac_ext <<_ACEOF
9184 #line $LINENO "configure"
9185 /* confdefs.h. */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9190 /* System header to define __stub macros and hopefully few prototypes,
9191 which can conflict with char $ac_func (); below.
9192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9193 <limits.h> exists even on freestanding compilers. */
9194 #ifdef __STDC__
9195 # include <limits.h>
9196 #else
9197 # include <assert.h>
9198 #endif
9199 /* Override any gcc2 internal prototype to avoid an error. */
9200 #ifdef __cplusplus
9201 extern "C"
9202 {
9203 #endif
9204 /* We use char because int might match the return type of a gcc2
9205 builtin and then its argument prototype would still apply. */
9206 char $ac_func ();
9207 /* The GNU C library defines this for functions which it implements
9208 to always fail with ENOSYS. Some functions are actually named
9209 something starting with __ and the normal name is an alias. */
9210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9211 choke me
9212 #else
9213 char (*f) () = $ac_func;
9214 #endif
9215 #ifdef __cplusplus
9216 }
9217 #endif
9218
9219 int
9220 main ()
9221 {
9222 return f != $ac_func;
9223 ;
9224 return 0;
9225 }
9226 _ACEOF
9227 rm -f conftest.$ac_objext conftest$ac_exeext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229 (eval $ac_link) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } &&
9233 { ac_try='test -s conftest$ac_exeext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 eval "$as_ac_var=yes"
9240 else
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9243
9244 eval "$as_ac_var=no"
9245 fi
9246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9247 fi
9248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9250 if test `eval echo '${'$as_ac_var'}'` = yes; then
9251 cat >>confdefs.h <<_ACEOF
9252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9253 _ACEOF
9254
9255 fi
9256 done
9257
9258 if test $ac_cv_func_vsprintf = yes ; then
9259 if test "$cross_compiling" = yes; then
9260 VSPRINTF_RETURNS_LENGTH=1
9261 else
9262 cat >conftest.$ac_ext <<_ACEOF
9263 #line $LINENO "configure"
9264 /* confdefs.h. */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 #include "$srcdir/config/config.vsprintf.c"
9270 _ACEOF
9271 rm -f conftest$ac_exeext
9272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9273 (eval $ac_link) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 VSPRINTF_RETURNS_LENGTH=1
9283 else
9284 echo "$as_me: program exited with status $ac_status" >&5
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9287
9288 ( exit $ac_status )
9289 VSPRINTF_RETURNS_LENGTH=0
9290 fi
9291 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9292 fi
9293
9294 cat >>confdefs.h <<_ACEOF
9295 #define VSPRINTF_RETURNS_LENGTH $VSPRINTF_RETURNS_LENGTH
9296 _ACEOF
9297
9298 fi
9299 if test $ac_cv_func_vasprintf = yes ; then
9300 if test "$cross_compiling" = yes; then
9301 VASPRINTF_RETURNS_LENGTH=1
9302 else
9303 cat >conftest.$ac_ext <<_ACEOF
9304 #line $LINENO "configure"
9305 /* confdefs.h. */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 #include "$srcdir/config/config.vasprintf.c"
9311 _ACEOF
9312 rm -f conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 (eval $ac_try) 2>&5
9320 ac_status=$?
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; }; then
9323 VASPRINTF_RETURNS_LENGTH=1
9324 else
9325 echo "$as_me: program exited with status $ac_status" >&5
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 ( exit $ac_status )
9330 VASPRINTF_RETURNS_LENGTH=0
9331 fi
9332 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9333 fi
9334
9335 cat >>confdefs.h <<_ACEOF
9336 #define VASPRINTF_RETURNS_LENGTH $VASPRINTF_RETURNS_LENGTH
9337 _ACEOF
9338
9339 fi
9340
9341 #--------------------------------------------------------------------
9342 # This function needed by NSFileManager.m
9343 #--------------------------------------------------------------------
9344
9345 for ac_func in getcwd
9346 do
9347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9348 echo "$as_me:$LINENO: checking for $ac_func" >&5
9349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9350 if eval "test \"\${$as_ac_var+set}\" = set"; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 /* System header to define __stub macros and hopefully few prototypes,
9361 which can conflict with char $ac_func (); below.
9362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9363 <limits.h> exists even on freestanding compilers. */
9364 #ifdef __STDC__
9365 # include <limits.h>
9366 #else
9367 # include <assert.h>
9368 #endif
9369 /* Override any gcc2 internal prototype to avoid an error. */
9370 #ifdef __cplusplus
9371 extern "C"
9372 {
9373 #endif
9374 /* We use char because int might match the return type of a gcc2
9375 builtin and then its argument prototype would still apply. */
9376 char $ac_func ();
9377 /* The GNU C library defines this for functions which it implements
9378 to always fail with ENOSYS. Some functions are actually named
9379 something starting with __ and the normal name is an alias. */
9380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9381 choke me
9382 #else
9383 char (*f) () = $ac_func;
9384 #endif
9385 #ifdef __cplusplus
9386 }
9387 #endif
9388
9389 int
9390 main ()
9391 {
9392 return f != $ac_func;
9393 ;
9394 return 0;
9395 }
9396 _ACEOF
9397 rm -f conftest.$ac_objext conftest$ac_exeext
9398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9399 (eval $ac_link) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -s conftest$ac_exeext'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 (eval $ac_try) 2>&5
9406 ac_status=$?
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9409 eval "$as_ac_var=yes"
9410 else
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9413
9414 eval "$as_ac_var=no"
9415 fi
9416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9417 fi
9418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9420 if test `eval echo '${'$as_ac_var'}'` = yes; then
9421 cat >>confdefs.h <<_ACEOF
9422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9423 _ACEOF
9424
9425 fi
9426 done
9427
9428
9429
9430
9431
9432
9433 ac_header_dirent=no
9434 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9435 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9436 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9437 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441 cat >conftest.$ac_ext <<_ACEOF
9442 #line $LINENO "configure"
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 #include <sys/types.h>
9449 #include <$ac_hdr>
9450
9451 int
9452 main ()
9453 {
9454 if ((DIR *) 0)
9455 return 0;
9456 ;
9457 return 0;
9458 }
9459 _ACEOF
9460 rm -f conftest.$ac_objext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462 (eval $ac_compile) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try='test -s conftest.$ac_objext'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468 (eval $ac_try) 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; }; then
9472 eval "$as_ac_Header=yes"
9473 else
9474 echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9476
9477 eval "$as_ac_Header=no"
9478 fi
9479 rm -f conftest.$ac_objext conftest.$ac_ext
9480 fi
9481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9484 cat >>confdefs.h <<_ACEOF
9485 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9486 _ACEOF
9487
9488 ac_header_dirent=$ac_hdr; break
9489 fi
9490
9491 done
9492 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9493 if test $ac_header_dirent = dirent.h; then
9494 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9495 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9496 if test "${ac_cv_search_opendir+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499 ac_func_search_save_LIBS=$LIBS
9500 ac_cv_search_opendir=no
9501 cat >conftest.$ac_ext <<_ACEOF
9502 #line $LINENO "configure"
9503 /* confdefs.h. */
9504 _ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9508
9509 /* Override any gcc2 internal prototype to avoid an error. */
9510 #ifdef __cplusplus
9511 extern "C"
9512 #endif
9513 /* We use char because int might match the return type of a gcc2
9514 builtin and then its argument prototype would still apply. */
9515 char opendir ();
9516 int
9517 main ()
9518 {
9519 opendir ();
9520 ;
9521 return 0;
9522 }
9523 _ACEOF
9524 rm -f conftest.$ac_objext conftest$ac_exeext
9525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9526 (eval $ac_link) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } &&
9530 { ac_try='test -s conftest$ac_exeext'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 (eval $ac_try) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 ac_cv_search_opendir="none required"
9537 else
9538 echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9540
9541 fi
9542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9543 if test "$ac_cv_search_opendir" = no; then
9544 for ac_lib in dir; do
9545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9546 cat >conftest.$ac_ext <<_ACEOF
9547 #line $LINENO "configure"
9548 /* confdefs.h. */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553
9554 /* Override any gcc2 internal prototype to avoid an error. */
9555 #ifdef __cplusplus
9556 extern "C"
9557 #endif
9558 /* We use char because int might match the return type of a gcc2
9559 builtin and then its argument prototype would still apply. */
9560 char opendir ();
9561 int
9562 main ()
9563 {
9564 opendir ();
9565 ;
9566 return 0;
9567 }
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
9575 { ac_try='test -s conftest$ac_exeext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 (eval $ac_try) 2>&5
9578 ac_status=$?
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_cv_search_opendir="-l$ac_lib"
9582 break
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587 fi
9588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9589 done
9590 fi
9591 LIBS=$ac_func_search_save_LIBS
9592 fi
9593 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9594 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9595 if test "$ac_cv_search_opendir" != no; then
9596 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9597
9598 fi
9599
9600 else
9601 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9602 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9603 if test "${ac_cv_search_opendir+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606 ac_func_search_save_LIBS=$LIBS
9607 ac_cv_search_opendir=no
9608 cat >conftest.$ac_ext <<_ACEOF
9609 #line $LINENO "configure"
9610 /* confdefs.h. */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615
9616 /* Override any gcc2 internal prototype to avoid an error. */
9617 #ifdef __cplusplus
9618 extern "C"
9619 #endif
9620 /* We use char because int might match the return type of a gcc2
9621 builtin and then its argument prototype would still apply. */
9622 char opendir ();
9623 int
9624 main ()
9625 {
9626 opendir ();
9627 ;
9628 return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633 (eval $ac_link) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
9637 { ac_try='test -s conftest$ac_exeext'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 (eval $ac_try) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 ac_cv_search_opendir="none required"
9644 else
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9647
9648 fi
9649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9650 if test "$ac_cv_search_opendir" = no; then
9651 for ac_lib in x; do
9652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9653 cat >conftest.$ac_ext <<_ACEOF
9654 #line $LINENO "configure"
9655 /* confdefs.h. */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660
9661 /* Override any gcc2 internal prototype to avoid an error. */
9662 #ifdef __cplusplus
9663 extern "C"
9664 #endif
9665 /* We use char because int might match the return type of a gcc2
9666 builtin and then its argument prototype would still apply. */
9667 char opendir ();
9668 int
9669 main ()
9670 {
9671 opendir ();
9672 ;
9673 return 0;
9674 }
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678 (eval $ac_link) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_search_opendir="-l$ac_lib"
9689 break
9690 else
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9693
9694 fi
9695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9696 done
9697 fi
9698 LIBS=$ac_func_search_save_LIBS
9699 fi
9700 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9701 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9702 if test "$ac_cv_search_opendir" != no; then
9703 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9704
9705 fi
9706
9707 fi
9708
9709
9710 #--------------------------------------------------------------------
9711 # This function needed by gdomap.c
9712 #--------------------------------------------------------------------
9713
9714 for ac_header in getopt.h
9715 do
9716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9718 echo "$as_me:$LINENO: checking for $ac_header" >&5
9719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 fi
9723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9725 else
9726 # Is the header compilable?
9727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9729 cat >conftest.$ac_ext <<_ACEOF
9730 #line $LINENO "configure"
9731 /* confdefs.h. */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9736 $ac_includes_default
9737 #include <$ac_header>
9738 _ACEOF
9739 rm -f conftest.$ac_objext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9741 (eval $ac_compile) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -s conftest.$ac_objext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_header_compiler=yes
9752 else
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756 ac_header_compiler=no
9757 fi
9758 rm -f conftest.$ac_objext conftest.$ac_ext
9759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9760 echo "${ECHO_T}$ac_header_compiler" >&6
9761
9762 # Is the header present?
9763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9765 cat >conftest.$ac_ext <<_ACEOF
9766 #line $LINENO "configure"
9767 /* confdefs.h. */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772 #include <$ac_header>
9773 _ACEOF
9774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } >/dev/null; then
9782 if test -s conftest.err; then
9783 ac_cpp_err=$ac_c_preproc_warn_flag
9784 else
9785 ac_cpp_err=
9786 fi
9787 else
9788 ac_cpp_err=yes
9789 fi
9790 if test -z "$ac_cpp_err"; then
9791 ac_header_preproc=yes
9792 else
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9795
9796 ac_header_preproc=no
9797 fi
9798 rm -f conftest.err conftest.$ac_ext
9799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9800 echo "${ECHO_T}$ac_header_preproc" >&6
9801
9802 # So? What about this header?
9803 case $ac_header_compiler:$ac_header_preproc in
9804 yes:no )
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9809 (
9810 cat <<\_ASBOX
9811 ## ------------------------------------ ##
9812 ## Report this to bug-autoconf@gnu.org. ##
9813 ## ------------------------------------ ##
9814 _ASBOX
9815 ) |
9816 sed "s/^/$as_me: WARNING: /" >&2
9817 ;;
9818 no:yes )
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9825 (
9826 cat <<\_ASBOX
9827 ## ------------------------------------ ##
9828 ## Report this to bug-autoconf@gnu.org. ##
9829 ## ------------------------------------ ##
9830 _ASBOX
9831 ) |
9832 sed "s/^/$as_me: WARNING: /" >&2
9833 ;;
9834 esac
9835 echo "$as_me:$LINENO: checking for $ac_header" >&5
9836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 else
9840 eval "$as_ac_Header=$ac_header_preproc"
9841 fi
9842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9844
9845 fi
9846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9847 cat >>confdefs.h <<_ACEOF
9848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9849 _ACEOF
9850
9851 fi
9852
9853 done
9854
9855
9856 #--------------------------------------------------------------------
9857 # This function needed by NSPage.m
9858 #--------------------------------------------------------------------
9859
9860 for ac_func in valloc
9861 do
9862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9863 echo "$as_me:$LINENO: checking for $ac_func" >&5
9864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9865 if eval "test \"\${$as_ac_var+set}\" = set"; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868 cat >conftest.$ac_ext <<_ACEOF
9869 #line $LINENO "configure"
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 /* System header to define __stub macros and hopefully few prototypes,
9876 which can conflict with char $ac_func (); below.
9877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9878 <limits.h> exists even on freestanding compilers. */
9879 #ifdef __STDC__
9880 # include <limits.h>
9881 #else
9882 # include <assert.h>
9883 #endif
9884 /* Override any gcc2 internal prototype to avoid an error. */
9885 #ifdef __cplusplus
9886 extern "C"
9887 {
9888 #endif
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9891 char $ac_func ();
9892 /* The GNU C library defines this for functions which it implements
9893 to always fail with ENOSYS. Some functions are actually named
9894 something starting with __ and the normal name is an alias. */
9895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9896 choke me
9897 #else
9898 char (*f) () = $ac_func;
9899 #endif
9900 #ifdef __cplusplus
9901 }
9902 #endif
9903
9904 int
9905 main ()
9906 {
9907 return f != $ac_func;
9908 ;
9909 return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>&5
9915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try='test -s conftest$ac_exeext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 (eval $ac_try) 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 eval "$as_ac_var=yes"
9925 else
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9928
9929 eval "$as_ac_var=no"
9930 fi
9931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9932 fi
9933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9935 if test `eval echo '${'$as_ac_var'}'` = yes; then
9936 cat >>confdefs.h <<_ACEOF
9937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9938 _ACEOF
9939
9940 fi
9941 done
9942
9943
9944 #--------------------------------------------------------------------
9945 # This function needed by Time.m
9946 #--------------------------------------------------------------------
9947
9948 for ac_func in times
9949 do
9950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9951 echo "$as_me:$LINENO: checking for $ac_func" >&5
9952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9953 if eval "test \"\${$as_ac_var+set}\" = set"; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956 cat >conftest.$ac_ext <<_ACEOF
9957 #line $LINENO "configure"
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 /* System header to define __stub macros and hopefully few prototypes,
9964 which can conflict with char $ac_func (); below.
9965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9966 <limits.h> exists even on freestanding compilers. */
9967 #ifdef __STDC__
9968 # include <limits.h>
9969 #else
9970 # include <assert.h>
9971 #endif
9972 /* Override any gcc2 internal prototype to avoid an error. */
9973 #ifdef __cplusplus
9974 extern "C"
9975 {
9976 #endif
9977 /* We use char because int might match the return type of a gcc2
9978 builtin and then its argument prototype would still apply. */
9979 char $ac_func ();
9980 /* The GNU C library defines this for functions which it implements
9981 to always fail with ENOSYS. Some functions are actually named
9982 something starting with __ and the normal name is an alias. */
9983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9984 choke me
9985 #else
9986 char (*f) () = $ac_func;
9987 #endif
9988 #ifdef __cplusplus
9989 }
9990 #endif
9991
9992 int
9993 main ()
9994 {
9995 return f != $ac_func;
9996 ;
9997 return 0;
9998 }
9999 _ACEOF
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10002 (eval $ac_link) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } &&
10006 { ac_try='test -s conftest$ac_exeext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 eval "$as_ac_var=yes"
10013 else
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017 eval "$as_ac_var=no"
10018 fi
10019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10020 fi
10021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10023 if test `eval echo '${'$as_ac_var'}'` = yes; then
10024 cat >>confdefs.h <<_ACEOF
10025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10026 _ACEOF
10027
10028 fi
10029 done
10030
10031
10032 #--------------------------------------------------------------------
10033 # These functions needed by NSData.m
10034 #--------------------------------------------------------------------
10035
10036 for ac_func in mkstemp
10037 do
10038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10039 echo "$as_me:$LINENO: checking for $ac_func" >&5
10040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10041 if eval "test \"\${$as_ac_var+set}\" = set"; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044 cat >conftest.$ac_ext <<_ACEOF
10045 #line $LINENO "configure"
10046 /* confdefs.h. */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 /* System header to define __stub macros and hopefully few prototypes,
10052 which can conflict with char $ac_func (); below.
10053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10054 <limits.h> exists even on freestanding compilers. */
10055 #ifdef __STDC__
10056 # include <limits.h>
10057 #else
10058 # include <assert.h>
10059 #endif
10060 /* Override any gcc2 internal prototype to avoid an error. */
10061 #ifdef __cplusplus
10062 extern "C"
10063 {
10064 #endif
10065 /* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10067 char $ac_func ();
10068 /* The GNU C library defines this for functions which it implements
10069 to always fail with ENOSYS. Some functions are actually named
10070 something starting with __ and the normal name is an alias. */
10071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10072 choke me
10073 #else
10074 char (*f) () = $ac_func;
10075 #endif
10076 #ifdef __cplusplus
10077 }
10078 #endif
10079
10080 int
10081 main ()
10082 {
10083 return f != $ac_func;
10084 ;
10085 return 0;
10086 }
10087 _ACEOF
10088 rm -f conftest.$ac_objext conftest$ac_exeext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10090 (eval $ac_link) 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } &&
10094 { ac_try='test -s conftest$ac_exeext'
10095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096 (eval $ac_try) 2>&5
10097 ac_status=$?
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; }; then
10100 eval "$as_ac_var=yes"
10101 else
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10104
10105 eval "$as_ac_var=no"
10106 fi
10107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10108 fi
10109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10111 if test `eval echo '${'$as_ac_var'}'` = yes; then
10112 cat >>confdefs.h <<_ACEOF
10113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10114 _ACEOF
10115
10116 fi
10117 done
10118
10119
10120 for ac_func in shmctl
10121 do
10122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10123 echo "$as_me:$LINENO: checking for $ac_func" >&5
10124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10125 if eval "test \"\${$as_ac_var+set}\" = set"; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 else
10128 cat >conftest.$ac_ext <<_ACEOF
10129 #line $LINENO "configure"
10130 /* confdefs.h. */
10131 _ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10135 /* System header to define __stub macros and hopefully few prototypes,
10136 which can conflict with char $ac_func (); below.
10137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10138 <limits.h> exists even on freestanding compilers. */
10139 #ifdef __STDC__
10140 # include <limits.h>
10141 #else
10142 # include <assert.h>
10143 #endif
10144 /* Override any gcc2 internal prototype to avoid an error. */
10145 #ifdef __cplusplus
10146 extern "C"
10147 {
10148 #endif
10149 /* We use char because int might match the return type of a gcc2
10150 builtin and then its argument prototype would still apply. */
10151 char $ac_func ();
10152 /* The GNU C library defines this for functions which it implements
10153 to always fail with ENOSYS. Some functions are actually named
10154 something starting with __ and the normal name is an alias. */
10155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10156 choke me
10157 #else
10158 char (*f) () = $ac_func;
10159 #endif
10160 #ifdef __cplusplus
10161 }
10162 #endif
10163
10164 int
10165 main ()
10166 {
10167 return f != $ac_func;
10168 ;
10169 return 0;
10170 }
10171 _ACEOF
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174 (eval $ac_link) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -s conftest$ac_exeext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 eval "$as_ac_var=yes"
10185 else
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10188
10189 eval "$as_ac_var=no"
10190 fi
10191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10192 fi
10193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10195 if test `eval echo '${'$as_ac_var'}'` = yes; then
10196 cat >>confdefs.h <<_ACEOF
10197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10198 _ACEOF
10199
10200 fi
10201 done
10202
10203
10204 for ac_func in mmap
10205 do
10206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10207 echo "$as_me:$LINENO: checking for $ac_func" >&5
10208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10209 if eval "test \"\${$as_ac_var+set}\" = set"; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212 cat >conftest.$ac_ext <<_ACEOF
10213 #line $LINENO "configure"
10214 /* confdefs.h. */
10215 _ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10219 /* System header to define __stub macros and hopefully few prototypes,
10220 which can conflict with char $ac_func (); below.
10221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10222 <limits.h> exists even on freestanding compilers. */
10223 #ifdef __STDC__
10224 # include <limits.h>
10225 #else
10226 # include <assert.h>
10227 #endif
10228 /* Override any gcc2 internal prototype to avoid an error. */
10229 #ifdef __cplusplus
10230 extern "C"
10231 {
10232 #endif
10233 /* We use char because int might match the return type of a gcc2
10234 builtin and then its argument prototype would still apply. */
10235 char $ac_func ();
10236 /* The GNU C library defines this for functions which it implements
10237 to always fail with ENOSYS. Some functions are actually named
10238 something starting with __ and the normal name is an alias. */
10239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10240 choke me
10241 #else
10242 char (*f) () = $ac_func;
10243 #endif
10244 #ifdef __cplusplus
10245 }
10246 #endif
10247
10248 int
10249 main ()
10250 {
10251 return f != $ac_func;
10252 ;
10253 return 0;
10254 }
10255 _ACEOF
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258 (eval $ac_link) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10265 ac_status=$?
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 eval "$as_ac_var=yes"
10269 else
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273 eval "$as_ac_var=no"
10274 fi
10275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10276 fi
10277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10279 if test `eval echo '${'$as_ac_var'}'` = yes; then
10280 cat >>confdefs.h <<_ACEOF
10281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10282 _ACEOF
10283
10284 fi
10285 done
10286
10287
10288 #--------------------------------------------------------------------
10289 # These used by UnixFileHandle.m
10290 #--------------------------------------------------------------------
10291
10292 for ac_func in inet_aton
10293 do
10294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10295 echo "$as_me:$LINENO: checking for $ac_func" >&5
10296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10297 if eval "test \"\${$as_ac_var+set}\" = set"; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300 cat >conftest.$ac_ext <<_ACEOF
10301 #line $LINENO "configure"
10302 /* confdefs.h. */
10303 _ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 /* System header to define __stub macros and hopefully few prototypes,
10308 which can conflict with char $ac_func (); below.
10309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10310 <limits.h> exists even on freestanding compilers. */
10311 #ifdef __STDC__
10312 # include <limits.h>
10313 #else
10314 # include <assert.h>
10315 #endif
10316 /* Override any gcc2 internal prototype to avoid an error. */
10317 #ifdef __cplusplus
10318 extern "C"
10319 {
10320 #endif
10321 /* We use char because int might match the return type of a gcc2
10322 builtin and then its argument prototype would still apply. */
10323 char $ac_func ();
10324 /* The GNU C library defines this for functions which it implements
10325 to always fail with ENOSYS. Some functions are actually named
10326 something starting with __ and the normal name is an alias. */
10327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10328 choke me
10329 #else
10330 char (*f) () = $ac_func;
10331 #endif
10332 #ifdef __cplusplus
10333 }
10334 #endif
10335
10336 int
10337 main ()
10338 {
10339 return f != $ac_func;
10340 ;
10341 return 0;
10342 }
10343 _ACEOF
10344 rm -f conftest.$ac_objext conftest$ac_exeext
10345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346 (eval $ac_link) 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -s conftest$ac_exeext'
10351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352 (eval $ac_try) 2>&5
10353 ac_status=$?
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; }; then
10356 eval "$as_ac_var=yes"
10357 else
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361 eval "$as_ac_var=no"
10362 fi
10363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10364 fi
10365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10367 if test `eval echo '${'$as_ac_var'}'` = yes; then
10368 cat >>confdefs.h <<_ACEOF
10369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10370 _ACEOF
10371
10372 fi
10373 done
10374
10375 USE_ZLIB=0
10376
10377 for ac_header in zlib.h
10378 do
10379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10381 echo "$as_me:$LINENO: checking for $ac_header" >&5
10382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 fi
10386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10388 else
10389 # Is the header compilable?
10390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10392 cat >conftest.$ac_ext <<_ACEOF
10393 #line $LINENO "configure"
10394 /* confdefs.h. */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 $ac_includes_default
10400 #include <$ac_header>
10401 _ACEOF
10402 rm -f conftest.$ac_objext
10403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404 (eval $ac_compile) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } &&
10408 { ac_try='test -s conftest.$ac_objext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414 ac_header_compiler=yes
10415 else
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419 ac_header_compiler=no
10420 fi
10421 rm -f conftest.$ac_objext conftest.$ac_ext
10422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10423 echo "${ECHO_T}$ac_header_compiler" >&6
10424
10425 # Is the header present?
10426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10428 cat >conftest.$ac_ext <<_ACEOF
10429 #line $LINENO "configure"
10430 /* confdefs.h. */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10435 #include <$ac_header>
10436 _ACEOF
10437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } >/dev/null; then
10445 if test -s conftest.err; then
10446 ac_cpp_err=$ac_c_preproc_warn_flag
10447 else
10448 ac_cpp_err=
10449 fi
10450 else
10451 ac_cpp_err=yes
10452 fi
10453 if test -z "$ac_cpp_err"; then
10454 ac_header_preproc=yes
10455 else
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10458
10459 ac_header_preproc=no
10460 fi
10461 rm -f conftest.err conftest.$ac_ext
10462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10463 echo "${ECHO_T}$ac_header_preproc" >&6
10464
10465 # So? What about this header?
10466 case $ac_header_compiler:$ac_header_preproc in
10467 yes:no )
10468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10472 (
10473 cat <<\_ASBOX
10474 ## ------------------------------------ ##
10475 ## Report this to bug-autoconf@gnu.org. ##
10476 ## ------------------------------------ ##
10477 _ASBOX
10478 ) |
10479 sed "s/^/$as_me: WARNING: /" >&2
10480 ;;
10481 no:yes )
10482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10488 (
10489 cat <<\_ASBOX
10490 ## ------------------------------------ ##
10491 ## Report this to bug-autoconf@gnu.org. ##
10492 ## ------------------------------------ ##
10493 _ASBOX
10494 ) |
10495 sed "s/^/$as_me: WARNING: /" >&2
10496 ;;
10497 esac
10498 echo "$as_me:$LINENO: checking for $ac_header" >&5
10499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503 eval "$as_ac_Header=$ac_header_preproc"
10504 fi
10505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10507
10508 fi
10509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10510 cat >>confdefs.h <<_ACEOF
10511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10512 _ACEOF
10513
10514 fi
10515
10516 done
10517
10518 if test $ac_cv_header_zlib_h = yes; then
10519 echo "$as_me:$LINENO: checking for gzseek in -lz" >&5
10520 echo $ECHO_N "checking for gzseek in -lz... $ECHO_C" >&6
10521 if test "${ac_cv_lib_z_gzseek+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524 ac_check_lib_save_LIBS=$LIBS
10525 LIBS="-lz $LIBS"
10526 cat >conftest.$ac_ext <<_ACEOF
10527 #line $LINENO "configure"
10528 /* confdefs.h. */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533
10534 /* Override any gcc2 internal prototype to avoid an error. */
10535 #ifdef __cplusplus
10536 extern "C"
10537 #endif
10538 /* We use char because int might match the return type of a gcc2
10539 builtin and then its argument prototype would still apply. */
10540 char gzseek ();
10541 int
10542 main ()
10543 {
10544 gzseek ();
10545 ;
10546 return 0;
10547 }
10548 _ACEOF
10549 rm -f conftest.$ac_objext conftest$ac_exeext
10550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10551 (eval $ac_link) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -s conftest$ac_exeext'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 ac_cv_lib_z_gzseek=yes
10562 else
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 ac_cv_lib_z_gzseek=no
10567 fi
10568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10569 LIBS=$ac_check_lib_save_LIBS
10570 fi
10571 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5
10572 echo "${ECHO_T}$ac_cv_lib_z_gzseek" >&6
10573 if test $ac_cv_lib_z_gzseek = yes; then
10574 zlib_ok=yes
10575 else
10576 zlib_ok=no
10577 fi
10578
10579 if test "$zlib_ok" = yes; then
10580 LIBS="$LIBS -lz"
10581 USE_ZLIB=1
10582 fi
10583 fi
10584
10585
10586 #--------------------------------------------------------------------
10587 # These functions needed by NSTask.m
10588 #--------------------------------------------------------------------
10589
10590
10591
10592 for ac_func in killpg setpgrp setpgid
10593 do
10594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10595 echo "$as_me:$LINENO: checking for $ac_func" >&5
10596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10597 if eval "test \"\${$as_ac_var+set}\" = set"; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600 cat >conftest.$ac_ext <<_ACEOF
10601 #line $LINENO "configure"
10602 /* confdefs.h. */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 /* System header to define __stub macros and hopefully few prototypes,
10608 which can conflict with char $ac_func (); below.
10609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10610 <limits.h> exists even on freestanding compilers. */
10611 #ifdef __STDC__
10612 # include <limits.h>
10613 #else
10614 # include <assert.h>
10615 #endif
10616 /* Override any gcc2 internal prototype to avoid an error. */
10617 #ifdef __cplusplus
10618 extern "C"
10619 {
10620 #endif
10621 /* We use char because int might match the return type of a gcc2
10622 builtin and then its argument prototype would still apply. */
10623 char $ac_func ();
10624 /* The GNU C library defines this for functions which it implements
10625 to always fail with ENOSYS. Some functions are actually named
10626 something starting with __ and the normal name is an alias. */
10627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10628 choke me
10629 #else
10630 char (*f) () = $ac_func;
10631 #endif
10632 #ifdef __cplusplus
10633 }
10634 #endif
10635
10636 int
10637 main ()
10638 {
10639 return f != $ac_func;
10640 ;
10641 return 0;
10642 }
10643 _ACEOF
10644 rm -f conftest.$ac_objext conftest$ac_exeext
10645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10646 (eval $ac_link) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
10650 { ac_try='test -s conftest$ac_exeext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 eval "$as_ac_var=yes"
10657 else
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 eval "$as_ac_var=no"
10662 fi
10663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10664 fi
10665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10667 if test `eval echo '${'$as_ac_var'}'` = yes; then
10668 cat >>confdefs.h <<_ACEOF
10669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10670 _ACEOF
10671
10672 fi
10673 done
10674
10675 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
10676 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
10677 if test "${ac_cv_func_setpgrp_void+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 else
10680 if test "$cross_compiling" = yes; then
10681 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
10682 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
10683 { (exit 1); exit 1; }; }
10684 else
10685 cat >conftest.$ac_ext <<_ACEOF
10686 #line $LINENO "configure"
10687 /* confdefs.h. */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #if HAVE_UNISTD_H
10693 # include <unistd.h>
10694 #endif
10695
10696 int
10697 main ()
10698 {
10699 /* If this system has a BSD-style setpgrp which takes arguments,
10700 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10701 exit successfully. */
10702 exit (setpgrp (1,1) == -1 ? 0 : 1);
10703 ;
10704 return 0;
10705 }
10706 _ACEOF
10707 rm -f conftest$ac_exeext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10709 (eval $ac_link) 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; }; then
10718 ac_cv_func_setpgrp_void=no
10719 else
10720 echo "$as_me: program exited with status $ac_status" >&5
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ( exit $ac_status )
10725 ac_cv_func_setpgrp_void=yes
10726 fi
10727 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10728 fi
10729 fi
10730 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
10731 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
10732 if test $ac_cv_func_setpgrp_void = yes; then
10733
10734 cat >>confdefs.h <<\_ACEOF
10735 #define SETPGRP_VOID 1
10736 _ACEOF
10737
10738 fi
10739
10740
10741 HAVE_PTS_STREAM_MODULES=0
10742 case "${target}" in
10743 *-sysv-*)
10744 HAVE_PTS_STREAM_MODULES=1
10745 ;;
10746 esac
10747
10748 cat >>confdefs.h <<_ACEOF
10749 #define HAVE_PTS_STREAM_MODULES $HAVE_PTS_STREAM_MODULES
10750 _ACEOF
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771 for ac_header in libc.h limits.h malloc.h memory.h string.h signal.h sys/signal.h sys/param.h sys/wait.h sys/file.h sys/fcntl.h sys/ioctl.h sys/stropts.h unistd.h utime.h stdint.h sys/inttypes.h
10772 do
10773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10775 echo "$as_me:$LINENO: checking for $ac_header" >&5
10776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 fi
10780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10782 else
10783 # Is the header compilable?
10784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10786 cat >conftest.$ac_ext <<_ACEOF
10787 #line $LINENO "configure"
10788 /* confdefs.h. */
10789 _ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10793 $ac_includes_default
10794 #include <$ac_header>
10795 _ACEOF
10796 rm -f conftest.$ac_objext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10798 (eval $ac_compile) 2>&5
10799 ac_status=$?
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -s conftest.$ac_objext'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ac_header_compiler=yes
10809 else
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813 ac_header_compiler=no
10814 fi
10815 rm -f conftest.$ac_objext conftest.$ac_ext
10816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10817 echo "${ECHO_T}$ac_header_compiler" >&6
10818
10819 # Is the header present?
10820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10822 cat >conftest.$ac_ext <<_ACEOF
10823 #line $LINENO "configure"
10824 /* confdefs.h. */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 #include <$ac_header>
10830 _ACEOF
10831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } >/dev/null; then
10839 if test -s conftest.err; then
10840 ac_cpp_err=$ac_c_preproc_warn_flag
10841 else
10842 ac_cpp_err=
10843 fi
10844 else
10845 ac_cpp_err=yes
10846 fi
10847 if test -z "$ac_cpp_err"; then
10848 ac_header_preproc=yes
10849 else
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853 ac_header_preproc=no
10854 fi
10855 rm -f conftest.err conftest.$ac_ext
10856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10857 echo "${ECHO_T}$ac_header_preproc" >&6
10858
10859 # So? What about this header?
10860 case $ac_header_compiler:$ac_header_preproc in
10861 yes:no )
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10866 (
10867 cat <<\_ASBOX
10868 ## ------------------------------------ ##
10869 ## Report this to bug-autoconf@gnu.org. ##
10870 ## ------------------------------------ ##
10871 _ASBOX
10872 ) |
10873 sed "s/^/$as_me: WARNING: /" >&2
10874 ;;
10875 no:yes )
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10882 (
10883 cat <<\_ASBOX
10884 ## ------------------------------------ ##
10885 ## Report this to bug-autoconf@gnu.org. ##
10886 ## ------------------------------------ ##
10887 _ASBOX
10888 ) |
10889 sed "s/^/$as_me: WARNING: /" >&2
10890 ;;
10891 esac
10892 echo "$as_me:$LINENO: checking for $ac_header" >&5
10893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897 eval "$as_ac_Header=$ac_header_preproc"
10898 fi
10899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10901
10902 fi
10903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10904 cat >>confdefs.h <<_ACEOF
10905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10906 _ACEOF
10907
10908 fi
10909
10910 done
10911
10912
10913 #--------------------------------------------------------------------
10914 # One of these function needed by NSThread.m
10915 #--------------------------------------------------------------------
10916
10917
10918 for ac_func in nanosleep usleep
10919 do
10920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10921 echo "$as_me:$LINENO: checking for $ac_func" >&5
10922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10923 if eval "test \"\${$as_ac_var+set}\" = set"; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926 cat >conftest.$ac_ext <<_ACEOF
10927 #line $LINENO "configure"
10928 /* confdefs.h. */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933 /* System header to define __stub macros and hopefully few prototypes,
10934 which can conflict with char $ac_func (); below.
10935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10936 <limits.h> exists even on freestanding compilers. */
10937 #ifdef __STDC__
10938 # include <limits.h>
10939 #else
10940 # include <assert.h>
10941 #endif
10942 /* Override any gcc2 internal prototype to avoid an error. */
10943 #ifdef __cplusplus
10944 extern "C"
10945 {
10946 #endif
10947 /* We use char because int might match the return type of a gcc2
10948 builtin and then its argument prototype would still apply. */
10949 char $ac_func ();
10950 /* The GNU C library defines this for functions which it implements
10951 to always fail with ENOSYS. Some functions are actually named
10952 something starting with __ and the normal name is an alias. */
10953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10954 choke me
10955 #else
10956 char (*f) () = $ac_func;
10957 #endif
10958 #ifdef __cplusplus
10959 }
10960 #endif
10961
10962 int
10963 main ()
10964 {
10965 return f != $ac_func;
10966 ;
10967 return 0;
10968 }
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10972 (eval $ac_link) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -s conftest$ac_exeext'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; }; then
10982 eval "$as_ac_var=yes"
10983 else
10984 echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10986
10987 eval "$as_ac_var=no"
10988 fi
10989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10990 fi
10991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10993 if test `eval echo '${'$as_ac_var'}'` = yes; then
10994 cat >>confdefs.h <<_ACEOF
10995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10996 _ACEOF
10997
10998 fi
10999 done
11000
11001
11002 #--------------------------------------------------------------------
11003 # This function needed by NSDebug.m and NSProcessInfo.m
11004 #--------------------------------------------------------------------
11005
11006 for ac_func in strerror
11007 do
11008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11009 echo "$as_me:$LINENO: checking for $ac_func" >&5
11010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11011 if eval "test \"\${$as_ac_var+set}\" = set"; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014 cat >conftest.$ac_ext <<_ACEOF
11015 #line $LINENO "configure"
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 /* System header to define __stub macros and hopefully few prototypes,
11022 which can conflict with char $ac_func (); below.
11023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11024 <limits.h> exists even on freestanding compilers. */
11025 #ifdef __STDC__
11026 # include <limits.h>
11027 #else
11028 # include <assert.h>
11029 #endif
11030 /* Override any gcc2 internal prototype to avoid an error. */
11031 #ifdef __cplusplus
11032 extern "C"
11033 {
11034 #endif
11035 /* We use char because int might match the return type of a gcc2
11036 builtin and then its argument prototype would still apply. */
11037 char $ac_func ();
11038 /* The GNU C library defines this for functions which it implements
11039 to always fail with ENOSYS. Some functions are actually named
11040 something starting with __ and the normal name is an alias. */
11041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11042 choke me
11043 #else
11044 char (*f) () = $ac_func;
11045 #endif
11046 #ifdef __cplusplus
11047 }
11048 #endif
11049
11050 int
11051 main ()
11052 {
11053 return f != $ac_func;
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060 (eval $ac_link) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -s conftest$ac_exeext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 eval "$as_ac_var=yes"
11071 else
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075 eval "$as_ac_var=no"
11076 fi
11077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11078 fi
11079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11081 if test `eval echo '${'$as_ac_var'}'` = yes; then
11082 cat >>confdefs.h <<_ACEOF
11083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11084 _ACEOF
11085
11086 fi
11087 done
11088
11089
11090 #--------------------------------------------------------------------
11091 # This type needed by GSFormat
11092 #--------------------------------------------------------------------
11093 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11094 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11095 if test "${ac_cv_type_uintmax_t+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 cat >conftest.$ac_ext <<_ACEOF
11099 #line $LINENO "configure"
11100 /* confdefs.h. */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11105 $ac_includes_default
11106 int
11107 main ()
11108 {
11109 if ((uintmax_t *) 0)
11110 return 0;
11111 if (sizeof (uintmax_t))
11112 return 0;
11113 ;
11114 return 0;
11115 }
11116 _ACEOF
11117 rm -f conftest.$ac_objext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119 (eval $ac_compile) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -s conftest.$ac_objext'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 ac_cv_type_uintmax_t=yes
11130 else
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11133
11134 ac_cv_type_uintmax_t=no
11135 fi
11136 rm -f conftest.$ac_objext conftest.$ac_ext
11137 fi
11138 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11139 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
11140 if test $ac_cv_type_uintmax_t = yes; then
11141
11142 cat >>confdefs.h <<_ACEOF
11143 #define HAVE_UINTMAX_T 1
11144 _ACEOF
11145
11146
11147 fi
11148
11149
11150 echo "$as_me:$LINENO: checking whether precompiler handles LONG_LONG_MAX" >&5
11151 echo $ECHO_N "checking whether precompiler handles LONG_LONG_MAX... $ECHO_C" >&6
11152 cat >conftest.$ac_ext <<_ACEOF
11153 #line $LINENO "configure"
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #ifdef HAVE_STDINT_H
11160 #include <stdint.h>
11161 #endif
11162 #include <limits.h>
11163 #if defined(LONG_LONG_MAX)
11164 #if LONG_MAX == LONG_LONG_MAX
11165 #error long max equals long long max
11166 #endif
11167 #else
11168 #error long long max not defined
11169 #endif
11170
11171 _ACEOF
11172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11174 ac_status=$?
11175 grep -v '^ *+' conftest.er1 >conftest.err
11176 rm -f conftest.er1
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } >/dev/null; then
11180 if test -s conftest.err; then
11181 ac_cpp_err=$ac_c_preproc_warn_flag
11182 else
11183 ac_cpp_err=
11184 fi
11185 else
11186 ac_cpp_err=yes
11187 fi
11188 if test -z "$ac_cpp_err"; then
11189 llmax=yes
11190 else
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11193
11194 llmax=no
11195 fi
11196 rm -f conftest.err conftest.$ac_ext
11197 if test $llmax = yes; then
11198 echo "$as_me:$LINENO: result: yes" >&5
11199 echo "${ECHO_T}yes" >&6
11200
11201 cat >>confdefs.h <<\_ACEOF
11202 #define HANDLE_LONG_LONG_MAX 1
11203 _ACEOF
11204
11205 else
11206 echo "$as_me:$LINENO: result: no" >&5
11207 echo "${ECHO_T}no" >&6
11208 fi
11209
11210 #
11211 # Solaris and *BSD use LLONG_MAX instead
11212 #
11213 echo "$as_me:$LINENO: checking whether we have LLONG_MAX" >&5
11214 echo $ECHO_N "checking whether we have LLONG_MAX... $ECHO_C" >&6
11215
11216 cat >conftest.$ac_ext <<_ACEOF
11217 #line $LINENO "configure"
11218 /* confdefs.h. */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 #include <limits.h>
11224 #if defined(LLONG_MAX)
11225 #if LONG_MAX == LLONG_MAX
11226 #error long max equals long long max
11227 #endif
11228 #else
11229 #error llong max not defined
11230 #endif
11231
11232 _ACEOF
11233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } >/dev/null; then
11241 if test -s conftest.err; then
11242 ac_cpp_err=$ac_c_preproc_warn_flag
11243 else
11244 ac_cpp_err=
11245 fi
11246 else
11247 ac_cpp_err=yes
11248 fi
11249 if test -z "$ac_cpp_err"; then
11250 llmax=yes
11251 else
11252 echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11254
11255 llmax=no
11256 fi
11257 rm -f conftest.err conftest.$ac_ext
11258
11259 if test $llmax = yes; then
11260 echo "$as_me:$LINENO: result: yes" >&5
11261 echo "${ECHO_T}yes" >&6
11262
11263 cat >>confdefs.h <<\_ACEOF
11264 #define HANDLE_LLONG_MAX 1
11265 _ACEOF
11266
11267 else
11268 echo "$as_me:$LINENO: result: no" >&5
11269 echo "${ECHO_T}no" >&6
11270 fi
11271
11272 for ac_header in wchar.h
11273 do
11274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11276 echo "$as_me:$LINENO: checking for $ac_header" >&5
11277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 fi
11281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11283 else
11284 # Is the header compilable?
11285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11287 cat >conftest.$ac_ext <<_ACEOF
11288 #line $LINENO "configure"
11289 /* confdefs.h. */
11290 _ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 $ac_includes_default
11295 #include <$ac_header>
11296 _ACEOF
11297 rm -f conftest.$ac_objext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11299 (eval $ac_compile) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } &&
11303 { ac_try='test -s conftest.$ac_objext'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }; then
11309 ac_header_compiler=yes
11310 else
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11313
11314 ac_header_compiler=no
11315 fi
11316 rm -f conftest.$ac_objext conftest.$ac_ext
11317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11318 echo "${ECHO_T}$ac_header_compiler" >&6
11319
11320 # Is the header present?
11321 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11323 cat >conftest.$ac_ext <<_ACEOF
11324 #line $LINENO "configure"
11325 /* confdefs.h. */
11326 _ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 #include <$ac_header>
11331 _ACEOF
11332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } >/dev/null; then
11340 if test -s conftest.err; then
11341 ac_cpp_err=$ac_c_preproc_warn_flag
11342 else
11343 ac_cpp_err=
11344 fi
11345 else
11346 ac_cpp_err=yes
11347 fi
11348 if test -z "$ac_cpp_err"; then
11349 ac_header_preproc=yes
11350 else
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354 ac_header_preproc=no
11355 fi
11356 rm -f conftest.err conftest.$ac_ext
11357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11358 echo "${ECHO_T}$ac_header_preproc" >&6
11359
11360 # So? What about this header?
11361 case $ac_header_compiler:$ac_header_preproc in
11362 yes:no )
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367 (
11368 cat <<\_ASBOX
11369 ## ------------------------------------ ##
11370 ## Report this to bug-autoconf@gnu.org. ##
11371 ## ------------------------------------ ##
11372 _ASBOX
11373 ) |
11374 sed "s/^/$as_me: WARNING: /" >&2
11375 ;;
11376 no:yes )
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383 (
11384 cat <<\_ASBOX
11385 ## ------------------------------------ ##
11386 ## Report this to bug-autoconf@gnu.org. ##
11387 ## ------------------------------------ ##
11388 _ASBOX
11389 ) |
11390 sed "s/^/$as_me: WARNING: /" >&2
11391 ;;
11392 esac
11393 echo "$as_me:$LINENO: checking for $ac_header" >&5
11394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 else
11398 eval "$as_ac_Header=$ac_header_preproc"
11399 fi
11400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11402
11403 fi
11404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11405 cat >>confdefs.h <<_ACEOF
11406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11407 _ACEOF
11408
11409 fi
11410
11411 done
11412
11413
11414 #--------------------------------------------------------------------
11415 # Check if short and int values need to be word aligned
11416 #--------------------------------------------------------------------
11417 echo "$as_me:$LINENO: checking short/int needs to be word aligned" >&5
11418 echo $ECHO_N "checking short/int needs to be word aligned... $ECHO_C" >&6
11419 if test "$cross_compiling" = yes; then
11420 NEED_WORD_ALIGNMENT=1
11421 else
11422 cat >conftest.$ac_ext <<_ACEOF
11423 #line $LINENO "configure"
11424 /* confdefs.h. */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include "$srcdir/config/config.align.c"
11430 _ACEOF
11431 rm -f conftest$ac_exeext
11432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11433 (eval $ac_link) 2>&5
11434 ac_status=$?
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442 NEED_WORD_ALIGNMENT=0
11443 else
11444 echo "$as_me: program exited with status $ac_status" >&5
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11447
11448 ( exit $ac_status )
11449 NEED_WORD_ALIGNMENT=1
11450 fi
11451 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11452 fi
11453
11454 cat >>confdefs.h <<_ACEOF
11455 #define NEED_WORD_ALIGNMENT $NEED_WORD_ALIGNMENT
11456 _ACEOF
11457
11458 if test $NEED_WORD_ALIGNMENT = 1; then
11459 echo "$as_me:$LINENO: result: yes" >&5
11460 echo "${ECHO_T}yes" >&6
11461 else
11462 echo "$as_me:$LINENO: result: no" >&5
11463 echo "${ECHO_T}no" >&6
11464 fi
11465
11466 #--------------------------------------------------------------------
11467 # This function needed by NSString for handling of %@ printf directive.
11468 #--------------------------------------------------------------------
11469 echo "$as_me:$LINENO: checking for register_printf_function" >&5
11470 echo $ECHO_N "checking for register_printf_function... $ECHO_C" >&6
11471 if test "${ac_cv_func_register_printf_function+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474 cat >conftest.$ac_ext <<_ACEOF
11475 #line $LINENO "configure"
11476 /* confdefs.h. */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11481 /* System header to define __stub macros and hopefully few prototypes,
11482 which can conflict with char register_printf_function (); below.
11483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11484 <limits.h> exists even on freestanding compilers. */
11485 #ifdef __STDC__
11486 # include <limits.h>
11487 #else
11488 # include <assert.h>
11489 #endif
11490 /* Override any gcc2 internal prototype to avoid an error. */
11491 #ifdef __cplusplus
11492 extern "C"
11493 {
11494 #endif
11495 /* We use char because int might match the return type of a gcc2
11496 builtin and then its argument prototype would still apply. */
11497 char register_printf_function ();
11498 /* The GNU C library defines this for functions which it implements
11499 to always fail with ENOSYS. Some functions are actually named
11500 something starting with __ and the normal name is an alias. */
11501 #if defined (__stub_register_printf_function) || defined (__stub___register_printf_function)
11502 choke me
11503 #else
11504 char (*f) () = register_printf_function;
11505 #endif
11506 #ifdef __cplusplus
11507 }
11508 #endif
11509
11510 int
11511 main ()
11512 {
11513 return f != register_printf_function;
11514 ;
11515 return 0;
11516 }
11517 _ACEOF
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -s conftest$ac_exeext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_cv_func_register_printf_function=yes
11531 else
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535 ac_cv_func_register_printf_function=no
11536 fi
11537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11538 fi
11539 echo "$as_me:$LINENO: result: $ac_cv_func_register_printf_function" >&5
11540 echo "${ECHO_T}$ac_cv_func_register_printf_function" >&6
11541 if test $ac_cv_func_register_printf_function = yes; then
11542 register_printf=1
11543 else
11544 register_printf=0
11545 fi
11546
11547 if test $register_printf = 1; then
11548 if test "$cross_compiling" = yes; then
11549 working_register_printf=1
11550 else
11551 cat >conftest.$ac_ext <<_ACEOF
11552 #line $LINENO "configure"
11553 /* confdefs.h. */
11554 _ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11558 #include "$srcdir/config/config.printf.c"
11559 _ACEOF
11560 rm -f conftest$ac_exeext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11562 (eval $ac_link) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 working_register_printf=1
11572 else
11573 echo "$as_me: program exited with status $ac_status" >&5
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11576
11577 ( exit $ac_status )
11578 working_register_printf=0
11579 fi
11580 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11581 fi
11582 if test $working_register_printf = 1; then
11583
11584 cat >>confdefs.h <<\_ACEOF
11585 #define HAVE_REGISTER_PRINTF_FUNCTION 1
11586 _ACEOF
11587
11588 fi
11589 fi
11590
11591 #--------------------------------------------------------------------
11592 # This function needed by NSString.
11593 #--------------------------------------------------------------------
11594
11595 for ac_func in realpath
11596 do
11597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11598 echo "$as_me:$LINENO: checking for $ac_func" >&5
11599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11600 if eval "test \"\${$as_ac_var+set}\" = set"; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 else
11603 cat >conftest.$ac_ext <<_ACEOF
11604 #line $LINENO "configure"
11605 /* confdefs.h. */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 /* System header to define __stub macros and hopefully few prototypes,
11611 which can conflict with char $ac_func (); below.
11612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613 <limits.h> exists even on freestanding compilers. */
11614 #ifdef __STDC__
11615 # include <limits.h>
11616 #else
11617 # include <assert.h>
11618 #endif
11619 /* Override any gcc2 internal prototype to avoid an error. */
11620 #ifdef __cplusplus
11621 extern "C"
11622 {
11623 #endif
11624 /* We use char because int might match the return type of a gcc2
11625 builtin and then its argument prototype would still apply. */
11626 char $ac_func ();
11627 /* The GNU C library defines this for functions which it implements
11628 to always fail with ENOSYS. Some functions are actually named
11629 something starting with __ and the normal name is an alias. */
11630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11631 choke me
11632 #else
11633 char (*f) () = $ac_func;
11634 #endif
11635 #ifdef __cplusplus
11636 }
11637 #endif
11638
11639 int
11640 main ()
11641 {
11642 return f != $ac_func;
11643 ;
11644 return 0;
11645 }
11646 _ACEOF
11647 rm -f conftest.$ac_objext conftest$ac_exeext
11648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11649 (eval $ac_link) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
11653 { ac_try='test -s conftest$ac_exeext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 eval "$as_ac_var=yes"
11660 else
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664 eval "$as_ac_var=no"
11665 fi
11666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11667 fi
11668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11670 if test `eval echo '${'$as_ac_var'}'` = yes; then
11671 cat >>confdefs.h <<_ACEOF
11672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11673 _ACEOF
11674
11675 fi
11676 done
11677
11678
11679 #--------------------------------------------------------------------
11680 # Check if the C Library defines extern char *program_invocation_name
11681 # Used in critical cases by NSProcessInfo.m
11682 #--------------------------------------------------------------------
11683 echo "$as_me:$LINENO: checking program_invocation_name in C Library" >&5
11684 echo $ECHO_N "checking program_invocation_name in C Library... $ECHO_C" >&6
11685 if test "${program_invocation_name_worked+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 else
11688 if test "$cross_compiling" = yes; then
11689 program_invocation_name_worked=no
11690 else
11691 cat >conftest.$ac_ext <<_ACEOF
11692 #line $LINENO "configure"
11693 /* confdefs.h. */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698
11699 #include <string.h>
11700 int
11701 main (int argc, char *argv[])
11702 {
11703 extern char *program_invocation_name;
11704 return (strcmp (program_invocation_name, argv[0]));
11705 }
11706
11707 _ACEOF
11708 rm -f conftest$ac_exeext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11710 (eval $ac_link) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; }; then
11719 program_invocation_name_worked=yes
11720 else
11721 echo "$as_me: program exited with status $ac_status" >&5
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 ( exit $ac_status )
11726 program_invocation_name_worked=no
11727 fi
11728 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11729 fi
11730 fi
11731
11732 if test $program_invocation_name_worked = yes; then
11733
11734 cat >>confdefs.h <<\_ACEOF
11735 #define HAVE_PROGRAM_INVOCATION_NAME 1
11736 _ACEOF
11737
11738 echo "$as_me:$LINENO: result: yes" >&5
11739 echo "${ECHO_T}yes" >&6
11740 else
11741 echo "$as_me:$LINENO: result: no" >&5
11742 echo "${ECHO_T}no" >&6
11743 fi
11744
11745 #--------------------------------------------------------------------
11746 # Defines HAVE_PROCFS if the kernel supports the /proc filesystem.
11747 # Needed by NSProcessInfo.m
11748 #--------------------------------------------------------------------
11749 # Check whether --enable-procfs or --disable-procfs was given.
11750 if test "${enable_procfs+set}" = set; then
11751 enableval="$enable_procfs"
11752 enable_procfs="$enableval"
11753 else
11754 if test "$cross_compiling" = yes; then enable_procfs=cross; else enable_procfs=yes; fi;
11755 fi;
11756
11757 echo "$as_me:$LINENO: checking kernel support for /proc filesystem" >&5
11758 echo $ECHO_N "checking kernel support for /proc filesystem... $ECHO_C" >&6
11759 if test "${ac_cv_sys_procfs+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762 if test "$enable_procfs" = yes; then
11763 # Suggested change for the following line was
11764 # if test -d /proc/0; then
11765 # but it doesn't work on my linux - /proc/0 does not exist, but /proc
11766 # works fine
11767 if (mount | grep 'proc' >/dev/null 2>/dev/null); then
11768 ac_cv_sys_procfs=yes
11769 else
11770 ac_cv_sys_procfs=no
11771 fi
11772 case "$target_os" in
11773 # Solaris has proc, but it is not readable
11774 solaris*) ac_cv_sys_procfs=no;;
11775 esac
11776 elif test "$enable_procfs" = cross; then
11777 { echo "$as_me:$LINENO: WARNING: Pass --enable-procfs argument to enable use of /proc filesystem." >&5
11778 echo "$as_me: WARNING: Pass --enable-procfs argument to enable use of /proc filesystem." >&2;}
11779 else
11780 ac_cv_sys_procfs=no
11781 fi
11782 fi
11783 echo "$as_me:$LINENO: result: $ac_cv_sys_procfs" >&5
11784 echo "${ECHO_T}$ac_cv_sys_procfs" >&6
11785
11786 if test $ac_cv_sys_procfs = yes; then
11787
11788 cat >>confdefs.h <<\_ACEOF
11789 #define HAVE_PROCFS 1
11790 _ACEOF
11791
11792 fi
11793
11794
11795
11796
11797 echo "$as_me:$LINENO: checking link to exe of process in /proc" >&5
11798 echo $ECHO_N "checking link to exe of process in /proc... $ECHO_C" >&6
11799 if test "${ac_cv_sys_procfs_exe_link+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802 if test "$ac_cv_sys_procfs" = yes; then
11803 # Linux 2.2.x and up
11804 if test -L /proc/self/exe; then
11805 ac_cv_sys_procfs_exe_link=/proc/self/exe
11806 # FreeBSD 4.x and up
11807 elif test -L /proc/curproc/file; then
11808 ac_cv_sys_procfs_exe_link=/proc/curproc/file
11809 else
11810 ac_cv_sys_procfs_exe_link=no
11811 fi
11812 else
11813 ac_cv_sys_procfs_exe_link=no
11814 fi
11815 fi
11816 echo "$as_me:$LINENO: result: $ac_cv_sys_procfs_exe_link" >&5
11817 echo "${ECHO_T}$ac_cv_sys_procfs_exe_link" >&6
11818
11819 if test "$ac_cv_sys_procfs_exe_link" != no; then
11820
11821 cat >>confdefs.h <<_ACEOF
11822 #define PROCFS_EXE_LINK "$ac_cv_sys_procfs_exe_link"
11823 _ACEOF
11824
11825 fi
11826
11827
11828 #--------------------------------------------------------------------
11829 # Check if /proc/$$/cmdline terminates the last argument with a nul
11830 #--------------------------------------------------------------------
11831 echo "$as_me:$LINENO: checking /proc/$$/cmdline terminated by nul" >&5
11832 echo $ECHO_N "checking /proc/$$/cmdline terminated by nul... $ECHO_C" >&6
11833 if test "$cross_compiling" = yes; then
11834 CMDLINE_TERMINATED=0
11835 else
11836 cat >conftest.$ac_ext <<_ACEOF
11837 #line $LINENO "configure"
11838 /* confdefs.h. */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 #include "$srcdir/config/config.proccmd.c"
11844 _ACEOF
11845 rm -f conftest$ac_exeext
11846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11847 (eval $ac_link) 2>&5
11848 ac_status=$?
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; }; then
11856 CMDLINE_TERMINATED=1
11857 else
11858 echo "$as_me: program exited with status $ac_status" >&5
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11861
11862 ( exit $ac_status )
11863 CMDLINE_TERMINATED=0
11864 fi
11865 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11866 fi
11867
11868 cat >>confdefs.h <<_ACEOF
11869 #define CMDLINE_TERMINATED $CMDLINE_TERMINATED
11870 _ACEOF
11871
11872 if test $CMDLINE_TERMINATED = 1; then
11873 echo "$as_me:$LINENO: result: yes" >&5
11874 echo "${ECHO_T}yes" >&6
11875 else
11876 echo "$as_me:$LINENO: result: no" >&5
11877 echo "${ECHO_T}no" >&6
11878 fi
11879
11880 #--------------------------------------------------------------------
11881 # If /proc doesn't work, try kvm (on FreeBSD, for instance)
11882 #--------------------------------------------------------------------
11883
11884 echo "$as_me:$LINENO: checking for kvm_getenvv in -lkvm" >&5
11885 echo $ECHO_N "checking for kvm_getenvv in -lkvm... $ECHO_C" >&6
11886 if test "${ac_cv_lib_kvm_kvm_getenvv+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889 ac_check_lib_save_LIBS=$LIBS
11890 LIBS="-lkvm $LIBS"
11891 cat >conftest.$ac_ext <<_ACEOF
11892 #line $LINENO "configure"
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898
11899 /* Override any gcc2 internal prototype to avoid an error. */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 /* We use char because int might match the return type of a gcc2
11904 builtin and then its argument prototype would still apply. */
11905 char kvm_getenvv ();
11906 int
11907 main ()
11908 {
11909 kvm_getenvv ();
11910 ;
11911 return 0;
11912 }
11913 _ACEOF
11914 rm -f conftest.$ac_objext conftest$ac_exeext
11915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916 (eval $ac_link) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } &&
11920 { ac_try='test -s conftest$ac_exeext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 ac_cv_lib_kvm_kvm_getenvv=yes
11927 else
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11930
11931 ac_cv_lib_kvm_kvm_getenvv=no
11932 fi
11933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11934 LIBS=$ac_check_lib_save_LIBS
11935 fi
11936 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_getenvv" >&5
11937 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_getenvv" >&6
11938 if test $ac_cv_lib_kvm_kvm_getenvv = yes; then
11939 cat >>confdefs.h <<_ACEOF
11940 #define HAVE_LIBKVM 1
11941 _ACEOF
11942
11943 LIBS="-lkvm $LIBS"
11944
11945 fi
11946
11947
11948 #--------------------------------------------------------------------
11949 # Include redefinition of main () only if needed.
11950 # On some systems - force redefinition to be used as the /proc stuff
11951 # doesn't work. Allow NSProcessInfo initialization method also.
11952 #--------------------------------------------------------------------
11953 PASS_ARG=no
11954 case "$target_os" in
11955 cygwin*) PASS_ARG=yes;;
11956 esac
11957
11958 echo "$as_me:$LINENO: checking \"use of pass-through arguments\"" >&5
11959 echo $ECHO_N "checking \"use of pass-through arguments\"... $ECHO_C" >&6
11960 # Check whether --enable-pass-arguments or --disable-pass-arguments was given.
11961 if test "${enable_pass_arguments+set}" = set; then
11962 enableval="$enable_pass_arguments"
11963
11964 else
11965 enable_pass_arguments=$PASS_ARG
11966 fi;
11967
11968 if test "$enable_pass_arguments" = "yes"; then
11969 GS_PASS_ARGUMENTS=1
11970 else
11971 GS_PASS_ARGUMENTS=0
11972 fi
11973
11974 echo "$as_me:$LINENO: result: $enable_pass_arguments" >&5
11975 echo "${ECHO_T}$enable_pass_arguments" >&6
11976
11977 echo "$as_me:$LINENO: checking \"use of fake-main definition\"" >&5
11978 echo $ECHO_N "checking \"use of fake-main definition\"... $ECHO_C" >&6
11979 # Check whether --enable-fake-main or --disable-fake-main was given.
11980 if test "${enable_fake_main+set}" = set; then
11981 enableval="$enable_fake_main"
11982
11983 else
11984 enable_fake_main=no
11985 fi;
11986
11987 if test "$enable_pass_arguments" = "no"; then
11988 case "$target_os" in
11989 freebsd2*) enable_fake_main=yes;;
11990 freebsd*) ;;
11991 netbsd*) enable_fake_main=yes;;
11992 openbsd*) enable_fake_main=yes;;
11993 *sysv*) enable_fake_main=yes;;
11994 esac
11995 fi
11996
11997 GS_FAKE_MAIN=0
11998 if test "$enable_fake_main" = "yes"; then
11999 GS_FAKE_MAIN=1
12000 elif test "$enable_pass_arguments" = "no"; then
12001 if test "$objc_load_method_worked" = yes -a "$ac_cv_sys_procfs" = yes; then
12002 GS_FAKE_MAIN=0
12003 else
12004 GS_FAKE_MAIN=1
12005 enable_fake_main=yes
12006 fi
12007 fi
12008 case "$target_os" in
12009 mingw*) enable_fake_main=no; GS_FAKE_MAIN=0;;
12010 esac
12011
12012 echo "$as_me:$LINENO: result: $enable_fake_main" >&5
12013 echo "${ECHO_T}$enable_fake_main" >&6
12014
12015 #--------------------------------------------------------------------
12016 # Check for FFI interface libraries for invocations
12017 # We enable ffcall by default now.
12018 #--------------------------------------------------------------------
12019 do_enable_libffi=no
12020 # Enable libffi by default on the following machines
12021 case "$target_os" in
12022 darwin*) do_enable_libffi=yes;;
12023 esac
12024
12025 # Check whether --enable-libffi or --disable-libffi was given.
12026 if test "${enable_libffi+set}" = set; then
12027 enableval="$enable_libffi"
12028
12029 else
12030 enable_libffi=$do_enable_libffi
12031 fi;
12032
12033 # Check whether --enable-ffcall or --disable-ffcall was given.
12034 if test "${enable_ffcall+set}" = set; then
12035 enableval="$enable_ffcall"
12036
12037 else
12038 enable_ffcall=yes
12039 fi;
12040
12041 # Check whether --enable-do or --disable-do was given.
12042 if test "${enable_do+set}" = set; then
12043 enableval="$enable_do"
12044
12045 else
12046 enable_do=yes
12047 fi;
12048
12049 # DO isn't used on apple-apple-apple
12050 if test $LIBRARY_COMBO = apple-apple-apple; then
12051 enable_do=no
12052 fi
12053
12054
12055 # Check whether --with-ffcall-include or --without-ffcall-include was given.
12056 if test "${with_ffcall_include+set}" = set; then
12057 withval="$with_ffcall_include"
12058 ffcall_incdir="$withval"
12059 else
12060 ffcall_incdir="no"
12061 fi;
12062 if test ${ffcall_incdir} != "no"; then
12063 ffcall_check_lib_save_cppflags="$CPPFLAGS"
12064 CPPFLAGS="-I${ffcall_incdir} $CPPFLAGS"
12065 fi
12066
12067
12068 # Check whether --with-ffcall-library or --without-ffcall-library was given.
12069 if test "${with_ffcall_library+set}" = set; then
12070 withval="$with_ffcall_library"
12071 ffcall_libdir="$withval"
12072 else
12073 ffcall_libdir="no"
12074 fi;
12075 if test ${ffcall_libdir} != "no"; then
12076 ffcall_check_lib_save_libs="$LIBS"
12077 LIBS="-L${ffcall_libdir} $LIBS"
12078 fi
12079
12080 if test "${ac_cv_header_ffi_h+set}" = set; then
12081 echo "$as_me:$LINENO: checking for ffi.h" >&5
12082 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6
12083 if test "${ac_cv_header_ffi_h+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 fi
12086 echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
12087 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6
12088 else
12089 # Is the header compilable?
12090 echo "$as_me:$LINENO: checking ffi.h usability" >&5
12091 echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6
12092 cat >conftest.$ac_ext <<_ACEOF
12093 #line $LINENO "configure"
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 $ac_includes_default
12100 #include <ffi.h>
12101 _ACEOF
12102 rm -f conftest.$ac_objext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12104 (eval $ac_compile) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -s conftest.$ac_objext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114 ac_header_compiler=yes
12115 else
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 ac_header_compiler=no
12120 fi
12121 rm -f conftest.$ac_objext conftest.$ac_ext
12122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12123 echo "${ECHO_T}$ac_header_compiler" >&6
12124
12125 # Is the header present?
12126 echo "$as_me:$LINENO: checking ffi.h presence" >&5
12127 echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6
12128 cat >conftest.$ac_ext <<_ACEOF
12129 #line $LINENO "configure"
12130 /* confdefs.h. */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 #include <ffi.h>
12136 _ACEOF
12137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12139 ac_status=$?
12140 grep -v '^ *+' conftest.er1 >conftest.err
12141 rm -f conftest.er1
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } >/dev/null; then
12145 if test -s conftest.err; then
12146 ac_cpp_err=$ac_c_preproc_warn_flag
12147 else
12148 ac_cpp_err=
12149 fi
12150 else
12151 ac_cpp_err=yes
12152 fi
12153 if test -z "$ac_cpp_err"; then
12154 ac_header_preproc=yes
12155 else
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12158
12159 ac_header_preproc=no
12160 fi
12161 rm -f conftest.err conftest.$ac_ext
12162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12163 echo "${ECHO_T}$ac_header_preproc" >&6
12164
12165 # So? What about this header?
12166 case $ac_header_compiler:$ac_header_preproc in
12167 yes:no )
12168 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
12169 echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12170 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
12171 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
12172 (
12173 cat <<\_ASBOX
12174 ## ------------------------------------ ##
12175 ## Report this to bug-autoconf@gnu.org. ##
12176 ## ------------------------------------ ##
12177 _ASBOX
12178 ) |
12179 sed "s/^/$as_me: WARNING: /" >&2
12180 ;;
12181 no:yes )
12182 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
12183 echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
12184 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
12185 echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
12186 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
12187 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
12188 (
12189 cat <<\_ASBOX
12190 ## ------------------------------------ ##
12191 ## Report this to bug-autoconf@gnu.org. ##
12192 ## ------------------------------------ ##
12193 _ASBOX
12194 ) |
12195 sed "s/^/$as_me: WARNING: /" >&2
12196 ;;
12197 esac
12198 echo "$as_me:$LINENO: checking for ffi.h" >&5
12199 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6
12200 if test "${ac_cv_header_ffi_h+set}" = set; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12202 else
12203 ac_cv_header_ffi_h=$ac_header_preproc
12204 fi
12205 echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
12206 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6
12207
12208 fi
12209 if test $ac_cv_header_ffi_h = yes; then
12210 :
12211 else
12212 enable_libffi=no
12213 fi
12214
12215
12216
12217 for ac_header in callback.h
12218 do
12219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12221 echo "$as_me:$LINENO: checking for $ac_header" >&5
12222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 fi
12226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12228 else
12229 # Is the header compilable?
12230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12232 cat >conftest.$ac_ext <<_ACEOF
12233 #line $LINENO "configure"
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 $ac_includes_default
12240 #include <$ac_header>
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244 (eval $ac_compile) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try='test -s conftest.$ac_objext'
12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; }; then
12254 ac_header_compiler=yes
12255 else
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12258
12259 ac_header_compiler=no
12260 fi
12261 rm -f conftest.$ac_objext conftest.$ac_ext
12262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12263 echo "${ECHO_T}$ac_header_compiler" >&6
12264
12265 # Is the header present?
12266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12268 cat >conftest.$ac_ext <<_ACEOF
12269 #line $LINENO "configure"
12270 /* confdefs.h. */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12275 #include <$ac_header>
12276 _ACEOF
12277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12279 ac_status=$?
12280 grep -v '^ *+' conftest.er1 >conftest.err
12281 rm -f conftest.er1
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } >/dev/null; then
12285 if test -s conftest.err; then
12286 ac_cpp_err=$ac_c_preproc_warn_flag
12287 else
12288 ac_cpp_err=
12289 fi
12290 else
12291 ac_cpp_err=yes
12292 fi
12293 if test -z "$ac_cpp_err"; then
12294 ac_header_preproc=yes
12295 else
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 ac_header_preproc=no
12300 fi
12301 rm -f conftest.err conftest.$ac_ext
12302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12303 echo "${ECHO_T}$ac_header_preproc" >&6
12304
12305 # So? What about this header?
12306 case $ac_header_compiler:$ac_header_preproc in
12307 yes:no )
12308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12312 (
12313 cat <<\_ASBOX
12314 ## ------------------------------------ ##
12315 ## Report this to bug-autoconf@gnu.org. ##
12316 ## ------------------------------------ ##
12317 _ASBOX
12318 ) |
12319 sed "s/^/$as_me: WARNING: /" >&2
12320 ;;
12321 no:yes )
12322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12328 (
12329 cat <<\_ASBOX
12330 ## ------------------------------------ ##
12331 ## Report this to bug-autoconf@gnu.org. ##
12332 ## ------------------------------------ ##
12333 _ASBOX
12334 ) |
12335 sed "s/^/$as_me: WARNING: /" >&2
12336 ;;
12337 esac
12338 echo "$as_me:$LINENO: checking for $ac_header" >&5
12339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343 eval "$as_ac_Header=$ac_header_preproc"
12344 fi
12345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12347
12348 fi
12349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12350 cat >>confdefs.h <<_ACEOF
12351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12352 _ACEOF
12353
12354 else
12355 enable_ffcall=no
12356 fi
12357
12358 done
12359
12360
12361 have_forward_hook=yes
12362 echo "$as_me:$LINENO: checking \"for forwarding callback in runtime\"" >&5
12363 echo $ECHO_N "checking \"for forwarding callback in runtime\"... $ECHO_C" >&6
12364 cat >conftest.$ac_ext <<_ACEOF
12365 #line $LINENO "configure"
12366 /* confdefs.h. */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 #include <objc/objc-api.h>
12372
12373 _ACEOF
12374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12375 $EGREP "__objc_msg_forward" >/dev/null 2>&1; then
12376 echo "$as_me:$LINENO: result: yes" >&5
12377 echo "${ECHO_T}yes" >&6
12378 else
12379 echo "$as_me:$LINENO: result: no" >&5
12380 echo "${ECHO_T}no" >&6; have_forward_hook=no
12381 fi
12382 rm -f conftest*
12383
12384 if test $have_forward_hook = no; then
12385 enable_libffi=no
12386 enable_ffcall=no
12387 fi
12388
12389 echo "$as_me:$LINENO: checking \"FFI library usage\"" >&5
12390 echo $ECHO_N "checking \"FFI library usage\"... $ECHO_C" >&6
12391 WITH_FFI=none
12392 if test $enable_libffi = yes; then
12393
12394 cat >>confdefs.h <<\_ACEOF
12395 #define USE_LIBFFI 1
12396 _ACEOF
12397
12398 WITH_FFI=libffi
12399 LIBS="$LIBS -lffi"
12400 echo "$as_me:$LINENO: result: libffi" >&5
12401 echo "${ECHO_T}libffi" >&6
12402 elif test $enable_ffcall = yes; then
12403
12404 cat >>confdefs.h <<\_ACEOF
12405 #define USE_FFCALL 1
12406 _ACEOF
12407
12408 WITH_FFI=ffcall
12409 LIBS="$LIBS -lcallback -lavcall"
12410 echo "$as_me:$LINENO: result: ffcall" >&5
12411 echo "${ECHO_T}ffcall" >&6
12412 else
12413 echo "$as_me:$LINENO: result: none" >&5
12414 echo "${ECHO_T}none" >&6
12415 echo
12416 echo "GNUstep requires ffcall or libffi and proper libobjc hooks to do"
12417 echo "invocations and DO."
12418 echo "Make sure one of these libraries is installed and you have a proper"
12419 echo "libobjc library. Otherwise DO will not be compatible with other"
12420 echo "systems, and you will not be able to use gnustep-gui."
12421 echo "(This does not apply on apple-apple-apple systems, except DO will"
12422 echo "still not be compatible with other GNUstep systems.)"
12423 if test $enable_do = yes; then
12424 echo
12425 echo "You most likely do not want to build base without DO support. Many"
12426 echo "things, including all applications, won't work at all without DO."
12427 echo "If you really want to build -base without DO support, add --disable-do"
12428 echo "to the configure arguments."
12429 echo "For more information, read the GNUstep build guide, ffcall section:"
12430 echo "http://documents.made-it.com/GNUstep/buildguide.html#FOREIGN.FUNCTION.INTERFACES"
12431 { { echo "$as_me:$LINENO: error: Incomplete support for ffi functionality." >&5
12432 echo "$as_me: error: Incomplete support for ffi functionality." >&2;}
12433 { (exit 1); exit 1; }; }
12434 fi
12435 { echo "$as_me:$LINENO: WARNING: Incomplete support for ffi funtionality." >&5
12436 echo "$as_me: WARNING: Incomplete support for ffi funtionality." >&2;}
12437 fi
12438
12439
12440 #--------------------------------------------------------------------
12441 # Check recent libxml for Properytlists, GSXML, GSDoc etc.
12442 #--------------------------------------------------------------------
12443
12444 # Save CFLAGS and LIBS as AM_PATH_XML clobbers these variables regardless
12445 # of the success of the macro.
12446 saved_LIBS="$LIBS"
12447 saved_CFLAGS="$CFLAGS"
12448
12449
12450
12451 # Check whether --with-xml-prefix or --without-xml-prefix was given.
12452 if test "${with_xml_prefix+set}" = set; then
12453 withval="$with_xml_prefix"
12454 xml_config_prefix="$withval"
12455 else
12456 xml_config_prefix=""
12457 fi;
12458 # Check whether --enable-xmltest or --disable-xmltest was given.
12459 if test "${enable_xmltest+set}" = set; then
12460 enableval="$enable_xmltest"
12461
12462 else
12463 enable_xmltest=yes
12464 fi;
12465
12466 if test x$xml_config_prefix != x ; then
12467 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
12468 if test x${XML_CONFIG+set} != xset ; then
12469 XML_CONFIG=$xml_config_prefix/bin/xml-config
12470 fi
12471 fi
12472
12473 # Extract the first word of "xml2-config", so it can be a program name with args.
12474 set dummy xml2-config; ac_word=$2
12475 echo "$as_me:$LINENO: checking for $ac_word" >&5
12476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12477 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480 case $XML2_CONFIG in
12481 [\\/]* | ?:[\\/]*)
12482 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
12483 ;;
12484 *)
12485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12486 for as_dir in $PATH
12487 do
12488 IFS=$as_save_IFS
12489 test -z "$as_dir" && as_dir=.
12490 for ac_exec_ext in '' $ac_executable_extensions; do
12491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12492 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12494 break 2
12495 fi
12496 done
12497 done
12498
12499 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
12500 ;;
12501 esac
12502 fi
12503 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
12504
12505 if test -n "$XML2_CONFIG"; then
12506 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
12507 echo "${ECHO_T}$XML2_CONFIG" >&6
12508 else
12509 echo "$as_me:$LINENO: result: no" >&5
12510 echo "${ECHO_T}no" >&6
12511 fi
12512
12513 if test "$XML2_CONFIG" = "no" ; then
12514 # Extract the first word of "xml-config", so it can be a program name with args.
12515 set dummy xml-config; ac_word=$2
12516 echo "$as_me:$LINENO: checking for $ac_word" >&5
12517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12518 if test "${ac_cv_path_XML_CONFIG+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521 case $XML_CONFIG in
12522 [\\/]* | ?:[\\/]*)
12523 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
12524 ;;
12525 *)
12526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527 for as_dir in $PATH
12528 do
12529 IFS=$as_save_IFS
12530 test -z "$as_dir" && as_dir=.
12531 for ac_exec_ext in '' $ac_executable_extensions; do
12532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12533 ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12535 break 2
12536 fi
12537 done
12538 done
12539
12540 test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
12541 ;;
12542 esac
12543 fi
12544 XML_CONFIG=$ac_cv_path_XML_CONFIG
12545
12546 if test -n "$XML_CONFIG"; then
12547 echo "$as_me:$LINENO: result: $XML_CONFIG" >&5
12548 echo "${ECHO_T}$XML_CONFIG" >&6
12549 else
12550 echo "$as_me:$LINENO: result: no" >&5
12551 echo "${ECHO_T}no" >&6
12552 fi
12553
12554 else
12555 XML_CONFIG=$XML2_CONFIG
12556 fi
12557 min_xml_version=2.3.0
12558 echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
12559 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
12560 no_xml=""
12561 if test "$XML_CONFIG" = "no" ; then
12562 no_xml=yes
12563 else
12564 XML_CFLAGS=`$XML_CONFIG $xml_config_args --cflags`
12565 XML_LIBS=`$XML_CONFIG $xml_config_args --libs`
12566 xml_config_major_version=`$XML_CONFIG $xml_config_args --version | \
12567 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12568 xml_config_minor_version=`$XML_CONFIG $xml_config_args --version | \
12569 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12570 xml_config_micro_version=`$XML_CONFIG $xml_config_args --version | \
12571 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12572 # Strip '-L/usr/lib' off since this is always in the link path.
12573 XML_LIBS=`echo $XML_LIBS | sed -e 's|-L/usr/lib||'`
12574
12575 if test "x$enable_xmltest" = "xyes" ; then
12576 ac_save_CFLAGS="$CFLAGS"
12577 ac_save_LIBS="$LIBS"
12578 CFLAGS="$CFLAGS $XML_CFLAGS"
12579 LIBS="$XML_LIBS $LIBS"
12580 rm -f conf.xmltest
12581 if test "$cross_compiling" = yes; then
12582 echo $ac_n "cross compiling; assumed OK... $ac_c"
12583 else
12584 cat >conftest.$ac_ext <<_ACEOF
12585 #line $LINENO "configure"
12586 /* confdefs.h. */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12591
12592 #include <stdlib.h>
12593 #include <stdio.h>
12594 #include <libxml/xmlversion.h>
12595 #include <libxml/parser.h>
12596
12597 int
12598 main()
12599 {
12600 int xml_major_version, xml_minor_version, xml_micro_version;
12601 int major, minor, micro;
12602 char *tmp_version;
12603
12604 system("touch conf.xmltest");
12605
12606 tmp_version = xmlStrdup("$min_xml_version");
12607 if(sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12608 printf("%s, bad version string\n", "$min_xml_version");
12609 exit(1);
12610 }
12611
12612 tmp_version = xmlStrdup(LIBXML_DOTTED_VERSION);
12613 if(sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
12614 printf("%s, bad version string\n", "$min_xml_version");
12615 exit(1);
12616 }
12617
12618 if((xml_major_version != $xml_config_major_version) ||
12619 (xml_minor_version != $xml_config_minor_version) ||
12620 (xml_micro_version != $xml_config_micro_version))
12621 {
12622 printf("\n*** 'xml-config --version' returned %d.%d.%d, but libxml (%d.%d.%d)\n",
12623 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version,
12624 xml_major_version, xml_minor_version, xml_micro_version);
12625 printf("*** was found! If xml-config was correct, then it is best\n");
12626 printf("*** to remove the old version of libxml. You may also be able to fix the error\n");
12627 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12628 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12629 printf("*** required on your system.\n");
12630 printf("*** If xml-config was wrong, set the environment variable XML_CONFIG\n");
12631 printf("*** to point to the correct copy of xml-config, and remove the file config.cache\n");
12632 printf("*** before re-running configure\n");
12633 }
12634 else
12635 {
12636 if ((xml_major_version > major) ||
12637 ((xml_major_version == major) && (xml_minor_version > minor)) ||
12638 ((xml_major_version == major) && (xml_minor_version == minor) &&
12639 (xml_micro_version >= micro)))
12640 {
12641 return 0;
12642 }
12643 else
12644 {
12645 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
12646 xml_major_version, xml_minor_version, xml_micro_version);
12647 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
12648 major, minor, micro);
12649 printf("*** libxml is always available from ftp://ftp.gnome.org.\n");
12650 printf("***\n");
12651 printf("*** If you have already installed a sufficiently new version, this error\n");
12652 printf("*** probably means that the wrong copy of the xml-config shell script is\n");
12653 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12654 printf("*** of libxml, but you can also set the XML_CONFIG environment to point to the\n");
12655 printf("*** correct copy of xml-config. (In this case, you will have to\n");
12656 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12657 printf("*** so that the correct libraries are found at run-time))\n");
12658 }
12659 }
12660 return 1;
12661 }
12662
12663 _ACEOF
12664 rm -f conftest$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666 (eval $ac_link) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 :
12676 else
12677 echo "$as_me: program exited with status $ac_status" >&5
12678 echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12680
12681 ( exit $ac_status )
12682 no_xml=yes
12683 fi
12684 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12685 fi
12686
12687 CFLAGS="$ac_save_CFLAGS"
12688 LIBS="$ac_save_LIBS"
12689 fi
12690 fi
12691
12692 if test "x$no_xml" = x ; then
12693 echo "$as_me:$LINENO: result: yes" >&5
12694 echo "${ECHO_T}yes" >&6
12695 enable_libxml=yes
12696 else
12697 echo "$as_me:$LINENO: result: no" >&5
12698 echo "${ECHO_T}no" >&6
12699 if test "$XML_CONFIG" = "no" ; then
12700 echo "*** The xml-config script installed by libxml could not be found"
12701 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
12702 echo "*** your path, or set the XML_CONFIG environment variable to the"
12703 echo "*** full path to xml-config."
12704 else
12705 if test -f conf.xmltest ; then
12706 :
12707 else
12708 echo "*** Could not run libxml test program, checking why..."
12709 CFLAGS="$CFLAGS $XML_CFLAGS"
12710 LIBS="$LIBS $XML_LIBS"
12711 fi
12712 fi
12713
12714 XML_CFLAGS=""
12715 XML_LIBS=""
12716 enable_libxml=no
12717 fi
12718
12719
12720 rm -f conf.xmltest
12721
12722 if test $enable_libxml = yes; then
12723 CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
12724 INCLUDE_FLAGS="$INCLUDE_FLAGS $XML_CFLAGS"
12725 LIBS="$LIBS $XML_LIBS"
12726 HAVE_LIBXML=1
12727
12728 cat >>confdefs.h <<\_ACEOF
12729 #define HAVE_LIBXML 1
12730 _ACEOF
12731
12732 else
12733 HAVE_LIBXML=0
12734 # Restore the CFLAGS and LIBS because AM_PATH_XML messes them
12735 LIBS="$saved_LIBS"
12736 CFLAGS="$saved_CFLAGS"
12737 fi
12738
12739
12740 #--------------------------------------------------------------------
12741 # Check GMP for NSDecimal
12742 #--------------------------------------------------------------------
12743
12744 # Check whether --with-gmp-include or --without-gmp-include was given.
12745 if test "${with_gmp_include+set}" = set; then
12746 withval="$with_gmp_include"
12747 gmp_incdir="$withval"
12748 else
12749 gmp_incdir="no"
12750 fi;
12751
12752
12753 # Check whether --with-gmp-library or --without-gmp-library was given.
12754 if test "${with_gmp_library+set}" = set; then
12755 withval="$with_gmp_library"
12756 gmp_libdir="$withval"
12757 else
12758 gmp_libdir="no"
12759 fi;
12760
12761 cppflags_temp="$CPPFLAGS"
12762 libs_temp=$LIBS
12763
12764 if test "$gmp_incdir" != "no"; then
12765 CPPFLAGS="$CPPFLAGS -I$gmp_incdir"
12766 INCLUDE_FLAGS="$INCLUDE_FLAGS -I$gmp_incdir"
12767 fi
12768 if test "$gmp_libdir" != "no"; then
12769 LIBS="$LIBS -L$gmp_libdir"
12770 fi
12771
12772 USE_GMP=0
12773
12774 for ac_header in gmp.h
12775 do
12776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12778 echo "$as_me:$LINENO: checking for $ac_header" >&5
12779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 fi
12783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12785 else
12786 # Is the header compilable?
12787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12789 cat >conftest.$ac_ext <<_ACEOF
12790 #line $LINENO "configure"
12791 /* confdefs.h. */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796 $ac_includes_default
12797 #include <$ac_header>
12798 _ACEOF
12799 rm -f conftest.$ac_objext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try='test -s conftest.$ac_objext'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_header_compiler=yes
12812 else
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12815
12816 ac_header_compiler=no
12817 fi
12818 rm -f conftest.$ac_objext conftest.$ac_ext
12819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12820 echo "${ECHO_T}$ac_header_compiler" >&6
12821
12822 # Is the header present?
12823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12825 cat >conftest.$ac_ext <<_ACEOF
12826 #line $LINENO "configure"
12827 /* confdefs.h. */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12832 #include <$ac_header>
12833 _ACEOF
12834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } >/dev/null; then
12842 if test -s conftest.err; then
12843 ac_cpp_err=$ac_c_preproc_warn_flag
12844 else
12845 ac_cpp_err=
12846 fi
12847 else
12848 ac_cpp_err=yes
12849 fi
12850 if test -z "$ac_cpp_err"; then
12851 ac_header_preproc=yes
12852 else
12853 echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12855
12856 ac_header_preproc=no
12857 fi
12858 rm -f conftest.err conftest.$ac_ext
12859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12860 echo "${ECHO_T}$ac_header_preproc" >&6
12861
12862 # So? What about this header?
12863 case $ac_header_compiler:$ac_header_preproc in
12864 yes:no )
12865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12869 (
12870 cat <<\_ASBOX
12871 ## ------------------------------------ ##
12872 ## Report this to bug-autoconf@gnu.org. ##
12873 ## ------------------------------------ ##
12874 _ASBOX
12875 ) |
12876 sed "s/^/$as_me: WARNING: /" >&2
12877 ;;
12878 no:yes )
12879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12885 (
12886 cat <<\_ASBOX
12887 ## ------------------------------------ ##
12888 ## Report this to bug-autoconf@gnu.org. ##
12889 ## ------------------------------------ ##
12890 _ASBOX
12891 ) |
12892 sed "s/^/$as_me: WARNING: /" >&2
12893 ;;
12894 esac
12895 echo "$as_me:$LINENO: checking for $ac_header" >&5
12896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900 eval "$as_ac_Header=$ac_header_preproc"
12901 fi
12902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12904
12905 fi
12906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12907 cat >>confdefs.h <<_ACEOF
12908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12909 _ACEOF
12910
12911 fi
12912
12913 done
12914
12915 if test $ac_cv_header_gmp_h = yes; then
12916 echo "$as_me:$LINENO: checking for mpf_abs in -lgmp" >&5
12917 echo $ECHO_N "checking for mpf_abs in -lgmp... $ECHO_C" >&6
12918 if test "${ac_cv_lib_gmp_mpf_abs+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921 ac_check_lib_save_LIBS=$LIBS
12922 LIBS="-lgmp $LIBS"
12923 cat >conftest.$ac_ext <<_ACEOF
12924 #line $LINENO "configure"
12925 /* confdefs.h. */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12930
12931 /* Override any gcc2 internal prototype to avoid an error. */
12932 #ifdef __cplusplus
12933 extern "C"
12934 #endif
12935 /* We use char because int might match the return type of a gcc2
12936 builtin and then its argument prototype would still apply. */
12937 char mpf_abs ();
12938 int
12939 main ()
12940 {
12941 mpf_abs ();
12942 ;
12943 return 0;
12944 }
12945 _ACEOF
12946 rm -f conftest.$ac_objext conftest$ac_exeext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12948 (eval $ac_link) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
12952 { ac_try='test -s conftest$ac_exeext'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12958 ac_cv_lib_gmp_mpf_abs=yes
12959 else
12960 echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12962
12963 ac_cv_lib_gmp_mpf_abs=no
12964 fi
12965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12966 LIBS=$ac_check_lib_save_LIBS
12967 fi
12968 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_mpf_abs" >&5
12969 echo "${ECHO_T}$ac_cv_lib_gmp_mpf_abs" >&6
12970 if test $ac_cv_lib_gmp_mpf_abs = yes; then
12971 gmp_ok=yes
12972 else
12973 gmp_ok=no
12974 fi
12975
12976 if test "$gmp_ok" = no; then
12977 echo "$as_me:$LINENO: checking for __gmpf_abs in -lgmp" >&5
12978 echo $ECHO_N "checking for __gmpf_abs in -lgmp... $ECHO_C" >&6
12979 if test "${ac_cv_lib_gmp___gmpf_abs+set}" = set; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 else
12982 ac_check_lib_save_LIBS=$LIBS
12983 LIBS="-lgmp $LIBS"
12984 cat >conftest.$ac_ext <<_ACEOF
12985 #line $LINENO "configure"
12986 /* confdefs.h. */
12987 _ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h. */
12991
12992 /* Override any gcc2 internal prototype to avoid an error. */
12993 #ifdef __cplusplus
12994 extern "C"
12995 #endif
12996 /* We use char because int might match the return type of a gcc2
12997 builtin and then its argument prototype would still apply. */
12998 char __gmpf_abs ();
12999 int
13000 main ()
13001 {
13002 __gmpf_abs ();
13003 ;
13004 return 0;
13005 }
13006 _ACEOF
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13009 (eval $ac_link) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -s conftest$ac_exeext'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_lib_gmp___gmpf_abs=yes
13020 else
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13023
13024 ac_cv_lib_gmp___gmpf_abs=no
13025 fi
13026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13027 LIBS=$ac_check_lib_save_LIBS
13028 fi
13029 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpf_abs" >&5
13030 echo "${ECHO_T}$ac_cv_lib_gmp___gmpf_abs" >&6
13031 if test $ac_cv_lib_gmp___gmpf_abs = yes; then
13032 gmp_ok=yes
13033 else
13034 gmp_ok=no
13035 fi
13036
13037 fi
13038 if test "$gmp_ok" = yes; then
13039 LIBS="$LIBS -lgmp"
13040 USE_GMP=1
13041 fi
13042 fi
13043
13044 if test "$USE_GMP" = "0"; then
13045 CPPFLAGS="$cppflags_temp";
13046 LIBS="$libs_temp";
13047 fi
13048
13049
13050 #--------------------------------------------------------------------
13051 # Check for iconv support (for Unicode conversion).
13052 #--------------------------------------------------------------------
13053 # Check in the glibc library
13054
13055 for ac_func in iconv
13056 do
13057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13058 echo "$as_me:$LINENO: checking for $ac_func" >&5
13059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13060 if eval "test \"\${$as_ac_var+set}\" = set"; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063 cat >conftest.$ac_ext <<_ACEOF
13064 #line $LINENO "configure"
13065 /* confdefs.h. */
13066 _ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h. */
13070 /* System header to define __stub macros and hopefully few prototypes,
13071 which can conflict with char $ac_func (); below.
13072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13073 <limits.h> exists even on freestanding compilers. */
13074 #ifdef __STDC__
13075 # include <limits.h>
13076 #else
13077 # include <assert.h>
13078 #endif
13079 /* Override any gcc2 internal prototype to avoid an error. */
13080 #ifdef __cplusplus
13081 extern "C"
13082 {
13083 #endif
13084 /* We use char because int might match the return type of a gcc2
13085 builtin and then its argument prototype would still apply. */
13086 char $ac_func ();
13087 /* The GNU C library defines this for functions which it implements
13088 to always fail with ENOSYS. Some functions are actually named
13089 something starting with __ and the normal name is an alias. */
13090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13091 choke me
13092 #else
13093 char (*f) () = $ac_func;
13094 #endif
13095 #ifdef __cplusplus
13096 }
13097 #endif
13098
13099 int
13100 main ()
13101 {
13102 return f != $ac_func;
13103 ;
13104 return 0;
13105 }
13106 _ACEOF
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13109 (eval $ac_link) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -s conftest$ac_exeext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 eval "$as_ac_var=yes"
13120 else
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13123
13124 eval "$as_ac_var=no"
13125 fi
13126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13127 fi
13128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13130 if test `eval echo '${'$as_ac_var'}'` = yes; then
13131 cat >>confdefs.h <<_ACEOF
13132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13133 _ACEOF
13134
13135 fi
13136 done
13137
13138 if test $ac_cv_func_iconv = no; then
13139 # Check if we have a libiconv library
13140
13141 # Check whether --with-libiconv-library or --without-libiconv-library was given.
13142 if test "${with_libiconv_library+set}" = set; then
13143 withval="$with_libiconv_library"
13144 libiconv_libdir="$withval"
13145 else
13146 libiconv_libdir="no"
13147 fi;
13148 ldflags_temp="$LDFLAGS"
13149
13150 if test "$libiconv_libdir" != "no"; then
13151 LDFLAGS="$LDFLAGS -L$libiconv_libdir"
13152 LIBS="$LIBS -L$libiconv_libdir"
13153 fi
13154
13155 # BSDs install this lib as libgiconv
13156
13157 echo "$as_me:$LINENO: checking for main in -lgiconv" >&5
13158 echo $ECHO_N "checking for main in -lgiconv... $ECHO_C" >&6
13159 if test "${ac_cv_lib_giconv_main+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162 ac_check_lib_save_LIBS=$LIBS
13163 LIBS="-lgiconv $LIBS"
13164 cat >conftest.$ac_ext <<_ACEOF
13165 #line $LINENO "configure"
13166 /* confdefs.h. */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171
13172
13173 int
13174 main ()
13175 {
13176 main ();
13177 ;
13178 return 0;
13179 }
13180 _ACEOF
13181 rm -f conftest.$ac_objext conftest$ac_exeext
13182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13183 (eval $ac_link) 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try='test -s conftest$ac_exeext'
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 ac_cv_lib_giconv_main=yes
13194 else
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13197
13198 ac_cv_lib_giconv_main=no
13199 fi
13200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13201 LIBS=$ac_check_lib_save_LIBS
13202 fi
13203 echo "$as_me:$LINENO: result: $ac_cv_lib_giconv_main" >&5
13204 echo "${ECHO_T}$ac_cv_lib_giconv_main" >&6
13205 if test $ac_cv_lib_giconv_main = yes; then
13206 cat >>confdefs.h <<_ACEOF
13207 #define HAVE_LIBGICONV 1
13208 _ACEOF
13209
13210 LIBS="-lgiconv $LIBS"
13211
13212 fi
13213
13214 if test x"$ac_cv_lib_giconv_main" = xyes; then
13215
13216 cat >>confdefs.h <<\_ACEOF
13217 #define HAVE_ICONV 1
13218 _ACEOF
13219
13220
13221 cat >>confdefs.h <<\_ACEOF
13222 #define HAVE_GICONV_H 1
13223 _ACEOF
13224
13225 else
13226
13227 echo "$as_me:$LINENO: checking for main in -liconv" >&5
13228 echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6
13229 if test "${ac_cv_lib_iconv_main+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13231 else
13232 ac_check_lib_save_LIBS=$LIBS
13233 LIBS="-liconv $LIBS"
13234 cat >conftest.$ac_ext <<_ACEOF
13235 #line $LINENO "configure"
13236 /* confdefs.h. */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13241
13242
13243 int
13244 main ()
13245 {
13246 main ();
13247 ;
13248 return 0;
13249 }
13250 _ACEOF
13251 rm -f conftest.$ac_objext conftest$ac_exeext
13252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13253 (eval $ac_link) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } &&
13257 { ac_try='test -s conftest$ac_exeext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_cv_lib_iconv_main=yes
13264 else
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 ac_cv_lib_iconv_main=no
13269 fi
13270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13271 LIBS=$ac_check_lib_save_LIBS
13272 fi
13273 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5
13274 echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6
13275 if test $ac_cv_lib_iconv_main = yes; then
13276 cat >>confdefs.h <<_ACEOF
13277 #define HAVE_LIBICONV 1
13278 _ACEOF
13279
13280 LIBS="-liconv $LIBS"
13281
13282 fi
13283
13284 if test x"$ac_cv_lib_iconv_main" = xyes; then
13285
13286 cat >>confdefs.h <<\_ACEOF
13287 #define HAVE_ICONV 1
13288 _ACEOF
13289
13290 fi
13291 fi
13292 LDFLAGS="$ldflags_temp"
13293 fi
13294
13295
13296
13297
13298
13299 subdirs="$subdirs Source/mframe SSL"
13300
13301
13302 #--------------------------------------------------------------------
13303 # Record the version
13304 #--------------------------------------------------------------------
13305 echo "$as_me:$LINENO: checking for the version of gnustep-base we are compiling" >&5
13306 echo $ECHO_N "checking for the version of gnustep-base we are compiling... $ECHO_C" >&6
13307 if test -f "Version"; then
13308 . ./Version
13309 fi
13310 echo "$as_me:$LINENO: result: $VERSION" >&5
13311 echo "${ECHO_T}$VERSION" >&6
13312
13313
13314
13315
13316
13317
13318 #--------------------------------------------------------------------
13319 # Write the Makefiles
13320 #--------------------------------------------------------------------
13321 ac_config_files="$ac_config_files config.mak base.make Headers/Additions/GNUstepBase/GSConfig.h Headers/Additions/GNUstepBase/preface.h"
13322
13323 cat >confcache <<\_ACEOF
13324 # This file is a shell script that caches the results of configure
13325 # tests run on this system so they can be shared between configure
13326 # scripts and configure runs, see configure's option --config-cache.
13327 # It is not useful on other systems. If it contains results you don't
13328 # want to keep, you may remove or edit it.
13329 #
13330 # config.status only pays attention to the cache file if you give it
13331 # the --recheck option to rerun configure.
13332 #
13333 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13334 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13335 # following values.
13336
13337 _ACEOF
13338
13339 # The following way of writing the cache mishandles newlines in values,
13340 # but we know of no workaround that is simple, portable, and efficient.
13341 # So, don't put newlines in cache variables' values.
13342 # Ultrix sh set writes to stderr and can't be redirected directly,
13343 # and sets the high bit in the cache file unless we assign to the vars.
13344 {
13345 (set) 2>&1 |
13346 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13347 *ac_space=\ *)
13348 # `set' does not quote correctly, so add quotes (double-quote
13349 # substitution turns \\\\ into \\, and sed turns \\ into \).
13350 sed -n \
13351 "s/'/'\\\\''/g;
13352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13353 ;;
13354 *)
13355 # `set' quotes correctly as required by POSIX, so do not add quotes.
13356 sed -n \
13357 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13358 ;;
13359 esac;
13360 } |
13361 sed '
13362 t clear
13363 : clear
13364 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13365 t end
13366 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13367 : end' >>confcache
13368 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13369 if test -w $cache_file; then
13370 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13371 cat confcache >$cache_file
13372 else
13373 echo "not updating unwritable cache $cache_file"
13374 fi
13375 fi
13376 rm -f confcache
13377
13378 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13379 # Let make expand exec_prefix.
13380 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13381
13382 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13383 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13384 # trailing colons and then remove the whole line if VPATH becomes empty
13385 # (actually we leave an empty line to preserve line numbers).
13386 if test "x$srcdir" = x.; then
13387 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13388 s/:*\$(srcdir):*/:/;
13389 s/:*\${srcdir}:*/:/;
13390 s/:*@srcdir@:*/:/;
13391 s/^\([^=]*=[ ]*\):*/\1/;
13392 s/:*$//;
13393 s/^[^=]*=[ ]*$//;
13394 }'
13395 fi
13396
13397 DEFS=-DHAVE_CONFIG_H
13398
13399 ac_libobjs=
13400 ac_ltlibobjs=
13401 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13402 # 1. Remove the extension, and $U if already installed.
13403 ac_i=`echo "$ac_i" |
13404 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13405 # 2. Add them.
13406 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13407 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13408 done
13409 LIBOBJS=$ac_libobjs
13410
13411 LTLIBOBJS=$ac_ltlibobjs
13412
13413
13414
13415 : ${CONFIG_STATUS=./config.status}
13416 ac_clean_files_save=$ac_clean_files
13417 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13418 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13419 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13420 cat >$CONFIG_STATUS <<_ACEOF
13421 #! $SHELL
13422 # Generated by $as_me.
13423 # Run this file to recreate the current configuration.
13424 # Compiler output produced by configure, useful for debugging
13425 # configure, is in config.log if it exists.
13426
13427 debug=false
13428 ac_cs_recheck=false
13429 ac_cs_silent=false
13430 SHELL=\${CONFIG_SHELL-$SHELL}
13431 _ACEOF
13432
13433 cat >>$CONFIG_STATUS <<\_ACEOF
13434 ## --------------------- ##
13435 ## M4sh Initialization. ##
13436 ## --------------------- ##
13437
13438 # Be Bourne compatible
13439 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13440 emulate sh
13441 NULLCMD=:
13442 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13443 # is contrary to our usage. Disable this feature.
13444 alias -g '${1+"$@"}'='"$@"'
13445 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13446 set -o posix
13447 fi
13448
13449 # Support unset when possible.
13450 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13451 as_unset=unset
13452 else
13453 as_unset=false
13454 fi
13455
13456
13457 # Work around bugs in pre-3.0 UWIN ksh.
13458 $as_unset ENV MAIL MAILPATH
13459 PS1='$ '
13460 PS2='> '
13461 PS4='+ '
13462
13463 # NLS nuisances.
13464 for as_var in \
13465 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13466 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13467 LC_TELEPHONE LC_TIME
13468 do
13469 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
13470 eval $as_var=C; export $as_var
13471 else
13472 $as_unset $as_var
13473 fi
13474 done
13475
13476 # Required to use basename.
13477 if expr a : '\(a\)' >/dev/null 2>&1; then
13478 as_expr=expr
13479 else
13480 as_expr=false
13481 fi
13482
13483 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13484 as_basename=basename
13485 else
13486 as_basename=false
13487 fi
13488
13489
13490 # Name of the executable.
13491 as_me=`$as_basename "$0" ||
13492 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13493 X"$0" : 'X\(//\)$' \| \
13494 X"$0" : 'X\(/\)$' \| \
13495 . : '\(.\)' 2>/dev/null ||
13496 echo X/"$0" |
13497 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13498 /^X\/\(\/\/\)$/{ s//\1/; q; }
13499 /^X\/\(\/\).*/{ s//\1/; q; }
13500 s/.*/./; q'`
13501
13502
13503 # PATH needs CR, and LINENO needs CR and PATH.
13504 # Avoid depending upon Character Ranges.
13505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13508 as_cr_digits='0123456789'
13509 as_cr_alnum=$as_cr_Letters$as_cr_digits
13510
13511 # The user is always right.
13512 if test "${PATH_SEPARATOR+set}" != set; then
13513 echo "#! /bin/sh" >conf$$.sh
13514 echo "exit 0" >>conf$$.sh
13515 chmod +x conf$$.sh
13516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13517 PATH_SEPARATOR=';'
13518 else
13519 PATH_SEPARATOR=:
13520 fi
13521 rm -f conf$$.sh
13522 fi
13523
13524
13525 as_lineno_1=$LINENO
13526 as_lineno_2=$LINENO
13527 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13528 test "x$as_lineno_1" != "x$as_lineno_2" &&
13529 test "x$as_lineno_3" = "x$as_lineno_2" || {
13530 # Find who we are. Look in the path if we contain no path at all
13531 # relative or not.
13532 case $0 in
13533 *[\\/]* ) as_myself=$0 ;;
13534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535 for as_dir in $PATH
13536 do
13537 IFS=$as_save_IFS
13538 test -z "$as_dir" && as_dir=.
13539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13540 done
13541
13542 ;;
13543 esac
13544 # We did not find ourselves, most probably we were run as `sh COMMAND'
13545 # in which case we are not to be found in the path.
13546 if test "x$as_myself" = x; then
13547 as_myself=$0
13548 fi
13549 if test ! -f "$as_myself"; then
13550 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13551 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13552 { (exit 1); exit 1; }; }
13553 fi
13554 case $CONFIG_SHELL in
13555 '')
13556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13558 do
13559 IFS=$as_save_IFS
13560 test -z "$as_dir" && as_dir=.
13561 for as_base in sh bash ksh sh5; do
13562 case $as_dir in
13563 /*)
13564 if ("$as_dir/$as_base" -c '
13565 as_lineno_1=$LINENO
13566 as_lineno_2=$LINENO
13567 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13568 test "x$as_lineno_1" != "x$as_lineno_2" &&
13569 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13570 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13571 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13572 CONFIG_SHELL=$as_dir/$as_base
13573 export CONFIG_SHELL
13574 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13575 fi;;
13576 esac
13577 done
13578 done
13579 ;;
13580 esac
13581
13582 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13583 # uniformly replaced by the line number. The first 'sed' inserts a
13584 # line-number line before each line; the second 'sed' does the real
13585 # work. The second script uses 'N' to pair each line-number line
13586 # with the numbered line, and appends trailing '-' during
13587 # substitution so that $LINENO is not a special case at line end.
13588 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13589 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13590 sed '=' <$as_myself |
13591 sed '
13592 N
13593 s,$,-,
13594 : loop
13595 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13596 t loop
13597 s,-$,,
13598 s,^['$as_cr_digits']*\n,,
13599 ' >$as_me.lineno &&
13600 chmod +x $as_me.lineno ||
13601 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13602 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13603 { (exit 1); exit 1; }; }
13604
13605 # Don't try to exec as it changes $[0], causing all sort of problems
13606 # (the dirname of $[0] is not the place where we might find the
13607 # original and so on. Autoconf is especially sensible to this).
13608 . ./$as_me.lineno
13609 # Exit status is that of the last command.
13610 exit
13611 }
13612
13613
13614 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13615 *c*,-n*) ECHO_N= ECHO_C='
13616 ' ECHO_T=' ' ;;
13617 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13618 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13619 esac
13620
13621 if expr a : '\(a\)' >/dev/null 2>&1; then
13622 as_expr=expr
13623 else
13624 as_expr=false
13625 fi
13626
13627 rm -f conf$$ conf$$.exe conf$$.file
13628 echo >conf$$.file
13629 if ln -s conf$$.file conf$$ 2>/dev/null; then
13630 # We could just check for DJGPP; but this test a) works b) is more generic
13631 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13632 if test -f conf$$.exe; then
13633 # Don't use ln at all; we don't have any links
13634 as_ln_s='cp -p'
13635 else
13636 as_ln_s='ln -s'
13637 fi
13638 elif ln conf$$.file conf$$ 2>/dev/null; then
13639 as_ln_s=ln
13640 else
13641 as_ln_s='cp -p'
13642 fi
13643 rm -f conf$$ conf$$.exe conf$$.file
13644
13645 if mkdir -p . 2>/dev/null; then
13646 as_mkdir_p=:
13647 else
13648 as_mkdir_p=false
13649 fi
13650
13651 as_executable_p="test -f"
13652
13653 # Sed expression to map a string onto a valid CPP name.
13654 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13655
13656 # Sed expression to map a string onto a valid variable name.
13657 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13658
13659
13660 # IFS
13661 # We need space, tab and new line, in precisely that order.
13662 as_nl='
13663 '
13664 IFS=" $as_nl"
13665
13666 # CDPATH.
13667 $as_unset CDPATH
13668
13669 exec 6>&1
13670
13671 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13672 # report actual input values of CONFIG_FILES etc. instead of their
13673 # values after options handling. Logging --version etc. is OK.
13674 exec 5>>config.log
13675 {
13676 echo
13677 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13678 ## Running $as_me. ##
13679 _ASBOX
13680 } >&5
13681 cat >&5 <<_CSEOF
13682
13683 This file was extended by $as_me, which was
13684 generated by GNU Autoconf 2.57. Invocation command line was
13685
13686 CONFIG_FILES = $CONFIG_FILES
13687 CONFIG_HEADERS = $CONFIG_HEADERS
13688 CONFIG_LINKS = $CONFIG_LINKS
13689 CONFIG_COMMANDS = $CONFIG_COMMANDS
13690 $ $0 $@
13691
13692 _CSEOF
13693 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13694 echo >&5
13695 _ACEOF
13696
13697 # Files that config.status was made for.
13698 if test -n "$ac_config_files"; then
13699 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13700 fi
13701
13702 if test -n "$ac_config_headers"; then
13703 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13704 fi
13705
13706 if test -n "$ac_config_links"; then
13707 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13708 fi
13709
13710 if test -n "$ac_config_commands"; then
13711 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13712 fi
13713
13714 cat >>$CONFIG_STATUS <<\_ACEOF
13715
13716 ac_cs_usage="\
13717 \`$as_me' instantiates files from templates according to the
13718 current configuration.
13719
13720 Usage: $0 [OPTIONS] [FILE]...
13721
13722 -h, --help print this help, then exit
13723 -V, --version print version number, then exit
13724 -q, --quiet do not print progress messages
13725 -d, --debug don't remove temporary files
13726 --recheck update $as_me by reconfiguring in the same conditions
13727 --file=FILE[:TEMPLATE]
13728 instantiate the configuration file FILE
13729 --header=FILE[:TEMPLATE]
13730 instantiate the configuration header FILE
13731
13732 Configuration files:
13733 $config_files
13734
13735 Configuration headers:
13736 $config_headers
13737
13738 Report bugs to <bug-autoconf@gnu.org>."
13739 _ACEOF
13740
13741 cat >>$CONFIG_STATUS <<_ACEOF
13742 ac_cs_version="\\
13743 config.status
13744 configured by $0, generated by GNU Autoconf 2.57,
13745 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13746
13747 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13748 Free Software Foundation, Inc.
13749 This config.status script is free software; the Free Software Foundation
13750 gives unlimited permission to copy, distribute and modify it."
13751 srcdir=$srcdir
13752 _ACEOF
13753
13754 cat >>$CONFIG_STATUS <<\_ACEOF
13755 # If no file are specified by the user, then we need to provide default
13756 # value. By we need to know if files were specified by the user.
13757 ac_need_defaults=:
13758 while test $# != 0
13759 do
13760 case $1 in
13761 --*=*)
13762 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13763 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13764 ac_shift=:
13765 ;;
13766 -*)
13767 ac_option=$1
13768 ac_optarg=$2
13769 ac_shift=shift
13770 ;;
13771 *) # This is not an option, so the user has probably given explicit
13772 # arguments.
13773 ac_option=$1
13774 ac_need_defaults=false;;
13775 esac
13776
13777 case $ac_option in
13778 # Handling of the options.
13779 _ACEOF
13780 cat >>$CONFIG_STATUS <<\_ACEOF
13781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13782 ac_cs_recheck=: ;;
13783 --version | --vers* | -V )
13784 echo "$ac_cs_version"; exit 0 ;;
13785 --he | --h)
13786 # Conflict between --help and --header
13787 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13788 Try \`$0 --help' for more information." >&5
13789 echo "$as_me: error: ambiguous option: $1
13790 Try \`$0 --help' for more information." >&2;}
13791 { (exit 1); exit 1; }; };;
13792 --help | --hel | -h )
13793 echo "$ac_cs_usage"; exit 0 ;;
13794 --debug | --d* | -d )
13795 debug=: ;;
13796 --file | --fil | --fi | --f )
13797 $ac_shift
13798 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13799 ac_need_defaults=false;;
13800 --header | --heade | --head | --hea )
13801 $ac_shift
13802 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13803 ac_need_defaults=false;;
13804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13806 ac_cs_silent=: ;;
13807
13808 # This is an error.
13809 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13810 Try \`$0 --help' for more information." >&5
13811 echo "$as_me: error: unrecognized option: $1
13812 Try \`$0 --help' for more information." >&2;}
13813 { (exit 1); exit 1; }; } ;;
13814
13815 *) ac_config_targets="$ac_config_targets $1" ;;
13816
13817 esac
13818 shift
13819 done
13820
13821 ac_configure_extra_args=
13822
13823 if $ac_cs_silent; then
13824 exec 6>/dev/null
13825 ac_configure_extra_args="$ac_configure_extra_args --silent"
13826 fi
13827
13828 _ACEOF
13829 cat >>$CONFIG_STATUS <<_ACEOF
13830 if \$ac_cs_recheck; then
13831 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13832 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13833 fi
13834
13835 _ACEOF
13836
13837
13838
13839
13840
13841 cat >>$CONFIG_STATUS <<\_ACEOF
13842 for ac_config_target in $ac_config_targets
13843 do
13844 case "$ac_config_target" in
13845 # Handling of arguments.
13846 "config.mak" ) CONFIG_FILES="$CONFIG_FILES config.mak" ;;
13847 "base.make" ) CONFIG_FILES="$CONFIG_FILES base.make" ;;
13848 "Headers/Additions/GNUstepBase/GSConfig.h" ) CONFIG_FILES="$CONFIG_FILES Headers/Additions/GNUstepBase/GSConfig.h" ;;
13849 "Headers/Additions/GNUstepBase/preface.h" ) CONFIG_FILES="$CONFIG_FILES Headers/Additions/GNUstepBase/preface.h" ;;
13850 "Headers/Additions/GNUstepBase/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS Headers/Additions/GNUstepBase/config.h" ;;
13851 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13852 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13853 { (exit 1); exit 1; }; };;
13854 esac
13855 done
13856
13857 # If the user did not use the arguments to specify the items to instantiate,
13858 # then the envvar interface is used. Set only those that are not.
13859 # We use the long form for the default assignment because of an extremely
13860 # bizarre bug on SunOS 4.1.3.
13861 if $ac_need_defaults; then
13862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13863 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13864 fi
13865
13866 # Have a temporary directory for convenience. Make it in the build tree
13867 # simply because there is no reason to put it here, and in addition,
13868 # creating and moving files from /tmp can sometimes cause problems.
13869 # Create a temporary directory, and hook for its removal unless debugging.
13870 $debug ||
13871 {
13872 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13873 trap '{ (exit 1); exit 1; }' 1 2 13 15
13874 }
13875
13876 # Create a (secure) tmp directory for tmp files.
13877
13878 {
13879 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13880 test -n "$tmp" && test -d "$tmp"
13881 } ||
13882 {
13883 tmp=./confstat$$-$RANDOM
13884 (umask 077 && mkdir $tmp)
13885 } ||
13886 {
13887 echo "$me: cannot create a temporary directory in ." >&2
13888 { (exit 1); exit 1; }
13889 }
13890
13891 _ACEOF
13892
13893 cat >>$CONFIG_STATUS <<_ACEOF
13894
13895 #
13896 # CONFIG_FILES section.
13897 #
13898
13899 # No need to generate the scripts if there are no CONFIG_FILES.
13900 # This happens for instance when ./config.status config.h
13901 if test -n "\$CONFIG_FILES"; then
13902 # Protect against being on the right side of a sed subst in config.status.
13903 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13904 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13905 s,@SHELL@,$SHELL,;t t
13906 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13907 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13908 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13909 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13910 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13911 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13912 s,@exec_prefix@,$exec_prefix,;t t
13913 s,@prefix@,$prefix,;t t
13914 s,@program_transform_name@,$program_transform_name,;t t
13915 s,@bindir@,$bindir,;t t
13916 s,@sbindir@,$sbindir,;t t
13917 s,@libexecdir@,$libexecdir,;t t
13918 s,@datadir@,$datadir,;t t
13919 s,@sysconfdir@,$sysconfdir,;t t
13920 s,@sharedstatedir@,$sharedstatedir,;t t
13921 s,@localstatedir@,$localstatedir,;t t
13922 s,@libdir@,$libdir,;t t
13923 s,@includedir@,$includedir,;t t
13924 s,@oldincludedir@,$oldincludedir,;t t
13925 s,@infodir@,$infodir,;t t
13926 s,@mandir@,$mandir,;t t
13927 s,@build_alias@,$build_alias,;t t
13928 s,@host_alias@,$host_alias,;t t
13929 s,@target_alias@,$target_alias,;t t
13930 s,@DEFS@,$DEFS,;t t
13931 s,@ECHO_C@,$ECHO_C,;t t
13932 s,@ECHO_N@,$ECHO_N,;t t
13933 s,@ECHO_T@,$ECHO_T,;t t
13934 s,@LIBS@,$LIBS,;t t
13935 s,@build@,$build,;t t
13936 s,@build_cpu@,$build_cpu,;t t
13937 s,@build_vendor@,$build_vendor,;t t
13938 s,@build_os@,$build_os,;t t
13939 s,@host@,$host,;t t
13940 s,@host_cpu@,$host_cpu,;t t
13941 s,@host_vendor@,$host_vendor,;t t
13942 s,@host_os@,$host_os,;t t
13943 s,@target@,$target,;t t
13944 s,@target_cpu@,$target_cpu,;t t
13945 s,@target_vendor@,$target_vendor,;t t
13946 s,@target_os@,$target_os,;t t
13947 s,@CC@,$CC,;t t
13948 s,@CFLAGS@,$CFLAGS,;t t
13949 s,@LDFLAGS@,$LDFLAGS,;t t
13950 s,@CPPFLAGS@,$CPPFLAGS,;t t
13951 s,@ac_ct_CC@,$ac_ct_CC,;t t
13952 s,@EXEEXT@,$EXEEXT,;t t
13953 s,@OBJEXT@,$OBJEXT,;t t
13954 s,@CPP@,$CPP,;t t
13955 s,@WHOAMI@,$WHOAMI,;t t
13956 s,@EGREP@,$EGREP,;t t
13957 s,@GS_WORDS_BIGENDIAN@,$GS_WORDS_BIGENDIAN,;t t
13958 s,@GS_SINT8@,$GS_SINT8,;t t
13959 s,@GS_UINT8@,$GS_UINT8,;t t
13960 s,@ac_cv_sizeof_short@,$ac_cv_sizeof_short,;t t
13961 s,@ac_cv_sizeof_int@,$ac_cv_sizeof_int,;t t
13962 s,@ac_cv_sizeof_long@,$ac_cv_sizeof_long,;t t
13963 s,@ac_cv_sizeof_long_long@,$ac_cv_sizeof_long_long,;t t
13964 s,@ac_cv_sizeof_float@,$ac_cv_sizeof_float,;t t
13965 s,@ac_cv_sizeof_double@,$ac_cv_sizeof_double,;t t
13966 s,@ac_cv_sizeof_voidp@,$ac_cv_sizeof_voidp,;t t
13967 s,@GS_ADDR@,$GS_ADDR,;t t
13968 s,@GS_SINT16@,$GS_SINT16,;t t
13969 s,@GS_UINT16@,$GS_UINT16,;t t
13970 s,@GS_SINT32@,$GS_SINT32,;t t
13971 s,@GS_UINT32@,$GS_UINT32,;t t
13972 s,@GS_SINT64@,$GS_SINT64,;t t
13973 s,@GS_UINT64@,$GS_UINT64,;t t
13974 s,@GS_HAVE_I64@,$GS_HAVE_I64,;t t
13975 s,@GS_SINT128@,$GS_SINT128,;t t
13976 s,@GS_UINT128@,$GS_UINT128,;t t
13977 s,@GS_HAVE_I128@,$GS_HAVE_I128,;t t
13978 s,@GS_FLT32@,$GS_FLT32,;t t
13979 s,@GS_FLT64@,$GS_FLT64,;t t
13980 s,@_GSC_S_SHT@,$_GSC_S_SHT,;t t
13981 s,@_GSC_S_INT@,$_GSC_S_INT,;t t
13982 s,@_GSC_S_LNG@,$_GSC_S_LNG,;t t
13983 s,@_GSC_S_LNG_LNG@,$_GSC_S_LNG_LNG,;t t
13984 s,@DYNAMIC_LINKER@,$DYNAMIC_LINKER,;t t
13985 s,@NX_CONST_STRING_OBJCFLAGS@,$NX_CONST_STRING_OBJCFLAGS,;t t
13986 s,@NX_CONST_STRING_CLASS@,$NX_CONST_STRING_CLASS,;t t
13987 s,@HAVE_PTHREAD_H@,$HAVE_PTHREAD_H,;t t
13988 s,@USE_ZLIB@,$USE_ZLIB,;t t
13989 s,@HAVE_PTS_STREAM_MODULES@,$HAVE_PTS_STREAM_MODULES,;t t
13990 s,@GS_PASS_ARGUMENTS@,$GS_PASS_ARGUMENTS,;t t
13991 s,@GS_FAKE_MAIN@,$GS_FAKE_MAIN,;t t
13992 s,@WITH_FFI@,$WITH_FFI,;t t
13993 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
13994 s,@XML_CONFIG@,$XML_CONFIG,;t t
13995 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
13996 s,@XML_LIBS@,$XML_LIBS,;t t
13997 s,@HAVE_LIBXML@,$HAVE_LIBXML,;t t
13998 s,@USE_GMP@,$USE_GMP,;t t
13999 s,@INCLUDE_FLAGS@,$INCLUDE_FLAGS,;t t
14000 s,@subdirs@,$subdirs,;t t
14001 s,@VERSION@,$VERSION,;t t
14002 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
14003 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
14004 s,@SUBMINOR_VERSION@,$SUBMINOR_VERSION,;t t
14005 s,@GCC_VERSION@,$GCC_VERSION,;t t
14006 s,@LIBOBJS@,$LIBOBJS,;t t
14007 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14008 CEOF
14009
14010 _ACEOF
14011
14012 cat >>$CONFIG_STATUS <<\_ACEOF
14013 # Split the substitutions into bite-sized pieces for seds with
14014 # small command number limits, like on Digital OSF/1 and HP-UX.
14015 ac_max_sed_lines=48
14016 ac_sed_frag=1 # Number of current file.
14017 ac_beg=1 # First line for current file.
14018 ac_end=$ac_max_sed_lines # Line after last line for current file.
14019 ac_more_lines=:
14020 ac_sed_cmds=
14021 while $ac_more_lines; do
14022 if test $ac_beg -gt 1; then
14023 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14024 else
14025 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14026 fi
14027 if test ! -s $tmp/subs.frag; then
14028 ac_more_lines=false
14029 else
14030 # The purpose of the label and of the branching condition is to
14031 # speed up the sed processing (if there are no `@' at all, there
14032 # is no need to browse any of the substitutions).
14033 # These are the two extra sed commands mentioned above.
14034 (echo ':t
14035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14036 if test -z "$ac_sed_cmds"; then
14037 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14038 else
14039 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14040 fi
14041 ac_sed_frag=`expr $ac_sed_frag + 1`
14042 ac_beg=$ac_end
14043 ac_end=`expr $ac_end + $ac_max_sed_lines`
14044 fi
14045 done
14046 if test -z "$ac_sed_cmds"; then
14047 ac_sed_cmds=cat
14048 fi
14049 fi # test -n "$CONFIG_FILES"
14050
14051 _ACEOF
14052 cat >>$CONFIG_STATUS <<\_ACEOF
14053 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14054 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14055 case $ac_file in
14056 - | *:- | *:-:* ) # input from stdin
14057 cat >$tmp/stdin
14058 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14059 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14060 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14061 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14062 * ) ac_file_in=$ac_file.in ;;
14063 esac
14064
14065 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14066 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14068 X"$ac_file" : 'X\(//\)[^/]' \| \
14069 X"$ac_file" : 'X\(//\)$' \| \
14070 X"$ac_file" : 'X\(/\)' \| \
14071 . : '\(.\)' 2>/dev/null ||
14072 echo X"$ac_file" |
14073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14075 /^X\(\/\/\)$/{ s//\1/; q; }
14076 /^X\(\/\).*/{ s//\1/; q; }
14077 s/.*/./; q'`
14078 { if $as_mkdir_p; then
14079 mkdir -p "$ac_dir"
14080 else
14081 as_dir="$ac_dir"
14082 as_dirs=
14083 while test ! -d "$as_dir"; do
14084 as_dirs="$as_dir $as_dirs"
14085 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14087 X"$as_dir" : 'X\(//\)[^/]' \| \
14088 X"$as_dir" : 'X\(//\)$' \| \
14089 X"$as_dir" : 'X\(/\)' \| \
14090 . : '\(.\)' 2>/dev/null ||
14091 echo X"$as_dir" |
14092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14094 /^X\(\/\/\)$/{ s//\1/; q; }
14095 /^X\(\/\).*/{ s//\1/; q; }
14096 s/.*/./; q'`
14097 done
14098 test ! -n "$as_dirs" || mkdir $as_dirs
14099 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14100 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14101 { (exit 1); exit 1; }; }; }
14102
14103 ac_builddir=.
14104
14105 if test "$ac_dir" != .; then
14106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14107 # A "../" for each directory in $ac_dir_suffix.
14108 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14109 else
14110 ac_dir_suffix= ac_top_builddir=
14111 fi
14112
14113 case $srcdir in
14114 .) # No --srcdir option. We are building in place.
14115 ac_srcdir=.
14116 if test -z "$ac_top_builddir"; then
14117 ac_top_srcdir=.
14118 else
14119 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14120 fi ;;
14121 [\\/]* | ?:[\\/]* ) # Absolute path.
14122 ac_srcdir=$srcdir$ac_dir_suffix;
14123 ac_top_srcdir=$srcdir ;;
14124 *) # Relative path.
14125 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14126 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14127 esac
14128 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14129 # absolute.
14130 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14131 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14132 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14133 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14134
14135
14136
14137 if test x"$ac_file" != x-; then
14138 { echo "$as_me:$LINENO: creating $ac_file" >&5
14139 echo "$as_me: creating $ac_file" >&6;}
14140 rm -f "$ac_file"
14141 fi
14142 # Let's still pretend it is `configure' which instantiates (i.e., don't
14143 # use $as_me), people would be surprised to read:
14144 # /* config.h. Generated by config.status. */
14145 if test x"$ac_file" = x-; then
14146 configure_input=
14147 else
14148 configure_input="$ac_file. "
14149 fi
14150 configure_input=$configure_input"Generated from `echo $ac_file_in |
14151 sed 's,.*/,,'` by configure."
14152
14153 # First look for the input files in the build tree, otherwise in the
14154 # src tree.
14155 ac_file_inputs=`IFS=:
14156 for f in $ac_file_in; do
14157 case $f in
14158 -) echo $tmp/stdin ;;
14159 [\\/$]*)
14160 # Absolute (can't be DOS-style, as IFS=:)
14161 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14162 echo "$as_me: error: cannot find input file: $f" >&2;}
14163 { (exit 1); exit 1; }; }
14164 echo $f;;
14165 *) # Relative
14166 if test -f "$f"; then
14167 # Build tree
14168 echo $f
14169 elif test -f "$srcdir/$f"; then
14170 # Source tree
14171 echo $srcdir/$f
14172 else
14173 # /dev/null tree
14174 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14175 echo "$as_me: error: cannot find input file: $f" >&2;}
14176 { (exit 1); exit 1; }; }
14177 fi;;
14178 esac
14179 done` || { (exit 1); exit 1; }
14180 _ACEOF
14181 cat >>$CONFIG_STATUS <<_ACEOF
14182 sed "$ac_vpsub
14183 $extrasub
14184 _ACEOF
14185 cat >>$CONFIG_STATUS <<\_ACEOF
14186 :t
14187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14188 s,@configure_input@,$configure_input,;t t
14189 s,@srcdir@,$ac_srcdir,;t t
14190 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14191 s,@top_srcdir@,$ac_top_srcdir,;t t
14192 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14193 s,@builddir@,$ac_builddir,;t t
14194 s,@abs_builddir@,$ac_abs_builddir,;t t
14195 s,@top_builddir@,$ac_top_builddir,;t t
14196 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14197 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14198 rm -f $tmp/stdin
14199 if test x"$ac_file" != x-; then
14200 mv $tmp/out $ac_file
14201 else
14202 cat $tmp/out
14203 rm -f $tmp/out
14204 fi
14205
14206 done
14207 _ACEOF
14208 cat >>$CONFIG_STATUS <<\_ACEOF
14209
14210 #
14211 # CONFIG_HEADER section.
14212 #
14213
14214 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14215 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14216 #
14217 # ac_d sets the value in "#define NAME VALUE" lines.
14218 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14219 ac_dB='[ ].*$,\1#\2'
14220 ac_dC=' '
14221 ac_dD=',;t'
14222 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14223 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14224 ac_uB='$,\1#\2define\3'
14225 ac_uC=' '
14226 ac_uD=',;t'
14227
14228 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14229 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14230 case $ac_file in
14231 - | *:- | *:-:* ) # input from stdin
14232 cat >$tmp/stdin
14233 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14234 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14235 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14237 * ) ac_file_in=$ac_file.in ;;
14238 esac
14239
14240 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14241 echo "$as_me: creating $ac_file" >&6;}
14242
14243 # First look for the input files in the build tree, otherwise in the
14244 # src tree.
14245 ac_file_inputs=`IFS=:
14246 for f in $ac_file_in; do
14247 case $f in
14248 -) echo $tmp/stdin ;;
14249 [\\/$]*)
14250 # Absolute (can't be DOS-style, as IFS=:)
14251 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14252 echo "$as_me: error: cannot find input file: $f" >&2;}
14253 { (exit 1); exit 1; }; }
14254 echo $f;;
14255 *) # Relative
14256 if test -f "$f"; then
14257 # Build tree
14258 echo $f
14259 elif test -f "$srcdir/$f"; then
14260 # Source tree
14261 echo $srcdir/$f
14262 else
14263 # /dev/null tree
14264 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14265 echo "$as_me: error: cannot find input file: $f" >&2;}
14266 { (exit 1); exit 1; }; }
14267 fi;;
14268 esac
14269 done` || { (exit 1); exit 1; }
14270 # Remove the trailing spaces.
14271 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14272
14273 _ACEOF
14274
14275 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14276 # `conftest.undefs', that substitutes the proper values into
14277 # config.h.in to produce config.h. The first handles `#define'
14278 # templates, and the second `#undef' templates.
14279 # And first: Protect against being on the right side of a sed subst in
14280 # config.status. Protect against being in an unquoted here document
14281 # in config.status.
14282 rm -f conftest.defines conftest.undefs
14283 # Using a here document instead of a string reduces the quoting nightmare.
14284 # Putting comments in sed scripts is not portable.
14285 #
14286 # `end' is used to avoid that the second main sed command (meant for
14287 # 0-ary CPP macros) applies to n-ary macro definitions.
14288 # See the Autoconf documentation for `clear'.
14289 cat >confdef2sed.sed <<\_ACEOF
14290 s/[\\&,]/\\&/g
14291 s,[\\$`],\\&,g
14292 t clear
14293 : clear
14294 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14295 t end
14296 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14297 : end
14298 _ACEOF
14299 # If some macros were called several times there might be several times
14300 # the same #defines, which is useless. Nevertheless, we may not want to
14301 # sort them, since we want the *last* AC-DEFINE to be honored.
14302 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14303 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14304 rm -f confdef2sed.sed
14305
14306 # This sed command replaces #undef with comments. This is necessary, for
14307 # example, in the case of _POSIX_SOURCE, which is predefined and required
14308 # on some systems where configure will not decide to define it.
14309 cat >>conftest.undefs <<\_ACEOF
14310 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14311 _ACEOF
14312
14313 # Break up conftest.defines because some shells have a limit on the size
14314 # of here documents, and old seds have small limits too (100 cmds).
14315 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14316 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14317 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14318 echo ' :' >>$CONFIG_STATUS
14319 rm -f conftest.tail
14320 while grep . conftest.defines >/dev/null
14321 do
14322 # Write a limited-size here document to $tmp/defines.sed.
14323 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14324 # Speed up: don't consider the non `#define' lines.
14325 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14326 # Work around the forget-to-reset-the-flag bug.
14327 echo 't clr' >>$CONFIG_STATUS
14328 echo ': clr' >>$CONFIG_STATUS
14329 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14330 echo 'CEOF
14331 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14332 rm -f $tmp/in
14333 mv $tmp/out $tmp/in
14334 ' >>$CONFIG_STATUS
14335 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14336 rm -f conftest.defines
14337 mv conftest.tail conftest.defines
14338 done
14339 rm -f conftest.defines
14340 echo ' fi # grep' >>$CONFIG_STATUS
14341 echo >>$CONFIG_STATUS
14342
14343 # Break up conftest.undefs because some shells have a limit on the size
14344 # of here documents, and old seds have small limits too (100 cmds).
14345 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14346 rm -f conftest.tail
14347 while grep . conftest.undefs >/dev/null
14348 do
14349 # Write a limited-size here document to $tmp/undefs.sed.
14350 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14351 # Speed up: don't consider the non `#undef'
14352 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14353 # Work around the forget-to-reset-the-flag bug.
14354 echo 't clr' >>$CONFIG_STATUS
14355 echo ': clr' >>$CONFIG_STATUS
14356 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14357 echo 'CEOF
14358 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14359 rm -f $tmp/in
14360 mv $tmp/out $tmp/in
14361 ' >>$CONFIG_STATUS
14362 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14363 rm -f conftest.undefs
14364 mv conftest.tail conftest.undefs
14365 done
14366 rm -f conftest.undefs
14367
14368 cat >>$CONFIG_STATUS <<\_ACEOF
14369 # Let's still pretend it is `configure' which instantiates (i.e., don't
14370 # use $as_me), people would be surprised to read:
14371 # /* config.h. Generated by config.status. */
14372 if test x"$ac_file" = x-; then
14373 echo "/* Generated by configure. */" >$tmp/config.h
14374 else
14375 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14376 fi
14377 cat $tmp/in >>$tmp/config.h
14378 rm -f $tmp/in
14379 if test x"$ac_file" != x-; then
14380 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14381 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14382 echo "$as_me: $ac_file is unchanged" >&6;}
14383 else
14384 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14385 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14386 X"$ac_file" : 'X\(//\)[^/]' \| \
14387 X"$ac_file" : 'X\(//\)$' \| \
14388 X"$ac_file" : 'X\(/\)' \| \
14389 . : '\(.\)' 2>/dev/null ||
14390 echo X"$ac_file" |
14391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14393 /^X\(\/\/\)$/{ s//\1/; q; }
14394 /^X\(\/\).*/{ s//\1/; q; }
14395 s/.*/./; q'`
14396 { if $as_mkdir_p; then
14397 mkdir -p "$ac_dir"
14398 else
14399 as_dir="$ac_dir"
14400 as_dirs=
14401 while test ! -d "$as_dir"; do
14402 as_dirs="$as_dir $as_dirs"
14403 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14404 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14405 X"$as_dir" : 'X\(//\)[^/]' \| \
14406 X"$as_dir" : 'X\(//\)$' \| \
14407 X"$as_dir" : 'X\(/\)' \| \
14408 . : '\(.\)' 2>/dev/null ||
14409 echo X"$as_dir" |
14410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14412 /^X\(\/\/\)$/{ s//\1/; q; }
14413 /^X\(\/\).*/{ s//\1/; q; }
14414 s/.*/./; q'`
14415 done
14416 test ! -n "$as_dirs" || mkdir $as_dirs
14417 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14418 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14419 { (exit 1); exit 1; }; }; }
14420
14421 rm -f $ac_file
14422 mv $tmp/config.h $ac_file
14423 fi
14424 else
14425 cat $tmp/config.h
14426 rm -f $tmp/config.h
14427 fi
14428 done
14429 _ACEOF
14430
14431 cat >>$CONFIG_STATUS <<\_ACEOF
14432
14433 { (exit 0); exit 0; }
14434 _ACEOF
14435 chmod +x $CONFIG_STATUS
14436 ac_clean_files=$ac_clean_files_save
14437
14438
14439 # configure is writing to config.log, and then calls config.status.
14440 # config.status does its own redirection, appending to config.log.
14441 # Unfortunately, on DOS this fails, as config.log is still kept open
14442 # by configure, so config.status won't be able to write to it; its
14443 # output is simply discarded. So we exec the FD to /dev/null,
14444 # effectively closing config.log, so it can be properly (re)opened and
14445 # appended to by config.status. When coming back to configure, we
14446 # need to make the FD available again.
14447 if test "$no_create" != yes; then
14448 ac_cs_success=:
14449 ac_config_status_args=
14450 test "$silent" = yes &&
14451 ac_config_status_args="$ac_config_status_args --quiet"
14452 exec 5>/dev/null
14453 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14454 exec 5>>config.log
14455 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14456 # would make configure fail if this is the last instruction.
14457 $ac_cs_success || { (exit 1); exit 1; }
14458 fi
14459
14460 #
14461 # CONFIG_SUBDIRS section.
14462 #
14463 if test "$no_recursion" != yes; then
14464
14465 # Remove --cache-file and --srcdir arguments so they do not pile up.
14466 ac_sub_configure_args=
14467 ac_prev=
14468 for ac_arg in $ac_configure_args; do
14469 if test -n "$ac_prev"; then
14470 ac_prev=
14471 continue
14472 fi
14473 case $ac_arg in
14474 -cache-file | --cache-file | --cache-fil | --cache-fi \
14475 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14476 ac_prev=cache_file ;;
14477 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14478 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14479 | --c=*)
14480 ;;
14481 --config-cache | -C)
14482 ;;
14483 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14484 ac_prev=srcdir ;;
14485 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14486 ;;
14487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14488 ac_prev=prefix ;;
14489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14490 ;;
14491 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
14492 esac
14493 done
14494
14495 # Always prepend --prefix to ensure using the same prefix
14496 # in subdir configurations.
14497 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
14498
14499 ac_popdir=`pwd`
14500 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14501
14502 # Do not complain, so a configure script can configure whichever
14503 # parts of a large source tree are present.
14504 test -d $srcdir/$ac_dir || continue
14505
14506 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
14507 echo "$as_me: configuring in $ac_dir" >&6;}
14508 { if $as_mkdir_p; then
14509 mkdir -p "$ac_dir"
14510 else
14511 as_dir="$ac_dir"
14512 as_dirs=
14513 while test ! -d "$as_dir"; do
14514 as_dirs="$as_dir $as_dirs"
14515 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14517 X"$as_dir" : 'X\(//\)[^/]' \| \
14518 X"$as_dir" : 'X\(//\)$' \| \
14519 X"$as_dir" : 'X\(/\)' \| \
14520 . : '\(.\)' 2>/dev/null ||
14521 echo X"$as_dir" |
14522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14524 /^X\(\/\/\)$/{ s//\1/; q; }
14525 /^X\(\/\).*/{ s//\1/; q; }
14526 s/.*/./; q'`
14527 done
14528 test ! -n "$as_dirs" || mkdir $as_dirs
14529 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14530 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14531 { (exit 1); exit 1; }; }; }
14532
14533 ac_builddir=.
14534
14535 if test "$ac_dir" != .; then
14536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14537 # A "../" for each directory in $ac_dir_suffix.
14538 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14539 else
14540 ac_dir_suffix= ac_top_builddir=
14541 fi
14542
14543 case $srcdir in
14544 .) # No --srcdir option. We are building in place.
14545 ac_srcdir=.
14546 if test -z "$ac_top_builddir"; then
14547 ac_top_srcdir=.
14548 else
14549 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14550 fi ;;
14551 [\\/]* | ?:[\\/]* ) # Absolute path.
14552 ac_srcdir=$srcdir$ac_dir_suffix;
14553 ac_top_srcdir=$srcdir ;;
14554 *) # Relative path.
14555 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14556 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14557 esac
14558 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14559 # absolute.
14560 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14561 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14562 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14563 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14564
14565
14566 cd $ac_dir
14567
14568 # Check for guested configure; otherwise get Cygnus style configure.
14569 if test -f $ac_srcdir/configure.gnu; then
14570 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
14571 elif test -f $ac_srcdir/configure; then
14572 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
14573 elif test -f $ac_srcdir/configure.in; then
14574 ac_sub_configure=$ac_configure
14575 else
14576 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
14577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14578 ac_sub_configure=
14579 fi
14580
14581 # The recursion is here.
14582 if test -n "$ac_sub_configure"; then
14583 # Make the cache file name correct relative to the subdirectory.
14584 case $cache_file in
14585 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14586 *) # Relative path.
14587 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
14588 esac
14589
14590 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14591 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14592 # The eval makes quoting arguments work.
14593 eval $ac_sub_configure $ac_sub_configure_args \
14594 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
14595 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
14596 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
14597 { (exit 1); exit 1; }; }
14598 fi
14599
14600 cd $ac_popdir
14601 done
14602 fi
14603

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26