Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac Revision: 1.37 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for dmalloc 5.5.2.
5 #
6 # Report bugs to <http://dmalloc.com/>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46 do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100 fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
156 ;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS=" $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='dmalloc'
272 PACKAGE_TARNAME='dmalloc'
273 PACKAGE_VERSION='5.5.2'
274 PACKAGE_STRING='dmalloc 5.5.2'
275 PACKAGE_BUGREPORT='http://dmalloc.com/'
276
277 ac_unique_file="dmalloc.c"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB CPP EGREP HAVE_STDARG_H HAVE_STDLIB_H HAVE_STRING_H HAVE_UNISTD_H HAVE_SYS_TYPES_H HAVE_SYS_MMAN_H shlibdir shlinkargs shlibext CXX_ON CXX_OFF TH_ON TH_OFF SL_ON SL_OFF HAVE_SIGNAL_H HAVE_SYS_CYGWIN_H HAVE_W32API_WINDEF_H HAVE_W32API_WINBASE_H HAVE_PTHREAD_H HAVE_PTHREADS_H LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653 done
654
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CXX_set=${CXX+set}
773 ac_env_CXX_value=$CXX
774 ac_cv_env_CXX_set=${CXX+set}
775 ac_cv_env_CXX_value=$CXX
776 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
777 ac_env_CXXFLAGS_value=$CXXFLAGS
778 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
779 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
780 ac_env_CPP_set=${CPP+set}
781 ac_env_CPP_value=$CPP
782 ac_cv_env_CPP_set=${CPP+set}
783 ac_cv_env_CPP_value=$CPP
784
785 #
786 # Report the --help message.
787 #
788 if test "$ac_init_help" = "long"; then
789 # Omit some internal or obsolete options to make the list less imposing.
790 # This message is too long to be a string in the A/UX 3.1 sh.
791 cat <<_ACEOF
792 \`configure' configures dmalloc 5.5.2 to adapt to many kinds of systems.
793
794 Usage: $0 [OPTION]... [VAR=VALUE]...
795
796 To assign environment variables (e.g., CC, CFLAGS...), specify them as
797 VAR=VALUE. See below for descriptions of some of the useful variables.
798
799 Defaults for the options are specified in brackets.
800
801 Configuration:
802 -h, --help display this help and exit
803 --help=short display options specific to this package
804 --help=recursive display the short help of all the included packages
805 -V, --version display version information and exit
806 -q, --quiet, --silent do not print \`checking...' messages
807 --cache-file=FILE cache test results in FILE [disabled]
808 -C, --config-cache alias for \`--cache-file=config.cache'
809 -n, --no-create do not create output files
810 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811
812 _ACEOF
813
814 cat <<_ACEOF
815 Installation directories:
816 --prefix=PREFIX install architecture-independent files in PREFIX
817 [$ac_default_prefix]
818 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
819 [PREFIX]
820
821 By default, \`make install' will install all the files in
822 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
823 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
824 for instance \`--prefix=\$HOME'.
825
826 For better control, use the options below.
827
828 Fine tuning of the installation directories:
829 --bindir=DIR user executables [EPREFIX/bin]
830 --sbindir=DIR system admin executables [EPREFIX/sbin]
831 --libexecdir=DIR program executables [EPREFIX/libexec]
832 --datadir=DIR read-only architecture-independent data [PREFIX/share]
833 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
834 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
835 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
836 --libdir=DIR object code libraries [EPREFIX/lib]
837 --includedir=DIR C header files [PREFIX/include]
838 --oldincludedir=DIR C header files for non-gcc [/usr/include]
839 --infodir=DIR info documentation [PREFIX/info]
840 --mandir=DIR man documentation [PREFIX/man]
841 _ACEOF
842
843 cat <<\_ACEOF
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive ) echo "Configuration of dmalloc 5.5.2:";;
850 esac
851 cat <<\_ACEOF
852
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --disable-cxx do not build in C++ support (enabled by default)
857 --enable-threads build in thread support (disabled by default)
858 --enable-shlib build shared libraries (disabled by default)
859
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CXX C++ compiler command
868 CXXFLAGS C++ compiler flags
869 CPP C preprocessor
870
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
873
874 Report bugs to <http://dmalloc.com/>.
875 _ACEOF
876 fi
877
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
884
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 else
890 ac_dir_suffix= ac_top_builddir=
891 fi
892
893 case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 esac
908
909 # Do not use `cd foo && pwd` to compute absolute paths, because
910 # the directories may not exist.
911 case `pwd` in
912 .) ac_abs_builddir="$ac_dir";;
913 *)
914 case "$ac_dir" in
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
922 *)
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_srcdir=$ac_srcdir;;
931 *)
932 case $ac_srcdir in
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
940 *)
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945 esac;;
946 esac
947
948 cd $ac_dir
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
951 echo
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
954 echo
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
958 echo
959 $ac_configure --help
960 else
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 fi
963 cd $ac_popdir
964 done
965 fi
966
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
969 cat <<\_ACEOF
970 dmalloc configure 5.5.2
971 generated by GNU Autoconf 2.59
972
973 Copyright (C) 2003 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
976 _ACEOF
977 exit 0
978 fi
979 exec 5>config.log
980 cat >&5 <<_ACEOF
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
983
984 It was created by dmalloc $as_me 5.5.2, which was
985 generated by GNU Autoconf 2.59. Invocation command line was
986
987 $ $0 $@
988
989 _ACEOF
990 {
991 cat <<_ASUNAME
992 ## --------- ##
993 ## Platform. ##
994 ## --------- ##
995
996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001
1002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004
1005 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012
1013 _ASUNAME
1014
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 for as_dir in $PATH
1017 do
1018 IFS=$as_save_IFS
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1021 done
1022
1023 } >&5
1024
1025 cat >&5 <<_ACEOF
1026
1027
1028 ## ----------- ##
1029 ## Core tests. ##
1030 ## ----------- ##
1031
1032 _ACEOF
1033
1034
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Strip out --silent because we don't want to record it for future runs.
1038 # Also quote any args containing shell meta-characters.
1039 # Make two passes to allow for proper duplicate-argument suppression.
1040 ac_configure_args=
1041 ac_configure_args0=
1042 ac_configure_args1=
1043 ac_sep=
1044 ac_must_keep_next=false
1045 for ac_pass in 1 2
1046 do
1047 for ac_arg
1048 do
1049 case $ac_arg in
1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 continue ;;
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 esac
1057 case $ac_pass in
1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059 2)
1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061 if test $ac_must_keep_next = true; then
1062 ac_must_keep_next=false # Got value, back to normal.
1063 else
1064 case $ac_arg in
1065 *=* | --config-cache | -C | -disable-* | --disable-* \
1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068 | -with-* | --with-* | -without-* | --without-* | --x)
1069 case "$ac_configure_args0 " in
1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 esac
1072 ;;
1073 -* ) ac_must_keep_next=true ;;
1074 esac
1075 fi
1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
1078 ac_sep=" "
1079 ;;
1080 esac
1081 done
1082 done
1083 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085
1086 # When interrupted or exit'd, cleanup temporary files, and complete
1087 # config.log. We remove comments because anyway the quotes in there
1088 # would cause problems or look ugly.
1089 # WARNING: Be sure not to use single quotes in there, as some shells,
1090 # such as our DU 5.0 friend, will then `close' the trap.
1091 trap 'exit_status=$?
1092 # Save into config.log some information that might help in debugging.
1093 {
1094 echo
1095
1096 cat <<\_ASBOX
1097 ## ---------------- ##
1098 ## Cache variables. ##
1099 ## ---------------- ##
1100 _ASBOX
1101 echo
1102 # The following way of writing the cache mishandles newlines in values,
1103 {
1104 (set) 2>&1 |
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 *ac_space=\ *)
1107 sed -n \
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 ;;
1111 *)
1112 sed -n \
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114 ;;
1115 esac;
1116 }
1117 echo
1118
1119 cat <<\_ASBOX
1120 ## ----------------- ##
1121 ## Output variables. ##
1122 ## ----------------- ##
1123 _ASBOX
1124 echo
1125 for ac_var in $ac_subst_vars
1126 do
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1129 done | sort
1130 echo
1131
1132 if test -n "$ac_subst_files"; then
1133 cat <<\_ASBOX
1134 ## ------------- ##
1135 ## Output files. ##
1136 ## ------------- ##
1137 _ASBOX
1138 echo
1139 for ac_var in $ac_subst_files
1140 do
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1145 fi
1146
1147 if test -s confdefs.h; then
1148 cat <<\_ASBOX
1149 ## ----------- ##
1150 ## confdefs.h. ##
1151 ## ----------- ##
1152 _ASBOX
1153 echo
1154 sed "/^$/d" confdefs.h | sort
1155 echo
1156 fi
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1160 } >&5
1161 rm -f core *.core &&
1162 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 exit $exit_status
1164 ' 0
1165 for ac_signal in 1 2 13 15; do
1166 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 done
1168 ac_signal=0
1169
1170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1171 rm -rf conftest* confdefs.h
1172 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 echo >confdefs.h
1174
1175 # Predefined preprocessor variables.
1176
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 _ACEOF
1180
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 _ACEOF
1200
1201
1202 # Let the site file select an alternate cache file if it wants to.
1203 # Prefer explicitly selected file to automatically selected ones.
1204 if test -z "$CONFIG_SITE"; then
1205 if test "x$prefix" != xNONE; then
1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1207 else
1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 fi
1210 fi
1211 for ac_site_file in $CONFIG_SITE; do
1212 if test -r "$ac_site_file"; then
1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214 echo "$as_me: loading site script $ac_site_file" >&6;}
1215 sed 's/^/| /' "$ac_site_file" >&5
1216 . "$ac_site_file"
1217 fi
1218 done
1219
1220 if test -r "$cache_file"; then
1221 # Some versions of bash will fail to source /dev/null (special
1222 # files actually), so we avoid doing that.
1223 if test -f "$cache_file"; then
1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225 echo "$as_me: loading cache $cache_file" >&6;}
1226 case $cache_file in
1227 [\\/]* | ?:[\\/]* ) . $cache_file;;
1228 *) . ./$cache_file;;
1229 esac
1230 fi
1231 else
1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233 echo "$as_me: creating cache $cache_file" >&6;}
1234 >$cache_file
1235 fi
1236
1237 # Check that the precious variables saved in the cache have kept the same
1238 # value.
1239 ac_cache_corrupted=false
1240 for ac_var in `(set) 2>&1 |
1241 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243 eval ac_new_set=\$ac_env_${ac_var}_set
1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245 eval ac_new_val="\$ac_env_${ac_var}_value"
1246 case $ac_old_set,$ac_new_set in
1247 set,)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,set)
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1255 ,);;
1256 *)
1257 if test "x$ac_old_val" != "x$ac_new_val"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261 echo "$as_me: former value: $ac_old_val" >&2;}
1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263 echo "$as_me: current value: $ac_new_val" >&2;}
1264 ac_cache_corrupted=:
1265 fi;;
1266 esac
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1269 case $ac_new_val in
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg=$ac_var=$ac_new_val ;;
1273 esac
1274 case " $ac_configure_args " in
1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 esac
1278 fi
1279 done
1280 if $ac_cache_corrupted; then
1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 { (exit 1); exit 1; }; }
1286 fi
1287
1288 ac_ext=c
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321 ac_config_headers="$ac_config_headers conf.h"
1322
1323
1324 { echo "$as_me:$LINENO: configurations for the dmalloc library" >&5
1325 echo "$as_me: configurations for the dmalloc library" >&6;}
1326
1327 ##############################################################################
1328 # arguments
1329
1330 # Check whether --enable-cxx or --disable-cxx was given.
1331 if test "${enable_cxx+set}" = set; then
1332 enableval="$enable_cxx"
1333 # enable_cxx set by default
1334 else
1335 enable_cxx=yes
1336
1337 fi;
1338 # Check whether --enable-threads or --disable-threads was given.
1339 if test "${enable_threads+set}" = set; then
1340 enableval="$enable_threads"
1341 # enable_threads set by default
1342 else
1343 enable_threads=no
1344
1345 fi;
1346 # Check whether --enable-shlib or --disable-shlib was given.
1347 if test "${enable_shlib+set}" = set; then
1348 enableval="$enable_shlib"
1349 # enable_shlib set by default
1350 else
1351 enable_shlib=no
1352
1353 fi;
1354
1355 ##############################################################################
1356 { echo "$as_me:$LINENO: build utilities" >&5
1357 echo "$as_me: build utilities" >&6;}
1358
1359 ac_ext=c
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364 if test -n "$ac_tool_prefix"; then
1365 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1366 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1367 echo "$as_me:$LINENO: checking for $ac_word" >&5
1368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369 if test "${ac_cv_prog_CC+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1371 else
1372 if test -n "$CC"; then
1373 ac_cv_prog_CC="$CC" # Let the user override the test.
1374 else
1375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376 for as_dir in $PATH
1377 do
1378 IFS=$as_save_IFS
1379 test -z "$as_dir" && as_dir=.
1380 for ac_exec_ext in '' $ac_executable_extensions; do
1381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1384 break 2
1385 fi
1386 done
1387 done
1388
1389 fi
1390 fi
1391 CC=$ac_cv_prog_CC
1392 if test -n "$CC"; then
1393 echo "$as_me:$LINENO: result: $CC" >&5
1394 echo "${ECHO_T}$CC" >&6
1395 else
1396 echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1398 fi
1399
1400 fi
1401 if test -z "$ac_cv_prog_CC"; then
1402 ac_ct_CC=$CC
1403 # Extract the first word of "gcc", so it can be a program name with args.
1404 set dummy gcc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 if test -n "$ac_ct_CC"; then
1411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1412 else
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 for as_dir in $PATH
1415 do
1416 IFS=$as_save_IFS
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_ac_ct_CC="gcc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422 break 2
1423 fi
1424 done
1425 done
1426
1427 fi
1428 fi
1429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1430 if test -n "$ac_ct_CC"; then
1431 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1432 echo "${ECHO_T}$ac_ct_CC" >&6
1433 else
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1436 fi
1437
1438 CC=$ac_ct_CC
1439 else
1440 CC="$ac_cv_prog_CC"
1441 fi
1442
1443 if test -z "$CC"; then
1444 if test -n "$ac_tool_prefix"; then
1445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1446 set dummy ${ac_tool_prefix}cc; ac_word=$2
1447 echo "$as_me:$LINENO: checking for $ac_word" >&5
1448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1449 if test "${ac_cv_prog_CC+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 else
1452 if test -n "$CC"; then
1453 ac_cv_prog_CC="$CC" # Let the user override the test.
1454 else
1455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456 for as_dir in $PATH
1457 do
1458 IFS=$as_save_IFS
1459 test -z "$as_dir" && as_dir=.
1460 for ac_exec_ext in '' $ac_executable_extensions; do
1461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462 ac_cv_prog_CC="${ac_tool_prefix}cc"
1463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 break 2
1465 fi
1466 done
1467 done
1468
1469 fi
1470 fi
1471 CC=$ac_cv_prog_CC
1472 if test -n "$CC"; then
1473 echo "$as_me:$LINENO: result: $CC" >&5
1474 echo "${ECHO_T}$CC" >&6
1475 else
1476 echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1478 fi
1479
1480 fi
1481 if test -z "$ac_cv_prog_CC"; then
1482 ac_ct_CC=$CC
1483 # Extract the first word of "cc", so it can be a program name with args.
1484 set dummy cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490 if test -n "$ac_ct_CC"; then
1491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1492 else
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_prog_ac_ct_CC="cc"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 break 2
1503 fi
1504 done
1505 done
1506
1507 fi
1508 fi
1509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1510 if test -n "$ac_ct_CC"; then
1511 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1512 echo "${ECHO_T}$ac_ct_CC" >&6
1513 else
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 fi
1517
1518 CC=$ac_ct_CC
1519 else
1520 CC="$ac_cv_prog_CC"
1521 fi
1522
1523 fi
1524 if test -z "$CC"; then
1525 # Extract the first word of "cc", so it can be a program name with args.
1526 set dummy cc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 else
1535 ac_prog_rejected=no
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539 IFS=$as_save_IFS
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1544 ac_prog_rejected=yes
1545 continue
1546 fi
1547 ac_cv_prog_CC="cc"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 break 2
1550 fi
1551 done
1552 done
1553
1554 if test $ac_prog_rejected = yes; then
1555 # We found a bogon in the path, so make sure we never use it.
1556 set dummy $ac_cv_prog_CC
1557 shift
1558 if test $# != 0; then
1559 # We chose a different compiler from the bogus one.
1560 # However, it has the same basename, so the bogon will be chosen
1561 # first if we set CC to just the basename; use the full file name.
1562 shift
1563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1564 fi
1565 fi
1566 fi
1567 fi
1568 CC=$ac_cv_prog_CC
1569 if test -n "$CC"; then
1570 echo "$as_me:$LINENO: result: $CC" >&5
1571 echo "${ECHO_T}$CC" >&6
1572 else
1573 echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1575 fi
1576
1577 fi
1578 if test -z "$CC"; then
1579 if test -n "$ac_tool_prefix"; then
1580 for ac_prog in cl
1581 do
1582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 if test -n "$CC"; then
1590 ac_cv_prog_CC="$CC" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
1602 fi
1603 done
1604 done
1605
1606 fi
1607 fi
1608 CC=$ac_cv_prog_CC
1609 if test -n "$CC"; then
1610 echo "$as_me:$LINENO: result: $CC" >&5
1611 echo "${ECHO_T}$CC" >&6
1612 else
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1615 fi
1616
1617 test -n "$CC" && break
1618 done
1619 fi
1620 if test -z "$CC"; then
1621 ac_ct_CC=$CC
1622 for ac_prog in cl
1623 do
1624 # Extract the first word of "$ac_prog", so it can be a program name with args.
1625 set dummy $ac_prog; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631 if test -n "$ac_ct_CC"; then
1632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1633 else
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637 IFS=$as_save_IFS
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 ac_cv_prog_ac_ct_CC="$ac_prog"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 break 2
1644 fi
1645 done
1646 done
1647
1648 fi
1649 fi
1650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1651 if test -n "$ac_ct_CC"; then
1652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1653 echo "${ECHO_T}$ac_ct_CC" >&6
1654 else
1655 echo "$as_me:$LINENO: result: no" >&5
1656 echo "${ECHO_T}no" >&6
1657 fi
1658
1659 test -n "$ac_ct_CC" && break
1660 done
1661
1662 CC=$ac_ct_CC
1663 fi
1664
1665 fi
1666
1667
1668 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1669 See \`config.log' for more details." >&5
1670 echo "$as_me: error: no acceptable C compiler found in \$PATH
1671 See \`config.log' for more details." >&2;}
1672 { (exit 1); exit 1; }; }
1673
1674 # Provide some information about the compiler.
1675 echo "$as_me:$LINENO:" \
1676 "checking for C compiler version" >&5
1677 ac_compiler=`set X $ac_compile; echo $2`
1678 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1679 (eval $ac_compiler --version </dev/null >&5) 2>&5
1680 ac_status=$?
1681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1682 (exit $ac_status); }
1683 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1684 (eval $ac_compiler -v </dev/null >&5) 2>&5
1685 ac_status=$?
1686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687 (exit $ac_status); }
1688 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1689 (eval $ac_compiler -V </dev/null >&5) 2>&5
1690 ac_status=$?
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693
1694 cat >conftest.$ac_ext <<_ACEOF
1695 /* confdefs.h. */
1696 _ACEOF
1697 cat confdefs.h >>conftest.$ac_ext
1698 cat >>conftest.$ac_ext <<_ACEOF
1699 /* end confdefs.h. */
1700
1701 int
1702 main ()
1703 {
1704
1705 ;
1706 return 0;
1707 }
1708 _ACEOF
1709 ac_clean_files_save=$ac_clean_files
1710 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1711 # Try to create an executable without -o first, disregard a.out.
1712 # It will help us diagnose broken compilers, and finding out an intuition
1713 # of exeext.
1714 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1715 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1716 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1717 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1718 (eval $ac_link_default) 2>&5
1719 ac_status=$?
1720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721 (exit $ac_status); }; then
1722 # Find the output, starting from the most likely. This scheme is
1723 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1724 # resort.
1725
1726 # Be careful to initialize this variable, since it used to be cached.
1727 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1728 ac_cv_exeext=
1729 # b.out is created by i960 compilers.
1730 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1731 do
1732 test -f "$ac_file" || continue
1733 case $ac_file in
1734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1735 ;;
1736 conftest.$ac_ext )
1737 # This is the source file.
1738 ;;
1739 [ab].out )
1740 # We found the default executable, but exeext='' is most
1741 # certainly right.
1742 break;;
1743 *.* )
1744 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1745 # FIXME: I believe we export ac_cv_exeext for Libtool,
1746 # but it would be cool to find out if it's true. Does anybody
1747 # maintain Libtool? --akim.
1748 export ac_cv_exeext
1749 break;;
1750 * )
1751 break;;
1752 esac
1753 done
1754 else
1755 echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1759 See \`config.log' for more details." >&5
1760 echo "$as_me: error: C compiler cannot create executables
1761 See \`config.log' for more details." >&2;}
1762 { (exit 77); exit 77; }; }
1763 fi
1764
1765 ac_exeext=$ac_cv_exeext
1766 echo "$as_me:$LINENO: result: $ac_file" >&5
1767 echo "${ECHO_T}$ac_file" >&6
1768
1769 # Check the compiler produces executables we can run. If not, either
1770 # the compiler is broken, or we cross compile.
1771 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1772 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1773 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1774 # If not cross compiling, check that we can run a simple program.
1775 if test "$cross_compiling" != yes; then
1776 if { ac_try='./$ac_file'
1777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1778 (eval $ac_try) 2>&5
1779 ac_status=$?
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }; }; then
1782 cross_compiling=no
1783 else
1784 if test "$cross_compiling" = maybe; then
1785 cross_compiling=yes
1786 else
1787 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1788 If you meant to cross compile, use \`--host'.
1789 See \`config.log' for more details." >&5
1790 echo "$as_me: error: cannot run C compiled programs.
1791 If you meant to cross compile, use \`--host'.
1792 See \`config.log' for more details." >&2;}
1793 { (exit 1); exit 1; }; }
1794 fi
1795 fi
1796 fi
1797 echo "$as_me:$LINENO: result: yes" >&5
1798 echo "${ECHO_T}yes" >&6
1799
1800 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1801 ac_clean_files=$ac_clean_files_save
1802 # Check the compiler produces executables we can run. If not, either
1803 # the compiler is broken, or we cross compile.
1804 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1805 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1806 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1807 echo "${ECHO_T}$cross_compiling" >&6
1808
1809 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1810 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1812 (eval $ac_link) 2>&5
1813 ac_status=$?
1814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815 (exit $ac_status); }; then
1816 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1817 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1818 # work properly (i.e., refer to `conftest.exe'), while it won't with
1819 # `rm'.
1820 for ac_file in conftest.exe conftest conftest.*; do
1821 test -f "$ac_file" || continue
1822 case $ac_file in
1823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1824 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1825 export ac_cv_exeext
1826 break;;
1827 * ) break;;
1828 esac
1829 done
1830 else
1831 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1832 See \`config.log' for more details." >&5
1833 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1834 See \`config.log' for more details." >&2;}
1835 { (exit 1); exit 1; }; }
1836 fi
1837
1838 rm -f conftest$ac_cv_exeext
1839 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1840 echo "${ECHO_T}$ac_cv_exeext" >&6
1841
1842 rm -f conftest.$ac_ext
1843 EXEEXT=$ac_cv_exeext
1844 ac_exeext=$EXEEXT
1845 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1846 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1847 if test "${ac_cv_objext+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850 cat >conftest.$ac_ext <<_ACEOF
1851 /* confdefs.h. */
1852 _ACEOF
1853 cat confdefs.h >>conftest.$ac_ext
1854 cat >>conftest.$ac_ext <<_ACEOF
1855 /* end confdefs.h. */
1856
1857 int
1858 main ()
1859 {
1860
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 rm -f conftest.o conftest.obj
1866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1867 (eval $ac_compile) 2>&5
1868 ac_status=$?
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); }; then
1871 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1872 case $ac_file in
1873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1874 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1875 break;;
1876 esac
1877 done
1878 else
1879 echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1883 See \`config.log' for more details." >&5
1884 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1885 See \`config.log' for more details." >&2;}
1886 { (exit 1); exit 1; }; }
1887 fi
1888
1889 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1890 fi
1891 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1892 echo "${ECHO_T}$ac_cv_objext" >&6
1893 OBJEXT=$ac_cv_objext
1894 ac_objext=$OBJEXT
1895 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1896 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1897 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900 cat >conftest.$ac_ext <<_ACEOF
1901 /* confdefs.h. */
1902 _ACEOF
1903 cat confdefs.h >>conftest.$ac_ext
1904 cat >>conftest.$ac_ext <<_ACEOF
1905 /* end confdefs.h. */
1906
1907 int
1908 main ()
1909 {
1910 #ifndef __GNUC__
1911 choke me
1912 #endif
1913
1914 ;
1915 return 0;
1916 }
1917 _ACEOF
1918 rm -f conftest.$ac_objext
1919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1920 (eval $ac_compile) 2>conftest.er1
1921 ac_status=$?
1922 grep -v '^ *+' conftest.er1 >conftest.err
1923 rm -f conftest.er1
1924 cat conftest.err >&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); } &&
1927 { ac_try='test -z "$ac_c_werror_flag"
1928 || test ! -s conftest.err'
1929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1930 (eval $ac_try) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }; } &&
1934 { ac_try='test -s conftest.$ac_objext'
1935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1936 (eval $ac_try) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; }; then
1940 ac_compiler_gnu=yes
1941 else
1942 echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 ac_compiler_gnu=no
1946 fi
1947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1948 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1949
1950 fi
1951 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1952 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1953 GCC=`test $ac_compiler_gnu = yes && echo yes`
1954 ac_test_CFLAGS=${CFLAGS+set}
1955 ac_save_CFLAGS=$CFLAGS
1956 CFLAGS="-g"
1957 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1958 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1959 if test "${ac_cv_prog_cc_g+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962 cat >conftest.$ac_ext <<_ACEOF
1963 /* confdefs.h. */
1964 _ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1968
1969 int
1970 main ()
1971 {
1972
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 rm -f conftest.$ac_objext
1978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979 (eval $ac_compile) 2>conftest.er1
1980 ac_status=$?
1981 grep -v '^ *+' conftest.er1 >conftest.err
1982 rm -f conftest.er1
1983 cat conftest.err >&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); } &&
1986 { ac_try='test -z "$ac_c_werror_flag"
1987 || test ! -s conftest.err'
1988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989 (eval $ac_try) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }; } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 ac_cv_prog_cc_g=yes
2000 else
2001 echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 ac_cv_prog_cc_g=no
2005 fi
2006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2007 fi
2008 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2009 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2010 if test "$ac_test_CFLAGS" = set; then
2011 CFLAGS=$ac_save_CFLAGS
2012 elif test $ac_cv_prog_cc_g = yes; then
2013 if test "$GCC" = yes; then
2014 CFLAGS="-g -O2"
2015 else
2016 CFLAGS="-g"
2017 fi
2018 else
2019 if test "$GCC" = yes; then
2020 CFLAGS="-O2"
2021 else
2022 CFLAGS=
2023 fi
2024 fi
2025 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2026 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2027 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 ac_cv_prog_cc_stdc=no
2031 ac_save_CC=$CC
2032 cat >conftest.$ac_ext <<_ACEOF
2033 /* confdefs.h. */
2034 _ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h. */
2038 #include <stdarg.h>
2039 #include <stdio.h>
2040 #include <sys/types.h>
2041 #include <sys/stat.h>
2042 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2043 struct buf { int x; };
2044 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2045 static char *e (p, i)
2046 char **p;
2047 int i;
2048 {
2049 return p[i];
2050 }
2051 static char *f (char * (*g) (char **, int), char **p, ...)
2052 {
2053 char *s;
2054 va_list v;
2055 va_start (v,p);
2056 s = g (p, va_arg (v,int));
2057 va_end (v);
2058 return s;
2059 }
2060
2061 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2062 function prototypes and stuff, but not '\xHH' hex character constants.
2063 These don't provoke an error unfortunately, instead are silently treated
2064 as 'x'. The following induces an error, until -std1 is added to get
2065 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2066 array size at least. It's necessary to write '\x00'==0 to get something
2067 that's true only with -std1. */
2068 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2069
2070 int test (int i, double x);
2071 struct s1 {int (*f) (int a);};
2072 struct s2 {int (*f) (double a);};
2073 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2074 int argc;
2075 char **argv;
2076 int
2077 main ()
2078 {
2079 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2080 ;
2081 return 0;
2082 }
2083 _ACEOF
2084 # Don't try gcc -ansi; that turns off useful extensions and
2085 # breaks some systems' header files.
2086 # AIX -qlanglvl=ansi
2087 # Ultrix and OSF/1 -std1
2088 # HP-UX 10.20 and later -Ae
2089 # HP-UX older versions -Aa -D_HPUX_SOURCE
2090 # SVR4 -Xc -D__EXTENSIONS__
2091 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2092 do
2093 CC="$ac_save_CC $ac_arg"
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>conftest.er1
2097 ac_status=$?
2098 grep -v '^ *+' conftest.er1 >conftest.err
2099 rm -f conftest.er1
2100 cat conftest.err >&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try='test -z "$ac_c_werror_flag"
2104 || test ! -s conftest.err'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 (eval $ac_try) 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; } &&
2110 { ac_try='test -s conftest.$ac_objext'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 (eval $ac_try) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; }; then
2116 ac_cv_prog_cc_stdc=$ac_arg
2117 break
2118 else
2119 echo "$as_me: failed program was:" >&5
2120 sed 's/^/| /' conftest.$ac_ext >&5
2121
2122 fi
2123 rm -f conftest.err conftest.$ac_objext
2124 done
2125 rm -f conftest.$ac_ext conftest.$ac_objext
2126 CC=$ac_save_CC
2127
2128 fi
2129
2130 case "x$ac_cv_prog_cc_stdc" in
2131 x|xno)
2132 echo "$as_me:$LINENO: result: none needed" >&5
2133 echo "${ECHO_T}none needed" >&6 ;;
2134 *)
2135 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2136 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2137 CC="$CC $ac_cv_prog_cc_stdc" ;;
2138 esac
2139
2140 # Some people use a C++ compiler to compile C. Since we use `exit',
2141 # in C++ we need to declare it. In case someone uses the same compiler
2142 # for both compiling C and C++ we need to have the C++ compiler decide
2143 # the declaration of exit, since it's the most demanding environment.
2144 cat >conftest.$ac_ext <<_ACEOF
2145 #ifndef __cplusplus
2146 choke me
2147 #endif
2148 _ACEOF
2149 rm -f conftest.$ac_objext
2150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>conftest.er1
2152 ac_status=$?
2153 grep -v '^ *+' conftest.er1 >conftest.err
2154 rm -f conftest.er1
2155 cat conftest.err >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 { ac_try='test -z "$ac_c_werror_flag"
2159 || test ! -s conftest.err'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; } &&
2165 { ac_try='test -s conftest.$ac_objext'
2166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167 (eval $ac_try) 2>&5
2168 ac_status=$?
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; }; then
2171 for ac_declaration in \
2172 '' \
2173 'extern "C" void std::exit (int) throw (); using std::exit;' \
2174 'extern "C" void std::exit (int); using std::exit;' \
2175 'extern "C" void exit (int) throw ();' \
2176 'extern "C" void exit (int);' \
2177 'void exit (int);'
2178 do
2179 cat >conftest.$ac_ext <<_ACEOF
2180 /* confdefs.h. */
2181 _ACEOF
2182 cat confdefs.h >>conftest.$ac_ext
2183 cat >>conftest.$ac_ext <<_ACEOF
2184 /* end confdefs.h. */
2185 $ac_declaration
2186 #include <stdlib.h>
2187 int
2188 main ()
2189 {
2190 exit (42);
2191 ;
2192 return 0;
2193 }
2194 _ACEOF
2195 rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
2198 ac_status=$?
2199 grep -v '^ *+' conftest.er1 >conftest.err
2200 rm -f conftest.er1
2201 cat conftest.err >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -z "$ac_c_werror_flag"
2205 || test ! -s conftest.err'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 (eval $ac_try) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; } &&
2211 { ac_try='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 :
2218 else
2219 echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2221
2222 continue
2223 fi
2224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225 cat >conftest.$ac_ext <<_ACEOF
2226 /* confdefs.h. */
2227 _ACEOF
2228 cat confdefs.h >>conftest.$ac_ext
2229 cat >>conftest.$ac_ext <<_ACEOF
2230 /* end confdefs.h. */
2231 $ac_declaration
2232 int
2233 main ()
2234 {
2235 exit (42);
2236 ;
2237 return 0;
2238 }
2239 _ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2243 ac_status=$?
2244 grep -v '^ *+' conftest.er1 >conftest.err
2245 rm -f conftest.er1
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 (eval $ac_try) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 (eval $ac_try) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2262 break
2263 else
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 fi
2268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2269 done
2270 rm -f conftest*
2271 if test -n "$ac_declaration"; then
2272 echo '#ifdef __cplusplus' >>confdefs.h
2273 echo $ac_declaration >>confdefs.h
2274 echo '#endif' >>confdefs.h
2275 fi
2276
2277 else
2278 echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.$ac_ext >&5
2280
2281 fi
2282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2283 ac_ext=c
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
2289 ac_ext=cc
2290 ac_cpp='$CXXCPP $CPPFLAGS'
2291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2294 if test -n "$ac_tool_prefix"; then
2295 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2296 do
2297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_CXX+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304 if test -n "$CXX"; then
2305 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2317 fi
2318 done
2319 done
2320
2321 fi
2322 fi
2323 CXX=$ac_cv_prog_CXX
2324 if test -n "$CXX"; then
2325 echo "$as_me:$LINENO: result: $CXX" >&5
2326 echo "${ECHO_T}$CXX" >&6
2327 else
2328 echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2330 fi
2331
2332 test -n "$CXX" && break
2333 done
2334 fi
2335 if test -z "$CXX"; then
2336 ac_ct_CXX=$CXX
2337 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2338 do
2339 # Extract the first word of "$ac_prog", so it can be a program name with args.
2340 set dummy $ac_prog; ac_word=$2
2341 echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346 if test -n "$ac_ct_CXX"; then
2347 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2356 ac_cv_prog_ac_ct_CXX="$ac_prog"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 break 2
2359 fi
2360 done
2361 done
2362
2363 fi
2364 fi
2365 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2366 if test -n "$ac_ct_CXX"; then
2367 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2368 echo "${ECHO_T}$ac_ct_CXX" >&6
2369 else
2370 echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6
2372 fi
2373
2374 test -n "$ac_ct_CXX" && break
2375 done
2376 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2377
2378 CXX=$ac_ct_CXX
2379 fi
2380
2381
2382 # Provide some information about the compiler.
2383 echo "$as_me:$LINENO:" \
2384 "checking for C++ compiler version" >&5
2385 ac_compiler=`set X $ac_compile; echo $2`
2386 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2387 (eval $ac_compiler --version </dev/null >&5) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }
2391 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2392 (eval $ac_compiler -v </dev/null >&5) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }
2396 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2397 (eval $ac_compiler -V </dev/null >&5) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }
2401
2402 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2403 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2404 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h. */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2413
2414 int
2415 main ()
2416 {
2417 #ifndef __GNUC__
2418 choke me
2419 #endif
2420
2421 ;
2422 return 0;
2423 }
2424 _ACEOF
2425 rm -f conftest.$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>conftest.er1
2428 ac_status=$?
2429 grep -v '^ *+' conftest.er1 >conftest.err
2430 rm -f conftest.er1
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try='test -z "$ac_cxx_werror_flag"
2435 || test ! -s conftest.err'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2447 ac_compiler_gnu=yes
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 ac_compiler_gnu=no
2453 fi
2454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2456
2457 fi
2458 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2459 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2460 GXX=`test $ac_compiler_gnu = yes && echo yes`
2461 ac_test_CXXFLAGS=${CXXFLAGS+set}
2462 ac_save_CXXFLAGS=$CXXFLAGS
2463 CXXFLAGS="-g"
2464 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2465 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2466 if test "${ac_cv_prog_cxx_g+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h. */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2475
2476 int
2477 main ()
2478 {
2479
2480 ;
2481 return 0;
2482 }
2483 _ACEOF
2484 rm -f conftest.$ac_objext
2485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486 (eval $ac_compile) 2>conftest.er1
2487 ac_status=$?
2488 grep -v '^ *+' conftest.er1 >conftest.err
2489 rm -f conftest.er1
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try='test -z "$ac_cxx_werror_flag"
2494 || test ! -s conftest.err'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 (eval $ac_try) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; } &&
2500 { ac_try='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2506 ac_cv_prog_cxx_g=yes
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 ac_cv_prog_cxx_g=no
2512 fi
2513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2514 fi
2515 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2516 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2517 if test "$ac_test_CXXFLAGS" = set; then
2518 CXXFLAGS=$ac_save_CXXFLAGS
2519 elif test $ac_cv_prog_cxx_g = yes; then
2520 if test "$GXX" = yes; then
2521 CXXFLAGS="-g -O2"
2522 else
2523 CXXFLAGS="-g"
2524 fi
2525 else
2526 if test "$GXX" = yes; then
2527 CXXFLAGS="-O2"
2528 else
2529 CXXFLAGS=
2530 fi
2531 fi
2532 for ac_declaration in \
2533 '' \
2534 'extern "C" void std::exit (int) throw (); using std::exit;' \
2535 'extern "C" void std::exit (int); using std::exit;' \
2536 'extern "C" void exit (int) throw ();' \
2537 'extern "C" void exit (int);' \
2538 'void exit (int);'
2539 do
2540 cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2546 $ac_declaration
2547 #include <stdlib.h>
2548 int
2549 main ()
2550 {
2551 exit (42);
2552 ;
2553 return 0;
2554 }
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_cxx_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 :
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 continue
2584 fi
2585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2592 $ac_declaration
2593 int
2594 main ()
2595 {
2596 exit (42);
2597 ;
2598 return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_cxx_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 break
2624 else
2625 echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2627
2628 fi
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630 done
2631 rm -f conftest*
2632 if test -n "$ac_declaration"; then
2633 echo '#ifdef __cplusplus' >>confdefs.h
2634 echo $ac_declaration >>confdefs.h
2635 echo '#endif' >>confdefs.h
2636 fi
2637
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643
2644
2645 # see if we actually have a CXX program
2646 if test "$ac_cv_prog_CXX" = "" -o ! -x "$ac_cv_prog_CXX"; then
2647 { echo "$as_me:$LINENO: WARNING: could not find C++ compiler $ac_cv_prog_CXX" >&5
2648 echo "$as_me: WARNING: could not find C++ compiler $ac_cv_prog_CXX" >&2;}
2649 enable_cxx=no
2650 fi
2651
2652 # hopefully we have a stdc c-compiler
2653 if test "$ac_cv_prog_cc_stdc" = "no" ; then
2654 { echo "$as_me:$LINENO: WARNING: " >&5
2655 echo "$as_me: WARNING: " >&2;}
2656 { echo "$as_me:$LINENO: WARNING: no ansi compiler. this build may fail." >&5
2657 echo "$as_me: WARNING: no ansi compiler. this build may fail." >&2;}
2658 { echo "$as_me:$LINENO: WARNING: " >&5
2659 echo "$as_me: WARNING: " >&2;}
2660 fi
2661 ac_aux_dir=
2662 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2663 if test -f $ac_dir/install-sh; then
2664 ac_aux_dir=$ac_dir
2665 ac_install_sh="$ac_aux_dir/install-sh -c"
2666 break
2667 elif test -f $ac_dir/install.sh; then
2668 ac_aux_dir=$ac_dir
2669 ac_install_sh="$ac_aux_dir/install.sh -c"
2670 break
2671 elif test -f $ac_dir/shtool; then
2672 ac_aux_dir=$ac_dir
2673 ac_install_sh="$ac_aux_dir/shtool install -c"
2674 break
2675 fi
2676 done
2677 if test -z "$ac_aux_dir"; then
2678 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2679 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2680 { (exit 1); exit 1; }; }
2681 fi
2682 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2683 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2684 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2685
2686 # Find a good install program. We prefer a C program (faster),
2687 # so one script is as good as another. But avoid the broken or
2688 # incompatible versions:
2689 # SysV /etc/install, /usr/sbin/install
2690 # SunOS /usr/etc/install
2691 # IRIX /sbin/install
2692 # AIX /bin/install
2693 # AmigaOS /C/install, which installs bootblocks on floppy discs
2694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2697 # OS/2's system install, which has a completely different semantic
2698 # ./install, which can be erroneously created by make from ./install.sh.
2699 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2700 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2701 if test -z "$INSTALL"; then
2702 if test "${ac_cv_path_install+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 # Account for people who put trailing slashes in PATH elements.
2711 case $as_dir/ in
2712 ./ | .// | /cC/* | \
2713 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2714 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2715 /usr/ucb/* ) ;;
2716 *)
2717 # OSF1 and SCO ODT 3.0 have their own names for install.
2718 # Don't use installbsd from OSF since it installs stuff as root
2719 # by default.
2720 for ac_prog in ginstall scoinst install; do
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2723 if test $ac_prog = install &&
2724 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2725 # AIX install. It has an incompatible calling convention.
2726 :
2727 elif test $ac_prog = install &&
2728 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2729 # program-specific install script used by HP pwplus--don't use.
2730 :
2731 else
2732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2733 break 3
2734 fi
2735 fi
2736 done
2737 done
2738 ;;
2739 esac
2740 done
2741
2742
2743 fi
2744 if test "${ac_cv_path_install+set}" = set; then
2745 INSTALL=$ac_cv_path_install
2746 else
2747 # As a last resort, use the slow shell script. We don't cache a
2748 # path for INSTALL within a source directory, because that will
2749 # break other packages using the cache if that directory is
2750 # removed, or if the path is relative.
2751 INSTALL=$ac_install_sh
2752 fi
2753 fi
2754 echo "$as_me:$LINENO: result: $INSTALL" >&5
2755 echo "${ECHO_T}$INSTALL" >&6
2756
2757 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2758 # It thinks the first close brace ends the variable substitution.
2759 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2760
2761 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2762
2763 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2764
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2768 echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770 if test "${ac_cv_prog_RANLIB+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 if test -n "$RANLIB"; then
2774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787 done
2788 done
2789
2790 fi
2791 fi
2792 RANLIB=$ac_cv_prog_RANLIB
2793 if test -n "$RANLIB"; then
2794 echo "$as_me:$LINENO: result: $RANLIB" >&5
2795 echo "${ECHO_T}$RANLIB" >&6
2796 else
2797 echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2799 fi
2800
2801 fi
2802 if test -z "$ac_cv_prog_RANLIB"; then
2803 ac_ct_RANLIB=$RANLIB
2804 # Extract the first word of "ranlib", so it can be a program name with args.
2805 set dummy ranlib; ac_word=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811 if test -n "$ac_ct_RANLIB"; then
2812 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_RANLIB="ranlib"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825 done
2826 done
2827
2828 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2829 fi
2830 fi
2831 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2832 if test -n "$ac_ct_RANLIB"; then
2833 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2834 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2835 else
2836 echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6
2838 fi
2839
2840 RANLIB=$ac_ct_RANLIB
2841 else
2842 RANLIB="$ac_cv_prog_RANLIB"
2843 fi
2844
2845
2846 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2847 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2848 if test "${ac_cv_c_const+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851 cat >conftest.$ac_ext <<_ACEOF
2852 /* confdefs.h. */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2857
2858 int
2859 main ()
2860 {
2861 /* FIXME: Include the comments suggested by Paul. */
2862 #ifndef __cplusplus
2863 /* Ultrix mips cc rejects this. */
2864 typedef int charset[2];
2865 const charset x;
2866 /* SunOS 4.1.1 cc rejects this. */
2867 char const *const *ccp;
2868 char **p;
2869 /* NEC SVR4.0.2 mips cc rejects this. */
2870 struct point {int x, y;};
2871 static struct point const zero = {0,0};
2872 /* AIX XL C 1.02.0.0 rejects this.
2873 It does not let you subtract one const X* pointer from another in
2874 an arm of an if-expression whose if-part is not a constant
2875 expression */
2876 const char *g = "string";
2877 ccp = &g + (g ? g-g : 0);
2878 /* HPUX 7.0 cc rejects these. */
2879 ++ccp;
2880 p = (char**) ccp;
2881 ccp = (char const *const *) p;
2882 { /* SCO 3.2v4 cc rejects this. */
2883 char *t;
2884 char const *s = 0 ? (char *) 0 : (char const *) 0;
2885
2886 *t++ = 0;
2887 }
2888 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2889 int x[] = {25, 17};
2890 const int *foo = &x[0];
2891 ++foo;
2892 }
2893 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2894 typedef const int *iptr;
2895 iptr p = 0;
2896 ++p;
2897 }
2898 { /* AIX XL C 1.02.0.0 rejects this saying
2899 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2900 struct s { int j; const int *ap[3]; };
2901 struct s *b; b->j = 5;
2902 }
2903 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2904 const int foo = 10;
2905 }
2906 #endif
2907
2908 ;
2909 return 0;
2910 }
2911 _ACEOF
2912 rm -f conftest.$ac_objext
2913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2914 (eval $ac_compile) 2>conftest.er1
2915 ac_status=$?
2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } &&
2921 { ac_try='test -z "$ac_c_werror_flag"
2922 || test ! -s conftest.err'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; } &&
2928 { ac_try='test -s conftest.$ac_objext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 ac_cv_c_const=yes
2935 else
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939 ac_cv_c_const=no
2940 fi
2941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2942 fi
2943 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2944 echo "${ECHO_T}$ac_cv_c_const" >&6
2945 if test $ac_cv_c_const = no; then
2946
2947 cat >>confdefs.h <<\_ACEOF
2948 #define const
2949 _ACEOF
2950
2951 fi
2952
2953
2954 # we need this for various settings
2955 ac_ext=c
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2961 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2962 # On Suns, sometimes $CPP names a directory.
2963 if test -n "$CPP" && test -d "$CPP"; then
2964 CPP=
2965 fi
2966 if test -z "$CPP"; then
2967 if test "${ac_cv_prog_CPP+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 # Double quotes because CPP needs to be expanded
2971 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2972 do
2973 ac_preproc_ok=false
2974 for ac_c_preproc_warn_flag in '' yes
2975 do
2976 # Use a header file that comes with gcc, so configuring glibc
2977 # with a fresh cross-compiler works.
2978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2979 # <limits.h> exists even on freestanding compilers.
2980 # On the NeXT, cc -E runs the code through the compiler's parser,
2981 # not just through cpp. "Syntax error" is here to catch this case.
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2988 #ifdef __STDC__
2989 # include <limits.h>
2990 #else
2991 # include <assert.h>
2992 #endif
2993 Syntax error
2994 _ACEOF
2995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2997 ac_status=$?
2998 grep -v '^ *+' conftest.er1 >conftest.err
2999 rm -f conftest.er1
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } >/dev/null; then
3003 if test -s conftest.err; then
3004 ac_cpp_err=$ac_c_preproc_warn_flag
3005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3006 else
3007 ac_cpp_err=
3008 fi
3009 else
3010 ac_cpp_err=yes
3011 fi
3012 if test -z "$ac_cpp_err"; then
3013 :
3014 else
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3017
3018 # Broken: fails on valid input.
3019 continue
3020 fi
3021 rm -f conftest.err conftest.$ac_ext
3022
3023 # OK, works on sane cases. Now check whether non-existent headers
3024 # can be detected and how.
3025 cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h. */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3031 #include <ac_nonexistent.h>
3032 _ACEOF
3033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } >/dev/null; then
3041 if test -s conftest.err; then
3042 ac_cpp_err=$ac_c_preproc_warn_flag
3043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3044 else
3045 ac_cpp_err=
3046 fi
3047 else
3048 ac_cpp_err=yes
3049 fi
3050 if test -z "$ac_cpp_err"; then
3051 # Broken: success on invalid input.
3052 continue
3053 else
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 # Passes both tests.
3058 ac_preproc_ok=:
3059 break
3060 fi
3061 rm -f conftest.err conftest.$ac_ext
3062
3063 done
3064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3065 rm -f conftest.err conftest.$ac_ext
3066 if $ac_preproc_ok; then
3067 break
3068 fi
3069
3070 done
3071 ac_cv_prog_CPP=$CPP
3072
3073 fi
3074 CPP=$ac_cv_prog_CPP
3075 else
3076 ac_cv_prog_CPP=$CPP
3077 fi
3078 echo "$as_me:$LINENO: result: $CPP" >&5
3079 echo "${ECHO_T}$CPP" >&6
3080 ac_preproc_ok=false
3081 for ac_c_preproc_warn_flag in '' yes
3082 do
3083 # Use a header file that comes with gcc, so configuring glibc
3084 # with a fresh cross-compiler works.
3085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3086 # <limits.h> exists even on freestanding compilers.
3087 # On the NeXT, cc -E runs the code through the compiler's parser,
3088 # not just through cpp. "Syntax error" is here to catch this case.
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3095 #ifdef __STDC__
3096 # include <limits.h>
3097 #else
3098 # include <assert.h>
3099 #endif
3100 Syntax error
3101 _ACEOF
3102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } >/dev/null; then
3110 if test -s conftest.err; then
3111 ac_cpp_err=$ac_c_preproc_warn_flag
3112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3113 else
3114 ac_cpp_err=
3115 fi
3116 else
3117 ac_cpp_err=yes
3118 fi
3119 if test -z "$ac_cpp_err"; then
3120 :
3121 else
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125 # Broken: fails on valid input.
3126 continue
3127 fi
3128 rm -f conftest.err conftest.$ac_ext
3129
3130 # OK, works on sane cases. Now check whether non-existent headers
3131 # can be detected and how.
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138 #include <ac_nonexistent.h>
3139 _ACEOF
3140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } >/dev/null; then
3148 if test -s conftest.err; then
3149 ac_cpp_err=$ac_c_preproc_warn_flag
3150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3151 else
3152 ac_cpp_err=
3153 fi
3154 else
3155 ac_cpp_err=yes
3156 fi
3157 if test -z "$ac_cpp_err"; then
3158 # Broken: success on invalid input.
3159 continue
3160 else
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 # Passes both tests.
3165 ac_preproc_ok=:
3166 break
3167 fi
3168 rm -f conftest.err conftest.$ac_ext
3169
3170 done
3171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3172 rm -f conftest.err conftest.$ac_ext
3173 if $ac_preproc_ok; then
3174 :
3175 else
3176 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3177 See \`config.log' for more details." >&5
3178 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3179 See \`config.log' for more details." >&2;}
3180 { (exit 1); exit 1; }; }
3181 fi
3182
3183 ac_ext=c
3184 ac_cpp='$CPP $CPPFLAGS'
3185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188
3189
3190 echo "$as_me:$LINENO: checking for egrep" >&5
3191 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3192 if test "${ac_cv_prog_egrep+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3196 then ac_cv_prog_egrep='grep -E'
3197 else ac_cv_prog_egrep='egrep'
3198 fi
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3201 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3202 EGREP=$ac_cv_prog_egrep
3203
3204
3205 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3206 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3207 if test "${ac_cv_header_stdc+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210 cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h. */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3216 #include <stdlib.h>
3217 #include <stdarg.h>
3218 #include <string.h>
3219 #include <float.h>
3220
3221 int
3222 main ()
3223 {
3224
3225 ;
3226 return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag"
3239 || test ! -s conftest.err'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 (eval $ac_try) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 ac_cv_header_stdc=yes
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 ac_cv_header_stdc=no
3257 fi
3258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3259
3260 if test $ac_cv_header_stdc = yes; then
3261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h. */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3268 #include <string.h>
3269
3270 _ACEOF
3271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3272 $EGREP "memchr" >/dev/null 2>&1; then
3273 :
3274 else
3275 ac_cv_header_stdc=no
3276 fi
3277 rm -f conftest*
3278
3279 fi
3280
3281 if test $ac_cv_header_stdc = yes; then
3282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3283 cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h. */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289 #include <stdlib.h>
3290
3291 _ACEOF
3292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3293 $EGREP "free" >/dev/null 2>&1; then
3294 :
3295 else
3296 ac_cv_header_stdc=no
3297 fi
3298 rm -f conftest*
3299
3300 fi
3301
3302 if test $ac_cv_header_stdc = yes; then
3303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3304 if test "$cross_compiling" = yes; then
3305 :
3306 else
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include <ctype.h>
3314 #if ((' ' & 0x0FF) == 0x020)
3315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3317 #else
3318 # define ISLOWER(c) \
3319 (('a' <= (c) && (c) <= 'i') \
3320 || ('j' <= (c) && (c) <= 'r') \
3321 || ('s' <= (c) && (c) <= 'z'))
3322 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3323 #endif
3324
3325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3326 int
3327 main ()
3328 {
3329 int i;
3330 for (i = 0; i < 256; i++)
3331 if (XOR (islower (i), ISLOWER (i))
3332 || toupper (i) != TOUPPER (i))
3333 exit(2);
3334 exit (0);
3335 }
3336 _ACEOF
3337 rm -f conftest$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339 (eval $ac_link) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 :
3349 else
3350 echo "$as_me: program exited with status $ac_status" >&5
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354 ( exit $ac_status )
3355 ac_cv_header_stdc=no
3356 fi
3357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3358 fi
3359 fi
3360 fi
3361 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3362 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3363 if test $ac_cv_header_stdc = yes; then
3364
3365 cat >>confdefs.h <<\_ACEOF
3366 #define STDC_HEADERS 1
3367 _ACEOF
3368
3369 fi
3370
3371 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3382 inttypes.h stdint.h unistd.h
3383 do
3384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3385 echo "$as_me:$LINENO: checking for $ac_header" >&5
3386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390 cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h. */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 $ac_includes_default
3397
3398 #include <$ac_header>
3399 _ACEOF
3400 rm -f conftest.$ac_objext
3401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try='test -z "$ac_c_werror_flag"
3410 || test ! -s conftest.err'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 (eval $ac_try) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; } &&
3416 { ac_try='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 (eval $ac_try) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 eval "$as_ac_Header=yes"
3423 else
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427 eval "$as_ac_Header=no"
3428 fi
3429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3430 fi
3431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3434 cat >>confdefs.h <<_ACEOF
3435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3436 _ACEOF
3437
3438 fi
3439
3440 done
3441
3442
3443 if test "${ac_cv_header_stdarg_h+set}" = set; then
3444 echo "$as_me:$LINENO: checking for stdarg.h" >&5
3445 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
3446 if test "${ac_cv_header_stdarg_h+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 fi
3449 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
3450 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
3451 else
3452 # Is the header compilable?
3453 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
3454 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
3455 cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h. */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3461 $ac_includes_default
3462 #include <stdarg.h>
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_header_compiler=yes
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 ac_header_compiler=no
3492 fi
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3495 echo "${ECHO_T}$ac_header_compiler" >&6
3496
3497 # Is the header present?
3498 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
3499 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 #include <stdarg.h>
3507 _ACEOF
3508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } >/dev/null; then
3516 if test -s conftest.err; then
3517 ac_cpp_err=$ac_c_preproc_warn_flag
3518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3519 else
3520 ac_cpp_err=
3521 fi
3522 else
3523 ac_cpp_err=yes
3524 fi
3525 if test -z "$ac_cpp_err"; then
3526 ac_header_preproc=yes
3527 else
3528 echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3530
3531 ac_header_preproc=no
3532 fi
3533 rm -f conftest.err conftest.$ac_ext
3534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3535 echo "${ECHO_T}$ac_header_preproc" >&6
3536
3537 # So? What about this header?
3538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3539 yes:no: )
3540 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
3541 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3542 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
3543 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
3544 ac_header_preproc=yes
3545 ;;
3546 no:yes:* )
3547 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
3548 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
3549 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
3550 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
3551 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
3552 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
3553 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
3554 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
3555 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
3556 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
3557 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
3558 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
3559 (
3560 cat <<\_ASBOX
3561 ## ---------------------------------- ##
3562 ## Report this to http://dmalloc.com/ ##
3563 ## ---------------------------------- ##
3564 _ASBOX
3565 ) |
3566 sed "s/^/$as_me: WARNING: /" >&2
3567 ;;
3568 esac
3569 echo "$as_me:$LINENO: checking for stdarg.h" >&5
3570 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
3571 if test "${ac_cv_header_stdarg_h+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 ac_cv_header_stdarg_h=$ac_header_preproc
3575 fi
3576 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
3577 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
3578
3579 fi
3580 if test $ac_cv_header_stdarg_h = yes; then
3581 cat >>confdefs.h <<\_ACEOF
3582 #define HAVE_STDARG_H 1
3583 _ACEOF
3584 HAVE_STDARG_H=1
3585
3586 else
3587 cat >>confdefs.h <<\_ACEOF
3588 #define HAVE_STDARG_H 0
3589 _ACEOF
3590 HAVE_STDARG_H=0
3591
3592 fi
3593
3594
3595 if test "${ac_cv_header_stdlib_h+set}" = set; then
3596 echo "$as_me:$LINENO: checking for stdlib.h" >&5
3597 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
3598 if test "${ac_cv_header_stdlib_h+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 fi
3601 echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
3602 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
3603 else
3604 # Is the header compilable?
3605 echo "$as_me:$LINENO: checking stdlib.h usability" >&5
3606 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613 $ac_includes_default
3614 #include <stdlib.h>
3615 _ACEOF
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618 (eval $ac_compile) 2>conftest.er1
3619 ac_status=$?
3620 grep -v '^ *+' conftest.er1 >conftest.err
3621 rm -f conftest.er1
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
3625 { ac_try='test -z "$ac_c_werror_flag"
3626 || test ! -s conftest.err'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; } &&
3632 { ac_try='test -s conftest.$ac_objext'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; }; then
3638 ac_header_compiler=yes
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 ac_header_compiler=no
3644 fi
3645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3647 echo "${ECHO_T}$ac_header_compiler" >&6
3648
3649 # Is the header present?
3650 echo "$as_me:$LINENO: checking stdlib.h presence" >&5
3651 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 #include <stdlib.h>
3659 _ACEOF
3660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } >/dev/null; then
3668 if test -s conftest.err; then
3669 ac_cpp_err=$ac_c_preproc_warn_flag
3670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3671 else
3672 ac_cpp_err=
3673 fi
3674 else
3675 ac_cpp_err=yes
3676 fi
3677 if test -z "$ac_cpp_err"; then
3678 ac_header_preproc=yes
3679 else
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683 ac_header_preproc=no
3684 fi
3685 rm -f conftest.err conftest.$ac_ext
3686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3687 echo "${ECHO_T}$ac_header_preproc" >&6
3688
3689 # So? What about this header?
3690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3691 yes:no: )
3692 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
3693 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3694 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
3695 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
3696 ac_header_preproc=yes
3697 ;;
3698 no:yes:* )
3699 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
3700 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
3702 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
3704 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
3706 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
3708 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
3710 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
3711 (
3712 cat <<\_ASBOX
3713 ## ---------------------------------- ##
3714 ## Report this to http://dmalloc.com/ ##
3715 ## ---------------------------------- ##
3716 _ASBOX
3717 ) |
3718 sed "s/^/$as_me: WARNING: /" >&2
3719 ;;
3720 esac
3721 echo "$as_me:$LINENO: checking for stdlib.h" >&5
3722 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
3723 if test "${ac_cv_header_stdlib_h+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 ac_cv_header_stdlib_h=$ac_header_preproc
3727 fi
3728 echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
3729 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
3730
3731 fi
3732 if test $ac_cv_header_stdlib_h = yes; then
3733 cat >>confdefs.h <<\_ACEOF
3734 #define HAVE_STDLIB_H 1
3735 _ACEOF
3736 HAVE_STDLIB_H=1
3737
3738 else
3739 cat >>confdefs.h <<\_ACEOF
3740 #define HAVE_STDLIB_H 0
3741 _ACEOF
3742 HAVE_STDLIB_H=0
3743
3744 fi
3745
3746
3747 if test "${ac_cv_header_string_h+set}" = set; then
3748 echo "$as_me:$LINENO: checking for string.h" >&5
3749 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
3750 if test "${ac_cv_header_string_h+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 fi
3753 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
3754 echo "${ECHO_T}$ac_cv_header_string_h" >&6
3755 else
3756 # Is the header compilable?
3757 echo "$as_me:$LINENO: checking string.h usability" >&5
3758 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 $ac_includes_default
3766 #include <string.h>
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>conftest.er1
3771 ac_status=$?
3772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -z "$ac_c_werror_flag"
3778 || test ! -s conftest.err'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; } &&
3784 { ac_try='test -s conftest.$ac_objext'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 ac_header_compiler=yes
3791 else
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 ac_header_compiler=no
3796 fi
3797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3799 echo "${ECHO_T}$ac_header_compiler" >&6
3800
3801 # Is the header present?
3802 echo "$as_me:$LINENO: checking string.h presence" >&5
3803 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
3804 cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h. */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3810 #include <string.h>
3811 _ACEOF
3812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev/null; then
3820 if test -s conftest.err; then
3821 ac_cpp_err=$ac_c_preproc_warn_flag
3822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3823 else
3824 ac_cpp_err=
3825 fi
3826 else
3827 ac_cpp_err=yes
3828 fi
3829 if test -z "$ac_cpp_err"; then
3830 ac_header_preproc=yes
3831 else
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 ac_header_preproc=no
3836 fi
3837 rm -f conftest.err conftest.$ac_ext
3838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3839 echo "${ECHO_T}$ac_header_preproc" >&6
3840
3841 # So? What about this header?
3842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3843 yes:no: )
3844 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
3845 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3846 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
3847 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
3848 ac_header_preproc=yes
3849 ;;
3850 no:yes:* )
3851 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
3852 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
3853 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
3854 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
3855 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
3856 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
3857 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
3858 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
3859 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
3860 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
3861 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
3862 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
3863 (
3864 cat <<\_ASBOX
3865 ## ---------------------------------- ##
3866 ## Report this to http://dmalloc.com/ ##
3867 ## ---------------------------------- ##
3868 _ASBOX
3869 ) |
3870 sed "s/^/$as_me: WARNING: /" >&2
3871 ;;
3872 esac
3873 echo "$as_me:$LINENO: checking for string.h" >&5
3874 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
3875 if test "${ac_cv_header_string_h+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878 ac_cv_header_string_h=$ac_header_preproc
3879 fi
3880 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
3881 echo "${ECHO_T}$ac_cv_header_string_h" >&6
3882
3883 fi
3884 if test $ac_cv_header_string_h = yes; then
3885 cat >>confdefs.h <<\_ACEOF
3886 #define HAVE_STRING_H 1
3887 _ACEOF
3888 HAVE_STRING_H=1
3889
3890 else
3891 cat >>confdefs.h <<\_ACEOF
3892 #define HAVE_STRING_H 0
3893 _ACEOF
3894 HAVE_STRING_H=0
3895
3896 fi
3897
3898
3899 if test "${ac_cv_header_unistd_h+set}" = set; then
3900 echo "$as_me:$LINENO: checking for unistd.h" >&5
3901 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
3902 if test "${ac_cv_header_unistd_h+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 fi
3905 echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
3906 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
3907 else
3908 # Is the header compilable?
3909 echo "$as_me:$LINENO: checking unistd.h usability" >&5
3910 echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
3911 cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h. */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3917 $ac_includes_default
3918 #include <unistd.h>
3919 _ACEOF
3920 rm -f conftest.$ac_objext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922 (eval $ac_compile) 2>conftest.er1
3923 ac_status=$?
3924 grep -v '^ *+' conftest.er1 >conftest.err
3925 rm -f conftest.er1
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try='test -z "$ac_c_werror_flag"
3930 || test ! -s conftest.err'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; } &&
3936 { ac_try='test -s conftest.$ac_objext'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 (eval $ac_try) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3942 ac_header_compiler=yes
3943 else
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947 ac_header_compiler=no
3948 fi
3949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3951 echo "${ECHO_T}$ac_header_compiler" >&6
3952
3953 # Is the header present?
3954 echo "$as_me:$LINENO: checking unistd.h presence" >&5
3955 echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
3956 cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h. */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3962 #include <unistd.h>
3963 _ACEOF
3964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } >/dev/null; then
3972 if test -s conftest.err; then
3973 ac_cpp_err=$ac_c_preproc_warn_flag
3974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3975 else
3976 ac_cpp_err=
3977 fi
3978 else
3979 ac_cpp_err=yes
3980 fi
3981 if test -z "$ac_cpp_err"; then
3982 ac_header_preproc=yes
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987 ac_header_preproc=no
3988 fi
3989 rm -f conftest.err conftest.$ac_ext
3990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3991 echo "${ECHO_T}$ac_header_preproc" >&6
3992
3993 # So? What about this header?
3994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3995 yes:no: )
3996 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
3997 echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3998 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
3999 echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
4000 ac_header_preproc=yes
4001 ;;
4002 no:yes:* )
4003 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
4004 echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
4005 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
4006 echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
4007 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
4008 echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
4009 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
4010 echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
4011 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
4012 echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
4013 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
4014 echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
4015 (
4016 cat <<\_ASBOX
4017 ## ---------------------------------- ##
4018 ## Report this to http://dmalloc.com/ ##
4019 ## ---------------------------------- ##
4020 _ASBOX
4021 ) |
4022 sed "s/^/$as_me: WARNING: /" >&2
4023 ;;
4024 esac
4025 echo "$as_me:$LINENO: checking for unistd.h" >&5
4026 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
4027 if test "${ac_cv_header_unistd_h+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030 ac_cv_header_unistd_h=$ac_header_preproc
4031 fi
4032 echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
4033 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
4034
4035 fi
4036 if test $ac_cv_header_unistd_h = yes; then
4037 cat >>confdefs.h <<\_ACEOF
4038 #define HAVE_UNISTD_H 1
4039 _ACEOF
4040 HAVE_UNISTD_H=1
4041
4042 else
4043 cat >>confdefs.h <<\_ACEOF
4044 #define HAVE_UNISTD_H 0
4045 _ACEOF
4046 HAVE_UNISTD_H=0
4047
4048 fi
4049
4050
4051 if test "${ac_cv_header_sys_types_h+set}" = set; then
4052 echo "$as_me:$LINENO: checking for sys/types.h" >&5
4053 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
4054 if test "${ac_cv_header_sys_types_h+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 fi
4057 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
4058 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
4059 else
4060 # Is the header compilable?
4061 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
4062 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 $ac_includes_default
4070 #include <sys/types.h>
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_c_werror_flag"
4082 || test ! -s conftest.err'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 (eval $ac_try) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; }; then
4094 ac_header_compiler=yes
4095 else
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099 ac_header_compiler=no
4100 fi
4101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4103 echo "${ECHO_T}$ac_header_compiler" >&6
4104
4105 # Is the header present?
4106 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
4107 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h. */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #include <sys/types.h>
4115 _ACEOF
4116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } >/dev/null; then
4124 if test -s conftest.err; then
4125 ac_cpp_err=$ac_c_preproc_warn_flag
4126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4127 else
4128 ac_cpp_err=
4129 fi
4130 else
4131 ac_cpp_err=yes
4132 fi
4133 if test -z "$ac_cpp_err"; then
4134 ac_header_preproc=yes
4135 else
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4138
4139 ac_header_preproc=no
4140 fi
4141 rm -f conftest.err conftest.$ac_ext
4142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4143 echo "${ECHO_T}$ac_header_preproc" >&6
4144
4145 # So? What about this header?
4146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4147 yes:no: )
4148 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
4149 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4150 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
4151 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
4152 ac_header_preproc=yes
4153 ;;
4154 no:yes:* )
4155 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
4156 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
4157 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
4158 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
4159 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
4160 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
4161 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
4162 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
4163 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
4164 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
4165 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
4166 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
4167 (
4168 cat <<\_ASBOX
4169 ## ---------------------------------- ##
4170 ## Report this to http://dmalloc.com/ ##
4171 ## ---------------------------------- ##
4172 _ASBOX
4173 ) |
4174 sed "s/^/$as_me: WARNING: /" >&2
4175 ;;
4176 esac
4177 echo "$as_me:$LINENO: checking for sys/types.h" >&5
4178 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
4179 if test "${ac_cv_header_sys_types_h+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182 ac_cv_header_sys_types_h=$ac_header_preproc
4183 fi
4184 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
4185 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
4186
4187 fi
4188 if test $ac_cv_header_sys_types_h = yes; then
4189 cat >>confdefs.h <<\_ACEOF
4190 #define HAVE_SYS_TYPES_H 1
4191 _ACEOF
4192 HAVE_SYS_TYPES_H=1
4193
4194 else
4195 cat >>confdefs.h <<\_ACEOF
4196 #define HAVE_SYS_TYPES_H 0
4197 _ACEOF
4198 HAVE_SYS_TYPES_H=0
4199
4200 fi
4201
4202
4203 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4204 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4205 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4206 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 fi
4209 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4210 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4211 else
4212 # Is the header compilable?
4213 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4214 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4215 cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h. */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 $ac_includes_default
4222 #include <sys/mman.h>
4223 _ACEOF
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>conftest.er1
4227 ac_status=$?
4228 grep -v '^ *+' conftest.er1 >conftest.err
4229 rm -f conftest.er1
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_c_werror_flag"
4234 || test ! -s conftest.err'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_header_compiler=yes
4247 else
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 ac_header_compiler=no
4252 fi
4253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4255 echo "${ECHO_T}$ac_header_compiler" >&6
4256
4257 # Is the header present?
4258 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
4259 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <sys/mman.h>
4267 _ACEOF
4268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4270 ac_status=$?
4271 grep -v '^ *+' conftest.er1 >conftest.err
4272 rm -f conftest.er1
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } >/dev/null; then
4276 if test -s conftest.err; then
4277 ac_cpp_err=$ac_c_preproc_warn_flag
4278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4279 else
4280 ac_cpp_err=
4281 fi
4282 else
4283 ac_cpp_err=yes
4284 fi
4285 if test -z "$ac_cpp_err"; then
4286 ac_header_preproc=yes
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ac_header_preproc=no
4292 fi
4293 rm -f conftest.err conftest.$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4295 echo "${ECHO_T}$ac_header_preproc" >&6
4296
4297 # So? What about this header?
4298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4299 yes:no: )
4300 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
4301 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4302 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
4303 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
4304 ac_header_preproc=yes
4305 ;;
4306 no:yes:* )
4307 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
4308 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
4309 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
4310 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
4311 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
4312 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
4313 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
4314 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
4315 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
4316 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
4317 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
4318 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
4319 (
4320 cat <<\_ASBOX
4321 ## ---------------------------------- ##
4322 ## Report this to http://dmalloc.com/ ##
4323 ## ---------------------------------- ##
4324 _ASBOX
4325 ) |
4326 sed "s/^/$as_me: WARNING: /" >&2
4327 ;;
4328 esac
4329 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4330 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4331 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 ac_cv_header_sys_mman_h=$ac_header_preproc
4335 fi
4336 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4337 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4338
4339 fi
4340 if test $ac_cv_header_sys_mman_h = yes; then
4341 cat >>confdefs.h <<\_ACEOF
4342 #define HAVE_SYS_MMAN_H 1
4343 _ACEOF
4344 HAVE_SYS_MMAN_H=1
4345
4346 else
4347 cat >>confdefs.h <<\_ACEOF
4348 #define HAVE_SYS_MMAN_H 0
4349 _ACEOF
4350 HAVE_SYS_MMAN_H=0
4351
4352 fi
4353
4354
4355
4356 ###############################################################################
4357 # shared library handling
4358
4359 #
4360 # check to see where we should install our shared libraries
4361 # DONT CACHE in case the change the --prefix
4362 #
4363 # This is pretty tricky here and should be handled by autoconf
4364 # automatically. I try to see if there is a shlib directory
4365 # to install by shlibs there. If not I use the $libdir. Some
4366 # of the variables have values of '${exec_prefix}' and the like
4367 # so the quoting is very important.
4368 #
4369 # We first try and find the true directory where we are
4370 # installing.
4371 #
4372 if test "x$exec_prefix" = xNONE; then
4373 if test "x$prefix" = xNONE; then
4374 shlibprefix="$ac_default_prefix"
4375 else
4376 shlibprefix="$prefix"
4377 fi
4378 else
4379 shlibprefix="$exec_prefix"
4380 fi
4381 #
4382 # Then we see if there is a special shlib directory to use.
4383 #
4384 if test -d $shlibprefix/shlib; then
4385 shlibdir='${exec_prefix}/shlib'
4386 else
4387 shlibdir="$libdir"
4388 fi
4389
4390
4391 # see how the local system builds shared libraries
4392 echo "$as_me:$LINENO: checking shared library link args" >&5
4393 echo $ECHO_N "checking shared library link args... $ECHO_C" >&6
4394 cat >conftest.$ac_ext <<_ACEOF
4395 int foo(int val) { return val + 1; }
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag"
4407 || test ! -s conftest.err'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; } &&
4413 { ac_try='test -s conftest.$ac_objext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419
4420 # so now we try to create an archive from the compiled .o file
4421 (ar cr conftest.a conftest.o) 2>&5
4422 # see which shared-library ld commands work
4423 #
4424 # Darwin/Mac OS X - Terry Teague
4425 # username terry_teague at domain users.sourceforge.net
4426 ac_cv_shared_lib_link_objs=no
4427 if test `uname` = "Darwin"; then
4428 if (ld -dylib -o conftest.so.t -lc conftest.a) 2>&5; then
4429 # By convention on some platforms
4430 # libLLL.so, libLLL.X.so are symlinks to libLLL.X.Y.Z.so
4431 # where X.Y.Z is version # (major.minor.increment) of the library
4432 # (API)
4433 # For the moment set the Mac OS X dylib compatibility version # to
4434 # 1.0 and don't create any symlinks or versioned library names.
4435 # Perhaps this could be the version of the dmalloc library
4436 # (e.g. 5.4.0)
4437 ac_cv_shared_link_args='$(CXX) -dynamiclib -install_name $@ -compatibility_version 1 -current_version 1 -o [email protected]'
4438 # linking static archives into a dynamic lib doesn't seem to work
4439 # explicitly link the object files
4440 ac_cv_shared_lib_link_objs=yes
4441 else
4442 # oh well, toss an error
4443 ac_cv_shared_link_args='# Could not configure shlib linking'
4444 enable_shlib=no
4445 fi
4446 elif (ld -shared --whole-archive -soname conftest.so -o conftest.so.t conftest.a) 2>&5; then
4447 ac_cv_shared_link_args='ld -shared --whole-archive -soname $@ -o [email protected]'
4448 elif (ld -shared -o conftest.so.t -all -soname conftest.so.t -none -lc -all conftest.a) 2>&5; then
4449 ac_cv_shared_link_args='ld -shared -o [email protected] -all -soname $@ -none -lc -all'
4450 elif (ld -G -o conftest.so.t conftest.a) 2>&5; then
4451 ac_cv_shared_link_args='ld -G -o [email protected]'
4452 else
4453 # oh well, toss an error
4454 ac_cv_shared_link_args='# Could not configure shlib linking'
4455 enable_shlib=no
4456 fi
4457
4458 else
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462
4463 # oh well, toss an error
4464 ac_cv_shared_link_args='# Could not configure shlib linking'
4465 enable_shlib=no
4466
4467 fi
4468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4469 shlinkargs="$ac_cv_shared_link_args"
4470
4471 if test "$ac_cv_shared_lib_link_objs" = "yes"; then
4472 echo "$as_me:$LINENO: result: $ac_cv_shared_link_args objectfiles..." >&5
4473 echo "${ECHO_T}$ac_cv_shared_link_args objectfiles..." >&6
4474 else
4475 echo "$as_me:$LINENO: result: $ac_cv_shared_link_args" >&5
4476 echo "${ECHO_T}$ac_cv_shared_link_args" >&6
4477 fi
4478
4479 ###############################################################################
4480
4481 echo "$as_me:$LINENO: checking shared library extension" >&5
4482 echo $ECHO_N "checking shared library extension... $ECHO_C" >&6
4483 if test `uname` = "Darwin"; then
4484 # Darwin/Mac OS X - Terry Teague
4485 # username terry_teague at domain users.sourceforge.net
4486 ac_cv_shared_lib_suffix=dylib
4487 else
4488 ac_cv_shared_lib_suffix=so
4489 fi
4490 shlibext="$ac_cv_shared_lib_suffix"
4491 echo "$as_me:$LINENO: result: $ac_cv_shared_lib_suffix" >&5
4492 echo "${ECHO_T}$ac_cv_shared_lib_suffix" >&6
4493
4494
4495 ###############################################################################
4496
4497 echo "$as_me:$LINENO: checking C++ support" >&5
4498 echo $ECHO_N "checking C++ support... $ECHO_C" >&6
4499 if test "$enable_cxx" = "yes"; then
4500
4501 CXX_OFF=#
4502
4503 echo "$as_me:$LINENO: result: enabled" >&5
4504 echo "${ECHO_T}enabled" >&6
4505 else
4506 CXX_ON=#
4507
4508
4509 echo "$as_me:$LINENO: result: disabled" >&5
4510 echo "${ECHO_T}disabled" >&6
4511 fi
4512
4513 echo "$as_me:$LINENO: checking thread support" >&5
4514 echo $ECHO_N "checking thread support... $ECHO_C" >&6
4515 if test "$enable_threads" = "yes"; then
4516
4517 TH_OFF=#
4518
4519 echo "$as_me:$LINENO: result: enabled" >&5
4520 echo "${ECHO_T}enabled" >&6
4521 else
4522 TH_ON=#
4523
4524
4525 echo "$as_me:$LINENO: result: disabled" >&5
4526 echo "${ECHO_T}disabled" >&6
4527 fi
4528
4529 # shlib support
4530 echo "$as_me:$LINENO: checking shlib support" >&5
4531 echo $ECHO_N "checking shlib support... $ECHO_C" >&6
4532 if test "$enable_shlib" = "yes"; then
4533
4534 SL_OFF=#
4535
4536 echo "$as_me:$LINENO: result: enabled" >&5
4537 echo "${ECHO_T}enabled" >&6
4538 else
4539 SL_ON=#
4540
4541
4542 echo "$as_me:$LINENO: result: disabled" >&5
4543 echo "${ECHO_T}disabled" >&6
4544 fi
4545
4546 ###############################################################################
4547 #
4548 # check for size_t
4549 #
4550 echo "$as_me:$LINENO: checking for size_t" >&5
4551 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4552 if test "${ac_cv_type_size_t+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 $ac_includes_default
4562 int
4563 main ()
4564 {
4565 if ((size_t *) 0)
4566 return 0;
4567 if (sizeof (size_t))
4568 return 0;
4569 ;
4570 return 0;
4571 }
4572 _ACEOF
4573 rm -f conftest.$ac_objext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575 (eval $ac_compile) 2>conftest.er1
4576 ac_status=$?
4577 grep -v '^ *+' conftest.er1 >conftest.err
4578 rm -f conftest.er1
4579 cat conftest.err >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } &&
4582 { ac_try='test -z "$ac_c_werror_flag"
4583 || test ! -s conftest.err'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 (eval $ac_try) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; } &&
4589 { ac_try='test -s conftest.$ac_objext'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 (eval $ac_try) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4595 ac_cv_type_size_t=yes
4596 else
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4599
4600 ac_cv_type_size_t=no
4601 fi
4602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4603 fi
4604 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4605 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4606 if test $ac_cv_type_size_t = yes; then
4607 :
4608 else
4609
4610 cat >>confdefs.h <<_ACEOF
4611 #define size_t unsigned
4612 _ACEOF
4613
4614 fi
4615
4616 if test "$ac_cv_type_size_t" = "yes"; then
4617 cat >>confdefs.h <<\_ACEOF
4618 #define DMALLOC_SIZE size_t
4619 _ACEOF
4620
4621 else
4622 cat >>confdefs.h <<\_ACEOF
4623 #define DMALLOC_SIZE unsigned long
4624 _ACEOF
4625
4626 fi
4627
4628 #
4629 # check for unsigned-ness
4630 #
4631 echo "$as_me:$LINENO: checking dmalloc size unsigned" >&5
4632 echo $ECHO_N "checking dmalloc size unsigned... $ECHO_C" >&6
4633 if test "$cross_compiling" = yes; then
4634 cat >>confdefs.h <<\_ACEOF
4635 #define DMALLOC_SIZE_UNSIGNED 0
4636 _ACEOF
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639
4640 else
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h. */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647
4648 #if HAVE_SYS_TYPES_H
4649 # include <sys/types.h>
4650 #endif
4651 #if HAVE_STDLIB_H
4652 # include <stdlib.h>
4653 #endif
4654 main() { DMALLOC_SIZE x = -1; if (x >= 0) exit(0); else exit(1); }
4655
4656 _ACEOF
4657 rm -f conftest$ac_exeext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659 (eval $ac_link) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 cat >>confdefs.h <<\_ACEOF
4669 #define DMALLOC_SIZE_UNSIGNED 1
4670 _ACEOF
4671 echo "$as_me:$LINENO: result: yes" >&5
4672 echo "${ECHO_T}yes" >&6
4673 else
4674 echo "$as_me: program exited with status $ac_status" >&5
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678 ( exit $ac_status )
4679 cat >>confdefs.h <<\_ACEOF
4680 #define DMALLOC_SIZE_UNSIGNED 0
4681 _ACEOF
4682 echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4684 fi
4685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4686 fi
4687
4688 #
4689 # check for strdup macro (linux)
4690 #
4691 echo "$as_me:$LINENO: checking strdup macro" >&5
4692 echo $ECHO_N "checking strdup macro... $ECHO_C" >&6
4693 if test "$cross_compiling" = yes; then
4694 ac_cv_strdup_macro=no
4695
4696 else
4697 cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h. */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703
4704 #if HAVE_STDLIB_H
4705 # include <string.h>
4706 #endif
4707
4708 #ifdef strdup
4709 main() { exit(0); }
4710 #else
4711 main() { exit(1); }
4712 #endif
4713
4714 _ACEOF
4715 rm -f conftest$ac_exeext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717 (eval $ac_link) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4726 ac_cv_strdup_macro=yes
4727 else
4728 echo "$as_me: program exited with status $ac_status" >&5
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 ( exit $ac_status )
4733 ac_cv_strdup_macro=no
4734 fi
4735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 echo "$as_me:$LINENO: result: $ac_cv_strdup_macro" >&5
4738 echo "${ECHO_T}$ac_cv_strdup_macro" >&6
4739
4740 #
4741 # check for existance of mprotect and associated defines
4742 #
4743
4744 for ac_func in mprotect
4745 do
4746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4747 echo "$as_me:$LINENO: checking for $ac_func" >&5
4748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4749 if eval "test \"\${$as_ac_var+set}\" = set"; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h. */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4760 #define $ac_func innocuous_$ac_func
4761
4762 /* System header to define __stub macros and hopefully few prototypes,
4763 which can conflict with char $ac_func (); below.
4764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4765 <limits.h> exists even on freestanding compilers. */
4766
4767 #ifdef __STDC__
4768 # include <limits.h>
4769 #else
4770 # include <assert.h>
4771 #endif
4772
4773 #undef $ac_func
4774
4775 /* Override any gcc2 internal prototype to avoid an error. */
4776 #ifdef __cplusplus
4777 extern "C"
4778 {
4779 #endif
4780 /* We use char because int might match the return type of a gcc2
4781 builtin and then its argument prototype would still apply. */
4782 char $ac_func ();
4783 /* The GNU C library defines this for functions which it implements
4784 to always fail with ENOSYS. Some functions are actually named
4785 something starting with __ and the normal name is an alias. */
4786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4787 choke me
4788 #else
4789 char (*f) () = $ac_func;
4790 #endif
4791 #ifdef __cplusplus
4792 }
4793 #endif
4794
4795 int
4796 main ()
4797 {
4798 return f != $ac_func;
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 rm -f conftest.$ac_objext conftest$ac_exeext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4805 (eval $ac_link) 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 (eval $ac_try) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try='test -s conftest$ac_exeext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 eval "$as_ac_var=yes"
4826 else
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 eval "$as_ac_var=no"
4831 fi
4832 rm -f conftest.err conftest.$ac_objext \
4833 conftest$ac_exeext conftest.$ac_ext
4834 fi
4835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4837 if test `eval echo '${'$as_ac_var'}'` = yes; then
4838 cat >>confdefs.h <<_ACEOF
4839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4840 _ACEOF
4841
4842 fi
4843 done
4844
4845 echo "$as_me:$LINENO: checking mprotect works" >&5
4846 echo $ECHO_N "checking mprotect works... $ECHO_C" >&6
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853
4854 #if HAVE_SYS_TYPES_H
4855 # include <sys/types.h>
4856 #endif
4857 #if HAVE_SYS_MMAN_H
4858 # include <sys/mman.h>
4859 #endif
4860
4861 int
4862 main ()
4863 {
4864
4865 int prot = PROT_NONE | PROT_READ | PROT_WRITE;
4866 (void)mprotect(0, 0, prot);
4867
4868 ;
4869 return 0;
4870 }
4871 _ACEOF
4872 rm -f conftest.$ac_objext conftest$ac_exeext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4874 (eval $ac_link) 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -z "$ac_c_werror_flag"
4882 || test ! -s conftest.err'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 (eval $ac_try) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; } &&
4888 { ac_try='test -s conftest$ac_exeext'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4894 cat >>confdefs.h <<\_ACEOF
4895 #define PROTECT_ALLOWED 1
4896 _ACEOF
4897 echo "$as_me:$LINENO: result: yes" >&5
4898 echo "${ECHO_T}yes" >&6
4899 else
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903 cat >>confdefs.h <<\_ACEOF
4904 #define PROTECT_ALLOWED 0
4905 _ACEOF
4906 echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6
4908
4909 fi
4910 rm -f conftest.err conftest.$ac_objext \
4911 conftest$ac_exeext conftest.$ac_ext
4912
4913 ##############################################################################
4914 { echo "$as_me:$LINENO: important functionality" >&5
4915 echo "$as_me: important functionality" >&6;}
4916
4917
4918 for ac_func in mmap
4919 do
4920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4921 echo "$as_me:$LINENO: checking for $ac_func" >&5
4922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4923 if eval "test \"\${$as_ac_var+set}\" = set"; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4934 #define $ac_func innocuous_$ac_func
4935
4936 /* System header to define __stub macros and hopefully few prototypes,
4937 which can conflict with char $ac_func (); below.
4938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 <limits.h> exists even on freestanding compilers. */
4940
4941 #ifdef __STDC__
4942 # include <limits.h>
4943 #else
4944 # include <assert.h>
4945 #endif
4946
4947 #undef $ac_func
4948
4949 /* Override any gcc2 internal prototype to avoid an error. */
4950 #ifdef __cplusplus
4951 extern "C"
4952 {
4953 #endif
4954 /* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4956 char $ac_func ();
4957 /* The GNU C library defines this for functions which it implements
4958 to always fail with ENOSYS. Some functions are actually named
4959 something starting with __ and the normal name is an alias. */
4960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4961 choke me
4962 #else
4963 char (*f) () = $ac_func;
4964 #endif
4965 #ifdef __cplusplus
4966 }
4967 #endif
4968
4969 int
4970 main ()
4971 {
4972 return f != $ac_func;
4973 ;
4974 return 0;
4975 }
4976 _ACEOF
4977 rm -f conftest.$ac_objext conftest$ac_exeext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4979 (eval $ac_link) 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -z "$ac_c_werror_flag"
4987 || test ! -s conftest.err'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 (eval $ac_try) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; } &&
4993 { ac_try='test -s conftest$ac_exeext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 eval "$as_ac_var=yes"
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 eval "$as_ac_var=no"
5005 fi
5006 rm -f conftest.err conftest.$ac_objext \
5007 conftest$ac_exeext conftest.$ac_ext
5008 fi
5009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5011 if test `eval echo '${'$as_ac_var'}'` = yes; then
5012 cat >>confdefs.h <<_ACEOF
5013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5014 _ACEOF
5015
5016 fi
5017 done
5018
5019
5020 for ac_func in sbrk
5021 do
5022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5023 echo "$as_me:$LINENO: checking for $ac_func" >&5
5024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5025 if eval "test \"\${$as_ac_var+set}\" = set"; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028 cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h. */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5036 #define $ac_func innocuous_$ac_func
5037
5038 /* System header to define __stub macros and hopefully few prototypes,
5039 which can conflict with char $ac_func (); below.
5040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041 <limits.h> exists even on freestanding compilers. */
5042
5043 #ifdef __STDC__
5044 # include <limits.h>
5045 #else
5046 # include <assert.h>
5047 #endif
5048
5049 #undef $ac_func
5050
5051 /* Override any gcc2 internal prototype to avoid an error. */
5052 #ifdef __cplusplus
5053 extern "C"
5054 {
5055 #endif
5056 /* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */
5058 char $ac_func ();
5059 /* The GNU C library defines this for functions which it implements
5060 to always fail with ENOSYS. Some functions are actually named
5061 something starting with __ and the normal name is an alias. */
5062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5063 choke me
5064 #else
5065 char (*f) () = $ac_func;
5066 #endif
5067 #ifdef __cplusplus
5068 }
5069 #endif
5070
5071 int
5072 main ()
5073 {
5074 return f != $ac_func;
5075 ;
5076 return 0;
5077 }
5078 _ACEOF
5079 rm -f conftest.$ac_objext conftest$ac_exeext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5081 (eval $ac_link) 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } &&
5088 { ac_try='test -z "$ac_c_werror_flag"
5089 || test ! -s conftest.err'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; } &&
5095 { ac_try='test -s conftest$ac_exeext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 eval "$as_ac_var=yes"
5102 else
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5105
5106 eval "$as_ac_var=no"
5107 fi
5108 rm -f conftest.err conftest.$ac_objext \
5109 conftest$ac_exeext conftest.$ac_ext
5110 fi
5111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5113 if test `eval echo '${'$as_ac_var'}'` = yes; then
5114 cat >>confdefs.h <<_ACEOF
5115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5116 _ACEOF
5117
5118 fi
5119 done
5120
5121
5122 if test x$ac_cv_func_mmap != xyes && x$ac_cv_func_sbrk != xyes; then
5123 { echo "$as_me:$LINENO: WARNING: " >&5
5124 echo "$as_me: WARNING: " >&2;}
5125 { echo "$as_me:$LINENO: WARNING: no mmap nor sbrk function. See INTERNAL_MEMORY_SPACE in settings.dist." >&5
5126 echo "$as_me: WARNING: no mmap nor sbrk function. See INTERNAL_MEMORY_SPACE in settings.dist." >&2;}
5127 { echo "$as_me:$LINENO: WARNING: " >&5
5128 echo "$as_me: WARNING: " >&2;}
5129 fi
5130
5131 echo "$as_me:$LINENO: checking mmap usage" >&5
5132 echo $ECHO_N "checking mmap usage... $ECHO_C" >&6
5133 if test "$cross_compiling" = yes; then
5134 cat >>confdefs.h <<\_ACEOF
5135 #define USE_MMAP 0
5136 _ACEOF
5137 ac_cv_use_mmap=no
5138
5139 else
5140 cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h. */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146
5147 #if HAVE_SYS_TYPES_H
5148 # include <sys/types.h>
5149 #endif
5150 #if HAVE_SYS_MMAN_H
5151 # include <sys/mman.h>
5152 #endif
5153 main() {
5154 /* we could open /dev/zero and map to that but I did not want the library
5155 to open another file-descriptor */
5156 char *dest, *src, *src_p, *dest_p;
5157 src = "0123456789";
5158 dest = (char *)mmap(0L, 10, PROT_READ | PROT_WRITE | PROT_EXEC,
5159 MAP_PRIVATE | MAP_ANON, -1 /* no fd */,
5160 0 /* no offset */);
5161 src_p = src; dest_p = dest;
5162 while (src_p < src + 10) { *dest_p++ = *src_p++; }
5163 src_p = src; dest_p = dest;
5164 while (src_p < src + 10) {
5165 if (*src_p++ != *dest_p++) { exit(1); }
5166 }
5167 exit(0);
5168 }
5169
5170 _ACEOF
5171 rm -f conftest$ac_exeext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5173 (eval $ac_link) 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 (eval $ac_try) 2>&5
5179 ac_status=$?
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 cat >>confdefs.h <<\_ACEOF
5183 #define USE_MMAP 1
5184 _ACEOF
5185 ac_cv_use_mmap=yes
5186 else
5187 echo "$as_me: program exited with status $ac_status" >&5
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5190
5191 ( exit $ac_status )
5192 cat >>confdefs.h <<\_ACEOF
5193 #define USE_MMAP 0
5194 _ACEOF
5195 ac_cv_use_mmap=no
5196 fi
5197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5198 fi
5199 echo "$as_me:$LINENO: result: $ac_cv_use_mmap" >&5
5200 echo "${ECHO_T}$ac_cv_use_mmap" >&6
5201
5202 #
5203 # check for basic block size
5204 #
5205
5206 for ac_func in getpagesize
5207 do
5208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5209 echo "$as_me:$LINENO: checking for $ac_func" >&5
5210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5211 if eval "test \"\${$as_ac_var+set}\" = set"; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214 cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5222 #define $ac_func innocuous_$ac_func
5223
5224 /* System header to define __stub macros and hopefully few prototypes,
5225 which can conflict with char $ac_func (); below.
5226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5227 <limits.h> exists even on freestanding compilers. */
5228
5229 #ifdef __STDC__
5230 # include <limits.h>
5231 #else
5232 # include <assert.h>
5233 #endif
5234
5235 #undef $ac_func
5236
5237 /* Override any gcc2 internal prototype to avoid an error. */
5238 #ifdef __cplusplus
5239 extern "C"
5240 {
5241 #endif
5242 /* We use char because int might match the return type of a gcc2
5243 builtin and then its argument prototype would still apply. */
5244 char $ac_func ();
5245 /* The GNU C library defines this for functions which it implements
5246 to always fail with ENOSYS. Some functions are actually named
5247 something starting with __ and the normal name is an alias. */
5248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5249 choke me
5250 #else
5251 char (*f) () = $ac_func;
5252 #endif
5253 #ifdef __cplusplus
5254 }
5255 #endif
5256
5257 int
5258 main ()
5259 {
5260 return f != $ac_func;
5261 ;
5262 return 0;
5263 }
5264 _ACEOF
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5267 (eval $ac_link) 2>conftest.er1
5268 ac_status=$?
5269 grep -v '^ *+' conftest.er1 >conftest.err
5270 rm -f conftest.er1
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try='test -z "$ac_c_werror_flag"
5275 || test ! -s conftest.err'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; } &&
5281 { ac_try='test -s conftest$ac_exeext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5287 eval "$as_ac_var=yes"
5288 else
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 eval "$as_ac_var=no"
5293 fi
5294 rm -f conftest.err conftest.$ac_objext \
5295 conftest$ac_exeext conftest.$ac_ext
5296 fi
5297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5299 if test `eval echo '${'$as_ac_var'}'` = yes; then
5300 cat >>confdefs.h <<_ACEOF
5301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5302 _ACEOF
5303
5304 fi
5305 done
5306
5307 echo "$as_me:$LINENO: checking basic-block size" >&5
5308 echo $ECHO_N "checking basic-block size... $ECHO_C" >&6
5309 ac_cv_page_size=0
5310 if test $ac_cv_page_size = 0; then
5311 if test "$cross_compiling" = yes; then
5312 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5313 See \`config.log' for more details." >&5
5314 echo "$as_me: error: cannot run test program while cross compiling
5315 See \`config.log' for more details." >&2;}
5316 { (exit 1); exit 1; }; }
5317 else
5318 cat >conftest.$ac_ext <<_ACEOF
5319 main() { if (getpagesize()<=2048) exit(0); else exit(1); }
5320 _ACEOF
5321 rm -f conftest$ac_exeext
5322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5323 (eval $ac_link) 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_cv_page_size=11
5333 else
5334 echo "$as_me: program exited with status $ac_status" >&5
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5337
5338 fi
5339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5340 fi
5341 fi
5342 if test $ac_cv_page_size = 0; then
5343 if test "$cross_compiling" = yes; then
5344 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5345 See \`config.log' for more details." >&5
5346 echo "$as_me: error: cannot run test program while cross compiling
5347 See \`config.log' for more details." >&2;}
5348 { (exit 1); exit 1; }; }
5349 else
5350 cat >conftest.$ac_ext <<_ACEOF
5351 main() { if (getpagesize()<=4096) exit(0); else exit(1); }
5352 _ACEOF
5353 rm -f conftest$ac_exeext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5355 (eval $ac_link) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 (eval $ac_try) 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; }; then
5364 ac_cv_page_size=12
5365 else
5366 echo "$as_me: program exited with status $ac_status" >&5
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5369
5370 fi
5371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5372 fi
5373 fi
5374 if test $ac_cv_page_size = 0; then
5375 if test "$cross_compiling" = yes; then
5376 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5377 See \`config.log' for more details." >&5
5378 echo "$as_me: error: cannot run test program while cross compiling
5379 See \`config.log' for more details." >&2;}
5380 { (exit 1); exit 1; }; }
5381 else
5382 cat >conftest.$ac_ext <<_ACEOF
5383 main() { if (getpagesize()<=8192) exit(0); else exit(1); }
5384 _ACEOF
5385 rm -f conftest$ac_exeext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5387 (eval $ac_link) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 (eval $ac_try) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5396 ac_cv_page_size=13
5397 else
5398 echo "$as_me: program exited with status $ac_status" >&5
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5401
5402 fi
5403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5404 fi
5405 fi
5406 if test $ac_cv_page_size = 0; then
5407 if test "$cross_compiling" = yes; then
5408 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5409 See \`config.log' for more details." >&5
5410 echo "$as_me: error: cannot run test program while cross compiling
5411 See \`config.log' for more details." >&2;}
5412 { (exit 1); exit 1; }; }
5413 else
5414 cat >conftest.$ac_ext <<_ACEOF
5415 main() { if (getpagesize()<=16384) exit(0); else exit(1); }
5416 _ACEOF
5417 rm -f conftest$ac_exeext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5419 (eval $ac_link) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 (eval $ac_try) 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_cv_page_size=14
5429 else
5430 echo "$as_me: program exited with status $ac_status" >&5
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 fi
5435 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5436 fi
5437 fi
5438 if test $ac_cv_page_size = 0; then
5439 ac_cv_page_size=15
5440 fi
5441 cat >>confdefs.h <<_ACEOF
5442 #define BASIC_BLOCK $ac_cv_page_size
5443 _ACEOF
5444
5445 echo "$as_me:$LINENO: result: $ac_cv_page_size" >&5
5446 echo "${ECHO_T}$ac_cv_page_size" >&6
5447
5448 #
5449 # data-alignment size...
5450 #
5451 echo "$as_me:$LINENO: checking for long" >&5
5452 echo $ECHO_N "checking for long... $ECHO_C" >&6
5453 if test "${ac_cv_type_long+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h. */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 $ac_includes_default
5463 int
5464 main ()
5465 {
5466 if ((long *) 0)
5467 return 0;
5468 if (sizeof (long))
5469 return 0;
5470 ;
5471 return 0;
5472 }
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag"
5484 || test ! -s conftest.err'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 (eval $ac_try) 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; } &&
5490 { ac_try='test -s conftest.$ac_objext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 (eval $ac_try) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 ac_cv_type_long=yes
5497 else
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501 ac_cv_type_long=no
5502 fi
5503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5504 fi
5505 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5506 echo "${ECHO_T}$ac_cv_type_long" >&6
5507
5508 echo "$as_me:$LINENO: checking size of long" >&5
5509 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5510 if test "${ac_cv_sizeof_long+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513 if test "$ac_cv_type_long" = yes; then
5514 # The cast to unsigned long works around a bug in the HP C Compiler
5515 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5516 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5517 # This bug is HP SR number 8606223364.
5518 if test "$cross_compiling" = yes; then
5519 # Depending upon the size, compute the lo and hi bounds.
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 $ac_includes_default
5527 int
5528 main ()
5529 {
5530 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5531 test_array [0] = 0
5532
5533 ;
5534 return 0;
5535 }
5536 _ACEOF
5537 rm -f conftest.$ac_objext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -z "$ac_c_werror_flag"
5547 || test ! -s conftest.err'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try='test -s conftest.$ac_objext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_lo=0 ac_mid=0
5560 while :; do
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 $ac_includes_default
5568 int
5569 main ()
5570 {
5571 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5572 test_array [0] = 0
5573
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 rm -f conftest.$ac_objext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580 (eval $ac_compile) 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -z "$ac_c_werror_flag"
5588 || test ! -s conftest.err'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 (eval $ac_try) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; } &&
5594 { ac_try='test -s conftest.$ac_objext'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5600 ac_hi=$ac_mid; break
5601 else
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605 ac_lo=`expr $ac_mid + 1`
5606 if test $ac_lo -le $ac_mid; then
5607 ac_lo= ac_hi=
5608 break
5609 fi
5610 ac_mid=`expr 2 '*' $ac_mid + 1`
5611 fi
5612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5613 done
5614 else
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5617
5618 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 $ac_includes_default
5625 int
5626 main ()
5627 {
5628 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5629 test_array [0] = 0
5630
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 rm -f conftest.$ac_objext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -z "$ac_c_werror_flag"
5645 || test ! -s conftest.err'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 (eval $ac_try) 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; } &&
5651 { ac_try='test -s conftest.$ac_objext'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; }; then
5657 ac_hi=-1 ac_mid=-1
5658 while :; do
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 $ac_includes_default
5666 int
5667 main ()
5668 {
5669 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5670 test_array [0] = 0
5671
5672 ;
5673 return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_lo=$ac_mid; break
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703 ac_hi=`expr '(' $ac_mid ')' - 1`
5704 if test $ac_mid -le $ac_hi; then
5705 ac_lo= ac_hi=
5706 break
5707 fi
5708 ac_mid=`expr 2 '*' $ac_mid`
5709 fi
5710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5711 done
5712 else
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 ac_lo= ac_hi=
5717 fi
5718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5719 fi
5720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5721 # Binary search between lo and hi bounds.
5722 while test "x$ac_lo" != "x$ac_hi"; do
5723 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5724 cat >conftest.$ac_ext <<_ACEOF
5725 /* confdefs.h. */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 $ac_includes_default
5731 int
5732 main ()
5733 {
5734 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5735 test_array [0] = 0
5736
5737 ;
5738 return 0;
5739 }
5740 _ACEOF
5741 rm -f conftest.$ac_objext
5742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5743 (eval $ac_compile) 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try='test -z "$ac_c_werror_flag"
5751 || test ! -s conftest.err'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 (eval $ac_try) 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=$ac_mid
5764 else
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 ac_lo=`expr '(' $ac_mid ')' + 1`
5769 fi
5770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5771 done
5772 case $ac_lo in
5773 ?*) ac_cv_sizeof_long=$ac_lo;;
5774 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5775 See \`config.log' for more details." >&5
5776 echo "$as_me: error: cannot compute sizeof (long), 77
5777 See \`config.log' for more details." >&2;}
5778 { (exit 1); exit 1; }; } ;;
5779 esac
5780 else
5781 if test "$cross_compiling" = yes; then
5782 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5783 See \`config.log' for more details." >&5
5784 echo "$as_me: error: cannot run test program while cross compiling
5785 See \`config.log' for more details." >&2;}
5786 { (exit 1); exit 1; }; }
5787 else
5788 cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h. */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5794 $ac_includes_default
5795 long longval () { return (long) (sizeof (long)); }
5796 unsigned long ulongval () { return (long) (sizeof (long)); }
5797 #include <stdio.h>
5798 #include <stdlib.h>
5799 int
5800 main ()
5801 {
5802
5803 FILE *f = fopen ("conftest.val", "w");
5804 if (! f)
5805 exit (1);
5806 if (((long) (sizeof (long))) < 0)
5807 {
5808 long i = longval ();
5809 if (i != ((long) (sizeof (long))))
5810 exit (1);
5811 fprintf (f, "%ld\n", i);
5812 }
5813 else
5814 {
5815 unsigned long i = ulongval ();
5816 if (i != ((long) (sizeof (long))))
5817 exit (1);
5818 fprintf (f, "%lu\n", i);
5819 }
5820 exit (ferror (f) || fclose (f) != 0);
5821
5822 ;
5823 return 0;
5824 }
5825 _ACEOF
5826 rm -f conftest$ac_exeext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5828 (eval $ac_link) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_cv_sizeof_long=`cat conftest.val`
5838 else
5839 echo "$as_me: program exited with status $ac_status" >&5
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 ( exit $ac_status )
5844 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5845 See \`config.log' for more details." >&5
5846 echo "$as_me: error: cannot compute sizeof (long), 77
5847 See \`config.log' for more details." >&2;}
5848 { (exit 1); exit 1; }; }
5849 fi
5850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5851 fi
5852 fi
5853 rm -f conftest.val
5854 else
5855 ac_cv_sizeof_long=0
5856 fi
5857 fi
5858 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5859 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5860 cat >>confdefs.h <<_ACEOF
5861 #define SIZEOF_LONG $ac_cv_sizeof_long
5862 _ACEOF
5863
5864
5865 echo "$as_me:$LINENO: checking data-alignment size" >&5
5866 echo $ECHO_N "checking data-alignment size... $ECHO_C" >&6
5867 if test $ac_cv_sizeof_long = 4; then
5868 # we have to make a special case for sun sparc idiocy
5869 ac_cv_data_align=8
5870 else
5871 ac_cv_data_align=$ac_cv_sizeof_long
5872 fi
5873 cat >>confdefs.h <<_ACEOF
5874 #define ALLOCATION_ALIGNMENT $ac_cv_data_align
5875 _ACEOF
5876
5877 echo "$as_me:$LINENO: result: $ac_cv_data_align" >&5
5878 echo "${ECHO_T}$ac_cv_data_align" >&6
5879
5880 #
5881 # check the safety of the abort function
5882 #
5883
5884 for ac_func in abort
5885 do
5886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5887 echo "$as_me:$LINENO: checking for $ac_func" >&5
5888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5889 if eval "test \"\${$as_ac_var+set}\" = set"; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5900 #define $ac_func innocuous_$ac_func
5901
5902 /* System header to define __stub macros and hopefully few prototypes,
5903 which can conflict with char $ac_func (); below.
5904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5905 <limits.h> exists even on freestanding compilers. */
5906
5907 #ifdef __STDC__
5908 # include <limits.h>
5909 #else
5910 # include <assert.h>
5911 #endif
5912
5913 #undef $ac_func
5914
5915 /* Override any gcc2 internal prototype to avoid an error. */
5916 #ifdef __cplusplus
5917 extern "C"
5918 {
5919 #endif
5920 /* We use char because int might match the return type of a gcc2
5921 builtin and then its argument prototype would still apply. */
5922 char $ac_func ();
5923 /* The GNU C library defines this for functions which it implements
5924 to always fail with ENOSYS. Some functions are actually named
5925 something starting with __ and the normal name is an alias. */
5926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5927 choke me
5928 #else
5929 char (*f) () = $ac_func;
5930 #endif
5931 #ifdef __cplusplus
5932 }
5933 #endif
5934
5935 int
5936 main ()
5937 {
5938 return f != $ac_func;
5939 ;
5940 return 0;
5941 }
5942 _ACEOF
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945 (eval $ac_link) 2>conftest.er1
5946 ac_status=$?
5947 grep -v '^ *+' conftest.er1 >conftest.err
5948 rm -f conftest.er1
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -z "$ac_c_werror_flag"
5953 || test ! -s conftest.err'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; } &&
5959 { ac_try='test -s conftest$ac_exeext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 eval "$as_ac_var=yes"
5966 else
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5969
5970 eval "$as_ac_var=no"
5971 fi
5972 rm -f conftest.err conftest.$ac_objext \
5973 conftest$ac_exeext conftest.$ac_ext
5974 fi
5975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5977 if test `eval echo '${'$as_ac_var'}'` = yes; then
5978 cat >>confdefs.h <<_ACEOF
5979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5980 _ACEOF
5981
5982 fi
5983 done
5984
5985 echo "$as_me:$LINENO: checking abort safe" >&5
5986 echo $ECHO_N "checking abort safe... $ECHO_C" >&6
5987 if test "$cross_compiling" = yes; then
5988 cat >>confdefs.h <<\_ACEOF
5989 #define ABORT_OKAY 0
5990 _ACEOF
5991 echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6
5993
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996
5997 static int main_b = 0;
5998 static char heap_mem[102400], *heap_p = heap_mem;
5999 free () { if (main_b) _exit(0); }
6000 char *malloc (int size) {
6001 char *pnt;
6002 if (main_b) _exit(0);
6003 pnt = heap_p;
6004 heap_p += size;
6005 return pnt;
6006 }
6007 char *calloc (int number, int size) {
6008 char *start, *pnt, *end;
6009 if (main_b) _exit(0);
6010 /* it should be already 0s */
6011 start = malloc (number * size);
6012 pnt = start;
6013 end = start + size;
6014 while (pnt < end) { *pnt++ = '\0'; }
6015 return start;
6016 }
6017 char *realloc (char *old_pnt, int new_size) {
6018 char *start, *pnt, *end;
6019 if (main_b) _exit(0);
6020 start = malloc (new_size);
6021 pnt = start;
6022 end = start + new_size;
6023 while (pnt < end) { *pnt++ = *old_pnt++; }
6024 return start;
6025 }
6026 main() { main_b = 1; abort(); _exit(1); }
6027
6028 _ACEOF
6029 rm -f conftest$ac_exeext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6031 (eval $ac_link) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
6040 # NOTE: this is reversed because abort core dumps and doesn't exit with
6041 # 0 which means that it should fail
6042 cat >>confdefs.h <<\_ACEOF
6043 #define ABORT_OKAY 0
6044 _ACEOF
6045 echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6
6047 else
6048 echo "$as_me: program exited with status $ac_status" >&5
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6051
6052 ( exit $ac_status )
6053 # if it succeeds then something called free on the way out
6054 cat >>confdefs.h <<\_ACEOF
6055 #define ABORT_OKAY 1
6056 _ACEOF
6057 echo "$as_me:$LINENO: result: yes" >&5
6058 echo "${ECHO_T}yes" >&6
6059 fi
6060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6061 fi
6062
6063 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6064 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6065 if test "${ac_cv_type_signal+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 #include <sys/types.h>
6075 #include <signal.h>
6076 #ifdef signal
6077 # undef signal
6078 #endif
6079 #ifdef __cplusplus
6080 extern "C" void (*signal (int, void (*)(int)))(int);
6081 #else
6082 void (*signal ()) ();
6083 #endif
6084
6085 int
6086 main ()
6087 {
6088 int i;
6089 ;
6090 return 0;
6091 }
6092 _ACEOF
6093 rm -f conftest.$ac_objext
6094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6095 (eval $ac_compile) 2>conftest.er1
6096 ac_status=$?
6097 grep -v '^ *+' conftest.er1 >conftest.err
6098 rm -f conftest.er1
6099 cat conftest.err >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } &&
6102 { ac_try='test -z "$ac_c_werror_flag"
6103 || test ! -s conftest.err'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 (eval $ac_try) 2>&5
6106 ac_status=$?
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; } &&
6109 { ac_try='test -s conftest.$ac_objext'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 (eval $ac_try) 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; }; then
6115 ac_cv_type_signal=void
6116 else
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120 ac_cv_type_signal=int
6121 fi
6122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6123 fi
6124 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6125 echo "${ECHO_T}$ac_cv_type_signal" >&6
6126
6127 cat >>confdefs.h <<_ACEOF
6128 #define RETSIGTYPE $ac_cv_type_signal
6129 _ACEOF
6130
6131
6132 echo "$as_me:$LINENO: checking signal works" >&5
6133 echo $ECHO_N "checking signal works... $ECHO_C" >&6
6134 if test "${ac_cv_header_signal_h+set}" = set; then
6135 echo "$as_me:$LINENO: checking for signal.h" >&5
6136 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6
6137 if test "${ac_cv_header_signal_h+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 fi
6140 echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
6141 echo "${ECHO_T}$ac_cv_header_signal_h" >&6
6142 else
6143 # Is the header compilable?
6144 echo "$as_me:$LINENO: checking signal.h usability" >&5
6145 echo $ECHO_N "checking signal.h usability... $ECHO_C" >&6
6146 cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h. */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 $ac_includes_default
6153 #include <signal.h>
6154 _ACEOF
6155 rm -f conftest.$ac_objext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6157 (eval $ac_compile) 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -z "$ac_c_werror_flag"
6165 || test ! -s conftest.err'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest.$ac_objext'
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 ac_header_compiler=yes
6178 else
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6181
6182 ac_header_compiler=no
6183 fi
6184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6186 echo "${ECHO_T}$ac_header_compiler" >&6
6187
6188 # Is the header present?
6189 echo "$as_me:$LINENO: checking signal.h presence" >&5
6190 echo $ECHO_N "checking signal.h presence... $ECHO_C" >&6
6191 cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 #include <signal.h>
6198 _ACEOF
6199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } >/dev/null; then
6207 if test -s conftest.err; then
6208 ac_cpp_err=$ac_c_preproc_warn_flag
6209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6210 else
6211 ac_cpp_err=
6212 fi
6213 else
6214 ac_cpp_err=yes
6215 fi
6216 if test -z "$ac_cpp_err"; then
6217 ac_header_preproc=yes
6218 else
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222 ac_header_preproc=no
6223 fi
6224 rm -f conftest.err conftest.$ac_ext
6225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6226 echo "${ECHO_T}$ac_header_preproc" >&6
6227
6228 # So? What about this header?
6229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6230 yes:no: )
6231 { echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
6232 echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6233 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result" >&5
6234 echo "$as_me: WARNING: signal.h: proceeding with the compiler's result" >&2;}
6235 ac_header_preproc=yes
6236 ;;
6237 no:yes:* )
6238 { echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
6239 echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: signal.h: check for missing prerequisite headers?" >&5
6241 echo "$as_me: WARNING: signal.h: check for missing prerequisite headers?" >&2;}
6242 { echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
6243 echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
6244 { echo "$as_me:$LINENO: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&5
6245 echo "$as_me: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&2;}
6246 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result" >&5
6247 echo "$as_me: WARNING: signal.h: proceeding with the preprocessor's result" >&2;}
6248 { echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
6249 echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
6250 (
6251 cat <<\_ASBOX
6252 ## ---------------------------------- ##
6253 ## Report this to http://dmalloc.com/ ##
6254 ## ---------------------------------- ##
6255 _ASBOX
6256 ) |
6257 sed "s/^/$as_me: WARNING: /" >&2
6258 ;;
6259 esac
6260 echo "$as_me:$LINENO: checking for signal.h" >&5
6261 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6
6262 if test "${ac_cv_header_signal_h+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 ac_cv_header_signal_h=$ac_header_preproc
6266 fi
6267 echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
6268 echo "${ECHO_T}$ac_cv_header_signal_h" >&6
6269
6270 fi
6271 if test $ac_cv_header_signal_h = yes; then
6272 cat >>confdefs.h <<\_ACEOF
6273 #define HAVE_SIGNAL_H 1
6274 _ACEOF
6275 HAVE_SIGNAL_H=1
6276
6277 else
6278 cat >>confdefs.h <<\_ACEOF
6279 #define HAVE_SIGNAL_H 0
6280 _ACEOF
6281 HAVE_SIGNAL_H=0
6282
6283 fi
6284
6285
6286 cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h. */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292
6293 #if HAVE_SIGNAL_H
6294 #include <signal.h>
6295 #endif
6296
6297 int
6298 main ()
6299 {
6300
6301 (void)signal(SIGHUP, SIG_IGN);
6302 (void)signal(SIGINT, SIG_IGN);
6303 (void)signal(SIGTERM, SIG_IGN);
6304
6305 ;
6306 return 0;
6307 }
6308 _ACEOF
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311 (eval $ac_link) 2>conftest.er1
6312 ac_status=$?
6313 grep -v '^ *+' conftest.er1 >conftest.err
6314 rm -f conftest.er1
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } &&
6318 { ac_try='test -z "$ac_c_werror_flag"
6319 || test ! -s conftest.err'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 (eval $ac_try) 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; } &&
6325 { ac_try='test -s conftest$ac_exeext'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 cat >>confdefs.h <<\_ACEOF
6332 #define SIGNAL_OKAY 1
6333 _ACEOF
6334 echo "$as_me:$LINENO: result: yes" >&5
6335 echo "${ECHO_T}yes" >&6
6336 else
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6339
6340 cat >>confdefs.h <<\_ACEOF
6341 #define SIGNAL_OKAY 0
6342 _ACEOF
6343 echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6
6345
6346 fi
6347 rm -f conftest.err conftest.$ac_objext \
6348 conftest$ac_exeext conftest.$ac_ext
6349
6350 #
6351 # check the safety of the getenv function
6352 #
6353
6354 for ac_func in getenv
6355 do
6356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6357 echo "$as_me:$LINENO: checking for $ac_func" >&5
6358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6359 if eval "test \"\${$as_ac_var+set}\" = set"; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h. */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6370 #define $ac_func innocuous_$ac_func
6371
6372 /* System header to define __stub macros and hopefully few prototypes,
6373 which can conflict with char $ac_func (); below.
6374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6375 <limits.h> exists even on freestanding compilers. */
6376
6377 #ifdef __STDC__
6378 # include <limits.h>
6379 #else
6380 # include <assert.h>
6381 #endif
6382
6383 #undef $ac_func
6384
6385 /* Override any gcc2 internal prototype to avoid an error. */
6386 #ifdef __cplusplus
6387 extern "C"
6388 {
6389 #endif
6390 /* We use char because int might match the return type of a gcc2
6391 builtin and then its argument prototype would still apply. */
6392 char $ac_func ();
6393 /* The GNU C library defines this for functions which it implements
6394 to always fail with ENOSYS. Some functions are actually named
6395 something starting with __ and the normal name is an alias. */
6396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6397 choke me
6398 #else
6399 char (*f) () = $ac_func;
6400 #endif
6401 #ifdef __cplusplus
6402 }
6403 #endif
6404
6405 int
6406 main ()
6407 {
6408 return f != $ac_func;
6409 ;
6410 return 0;
6411 }
6412 _ACEOF
6413 rm -f conftest.$ac_objext conftest$ac_exeext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415 (eval $ac_link) 2>conftest.er1
6416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try='test -z "$ac_c_werror_flag"
6423 || test ! -s conftest.err'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; } &&
6429 { ac_try='test -s conftest$ac_exeext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 (eval $ac_try) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 eval "$as_ac_var=yes"
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 eval "$as_ac_var=no"
6441 fi
6442 rm -f conftest.err conftest.$ac_objext \
6443 conftest$ac_exeext conftest.$ac_ext
6444 fi
6445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6447 if test `eval echo '${'$as_ac_var'}'` = yes; then
6448 cat >>confdefs.h <<_ACEOF
6449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6450 _ACEOF
6451
6452 fi
6453 done
6454
6455 echo "$as_me:$LINENO: checking getenv safe" >&5
6456 echo $ECHO_N "checking getenv safe... $ECHO_C" >&6
6457 if test "$cross_compiling" = yes; then
6458 cat >>confdefs.h <<\_ACEOF
6459 #define GETENV_SAFE 1
6460 _ACEOF
6461
6462 echo "$as_me:$LINENO: result: yes" >&5
6463 echo "${ECHO_T}yes" >&6
6464 getenv_safe=yes
6465
6466 else
6467 cat >conftest.$ac_ext <<_ACEOF
6468
6469 static char heap_mem[102400], *heap_p = heap_mem;
6470 free (char *pnt) {
6471 }
6472 char *malloc (int size) {
6473 char *pnt;
6474 getenv("PATH");
6475 pnt = heap_p;
6476 heap_p += size;
6477 return pnt;
6478 }
6479 char *calloc (int number, int size) {
6480 char *start, *pnt, *end;
6481 getenv("PATH");
6482 /* it should be already 0s */
6483 start = malloc (number * size);
6484 pnt = start;
6485 end = start + size;
6486 while (pnt < end) { *pnt++ = '\0'; }
6487 return start;
6488 }
6489 char *realloc (char *old_pnt, int new_size) {
6490 char *start, *pnt, *end;
6491 getenv("PATH");
6492 start = malloc (new_size);
6493 pnt = start;
6494 end = start + new_size;
6495 while (pnt < end) { *pnt++ = *old_pnt++; }
6496 return start;
6497 }
6498 main() { malloc(10); _exit(0); }
6499
6500 _ACEOF
6501 rm -f conftest$ac_exeext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503 (eval $ac_link) 2>&5
6504 ac_status=$?
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 (eval $ac_try) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6512 cat >>confdefs.h <<\_ACEOF
6513 #define GETENV_SAFE 1
6514 _ACEOF
6515
6516 echo "$as_me:$LINENO: result: yes" >&5
6517 echo "${ECHO_T}yes" >&6
6518 getenv_safe=yes
6519 else
6520 echo "$as_me: program exited with status $ac_status" >&5
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6523
6524 ( exit $ac_status )
6525 # if it succeeds then something called free on the way out
6526 cat >>confdefs.h <<\_ACEOF
6527 #define GETENV_SAFE 0
6528 _ACEOF
6529
6530 echo "$as_me:$LINENO: result: no" >&5
6531 echo "${ECHO_T}no" >&6
6532 getenv_safe=no
6533 fi
6534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6535 fi
6536
6537 # now check to see if we can replace getenv with GetEnvironmentVariableA
6538 if test "${ac_cv_header_sys_cygwin_h+set}" = set; then
6539 echo "$as_me:$LINENO: checking for sys/cygwin.h" >&5
6540 echo $ECHO_N "checking for sys/cygwin.h... $ECHO_C" >&6
6541 if test "${ac_cv_header_sys_cygwin_h+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 fi
6544 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cygwin_h" >&5
6545 echo "${ECHO_T}$ac_cv_header_sys_cygwin_h" >&6
6546 else
6547 # Is the header compilable?
6548 echo "$as_me:$LINENO: checking sys/cygwin.h usability" >&5
6549 echo $ECHO_N "checking sys/cygwin.h usability... $ECHO_C" >&6
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 $ac_includes_default
6557 #include <sys/cygwin.h>
6558 _ACEOF
6559 rm -f conftest.$ac_objext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6561 (eval $ac_compile) 2>conftest.er1
6562 ac_status=$?
6563 grep -v '^ *+' conftest.er1 >conftest.err
6564 rm -f conftest.er1
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } &&
6568 { ac_try='test -z "$ac_c_werror_flag"
6569 || test ! -s conftest.err'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest.$ac_objext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 ac_header_compiler=yes
6582 else
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 ac_header_compiler=no
6587 fi
6588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6590 echo "${ECHO_T}$ac_header_compiler" >&6
6591
6592 # Is the header present?
6593 echo "$as_me:$LINENO: checking sys/cygwin.h presence" >&5
6594 echo $ECHO_N "checking sys/cygwin.h presence... $ECHO_C" >&6
6595 cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <sys/cygwin.h>
6602 _ACEOF
6603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } >/dev/null; then
6611 if test -s conftest.err; then
6612 ac_cpp_err=$ac_c_preproc_warn_flag
6613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6614 else
6615 ac_cpp_err=
6616 fi
6617 else
6618 ac_cpp_err=yes
6619 fi
6620 if test -z "$ac_cpp_err"; then
6621 ac_header_preproc=yes
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 ac_header_preproc=no
6627 fi
6628 rm -f conftest.err conftest.$ac_ext
6629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6630 echo "${ECHO_T}$ac_header_preproc" >&6
6631
6632 # So? What about this header?
6633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6634 yes:no: )
6635 { echo "$as_me:$LINENO: WARNING: sys/cygwin.h: accepted by the compiler, rejected by the preprocessor!" >&5
6636 echo "$as_me: WARNING: sys/cygwin.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6637 { echo "$as_me:$LINENO: WARNING: sys/cygwin.h: proceeding with the compiler's result" >&5
6638 echo "$as_me: WARNING: sys/cygwin.h: proceeding with the compiler's result" >&2;}
6639 ac_header_preproc=yes
6640 ;;
6641 no:yes:* )
6642 { echo "$as_me:$LINENO: WARNING: sys/cygwin.h: present but cannot be compiled" >&5
6643 echo "$as_me: WARNING: sys/cygwin.h: present but cannot be compiled" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: sys/cygwin.h: check for missing prerequisite headers?" >&5
6645 echo "$as_me: WARNING: sys/cygwin.h: check for missing prerequisite headers?" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: sys/cygwin.h: see the Autoconf documentation" >&5
6647 echo "$as_me: WARNING: sys/cygwin.h: see the Autoconf documentation" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: sys/cygwin.h: section \"Present But Cannot Be Compiled\"" >&5
6649 echo "$as_me: WARNING: sys/cygwin.h: section \"Present But Cannot Be Compiled\"" >&2;}
6650 { echo "$as_me:$LINENO: WARNING: sys/cygwin.h: proceeding with the preprocessor's result" >&5
6651 echo "$as_me: WARNING: sys/cygwin.h: proceeding with the preprocessor's result" >&2;}
6652 { echo "$as_me:$LINENO: WARNING: sys/cygwin.h: in the future, the compiler will take precedence" >&5
6653 echo "$as_me: WARNING: sys/cygwin.h: in the future, the compiler will take precedence" >&2;}
6654 (
6655 cat <<\_ASBOX
6656 ## ---------------------------------- ##
6657 ## Report this to http://dmalloc.com/ ##
6658 ## ---------------------------------- ##
6659 _ASBOX
6660 ) |
6661 sed "s/^/$as_me: WARNING: /" >&2
6662 ;;
6663 esac
6664 echo "$as_me:$LINENO: checking for sys/cygwin.h" >&5
6665 echo $ECHO_N "checking for sys/cygwin.h... $ECHO_C" >&6
6666 if test "${ac_cv_header_sys_cygwin_h+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669 ac_cv_header_sys_cygwin_h=$ac_header_preproc
6670 fi
6671 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cygwin_h" >&5
6672 echo "${ECHO_T}$ac_cv_header_sys_cygwin_h" >&6
6673
6674 fi
6675 if test $ac_cv_header_sys_cygwin_h = yes; then
6676 cat >>confdefs.h <<\_ACEOF
6677 #define HAVE_SYS_CYGWIN_H 1
6678 _ACEOF
6679 HAVE_SYS_CYGWIN_H=1
6680
6681 else
6682 cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_SYS_CYGWIN_H 0
6684 _ACEOF
6685 HAVE_SYS_CYGWIN_H=0
6686
6687 fi
6688
6689
6690 if test "${ac_cv_header_w32api_windef_h+set}" = set; then
6691 echo "$as_me:$LINENO: checking for w32api/windef.h" >&5
6692 echo $ECHO_N "checking for w32api/windef.h... $ECHO_C" >&6
6693 if test "${ac_cv_header_w32api_windef_h+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 fi
6696 echo "$as_me:$LINENO: result: $ac_cv_header_w32api_windef_h" >&5
6697 echo "${ECHO_T}$ac_cv_header_w32api_windef_h" >&6
6698 else
6699 # Is the header compilable?
6700 echo "$as_me:$LINENO: checking w32api/windef.h usability" >&5
6701 echo $ECHO_N "checking w32api/windef.h usability... $ECHO_C" >&6
6702 cat >conftest.$ac_ext <<_ACEOF
6703 /* confdefs.h. */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 $ac_includes_default
6709 #include <w32api/windef.h>
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>conftest.er1
6714 ac_status=$?
6715 grep -v '^ *+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -z "$ac_c_werror_flag"
6721 || test ! -s conftest.err'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 (eval $ac_try) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; } &&
6727 { ac_try='test -s conftest.$ac_objext'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_header_compiler=yes
6734 else
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738 ac_header_compiler=no
6739 fi
6740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6742 echo "${ECHO_T}$ac_header_compiler" >&6
6743
6744 # Is the header present?
6745 echo "$as_me:$LINENO: checking w32api/windef.h presence" >&5
6746 echo $ECHO_N "checking w32api/windef.h presence... $ECHO_C" >&6
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <w32api/windef.h>
6754 _ACEOF
6755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6757 ac_status=$?
6758 grep -v '^ *+' conftest.er1 >conftest.err
6759 rm -f conftest.er1
6760 cat conftest.err >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } >/dev/null; then
6763 if test -s conftest.err; then
6764 ac_cpp_err=$ac_c_preproc_warn_flag
6765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6766 else
6767 ac_cpp_err=
6768 fi
6769 else
6770 ac_cpp_err=yes
6771 fi
6772 if test -z "$ac_cpp_err"; then
6773 ac_header_preproc=yes
6774 else
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6777
6778 ac_header_preproc=no
6779 fi
6780 rm -f conftest.err conftest.$ac_ext
6781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6782 echo "${ECHO_T}$ac_header_preproc" >&6
6783
6784 # So? What about this header?
6785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6786 yes:no: )
6787 { echo "$as_me:$LINENO: WARNING: w32api/windef.h: accepted by the compiler, rejected by the preprocessor!" >&5
6788 echo "$as_me: WARNING: w32api/windef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6789 { echo "$as_me:$LINENO: WARNING: w32api/windef.h: proceeding with the compiler's result" >&5
6790 echo "$as_me: WARNING: w32api/windef.h: proceeding with the compiler's result" >&2;}
6791 ac_header_preproc=yes
6792 ;;
6793 no:yes:* )
6794 { echo "$as_me:$LINENO: WARNING: w32api/windef.h: present but cannot be compiled" >&5
6795 echo "$as_me: WARNING: w32api/windef.h: present but cannot be compiled" >&2;}
6796 { echo "$as_me:$LINENO: WARNING: w32api/windef.h: check for missing prerequisite headers?" >&5
6797 echo "$as_me: WARNING: w32api/windef.h: check for missing prerequisite headers?" >&2;}
6798 { echo "$as_me:$LINENO: WARNING: w32api/windef.h: see the Autoconf documentation" >&5
6799 echo "$as_me: WARNING: w32api/windef.h: see the Autoconf documentation" >&2;}
6800 { echo "$as_me:$LINENO: WARNING: w32api/windef.h: section \"Present But Cannot Be Compiled\"" >&5
6801 echo "$as_me: WARNING: w32api/windef.h: section \"Present But Cannot Be Compiled\"" >&2;}
6802 { echo "$as_me:$LINENO: WARNING: w32api/windef.h: proceeding with the preprocessor's result" >&5
6803 echo "$as_me: WARNING: w32api/windef.h: proceeding with the preprocessor's result" >&2;}
6804 { echo "$as_me:$LINENO: WARNING: w32api/windef.h: in the future, the compiler will take precedence" >&5
6805 echo "$as_me: WARNING: w32api/windef.h: in the future, the compiler will take precedence" >&2;}
6806 (
6807 cat <<\_ASBOX
6808 ## ---------------------------------- ##
6809 ## Report this to http://dmalloc.com/ ##
6810 ## ---------------------------------- ##
6811 _ASBOX
6812 ) |
6813 sed "s/^/$as_me: WARNING: /" >&2
6814 ;;
6815 esac
6816 echo "$as_me:$LINENO: checking for w32api/windef.h" >&5
6817 echo $ECHO_N "checking for w32api/windef.h... $ECHO_C" >&6
6818 if test "${ac_cv_header_w32api_windef_h+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821 ac_cv_header_w32api_windef_h=$ac_header_preproc
6822 fi
6823 echo "$as_me:$LINENO: result: $ac_cv_header_w32api_windef_h" >&5
6824 echo "${ECHO_T}$ac_cv_header_w32api_windef_h" >&6
6825
6826 fi
6827 if test $ac_cv_header_w32api_windef_h = yes; then
6828 cat >>confdefs.h <<\_ACEOF
6829 #define HAVE_W32API_WINDEF_H 1
6830 _ACEOF
6831 HAVE_W32API_WINDEF_H=1
6832
6833 else
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_W32API_WINDEF_H 0
6836 _ACEOF
6837 HAVE_W32API_WINDEF_H=0
6838
6839 fi
6840
6841
6842 echo "$as_me:$LINENO: checking for w32api/winbase.h" >&5
6843 echo $ECHO_N "checking for w32api/winbase.h... $ECHO_C" >&6
6844 if test "${ac_cv_header_w32api_winbase_h+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847 cat >conftest.$ac_ext <<_ACEOF
6848 /* confdefs.h. */
6849 _ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853
6854 #if HAVE_W32API_WINDEF_H
6855 # include <w32api/windef.h>
6856 #endif
6857
6858 #include <w32api/winbase.h>
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_cv_header_w32api_winbase_h=yes
6883 else
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 ac_cv_header_w32api_winbase_h=no
6888 fi
6889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6890 fi
6891 echo "$as_me:$LINENO: result: $ac_cv_header_w32api_winbase_h" >&5
6892 echo "${ECHO_T}$ac_cv_header_w32api_winbase_h" >&6
6893 if test $ac_cv_header_w32api_winbase_h = yes; then
6894 cat >>confdefs.h <<\_ACEOF
6895 #define HAVE_W32API_WINBASE_H 1
6896 _ACEOF
6897 HAVE_W32API_WINBASE_H=1
6898
6899 else
6900 cat >>confdefs.h <<\_ACEOF
6901 #define HAVE_W32API_WINBASE_H 0
6902 _ACEOF
6903 HAVE_W32API_WINBASE_H=0
6904
6905 fi
6906
6907
6908 echo "$as_me:$LINENO: checking for GetEnvironmentVariableA" >&5
6909 echo $ECHO_N "checking for GetEnvironmentVariableA... $ECHO_C" >&6
6910 if test "$cross_compiling" = yes; then
6911 cat >>confdefs.h <<\_ACEOF
6912 #define HAVE_GETENVIRONMENTVARIABLEA 1
6913 _ACEOF
6914
6915 echo "$as_me:$LINENO: result: yes" >&5
6916 echo "${ECHO_T}yes" >&6
6917 have_getenvironmentvariablea=yes
6918
6919 else
6920 cat >conftest.$ac_ext <<_ACEOF
6921
6922 #if HAVE_SYS_CYGWIN_H
6923 # include <sys/cygwin.h>
6924 #endif
6925 #if HAVE_STDARG_H
6926 # include <stdarg.h>
6927 #endif
6928 #if HAVE_W32API_WINDEF_H
6929 # include <w32api/windef.h>
6930 #endif
6931 #if HAVE_W32API_WINBASE_H
6932 # include <w32api/winbase.h>
6933 #endif
6934 main() {
6935 char env_buf[256];
6936 GetEnvironmentVariableA("PATH", env_buf, sizeof(env_buf));
6937 }
6938
6939 _ACEOF
6940 rm -f conftest$ac_exeext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942 (eval $ac_link) 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 cat >>confdefs.h <<\_ACEOF
6952 #define HAVE_GETENVIRONMENTVARIABLEA 1
6953 _ACEOF
6954
6955 echo "$as_me:$LINENO: result: yes" >&5
6956 echo "${ECHO_T}yes" >&6
6957 have_getenvironmentvariablea=yes
6958 else
6959 echo "$as_me: program exited with status $ac_status" >&5
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 ( exit $ac_status )
6964 cat >>confdefs.h <<\_ACEOF
6965 #define HAVE_GETENVIRONMENTVARIABLEA 0
6966 _ACEOF
6967
6968 echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6
6970 have_getenvironmentvariablea=no
6971 fi
6972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6973 fi
6974
6975 if test x$getenv_safe != xyes && x$have_getenvironmentvariablea != xyes ; then
6976 { echo "$as_me:$LINENO: WARNING: Since getenv is not safe, you MUST add the following" >&5
6977 echo "$as_me: WARNING: Since getenv is not safe, you MUST add the following" >&2;}
6978 { echo "$as_me:$LINENO: WARNING: code to the front of main():" >&5
6979 echo "$as_me: WARNING: code to the front of main():" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: #ifdef DMALLOC" >&5
6981 echo "$as_me: WARNING: #ifdef DMALLOC" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: dmalloc_debug_setup(getenv(\"DMALLOC_OPTIONS\"));" >&5
6983 echo "$as_me: WARNING: dmalloc_debug_setup(getenv(\"DMALLOC_OPTIONS\"));" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: #endif" >&5
6985 echo "$as_me: WARNING: #endif" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: You will need to compile your program with: -DDMALLOC" >&5
6987 echo "$as_me: WARNING: You will need to compile your program with: -DDMALLOC" >&2;}
6988 fi
6989
6990 ############
6991
6992 #
6993 # check for constructor attribute support
6994 #
6995 echo "$as_me:$LINENO: checking constructor attribute" >&5
6996 echo $ECHO_N "checking constructor attribute... $ECHO_C" >&6
6997 if test "$cross_compiling" = yes; then
6998 cat >>confdefs.h <<\_ACEOF
6999 #define CONSTRUCTOR_WORKS 1
7000 _ACEOF
7001 echo "$as_me:$LINENO: result: yes" >&5
7002 echo "${ECHO_T}yes" >&6
7003
7004 else
7005 cat >conftest.$ac_ext <<_ACEOF
7006
7007 /* if we call the loc_con constructor then exit with error code 0 */
7008 static void loc_con() __attribute__((constructor));
7009 static void loc_con() { exit(0); }
7010 int main() { exit(1); }
7011
7012 _ACEOF
7013 rm -f conftest$ac_exeext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015 (eval $ac_link) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7024 cat >>confdefs.h <<\_ACEOF
7025 #define CONSTRUCTOR_WORKS 1
7026 _ACEOF
7027 echo "$as_me:$LINENO: result: yes" >&5
7028 echo "${ECHO_T}yes" >&6
7029 else
7030 echo "$as_me: program exited with status $ac_status" >&5
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034 ( exit $ac_status )
7035 cat >>confdefs.h <<\_ACEOF
7036 #define CONSTRUCTOR_WORKS 0
7037 _ACEOF
7038 echo "$as_me:$LINENO: result: no" >&5
7039 echo "${ECHO_T}no" >&6
7040 fi
7041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7042 fi
7043
7044 #
7045 # check for destructor attribute support
7046 #
7047 echo "$as_me:$LINENO: checking destructor attribute" >&5
7048 echo $ECHO_N "checking destructor attribute... $ECHO_C" >&6
7049 if test "$cross_compiling" = yes; then
7050 cat >>confdefs.h <<\_ACEOF
7051 #define DESTRUCTOR_WORKS 1
7052 _ACEOF
7053
7054 echo "$as_me:$LINENO: result: yes" >&5
7055 echo "${ECHO_T}yes" >&6
7056 destructor_works=yes
7057 else
7058 cat >conftest.$ac_ext <<_ACEOF
7059
7060 /* if we call the loc_decon destructor then exit with error code 0 */
7061 static void loc_decon() __attribute__((destructor));
7062 static void loc_decon() { exit(0); }
7063 int main() { return 1; }
7064
7065 _ACEOF
7066 rm -f conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 cat >>confdefs.h <<\_ACEOF
7078 #define DESTRUCTOR_WORKS 1
7079 _ACEOF
7080
7081 echo "$as_me:$LINENO: result: yes" >&5
7082 echo "${ECHO_T}yes" >&6
7083 destructor_works=yes
7084 else
7085 echo "$as_me: program exited with status $ac_status" >&5
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 ( exit $ac_status )
7090 cat >>confdefs.h <<\_ACEOF
7091 #define DESTRUCTOR_WORKS 0
7092 _ACEOF
7093
7094 echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6
7096 destructor_works=no
7097 fi
7098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7099 fi
7100
7101 ##############################################################################
7102
7103 #
7104 # check if the return.h macros work
7105 #
7106 echo "$as_me:$LINENO: checking return.h macros work" >&5
7107 echo $ECHO_N "checking return.h macros work... $ECHO_C" >&6
7108 if test "$cross_compiling" = yes; then
7109 cat >>confdefs.h <<\_ACEOF
7110 #define RETURN_MACROS_WORK 0
7111 _ACEOF
7112 echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6
7114
7115 else
7116 cat >conftest.$ac_ext <<_ACEOF
7117
7118
7119 #define __CONF_H__
7120 #define USE_RETURN_MACROS 1
7121 #define RETURN_MACROS_WORK 1
7122
7123 #include "return.h"
7124
7125 static void foo (void)
7126 {
7127 char *ret_addr;
7128 GET_RET_ADDR(ret_addr);
7129 }
7130
7131 main()
7132 {
7133 foo();
7134 exit(0);
7135 }
7136
7137 _ACEOF
7138 rm -f conftest$ac_exeext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7140 (eval $ac_link) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 (eval $ac_try) 2>&5
7146 ac_status=$?
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); }; }; then
7149 cat >>confdefs.h <<\_ACEOF
7150 #define RETURN_MACROS_WORK 1
7151 _ACEOF
7152 echo "$as_me:$LINENO: result: yes" >&5
7153 echo "${ECHO_T}yes" >&6
7154 else
7155 echo "$as_me: program exited with status $ac_status" >&5
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159 ( exit $ac_status )
7160 cat >>confdefs.h <<\_ACEOF
7161 #define RETURN_MACROS_WORK 0
7162 _ACEOF
7163 echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7165 fi
7166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7167 fi
7168
7169 ##############################################################################
7170
7171 #
7172 # check to see if ident workds
7173 #
7174 echo "$as_me:$LINENO: checking if ident works" >&5
7175 echo $ECHO_N "checking if ident works... $ECHO_C" >&6
7176 cat >conftest.$ac_ext <<_ACEOF
7177
7178 #ident "$Id: configure.ac,v 1.37 2007/05/14 17:23:37 gray Exp $"
7179 static void foo (void) { }
7180
7181 _ACEOF
7182 rm -f conftest.$ac_objext
7183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7184 (eval $ac_compile) 2>conftest.er1
7185 ac_status=$?
7186 grep -v '^ *+' conftest.er1 >conftest.err
7187 rm -f conftest.er1
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
7191 { ac_try='test -z "$ac_c_werror_flag"
7192 || test ! -s conftest.err'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 (eval $ac_try) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; } &&
7198 { ac_try='test -s conftest.$ac_objext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 cat >>confdefs.h <<\_ACEOF
7205 #define IDENT_WORKS 1
7206 _ACEOF
7207 echo "$as_me:$LINENO: result: yes" >&5
7208 echo "${ECHO_T}yes" >&6
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213 cat >>confdefs.h <<\_ACEOF
7214 #define IDENT_WORKS 0
7215 _ACEOF
7216 echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6
7218
7219 fi
7220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7221
7222 ##############################################################################
7223 { echo "$as_me:$LINENO: pthread particulars" >&5
7224 echo "$as_me: pthread particulars" >&6;}
7225
7226 XX_OLD_LIBS=$LIBS
7227
7228 echo "$as_me:$LINENO: checking for library containing pthread_mutex_init" >&5
7229 echo $ECHO_N "checking for library containing pthread_mutex_init... $ECHO_C" >&6
7230 if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233 ac_func_search_save_LIBS=$LIBS
7234 ac_cv_search_pthread_mutex_init=no
7235 cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h. */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241
7242 /* Override any gcc2 internal prototype to avoid an error. */
7243 #ifdef __cplusplus
7244 extern "C"
7245 #endif
7246 /* We use char because int might match the return type of a gcc2
7247 builtin and then its argument prototype would still apply. */
7248 char pthread_mutex_init ();
7249 int
7250 main ()
7251 {
7252 pthread_mutex_init ();
7253 ;
7254 return 0;
7255 }
7256 _ACEOF
7257 rm -f conftest.$ac_objext conftest$ac_exeext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7259 (eval $ac_link) 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } &&
7266 { ac_try='test -z "$ac_c_werror_flag"
7267 || test ! -s conftest.err'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 (eval $ac_try) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; } &&
7273 { ac_try='test -s conftest$ac_exeext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_cv_search_pthread_mutex_init="none required"
7280 else
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 fi
7285 rm -f conftest.err conftest.$ac_objext \
7286 conftest$ac_exeext conftest.$ac_ext
7287 if test "$ac_cv_search_pthread_mutex_init" = no; then
7288 for ac_lib in pthread pthreads c_r; do
7289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7290 cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h. */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7296
7297 /* Override any gcc2 internal prototype to avoid an error. */
7298 #ifdef __cplusplus
7299 extern "C"
7300 #endif
7301 /* We use char because int might match the return type of a gcc2
7302 builtin and then its argument prototype would still apply. */
7303 char pthread_mutex_init ();
7304 int
7305 main ()
7306 {
7307 pthread_mutex_init ();
7308 ;
7309 return 0;
7310 }
7311 _ACEOF
7312 rm -f conftest.$ac_objext conftest$ac_exeext
7313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7314 (eval $ac_link) 2>conftest.er1
7315 ac_status=$?
7316 grep -v '^ *+' conftest.er1 >conftest.err
7317 rm -f conftest.er1
7318 cat conftest.err >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } &&
7321 { ac_try='test -z "$ac_c_werror_flag"
7322 || test ! -s conftest.err'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; } &&
7328 { ac_try='test -s conftest$ac_exeext'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 ac_cv_search_pthread_mutex_init="-l$ac_lib"
7335 break
7336 else
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7339
7340 fi
7341 rm -f conftest.err conftest.$ac_objext \
7342 conftest$ac_exeext conftest.$ac_ext
7343 done
7344 fi
7345 LIBS=$ac_func_search_save_LIBS
7346 fi
7347 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_init" >&5
7348 echo "${ECHO_T}$ac_cv_search_pthread_mutex_init" >&6
7349 if test "$ac_cv_search_pthread_mutex_init" != no; then
7350 test "$ac_cv_search_pthread_mutex_init" = "none required" || LIBS="$ac_cv_search_pthread_mutex_init $LIBS"
7351
7352 fi
7353
7354 if test "${ac_cv_header_pthread_h+set}" = set; then
7355 echo "$as_me:$LINENO: checking for pthread.h" >&5
7356 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
7357 if test "${ac_cv_header_pthread_h+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 fi
7360 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7361 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
7362 else
7363 # Is the header compilable?
7364 echo "$as_me:$LINENO: checking pthread.h usability" >&5
7365 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 $ac_includes_default
7373 #include <pthread.h>
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try='test -z "$ac_c_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_header_compiler=yes
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 ac_header_compiler=no
7403 fi
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7406 echo "${ECHO_T}$ac_header_compiler" >&6
7407
7408 # Is the header present?
7409 echo "$as_me:$LINENO: checking pthread.h presence" >&5
7410 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
7411 cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h. */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7417 #include <pthread.h>
7418 _ACEOF
7419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } >/dev/null; then
7427 if test -s conftest.err; then
7428 ac_cpp_err=$ac_c_preproc_warn_flag
7429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7430 else
7431 ac_cpp_err=
7432 fi
7433 else
7434 ac_cpp_err=yes
7435 fi
7436 if test -z "$ac_cpp_err"; then
7437 ac_header_preproc=yes
7438 else
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442 ac_header_preproc=no
7443 fi
7444 rm -f conftest.err conftest.$ac_ext
7445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7446 echo "${ECHO_T}$ac_header_preproc" >&6
7447
7448 # So? What about this header?
7449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7450 yes:no: )
7451 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
7452 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7453 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
7454 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
7455 ac_header_preproc=yes
7456 ;;
7457 no:yes:* )
7458 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
7459 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
7460 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
7461 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
7462 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
7463 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
7464 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
7465 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
7466 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
7467 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
7469 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
7470 (
7471 cat <<\_ASBOX
7472 ## ---------------------------------- ##
7473 ## Report this to http://dmalloc.com/ ##
7474 ## ---------------------------------- ##
7475 _ASBOX
7476 ) |
7477 sed "s/^/$as_me: WARNING: /" >&2
7478 ;;
7479 esac
7480 echo "$as_me:$LINENO: checking for pthread.h" >&5
7481 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
7482 if test "${ac_cv_header_pthread_h+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 ac_cv_header_pthread_h=$ac_header_preproc
7486 fi
7487 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7488 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
7489
7490 fi
7491 if test $ac_cv_header_pthread_h = yes; then
7492 cat >>confdefs.h <<\_ACEOF
7493 #define HAVE_PTHREAD_H 1
7494 _ACEOF
7495 HAVE_PTHREAD_H=1
7496
7497 else
7498 cat >>confdefs.h <<\_ACEOF
7499 #define HAVE_PTHREAD_H 0
7500 _ACEOF
7501 HAVE_PTHREAD_H=0
7502
7503 fi
7504
7505
7506 if test "${ac_cv_header_pthreads_h+set}" = set; then
7507 echo "$as_me:$LINENO: checking for pthreads.h" >&5
7508 echo $ECHO_N "checking for pthreads.h... $ECHO_C" >&6
7509 if test "${ac_cv_header_pthreads_h+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 fi
7512 echo "$as_me:$LINENO: result: $ac_cv_header_pthreads_h" >&5
7513 echo "${ECHO_T}$ac_cv_header_pthreads_h" >&6
7514 else
7515 # Is the header compilable?
7516 echo "$as_me:$LINENO: checking pthreads.h usability" >&5
7517 echo $ECHO_N "checking pthreads.h usability... $ECHO_C" >&6
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 $ac_includes_default
7525 #include <pthreads.h>
7526 _ACEOF
7527 rm -f conftest.$ac_objext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try='test -z "$ac_c_werror_flag"
7537 || test ! -s conftest.err'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; } &&
7543 { ac_try='test -s conftest.$ac_objext'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 (eval $ac_try) 2>&5
7546 ac_status=$?
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7549 ac_header_compiler=yes
7550 else
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7553
7554 ac_header_compiler=no
7555 fi
7556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7558 echo "${ECHO_T}$ac_header_compiler" >&6
7559
7560 # Is the header present?
7561 echo "$as_me:$LINENO: checking pthreads.h presence" >&5
7562 echo $ECHO_N "checking pthreads.h presence... $ECHO_C" >&6
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 #include <pthreads.h>
7570 _ACEOF
7571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } >/dev/null; then
7579 if test -s conftest.err; then
7580 ac_cpp_err=$ac_c_preproc_warn_flag
7581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7582 else
7583 ac_cpp_err=
7584 fi
7585 else
7586 ac_cpp_err=yes
7587 fi
7588 if test -z "$ac_cpp_err"; then
7589 ac_header_preproc=yes
7590 else
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 ac_header_preproc=no
7595 fi
7596 rm -f conftest.err conftest.$ac_ext
7597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7598 echo "${ECHO_T}$ac_header_preproc" >&6
7599
7600 # So? What about this header?
7601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7602 yes:no: )
7603 { echo "$as_me:$LINENO: WARNING: pthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
7604 echo "$as_me: WARNING: pthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7605 { echo "$as_me:$LINENO: WARNING: pthreads.h: proceeding with the compiler's result" >&5
7606 echo "$as_me: WARNING: pthreads.h: proceeding with the compiler's result" >&2;}
7607 ac_header_preproc=yes
7608 ;;
7609 no:yes:* )
7610 { echo "$as_me:$LINENO: WARNING: pthreads.h: present but cannot be compiled" >&5
7611 echo "$as_me: WARNING: pthreads.h: present but cannot be compiled" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: pthreads.h: check for missing prerequisite headers?" >&5
7613 echo "$as_me: WARNING: pthreads.h: check for missing prerequisite headers?" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: pthreads.h: see the Autoconf documentation" >&5
7615 echo "$as_me: WARNING: pthreads.h: see the Autoconf documentation" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: pthreads.h: section \"Present But Cannot Be Compiled\"" >&5
7617 echo "$as_me: WARNING: pthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: pthreads.h: proceeding with the preprocessor's result" >&5
7619 echo "$as_me: WARNING: pthreads.h: proceeding with the preprocessor's result" >&2;}
7620 { echo "$as_me:$LINENO: WARNING: pthreads.h: in the future, the compiler will take precedence" >&5
7621 echo "$as_me: WARNING: pthreads.h: in the future, the compiler will take precedence" >&2;}
7622 (
7623 cat <<\_ASBOX
7624 ## ---------------------------------- ##
7625 ## Report this to http://dmalloc.com/ ##
7626 ## ---------------------------------- ##
7627 _ASBOX
7628 ) |
7629 sed "s/^/$as_me: WARNING: /" >&2
7630 ;;
7631 esac
7632 echo "$as_me:$LINENO: checking for pthreads.h" >&5
7633 echo $ECHO_N "checking for pthreads.h... $ECHO_C" >&6
7634 if test "${ac_cv_header_pthreads_h+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 ac_cv_header_pthreads_h=$ac_header_preproc
7638 fi
7639 echo "$as_me:$LINENO: result: $ac_cv_header_pthreads_h" >&5
7640 echo "${ECHO_T}$ac_cv_header_pthreads_h" >&6
7641
7642 fi
7643 if test $ac_cv_header_pthreads_h = yes; then
7644 cat >>confdefs.h <<\_ACEOF
7645 #define HAVE_PTHREADS_H 1
7646 _ACEOF
7647 HAVE_PTHREADS_H=1
7648
7649 else
7650 cat >>confdefs.h <<\_ACEOF
7651 #define HAVE_PTHREADS_H 0
7652 _ACEOF
7653 HAVE_PTHREADS_H=0
7654
7655 fi
7656
7657
7658
7659
7660
7661
7662 for ac_func in pthread_mutex_init pthread_mutex_lock pthread_mutex_unlock
7663 do
7664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7665 echo "$as_me:$LINENO: checking for $ac_func" >&5
7666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7667 if eval "test \"\${$as_ac_var+set}\" = set"; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670 cat >conftest.$ac_ext <<_ACEOF
7671 /* confdefs.h. */
7672 _ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7678 #define $ac_func innocuous_$ac_func
7679
7680 /* System header to define __stub macros and hopefully few prototypes,
7681 which can conflict with char $ac_func (); below.
7682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7683 <limits.h> exists even on freestanding compilers. */
7684
7685 #ifdef __STDC__
7686 # include <limits.h>
7687 #else
7688 # include <assert.h>
7689 #endif
7690
7691 #undef $ac_func
7692
7693 /* Override any gcc2 internal prototype to avoid an error. */
7694 #ifdef __cplusplus
7695 extern "C"
7696 {
7697 #endif
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7700 char $ac_func ();
7701 /* The GNU C library defines this for functions which it implements
7702 to always fail with ENOSYS. Some functions are actually named
7703 something starting with __ and the normal name is an alias. */
7704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7705 choke me
7706 #else
7707 char (*f) () = $ac_func;
7708 #endif
7709 #ifdef __cplusplus
7710 }
7711 #endif
7712
7713 int
7714 main ()
7715 {
7716 return f != $ac_func;
7717 ;
7718 return 0;
7719 }
7720 _ACEOF
7721 rm -f conftest.$ac_objext conftest$ac_exeext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7723 (eval $ac_link) 2>conftest.er1
7724 ac_status=$?
7725 grep -v '^ *+' conftest.er1 >conftest.err
7726 rm -f conftest.er1
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try='test -z "$ac_c_werror_flag"
7731 || test ! -s conftest.err'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 (eval $ac_try) 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; } &&
7737 { ac_try='test -s conftest$ac_exeext'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; }; then
7743 eval "$as_ac_var=yes"
7744 else
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7747
7748 eval "$as_ac_var=no"
7749 fi
7750 rm -f conftest.err conftest.$ac_objext \
7751 conftest$ac_exeext conftest.$ac_ext
7752 fi
7753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7755 if test `eval echo '${'$as_ac_var'}'` = yes; then
7756 cat >>confdefs.h <<_ACEOF
7757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7758 _ACEOF
7759
7760 fi
7761 done
7762
7763
7764 echo "$as_me:$LINENO: checking pthread mutex type" >&5
7765 echo $ECHO_N "checking pthread mutex type... $ECHO_C" >&6
7766 cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h. */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7772
7773 #if HAVE_PTHREAD_H
7774 # include <pthread.h>
7775 #endif
7776 #if HAVE_PTHREADS_H
7777 # include <pthreads.h>
7778 #endif
7779
7780 int
7781 main ()
7782 {
7783
7784 pthread_mutex_t dmalloc_mutex;
7785
7786 ;
7787 return 0;
7788 }
7789 _ACEOF
7790 rm -f conftest.$ac_objext conftest$ac_exeext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7792 (eval $ac_link) 2>conftest.er1
7793 ac_status=$?
7794 grep -v '^ *+' conftest.er1 >conftest.err
7795 rm -f conftest.er1
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } &&
7799 { ac_try='test -z "$ac_c_werror_flag"
7800 || test ! -s conftest.err'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 (eval $ac_try) 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; } &&
7806 { ac_try='test -s conftest$ac_exeext'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 (eval $ac_try) 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; }; then
7812 cat >>confdefs.h <<\_ACEOF
7813 #define THREAD_MUTEX_T pthread_mutex_t
7814 _ACEOF
7815 echo "$as_me:$LINENO: result: pthread_mutex_t" >&5
7816 echo "${ECHO_T}pthread_mutex_t" >&6
7817 else
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7820
7821 echo "$as_me:$LINENO: result: unknown" >&5
7822 echo "${ECHO_T}unknown" >&6
7823
7824 fi
7825 rm -f conftest.err conftest.$ac_objext \
7826 conftest$ac_exeext conftest.$ac_ext
7827
7828 echo "$as_me:$LINENO: checking pthread attribute initialization" >&5
7829 echo $ECHO_N "checking pthread attribute initialization... $ECHO_C" >&6
7830 cat >conftest.$ac_ext <<_ACEOF
7831 /* confdefs.h. */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7836
7837 #if HAVE_PTHREAD_H
7838 # include <pthread.h>
7839 #endif
7840 #if HAVE_PTHREADS_H
7841 # include <pthreads.h>
7842 #endif
7843
7844 int
7845 main ()
7846 {
7847
7848 THREAD_MUTEX_T dmalloc_mutex;
7849 pthread_mutex_init(&dmalloc_mutex, pthread_mutexattr_default);
7850
7851 ;
7852 return 0;
7853 }
7854 _ACEOF
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857 (eval $ac_link) 2>conftest.er1
7858 ac_status=$?
7859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } &&
7864 { ac_try='test -z "$ac_c_werror_flag"
7865 || test ! -s conftest.err'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 (eval $ac_try) 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; } &&
7871 { ac_try='test -s conftest$ac_exeext'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 (eval $ac_try) 2>&5
7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 cat >>confdefs.h <<\_ACEOF
7878 #define THREAD_LOCK_INIT_VAL pthread_mutexattr_default
7879 _ACEOF
7880
7881 echo "$as_me:$LINENO: result: pthread_mutexattr_default" >&5
7882 echo "${ECHO_T}pthread_mutexattr_default" >&6
7883 else
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7886
7887 cat >>confdefs.h <<\_ACEOF
7888 #define THREAD_LOCK_INIT_VAL 0
7889 _ACEOF
7890
7891 echo "$as_me:$LINENO: result: 0" >&5
7892 echo "${ECHO_T}0" >&6
7893
7894 fi
7895 rm -f conftest.err conftest.$ac_objext \
7896 conftest$ac_exeext conftest.$ac_ext
7897
7898 LIBS=$XX_OLD_LIBS
7899
7900 ##############################################################################
7901 { echo "$as_me:$LINENO: functions" >&5
7902 echo "$as_me: functions" >&6;}
7903
7904 # auto-shutdown functions
7905
7906
7907 for ac_func in atexit on_exit
7908 do
7909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7910 echo "$as_me:$LINENO: checking for $ac_func" >&5
7911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7912 if eval "test \"\${$as_ac_var+set}\" = set"; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915 cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7923 #define $ac_func innocuous_$ac_func
7924
7925 /* System header to define __stub macros and hopefully few prototypes,
7926 which can conflict with char $ac_func (); below.
7927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7928 <limits.h> exists even on freestanding compilers. */
7929
7930 #ifdef __STDC__
7931 # include <limits.h>
7932 #else
7933 # include <assert.h>
7934 #endif
7935
7936 #undef $ac_func
7937
7938 /* Override any gcc2 internal prototype to avoid an error. */
7939 #ifdef __cplusplus
7940 extern "C"
7941 {
7942 #endif
7943 /* We use char because int might match the return type of a gcc2
7944 builtin and then its argument prototype would still apply. */
7945 char $ac_func ();
7946 /* The GNU C library defines this for functions which it implements
7947 to always fail with ENOSYS. Some functions are actually named
7948 something starting with __ and the normal name is an alias. */
7949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7950 choke me
7951 #else
7952 char (*f) () = $ac_func;
7953 #endif
7954 #ifdef __cplusplus
7955 }
7956 #endif
7957
7958 int
7959 main ()
7960 {
7961 return f != $ac_func;
7962 ;
7963 return 0;
7964 }
7965 _ACEOF
7966 rm -f conftest.$ac_objext conftest$ac_exeext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7968 (eval $ac_link) 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -z "$ac_c_werror_flag"
7976 || test ! -s conftest.err'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; } &&
7982 { ac_try='test -s conftest$ac_exeext'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 (eval $ac_try) 2>&5
7985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 eval "$as_ac_var=yes"
7989 else
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993 eval "$as_ac_var=no"
7994 fi
7995 rm -f conftest.err conftest.$ac_objext \
7996 conftest$ac_exeext conftest.$ac_ext
7997 fi
7998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8000 if test `eval echo '${'$as_ac_var'}'` = yes; then
8001 cat >>confdefs.h <<_ACEOF
8002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8003 _ACEOF
8004
8005 fi
8006 done
8007
8008 if test $ac_cv_func_atexit = no \
8009 && test $ac_cv_func_on_exit = no \
8010 && test $destructor_works = no; then
8011 { echo "$as_me:$LINENO: WARNING: " >&5
8012 echo "$as_me: WARNING: " >&2;}
8013 { echo "$as_me:$LINENO: WARNING: The library cannot automatically shut itself down without" >&5
8014 echo "$as_me: WARNING: The library cannot automatically shut itself down without" >&2;}
8015 { echo "$as_me:$LINENO: WARNING: atexit" >&5
8016 echo "$as_me: WARNING: atexit" >&2;}
8017 { echo "$as_me:$LINENO: WARNING: call dmalloc_shutdown directly before exit to get get the" >&5
8018 echo "$as_me: WARNING: call dmalloc_shutdown directly before exit to get get the" >&2;}
8019 { echo "$as_me:$LINENO: WARNING: final statistics and unfreed memory information." >&5
8020 echo "$as_me: WARNING: final statistics and unfreed memory information." >&2;}
8021 { echo "$as_me:$LINENO: WARNING: " >&5
8022 echo "$as_me: WARNING: " >&2;}
8023 fi
8024
8025 # other bells and whistles
8026
8027
8028
8029
8030
8031
8032 for ac_func in fork gethostname getpid getuid time ctime
8033 do
8034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8035 echo "$as_me:$LINENO: checking for $ac_func" >&5
8036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8037 if eval "test \"\${$as_ac_var+set}\" = set"; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8048 #define $ac_func innocuous_$ac_func
8049
8050 /* System header to define __stub macros and hopefully few prototypes,
8051 which can conflict with char $ac_func (); below.
8052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8053 <limits.h> exists even on freestanding compilers. */
8054
8055 #ifdef __STDC__
8056 # include <limits.h>
8057 #else
8058 # include <assert.h>
8059 #endif
8060
8061 #undef $ac_func
8062
8063 /* Override any gcc2 internal prototype to avoid an error. */
8064 #ifdef __cplusplus
8065 extern "C"
8066 {
8067 #endif
8068 /* We use char because int might match the return type of a gcc2
8069 builtin and then its argument prototype would still apply. */
8070 char $ac_func ();
8071 /* The GNU C library defines this for functions which it implements
8072 to always fail with ENOSYS. Some functions are actually named
8073 something starting with __ and the normal name is an alias. */
8074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8075 choke me
8076 #else
8077 char (*f) () = $ac_func;
8078 #endif
8079 #ifdef __cplusplus
8080 }
8081 #endif
8082
8083 int
8084 main ()
8085 {
8086 return f != $ac_func;
8087 ;
8088 return 0;
8089 }
8090 _ACEOF
8091 rm -f conftest.$ac_objext conftest$ac_exeext
8092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8093 (eval $ac_link) 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } &&
8100 { ac_try='test -z "$ac_c_werror_flag"
8101 || test ! -s conftest.err'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 (eval $ac_try) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; } &&
8107 { ac_try='test -s conftest$ac_exeext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 eval "$as_ac_var=yes"
8114 else
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 eval "$as_ac_var=no"
8119 fi
8120 rm -f conftest.err conftest.$ac_objext \
8121 conftest$ac_exeext conftest.$ac_ext
8122 fi
8123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8125 if test `eval echo '${'$as_ac_var'}'` = yes; then
8126 cat >>confdefs.h <<_ACEOF
8127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8128 _ACEOF
8129
8130 fi
8131 done
8132
8133
8134
8135
8136 for ac_func in vprintf snprintf vsnprintf
8137 do
8138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8139 echo "$as_me:$LINENO: checking for $ac_func" >&5
8140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8141 if eval "test \"\${$as_ac_var+set}\" = set"; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h. */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8152 #define $ac_func innocuous_$ac_func
8153
8154 /* System header to define __stub macros and hopefully few prototypes,
8155 which can conflict with char $ac_func (); below.
8156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8157 <limits.h> exists even on freestanding compilers. */
8158
8159 #ifdef __STDC__
8160 # include <limits.h>
8161 #else
8162 # include <assert.h>
8163 #endif
8164
8165 #undef $ac_func
8166
8167 /* Override any gcc2 internal prototype to avoid an error. */
8168 #ifdef __cplusplus
8169 extern "C"
8170 {
8171 #endif
8172 /* We use char because int might match the return type of a gcc2
8173 builtin and then its argument prototype would still apply. */
8174 char $ac_func ();
8175 /* The GNU C library defines this for functions which it implements
8176 to always fail with ENOSYS. Some functions are actually named
8177 something starting with __ and the normal name is an alias. */
8178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8179 choke me
8180 #else
8181 char (*f) () = $ac_func;
8182 #endif
8183 #ifdef __cplusplus
8184 }
8185 #endif
8186
8187 int
8188 main ()
8189 {
8190 return f != $ac_func;
8191 ;
8192 return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197 (eval $ac_link) 2>conftest.er1
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
8204 { ac_try='test -z "$ac_c_werror_flag"
8205 || test ! -s conftest.err'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 (eval $ac_try) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; } &&
8211 { ac_try='test -s conftest$ac_exeext'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 eval "$as_ac_var=yes"
8218 else
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 eval "$as_ac_var=no"
8223 fi
8224 rm -f conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
8226 fi
8227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8229 if test `eval echo '${'$as_ac_var'}'` = yes; then
8230 cat >>confdefs.h <<_ACEOF
8231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8232 _ACEOF
8233
8234 fi
8235 done
8236
8237
8238
8239
8240 for ac_func in recalloc memalign valloc
8241 do
8242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8243 echo "$as_me:$LINENO: checking for $ac_func" >&5
8244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8245 if eval "test \"\${$as_ac_var+set}\" = set"; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248 cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h. */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8256 #define $ac_func innocuous_$ac_func
8257
8258 /* System header to define __stub macros and hopefully few prototypes,
8259 which can conflict with char $ac_func (); below.
8260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8261 <limits.h> exists even on freestanding compilers. */
8262
8263 #ifdef __STDC__
8264 # include <limits.h>
8265 #else
8266 # include <assert.h>
8267 #endif
8268
8269 #undef $ac_func
8270
8271 /* Override any gcc2 internal prototype to avoid an error. */
8272 #ifdef __cplusplus
8273 extern "C"
8274 {
8275 #endif
8276 /* We use char because int might match the return type of a gcc2
8277 builtin and then its argument prototype would still apply. */
8278 char $ac_func ();
8279 /* The GNU C library defines this for functions which it implements
8280 to always fail with ENOSYS. Some functions are actually named
8281 something starting with __ and the normal name is an alias. */
8282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8283 choke me
8284 #else
8285 char (*f) () = $ac_func;
8286 #endif
8287 #ifdef __cplusplus
8288 }
8289 #endif
8290
8291 int
8292 main ()
8293 {
8294 return f != $ac_func;
8295 ;
8296 return 0;
8297 }
8298 _ACEOF
8299 rm -f conftest.$ac_objext conftest$ac_exeext
8300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8301 (eval $ac_link) 2>conftest.er1
8302 ac_status=$?
8303 grep -v '^ *+' conftest.er1 >conftest.err
8304 rm -f conftest.er1
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try='test -z "$ac_c_werror_flag"
8309 || test ! -s conftest.err'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; } &&
8315 { ac_try='test -s conftest$ac_exeext'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 (eval $ac_try) 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 eval "$as_ac_var=yes"
8322 else
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 eval "$as_ac_var=no"
8327 fi
8328 rm -f conftest.err conftest.$ac_objext \
8329 conftest$ac_exeext conftest.$ac_ext
8330 fi
8331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8333 if test `eval echo '${'$as_ac_var'}'` = yes; then
8334 cat >>confdefs.h <<_ACEOF
8335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8336 _ACEOF
8337
8338 fi
8339 done
8340
8341
8342 # required although we have code for them in compat.c
8343
8344
8345
8346
8347 for ac_func in memcmp memcpy memmove memset
8348 do
8349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8350 echo "$as_me:$LINENO: checking for $ac_func" >&5
8351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8352 if eval "test \"\${$as_ac_var+set}\" = set"; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h. */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8363 #define $ac_func innocuous_$ac_func
8364
8365 /* System header to define __stub macros and hopefully few prototypes,
8366 which can conflict with char $ac_func (); below.
8367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8368 <limits.h> exists even on freestanding compilers. */
8369
8370 #ifdef __STDC__
8371 # include <limits.h>
8372 #else
8373 # include <assert.h>
8374 #endif
8375
8376 #undef $ac_func
8377
8378 /* Override any gcc2 internal prototype to avoid an error. */
8379 #ifdef __cplusplus
8380 extern "C"
8381 {
8382 #endif
8383 /* We use char because int might match the return type of a gcc2
8384 builtin and then its argument prototype would still apply. */
8385 char $ac_func ();
8386 /* The GNU C library defines this for functions which it implements
8387 to always fail with ENOSYS. Some functions are actually named
8388 something starting with __ and the normal name is an alias. */
8389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8390 choke me
8391 #else
8392 char (*f) () = $ac_func;
8393 #endif
8394 #ifdef __cplusplus
8395 }
8396 #endif
8397
8398 int
8399 main ()
8400 {
8401 return f != $ac_func;
8402 ;
8403 return 0;
8404 }
8405 _ACEOF
8406 rm -f conftest.$ac_objext conftest$ac_exeext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408 (eval $ac_link) 2>conftest.er1
8409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } &&
8415 { ac_try='test -z "$ac_c_werror_flag"
8416 || test ! -s conftest.err'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; } &&
8422 { ac_try='test -s conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 eval "$as_ac_var=yes"
8429 else
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 eval "$as_ac_var=no"
8434 fi
8435 rm -f conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437 fi
8438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8440 if test `eval echo '${'$as_ac_var'}'` = yes; then
8441 cat >>confdefs.h <<_ACEOF
8442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8443 _ACEOF
8444
8445 fi
8446 done
8447
8448
8449
8450 for ac_func in strchr strrchr
8451 do
8452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8453 echo "$as_me:$LINENO: checking for $ac_func" >&5
8454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8455 if eval "test \"\${$as_ac_var+set}\" = set"; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8466 #define $ac_func innocuous_$ac_func
8467
8468 /* System header to define __stub macros and hopefully few prototypes,
8469 which can conflict with char $ac_func (); below.
8470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8471 <limits.h> exists even on freestanding compilers. */
8472
8473 #ifdef __STDC__
8474 # include <limits.h>
8475 #else
8476 # include <assert.h>
8477 #endif
8478
8479 #undef $ac_func
8480
8481 /* Override any gcc2 internal prototype to avoid an error. */
8482 #ifdef __cplusplus
8483 extern "C"
8484 {
8485 #endif
8486 /* We use char because int might match the return type of a gcc2
8487 builtin and then its argument prototype would still apply. */
8488 char $ac_func ();
8489 /* The GNU C library defines this for functions which it implements
8490 to always fail with ENOSYS. Some functions are actually named
8491 something starting with __ and the normal name is an alias. */
8492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8493 choke me
8494 #else
8495 char (*f) () = $ac_func;
8496 #endif
8497 #ifdef __cplusplus
8498 }
8499 #endif
8500
8501 int
8502 main ()
8503 {
8504 return f != $ac_func;
8505 ;
8506 return 0;
8507 }
8508 _ACEOF
8509 rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8511 (eval $ac_link) 2>conftest.er1
8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -z "$ac_c_werror_flag"
8519 || test ! -s conftest.err'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; } &&
8525 { ac_try='test -s conftest$ac_exeext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 eval "$as_ac_var=yes"
8532 else
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536 eval "$as_ac_var=no"
8537 fi
8538 rm -f conftest.err conftest.$ac_objext \
8539 conftest$ac_exeext conftest.$ac_ext
8540 fi
8541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8543 if test `eval echo '${'$as_ac_var'}'` = yes; then
8544 cat >>confdefs.h <<_ACEOF
8545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8546 _ACEOF
8547
8548 fi
8549 done
8550
8551
8552
8553
8554
8555 for ac_func in strlen strcmp strcpy strsep
8556 do
8557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8558 echo "$as_me:$LINENO: checking for $ac_func" >&5
8559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8560 if eval "test \"\${$as_ac_var+set}\" = set"; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8571 #define $ac_func innocuous_$ac_func
8572
8573 /* System header to define __stub macros and hopefully few prototypes,
8574 which can conflict with char $ac_func (); below.
8575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8576 <limits.h> exists even on freestanding compilers. */
8577
8578 #ifdef __STDC__
8579 # include <limits.h>
8580 #else
8581 # include <assert.h>
8582 #endif
8583
8584 #undef $ac_func
8585
8586 /* Override any gcc2 internal prototype to avoid an error. */
8587 #ifdef __cplusplus
8588 extern "C"
8589 {
8590 #endif
8591 /* We use char because int might match the return type of a gcc2
8592 builtin and then its argument prototype would still apply. */
8593 char $ac_func ();
8594 /* The GNU C library defines this for functions which it implements
8595 to always fail with ENOSYS. Some functions are actually named
8596 something starting with __ and the normal name is an alias. */
8597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8598 choke me
8599 #else
8600 char (*f) () = $ac_func;
8601 #endif
8602 #ifdef __cplusplus
8603 }
8604 #endif
8605
8606 int
8607 main ()
8608 {
8609 return f != $ac_func;
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616 (eval $ac_link) 2>conftest.er1
8617 ac_status=$?
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -z "$ac_c_werror_flag"
8624 || test ! -s conftest.err'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try='test -s conftest$ac_exeext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 eval "$as_ac_var=yes"
8637 else
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8640
8641 eval "$as_ac_var=no"
8642 fi
8643 rm -f conftest.err conftest.$ac_objext \
8644 conftest$ac_exeext conftest.$ac_ext
8645 fi
8646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8648 if test `eval echo '${'$as_ac_var'}'` = yes; then
8649 cat >>confdefs.h <<_ACEOF
8650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8651 _ACEOF
8652
8653 fi
8654 done
8655
8656
8657 ##############################################################################
8658 { echo "$as_me:$LINENO: various functions for argv files" >&5
8659 echo "$as_me: various functions for argv files" >&6;}
8660
8661 # NOTE: some duplicated from above
8662
8663
8664
8665 for ac_func in atoi atol getenv
8666 do
8667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8668 echo "$as_me:$LINENO: checking for $ac_func" >&5
8669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8670 if eval "test \"\${$as_ac_var+set}\" = set"; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8681 #define $ac_func innocuous_$ac_func
8682
8683 /* System header to define __stub macros and hopefully few prototypes,
8684 which can conflict with char $ac_func (); below.
8685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8686 <limits.h> exists even on freestanding compilers. */
8687
8688 #ifdef __STDC__
8689 # include <limits.h>
8690 #else
8691 # include <assert.h>
8692 #endif
8693
8694 #undef $ac_func
8695
8696 /* Override any gcc2 internal prototype to avoid an error. */
8697 #ifdef __cplusplus
8698 extern "C"
8699 {
8700 #endif
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8703 char $ac_func ();
8704 /* The GNU C library defines this for functions which it implements
8705 to always fail with ENOSYS. Some functions are actually named
8706 something starting with __ and the normal name is an alias. */
8707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8708 choke me
8709 #else
8710 char (*f) () = $ac_func;
8711 #endif
8712 #ifdef __cplusplus
8713 }
8714 #endif
8715
8716 int
8717 main ()
8718 {
8719 return f != $ac_func;
8720 ;
8721 return 0;
8722 }
8723 _ACEOF
8724 rm -f conftest.$ac_objext conftest$ac_exeext
8725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8726 (eval $ac_link) 2>conftest.er1
8727 ac_status=$?
8728 grep -v '^ *+' conftest.er1 >conftest.err
8729 rm -f conftest.er1
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try='test -z "$ac_c_werror_flag"
8734 || test ! -s conftest.err'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 (eval $ac_try) 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; } &&
8740 { ac_try='test -s conftest$ac_exeext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 (eval $ac_try) 2>&5
8743 ac_status=$?
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 eval "$as_ac_var=yes"
8747 else
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8750
8751 eval "$as_ac_var=no"
8752 fi
8753 rm -f conftest.err conftest.$ac_objext \
8754 conftest$ac_exeext conftest.$ac_ext
8755 fi
8756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8758 if test `eval echo '${'$as_ac_var'}'` = yes; then
8759 cat >>confdefs.h <<_ACEOF
8760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8761 _ACEOF
8762
8763 fi
8764 done
8765
8766
8767
8768
8769
8770
8771
8772
8773 for ac_func in strchr strcmp strcpy strlen strncmp strncpy strsep
8774 do
8775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8776 echo "$as_me:$LINENO: checking for $ac_func" >&5
8777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8778 if eval "test \"\${$as_ac_var+set}\" = set"; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781 cat >conftest.$ac_ext <<_ACEOF
8782 /* confdefs.h. */
8783 _ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8789 #define $ac_func innocuous_$ac_func
8790
8791 /* System header to define __stub macros and hopefully few prototypes,
8792 which can conflict with char $ac_func (); below.
8793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8794 <limits.h> exists even on freestanding compilers. */
8795
8796 #ifdef __STDC__
8797 # include <limits.h>
8798 #else
8799 # include <assert.h>
8800 #endif
8801
8802 #undef $ac_func
8803
8804 /* Override any gcc2 internal prototype to avoid an error. */
8805 #ifdef __cplusplus
8806 extern "C"
8807 {
8808 #endif
8809 /* We use char because int might match the return type of a gcc2
8810 builtin and then its argument prototype would still apply. */
8811 char $ac_func ();
8812 /* The GNU C library defines this for functions which it implements
8813 to always fail with ENOSYS. Some functions are actually named
8814 something starting with __ and the normal name is an alias. */
8815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8816 choke me
8817 #else
8818 char (*f) () = $ac_func;
8819 #endif
8820 #ifdef __cplusplus
8821 }
8822 #endif
8823
8824 int
8825 main ()
8826 {
8827 return f != $ac_func;
8828 ;
8829 return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest.$ac_objext conftest$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 eval "$as_ac_var=yes"
8855 else
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859 eval "$as_ac_var=no"
8860 fi
8861 rm -f conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
8863 fi
8864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8866 if test `eval echo '${'$as_ac_var'}'` = yes; then
8867 cat >>confdefs.h <<_ACEOF
8868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8869 _ACEOF
8870
8871 fi
8872 done
8873
8874
8875 ##############################################################################
8876 { echo "$as_me:$LINENO: various functions for argument checking" >&5
8877 echo "$as_me: various functions for argument checking" >&6;}
8878
8879 # NOTE: some duplicated from above
8880
8881
8882 for ac_func in atoi atol
8883 do
8884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8885 echo "$as_me:$LINENO: checking for $ac_func" >&5
8886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8887 if eval "test \"\${$as_ac_var+set}\" = set"; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890 cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h. */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8898 #define $ac_func innocuous_$ac_func
8899
8900 /* System header to define __stub macros and hopefully few prototypes,
8901 which can conflict with char $ac_func (); below.
8902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8903 <limits.h> exists even on freestanding compilers. */
8904
8905 #ifdef __STDC__
8906 # include <limits.h>
8907 #else
8908 # include <assert.h>
8909 #endif
8910
8911 #undef $ac_func
8912
8913 /* Override any gcc2 internal prototype to avoid an error. */
8914 #ifdef __cplusplus
8915 extern "C"
8916 {
8917 #endif
8918 /* We use char because int might match the return type of a gcc2
8919 builtin and then its argument prototype would still apply. */
8920 char $ac_func ();
8921 /* The GNU C library defines this for functions which it implements
8922 to always fail with ENOSYS. Some functions are actually named
8923 something starting with __ and the normal name is an alias. */
8924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8925 choke me
8926 #else
8927 char (*f) () = $ac_func;
8928 #endif
8929 #ifdef __cplusplus
8930 }
8931 #endif
8932
8933 int
8934 main ()
8935 {
8936 return f != $ac_func;
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 rm -f conftest.$ac_objext conftest$ac_exeext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag"
8951 || test ! -s conftest.err'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try='test -s conftest$ac_exeext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963 eval "$as_ac_var=yes"
8964 else
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8967
8968 eval "$as_ac_var=no"
8969 fi
8970 rm -f conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
8972 fi
8973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8975 if test `eval echo '${'$as_ac_var'}'` = yes; then
8976 cat >>confdefs.h <<_ACEOF
8977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8978 _ACEOF
8979
8980 fi
8981 done
8982
8983
8984
8985
8986 for ac_func in bcmp bcopy bzero
8987 do
8988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8989 echo "$as_me:$LINENO: checking for $ac_func" >&5
8990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8991 if eval "test \"\${$as_ac_var+set}\" = set"; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994 cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h. */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9002 #define $ac_func innocuous_$ac_func
9003
9004 /* System header to define __stub macros and hopefully few prototypes,
9005 which can conflict with char $ac_func (); below.
9006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9007 <limits.h> exists even on freestanding compilers. */
9008
9009 #ifdef __STDC__
9010 # include <limits.h>
9011 #else
9012 # include <assert.h>
9013 #endif
9014
9015 #undef $ac_func
9016
9017 /* Override any gcc2 internal prototype to avoid an error. */
9018 #ifdef __cplusplus
9019 extern "C"
9020 {
9021 #endif
9022 /* We use char because int might match the return type of a gcc2
9023 builtin and then its argument prototype would still apply. */
9024 char $ac_func ();
9025 /* The GNU C library defines this for functions which it implements
9026 to always fail with ENOSYS. Some functions are actually named
9027 something starting with __ and the normal name is an alias. */
9028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9029 choke me
9030 #else
9031 char (*f) () = $ac_func;
9032 #endif
9033 #ifdef __cplusplus
9034 }
9035 #endif
9036
9037 int
9038 main ()
9039 {
9040 return f != $ac_func;
9041 ;
9042 return 0;
9043 }
9044 _ACEOF
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9047 (eval $ac_link) 2>conftest.er1
9048 ac_status=$?
9049 grep -v '^ *+' conftest.er1 >conftest.err
9050 rm -f conftest.er1
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag"
9055 || test ! -s conftest.err'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 (eval $ac_try) 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; } &&
9061 { ac_try='test -s conftest$ac_exeext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 eval "$as_ac_var=yes"
9068 else
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9071
9072 eval "$as_ac_var=no"
9073 fi
9074 rm -f conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9076 fi
9077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9079 if test `eval echo '${'$as_ac_var'}'` = yes; then
9080 cat >>confdefs.h <<_ACEOF
9081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9082 _ACEOF
9083
9084 fi
9085 done
9086
9087
9088 for ac_func in index
9089 do
9090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9091 echo "$as_me:$LINENO: checking for $ac_func" >&5
9092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9093 if eval "test \"\${$as_ac_var+set}\" = set"; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9104 #define $ac_func innocuous_$ac_func
9105
9106 /* System header to define __stub macros and hopefully few prototypes,
9107 which can conflict with char $ac_func (); below.
9108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9109 <limits.h> exists even on freestanding compilers. */
9110
9111 #ifdef __STDC__
9112 # include <limits.h>
9113 #else
9114 # include <assert.h>
9115 #endif
9116
9117 #undef $ac_func
9118
9119 /* Override any gcc2 internal prototype to avoid an error. */
9120 #ifdef __cplusplus
9121 extern "C"
9122 {
9123 #endif
9124 /* We use char because int might match the return type of a gcc2
9125 builtin and then its argument prototype would still apply. */
9126 char $ac_func ();
9127 /* The GNU C library defines this for functions which it implements
9128 to always fail with ENOSYS. Some functions are actually named
9129 something starting with __ and the normal name is an alias. */
9130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9131 choke me
9132 #else
9133 char (*f) () = $ac_func;
9134 #endif
9135 #ifdef __cplusplus
9136 }
9137 #endif
9138
9139 int
9140 main ()
9141 {
9142 return f != $ac_func;
9143 ;
9144 return 0;
9145 }
9146 _ACEOF
9147 rm -f conftest.$ac_objext conftest$ac_exeext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149 (eval $ac_link) 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag"
9157 || test ! -s conftest.err'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 (eval $ac_try) 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest$ac_exeext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 eval "$as_ac_var=yes"
9170 else
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9173
9174 eval "$as_ac_var=no"
9175 fi
9176 rm -f conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext conftest.$ac_ext
9178 fi
9179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9181 if test `eval echo '${'$as_ac_var'}'` = yes; then
9182 cat >>confdefs.h <<_ACEOF
9183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9184 _ACEOF
9185
9186 fi
9187 done
9188
9189
9190
9191
9192
9193
9194
9195 for ac_func in memccpy memchr memcmp memcpy memmove memset
9196 do
9197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9198 echo "$as_me:$LINENO: checking for $ac_func" >&5
9199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9200 if eval "test \"\${$as_ac_var+set}\" = set"; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203 cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h. */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9211 #define $ac_func innocuous_$ac_func
9212
9213 /* System header to define __stub macros and hopefully few prototypes,
9214 which can conflict with char $ac_func (); below.
9215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9216 <limits.h> exists even on freestanding compilers. */
9217
9218 #ifdef __STDC__
9219 # include <limits.h>
9220 #else
9221 # include <assert.h>
9222 #endif
9223
9224 #undef $ac_func
9225
9226 /* Override any gcc2 internal prototype to avoid an error. */
9227 #ifdef __cplusplus
9228 extern "C"
9229 {
9230 #endif
9231 /* We use char because int might match the return type of a gcc2
9232 builtin and then its argument prototype would still apply. */
9233 char $ac_func ();
9234 /* The GNU C library defines this for functions which it implements
9235 to always fail with ENOSYS. Some functions are actually named
9236 something starting with __ and the normal name is an alias. */
9237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9238 choke me
9239 #else
9240 char (*f) () = $ac_func;
9241 #endif
9242 #ifdef __cplusplus
9243 }
9244 #endif
9245
9246 int
9247 main ()
9248 {
9249 return f != $ac_func;
9250 ;
9251 return 0;
9252 }
9253 _ACEOF
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256 (eval $ac_link) 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
9263 { ac_try='test -z "$ac_c_werror_flag"
9264 || test ! -s conftest.err'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 (eval $ac_try) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; } &&
9270 { ac_try='test -s conftest$ac_exeext'
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 (eval $ac_try) 2>&5
9273 ac_status=$?
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; }; then
9276 eval "$as_ac_var=yes"
9277 else
9278 echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9280
9281 eval "$as_ac_var=no"
9282 fi
9283 rm -f conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
9285 fi
9286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9288 if test `eval echo '${'$as_ac_var'}'` = yes; then
9289 cat >>confdefs.h <<_ACEOF
9290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9291 _ACEOF
9292
9293 fi
9294 done
9295
9296
9297 for ac_func in rindex
9298 do
9299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9300 echo "$as_me:$LINENO: checking for $ac_func" >&5
9301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9302 if eval "test \"\${$as_ac_var+set}\" = set"; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 else
9305 cat >conftest.$ac_ext <<_ACEOF
9306 /* confdefs.h. */
9307 _ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9313 #define $ac_func innocuous_$ac_func
9314
9315 /* System header to define __stub macros and hopefully few prototypes,
9316 which can conflict with char $ac_func (); below.
9317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9318 <limits.h> exists even on freestanding compilers. */
9319
9320 #ifdef __STDC__
9321 # include <limits.h>
9322 #else
9323 # include <assert.h>
9324 #endif
9325
9326 #undef $ac_func
9327
9328 /* Override any gcc2 internal prototype to avoid an error. */
9329 #ifdef __cplusplus
9330 extern "C"
9331 {
9332 #endif
9333 /* We use char because int might match the return type of a gcc2
9334 builtin and then its argument prototype would still apply. */
9335 char $ac_func ();
9336 /* The GNU C library defines this for functions which it implements
9337 to always fail with ENOSYS. Some functions are actually named
9338 something starting with __ and the normal name is an alias. */
9339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9340 choke me
9341 #else
9342 char (*f) () = $ac_func;
9343 #endif
9344 #ifdef __cplusplus
9345 }
9346 #endif
9347
9348 int
9349 main ()
9350 {
9351 return f != $ac_func;
9352 ;
9353 return 0;
9354 }
9355 _ACEOF
9356 rm -f conftest.$ac_objext conftest$ac_exeext
9357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9358 (eval $ac_link) 2>conftest.er1
9359 ac_status=$?
9360 grep -v '^ *+' conftest.er1 >conftest.err
9361 rm -f conftest.er1
9362 cat conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } &&
9365 { ac_try='test -z "$ac_c_werror_flag"
9366 || test ! -s conftest.err'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 (eval $ac_try) 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; } &&
9372 { ac_try='test -s conftest$ac_exeext'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 eval "$as_ac_var=yes"
9379 else
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9382
9383 eval "$as_ac_var=no"
9384 fi
9385 rm -f conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 fi
9388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9390 if test `eval echo '${'$as_ac_var'}'` = yes; then
9391 cat >>confdefs.h <<_ACEOF
9392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9393 _ACEOF
9394
9395 fi
9396 done
9397
9398
9399
9400
9401
9402
9403
9404
9405 for ac_func in strcasecmp strcat strchr strcmp strcpy strcspn strlen
9406 do
9407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9408 echo "$as_me:$LINENO: checking for $ac_func" >&5
9409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9410 if eval "test \"\${$as_ac_var+set}\" = set"; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413 cat >conftest.$ac_ext <<_ACEOF
9414 /* confdefs.h. */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9421 #define $ac_func innocuous_$ac_func
9422
9423 /* System header to define __stub macros and hopefully few prototypes,
9424 which can conflict with char $ac_func (); below.
9425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9426 <limits.h> exists even on freestanding compilers. */
9427
9428 #ifdef __STDC__
9429 # include <limits.h>
9430 #else
9431 # include <assert.h>
9432 #endif
9433
9434 #undef $ac_func
9435
9436 /* Override any gcc2 internal prototype to avoid an error. */
9437 #ifdef __cplusplus
9438 extern "C"
9439 {
9440 #endif
9441 /* We use char because int might match the return type of a gcc2
9442 builtin and then its argument prototype would still apply. */
9443 char $ac_func ();
9444 /* The GNU C library defines this for functions which it implements
9445 to always fail with ENOSYS. Some functions are actually named
9446 something starting with __ and the normal name is an alias. */
9447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9448 choke me
9449 #else
9450 char (*f) () = $ac_func;
9451 #endif
9452 #ifdef __cplusplus
9453 }
9454 #endif
9455
9456 int
9457 main ()
9458 {
9459 return f != $ac_func;
9460 ;
9461 return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 eval "$as_ac_var=yes"
9487 else
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 eval "$as_ac_var=no"
9492 fi
9493 rm -f conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 fi
9496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9498 if test `eval echo '${'$as_ac_var'}'` = yes; then
9499 cat >>confdefs.h <<_ACEOF
9500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9501 _ACEOF
9502
9503 fi
9504 done
9505
9506
9507
9508
9509
9510 for ac_func in strncasecmp strncat strncmp strncpy
9511 do
9512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9513 echo "$as_me:$LINENO: checking for $ac_func" >&5
9514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9515 if eval "test \"\${$as_ac_var+set}\" = set"; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 else
9518 cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h. */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9526 #define $ac_func innocuous_$ac_func
9527
9528 /* System header to define __stub macros and hopefully few prototypes,
9529 which can conflict with char $ac_func (); below.
9530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9531 <limits.h> exists even on freestanding compilers. */
9532
9533 #ifdef __STDC__
9534 # include <limits.h>
9535 #else
9536 # include <assert.h>
9537 #endif
9538
9539 #undef $ac_func
9540
9541 /* Override any gcc2 internal prototype to avoid an error. */
9542 #ifdef __cplusplus
9543 extern "C"
9544 {
9545 #endif
9546 /* We use char because int might match the return type of a gcc2
9547 builtin and then its argument prototype would still apply. */
9548 char $ac_func ();
9549 /* The GNU C library defines this for functions which it implements
9550 to always fail with ENOSYS. Some functions are actually named
9551 something starting with __ and the normal name is an alias. */
9552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9553 choke me
9554 #else
9555 char (*f) () = $ac_func;
9556 #endif
9557 #ifdef __cplusplus
9558 }
9559 #endif
9560
9561 int
9562 main ()
9563 {
9564 return f != $ac_func;
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>conftest.er1
9572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_c_werror_flag"
9579 || test ! -s conftest.err'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest$ac_exeext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 eval "$as_ac_var=yes"
9592 else
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9595
9596 eval "$as_ac_var=no"
9597 fi
9598 rm -f conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
9600 fi
9601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9603 if test `eval echo '${'$as_ac_var'}'` = yes; then
9604 cat >>confdefs.h <<_ACEOF
9605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9606 _ACEOF
9607
9608 fi
9609 done
9610
9611
9612
9613
9614
9615
9616 for ac_func in strpbrk strrchr strspn strstr strtok
9617 do
9618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9619 echo "$as_me:$LINENO: checking for $ac_func" >&5
9620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9621 if eval "test \"\${$as_ac_var+set}\" = set"; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624 cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h. */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9632 #define $ac_func innocuous_$ac_func
9633
9634 /* System header to define __stub macros and hopefully few prototypes,
9635 which can conflict with char $ac_func (); below.
9636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9637 <limits.h> exists even on freestanding compilers. */
9638
9639 #ifdef __STDC__
9640 # include <limits.h>
9641 #else
9642 # include <assert.h>
9643 #endif
9644
9645 #undef $ac_func
9646
9647 /* Override any gcc2 internal prototype to avoid an error. */
9648 #ifdef __cplusplus
9649 extern "C"
9650 {
9651 #endif
9652 /* We use char because int might match the return type of a gcc2
9653 builtin and then its argument prototype would still apply. */
9654 char $ac_func ();
9655 /* The GNU C library defines this for functions which it implements
9656 to always fail with ENOSYS. Some functions are actually named
9657 something starting with __ and the normal name is an alias. */
9658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9659 choke me
9660 #else
9661 char (*f) () = $ac_func;
9662 #endif
9663 #ifdef __cplusplus
9664 }
9665 #endif
9666
9667 int
9668 main ()
9669 {
9670 return f != $ac_func;
9671 ;
9672 return 0;
9673 }
9674 _ACEOF
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9677 (eval $ac_link) 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } &&
9684 { ac_try='test -z "$ac_c_werror_flag"
9685 || test ! -s conftest.err'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 (eval $ac_try) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; } &&
9691 { ac_try='test -s conftest$ac_exeext'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 (eval $ac_try) 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 eval "$as_ac_var=yes"
9698 else
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702 eval "$as_ac_var=no"
9703 fi
9704 rm -f conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706 fi
9707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9709 if test `eval echo '${'$as_ac_var'}'` = yes; then
9710 cat >>confdefs.h <<_ACEOF
9711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9712 _ACEOF
9713
9714 fi
9715 done
9716
9717
9718 ac_config_files="$ac_config_files Makefile"
9719
9720
9721 ac_config_commands="$ac_config_commands dmalloc.h.2"
9722
9723
9724 ac_config_commands="$ac_config_commands settings.h"
9725
9726 cat >confcache <<\_ACEOF
9727 # This file is a shell script that caches the results of configure
9728 # tests run on this system so they can be shared between configure
9729 # scripts and configure runs, see configure's option --config-cache.
9730 # It is not useful on other systems. If it contains results you don't
9731 # want to keep, you may remove or edit it.
9732 #
9733 # config.status only pays attention to the cache file if you give it
9734 # the --recheck option to rerun configure.
9735 #
9736 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9738 # following values.
9739
9740 _ACEOF
9741
9742 # The following way of writing the cache mishandles newlines in values,
9743 # but we know of no workaround that is simple, portable, and efficient.
9744 # So, don't put newlines in cache variables' values.
9745 # Ultrix sh set writes to stderr and can't be redirected directly,
9746 # and sets the high bit in the cache file unless we assign to the vars.
9747 {
9748 (set) 2>&1 |
9749 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9750 *ac_space=\ *)
9751 # `set' does not quote correctly, so add quotes (double-quote
9752 # substitution turns \\\\ into \\, and sed turns \\ into \).
9753 sed -n \
9754 "s/'/'\\\\''/g;
9755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9756 ;;
9757 *)
9758 # `set' quotes correctly as required by POSIX, so do not add quotes.
9759 sed -n \
9760 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9761 ;;
9762 esac;
9763 } |
9764 sed '
9765 t clear
9766 : clear
9767 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9768 t end
9769 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9770 : end' >>confcache
9771 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9772 if test -w $cache_file; then
9773 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9774 cat confcache >$cache_file
9775 else
9776 echo "not updating unwritable cache $cache_file"
9777 fi
9778 fi
9779 rm -f confcache
9780
9781 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9782 # Let make expand exec_prefix.
9783 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9784
9785 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9786 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9787 # trailing colons and then remove the whole line if VPATH becomes empty
9788 # (actually we leave an empty line to preserve line numbers).
9789 if test "x$srcdir" = x.; then
9790 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9791 s/:*\$(srcdir):*/:/;
9792 s/:*\${srcdir}:*/:/;
9793 s/:*@srcdir@:*/:/;
9794 s/^\([^=]*=[ ]*\):*/\1/;
9795 s/:*$//;
9796 s/^[^=]*=[ ]*$//;
9797 }'
9798 fi
9799
9800 DEFS=-DHAVE_CONFIG_H
9801
9802 ac_libobjs=
9803 ac_ltlibobjs=
9804 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9805 # 1. Remove the extension, and $U if already installed.
9806 ac_i=`echo "$ac_i" |
9807 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9808 # 2. Add them.
9809 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9810 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9811 done
9812 LIBOBJS=$ac_libobjs
9813
9814 LTLIBOBJS=$ac_ltlibobjs
9815
9816
9817
9818 : ${CONFIG_STATUS=./config.status}
9819 ac_clean_files_save=$ac_clean_files
9820 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9821 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9822 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9823 cat >$CONFIG_STATUS <<_ACEOF
9824 #! $SHELL
9825 # Generated by $as_me.
9826 # Run this file to recreate the current configuration.
9827 # Compiler output produced by configure, useful for debugging
9828 # configure, is in config.log if it exists.
9829
9830 debug=false
9831 ac_cs_recheck=false
9832 ac_cs_silent=false
9833 SHELL=\${CONFIG_SHELL-$SHELL}
9834 _ACEOF
9835
9836 cat >>$CONFIG_STATUS <<\_ACEOF
9837 ## --------------------- ##
9838 ## M4sh Initialization. ##
9839 ## --------------------- ##
9840
9841 # Be Bourne compatible
9842 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9843 emulate sh
9844 NULLCMD=:
9845 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9846 # is contrary to our usage. Disable this feature.
9847 alias -g '${1+"$@"}'='"$@"'
9848 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9849 set -o posix
9850 fi
9851 DUALCASE=1; export DUALCASE # for MKS sh
9852
9853 # Support unset when possible.
9854 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9855 as_unset=unset
9856 else
9857 as_unset=false
9858 fi
9859
9860
9861 # Work around bugs in pre-3.0 UWIN ksh.
9862 $as_unset ENV MAIL MAILPATH
9863 PS1='$ '
9864 PS2='> '
9865 PS4='+ '
9866
9867 # NLS nuisances.
9868 for as_var in \
9869 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9870 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9871 LC_TELEPHONE LC_TIME
9872 do
9873 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9874 eval $as_var=C; export $as_var
9875 else
9876 $as_unset $as_var
9877 fi
9878 done
9879
9880 # Required to use basename.
9881 if expr a : '\(a\)' >/dev/null 2>&1; then
9882 as_expr=expr
9883 else
9884 as_expr=false
9885 fi
9886
9887 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9888 as_basename=basename
9889 else
9890 as_basename=false
9891 fi
9892
9893
9894 # Name of the executable.
9895 as_me=`$as_basename "$0" ||
9896 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9897 X"$0" : 'X\(//\)$' \| \
9898 X"$0" : 'X\(/\)$' \| \
9899 . : '\(.\)' 2>/dev/null ||
9900 echo X/"$0" |
9901 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9902 /^X\/\(\/\/\)$/{ s//\1/; q; }
9903 /^X\/\(\/\).*/{ s//\1/; q; }
9904 s/.*/./; q'`
9905
9906
9907 # PATH needs CR, and LINENO needs CR and PATH.
9908 # Avoid depending upon Character Ranges.
9909 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9910 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9911 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9912 as_cr_digits='0123456789'
9913 as_cr_alnum=$as_cr_Letters$as_cr_digits
9914
9915 # The user is always right.
9916 if test "${PATH_SEPARATOR+set}" != set; then
9917 echo "#! /bin/sh" >conf$$.sh
9918 echo "exit 0" >>conf$$.sh
9919 chmod +x conf$$.sh
9920 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9921 PATH_SEPARATOR=';'
9922 else
9923 PATH_SEPARATOR=:
9924 fi
9925 rm -f conf$$.sh
9926 fi
9927
9928
9929 as_lineno_1=$LINENO
9930 as_lineno_2=$LINENO
9931 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9932 test "x$as_lineno_1" != "x$as_lineno_2" &&
9933 test "x$as_lineno_3" = "x$as_lineno_2" || {
9934 # Find who we are. Look in the path if we contain no path at all
9935 # relative or not.
9936 case $0 in
9937 *[\\/]* ) as_myself=$0 ;;
9938 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 for as_dir in $PATH
9940 do
9941 IFS=$as_save_IFS
9942 test -z "$as_dir" && as_dir=.
9943 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9944 done
9945
9946 ;;
9947 esac
9948 # We did not find ourselves, most probably we were run as `sh COMMAND'
9949 # in which case we are not to be found in the path.
9950 if test "x$as_myself" = x; then
9951 as_myself=$0
9952 fi
9953 if test ! -f "$as_myself"; then
9954 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9955 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9956 { (exit 1); exit 1; }; }
9957 fi
9958 case $CONFIG_SHELL in
9959 '')
9960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9962 do
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
9965 for as_base in sh bash ksh sh5; do
9966 case $as_dir in
9967 /*)
9968 if ("$as_dir/$as_base" -c '
9969 as_lineno_1=$LINENO
9970 as_lineno_2=$LINENO
9971 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9972 test "x$as_lineno_1" != "x$as_lineno_2" &&
9973 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9974 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9975 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9976 CONFIG_SHELL=$as_dir/$as_base
9977 export CONFIG_SHELL
9978 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9979 fi;;
9980 esac
9981 done
9982 done
9983 ;;
9984 esac
9985
9986 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9987 # uniformly replaced by the line number. The first 'sed' inserts a
9988 # line-number line before each line; the second 'sed' does the real
9989 # work. The second script uses 'N' to pair each line-number line
9990 # with the numbered line, and appends trailing '-' during
9991 # substitution so that $LINENO is not a special case at line end.
9992 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9993 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9994 sed '=' <$as_myself |
9995 sed '
9996 N
9997 s,$,-,
9998 : loop
9999 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10000 t loop
10001 s,-$,,
10002 s,^['$as_cr_digits']*\n,,
10003 ' >$as_me.lineno &&
10004 chmod +x $as_me.lineno ||
10005 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10006 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10007 { (exit 1); exit 1; }; }
10008
10009 # Don't try to exec as it changes $[0], causing all sort of problems
10010 # (the dirname of $[0] is not the place where we might find the
10011 # original and so on. Autoconf is especially sensible to this).
10012 . ./$as_me.lineno
10013 # Exit status is that of the last command.
10014 exit
10015 }
10016
10017
10018 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10019 *c*,-n*) ECHO_N= ECHO_C='
10020 ' ECHO_T=' ' ;;
10021 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10022 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10023 esac
10024
10025 if expr a : '\(a\)' >/dev/null 2>&1; then
10026 as_expr=expr
10027 else
10028 as_expr=false
10029 fi
10030
10031 rm -f conf$$ conf$$.exe conf$$.file
10032 echo >conf$$.file
10033 if ln -s conf$$.file conf$$ 2>/dev/null; then
10034 # We could just check for DJGPP; but this test a) works b) is more generic
10035 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10036 if test -f conf$$.exe; then
10037 # Don't use ln at all; we don't have any links
10038 as_ln_s='cp -p'
10039 else
10040 as_ln_s='ln -s'
10041 fi
10042 elif ln conf$$.file conf$$ 2>/dev/null; then
10043 as_ln_s=ln
10044 else
10045 as_ln_s='cp -p'
10046 fi
10047 rm -f conf$$ conf$$.exe conf$$.file
10048
10049 if mkdir -p . 2>/dev/null; then
10050 as_mkdir_p=:
10051 else
10052 test -d ./-p && rmdir ./-p
10053 as_mkdir_p=false
10054 fi
10055
10056 as_executable_p="test -f"
10057
10058 # Sed expression to map a string onto a valid CPP name.
10059 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10060
10061 # Sed expression to map a string onto a valid variable name.
10062 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10063
10064
10065 # IFS
10066 # We need space, tab and new line, in precisely that order.
10067 as_nl='
10068 '
10069 IFS=" $as_nl"
10070
10071 # CDPATH.
10072 $as_unset CDPATH
10073
10074 exec 6>&1
10075
10076 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10077 # report actual input values of CONFIG_FILES etc. instead of their
10078 # values after options handling. Logging --version etc. is OK.
10079 exec 5>>config.log
10080 {
10081 echo
10082 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10083 ## Running $as_me. ##
10084 _ASBOX
10085 } >&5
10086 cat >&5 <<_CSEOF
10087
10088 This file was extended by dmalloc $as_me 5.5.2, which was
10089 generated by GNU Autoconf 2.59. Invocation command line was
10090
10091 CONFIG_FILES = $CONFIG_FILES
10092 CONFIG_HEADERS = $CONFIG_HEADERS
10093 CONFIG_LINKS = $CONFIG_LINKS
10094 CONFIG_COMMANDS = $CONFIG_COMMANDS
10095 $ $0 $@
10096
10097 _CSEOF
10098 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10099 echo >&5
10100 _ACEOF
10101
10102 # Files that config.status was made for.
10103 if test -n "$ac_config_files"; then
10104 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10105 fi
10106
10107 if test -n "$ac_config_headers"; then
10108 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10109 fi
10110
10111 if test -n "$ac_config_links"; then
10112 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10113 fi
10114
10115 if test -n "$ac_config_commands"; then
10116 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10117 fi
10118
10119 cat >>$CONFIG_STATUS <<\_ACEOF
10120
10121 ac_cs_usage="\
10122 \`$as_me' instantiates files from templates according to the
10123 current configuration.
10124
10125 Usage: $0 [OPTIONS] [FILE]...
10126
10127 -h, --help print this help, then exit
10128 -V, --version print version number, then exit
10129 -q, --quiet do not print progress messages
10130 -d, --debug don't remove temporary files
10131 --recheck update $as_me by reconfiguring in the same conditions
10132 --file=FILE[:TEMPLATE]
10133 instantiate the configuration file FILE
10134 --header=FILE[:TEMPLATE]
10135 instantiate the configuration header FILE
10136
10137 Configuration files:
10138 $config_files
10139
10140 Configuration headers:
10141 $config_headers
10142
10143 Configuration commands:
10144 $config_commands
10145
10146 Report bugs to <[email protected]>."
10147 _ACEOF
10148
10149 cat >>$CONFIG_STATUS <<_ACEOF
10150 ac_cs_version="\\
10151 dmalloc config.status 5.5.2
10152 configured by $0, generated by GNU Autoconf 2.59,
10153 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10154
10155 Copyright (C) 2003 Free Software Foundation, Inc.
10156 This config.status script is free software; the Free Software Foundation
10157 gives unlimited permission to copy, distribute and modify it."
10158 srcdir=$srcdir
10159 INSTALL="$INSTALL"
10160 _ACEOF
10161
10162 cat >>$CONFIG_STATUS <<\_ACEOF
10163 # If no file are specified by the user, then we need to provide default
10164 # value. By we need to know if files were specified by the user.
10165 ac_need_defaults=:
10166 while test $# != 0
10167 do
10168 case $1 in
10169 --*=*)
10170 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10171 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10172 ac_shift=:
10173 ;;
10174 -*)
10175 ac_option=$1
10176 ac_optarg=$2
10177 ac_shift=shift
10178 ;;
10179 *) # This is not an option, so the user has probably given explicit
10180 # arguments.
10181 ac_option=$1
10182 ac_need_defaults=false;;
10183 esac
10184
10185 case $ac_option in
10186 # Handling of the options.
10187 _ACEOF
10188 cat >>$CONFIG_STATUS <<\_ACEOF
10189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10190 ac_cs_recheck=: ;;
10191 --version | --vers* | -V )
10192 echo "$ac_cs_version"; exit 0 ;;
10193 --he | --h)
10194 # Conflict between --help and --header
10195 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10196 Try \`$0 --help' for more information." >&5
10197 echo "$as_me: error: ambiguous option: $1
10198 Try \`$0 --help' for more information." >&2;}
10199 { (exit 1); exit 1; }; };;
10200 --help | --hel | -h )
10201 echo "$ac_cs_usage"; exit 0 ;;
10202 --debug | --d* | -d )
10203 debug=: ;;
10204 --file | --fil | --fi | --f )
10205 $ac_shift
10206 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10207 ac_need_defaults=false;;
10208 --header | --heade | --head | --hea )
10209 $ac_shift
10210 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10211 ac_need_defaults=false;;
10212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10213 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10214 ac_cs_silent=: ;;
10215
10216 # This is an error.
10217 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10218 Try \`$0 --help' for more information." >&5
10219 echo "$as_me: error: unrecognized option: $1
10220 Try \`$0 --help' for more information." >&2;}
10221 { (exit 1); exit 1; }; } ;;
10222
10223 *) ac_config_targets="$ac_config_targets $1" ;;
10224
10225 esac
10226 shift
10227 done
10228
10229 ac_configure_extra_args=
10230
10231 if $ac_cs_silent; then
10232 exec 6>/dev/null
10233 ac_configure_extra_args="$ac_configure_extra_args --silent"
10234 fi
10235
10236 _ACEOF
10237 cat >>$CONFIG_STATUS <<_ACEOF
10238 if \$ac_cs_recheck; then
10239 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10240 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10241 fi
10242
10243 _ACEOF
10244
10245 cat >>$CONFIG_STATUS <<_ACEOF
10246 #
10247 # INIT-COMMANDS section.
10248 #
10249
10250
10251 # initialization commands
10252 ac_cv_c_const=$ac_cv_c_const
10253 ac_cv_strdup_macro=$ac_cv_strdup_macro
10254 ac_cv_type_size_t=$ac_cv_type_size_t
10255 ac_cv_header_stdarg_h=$ac_cv_header_stdarg_h
10256
10257
10258 _ACEOF
10259
10260
10261
10262 cat >>$CONFIG_STATUS <<\_ACEOF
10263 for ac_config_target in $ac_config_targets
10264 do
10265 case "$ac_config_target" in
10266 # Handling of arguments.
10267 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10268 "dmalloc.h.2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dmalloc.h.2" ;;
10269 "settings.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS settings.h" ;;
10270 "conf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS conf.h" ;;
10271 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10272 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10273 { (exit 1); exit 1; }; };;
10274 esac
10275 done
10276
10277 # If the user did not use the arguments to specify the items to instantiate,
10278 # then the envvar interface is used. Set only those that are not.
10279 # We use the long form for the default assignment because of an extremely
10280 # bizarre bug on SunOS 4.1.3.
10281 if $ac_need_defaults; then
10282 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10283 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10284 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10285 fi
10286
10287 # Have a temporary directory for convenience. Make it in the build tree
10288 # simply because there is no reason to put it here, and in addition,
10289 # creating and moving files from /tmp can sometimes cause problems.
10290 # Create a temporary directory, and hook for its removal unless debugging.
10291 $debug ||
10292 {
10293 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10294 trap '{ (exit 1); exit 1; }' 1 2 13 15
10295 }
10296
10297 # Create a (secure) tmp directory for tmp files.
10298
10299 {
10300 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10301 test -n "$tmp" && test -d "$tmp"
10302 } ||
10303 {
10304 tmp=./confstat$$-$RANDOM
10305 (umask 077 && mkdir $tmp)
10306 } ||
10307 {
10308 echo "$me: cannot create a temporary directory in ." >&2
10309 { (exit 1); exit 1; }
10310 }
10311
10312 _ACEOF
10313
10314 cat >>$CONFIG_STATUS <<_ACEOF
10315
10316 #
10317 # CONFIG_FILES section.
10318 #
10319
10320 # No need to generate the scripts if there are no CONFIG_FILES.
10321 # This happens for instance when ./config.status config.h
10322 if test -n "\$CONFIG_FILES"; then
10323 # Protect against being on the right side of a sed subst in config.status.
10324 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10325 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10326 s,@SHELL@,$SHELL,;t t
10327 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10328 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10329 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10330 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10331 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10332 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10333 s,@exec_prefix@,$exec_prefix,;t t
10334 s,@prefix@,$prefix,;t t
10335 s,@program_transform_name@,$program_transform_name,;t t
10336 s,@bindir@,$bindir,;t t
10337 s,@sbindir@,$sbindir,;t t
10338 s,@libexecdir@,$libexecdir,;t t
10339 s,@datadir@,$datadir,;t t
10340 s,@sysconfdir@,$sysconfdir,;t t
10341 s,@sharedstatedir@,$sharedstatedir,;t t
10342 s,@localstatedir@,$localstatedir,;t t
10343 s,@libdir@,$libdir,;t t
10344 s,@includedir@,$includedir,;t t
10345 s,@oldincludedir@,$oldincludedir,;t t
10346 s,@infodir@,$infodir,;t t
10347 s,@mandir@,$mandir,;t t
10348 s,@build_alias@,$build_alias,;t t
10349 s,@host_alias@,$host_alias,;t t
10350 s,@target_alias@,$target_alias,;t t
10351 s,@DEFS@,$DEFS,;t t
10352 s,@ECHO_C@,$ECHO_C,;t t
10353 s,@ECHO_N@,$ECHO_N,;t t
10354 s,@ECHO_T@,$ECHO_T,;t t
10355 s,@LIBS@,$LIBS,;t t
10356 s,@CC@,$CC,;t t
10357 s,@CFLAGS@,$CFLAGS,;t t
10358 s,@LDFLAGS@,$LDFLAGS,;t t
10359 s,@CPPFLAGS@,$CPPFLAGS,;t t
10360 s,@ac_ct_CC@,$ac_ct_CC,;t t
10361 s,@EXEEXT@,$EXEEXT,;t t
10362 s,@OBJEXT@,$OBJEXT,;t t
10363 s,@CXX@,$CXX,;t t
10364 s,@CXXFLAGS@,$CXXFLAGS,;t t
10365 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10366 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10367 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10368 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10369 s,@RANLIB@,$RANLIB,;t t
10370 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10371 s,@CPP@,$CPP,;t t
10372 s,@EGREP@,$EGREP,;t t
10373 s,@HAVE_STDARG_H@,$HAVE_STDARG_H,;t t
10374 s,@HAVE_STDLIB_H@,$HAVE_STDLIB_H,;t t
10375 s,@HAVE_STRING_H@,$HAVE_STRING_H,;t t
10376 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
10377 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
10378 s,@HAVE_SYS_MMAN_H@,$HAVE_SYS_MMAN_H,;t t
10379 s,@shlibdir@,$shlibdir,;t t
10380 s,@shlinkargs@,$shlinkargs,;t t
10381 s,@shlibext@,$shlibext,;t t
10382 s,@CXX_ON@,$CXX_ON,;t t
10383 s,@CXX_OFF@,$CXX_OFF,;t t
10384 s,@TH_ON@,$TH_ON,;t t
10385 s,@TH_OFF@,$TH_OFF,;t t
10386 s,@SL_ON@,$SL_ON,;t t
10387 s,@SL_OFF@,$SL_OFF,;t t
10388 s,@HAVE_SIGNAL_H@,$HAVE_SIGNAL_H,;t t
10389 s,@HAVE_SYS_CYGWIN_H@,$HAVE_SYS_CYGWIN_H,;t t
10390 s,@HAVE_W32API_WINDEF_H@,$HAVE_W32API_WINDEF_H,;t t
10391 s,@HAVE_W32API_WINBASE_H@,$HAVE_W32API_WINBASE_H,;t t
10392 s,@HAVE_PTHREAD_H@,$HAVE_PTHREAD_H,;t t
10393 s,@HAVE_PTHREADS_H@,$HAVE_PTHREADS_H,;t t
10394 s,@LIBOBJS@,$LIBOBJS,;t t
10395 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10396 CEOF
10397
10398 _ACEOF
10399
10400 cat >>$CONFIG_STATUS <<\_ACEOF
10401 # Split the substitutions into bite-sized pieces for seds with
10402 # small command number limits, like on Digital OSF/1 and HP-UX.
10403 ac_max_sed_lines=48
10404 ac_sed_frag=1 # Number of current file.
10405 ac_beg=1 # First line for current file.
10406 ac_end=$ac_max_sed_lines # Line after last line for current file.
10407 ac_more_lines=:
10408 ac_sed_cmds=
10409 while $ac_more_lines; do
10410 if test $ac_beg -gt 1; then
10411 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10412 else
10413 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10414 fi
10415 if test ! -s $tmp/subs.frag; then
10416 ac_more_lines=false
10417 else
10418 # The purpose of the label and of the branching condition is to
10419 # speed up the sed processing (if there are no `@' at all, there
10420 # is no need to browse any of the substitutions).
10421 # These are the two extra sed commands mentioned above.
10422 (echo ':t
10423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10424 if test -z "$ac_sed_cmds"; then
10425 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10426 else
10427 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10428 fi
10429 ac_sed_frag=`expr $ac_sed_frag + 1`
10430 ac_beg=$ac_end
10431 ac_end=`expr $ac_end + $ac_max_sed_lines`
10432 fi
10433 done
10434 if test -z "$ac_sed_cmds"; then
10435 ac_sed_cmds=cat
10436 fi
10437 fi # test -n "$CONFIG_FILES"
10438
10439 _ACEOF
10440 cat >>$CONFIG_STATUS <<\_ACEOF
10441 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10442 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10443 case $ac_file in
10444 - | *:- | *:-:* ) # input from stdin
10445 cat >$tmp/stdin
10446 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10448 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10450 * ) ac_file_in=$ac_file.in ;;
10451 esac
10452
10453 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10454 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10455 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10456 X"$ac_file" : 'X\(//\)[^/]' \| \
10457 X"$ac_file" : 'X\(//\)$' \| \
10458 X"$ac_file" : 'X\(/\)' \| \
10459 . : '\(.\)' 2>/dev/null ||
10460 echo X"$ac_file" |
10461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10463 /^X\(\/\/\)$/{ s//\1/; q; }
10464 /^X\(\/\).*/{ s//\1/; q; }
10465 s/.*/./; q'`
10466 { if $as_mkdir_p; then
10467 mkdir -p "$ac_dir"
10468 else
10469 as_dir="$ac_dir"
10470 as_dirs=
10471 while test ! -d "$as_dir"; do
10472 as_dirs="$as_dir $as_dirs"
10473 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10475 X"$as_dir" : 'X\(//\)[^/]' \| \
10476 X"$as_dir" : 'X\(//\)$' \| \
10477 X"$as_dir" : 'X\(/\)' \| \
10478 . : '\(.\)' 2>/dev/null ||
10479 echo X"$as_dir" |
10480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10482 /^X\(\/\/\)$/{ s//\1/; q; }
10483 /^X\(\/\).*/{ s//\1/; q; }
10484 s/.*/./; q'`
10485 done
10486 test ! -n "$as_dirs" || mkdir $as_dirs
10487 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10488 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10489 { (exit 1); exit 1; }; }; }
10490
10491 ac_builddir=.
10492
10493 if test "$ac_dir" != .; then
10494 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10495 # A "../" for each directory in $ac_dir_suffix.
10496 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10497 else
10498 ac_dir_suffix= ac_top_builddir=
10499 fi
10500
10501 case $srcdir in
10502 .) # No --srcdir option. We are building in place.
10503 ac_srcdir=.
10504 if test -z "$ac_top_builddir"; then
10505 ac_top_srcdir=.
10506 else
10507 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10508 fi ;;
10509 [\\/]* | ?:[\\/]* ) # Absolute path.
10510 ac_srcdir=$srcdir$ac_dir_suffix;
10511 ac_top_srcdir=$srcdir ;;
10512 *) # Relative path.
10513 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10514 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10515 esac
10516
10517 # Do not use `cd foo && pwd` to compute absolute paths, because
10518 # the directories may not exist.
10519 case `pwd` in
10520 .) ac_abs_builddir="$ac_dir";;
10521 *)
10522 case "$ac_dir" in
10523 .) ac_abs_builddir=`pwd`;;
10524 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10525 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10526 esac;;
10527 esac
10528 case $ac_abs_builddir in
10529 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10530 *)
10531 case ${ac_top_builddir}. in
10532 .) ac_abs_top_builddir=$ac_abs_builddir;;
10533 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10534 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10535 esac;;
10536 esac
10537 case $ac_abs_builddir in
10538 .) ac_abs_srcdir=$ac_srcdir;;
10539 *)
10540 case $ac_srcdir in
10541 .) ac_abs_srcdir=$ac_abs_builddir;;
10542 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10543 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10544 esac;;
10545 esac
10546 case $ac_abs_builddir in
10547 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10548 *)
10549 case $ac_top_srcdir in
10550 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10551 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10552 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10553 esac;;
10554 esac
10555
10556
10557 case $INSTALL in
10558 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10559 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10560 esac
10561
10562 if test x"$ac_file" != x-; then
10563 { echo "$as_me:$LINENO: creating $ac_file" >&5
10564 echo "$as_me: creating $ac_file" >&6;}
10565 rm -f "$ac_file"
10566 fi
10567 # Let's still pretend it is `configure' which instantiates (i.e., don't
10568 # use $as_me), people would be surprised to read:
10569 # /* config.h. Generated by config.status. */
10570 if test x"$ac_file" = x-; then
10571 configure_input=
10572 else
10573 configure_input="$ac_file. "
10574 fi
10575 configure_input=$configure_input"Generated from `echo $ac_file_in |
10576 sed 's,.*/,,'` by configure."
10577
10578 # First look for the input files in the build tree, otherwise in the
10579 # src tree.
10580 ac_file_inputs=`IFS=:
10581 for f in $ac_file_in; do
10582 case $f in
10583 -) echo $tmp/stdin ;;
10584 [\\/$]*)
10585 # Absolute (can't be DOS-style, as IFS=:)
10586 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10587 echo "$as_me: error: cannot find input file: $f" >&2;}
10588 { (exit 1); exit 1; }; }
10589 echo "$f";;
10590 *) # Relative
10591 if test -f "$f"; then
10592 # Build tree
10593 echo "$f"
10594 elif test -f "$srcdir/$f"; then
10595 # Source tree
10596 echo "$srcdir/$f"
10597 else
10598 # /dev/null tree
10599 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10600 echo "$as_me: error: cannot find input file: $f" >&2;}
10601 { (exit 1); exit 1; }; }
10602 fi;;
10603 esac
10604 done` || { (exit 1); exit 1; }
10605 _ACEOF
10606 cat >>$CONFIG_STATUS <<_ACEOF
10607 sed "$ac_vpsub
10608 $extrasub
10609 _ACEOF
10610 cat >>$CONFIG_STATUS <<\_ACEOF
10611 :t
10612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10613 s,@configure_input@,$configure_input,;t t
10614 s,@srcdir@,$ac_srcdir,;t t
10615 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10616 s,@top_srcdir@,$ac_top_srcdir,;t t
10617 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10618 s,@builddir@,$ac_builddir,;t t
10619 s,@abs_builddir@,$ac_abs_builddir,;t t
10620 s,@top_builddir@,$ac_top_builddir,;t t
10621 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10622 s,@INSTALL@,$ac_INSTALL,;t t
10623 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10624 rm -f $tmp/stdin
10625 if test x"$ac_file" != x-; then
10626 mv $tmp/out $ac_file
10627 else
10628 cat $tmp/out
10629 rm -f $tmp/out
10630 fi
10631
10632 done
10633 _ACEOF
10634 cat >>$CONFIG_STATUS <<\_ACEOF
10635
10636 #
10637 # CONFIG_HEADER section.
10638 #
10639
10640 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10641 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10642 #
10643 # ac_d sets the value in "#define NAME VALUE" lines.
10644 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10645 ac_dB='[ ].*$,\1#\2'
10646 ac_dC=' '
10647 ac_dD=',;t'
10648 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10649 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10650 ac_uB='$,\1#\2define\3'
10651 ac_uC=' '
10652 ac_uD=',;t'
10653
10654 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10655 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10656 case $ac_file in
10657 - | *:- | *:-:* ) # input from stdin
10658 cat >$tmp/stdin
10659 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10660 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10661 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10662 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10663 * ) ac_file_in=$ac_file.in ;;
10664 esac
10665
10666 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10667 echo "$as_me: creating $ac_file" >&6;}
10668
10669 # First look for the input files in the build tree, otherwise in the
10670 # src tree.
10671 ac_file_inputs=`IFS=:
10672 for f in $ac_file_in; do
10673 case $f in
10674 -) echo $tmp/stdin ;;
10675 [\\/$]*)
10676 # Absolute (can't be DOS-style, as IFS=:)
10677 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10678 echo "$as_me: error: cannot find input file: $f" >&2;}
10679 { (exit 1); exit 1; }; }
10680 # Do quote $f, to prevent DOS paths from being IFS'd.
10681 echo "$f";;
10682 *) # Relative
10683 if test -f "$f"; then
10684 # Build tree
10685 echo "$f"
10686 elif test -f "$srcdir/$f"; then
10687 # Source tree
10688 echo "$srcdir/$f"
10689 else
10690 # /dev/null tree
10691 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10692 echo "$as_me: error: cannot find input file: $f" >&2;}
10693 { (exit 1); exit 1; }; }
10694 fi;;
10695 esac
10696 done` || { (exit 1); exit 1; }
10697 # Remove the trailing spaces.
10698 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10699
10700 _ACEOF
10701
10702 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10703 # `conftest.undefs', that substitutes the proper values into
10704 # config.h.in to produce config.h. The first handles `#define'
10705 # templates, and the second `#undef' templates.
10706 # And first: Protect against being on the right side of a sed subst in
10707 # config.status. Protect against being in an unquoted here document
10708 # in config.status.
10709 rm -f conftest.defines conftest.undefs
10710 # Using a here document instead of a string reduces the quoting nightmare.
10711 # Putting comments in sed scripts is not portable.
10712 #
10713 # `end' is used to avoid that the second main sed command (meant for
10714 # 0-ary CPP macros) applies to n-ary macro definitions.
10715 # See the Autoconf documentation for `clear'.
10716 cat >confdef2sed.sed <<\_ACEOF
10717 s/[\\&,]/\\&/g
10718 s,[\\$`],\\&,g
10719 t clear
10720 : clear
10721 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10722 t end
10723 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10724 : end
10725 _ACEOF
10726 # If some macros were called several times there might be several times
10727 # the same #defines, which is useless. Nevertheless, we may not want to
10728 # sort them, since we want the *last* AC-DEFINE to be honored.
10729 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10730 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10731 rm -f confdef2sed.sed
10732
10733 # This sed command replaces #undef with comments. This is necessary, for
10734 # example, in the case of _POSIX_SOURCE, which is predefined and required
10735 # on some systems where configure will not decide to define it.
10736 cat >>conftest.undefs <<\_ACEOF
10737 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10738 _ACEOF
10739
10740 # Break up conftest.defines because some shells have a limit on the size
10741 # of here documents, and old seds have small limits too (100 cmds).
10742 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10743 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10744 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10745 echo ' :' >>$CONFIG_STATUS
10746 rm -f conftest.tail
10747 while grep . conftest.defines >/dev/null
10748 do
10749 # Write a limited-size here document to $tmp/defines.sed.
10750 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10751 # Speed up: don't consider the non `#define' lines.
10752 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10753 # Work around the forget-to-reset-the-flag bug.
10754 echo 't clr' >>$CONFIG_STATUS
10755 echo ': clr' >>$CONFIG_STATUS
10756 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10757 echo 'CEOF
10758 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10759 rm -f $tmp/in
10760 mv $tmp/out $tmp/in
10761 ' >>$CONFIG_STATUS
10762 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10763 rm -f conftest.defines
10764 mv conftest.tail conftest.defines
10765 done
10766 rm -f conftest.defines
10767 echo ' fi # grep' >>$CONFIG_STATUS
10768 echo >>$CONFIG_STATUS
10769
10770 # Break up conftest.undefs because some shells have a limit on the size
10771 # of here documents, and old seds have small limits too (100 cmds).
10772 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10773 rm -f conftest.tail
10774 while grep . conftest.undefs >/dev/null
10775 do
10776 # Write a limited-size here document to $tmp/undefs.sed.
10777 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10778 # Speed up: don't consider the non `#undef'
10779 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10780 # Work around the forget-to-reset-the-flag bug.
10781 echo 't clr' >>$CONFIG_STATUS
10782 echo ': clr' >>$CONFIG_STATUS
10783 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10784 echo 'CEOF
10785 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10786 rm -f $tmp/in
10787 mv $tmp/out $tmp/in
10788 ' >>$CONFIG_STATUS
10789 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10790 rm -f conftest.undefs
10791 mv conftest.tail conftest.undefs
10792 done
10793 rm -f conftest.undefs
10794
10795 cat >>$CONFIG_STATUS <<\_ACEOF
10796 # Let's still pretend it is `configure' which instantiates (i.e., don't
10797 # use $as_me), people would be surprised to read:
10798 # /* config.h. Generated by config.status. */
10799 if test x"$ac_file" = x-; then
10800 echo "/* Generated by configure. */" >$tmp/config.h
10801 else
10802 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10803 fi
10804 cat $tmp/in >>$tmp/config.h
10805 rm -f $tmp/in
10806 if test x"$ac_file" != x-; then
10807 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10808 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10809 echo "$as_me: $ac_file is unchanged" >&6;}
10810 else
10811 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10812 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10813 X"$ac_file" : 'X\(//\)[^/]' \| \
10814 X"$ac_file" : 'X\(//\)$' \| \
10815 X"$ac_file" : 'X\(/\)' \| \
10816 . : '\(.\)' 2>/dev/null ||
10817 echo X"$ac_file" |
10818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10819 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10820 /^X\(\/\/\)$/{ s//\1/; q; }
10821 /^X\(\/\).*/{ s//\1/; q; }
10822 s/.*/./; q'`
10823 { if $as_mkdir_p; then
10824 mkdir -p "$ac_dir"
10825 else
10826 as_dir="$ac_dir"
10827 as_dirs=
10828 while test ! -d "$as_dir"; do
10829 as_dirs="$as_dir $as_dirs"
10830 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10832 X"$as_dir" : 'X\(//\)[^/]' \| \
10833 X"$as_dir" : 'X\(//\)$' \| \
10834 X"$as_dir" : 'X\(/\)' \| \
10835 . : '\(.\)' 2>/dev/null ||
10836 echo X"$as_dir" |
10837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10838 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10839 /^X\(\/\/\)$/{ s//\1/; q; }
10840 /^X\(\/\).*/{ s//\1/; q; }
10841 s/.*/./; q'`
10842 done
10843 test ! -n "$as_dirs" || mkdir $as_dirs
10844 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10845 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10846 { (exit 1); exit 1; }; }; }
10847
10848 rm -f $ac_file
10849 mv $tmp/config.h $ac_file
10850 fi
10851 else
10852 cat $tmp/config.h
10853 rm -f $tmp/config.h
10854 fi
10855 done
10856 _ACEOF
10857 cat >>$CONFIG_STATUS <<\_ACEOF
10858
10859 #
10860 # CONFIG_COMMANDS section.
10861 #
10862 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10863 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10864 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10865 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10866 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10867 X"$ac_dest" : 'X\(//\)[^/]' \| \
10868 X"$ac_dest" : 'X\(//\)$' \| \
10869 X"$ac_dest" : 'X\(/\)' \| \
10870 . : '\(.\)' 2>/dev/null ||
10871 echo X"$ac_dest" |
10872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10874 /^X\(\/\/\)$/{ s//\1/; q; }
10875 /^X\(\/\).*/{ s//\1/; q; }
10876 s/.*/./; q'`
10877 { if $as_mkdir_p; then
10878 mkdir -p "$ac_dir"
10879 else
10880 as_dir="$ac_dir"
10881 as_dirs=
10882 while test ! -d "$as_dir"; do
10883 as_dirs="$as_dir $as_dirs"
10884 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10886 X"$as_dir" : 'X\(//\)[^/]' \| \
10887 X"$as_dir" : 'X\(//\)$' \| \
10888 X"$as_dir" : 'X\(/\)' \| \
10889 . : '\(.\)' 2>/dev/null ||
10890 echo X"$as_dir" |
10891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10893 /^X\(\/\/\)$/{ s//\1/; q; }
10894 /^X\(\/\).*/{ s//\1/; q; }
10895 s/.*/./; q'`
10896 done
10897 test ! -n "$as_dirs" || mkdir $as_dirs
10898 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10899 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10900 { (exit 1); exit 1; }; }; }
10901
10902 ac_builddir=.
10903
10904 if test "$ac_dir" != .; then
10905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10906 # A "../" for each directory in $ac_dir_suffix.
10907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10908 else
10909 ac_dir_suffix= ac_top_builddir=
10910 fi
10911
10912 case $srcdir in
10913 .) # No --srcdir option. We are building in place.
10914 ac_srcdir=.
10915 if test -z "$ac_top_builddir"; then
10916 ac_top_srcdir=.
10917 else
10918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10919 fi ;;
10920 [\\/]* | ?:[\\/]* ) # Absolute path.
10921 ac_srcdir=$srcdir$ac_dir_suffix;
10922 ac_top_srcdir=$srcdir ;;
10923 *) # Relative path.
10924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10926 esac
10927
10928 # Do not use `cd foo && pwd` to compute absolute paths, because
10929 # the directories may not exist.
10930 case `pwd` in
10931 .) ac_abs_builddir="$ac_dir";;
10932 *)
10933 case "$ac_dir" in
10934 .) ac_abs_builddir=`pwd`;;
10935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10937 esac;;
10938 esac
10939 case $ac_abs_builddir in
10940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10941 *)
10942 case ${ac_top_builddir}. in
10943 .) ac_abs_top_builddir=$ac_abs_builddir;;
10944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10946 esac;;
10947 esac
10948 case $ac_abs_builddir in
10949 .) ac_abs_srcdir=$ac_srcdir;;
10950 *)
10951 case $ac_srcdir in
10952 .) ac_abs_srcdir=$ac_abs_builddir;;
10953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10955 esac;;
10956 esac
10957 case $ac_abs_builddir in
10958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10959 *)
10960 case $ac_top_srcdir in
10961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10964 esac;;
10965 esac
10966
10967
10968 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10969 echo "$as_me: executing $ac_dest commands" >&6;}
10970 case $ac_dest in
10971 dmalloc.h.2 )
10972 newfile=dmalloc.h.2
10973 rm -f $newfile.t
10974 echo '/* this is dmalloc.h.2 */' > $newfile.t
10975 echo '/* produced by configure, inserted into dmalloc.h */' >> $newfile.t
10976 echo '' >> $newfile.t
10977
10978 if test "$ac_cv_c_const" = "yes"; then
10979 echo '/* const is available */' >> $newfile.t
10980 else
10981 echo '/* const is not available */' >> $newfile.t
10982 echo '#ifndef const' >> $newfile.t
10983 echo '#define const' >> $newfile.t
10984 echo '#endif' >> $newfile.t
10985 fi
10986
10987 if test "$ac_cv_strdup_macro" = "yes"; then
10988 echo '/* strdup is a macro */' >> $newfile.t
10989 echo '#define DMALLOC_STRDUP_MACRO' >> $newfile.t
10990 else
10991 echo '/* strdup is not a macro */' >> $newfile.t
10992 echo '#undef DMALLOC_STRDUP_MACRO' >> $newfile.t
10993 fi
10994 echo '' >> $newfile.t
10995
10996 echo '/*' >> $newfile.t
10997 echo ' * the definition of DMALLOC_SIZE' >> $newfile.t
10998 echo ' *' >> $newfile.t
10999 echo ' * NOTE: some architectures have malloc, realloc, etc.' >> $newfile.t
11000 echo ' * using unsigned instead of unsigned long. You may' >> $newfile.t
11001 echo ' * have to edit this by hand to fix any compilation' >> $newfile.t
11002 echo ' * warnings or errors.' >> $newfile.t
11003 echo ' */' >> $newfile.t
11004 if test "$ac_cv_type_size_t" = "yes"; then
11005 echo "#include <sys/types.h>" >> $newfile.t
11006 echo "#define DMALLOC_SIZE size_t" >> $newfile.t
11007 else
11008 echo "/* no include file needed */" >> $newfile.t
11009 echo "#define DMALLOC_SIZE unsigned long" >> $newfile.t
11010 fi
11011 echo '' >> $newfile.t
11012 echo '/*' >> $newfile.t
11013 echo ' * We use stdarg.h for the dmalloc_message and' >> $newfile.t
11014 echo ' * dmalloc_vmessage functions.' >> $newfile.t
11015 echo ' */' >> $newfile.t
11016 if test "$ac_cv_header_stdarg_h" = "yes"; then
11017 echo "#include <stdarg.h>" >> $newfile.t
11018 echo "#define DMALLOC_STDARG 1" >> $newfile.t
11019 else
11020 echo "/* no stdarg.h available */" >> $newfile.t
11021 echo "#define DMALLOC_STDARG 0" >> $newfile.t
11022 fi
11023 echo '' >> $newfile.t
11024 if cmp -s $newfile $newfile.t 2>/dev/null; then
11025 { echo "$as_me:$LINENO: $newfile is unchanged" >&5
11026 echo "$as_me: $newfile is unchanged" >&6;}
11027 rm -f $newfile.t
11028 else
11029 rm -f $newfile
11030 mv $newfile.t $newfile
11031 fi
11032 ;;
11033 settings.h )
11034 newfile=settings.h
11035 rm -f $newfile.t
11036 echo '/*' > $newfile.t
11037 echo ' * WARNING: this file was produced from settings.dist' >> $newfile.t
11038 echo ' * by the configure program. The configure script, when' >> $newfile.t
11039 echo ' * run again, will overwrite changed made here.' >> $newfile.t
11040 echo ' */' >> $newfile.t
11041 echo '' >> $newfile.t
11042 cat $srcdir/settings.dist >> $newfile.t
11043
11044 if cmp -s $newfile.t $newfile 2>/dev/null; then
11045 { echo "$as_me:$LINENO: $newfile is unchanged" >&5
11046 echo "$as_me: $newfile is unchanged" >&6;}
11047 rm -f $newfile.t
11048 else
11049 rm -f $newfile
11050 mv $newfile.t $newfile
11051 fi
11052 ;;
11053 esac
11054 done
11055 _ACEOF
11056
11057 cat >>$CONFIG_STATUS <<\_ACEOF
11058
11059 { (exit 0); exit 0; }
11060 _ACEOF
11061 chmod +x $CONFIG_STATUS
11062 ac_clean_files=$ac_clean_files_save
11063
11064
11065 # configure is writing to config.log, and then calls config.status.
11066 # config.status does its own redirection, appending to config.log.
11067 # Unfortunately, on DOS this fails, as config.log is still kept open
11068 # by configure, so config.status won't be able to write to it; its
11069 # output is simply discarded. So we exec the FD to /dev/null,
11070 # effectively closing config.log, so it can be properly (re)opened and
11071 # appended to by config.status. When coming back to configure, we
11072 # need to make the FD available again.
11073 if test "$no_create" != yes; then
11074 ac_cs_success=:
11075 ac_config_status_args=
11076 test "$silent" = yes &&
11077 ac_config_status_args="$ac_config_status_args --quiet"
11078 exec 5>/dev/null
11079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11080 exec 5>>config.log
11081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11082 # would make configure fail if this is the last instruction.
11083 $ac_cs_success || { (exit 1); exit 1; }
11084 fi
11085
11086
11087 { echo "$as_me:$LINENO: " >&5
11088 echo "$as_me: " >&6;}
11089 { echo "$as_me:$LINENO: Please check-out Makefile and conf.h to make sure that" >&5
11090 echo "$as_me: Please check-out Makefile and conf.h to make sure that" >&6;}
11091 { echo "$as_me:$LINENO: sane configuration values were a result." >&5
11092 echo "$as_me: sane configuration values were a result." >&6;}
11093 { echo "$as_me:$LINENO: " >&5
11094 echo "$as_me: " >&6;}
11095 { echo "$as_me:$LINENO: You may want to change values in settings.h before" >&5
11096 echo "$as_me: You may want to change values in settings.h before" >&6;}
11097 { echo "$as_me:$LINENO: running 'make'." >&5
11098 echo "$as_me: running 'make'." >&6;}
11099 { echo "$as_me:$LINENO: " >&5
11100 echo "$as_me: " >&6;}
11101 { echo "$as_me:$LINENO: To run the basic library tests, you can execute:" >&5
11102 echo "$as_me: To run the basic library tests, you can execute:" >&6;}
11103 { echo "$as_me:$LINENO: make light" >&5
11104 echo "$as_me: make light" >&6;}
11105 { echo "$as_me:$LINENO: or" >&5
11106 echo "$as_me: or" >&6;}
11107 { echo "$as_me:$LINENO: make heavy" >&5
11108 echo "$as_me: make heavy" >&6;}
11109 { echo "$as_me:$LINENO: " >&5
11110 echo "$as_me: " >&6;}