]> git.saurik.com Git - apple/launchd.git/blob - launchd/configure
launchd-152.tar.gz
[apple/launchd.git] / launchd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for launchd 1.0.
4 #
5 # Report bugs to <launchd-bug-reports@group.apple.com>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='launchd'
271 PACKAGE_TARNAME='launchd'
272 PACKAGE_VERSION='1.0'
273 PACKAGE_STRING='launchd 1.0'
274 PACKAGE_BUGREPORT='launchd-bug-reports@group.apple.com'
275
276 ac_unique_file="src/launchd.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE RANLIB ac_ct_RANLIB CPP EGREP ALLOCA LIBOBJS LIBS_ONLY_TRUE LIBS_ONLY_FALSE LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case $ac_option in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
396
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
405
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
438
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
587
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
600
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
627
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
631 ;;
632
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
643 *)
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 ;;
650
651 esac
652 done
653
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
674 do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727 else
728 ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
737 fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures launchd 1.0 to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
833
834 cat <<\_ACEOF
835
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of launchd 1.0:";;
846 esac
847 cat <<\_ACEOF
848
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-dependency-tracking Speeds up one-time builds
853 --enable-dependency-tracking Do not reject slow dependency extractors
854
855 Some influential environment variables:
856 CC C compiler command
857 CFLAGS C compiler flags
858 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
859 nonstandard directory <lib dir>
860 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
861 headers in a nonstandard directory <include dir>
862 CPP C preprocessor
863
864 Use these variables to override the choices made by `configure' or to help
865 it to find libraries and programs with nonstandard names/locations.
866
867 Report bugs to <launchd-bug-reports@group.apple.com>.
868 _ACEOF
869 fi
870
871 if test "$ac_init_help" = "recursive"; then
872 # If there are subdirs, report their specific --help.
873 ac_popdir=`pwd`
874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875 test -d $ac_dir || continue
876 ac_builddir=.
877
878 if test "$ac_dir" != .; then
879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880 # A "../" for each directory in $ac_dir_suffix.
881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
882 else
883 ac_dir_suffix= ac_top_builddir=
884 fi
885
886 case $srcdir in
887 .) # No --srcdir option. We are building in place.
888 ac_srcdir=.
889 if test -z "$ac_top_builddir"; then
890 ac_top_srcdir=.
891 else
892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893 fi ;;
894 [\\/]* | ?:[\\/]* ) # Absolute path.
895 ac_srcdir=$srcdir$ac_dir_suffix;
896 ac_top_srcdir=$srcdir ;;
897 *) # Relative path.
898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
900 esac
901
902 # Do not use `cd foo && pwd` to compute absolute paths, because
903 # the directories may not exist.
904 case `pwd` in
905 .) ac_abs_builddir="$ac_dir";;
906 *)
907 case "$ac_dir" in
908 .) ac_abs_builddir=`pwd`;;
909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
910 *) ac_abs_builddir=`pwd`/"$ac_dir";;
911 esac;;
912 esac
913 case $ac_abs_builddir in
914 .) ac_abs_top_builddir=${ac_top_builddir}.;;
915 *)
916 case ${ac_top_builddir}. in
917 .) ac_abs_top_builddir=$ac_abs_builddir;;
918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
920 esac;;
921 esac
922 case $ac_abs_builddir in
923 .) ac_abs_srcdir=$ac_srcdir;;
924 *)
925 case $ac_srcdir in
926 .) ac_abs_srcdir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_srcdir=$ac_top_srcdir;;
933 *)
934 case $ac_top_srcdir in
935 .) ac_abs_top_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
938 esac;;
939 esac
940
941 cd $ac_dir
942 # Check for guested configure; otherwise get Cygnus style configure.
943 if test -f $ac_srcdir/configure.gnu; then
944 echo
945 $SHELL $ac_srcdir/configure.gnu --help=recursive
946 elif test -f $ac_srcdir/configure; then
947 echo
948 $SHELL $ac_srcdir/configure --help=recursive
949 elif test -f $ac_srcdir/configure.ac ||
950 test -f $ac_srcdir/configure.in; then
951 echo
952 $ac_configure --help
953 else
954 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 fi
956 cd $ac_popdir
957 done
958 fi
959
960 test -n "$ac_init_help" && exit 0
961 if $ac_init_version; then
962 cat <<\_ACEOF
963 launchd configure 1.0
964 generated by GNU Autoconf 2.59
965
966 Copyright (C) 2003 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
969 _ACEOF
970 exit 0
971 fi
972 exec 5>config.log
973 cat >&5 <<_ACEOF
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
976
977 It was created by launchd $as_me 1.0, which was
978 generated by GNU Autoconf 2.59. Invocation command line was
979
980 $ $0 $@
981
982 _ACEOF
983 {
984 cat <<_ASUNAME
985 ## --------- ##
986 ## Platform. ##
987 ## --------- ##
988
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
994
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
997
998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1005
1006 _ASUNAME
1007
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 for as_dir in $PATH
1010 do
1011 IFS=$as_save_IFS
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1014 done
1015
1016 } >&5
1017
1018 cat >&5 <<_ACEOF
1019
1020
1021 ## ----------- ##
1022 ## Core tests. ##
1023 ## ----------- ##
1024
1025 _ACEOF
1026
1027
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_configure_args=
1034 ac_configure_args0=
1035 ac_configure_args1=
1036 ac_sep=
1037 ac_must_keep_next=false
1038 for ac_pass in 1 2
1039 do
1040 for ac_arg
1041 do
1042 case $ac_arg in
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 continue ;;
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 esac
1050 case $ac_pass in
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052 2)
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1056 else
1057 case $ac_arg in
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 esac
1065 ;;
1066 -* ) ac_must_keep_next=true ;;
1067 esac
1068 fi
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1071 ac_sep=" "
1072 ;;
1073 esac
1074 done
1075 done
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1086 {
1087 echo
1088
1089 cat <<\_ASBOX
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1093 _ASBOX
1094 echo
1095 # The following way of writing the cache mishandles newlines in values,
1096 {
1097 (set) 2>&1 |
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 *ac_space=\ *)
1100 sed -n \
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103 ;;
1104 *)
1105 sed -n \
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107 ;;
1108 esac;
1109 }
1110 echo
1111
1112 cat <<\_ASBOX
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1116 _ASBOX
1117 echo
1118 for ac_var in $ac_subst_vars
1119 do
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1122 done | sort
1123 echo
1124
1125 if test -n "$ac_subst_files"; then
1126 cat <<\_ASBOX
1127 ## ------------- ##
1128 ## Output files. ##
1129 ## ------------- ##
1130 _ASBOX
1131 echo
1132 for ac_var in $ac_subst_files
1133 do
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1136 done | sort
1137 echo
1138 fi
1139
1140 if test -s confdefs.h; then
1141 cat <<\_ASBOX
1142 ## ----------- ##
1143 ## confdefs.h. ##
1144 ## ----------- ##
1145 _ASBOX
1146 echo
1147 sed "/^$/d" confdefs.h | sort
1148 echo
1149 fi
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1153 } >&5
1154 rm -f core *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156 exit $exit_status
1157 ' 0
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160 done
1161 ac_signal=0
1162
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 echo >confdefs.h
1167
1168 # Predefined preprocessor variables.
1169
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1172 _ACEOF
1173
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 _ACEOF
1193
1194
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 else
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202 fi
1203 fi
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
1209 . "$ac_site_file"
1210 fi
1211 done
1212
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1219 case $cache_file in
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1222 esac
1223 fi
1224 else
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1227 >$cache_file
1228 fi
1229
1230 # Check that the precious variables saved in the cache have kept the same
1231 # value.
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1240 set,)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,set)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,);;
1249 *)
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254 echo "$as_me: former value: $ac_old_val" >&2;}
1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256 echo "$as_me: current value: $ac_new_val" >&2;}
1257 ac_cache_corrupted=:
1258 fi;;
1259 esac
1260 # Pass precious variables to config.status.
1261 if test "$ac_new_set" = set; then
1262 case $ac_new_val in
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 *) ac_arg=$ac_var=$ac_new_val ;;
1266 esac
1267 case " $ac_configure_args " in
1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270 esac
1271 fi
1272 done
1273 if $ac_cache_corrupted; then
1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 { (exit 1); exit 1; }; }
1279 fi
1280
1281 ac_ext=c
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314 am__api_version="1.6"
1315 ac_aux_dir=
1316 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1317 if test -f $ac_dir/install-sh; then
1318 ac_aux_dir=$ac_dir
1319 ac_install_sh="$ac_aux_dir/install-sh -c"
1320 break
1321 elif test -f $ac_dir/install.sh; then
1322 ac_aux_dir=$ac_dir
1323 ac_install_sh="$ac_aux_dir/install.sh -c"
1324 break
1325 elif test -f $ac_dir/shtool; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/shtool install -c"
1328 break
1329 fi
1330 done
1331 if test -z "$ac_aux_dir"; then
1332 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1333 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1334 { (exit 1); exit 1; }; }
1335 fi
1336 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1337 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1338 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1339
1340 # Find a good install program. We prefer a C program (faster),
1341 # so one script is as good as another. But avoid the broken or
1342 # incompatible versions:
1343 # SysV /etc/install, /usr/sbin/install
1344 # SunOS /usr/etc/install
1345 # IRIX /sbin/install
1346 # AIX /bin/install
1347 # AmigaOS /C/install, which installs bootblocks on floppy discs
1348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1351 # OS/2's system install, which has a completely different semantic
1352 # ./install, which can be erroneously created by make from ./install.sh.
1353 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1354 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1355 if test -z "$INSTALL"; then
1356 if test "${ac_cv_path_install+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360 for as_dir in $PATH
1361 do
1362 IFS=$as_save_IFS
1363 test -z "$as_dir" && as_dir=.
1364 # Account for people who put trailing slashes in PATH elements.
1365 case $as_dir/ in
1366 ./ | .// | /cC/* | \
1367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1368 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1369 /usr/ucb/* ) ;;
1370 *)
1371 # OSF1 and SCO ODT 3.0 have their own names for install.
1372 # Don't use installbsd from OSF since it installs stuff as root
1373 # by default.
1374 for ac_prog in ginstall scoinst install; do
1375 for ac_exec_ext in '' $ac_executable_extensions; do
1376 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1377 if test $ac_prog = install &&
1378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1379 # AIX install. It has an incompatible calling convention.
1380 :
1381 elif test $ac_prog = install &&
1382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383 # program-specific install script used by HP pwplus--don't use.
1384 :
1385 else
1386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1387 break 3
1388 fi
1389 fi
1390 done
1391 done
1392 ;;
1393 esac
1394 done
1395
1396
1397 fi
1398 if test "${ac_cv_path_install+set}" = set; then
1399 INSTALL=$ac_cv_path_install
1400 else
1401 # As a last resort, use the slow shell script. We don't cache a
1402 # path for INSTALL within a source directory, because that will
1403 # break other packages using the cache if that directory is
1404 # removed, or if the path is relative.
1405 INSTALL=$ac_install_sh
1406 fi
1407 fi
1408 echo "$as_me:$LINENO: result: $INSTALL" >&5
1409 echo "${ECHO_T}$INSTALL" >&6
1410
1411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1412 # It thinks the first close brace ends the variable substitution.
1413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1414
1415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1416
1417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1418
1419 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1420 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1421 # Just in case
1422 sleep 1
1423 echo timestamp > conftest.file
1424 # Do `set' in a subshell so we don't clobber the current shell's
1425 # arguments. Must try -L first in case configure is actually a
1426 # symlink; some systems play weird games with the mod time of symlinks
1427 # (eg FreeBSD returns the mod time of the symlink's containing
1428 # directory).
1429 if (
1430 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1431 if test "$*" = "X"; then
1432 # -L didn't work.
1433 set X `ls -t $srcdir/configure conftest.file`
1434 fi
1435 rm -f conftest.file
1436 if test "$*" != "X $srcdir/configure conftest.file" \
1437 && test "$*" != "X conftest.file $srcdir/configure"; then
1438
1439 # If neither matched, then we have a broken ls. This can happen
1440 # if, for instance, CONFIG_SHELL is bash and it inherits a
1441 # broken ls alias from the environment. This has actually
1442 # happened. Such a system could not be considered "sane".
1443 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1444 alias in your environment" >&5
1445 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1446 alias in your environment" >&2;}
1447 { (exit 1); exit 1; }; }
1448 fi
1449
1450 test "$2" = conftest.file
1451 )
1452 then
1453 # Ok.
1454 :
1455 else
1456 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1457 Check your system clock" >&5
1458 echo "$as_me: error: newly created file is older than distributed files!
1459 Check your system clock" >&2;}
1460 { (exit 1); exit 1; }; }
1461 fi
1462 echo "$as_me:$LINENO: result: yes" >&5
1463 echo "${ECHO_T}yes" >&6
1464 test "$program_prefix" != NONE &&
1465 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1466 # Use a double $ so make ignores it.
1467 test "$program_suffix" != NONE &&
1468 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1469 # Double any \ or $. echo might interpret backslashes.
1470 # By default was `s,x,x', remove it if useless.
1471 cat <<\_ACEOF >conftest.sed
1472 s/[\\$]/&&/g;s/;s,x,x,$//
1473 _ACEOF
1474 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1475 rm conftest.sed
1476
1477
1478 # expand $ac_aux_dir to an absolute path
1479 am_aux_dir=`cd $ac_aux_dir && pwd`
1480
1481 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1482 # Use eval to expand $SHELL
1483 if eval "$MISSING --run true"; then
1484 am_missing_run="$MISSING --run "
1485 else
1486 am_missing_run=
1487 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1488 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1489 fi
1490
1491 for ac_prog in gawk mawk nawk awk
1492 do
1493 # Extract the first word of "$ac_prog", so it can be a program name with args.
1494 set dummy $ac_prog; ac_word=$2
1495 echo "$as_me:$LINENO: checking for $ac_word" >&5
1496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497 if test "${ac_cv_prog_AWK+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500 if test -n "$AWK"; then
1501 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1502 else
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 for as_dir in $PATH
1505 do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_AWK="$ac_prog"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 break 2
1513 fi
1514 done
1515 done
1516
1517 fi
1518 fi
1519 AWK=$ac_cv_prog_AWK
1520 if test -n "$AWK"; then
1521 echo "$as_me:$LINENO: result: $AWK" >&5
1522 echo "${ECHO_T}$AWK" >&6
1523 else
1524 echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1526 fi
1527
1528 test -n "$AWK" && break
1529 done
1530
1531 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1532 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1533 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1534 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537 cat >conftest.make <<\_ACEOF
1538 all:
1539 @echo 'ac_maketemp="$(MAKE)"'
1540 _ACEOF
1541 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1542 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1543 if test -n "$ac_maketemp"; then
1544 eval ac_cv_prog_make_${ac_make}_set=yes
1545 else
1546 eval ac_cv_prog_make_${ac_make}_set=no
1547 fi
1548 rm -f conftest.make
1549 fi
1550 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1551 echo "$as_me:$LINENO: result: yes" >&5
1552 echo "${ECHO_T}yes" >&6
1553 SET_MAKE=
1554 else
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1557 SET_MAKE="MAKE=${MAKE-make}"
1558 fi
1559
1560 # test to see if srcdir already configured
1561 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1562 test -f $srcdir/config.status; then
1563 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1564 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1565 { (exit 1); exit 1; }; }
1566 fi
1567
1568 # Define the identity of the package.
1569 PACKAGE=launchd
1570 VERSION=1.0
1571
1572
1573 cat >>confdefs.h <<_ACEOF
1574 #define PACKAGE "$PACKAGE"
1575 _ACEOF
1576
1577
1578 cat >>confdefs.h <<_ACEOF
1579 #define VERSION "$VERSION"
1580 _ACEOF
1581
1582 # Some tools Automake needs.
1583
1584 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1585
1586
1587 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1588
1589
1590 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1591
1592
1593 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1594
1595
1596 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1597
1598
1599 AMTAR=${AMTAR-"${am_missing_run}tar"}
1600
1601 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1602
1603 # Installed binaries are usually stripped using `strip' when the user
1604 # run `make install-strip'. However `strip' might not be the right
1605 # tool to use in cross-compilation environments, therefore Automake
1606 # will honor the `STRIP' environment variable to overrule this program.
1607 if test "$cross_compiling" != no; then
1608 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}strip; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_STRIP+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616 if test -n "$STRIP"; then
1617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628 break 2
1629 fi
1630 done
1631 done
1632
1633 fi
1634 fi
1635 STRIP=$ac_cv_prog_STRIP
1636 if test -n "$STRIP"; then
1637 echo "$as_me:$LINENO: result: $STRIP" >&5
1638 echo "${ECHO_T}$STRIP" >&6
1639 else
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1642 fi
1643
1644 fi
1645 if test -z "$ac_cv_prog_STRIP"; then
1646 ac_ct_STRIP=$STRIP
1647 # Extract the first word of "strip", so it can be a program name with args.
1648 set dummy strip; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 if test -n "$ac_ct_STRIP"; then
1655 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_STRIP="strip"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 break 2
1667 fi
1668 done
1669 done
1670
1671 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1672 fi
1673 fi
1674 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1675 if test -n "$ac_ct_STRIP"; then
1676 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1677 echo "${ECHO_T}$ac_ct_STRIP" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 STRIP=$ac_ct_STRIP
1684 else
1685 STRIP="$ac_cv_prog_STRIP"
1686 fi
1687
1688 fi
1689 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1690
1691 # We need awk for the "check" target. The system "awk" is bad on
1692 # some platforms.
1693
1694
1695
1696 # Add the stamp file to the list of files AC keeps track of,
1697 # along with our hook.
1698 ac_config_headers="$ac_config_headers src/config.h"
1699
1700
1701
1702
1703 # Checks for programs.
1704 ac_ext=c
1705 ac_cpp='$CPP $CPPFLAGS'
1706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1709 if test -n "$ac_tool_prefix"; then
1710 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1711 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_CC+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717 if test -n "$CC"; then
1718 ac_cv_prog_CC="$CC" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1722 do
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1730 fi
1731 done
1732 done
1733
1734 fi
1735 fi
1736 CC=$ac_cv_prog_CC
1737 if test -n "$CC"; then
1738 echo "$as_me:$LINENO: result: $CC" >&5
1739 echo "${ECHO_T}$CC" >&6
1740 else
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1743 fi
1744
1745 fi
1746 if test -z "$ac_cv_prog_CC"; then
1747 ac_ct_CC=$CC
1748 # Extract the first word of "gcc", so it can be a program name with args.
1749 set dummy gcc; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755 if test -n "$ac_ct_CC"; then
1756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1757 else
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1760 do
1761 IFS=$as_save_IFS
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_ac_ct_CC="gcc"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767 break 2
1768 fi
1769 done
1770 done
1771
1772 fi
1773 fi
1774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1775 if test -n "$ac_ct_CC"; then
1776 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1777 echo "${ECHO_T}$ac_ct_CC" >&6
1778 else
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1781 fi
1782
1783 CC=$ac_ct_CC
1784 else
1785 CC="$ac_cv_prog_CC"
1786 fi
1787
1788 if test -z "$CC"; then
1789 if test -n "$ac_tool_prefix"; then
1790 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1791 set dummy ${ac_tool_prefix}cc; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_CC+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797 if test -n "$CC"; then
1798 ac_cv_prog_CC="$CC" # Let the user override the test.
1799 else
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 ac_cv_prog_CC="${ac_tool_prefix}cc"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 break 2
1810 fi
1811 done
1812 done
1813
1814 fi
1815 fi
1816 CC=$ac_cv_prog_CC
1817 if test -n "$CC"; then
1818 echo "$as_me:$LINENO: result: $CC" >&5
1819 echo "${ECHO_T}$CC" >&6
1820 else
1821 echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1823 fi
1824
1825 fi
1826 if test -z "$ac_cv_prog_CC"; then
1827 ac_ct_CC=$CC
1828 # Extract the first word of "cc", so it can be a program name with args.
1829 set dummy cc; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835 if test -n "$ac_ct_CC"; then
1836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1840 do
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_ac_ct_CC="cc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1848 fi
1849 done
1850 done
1851
1852 fi
1853 fi
1854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1855 if test -n "$ac_ct_CC"; then
1856 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1857 echo "${ECHO_T}$ac_ct_CC" >&6
1858 else
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1861 fi
1862
1863 CC=$ac_ct_CC
1864 else
1865 CC="$ac_cv_prog_CC"
1866 fi
1867
1868 fi
1869 if test -z "$CC"; then
1870 # Extract the first word of "cc", so it can be a program name with args.
1871 set dummy cc; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877 if test -n "$CC"; then
1878 ac_cv_prog_CC="$CC" # Let the user override the test.
1879 else
1880 ac_prog_rejected=no
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884 IFS=$as_save_IFS
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1889 ac_prog_rejected=yes
1890 continue
1891 fi
1892 ac_cv_prog_CC="cc"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 break 2
1895 fi
1896 done
1897 done
1898
1899 if test $ac_prog_rejected = yes; then
1900 # We found a bogon in the path, so make sure we never use it.
1901 set dummy $ac_cv_prog_CC
1902 shift
1903 if test $# != 0; then
1904 # We chose a different compiler from the bogus one.
1905 # However, it has the same basename, so the bogon will be chosen
1906 # first if we set CC to just the basename; use the full file name.
1907 shift
1908 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1909 fi
1910 fi
1911 fi
1912 fi
1913 CC=$ac_cv_prog_CC
1914 if test -n "$CC"; then
1915 echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6
1917 else
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1920 fi
1921
1922 fi
1923 if test -z "$CC"; then
1924 if test -n "$ac_tool_prefix"; then
1925 for ac_prog in cl
1926 do
1927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1936 else
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 break 2
1947 fi
1948 done
1949 done
1950
1951 fi
1952 fi
1953 CC=$ac_cv_prog_CC
1954 if test -n "$CC"; then
1955 echo "$as_me:$LINENO: result: $CC" >&5
1956 echo "${ECHO_T}$CC" >&6
1957 else
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 fi
1961
1962 test -n "$CC" && break
1963 done
1964 fi
1965 if test -z "$CC"; then
1966 ac_ct_CC=$CC
1967 for ac_prog in cl
1968 do
1969 # Extract the first word of "$ac_prog", so it can be a program name with args.
1970 set dummy $ac_prog; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976 if test -n "$ac_ct_CC"; then
1977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 ac_cv_prog_ac_ct_CC="$ac_prog"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 break 2
1989 fi
1990 done
1991 done
1992
1993 fi
1994 fi
1995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1996 if test -n "$ac_ct_CC"; then
1997 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1998 echo "${ECHO_T}$ac_ct_CC" >&6
1999 else
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004 test -n "$ac_ct_CC" && break
2005 done
2006
2007 CC=$ac_ct_CC
2008 fi
2009
2010 fi
2011
2012
2013 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: no acceptable C compiler found in \$PATH
2016 See \`config.log' for more details." >&2;}
2017 { (exit 1); exit 1; }; }
2018
2019 # Provide some information about the compiler.
2020 echo "$as_me:$LINENO:" \
2021 "checking for C compiler version" >&5
2022 ac_compiler=`set X $ac_compile; echo $2`
2023 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2024 (eval $ac_compiler --version </dev/null >&5) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }
2028 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2029 (eval $ac_compiler -v </dev/null >&5) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }
2033 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2034 (eval $ac_compiler -V </dev/null >&5) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }
2038
2039 cat >conftest.$ac_ext <<_ACEOF
2040 /* confdefs.h. */
2041 _ACEOF
2042 cat confdefs.h >>conftest.$ac_ext
2043 cat >>conftest.$ac_ext <<_ACEOF
2044 /* end confdefs.h. */
2045
2046 int
2047 main ()
2048 {
2049
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 ac_clean_files_save=$ac_clean_files
2055 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2056 # Try to create an executable without -o first, disregard a.out.
2057 # It will help us diagnose broken compilers, and finding out an intuition
2058 # of exeext.
2059 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2060 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2061 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2062 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2063 (eval $ac_link_default) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; then
2067 # Find the output, starting from the most likely. This scheme is
2068 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2069 # resort.
2070
2071 # Be careful to initialize this variable, since it used to be cached.
2072 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2073 ac_cv_exeext=
2074 # b.out is created by i960 compilers.
2075 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2076 do
2077 test -f "$ac_file" || continue
2078 case $ac_file in
2079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2080 ;;
2081 conftest.$ac_ext )
2082 # This is the source file.
2083 ;;
2084 [ab].out )
2085 # We found the default executable, but exeext='' is most
2086 # certainly right.
2087 break;;
2088 *.* )
2089 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2090 # FIXME: I believe we export ac_cv_exeext for Libtool,
2091 # but it would be cool to find out if it's true. Does anybody
2092 # maintain Libtool? --akim.
2093 export ac_cv_exeext
2094 break;;
2095 * )
2096 break;;
2097 esac
2098 done
2099 else
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: C compiler cannot create executables
2106 See \`config.log' for more details." >&2;}
2107 { (exit 77); exit 77; }; }
2108 fi
2109
2110 ac_exeext=$ac_cv_exeext
2111 echo "$as_me:$LINENO: result: $ac_file" >&5
2112 echo "${ECHO_T}$ac_file" >&6
2113
2114 # Check the compiler produces executables we can run. If not, either
2115 # the compiler is broken, or we cross compile.
2116 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2117 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2118 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2119 # If not cross compiling, check that we can run a simple program.
2120 if test "$cross_compiling" != yes; then
2121 if { ac_try='./$ac_file'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
2127 cross_compiling=no
2128 else
2129 if test "$cross_compiling" = maybe; then
2130 cross_compiling=yes
2131 else
2132 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2133 If you meant to cross compile, use \`--host'.
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: cannot run C compiled programs.
2136 If you meant to cross compile, use \`--host'.
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }
2139 fi
2140 fi
2141 fi
2142 echo "$as_me:$LINENO: result: yes" >&5
2143 echo "${ECHO_T}yes" >&6
2144
2145 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2146 ac_clean_files=$ac_clean_files_save
2147 # Check the compiler produces executables we can run. If not, either
2148 # the compiler is broken, or we cross compile.
2149 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2150 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2151 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2152 echo "${ECHO_T}$cross_compiling" >&6
2153
2154 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2155 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2157 (eval $ac_link) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2162 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2163 # work properly (i.e., refer to `conftest.exe'), while it won't with
2164 # `rm'.
2165 for ac_file in conftest.exe conftest conftest.*; do
2166 test -f "$ac_file" || continue
2167 case $ac_file in
2168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2169 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2170 export ac_cv_exeext
2171 break;;
2172 * ) break;;
2173 esac
2174 done
2175 else
2176 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2179 See \`config.log' for more details." >&2;}
2180 { (exit 1); exit 1; }; }
2181 fi
2182
2183 rm -f conftest$ac_cv_exeext
2184 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2185 echo "${ECHO_T}$ac_cv_exeext" >&6
2186
2187 rm -f conftest.$ac_ext
2188 EXEEXT=$ac_cv_exeext
2189 ac_exeext=$EXEEXT
2190 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2191 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2192 if test "${ac_cv_objext+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195 cat >conftest.$ac_ext <<_ACEOF
2196 /* confdefs.h. */
2197 _ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h. */
2201
2202 int
2203 main ()
2204 {
2205
2206 ;
2207 return 0;
2208 }
2209 _ACEOF
2210 rm -f conftest.o conftest.obj
2211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212 (eval $ac_compile) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; then
2216 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2217 case $ac_file in
2218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2219 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2220 break;;
2221 esac
2222 done
2223 else
2224 echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2226
2227 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2230 See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2232 fi
2233
2234 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2235 fi
2236 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2237 echo "${ECHO_T}$ac_cv_objext" >&6
2238 OBJEXT=$ac_cv_objext
2239 ac_objext=$OBJEXT
2240 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2241 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2242 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 cat >conftest.$ac_ext <<_ACEOF
2246 /* confdefs.h. */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2251
2252 int
2253 main ()
2254 {
2255 #ifndef __GNUC__
2256 choke me
2257 #endif
2258
2259 ;
2260 return 0;
2261 }
2262 _ACEOF
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>conftest.er1
2266 ac_status=$?
2267 grep -v '^ *+' conftest.er1 >conftest.err
2268 rm -f conftest.er1
2269 cat conftest.err >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); } &&
2272 { ac_try='test -z "$ac_c_werror_flag"
2273 || test ! -s conftest.err'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; } &&
2279 { ac_try='test -s conftest.$ac_objext'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; }; then
2285 ac_compiler_gnu=yes
2286 else
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 ac_compiler_gnu=no
2291 fi
2292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2294
2295 fi
2296 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2297 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2298 GCC=`test $ac_compiler_gnu = yes && echo yes`
2299 ac_test_CFLAGS=${CFLAGS+set}
2300 ac_save_CFLAGS=$CFLAGS
2301 CFLAGS="-g"
2302 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2303 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2304 if test "${ac_cv_prog_cc_g+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h. */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2313
2314 int
2315 main ()
2316 {
2317
2318 ;
2319 return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2325 ac_status=$?
2326 grep -v '^ *+' conftest.er1 >conftest.err
2327 rm -f conftest.er1
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 ac_cv_prog_cc_g=yes
2345 else
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 ac_cv_prog_cc_g=no
2350 fi
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 fi
2353 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2354 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2355 if test "$ac_test_CFLAGS" = set; then
2356 CFLAGS=$ac_save_CFLAGS
2357 elif test $ac_cv_prog_cc_g = yes; then
2358 if test "$GCC" = yes; then
2359 CFLAGS="-g -O2"
2360 else
2361 CFLAGS="-g"
2362 fi
2363 else
2364 if test "$GCC" = yes; then
2365 CFLAGS="-O2"
2366 else
2367 CFLAGS=
2368 fi
2369 fi
2370 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2371 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2372 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375 ac_cv_prog_cc_stdc=no
2376 ac_save_CC=$CC
2377 cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h. */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2383 #include <stdarg.h>
2384 #include <stdio.h>
2385 #include <sys/types.h>
2386 #include <sys/stat.h>
2387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2388 struct buf { int x; };
2389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2390 static char *e (p, i)
2391 char **p;
2392 int i;
2393 {
2394 return p[i];
2395 }
2396 static char *f (char * (*g) (char **, int), char **p, ...)
2397 {
2398 char *s;
2399 va_list v;
2400 va_start (v,p);
2401 s = g (p, va_arg (v,int));
2402 va_end (v);
2403 return s;
2404 }
2405
2406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2407 function prototypes and stuff, but not '\xHH' hex character constants.
2408 These don't provoke an error unfortunately, instead are silently treated
2409 as 'x'. The following induces an error, until -std1 is added to get
2410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2411 array size at least. It's necessary to write '\x00'==0 to get something
2412 that's true only with -std1. */
2413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2414
2415 int test (int i, double x);
2416 struct s1 {int (*f) (int a);};
2417 struct s2 {int (*f) (double a);};
2418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2419 int argc;
2420 char **argv;
2421 int
2422 main ()
2423 {
2424 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2425 ;
2426 return 0;
2427 }
2428 _ACEOF
2429 # Don't try gcc -ansi; that turns off useful extensions and
2430 # breaks some systems' header files.
2431 # AIX -qlanglvl=ansi
2432 # Ultrix and OSF/1 -std1
2433 # HP-UX 10.20 and later -Ae
2434 # HP-UX older versions -Aa -D_HPUX_SOURCE
2435 # SVR4 -Xc -D__EXTENSIONS__
2436 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2437 do
2438 CC="$ac_save_CC $ac_arg"
2439 rm -f conftest.$ac_objext
2440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441 (eval $ac_compile) 2>conftest.er1
2442 ac_status=$?
2443 grep -v '^ *+' conftest.er1 >conftest.err
2444 rm -f conftest.er1
2445 cat conftest.err >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try='test -z "$ac_c_werror_flag"
2449 || test ! -s conftest.err'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; } &&
2455 { ac_try='test -s conftest.$ac_objext'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2461 ac_cv_prog_cc_stdc=$ac_arg
2462 break
2463 else
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 fi
2468 rm -f conftest.err conftest.$ac_objext
2469 done
2470 rm -f conftest.$ac_ext conftest.$ac_objext
2471 CC=$ac_save_CC
2472
2473 fi
2474
2475 case "x$ac_cv_prog_cc_stdc" in
2476 x|xno)
2477 echo "$as_me:$LINENO: result: none needed" >&5
2478 echo "${ECHO_T}none needed" >&6 ;;
2479 *)
2480 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2481 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2482 CC="$CC $ac_cv_prog_cc_stdc" ;;
2483 esac
2484
2485 # Some people use a C++ compiler to compile C. Since we use `exit',
2486 # in C++ we need to declare it. In case someone uses the same compiler
2487 # for both compiling C and C++ we need to have the C++ compiler decide
2488 # the declaration of exit, since it's the most demanding environment.
2489 cat >conftest.$ac_ext <<_ACEOF
2490 #ifndef __cplusplus
2491 choke me
2492 #endif
2493 _ACEOF
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>conftest.er1
2497 ac_status=$?
2498 grep -v '^ *+' conftest.er1 >conftest.err
2499 rm -f conftest.er1
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -z "$ac_c_werror_flag"
2504 || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 for ac_declaration in \
2517 '' \
2518 'extern "C" void std::exit (int) throw (); using std::exit;' \
2519 'extern "C" void std::exit (int); using std::exit;' \
2520 'extern "C" void exit (int) throw ();' \
2521 'extern "C" void exit (int);' \
2522 'void exit (int);'
2523 do
2524 cat >conftest.$ac_ext <<_ACEOF
2525 /* confdefs.h. */
2526 _ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h. */
2530 $ac_declaration
2531 #include <stdlib.h>
2532 int
2533 main ()
2534 {
2535 exit (42);
2536 ;
2537 return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>conftest.er1
2543 ac_status=$?
2544 grep -v '^ *+' conftest.er1 >conftest.err
2545 rm -f conftest.er1
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag"
2550 || test ! -s conftest.err'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 (eval $ac_try) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest.$ac_objext'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2562 :
2563 else
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 continue
2568 fi
2569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2570 cat >conftest.$ac_ext <<_ACEOF
2571 /* confdefs.h. */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2576 $ac_declaration
2577 int
2578 main ()
2579 {
2580 exit (42);
2581 ;
2582 return 0;
2583 }
2584 _ACEOF
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>conftest.er1
2588 ac_status=$?
2589 grep -v '^ *+' conftest.er1 >conftest.err
2590 rm -f conftest.er1
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_c_werror_flag"
2595 || test ! -s conftest.err'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2607 break
2608 else
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612 fi
2613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614 done
2615 rm -f conftest*
2616 if test -n "$ac_declaration"; then
2617 echo '#ifdef __cplusplus' >>confdefs.h
2618 echo $ac_declaration >>confdefs.h
2619 echo '#endif' >>confdefs.h
2620 fi
2621
2622 else
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 fi
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_ext=c
2629 ac_cpp='$CPP $CPPFLAGS'
2630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633 rm -f .deps 2>/dev/null
2634 mkdir .deps 2>/dev/null
2635 if test -d .deps; then
2636 DEPDIR=.deps
2637 else
2638 # MS-DOS does not allow filenames that begin with a dot.
2639 DEPDIR=_deps
2640 fi
2641 rmdir .deps 2>/dev/null
2642
2643
2644 ac_config_commands="$ac_config_commands depfiles"
2645
2646
2647 am_make=${MAKE-make}
2648 cat > confinc << 'END'
2649 doit:
2650 @echo done
2651 END
2652 # If we don't find an include directive, just comment out the code.
2653 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2654 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2655 am__include="#"
2656 am__quote=
2657 _am_result=none
2658 # First try GNU make style include.
2659 echo "include confinc" > confmf
2660 # We grep out `Entering directory' and `Leaving directory'
2661 # messages which can occur if `w' ends up in MAKEFLAGS.
2662 # In particular we don't look at `^make:' because GNU make might
2663 # be invoked under some other name (usually "gmake"), in which
2664 # case it prints its new name instead of `make'.
2665 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2666 am__include=include
2667 am__quote=
2668 _am_result=GNU
2669 fi
2670 # Now try BSD make style include.
2671 if test "$am__include" = "#"; then
2672 echo '.include "confinc"' > confmf
2673 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2674 am__include=.include
2675 am__quote="\""
2676 _am_result=BSD
2677 fi
2678 fi
2679
2680
2681 echo "$as_me:$LINENO: result: $_am_result" >&5
2682 echo "${ECHO_T}$_am_result" >&6
2683 rm -f confinc confmf
2684
2685 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2686 if test "${enable_dependency_tracking+set}" = set; then
2687 enableval="$enable_dependency_tracking"
2688
2689 fi;
2690 if test "x$enable_dependency_tracking" != xno; then
2691 am_depcomp="$ac_aux_dir/depcomp"
2692 AMDEPBACKSLASH='\'
2693 fi
2694
2695
2696 if test "x$enable_dependency_tracking" != xno; then
2697 AMDEP_TRUE=
2698 AMDEP_FALSE='#'
2699 else
2700 AMDEP_TRUE='#'
2701 AMDEP_FALSE=
2702 fi
2703
2704
2705
2706
2707 depcc="$CC" am_compiler_list=
2708
2709 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2710 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2711 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2715 # We make a subdir and do the tests there. Otherwise we can end up
2716 # making bogus files that we don't know about and never remove. For
2717 # instance it was reported that on HP-UX the gcc test will end up
2718 # making a dummy file named `D' -- because `-MD' means `put the output
2719 # in D'.
2720 mkdir conftest.dir
2721 # Copy depcomp to subdir because otherwise we won't find it if we're
2722 # using a relative directory.
2723 cp "$am_depcomp" conftest.dir
2724 cd conftest.dir
2725
2726 am_cv_CC_dependencies_compiler_type=none
2727 if test "$am_compiler_list" = ""; then
2728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2729 fi
2730 for depmode in $am_compiler_list; do
2731 # We need to recreate these files for each test, as the compiler may
2732 # overwrite some of them when testing with obscure command lines.
2733 # This happens at least with the AIX C compiler.
2734 echo '#include "conftest.h"' > conftest.c
2735 echo 'int i;' > conftest.h
2736 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2737
2738 case $depmode in
2739 nosideeffect)
2740 # after this tag, mechanisms are not by side-effect, so they'll
2741 # only be used when explicitly requested
2742 if test "x$enable_dependency_tracking" = xyes; then
2743 continue
2744 else
2745 break
2746 fi
2747 ;;
2748 none) break ;;
2749 esac
2750 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2751 # mode. It turns out that the SunPro C++ compiler does not properly
2752 # handle `-M -o', and we need to detect this.
2753 if depmode=$depmode \
2754 source=conftest.c object=conftest.o \
2755 depfile=conftest.Po tmpdepfile=conftest.TPo \
2756 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2757 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2758 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2759 am_cv_CC_dependencies_compiler_type=$depmode
2760 break
2761 fi
2762 done
2763
2764 cd ..
2765 rm -rf conftest.dir
2766 else
2767 am_cv_CC_dependencies_compiler_type=none
2768 fi
2769
2770 fi
2771 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2772 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2773 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2774
2775
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_RANLIB+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 if test -n "$RANLIB"; then
2785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800
2801 fi
2802 fi
2803 RANLIB=$ac_cv_prog_RANLIB
2804 if test -n "$RANLIB"; then
2805 echo "$as_me:$LINENO: result: $RANLIB" >&5
2806 echo "${ECHO_T}$RANLIB" >&6
2807 else
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2810 fi
2811
2812 fi
2813 if test -z "$ac_cv_prog_RANLIB"; then
2814 ac_ct_RANLIB=$RANLIB
2815 # Extract the first word of "ranlib", so it can be a program name with args.
2816 set dummy ranlib; ac_word=$2
2817 echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822 if test -n "$ac_ct_RANLIB"; then
2823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_ac_ct_RANLIB="ranlib"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838
2839 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2840 fi
2841 fi
2842 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2843 if test -n "$ac_ct_RANLIB"; then
2844 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2845 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2846 else
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2849 fi
2850
2851 RANLIB=$ac_ct_RANLIB
2852 else
2853 RANLIB="$ac_cv_prog_RANLIB"
2854 fi
2855
2856
2857 # Checks for header files.
2858
2859
2860
2861
2862
2863
2864 ac_header_dirent=no
2865 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2866 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2867 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2868 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878 #include <sys/types.h>
2879 #include <$ac_hdr>
2880
2881 int
2882 main ()
2883 {
2884 if ((DIR *) 0)
2885 return 0;
2886 ;
2887 return 0;
2888 }
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 eval "$as_ac_Header=yes"
2913 else
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917 eval "$as_ac_Header=no"
2918 fi
2919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2920 fi
2921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2924 cat >>confdefs.h <<_ACEOF
2925 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2926 _ACEOF
2927
2928 ac_header_dirent=$ac_hdr; break
2929 fi
2930
2931 done
2932 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2933 if test $ac_header_dirent = dirent.h; then
2934 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2935 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2936 if test "${ac_cv_search_opendir+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939 ac_func_search_save_LIBS=$LIBS
2940 ac_cv_search_opendir=no
2941 cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h. */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947
2948 /* Override any gcc2 internal prototype to avoid an error. */
2949 #ifdef __cplusplus
2950 extern "C"
2951 #endif
2952 /* We use char because int might match the return type of a gcc2
2953 builtin and then its argument prototype would still apply. */
2954 char opendir ();
2955 int
2956 main ()
2957 {
2958 opendir ();
2959 ;
2960 return 0;
2961 }
2962 _ACEOF
2963 rm -f conftest.$ac_objext conftest$ac_exeext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965 (eval $ac_link) 2>conftest.er1
2966 ac_status=$?
2967 grep -v '^ *+' conftest.er1 >conftest.err
2968 rm -f conftest.er1
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 { ac_try='test -z "$ac_c_werror_flag"
2973 || test ! -s conftest.err'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 (eval $ac_try) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest$ac_exeext'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 (eval $ac_try) 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2985 ac_cv_search_opendir="none required"
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 fi
2991 rm -f conftest.err conftest.$ac_objext \
2992 conftest$ac_exeext conftest.$ac_ext
2993 if test "$ac_cv_search_opendir" = no; then
2994 for ac_lib in dir; do
2995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2996 cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h. */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3002
3003 /* Override any gcc2 internal prototype to avoid an error. */
3004 #ifdef __cplusplus
3005 extern "C"
3006 #endif
3007 /* We use char because int might match the return type of a gcc2
3008 builtin and then its argument prototype would still apply. */
3009 char opendir ();
3010 int
3011 main ()
3012 {
3013 opendir ();
3014 ;
3015 return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext conftest$ac_exeext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020 (eval $ac_link) 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_c_werror_flag"
3028 || test ! -s conftest.err'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 (eval $ac_try) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; } &&
3034 { ac_try='test -s conftest$ac_exeext'
3035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 (eval $ac_try) 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3040 ac_cv_search_opendir="-l$ac_lib"
3041 break
3042 else
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046 fi
3047 rm -f conftest.err conftest.$ac_objext \
3048 conftest$ac_exeext conftest.$ac_ext
3049 done
3050 fi
3051 LIBS=$ac_func_search_save_LIBS
3052 fi
3053 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3054 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3055 if test "$ac_cv_search_opendir" != no; then
3056 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3057
3058 fi
3059
3060 else
3061 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3062 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3063 if test "${ac_cv_search_opendir+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 ac_func_search_save_LIBS=$LIBS
3067 ac_cv_search_opendir=no
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074
3075 /* Override any gcc2 internal prototype to avoid an error. */
3076 #ifdef __cplusplus
3077 extern "C"
3078 #endif
3079 /* We use char because int might match the return type of a gcc2
3080 builtin and then its argument prototype would still apply. */
3081 char opendir ();
3082 int
3083 main ()
3084 {
3085 opendir ();
3086 ;
3087 return 0;
3088 }
3089 _ACEOF
3090 rm -f conftest.$ac_objext conftest$ac_exeext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3092 (eval $ac_link) 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -z "$ac_c_werror_flag"
3100 || test ! -s conftest.err'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 (eval $ac_try) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest$ac_exeext'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 (eval $ac_try) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3112 ac_cv_search_opendir="none required"
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117 fi
3118 rm -f conftest.err conftest.$ac_objext \
3119 conftest$ac_exeext conftest.$ac_ext
3120 if test "$ac_cv_search_opendir" = no; then
3121 for ac_lib in x; do
3122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3123 cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h. */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129
3130 /* Override any gcc2 internal prototype to avoid an error. */
3131 #ifdef __cplusplus
3132 extern "C"
3133 #endif
3134 /* We use char because int might match the return type of a gcc2
3135 builtin and then its argument prototype would still apply. */
3136 char opendir ();
3137 int
3138 main ()
3139 {
3140 opendir ();
3141 ;
3142 return 0;
3143 }
3144 _ACEOF
3145 rm -f conftest.$ac_objext conftest$ac_exeext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3147 (eval $ac_link) 2>conftest.er1
3148 ac_status=$?
3149 grep -v '^ *+' conftest.er1 >conftest.err
3150 rm -f conftest.er1
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -z "$ac_c_werror_flag"
3155 || test ! -s conftest.err'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try='test -s conftest$ac_exeext'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 (eval $ac_try) 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 ac_cv_search_opendir="-l$ac_lib"
3168 break
3169 else
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 fi
3174 rm -f conftest.err conftest.$ac_objext \
3175 conftest$ac_exeext conftest.$ac_ext
3176 done
3177 fi
3178 LIBS=$ac_func_search_save_LIBS
3179 fi
3180 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3181 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3182 if test "$ac_cv_search_opendir" != no; then
3183 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3184
3185 fi
3186
3187 fi
3188
3189 ac_ext=c
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3195 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3196 # On Suns, sometimes $CPP names a directory.
3197 if test -n "$CPP" && test -d "$CPP"; then
3198 CPP=
3199 fi
3200 if test -z "$CPP"; then
3201 if test "${ac_cv_prog_CPP+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 # Double quotes because CPP needs to be expanded
3205 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3206 do
3207 ac_preproc_ok=false
3208 for ac_c_preproc_warn_flag in '' yes
3209 do
3210 # Use a header file that comes with gcc, so configuring glibc
3211 # with a fresh cross-compiler works.
3212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3213 # <limits.h> exists even on freestanding compilers.
3214 # On the NeXT, cc -E runs the code through the compiler's parser,
3215 # not just through cpp. "Syntax error" is here to catch this case.
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3222 #ifdef __STDC__
3223 # include <limits.h>
3224 #else
3225 # include <assert.h>
3226 #endif
3227 Syntax error
3228 _ACEOF
3229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } >/dev/null; then
3237 if test -s conftest.err; then
3238 ac_cpp_err=$ac_c_preproc_warn_flag
3239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3240 else
3241 ac_cpp_err=
3242 fi
3243 else
3244 ac_cpp_err=yes
3245 fi
3246 if test -z "$ac_cpp_err"; then
3247 :
3248 else
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 # Broken: fails on valid input.
3253 continue
3254 fi
3255 rm -f conftest.err conftest.$ac_ext
3256
3257 # OK, works on sane cases. Now check whether non-existent headers
3258 # can be detected and how.
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265 #include <ac_nonexistent.h>
3266 _ACEOF
3267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } >/dev/null; then
3275 if test -s conftest.err; then
3276 ac_cpp_err=$ac_c_preproc_warn_flag
3277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3278 else
3279 ac_cpp_err=
3280 fi
3281 else
3282 ac_cpp_err=yes
3283 fi
3284 if test -z "$ac_cpp_err"; then
3285 # Broken: success on invalid input.
3286 continue
3287 else
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291 # Passes both tests.
3292 ac_preproc_ok=:
3293 break
3294 fi
3295 rm -f conftest.err conftest.$ac_ext
3296
3297 done
3298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3299 rm -f conftest.err conftest.$ac_ext
3300 if $ac_preproc_ok; then
3301 break
3302 fi
3303
3304 done
3305 ac_cv_prog_CPP=$CPP
3306
3307 fi
3308 CPP=$ac_cv_prog_CPP
3309 else
3310 ac_cv_prog_CPP=$CPP
3311 fi
3312 echo "$as_me:$LINENO: result: $CPP" >&5
3313 echo "${ECHO_T}$CPP" >&6
3314 ac_preproc_ok=false
3315 for ac_c_preproc_warn_flag in '' yes
3316 do
3317 # Use a header file that comes with gcc, so configuring glibc
3318 # with a fresh cross-compiler works.
3319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3320 # <limits.h> exists even on freestanding compilers.
3321 # On the NeXT, cc -E runs the code through the compiler's parser,
3322 # not just through cpp. "Syntax error" is here to catch this case.
3323 cat >conftest.$ac_ext <<_ACEOF
3324 /* confdefs.h. */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329 #ifdef __STDC__
3330 # include <limits.h>
3331 #else
3332 # include <assert.h>
3333 #endif
3334 Syntax error
3335 _ACEOF
3336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } >/dev/null; then
3344 if test -s conftest.err; then
3345 ac_cpp_err=$ac_c_preproc_warn_flag
3346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3347 else
3348 ac_cpp_err=
3349 fi
3350 else
3351 ac_cpp_err=yes
3352 fi
3353 if test -z "$ac_cpp_err"; then
3354 :
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359 # Broken: fails on valid input.
3360 continue
3361 fi
3362 rm -f conftest.err conftest.$ac_ext
3363
3364 # OK, works on sane cases. Now check whether non-existent headers
3365 # can be detected and how.
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #include <ac_nonexistent.h>
3373 _ACEOF
3374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385 else
3386 ac_cpp_err=
3387 fi
3388 else
3389 ac_cpp_err=yes
3390 fi
3391 if test -z "$ac_cpp_err"; then
3392 # Broken: success on invalid input.
3393 continue
3394 else
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398 # Passes both tests.
3399 ac_preproc_ok=:
3400 break
3401 fi
3402 rm -f conftest.err conftest.$ac_ext
3403
3404 done
3405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3406 rm -f conftest.err conftest.$ac_ext
3407 if $ac_preproc_ok; then
3408 :
3409 else
3410 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3411 See \`config.log' for more details." >&5
3412 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3413 See \`config.log' for more details." >&2;}
3414 { (exit 1); exit 1; }; }
3415 fi
3416
3417 ac_ext=c
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422
3423
3424 echo "$as_me:$LINENO: checking for egrep" >&5
3425 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3426 if test "${ac_cv_prog_egrep+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3430 then ac_cv_prog_egrep='grep -E'
3431 else ac_cv_prog_egrep='egrep'
3432 fi
3433 fi
3434 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3435 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3436 EGREP=$ac_cv_prog_egrep
3437
3438
3439 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3440 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3441 if test "${ac_cv_header_stdc+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <stdlib.h>
3451 #include <stdarg.h>
3452 #include <string.h>
3453 #include <float.h>
3454
3455 int
3456 main ()
3457 {
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } &&
3472 { ac_try='test -z "$ac_c_werror_flag"
3473 || test ! -s conftest.err'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; } &&
3479 { ac_try='test -s conftest.$ac_objext'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 (eval $ac_try) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 ac_cv_header_stdc=yes
3486 else
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3489
3490 ac_cv_header_stdc=no
3491 fi
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493
3494 if test $ac_cv_header_stdc = yes; then
3495 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h. */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 #include <string.h>
3503
3504 _ACEOF
3505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3506 $EGREP "memchr" >/dev/null 2>&1; then
3507 :
3508 else
3509 ac_cv_header_stdc=no
3510 fi
3511 rm -f conftest*
3512
3513 fi
3514
3515 if test $ac_cv_header_stdc = yes; then
3516 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include <stdlib.h>
3524
3525 _ACEOF
3526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3527 $EGREP "free" >/dev/null 2>&1; then
3528 :
3529 else
3530 ac_cv_header_stdc=no
3531 fi
3532 rm -f conftest*
3533
3534 fi
3535
3536 if test $ac_cv_header_stdc = yes; then
3537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3538 if test "$cross_compiling" = yes; then
3539 :
3540 else
3541 cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h. */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <ctype.h>
3548 #if ((' ' & 0x0FF) == 0x020)
3549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3551 #else
3552 # define ISLOWER(c) \
3553 (('a' <= (c) && (c) <= 'i') \
3554 || ('j' <= (c) && (c) <= 'r') \
3555 || ('s' <= (c) && (c) <= 'z'))
3556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3557 #endif
3558
3559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3560 int
3561 main ()
3562 {
3563 int i;
3564 for (i = 0; i < 256; i++)
3565 if (XOR (islower (i), ISLOWER (i))
3566 || toupper (i) != TOUPPER (i))
3567 exit(2);
3568 exit (0);
3569 }
3570 _ACEOF
3571 rm -f conftest$ac_exeext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3573 (eval $ac_link) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 :
3583 else
3584 echo "$as_me: program exited with status $ac_status" >&5
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 ( exit $ac_status )
3589 ac_cv_header_stdc=no
3590 fi
3591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3592 fi
3593 fi
3594 fi
3595 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3596 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3597 if test $ac_cv_header_stdc = yes; then
3598
3599 cat >>confdefs.h <<\_ACEOF
3600 #define STDC_HEADERS 1
3601 _ACEOF
3602
3603 fi
3604
3605 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3606 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3607 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616 #include <sys/types.h>
3617 #include <sys/wait.h>
3618 #ifndef WEXITSTATUS
3619 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3620 #endif
3621 #ifndef WIFEXITED
3622 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3623 #endif
3624
3625 int
3626 main ()
3627 {
3628 int s;
3629 wait (&s);
3630 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 rm -f conftest.$ac_objext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637 (eval $ac_compile) 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } &&
3644 { ac_try='test -z "$ac_c_werror_flag"
3645 || test ! -s conftest.err'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; } &&
3651 { ac_try='test -s conftest.$ac_objext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 ac_cv_header_sys_wait_h=yes
3658 else
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 ac_cv_header_sys_wait_h=no
3663 fi
3664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3665 fi
3666 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3667 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3668 if test $ac_cv_header_sys_wait_h = yes; then
3669
3670 cat >>confdefs.h <<\_ACEOF
3671 #define HAVE_SYS_WAIT_H 1
3672 _ACEOF
3673
3674 fi
3675
3676 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3687 inttypes.h stdint.h unistd.h
3688 do
3689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3690 echo "$as_me:$LINENO: checking for $ac_header" >&5
3691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 cat >conftest.$ac_ext <<_ACEOF
3696 /* confdefs.h. */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 $ac_includes_default
3702
3703 #include <$ac_header>
3704 _ACEOF
3705 rm -f conftest.$ac_objext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest.$ac_objext'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 eval "$as_ac_Header=yes"
3728 else
3729 echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 eval "$as_ac_Header=no"
3733 fi
3734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3735 fi
3736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3739 cat >>confdefs.h <<_ACEOF
3740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3741 _ACEOF
3742
3743 fi
3744
3745 done
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765 for ac_header in fcntl.h limits.h mach/mach.h netdb.h netinet/in.h paths.h stddef.h stdlib.h string.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h
3766 do
3767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3769 echo "$as_me:$LINENO: checking for $ac_header" >&5
3770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 fi
3774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3776 else
3777 # Is the header compilable?
3778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3780 cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h. */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3786 $ac_includes_default
3787 #include <$ac_header>
3788 _ACEOF
3789 rm -f conftest.$ac_objext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791 (eval $ac_compile) 2>conftest.er1
3792 ac_status=$?
3793 grep -v '^ *+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } &&
3798 { ac_try='test -z "$ac_c_werror_flag"
3799 || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest.$ac_objext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 ac_header_compiler=yes
3812 else
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816 ac_header_compiler=no
3817 fi
3818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3820 echo "${ECHO_T}$ac_header_compiler" >&6
3821
3822 # Is the header present?
3823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3825 cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h. */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3831 #include <$ac_header>
3832 _ACEOF
3833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null; then
3841 if test -s conftest.err; then
3842 ac_cpp_err=$ac_c_preproc_warn_flag
3843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3844 else
3845 ac_cpp_err=
3846 fi
3847 else
3848 ac_cpp_err=yes
3849 fi
3850 if test -z "$ac_cpp_err"; then
3851 ac_header_preproc=yes
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 ac_header_preproc=no
3857 fi
3858 rm -f conftest.err conftest.$ac_ext
3859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3860 echo "${ECHO_T}$ac_header_preproc" >&6
3861
3862 # So? What about this header?
3863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3864 yes:no: )
3865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3869 ac_header_preproc=yes
3870 ;;
3871 no:yes:* )
3872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3884 (
3885 cat <<\_ASBOX
3886 ## -------------------------------------------------- ##
3887 ## Report this to launchd-bug-reports@group.apple.com ##
3888 ## -------------------------------------------------- ##
3889 _ASBOX
3890 ) |
3891 sed "s/^/$as_me: WARNING: /" >&2
3892 ;;
3893 esac
3894 echo "$as_me:$LINENO: checking for $ac_header" >&5
3895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 eval "$as_ac_Header=\$ac_header_preproc"
3900 fi
3901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3903
3904 fi
3905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3906 cat >>confdefs.h <<_ACEOF
3907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3908 _ACEOF
3909
3910 fi
3911
3912 done
3913
3914
3915 # Checks for typedefs, structures, and compiler characteristics.
3916 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
3917 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
3918 if test "${ac_cv_header_stdbool_h+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921 cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h. */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3927
3928 #include <stdbool.h>
3929 #ifndef bool
3930 # error bool is not defined
3931 #endif
3932 #ifndef false
3933 # error false is not defined
3934 #endif
3935 #if false
3936 # error false is not 0
3937 #endif
3938 #ifndef true
3939 # error true is not defined
3940 #endif
3941 #if true != 1
3942 # error true is not 1
3943 #endif
3944 #ifndef __bool_true_false_are_defined
3945 # error __bool_true_false_are_defined is not defined
3946 #endif
3947
3948 struct s { _Bool s: 1; _Bool t; } s;
3949
3950 char a[true == 1 ? 1 : -1];
3951 char b[false == 0 ? 1 : -1];
3952 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
3953 char d[(bool) -0.5 == true ? 1 : -1];
3954 bool e = &s;
3955 char f[(_Bool) -0.0 == false ? 1 : -1];
3956 char g[true];
3957 char h[sizeof (_Bool)];
3958 char i[sizeof s.t];
3959
3960 int
3961 main ()
3962 {
3963 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
3964 ;
3965 return 0;
3966 }
3967 _ACEOF
3968 rm -f conftest.$ac_objext
3969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3970 (eval $ac_compile) 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } &&
3977 { ac_try='test -z "$ac_c_werror_flag"
3978 || test ! -s conftest.err'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; } &&
3984 { ac_try='test -s conftest.$ac_objext'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 ac_cv_header_stdbool_h=yes
3991 else
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3994
3995 ac_cv_header_stdbool_h=no
3996 fi
3997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3998 fi
3999 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4000 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
4001 echo "$as_me:$LINENO: checking for _Bool" >&5
4002 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
4003 if test "${ac_cv_type__Bool+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 $ac_includes_default
4013 int
4014 main ()
4015 {
4016 if ((_Bool *) 0)
4017 return 0;
4018 if (sizeof (_Bool))
4019 return 0;
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 rm -f conftest.$ac_objext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026 (eval $ac_compile) 2>conftest.er1
4027 ac_status=$?
4028 grep -v '^ *+' conftest.er1 >conftest.err
4029 rm -f conftest.er1
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } &&
4033 { ac_try='test -z "$ac_c_werror_flag"
4034 || test ! -s conftest.err'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; } &&
4040 { ac_try='test -s conftest.$ac_objext'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 ac_cv_type__Bool=yes
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 ac_cv_type__Bool=no
4052 fi
4053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4054 fi
4055 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4056 echo "${ECHO_T}$ac_cv_type__Bool" >&6
4057 if test $ac_cv_type__Bool = yes; then
4058
4059 cat >>confdefs.h <<_ACEOF
4060 #define HAVE__BOOL 1
4061 _ACEOF
4062
4063
4064 fi
4065
4066 if test $ac_cv_header_stdbool_h = yes; then
4067
4068 cat >>confdefs.h <<\_ACEOF
4069 #define HAVE_STDBOOL_H 1
4070 _ACEOF
4071
4072 fi
4073
4074 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4075 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4076 if test "${ac_cv_c_const+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085
4086 int
4087 main ()
4088 {
4089 /* FIXME: Include the comments suggested by Paul. */
4090 #ifndef __cplusplus
4091 /* Ultrix mips cc rejects this. */
4092 typedef int charset[2];
4093 const charset x;
4094 /* SunOS 4.1.1 cc rejects this. */
4095 char const *const *ccp;
4096 char **p;
4097 /* NEC SVR4.0.2 mips cc rejects this. */
4098 struct point {int x, y;};
4099 static struct point const zero = {0,0};
4100 /* AIX XL C 1.02.0.0 rejects this.
4101 It does not let you subtract one const X* pointer from another in
4102 an arm of an if-expression whose if-part is not a constant
4103 expression */
4104 const char *g = "string";
4105 ccp = &g + (g ? g-g : 0);
4106 /* HPUX 7.0 cc rejects these. */
4107 ++ccp;
4108 p = (char**) ccp;
4109 ccp = (char const *const *) p;
4110 { /* SCO 3.2v4 cc rejects this. */
4111 char *t;
4112 char const *s = 0 ? (char *) 0 : (char const *) 0;
4113
4114 *t++ = 0;
4115 }
4116 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4117 int x[] = {25, 17};
4118 const int *foo = &x[0];
4119 ++foo;
4120 }
4121 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4122 typedef const int *iptr;
4123 iptr p = 0;
4124 ++p;
4125 }
4126 { /* AIX XL C 1.02.0.0 rejects this saying
4127 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4128 struct s { int j; const int *ap[3]; };
4129 struct s *b; b->j = 5;
4130 }
4131 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4132 const int foo = 10;
4133 }
4134 #endif
4135
4136 ;
4137 return 0;
4138 }
4139 _ACEOF
4140 rm -f conftest.$ac_objext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4142 (eval $ac_compile) 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag"
4150 || test ! -s conftest.err'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 ac_cv_c_const=yes
4163 else
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4166
4167 ac_cv_c_const=no
4168 fi
4169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4170 fi
4171 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4172 echo "${ECHO_T}$ac_cv_c_const" >&6
4173 if test $ac_cv_c_const = no; then
4174
4175 cat >>confdefs.h <<\_ACEOF
4176 #define const
4177 _ACEOF
4178
4179 fi
4180
4181 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4182 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4183 if test "${ac_cv_type_uid_t+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h. */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 #include <sys/types.h>
4193
4194 _ACEOF
4195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196 $EGREP "uid_t" >/dev/null 2>&1; then
4197 ac_cv_type_uid_t=yes
4198 else
4199 ac_cv_type_uid_t=no
4200 fi
4201 rm -f conftest*
4202
4203 fi
4204 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4205 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4206 if test $ac_cv_type_uid_t = no; then
4207
4208 cat >>confdefs.h <<\_ACEOF
4209 #define uid_t int
4210 _ACEOF
4211
4212
4213 cat >>confdefs.h <<\_ACEOF
4214 #define gid_t int
4215 _ACEOF
4216
4217 fi
4218
4219 echo "$as_me:$LINENO: checking for mode_t" >&5
4220 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4221 if test "${ac_cv_type_mode_t+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 $ac_includes_default
4231 int
4232 main ()
4233 {
4234 if ((mode_t *) 0)
4235 return 0;
4236 if (sizeof (mode_t))
4237 return 0;
4238 ;
4239 return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244 (eval $ac_compile) 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag"
4252 || test ! -s conftest.err'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; } &&
4258 { ac_try='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 ac_cv_type_mode_t=yes
4265 else
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4268
4269 ac_cv_type_mode_t=no
4270 fi
4271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4272 fi
4273 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4274 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4275 if test $ac_cv_type_mode_t = yes; then
4276 :
4277 else
4278
4279 cat >>confdefs.h <<_ACEOF
4280 #define mode_t int
4281 _ACEOF
4282
4283 fi
4284
4285 echo "$as_me:$LINENO: checking for off_t" >&5
4286 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4287 if test "${ac_cv_type_off_t+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h. */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 $ac_includes_default
4297 int
4298 main ()
4299 {
4300 if ((off_t *) 0)
4301 return 0;
4302 if (sizeof (off_t))
4303 return 0;
4304 ;
4305 return 0;
4306 }
4307 _ACEOF
4308 rm -f conftest.$ac_objext
4309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4310 (eval $ac_compile) 2>conftest.er1
4311 ac_status=$?
4312 grep -v '^ *+' conftest.er1 >conftest.err
4313 rm -f conftest.er1
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } &&
4317 { ac_try='test -z "$ac_c_werror_flag"
4318 || test ! -s conftest.err'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; } &&
4324 { ac_try='test -s conftest.$ac_objext'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 (eval $ac_try) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 ac_cv_type_off_t=yes
4331 else
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4334
4335 ac_cv_type_off_t=no
4336 fi
4337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4338 fi
4339 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4340 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4341 if test $ac_cv_type_off_t = yes; then
4342 :
4343 else
4344
4345 cat >>confdefs.h <<_ACEOF
4346 #define off_t long
4347 _ACEOF
4348
4349 fi
4350
4351 echo "$as_me:$LINENO: checking for pid_t" >&5
4352 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4353 if test "${ac_cv_type_pid_t+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h. */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 $ac_includes_default
4363 int
4364 main ()
4365 {
4366 if ((pid_t *) 0)
4367 return 0;
4368 if (sizeof (pid_t))
4369 return 0;
4370 ;
4371 return 0;
4372 }
4373 _ACEOF
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_cv_type_pid_t=yes
4397 else
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4400
4401 ac_cv_type_pid_t=no
4402 fi
4403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404 fi
4405 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4406 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4407 if test $ac_cv_type_pid_t = yes; then
4408 :
4409 else
4410
4411 cat >>confdefs.h <<_ACEOF
4412 #define pid_t int
4413 _ACEOF
4414
4415 fi
4416
4417 echo "$as_me:$LINENO: checking for size_t" >&5
4418 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4419 if test "${ac_cv_type_size_t+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h. */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 $ac_includes_default
4429 int
4430 main ()
4431 {
4432 if ((size_t *) 0)
4433 return 0;
4434 if (sizeof (size_t))
4435 return 0;
4436 ;
4437 return 0;
4438 }
4439 _ACEOF
4440 rm -f conftest.$ac_objext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442 (eval $ac_compile) 2>conftest.er1
4443 ac_status=$?
4444 grep -v '^ *+' conftest.er1 >conftest.err
4445 rm -f conftest.er1
4446 cat conftest.err >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } &&
4449 { ac_try='test -z "$ac_c_werror_flag"
4450 || test ! -s conftest.err'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 (eval $ac_try) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 ac_cv_type_size_t=yes
4463 else
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 ac_cv_type_size_t=no
4468 fi
4469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4470 fi
4471 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4472 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4473 if test $ac_cv_type_size_t = yes; then
4474 :
4475 else
4476
4477 cat >>confdefs.h <<_ACEOF
4478 #define size_t unsigned
4479 _ACEOF
4480
4481 fi
4482
4483 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4484 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4485 if test "${ac_cv_header_time+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 #include <sys/types.h>
4495 #include <sys/time.h>
4496 #include <time.h>
4497
4498 int
4499 main ()
4500 {
4501 if ((struct tm *) 0)
4502 return 0;
4503 ;
4504 return 0;
4505 }
4506 _ACEOF
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_header_time=yes
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 ac_cv_header_time=no
4535 fi
4536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537 fi
4538 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4539 echo "${ECHO_T}$ac_cv_header_time" >&6
4540 if test $ac_cv_header_time = yes; then
4541
4542 cat >>confdefs.h <<\_ACEOF
4543 #define TIME_WITH_SYS_TIME 1
4544 _ACEOF
4545
4546 fi
4547
4548 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4549 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4550 if test "${ac_cv_struct_tm+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h. */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 #include <sys/types.h>
4560 #include <time.h>
4561
4562 int
4563 main ()
4564 {
4565 struct tm *tp; tp->tm_sec;
4566 ;
4567 return 0;
4568 }
4569 _ACEOF
4570 rm -f conftest.$ac_objext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572 (eval $ac_compile) 2>conftest.er1
4573 ac_status=$?
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -z "$ac_c_werror_flag"
4580 || test ! -s conftest.err'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; } &&
4586 { ac_try='test -s conftest.$ac_objext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 ac_cv_struct_tm=time.h
4593 else
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597 ac_cv_struct_tm=sys/time.h
4598 fi
4599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4600 fi
4601 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4602 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4603 if test $ac_cv_struct_tm = sys/time.h; then
4604
4605 cat >>confdefs.h <<\_ACEOF
4606 #define TM_IN_SYS_TIME 1
4607 _ACEOF
4608
4609 fi
4610
4611
4612 # Checks for library functions.
4613 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4614 # for constant arguments. Useless!
4615 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4616 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4617 if test "${ac_cv_working_alloca_h+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620 cat >conftest.$ac_ext <<_ACEOF
4621 /* confdefs.h. */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4626 #include <alloca.h>
4627 int
4628 main ()
4629 {
4630 char *p = (char *) alloca (2 * sizeof (int));
4631 ;
4632 return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext conftest$ac_exeext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4637 (eval $ac_link) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest$ac_exeext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_working_alloca_h=yes
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ac_cv_working_alloca_h=no
4663 fi
4664 rm -f conftest.err conftest.$ac_objext \
4665 conftest$ac_exeext conftest.$ac_ext
4666 fi
4667 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4668 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4669 if test $ac_cv_working_alloca_h = yes; then
4670
4671 cat >>confdefs.h <<\_ACEOF
4672 #define HAVE_ALLOCA_H 1
4673 _ACEOF
4674
4675 fi
4676
4677 echo "$as_me:$LINENO: checking for alloca" >&5
4678 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4679 if test "${ac_cv_func_alloca_works+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #ifdef __GNUC__
4689 # define alloca __builtin_alloca
4690 #else
4691 # ifdef _MSC_VER
4692 # include <malloc.h>
4693 # define alloca _alloca
4694 # else
4695 # if HAVE_ALLOCA_H
4696 # include <alloca.h>
4697 # else
4698 # ifdef _AIX
4699 #pragma alloca
4700 # else
4701 # ifndef alloca /* predefined by HP cc +Olibcalls */
4702 char *alloca ();
4703 # endif
4704 # endif
4705 # endif
4706 # endif
4707 #endif
4708
4709 int
4710 main ()
4711 {
4712 char *p = (char *) alloca (1);
4713 ;
4714 return 0;
4715 }
4716 _ACEOF
4717 rm -f conftest.$ac_objext conftest$ac_exeext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4719 (eval $ac_link) 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest$ac_exeext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_cv_func_alloca_works=yes
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744 ac_cv_func_alloca_works=no
4745 fi
4746 rm -f conftest.err conftest.$ac_objext \
4747 conftest$ac_exeext conftest.$ac_ext
4748 fi
4749 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4750 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4751
4752 if test $ac_cv_func_alloca_works = yes; then
4753
4754 cat >>confdefs.h <<\_ACEOF
4755 #define HAVE_ALLOCA 1
4756 _ACEOF
4757
4758 else
4759 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4760 # that cause trouble. Some versions do not even contain alloca or
4761 # contain a buggy version. If you still want to use their alloca,
4762 # use ar to extract alloca.o from them instead of compiling alloca.c.
4763
4764 ALLOCA=alloca.$ac_objext
4765
4766 cat >>confdefs.h <<\_ACEOF
4767 #define C_ALLOCA 1
4768 _ACEOF
4769
4770
4771 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4772 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4773 if test "${ac_cv_os_cray+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 #if defined(CRAY) && ! defined(CRAY2)
4783 webecray
4784 #else
4785 wenotbecray
4786 #endif
4787
4788 _ACEOF
4789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4790 $EGREP "webecray" >/dev/null 2>&1; then
4791 ac_cv_os_cray=yes
4792 else
4793 ac_cv_os_cray=no
4794 fi
4795 rm -f conftest*
4796
4797 fi
4798 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4799 echo "${ECHO_T}$ac_cv_os_cray" >&6
4800 if test $ac_cv_os_cray = yes; then
4801 for ac_func in _getb67 GETB67 getb67; do
4802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4803 echo "$as_me:$LINENO: checking for $ac_func" >&5
4804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4805 if eval "test \"\${$as_ac_var+set}\" = set"; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808 cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h. */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4816 #define $ac_func innocuous_$ac_func
4817
4818 /* System header to define __stub macros and hopefully few prototypes,
4819 which can conflict with char $ac_func (); below.
4820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4821 <limits.h> exists even on freestanding compilers. */
4822
4823 #ifdef __STDC__
4824 # include <limits.h>
4825 #else
4826 # include <assert.h>
4827 #endif
4828
4829 #undef $ac_func
4830
4831 /* Override any gcc2 internal prototype to avoid an error. */
4832 #ifdef __cplusplus
4833 extern "C"
4834 {
4835 #endif
4836 /* We use char because int might match the return type of a gcc2
4837 builtin and then its argument prototype would still apply. */
4838 char $ac_func ();
4839 /* The GNU C library defines this for functions which it implements
4840 to always fail with ENOSYS. Some functions are actually named
4841 something starting with __ and the normal name is an alias. */
4842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4843 choke me
4844 #else
4845 char (*f) () = $ac_func;
4846 #endif
4847 #ifdef __cplusplus
4848 }
4849 #endif
4850
4851 int
4852 main ()
4853 {
4854 return f != $ac_func;
4855 ;
4856 return 0;
4857 }
4858 _ACEOF
4859 rm -f conftest.$ac_objext conftest$ac_exeext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4861 (eval $ac_link) 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try='test -z "$ac_c_werror_flag"
4869 || test ! -s conftest.err'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try='test -s conftest$ac_exeext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 eval "$as_ac_var=yes"
4882 else
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 eval "$as_ac_var=no"
4887 fi
4888 rm -f conftest.err conftest.$ac_objext \
4889 conftest$ac_exeext conftest.$ac_ext
4890 fi
4891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4893 if test `eval echo '${'$as_ac_var'}'` = yes; then
4894
4895 cat >>confdefs.h <<_ACEOF
4896 #define CRAY_STACKSEG_END $ac_func
4897 _ACEOF
4898
4899 break
4900 fi
4901
4902 done
4903 fi
4904
4905 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4906 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4907 if test "${ac_cv_c_stack_direction+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910 if test "$cross_compiling" = yes; then
4911 ac_cv_c_stack_direction=0
4912 else
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 int
4920 find_stack_direction ()
4921 {
4922 static char *addr = 0;
4923 auto char dummy;
4924 if (addr == 0)
4925 {
4926 addr = &dummy;
4927 return find_stack_direction ();
4928 }
4929 else
4930 return (&dummy > addr) ? 1 : -1;
4931 }
4932
4933 int
4934 main ()
4935 {
4936 exit (find_stack_direction () < 0);
4937 }
4938 _ACEOF
4939 rm -f conftest$ac_exeext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941 (eval $ac_link) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 ac_cv_c_stack_direction=1
4951 else
4952 echo "$as_me: program exited with status $ac_status" >&5
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 ( exit $ac_status )
4957 ac_cv_c_stack_direction=-1
4958 fi
4959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4960 fi
4961 fi
4962 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4963 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4964
4965 cat >>confdefs.h <<_ACEOF
4966 #define STACK_DIRECTION $ac_cv_c_stack_direction
4967 _ACEOF
4968
4969
4970 fi
4971
4972 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
4973 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
4974 if test "${ac_cv_func_closedir_void+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977 if test "$cross_compiling" = yes; then
4978 ac_cv_func_closedir_void=yes
4979 else
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 $ac_includes_default
4987 #include <$ac_header_dirent>
4988 #ifndef __cplusplus
4989 int closedir ();
4990 #endif
4991
4992 int
4993 main ()
4994 {
4995 exit (closedir (opendir (".")) != 0);
4996 ;
4997 return 0;
4998 }
4999 _ACEOF
5000 rm -f conftest$ac_exeext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5002 (eval $ac_link) 2>&5
5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 (eval $ac_try) 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_cv_func_closedir_void=no
5012 else
5013 echo "$as_me: program exited with status $ac_status" >&5
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5016
5017 ( exit $ac_status )
5018 ac_cv_func_closedir_void=yes
5019 fi
5020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5021 fi
5022 fi
5023 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5024 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
5025 if test $ac_cv_func_closedir_void = yes; then
5026
5027 cat >>confdefs.h <<\_ACEOF
5028 #define CLOSEDIR_VOID 1
5029 _ACEOF
5030
5031 fi
5032
5033
5034
5035 for ac_header in unistd.h vfork.h
5036 do
5037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5039 echo "$as_me:$LINENO: checking for $ac_header" >&5
5040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 fi
5044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5046 else
5047 # Is the header compilable?
5048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5050 cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h. */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 $ac_includes_default
5057 #include <$ac_header>
5058 _ACEOF
5059 rm -f conftest.$ac_objext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061 (eval $ac_compile) 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -z "$ac_c_werror_flag"
5069 || test ! -s conftest.err'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; } &&
5075 { ac_try='test -s conftest.$ac_objext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_header_compiler=yes
5082 else
5083 echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086 ac_header_compiler=no
5087 fi
5088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5090 echo "${ECHO_T}$ac_header_compiler" >&6
5091
5092 # Is the header present?
5093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5095 cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #include <$ac_header>
5102 _ACEOF
5103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } >/dev/null; then
5111 if test -s conftest.err; then
5112 ac_cpp_err=$ac_c_preproc_warn_flag
5113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5114 else
5115 ac_cpp_err=
5116 fi
5117 else
5118 ac_cpp_err=yes
5119 fi
5120 if test -z "$ac_cpp_err"; then
5121 ac_header_preproc=yes
5122 else
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126 ac_header_preproc=no
5127 fi
5128 rm -f conftest.err conftest.$ac_ext
5129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5130 echo "${ECHO_T}$ac_header_preproc" >&6
5131
5132 # So? What about this header?
5133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5134 yes:no: )
5135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5139 ac_header_preproc=yes
5140 ;;
5141 no:yes:* )
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5154 (
5155 cat <<\_ASBOX
5156 ## -------------------------------------------------- ##
5157 ## Report this to launchd-bug-reports@group.apple.com ##
5158 ## -------------------------------------------------- ##
5159 _ASBOX
5160 ) |
5161 sed "s/^/$as_me: WARNING: /" >&2
5162 ;;
5163 esac
5164 echo "$as_me:$LINENO: checking for $ac_header" >&5
5165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169 eval "$as_ac_Header=\$ac_header_preproc"
5170 fi
5171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5173
5174 fi
5175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5176 cat >>confdefs.h <<_ACEOF
5177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5178 _ACEOF
5179
5180 fi
5181
5182 done
5183
5184
5185
5186 for ac_func in fork vfork
5187 do
5188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5189 echo "$as_me:$LINENO: checking for $ac_func" >&5
5190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5191 if eval "test \"\${$as_ac_var+set}\" = set"; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 cat >conftest.$ac_ext <<_ACEOF
5195 /* confdefs.h. */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5202 #define $ac_func innocuous_$ac_func
5203
5204 /* System header to define __stub macros and hopefully few prototypes,
5205 which can conflict with char $ac_func (); below.
5206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5207 <limits.h> exists even on freestanding compilers. */
5208
5209 #ifdef __STDC__
5210 # include <limits.h>
5211 #else
5212 # include <assert.h>
5213 #endif
5214
5215 #undef $ac_func
5216
5217 /* Override any gcc2 internal prototype to avoid an error. */
5218 #ifdef __cplusplus
5219 extern "C"
5220 {
5221 #endif
5222 /* We use char because int might match the return type of a gcc2
5223 builtin and then its argument prototype would still apply. */
5224 char $ac_func ();
5225 /* The GNU C library defines this for functions which it implements
5226 to always fail with ENOSYS. Some functions are actually named
5227 something starting with __ and the normal name is an alias. */
5228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5229 choke me
5230 #else
5231 char (*f) () = $ac_func;
5232 #endif
5233 #ifdef __cplusplus
5234 }
5235 #endif
5236
5237 int
5238 main ()
5239 {
5240 return f != $ac_func;
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247 (eval $ac_link) 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -z "$ac_c_werror_flag"
5255 || test ! -s conftest.err'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 (eval $ac_try) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; } &&
5261 { ac_try='test -s conftest$ac_exeext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 eval "$as_ac_var=yes"
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 eval "$as_ac_var=no"
5273 fi
5274 rm -f conftest.err conftest.$ac_objext \
5275 conftest$ac_exeext conftest.$ac_ext
5276 fi
5277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5279 if test `eval echo '${'$as_ac_var'}'` = yes; then
5280 cat >>confdefs.h <<_ACEOF
5281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5282 _ACEOF
5283
5284 fi
5285 done
5286
5287 if test "x$ac_cv_func_fork" = xyes; then
5288 echo "$as_me:$LINENO: checking for working fork" >&5
5289 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5290 if test "${ac_cv_func_fork_works+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 if test "$cross_compiling" = yes; then
5294 ac_cv_func_fork_works=cross
5295 else
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* By Ruediger Kuhlmann. */
5298 #include <sys/types.h>
5299 #if HAVE_UNISTD_H
5300 # include <unistd.h>
5301 #endif
5302 /* Some systems only have a dummy stub for fork() */
5303 int main ()
5304 {
5305 if (fork() < 0)
5306 exit (1);
5307 exit (0);
5308 }
5309 _ACEOF
5310 rm -f conftest$ac_exeext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312 (eval $ac_link) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_cv_func_fork_works=yes
5322 else
5323 echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 ( exit $ac_status )
5328 ac_cv_func_fork_works=no
5329 fi
5330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5331 fi
5332 fi
5333 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5334 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5335
5336 else
5337 ac_cv_func_fork_works=$ac_cv_func_fork
5338 fi
5339 if test "x$ac_cv_func_fork_works" = xcross; then
5340 case $host in
5341 *-*-amigaos* | *-*-msdosdjgpp*)
5342 # Override, as these systems have only a dummy fork() stub
5343 ac_cv_func_fork_works=no
5344 ;;
5345 *)
5346 ac_cv_func_fork_works=yes
5347 ;;
5348 esac
5349 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5350 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5351 fi
5352 ac_cv_func_vfork_works=$ac_cv_func_vfork
5353 if test "x$ac_cv_func_vfork" = xyes; then
5354 echo "$as_me:$LINENO: checking for working vfork" >&5
5355 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5356 if test "${ac_cv_func_vfork_works+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359 if test "$cross_compiling" = yes; then
5360 ac_cv_func_vfork_works=cross
5361 else
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 /* Thanks to Paul Eggert for this test. */
5369 #include <stdio.h>
5370 #include <stdlib.h>
5371 #include <sys/types.h>
5372 #include <sys/stat.h>
5373 #include <sys/wait.h>
5374 #if HAVE_UNISTD_H
5375 # include <unistd.h>
5376 #endif
5377 #if HAVE_VFORK_H
5378 # include <vfork.h>
5379 #endif
5380 /* On some sparc systems, changes by the child to local and incoming
5381 argument registers are propagated back to the parent. The compiler
5382 is told about this with #include <vfork.h>, but some compilers
5383 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5384 static variable whose address is put into a register that is
5385 clobbered by the vfork. */
5386 static void
5387 #ifdef __cplusplus
5388 sparc_address_test (int arg)
5389 # else
5390 sparc_address_test (arg) int arg;
5391 #endif
5392 {
5393 static pid_t child;
5394 if (!child) {
5395 child = vfork ();
5396 if (child < 0) {
5397 perror ("vfork");
5398 _exit(2);
5399 }
5400 if (!child) {
5401 arg = getpid();
5402 write(-1, "", 0);
5403 _exit (arg);
5404 }
5405 }
5406 }
5407
5408 int
5409 main ()
5410 {
5411 pid_t parent = getpid ();
5412 pid_t child;
5413
5414 sparc_address_test (0);
5415
5416 child = vfork ();
5417
5418 if (child == 0) {
5419 /* Here is another test for sparc vfork register problems. This
5420 test uses lots of local variables, at least as many local
5421 variables as main has allocated so far including compiler
5422 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5423 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5424 reuse the register of parent for one of the local variables,
5425 since it will think that parent can't possibly be used any more
5426 in this routine. Assigning to the local variable will thus
5427 munge parent in the parent process. */
5428 pid_t
5429 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5430 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5431 /* Convince the compiler that p..p7 are live; otherwise, it might
5432 use the same hardware register for all 8 local variables. */
5433 if (p != p1 || p != p2 || p != p3 || p != p4
5434 || p != p5 || p != p6 || p != p7)
5435 _exit(1);
5436
5437 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5438 from child file descriptors. If the child closes a descriptor
5439 before it execs or exits, this munges the parent's descriptor
5440 as well. Test for this by closing stdout in the child. */
5441 _exit(close(fileno(stdout)) != 0);
5442 } else {
5443 int status;
5444 struct stat st;
5445
5446 while (wait(&status) != child)
5447 ;
5448 exit(
5449 /* Was there some problem with vforking? */
5450 child < 0
5451
5452 /* Did the child fail? (This shouldn't happen.) */
5453 || status
5454
5455 /* Did the vfork/compiler bug occur? */
5456 || parent != getpid()
5457
5458 /* Did the file descriptor bug occur? */
5459 || fstat(fileno(stdout), &st) != 0
5460 );
5461 }
5462 }
5463 _ACEOF
5464 rm -f conftest$ac_exeext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466 (eval $ac_link) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_func_vfork_works=yes
5476 else
5477 echo "$as_me: program exited with status $ac_status" >&5
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 ( exit $ac_status )
5482 ac_cv_func_vfork_works=no
5483 fi
5484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5485 fi
5486 fi
5487 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5488 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5489
5490 fi;
5491 if test "x$ac_cv_func_fork_works" = xcross; then
5492 ac_cv_func_vfork_works=$ac_cv_func_vfork
5493 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5494 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5495 fi
5496
5497 if test "x$ac_cv_func_vfork_works" = xyes; then
5498
5499 cat >>confdefs.h <<\_ACEOF
5500 #define HAVE_WORKING_VFORK 1
5501 _ACEOF
5502
5503 else
5504
5505 cat >>confdefs.h <<\_ACEOF
5506 #define vfork fork
5507 _ACEOF
5508
5509 fi
5510 if test "x$ac_cv_func_fork_works" = xyes; then
5511
5512 cat >>confdefs.h <<\_ACEOF
5513 #define HAVE_WORKING_FORK 1
5514 _ACEOF
5515
5516 fi
5517
5518 if test $ac_cv_c_compiler_gnu = yes; then
5519 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5520 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
5521 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524 ac_pattern="Autoconf.*'x'"
5525 cat >conftest.$ac_ext <<_ACEOF
5526 /* confdefs.h. */
5527 _ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h. */
5531 #include <sgtty.h>
5532 Autoconf TIOCGETP
5533 _ACEOF
5534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5535 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5536 ac_cv_prog_gcc_traditional=yes
5537 else
5538 ac_cv_prog_gcc_traditional=no
5539 fi
5540 rm -f conftest*
5541
5542
5543 if test $ac_cv_prog_gcc_traditional = no; then
5544 cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h. */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5550 #include <termio.h>
5551 Autoconf TCGETA
5552 _ACEOF
5553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5554 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5555 ac_cv_prog_gcc_traditional=yes
5556 fi
5557 rm -f conftest*
5558
5559 fi
5560 fi
5561 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5562 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
5563 if test $ac_cv_prog_gcc_traditional = yes; then
5564 CC="$CC -traditional"
5565 fi
5566 fi
5567
5568 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5569 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
5570 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573 rm -f conftest.sym conftest.file
5574 echo >conftest.file
5575 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5576 if test "$cross_compiling" = yes; then
5577 ac_cv_func_lstat_dereferences_slashed_symlink=no
5578 else
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 $ac_includes_default
5586 int
5587 main ()
5588 {
5589 struct stat sbuf;
5590 /* Linux will dereference the symlink and fail.
5591 That is better in the sense that it means we will not
5592 have to compile and use the lstat wrapper. */
5593 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest$ac_exeext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5610 else
5611 echo "$as_me: program exited with status $ac_status" >&5
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615 ( exit $ac_status )
5616 ac_cv_func_lstat_dereferences_slashed_symlink=no
5617 fi
5618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5619 fi
5620 else
5621 # If the `ln -s' command failed, then we probably don't even
5622 # have an lstat function.
5623 ac_cv_func_lstat_dereferences_slashed_symlink=no
5624 fi
5625 rm -f conftest.sym conftest.file
5626
5627 fi
5628 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5629 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
5630
5631 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5632
5633 cat >>confdefs.h <<_ACEOF
5634 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5635 _ACEOF
5636
5637
5638 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
5639 case $LIBOBJS in
5640 "lstat.$ac_objext" | \
5641 *" lstat.$ac_objext" | \
5642 "lstat.$ac_objext "* | \
5643 *" lstat.$ac_objext "* ) ;;
5644 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
5645 esac
5646
5647 fi
5648
5649 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
5650 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
5651 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654 if test "$cross_compiling" = yes; then
5655 ac_cv_func_lstat_empty_string_bug=yes
5656 else
5657 cat >conftest.$ac_ext <<_ACEOF
5658 /* confdefs.h. */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 $ac_includes_default
5664 int
5665 main ()
5666 {
5667 struct stat sbuf;
5668 exit (lstat ("", &sbuf) ? 1 : 0);
5669 ;
5670 return 0;
5671 }
5672 _ACEOF
5673 rm -f conftest$ac_exeext
5674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5675 (eval $ac_link) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_func_lstat_empty_string_bug=yes
5685 else
5686 echo "$as_me: program exited with status $ac_status" >&5
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690 ( exit $ac_status )
5691 ac_cv_func_lstat_empty_string_bug=no
5692 fi
5693 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5694 fi
5695 fi
5696 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
5697 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
5698 if test $ac_cv_func_lstat_empty_string_bug = yes; then
5699 case $LIBOBJS in
5700 "lstat.$ac_objext" | \
5701 *" lstat.$ac_objext" | \
5702 "lstat.$ac_objext "* | \
5703 *" lstat.$ac_objext "* ) ;;
5704 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
5705 esac
5706
5707
5708 cat >>confdefs.h <<_ACEOF
5709 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
5710 _ACEOF
5711
5712 fi
5713
5714 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5715 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
5716 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719 rm -f conftest.sym conftest.file
5720 echo >conftest.file
5721 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5722 if test "$cross_compiling" = yes; then
5723 ac_cv_func_lstat_dereferences_slashed_symlink=no
5724 else
5725 cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h. */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 $ac_includes_default
5732 int
5733 main ()
5734 {
5735 struct stat sbuf;
5736 /* Linux will dereference the symlink and fail.
5737 That is better in the sense that it means we will not
5738 have to compile and use the lstat wrapper. */
5739 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 rm -f conftest$ac_exeext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5746 (eval $ac_link) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5756 else
5757 echo "$as_me: program exited with status $ac_status" >&5
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5760
5761 ( exit $ac_status )
5762 ac_cv_func_lstat_dereferences_slashed_symlink=no
5763 fi
5764 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5765 fi
5766 else
5767 # If the `ln -s' command failed, then we probably don't even
5768 # have an lstat function.
5769 ac_cv_func_lstat_dereferences_slashed_symlink=no
5770 fi
5771 rm -f conftest.sym conftest.file
5772
5773 fi
5774 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5775 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
5776
5777 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5778
5779 cat >>confdefs.h <<_ACEOF
5780 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5781 _ACEOF
5782
5783
5784 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
5785 case $LIBOBJS in
5786 "lstat.$ac_objext" | \
5787 *" lstat.$ac_objext" | \
5788 "lstat.$ac_objext "* | \
5789 *" lstat.$ac_objext "* ) ;;
5790 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
5791 esac
5792
5793 fi
5794
5795
5796 for ac_header in stdlib.h
5797 do
5798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5800 echo "$as_me:$LINENO: checking for $ac_header" >&5
5801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 fi
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5807 else
5808 # Is the header compilable?
5809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 $ac_includes_default
5818 #include <$ac_header>
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 ac_header_compiler=yes
5843 else
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5846
5847 ac_header_compiler=no
5848 fi
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5851 echo "${ECHO_T}$ac_header_compiler" >&6
5852
5853 # Is the header present?
5854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5856 cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h. */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #include <$ac_header>
5863 _ACEOF
5864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev/null; then
5872 if test -s conftest.err; then
5873 ac_cpp_err=$ac_c_preproc_warn_flag
5874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5875 else
5876 ac_cpp_err=
5877 fi
5878 else
5879 ac_cpp_err=yes
5880 fi
5881 if test -z "$ac_cpp_err"; then
5882 ac_header_preproc=yes
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 ac_header_preproc=no
5888 fi
5889 rm -f conftest.err conftest.$ac_ext
5890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5891 echo "${ECHO_T}$ac_header_preproc" >&6
5892
5893 # So? What about this header?
5894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5895 yes:no: )
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5900 ac_header_preproc=yes
5901 ;;
5902 no:yes:* )
5903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5915 (
5916 cat <<\_ASBOX
5917 ## -------------------------------------------------- ##
5918 ## Report this to launchd-bug-reports@group.apple.com ##
5919 ## -------------------------------------------------- ##
5920 _ASBOX
5921 ) |
5922 sed "s/^/$as_me: WARNING: /" >&2
5923 ;;
5924 esac
5925 echo "$as_me:$LINENO: checking for $ac_header" >&5
5926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 eval "$as_ac_Header=\$ac_header_preproc"
5931 fi
5932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5934
5935 fi
5936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5937 cat >>confdefs.h <<_ACEOF
5938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5939 _ACEOF
5940
5941 fi
5942
5943 done
5944
5945 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5946 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5947 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950 if test "$cross_compiling" = yes; then
5951 ac_cv_func_malloc_0_nonnull=no
5952 else
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #if STDC_HEADERS || HAVE_STDLIB_H
5960 # include <stdlib.h>
5961 #else
5962 char *malloc ();
5963 #endif
5964
5965 int
5966 main ()
5967 {
5968 exit (malloc (0) ? 0 : 1);
5969 ;
5970 return 0;
5971 }
5972 _ACEOF
5973 rm -f conftest$ac_exeext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5975 (eval $ac_link) 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_cv_func_malloc_0_nonnull=yes
5985 else
5986 echo "$as_me: program exited with status $ac_status" >&5
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5989
5990 ( exit $ac_status )
5991 ac_cv_func_malloc_0_nonnull=no
5992 fi
5993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5994 fi
5995 fi
5996 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5997 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5998 if test $ac_cv_func_malloc_0_nonnull = yes; then
5999
6000 cat >>confdefs.h <<\_ACEOF
6001 #define HAVE_MALLOC 1
6002 _ACEOF
6003
6004 else
6005 cat >>confdefs.h <<\_ACEOF
6006 #define HAVE_MALLOC 0
6007 _ACEOF
6008
6009 case $LIBOBJS in
6010 "malloc.$ac_objext" | \
6011 *" malloc.$ac_objext" | \
6012 "malloc.$ac_objext "* | \
6013 *" malloc.$ac_objext "* ) ;;
6014 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
6015 esac
6016
6017
6018 cat >>confdefs.h <<\_ACEOF
6019 #define malloc rpl_malloc
6020 _ACEOF
6021
6022 fi
6023
6024
6025
6026
6027
6028
6029 for ac_header in stdlib.h sys/time.h unistd.h
6030 do
6031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6033 echo "$as_me:$LINENO: checking for $ac_header" >&5
6034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 fi
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6040 else
6041 # Is the header compilable?
6042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6044 cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h. */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 $ac_includes_default
6051 #include <$ac_header>
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -z "$ac_c_werror_flag"
6063 || test ! -s conftest.err'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest.$ac_objext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 ac_header_compiler=yes
6076 else
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080 ac_header_compiler=no
6081 fi
6082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6084 echo "${ECHO_T}$ac_header_compiler" >&6
6085
6086 # Is the header present?
6087 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6089 cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h. */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 #include <$ac_header>
6096 _ACEOF
6097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } >/dev/null; then
6105 if test -s conftest.err; then
6106 ac_cpp_err=$ac_c_preproc_warn_flag
6107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6108 else
6109 ac_cpp_err=
6110 fi
6111 else
6112 ac_cpp_err=yes
6113 fi
6114 if test -z "$ac_cpp_err"; then
6115 ac_header_preproc=yes
6116 else
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120 ac_header_preproc=no
6121 fi
6122 rm -f conftest.err conftest.$ac_ext
6123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6124 echo "${ECHO_T}$ac_header_preproc" >&6
6125
6126 # So? What about this header?
6127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6128 yes:no: )
6129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6133 ac_header_preproc=yes
6134 ;;
6135 no:yes:* )
6136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6148 (
6149 cat <<\_ASBOX
6150 ## -------------------------------------------------- ##
6151 ## Report this to launchd-bug-reports@group.apple.com ##
6152 ## -------------------------------------------------- ##
6153 _ASBOX
6154 ) |
6155 sed "s/^/$as_me: WARNING: /" >&2
6156 ;;
6157 esac
6158 echo "$as_me:$LINENO: checking for $ac_header" >&5
6159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 eval "$as_ac_Header=\$ac_header_preproc"
6164 fi
6165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6167
6168 fi
6169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6170 cat >>confdefs.h <<_ACEOF
6171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6172 _ACEOF
6173
6174 fi
6175
6176 done
6177
6178
6179 for ac_func in alarm
6180 do
6181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6182 echo "$as_me:$LINENO: checking for $ac_func" >&5
6183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6184 if eval "test \"\${$as_ac_var+set}\" = set"; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6195 #define $ac_func innocuous_$ac_func
6196
6197 /* System header to define __stub macros and hopefully few prototypes,
6198 which can conflict with char $ac_func (); below.
6199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6200 <limits.h> exists even on freestanding compilers. */
6201
6202 #ifdef __STDC__
6203 # include <limits.h>
6204 #else
6205 # include <assert.h>
6206 #endif
6207
6208 #undef $ac_func
6209
6210 /* Override any gcc2 internal prototype to avoid an error. */
6211 #ifdef __cplusplus
6212 extern "C"
6213 {
6214 #endif
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6217 char $ac_func ();
6218 /* The GNU C library defines this for functions which it implements
6219 to always fail with ENOSYS. Some functions are actually named
6220 something starting with __ and the normal name is an alias. */
6221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6222 choke me
6223 #else
6224 char (*f) () = $ac_func;
6225 #endif
6226 #ifdef __cplusplus
6227 }
6228 #endif
6229
6230 int
6231 main ()
6232 {
6233 return f != $ac_func;
6234 ;
6235 return 0;
6236 }
6237 _ACEOF
6238 rm -f conftest.$ac_objext conftest$ac_exeext
6239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6240 (eval $ac_link) 2>conftest.er1
6241 ac_status=$?
6242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
6247 { ac_try='test -z "$ac_c_werror_flag"
6248 || test ! -s conftest.err'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; } &&
6254 { ac_try='test -s conftest$ac_exeext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 eval "$as_ac_var=yes"
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265 eval "$as_ac_var=no"
6266 fi
6267 rm -f conftest.err conftest.$ac_objext \
6268 conftest$ac_exeext conftest.$ac_ext
6269 fi
6270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6272 if test `eval echo '${'$as_ac_var'}'` = yes; then
6273 cat >>confdefs.h <<_ACEOF
6274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6275 _ACEOF
6276
6277 fi
6278 done
6279
6280 echo "$as_me:$LINENO: checking for working mktime" >&5
6281 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
6282 if test "${ac_cv_func_working_mktime+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 if test "$cross_compiling" = yes; then
6286 ac_cv_func_working_mktime=no
6287 else
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 /* Test program from Paul Eggert and Tony Leneis. */
6295 #if TIME_WITH_SYS_TIME
6296 # include <sys/time.h>
6297 # include <time.h>
6298 #else
6299 # if HAVE_SYS_TIME_H
6300 # include <sys/time.h>
6301 # else
6302 # include <time.h>
6303 # endif
6304 #endif
6305
6306 #if HAVE_STDLIB_H
6307 # include <stdlib.h>
6308 #endif
6309
6310 #if HAVE_UNISTD_H
6311 # include <unistd.h>
6312 #endif
6313
6314 #if !HAVE_ALARM
6315 # define alarm(X) /* empty */
6316 #endif
6317
6318 /* Work around redefinition to rpl_putenv by other config tests. */
6319 #undef putenv
6320
6321 static time_t time_t_max;
6322 static time_t time_t_min;
6323
6324 /* Values we'll use to set the TZ environment variable. */
6325 static char *tz_strings[] = {
6326 (char *) 0, "TZ=GMT0", "TZ=JST-9",
6327 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
6328 };
6329 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
6330
6331 /* Fail if mktime fails to convert a date in the spring-forward gap.
6332 Based on a problem report from Andreas Jaeger. */
6333 static void
6334 spring_forward_gap ()
6335 {
6336 /* glibc (up to about 1998-10-07) failed this test. */
6337 struct tm tm;
6338
6339 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
6340 instead of "TZ=America/Vancouver" in order to detect the bug even
6341 on systems that don't support the Olson extension, or don't have the
6342 full zoneinfo tables installed. */
6343 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
6344
6345 tm.tm_year = 98;
6346 tm.tm_mon = 3;
6347 tm.tm_mday = 5;
6348 tm.tm_hour = 2;
6349 tm.tm_min = 0;
6350 tm.tm_sec = 0;
6351 tm.tm_isdst = -1;
6352 if (mktime (&tm) == (time_t)-1)
6353 exit (1);
6354 }
6355
6356 static void
6357 mktime_test1 (now)
6358 time_t now;
6359 {
6360 struct tm *lt;
6361 if ((lt = localtime (&now)) && mktime (lt) != now)
6362 exit (1);
6363 }
6364
6365 static void
6366 mktime_test (now)
6367 time_t now;
6368 {
6369 mktime_test1 (now);
6370 mktime_test1 ((time_t) (time_t_max - now));
6371 mktime_test1 ((time_t) (time_t_min + now));
6372 }
6373
6374 static void
6375 irix_6_4_bug ()
6376 {
6377 /* Based on code from Ariel Faigon. */
6378 struct tm tm;
6379 tm.tm_year = 96;
6380 tm.tm_mon = 3;
6381 tm.tm_mday = 0;
6382 tm.tm_hour = 0;
6383 tm.tm_min = 0;
6384 tm.tm_sec = 0;
6385 tm.tm_isdst = -1;
6386 mktime (&tm);
6387 if (tm.tm_mon != 2 || tm.tm_mday != 31)
6388 exit (1);
6389 }
6390
6391 static void
6392 bigtime_test (j)
6393 int j;
6394 {
6395 struct tm tm;
6396 time_t now;
6397 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
6398 now = mktime (&tm);
6399 if (now != (time_t) -1)
6400 {
6401 struct tm *lt = localtime (&now);
6402 if (! (lt
6403 && lt->tm_year == tm.tm_year
6404 && lt->tm_mon == tm.tm_mon
6405 && lt->tm_mday == tm.tm_mday
6406 && lt->tm_hour == tm.tm_hour
6407 && lt->tm_min == tm.tm_min
6408 && lt->tm_sec == tm.tm_sec
6409 && lt->tm_yday == tm.tm_yday
6410 && lt->tm_wday == tm.tm_wday
6411 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
6412 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
6413 exit (1);
6414 }
6415 }
6416
6417 int
6418 main ()
6419 {
6420 time_t t, delta;
6421 int i, j;
6422
6423 /* This test makes some buggy mktime implementations loop.
6424 Give up after 60 seconds; a mktime slower than that
6425 isn't worth using anyway. */
6426 alarm (60);
6427
6428 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
6429 continue;
6430 time_t_max--;
6431 if ((time_t) -1 < 0)
6432 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
6433 continue;
6434 delta = time_t_max / 997; /* a suitable prime number */
6435 for (i = 0; i < N_STRINGS; i++)
6436 {
6437 if (tz_strings[i])
6438 putenv (tz_strings[i]);
6439
6440 for (t = 0; t <= time_t_max - delta; t += delta)
6441 mktime_test (t);
6442 mktime_test ((time_t) 1);
6443 mktime_test ((time_t) (60 * 60));
6444 mktime_test ((time_t) (60 * 60 * 24));
6445
6446 for (j = 1; 0 < j; j *= 2)
6447 bigtime_test (j);
6448 bigtime_test (j - 1);
6449 }
6450 irix_6_4_bug ();
6451 spring_forward_gap ();
6452 exit (0);
6453 }
6454 _ACEOF
6455 rm -f conftest$ac_exeext
6456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6457 (eval $ac_link) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 (eval $ac_try) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 ac_cv_func_working_mktime=yes
6467 else
6468 echo "$as_me: program exited with status $ac_status" >&5
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6471
6472 ( exit $ac_status )
6473 ac_cv_func_working_mktime=no
6474 fi
6475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6476 fi
6477 fi
6478 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
6479 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
6480 if test $ac_cv_func_working_mktime = no; then
6481 case $LIBOBJS in
6482 "mktime.$ac_objext" | \
6483 *" mktime.$ac_objext" | \
6484 "mktime.$ac_objext "* | \
6485 *" mktime.$ac_objext "* ) ;;
6486 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
6487 esac
6488
6489 fi
6490
6491
6492
6493 for ac_header in stdlib.h unistd.h
6494 do
6495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497 echo "$as_me:$LINENO: checking for $ac_header" >&5
6498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 fi
6502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6504 else
6505 # Is the header compilable?
6506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6508 cat >conftest.$ac_ext <<_ACEOF
6509 /* confdefs.h. */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 $ac_includes_default
6515 #include <$ac_header>
6516 _ACEOF
6517 rm -f conftest.$ac_objext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6519 (eval $ac_compile) 2>conftest.er1
6520 ac_status=$?
6521 grep -v '^ *+' conftest.er1 >conftest.err
6522 rm -f conftest.er1
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -z "$ac_c_werror_flag"
6527 || test ! -s conftest.err'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try='test -s conftest.$ac_objext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 (eval $ac_try) 2>&5
6536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 ac_header_compiler=yes
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544 ac_header_compiler=no
6545 fi
6546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6548 echo "${ECHO_T}$ac_header_compiler" >&6
6549
6550 # Is the header present?
6551 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6553 cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h. */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 #include <$ac_header>
6560 _ACEOF
6561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } >/dev/null; then
6569 if test -s conftest.err; then
6570 ac_cpp_err=$ac_c_preproc_warn_flag
6571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6572 else
6573 ac_cpp_err=
6574 fi
6575 else
6576 ac_cpp_err=yes
6577 fi
6578 if test -z "$ac_cpp_err"; then
6579 ac_header_preproc=yes
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6583
6584 ac_header_preproc=no
6585 fi
6586 rm -f conftest.err conftest.$ac_ext
6587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6588 echo "${ECHO_T}$ac_header_preproc" >&6
6589
6590 # So? What about this header?
6591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6592 yes:no: )
6593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6597 ac_header_preproc=yes
6598 ;;
6599 no:yes:* )
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6612 (
6613 cat <<\_ASBOX
6614 ## -------------------------------------------------- ##
6615 ## Report this to launchd-bug-reports@group.apple.com ##
6616 ## -------------------------------------------------- ##
6617 _ASBOX
6618 ) |
6619 sed "s/^/$as_me: WARNING: /" >&2
6620 ;;
6621 esac
6622 echo "$as_me:$LINENO: checking for $ac_header" >&5
6623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627 eval "$as_ac_Header=\$ac_header_preproc"
6628 fi
6629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6631
6632 fi
6633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6634 cat >>confdefs.h <<_ACEOF
6635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6636 _ACEOF
6637
6638 fi
6639
6640 done
6641
6642
6643 for ac_func in getpagesize
6644 do
6645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6646 echo "$as_me:$LINENO: checking for $ac_func" >&5
6647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6648 if eval "test \"\${$as_ac_var+set}\" = set"; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6659 #define $ac_func innocuous_$ac_func
6660
6661 /* System header to define __stub macros and hopefully few prototypes,
6662 which can conflict with char $ac_func (); below.
6663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6664 <limits.h> exists even on freestanding compilers. */
6665
6666 #ifdef __STDC__
6667 # include <limits.h>
6668 #else
6669 # include <assert.h>
6670 #endif
6671
6672 #undef $ac_func
6673
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 #ifdef __cplusplus
6676 extern "C"
6677 {
6678 #endif
6679 /* We use char because int might match the return type of a gcc2
6680 builtin and then its argument prototype would still apply. */
6681 char $ac_func ();
6682 /* The GNU C library defines this for functions which it implements
6683 to always fail with ENOSYS. Some functions are actually named
6684 something starting with __ and the normal name is an alias. */
6685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6686 choke me
6687 #else
6688 char (*f) () = $ac_func;
6689 #endif
6690 #ifdef __cplusplus
6691 }
6692 #endif
6693
6694 int
6695 main ()
6696 {
6697 return f != $ac_func;
6698 ;
6699 return 0;
6700 }
6701 _ACEOF
6702 rm -f conftest.$ac_objext conftest$ac_exeext
6703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6704 (eval $ac_link) 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -z "$ac_c_werror_flag"
6712 || test ! -s conftest.err'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest$ac_exeext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 eval "$as_ac_var=yes"
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729 eval "$as_ac_var=no"
6730 fi
6731 rm -f conftest.err conftest.$ac_objext \
6732 conftest$ac_exeext conftest.$ac_ext
6733 fi
6734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6736 if test `eval echo '${'$as_ac_var'}'` = yes; then
6737 cat >>confdefs.h <<_ACEOF
6738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6739 _ACEOF
6740
6741 fi
6742 done
6743
6744 echo "$as_me:$LINENO: checking for working mmap" >&5
6745 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6746 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 if test "$cross_compiling" = yes; then
6750 ac_cv_func_mmap_fixed_mapped=no
6751 else
6752 cat >conftest.$ac_ext <<_ACEOF
6753 /* confdefs.h. */
6754 _ACEOF
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6758 $ac_includes_default
6759 /* malloc might have been renamed as rpl_malloc. */
6760 #undef malloc
6761
6762 /* Thanks to Mike Haertel and Jim Avera for this test.
6763 Here is a matrix of mmap possibilities:
6764 mmap private not fixed
6765 mmap private fixed at somewhere currently unmapped
6766 mmap private fixed at somewhere already mapped
6767 mmap shared not fixed
6768 mmap shared fixed at somewhere currently unmapped
6769 mmap shared fixed at somewhere already mapped
6770 For private mappings, we should verify that changes cannot be read()
6771 back from the file, nor mmap's back from the file at a different
6772 address. (There have been systems where private was not correctly
6773 implemented like the infamous i386 svr4.0, and systems where the
6774 VM page cache was not coherent with the file system buffer cache
6775 like early versions of FreeBSD and possibly contemporary NetBSD.)
6776 For shared mappings, we should conversely verify that changes get
6777 propagated back to all the places they're supposed to be.
6778
6779 Grep wants private fixed already mapped.
6780 The main things grep needs to know about mmap are:
6781 * does it exist and is it safe to write into the mmap'd area
6782 * how to use it (BSD variants) */
6783
6784 #include <fcntl.h>
6785 #include <sys/mman.h>
6786
6787 #if !STDC_HEADERS && !HAVE_STDLIB_H
6788 char *malloc ();
6789 #endif
6790
6791 /* This mess was copied from the GNU getpagesize.h. */
6792 #if !HAVE_GETPAGESIZE
6793 /* Assume that all systems that can run configure have sys/param.h. */
6794 # if !HAVE_SYS_PARAM_H
6795 # define HAVE_SYS_PARAM_H 1
6796 # endif
6797
6798 # ifdef _SC_PAGESIZE
6799 # define getpagesize() sysconf(_SC_PAGESIZE)
6800 # else /* no _SC_PAGESIZE */
6801 # if HAVE_SYS_PARAM_H
6802 # include <sys/param.h>
6803 # ifdef EXEC_PAGESIZE
6804 # define getpagesize() EXEC_PAGESIZE
6805 # else /* no EXEC_PAGESIZE */
6806 # ifdef NBPG
6807 # define getpagesize() NBPG * CLSIZE
6808 # ifndef CLSIZE
6809 # define CLSIZE 1
6810 # endif /* no CLSIZE */
6811 # else /* no NBPG */
6812 # ifdef NBPC
6813 # define getpagesize() NBPC
6814 # else /* no NBPC */
6815 # ifdef PAGESIZE
6816 # define getpagesize() PAGESIZE
6817 # endif /* PAGESIZE */
6818 # endif /* no NBPC */
6819 # endif /* no NBPG */
6820 # endif /* no EXEC_PAGESIZE */
6821 # else /* no HAVE_SYS_PARAM_H */
6822 # define getpagesize() 8192 /* punt totally */
6823 # endif /* no HAVE_SYS_PARAM_H */
6824 # endif /* no _SC_PAGESIZE */
6825
6826 #endif /* no HAVE_GETPAGESIZE */
6827
6828 int
6829 main ()
6830 {
6831 char *data, *data2, *data3;
6832 int i, pagesize;
6833 int fd;
6834
6835 pagesize = getpagesize ();
6836
6837 /* First, make a file with some known garbage in it. */
6838 data = (char *) malloc (pagesize);
6839 if (!data)
6840 exit (1);
6841 for (i = 0; i < pagesize; ++i)
6842 *(data + i) = rand ();
6843 umask (0);
6844 fd = creat ("conftest.mmap", 0600);
6845 if (fd < 0)
6846 exit (1);
6847 if (write (fd, data, pagesize) != pagesize)
6848 exit (1);
6849 close (fd);
6850
6851 /* Next, try to mmap the file at a fixed address which already has
6852 something else allocated at it. If we can, also make sure that
6853 we see the same garbage. */
6854 fd = open ("conftest.mmap", O_RDWR);
6855 if (fd < 0)
6856 exit (1);
6857 data2 = (char *) malloc (2 * pagesize);
6858 if (!data2)
6859 exit (1);
6860 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6861 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6862 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6863 exit (1);
6864 for (i = 0; i < pagesize; ++i)
6865 if (*(data + i) != *(data2 + i))
6866 exit (1);
6867
6868 /* Finally, make sure that changes to the mapped area do not
6869 percolate back to the file as seen by read(). (This is a bug on
6870 some variants of i386 svr4.0.) */
6871 for (i = 0; i < pagesize; ++i)
6872 *(data2 + i) = *(data2 + i) + 1;
6873 data3 = (char *) malloc (pagesize);
6874 if (!data3)
6875 exit (1);
6876 if (read (fd, data3, pagesize) != pagesize)
6877 exit (1);
6878 for (i = 0; i < pagesize; ++i)
6879 if (*(data + i) != *(data3 + i))
6880 exit (1);
6881 close (fd);
6882 exit (0);
6883 }
6884 _ACEOF
6885 rm -f conftest$ac_exeext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6887 (eval $ac_link) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 ac_cv_func_mmap_fixed_mapped=yes
6897 else
6898 echo "$as_me: program exited with status $ac_status" >&5
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 ( exit $ac_status )
6903 ac_cv_func_mmap_fixed_mapped=no
6904 fi
6905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6906 fi
6907 fi
6908 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6909 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6910 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6911
6912 cat >>confdefs.h <<\_ACEOF
6913 #define HAVE_MMAP 1
6914 _ACEOF
6915
6916 fi
6917 rm -f conftest.mmap
6918
6919
6920 for ac_header in stdlib.h
6921 do
6922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6924 echo "$as_me:$LINENO: checking for $ac_header" >&5
6925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 fi
6929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6931 else
6932 # Is the header compilable?
6933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6935 cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h. */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 $ac_includes_default
6942 #include <$ac_header>
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -z "$ac_c_werror_flag"
6954 || test ! -s conftest.err'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; } &&
6960 { ac_try='test -s conftest.$ac_objext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 ac_header_compiler=yes
6967 else
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971 ac_header_compiler=no
6972 fi
6973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6975 echo "${ECHO_T}$ac_header_compiler" >&6
6976
6977 # Is the header present?
6978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h. */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 #include <$ac_header>
6987 _ACEOF
6988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } >/dev/null; then
6996 if test -s conftest.err; then
6997 ac_cpp_err=$ac_c_preproc_warn_flag
6998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6999 else
7000 ac_cpp_err=
7001 fi
7002 else
7003 ac_cpp_err=yes
7004 fi
7005 if test -z "$ac_cpp_err"; then
7006 ac_header_preproc=yes
7007 else
7008 echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 ac_header_preproc=no
7012 fi
7013 rm -f conftest.err conftest.$ac_ext
7014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7015 echo "${ECHO_T}$ac_header_preproc" >&6
7016
7017 # So? What about this header?
7018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7019 yes:no: )
7020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7024 ac_header_preproc=yes
7025 ;;
7026 no:yes:* )
7027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7039 (
7040 cat <<\_ASBOX
7041 ## -------------------------------------------------- ##
7042 ## Report this to launchd-bug-reports@group.apple.com ##
7043 ## -------------------------------------------------- ##
7044 _ASBOX
7045 ) |
7046 sed "s/^/$as_me: WARNING: /" >&2
7047 ;;
7048 esac
7049 echo "$as_me:$LINENO: checking for $ac_header" >&5
7050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054 eval "$as_ac_Header=\$ac_header_preproc"
7055 fi
7056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7058
7059 fi
7060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7061 cat >>confdefs.h <<_ACEOF
7062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7063 _ACEOF
7064
7065 fi
7066
7067 done
7068
7069 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
7070 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
7071 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074 if test "$cross_compiling" = yes; then
7075 ac_cv_func_realloc_0_nonnull=no
7076 else
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h. */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 #if STDC_HEADERS || HAVE_STDLIB_H
7084 # include <stdlib.h>
7085 #else
7086 char *realloc ();
7087 #endif
7088
7089 int
7090 main ()
7091 {
7092 exit (realloc (0, 0) ? 0 : 1);
7093 ;
7094 return 0;
7095 }
7096 _ACEOF
7097 rm -f conftest$ac_exeext
7098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7099 (eval $ac_link) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 (eval $ac_try) 2>&5
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; }; then
7108 ac_cv_func_realloc_0_nonnull=yes
7109 else
7110 echo "$as_me: program exited with status $ac_status" >&5
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7113
7114 ( exit $ac_status )
7115 ac_cv_func_realloc_0_nonnull=no
7116 fi
7117 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7118 fi
7119 fi
7120 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
7121 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
7122 if test $ac_cv_func_realloc_0_nonnull = yes; then
7123
7124 cat >>confdefs.h <<\_ACEOF
7125 #define HAVE_REALLOC 1
7126 _ACEOF
7127
7128 else
7129 cat >>confdefs.h <<\_ACEOF
7130 #define HAVE_REALLOC 0
7131 _ACEOF
7132
7133 case $LIBOBJS in
7134 "realloc.$ac_objext" | \
7135 *" realloc.$ac_objext" | \
7136 "realloc.$ac_objext "* | \
7137 *" realloc.$ac_objext "* ) ;;
7138 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
7139 esac
7140
7141
7142 cat >>confdefs.h <<\_ACEOF
7143 #define realloc rpl_realloc
7144 _ACEOF
7145
7146 fi
7147
7148
7149
7150
7151
7152 for ac_header in sys/select.h sys/socket.h
7153 do
7154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7156 echo "$as_me:$LINENO: checking for $ac_header" >&5
7157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 fi
7161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7163 else
7164 # Is the header compilable?
7165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7167 cat >conftest.$ac_ext <<_ACEOF
7168 /* confdefs.h. */
7169 _ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173 $ac_includes_default
7174 #include <$ac_header>
7175 _ACEOF
7176 rm -f conftest.$ac_objext
7177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7178 (eval $ac_compile) 2>conftest.er1
7179 ac_status=$?
7180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try='test -z "$ac_c_werror_flag"
7186 || test ! -s conftest.err'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; } &&
7192 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7198 ac_header_compiler=yes
7199 else
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7202
7203 ac_header_compiler=no
7204 fi
7205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7207 echo "${ECHO_T}$ac_header_compiler" >&6
7208
7209 # Is the header present?
7210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7212 cat >conftest.$ac_ext <<_ACEOF
7213 /* confdefs.h. */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 #include <$ac_header>
7219 _ACEOF
7220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } >/dev/null; then
7228 if test -s conftest.err; then
7229 ac_cpp_err=$ac_c_preproc_warn_flag
7230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7231 else
7232 ac_cpp_err=
7233 fi
7234 else
7235 ac_cpp_err=yes
7236 fi
7237 if test -z "$ac_cpp_err"; then
7238 ac_header_preproc=yes
7239 else
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 ac_header_preproc=no
7244 fi
7245 rm -f conftest.err conftest.$ac_ext
7246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7247 echo "${ECHO_T}$ac_header_preproc" >&6
7248
7249 # So? What about this header?
7250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7251 yes:no: )
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7256 ac_header_preproc=yes
7257 ;;
7258 no:yes:* )
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7271 (
7272 cat <<\_ASBOX
7273 ## -------------------------------------------------- ##
7274 ## Report this to launchd-bug-reports@group.apple.com ##
7275 ## -------------------------------------------------- ##
7276 _ASBOX
7277 ) |
7278 sed "s/^/$as_me: WARNING: /" >&2
7279 ;;
7280 esac
7281 echo "$as_me:$LINENO: checking for $ac_header" >&5
7282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286 eval "$as_ac_Header=\$ac_header_preproc"
7287 fi
7288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7290
7291 fi
7292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7293 cat >>confdefs.h <<_ACEOF
7294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295 _ACEOF
7296
7297 fi
7298
7299 done
7300
7301 echo "$as_me:$LINENO: checking types of arguments for select" >&5
7302 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
7303 if test "${ac_cv_func_select_args+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7307 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
7308 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h. */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 $ac_includes_default
7316 #if HAVE_SYS_SELECT_H
7317 # include <sys/select.h>
7318 #endif
7319 #if HAVE_SYS_SOCKET_H
7320 # include <sys/socket.h>
7321 #endif
7322
7323 int
7324 main ()
7325 {
7326 extern int select ($ac_arg1,
7327 $ac_arg234, $ac_arg234, $ac_arg234,
7328 $ac_arg5);
7329 ;
7330 return 0;
7331 }
7332 _ACEOF
7333 rm -f conftest.$ac_objext
7334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7335 (eval $ac_compile) 2>conftest.er1
7336 ac_status=$?
7337 grep -v '^ *+' conftest.er1 >conftest.err
7338 rm -f conftest.er1
7339 cat conftest.err >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } &&
7342 { ac_try='test -z "$ac_c_werror_flag"
7343 || test ! -s conftest.err'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; } &&
7349 { ac_try='test -s conftest.$ac_objext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360 fi
7361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7362 done
7363 done
7364 done
7365 # Provide a safe default value.
7366 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
7367
7368 fi
7369 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
7370 echo "${ECHO_T}$ac_cv_func_select_args" >&6
7371 ac_save_IFS=$IFS; IFS=','
7372 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
7373 IFS=$ac_save_IFS
7374 shift
7375
7376 cat >>confdefs.h <<_ACEOF
7377 #define SELECT_TYPE_ARG1 $1
7378 _ACEOF
7379
7380
7381 cat >>confdefs.h <<_ACEOF
7382 #define SELECT_TYPE_ARG234 ($2)
7383 _ACEOF
7384
7385
7386 cat >>confdefs.h <<_ACEOF
7387 #define SELECT_TYPE_ARG5 ($3)
7388 _ACEOF
7389
7390 rm -f conftest*
7391
7392 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7393 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7394 if test "${ac_cv_type_signal+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 #include <sys/types.h>
7404 #include <signal.h>
7405 #ifdef signal
7406 # undef signal
7407 #endif
7408 #ifdef __cplusplus
7409 extern "C" void (*signal (int, void (*)(int)))(int);
7410 #else
7411 void (*signal ()) ();
7412 #endif
7413
7414 int
7415 main ()
7416 {
7417 int i;
7418 ;
7419 return 0;
7420 }
7421 _ACEOF
7422 rm -f conftest.$ac_objext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7424 (eval $ac_compile) 2>conftest.er1
7425 ac_status=$?
7426 grep -v '^ *+' conftest.er1 >conftest.err
7427 rm -f conftest.er1
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try='test -z "$ac_c_werror_flag"
7432 || test ! -s conftest.err'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; } &&
7438 { ac_try='test -s conftest.$ac_objext'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 (eval $ac_try) 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 ac_cv_type_signal=void
7445 else
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7448
7449 ac_cv_type_signal=int
7450 fi
7451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7452 fi
7453 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7454 echo "${ECHO_T}$ac_cv_type_signal" >&6
7455
7456 cat >>confdefs.h <<_ACEOF
7457 #define RETSIGTYPE $ac_cv_type_signal
7458 _ACEOF
7459
7460
7461 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7462 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
7463 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466 if test "$cross_compiling" = yes; then
7467 ac_cv_func_stat_empty_string_bug=yes
7468 else
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 $ac_includes_default
7476 int
7477 main ()
7478 {
7479 struct stat sbuf;
7480 exit (stat ("", &sbuf) ? 1 : 0);
7481 ;
7482 return 0;
7483 }
7484 _ACEOF
7485 rm -f conftest$ac_exeext
7486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7487 (eval $ac_link) 2>&5
7488 ac_status=$?
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_cv_func_stat_empty_string_bug=yes
7497 else
7498 echo "$as_me: program exited with status $ac_status" >&5
7499 echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7501
7502 ( exit $ac_status )
7503 ac_cv_func_stat_empty_string_bug=no
7504 fi
7505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7506 fi
7507 fi
7508 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7509 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
7510 if test $ac_cv_func_stat_empty_string_bug = yes; then
7511 case $LIBOBJS in
7512 "stat.$ac_objext" | \
7513 *" stat.$ac_objext" | \
7514 "stat.$ac_objext "* | \
7515 *" stat.$ac_objext "* ) ;;
7516 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
7517 esac
7518
7519
7520 cat >>confdefs.h <<_ACEOF
7521 #define HAVE_STAT_EMPTY_STRING_BUG 1
7522 _ACEOF
7523
7524 fi
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545 for ac_func in atexit dup2 gethostname gettimeofday memmove memset mkdir munmap rmdir select setenv socket strcasecmp strchr strdup strerror strrchr strstr strtol
7546 do
7547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7548 echo "$as_me:$LINENO: checking for $ac_func" >&5
7549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7550 if eval "test \"\${$as_ac_var+set}\" = set"; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7561 #define $ac_func innocuous_$ac_func
7562
7563 /* System header to define __stub macros and hopefully few prototypes,
7564 which can conflict with char $ac_func (); below.
7565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7566 <limits.h> exists even on freestanding compilers. */
7567
7568 #ifdef __STDC__
7569 # include <limits.h>
7570 #else
7571 # include <assert.h>
7572 #endif
7573
7574 #undef $ac_func
7575
7576 /* Override any gcc2 internal prototype to avoid an error. */
7577 #ifdef __cplusplus
7578 extern "C"
7579 {
7580 #endif
7581 /* We use char because int might match the return type of a gcc2
7582 builtin and then its argument prototype would still apply. */
7583 char $ac_func ();
7584 /* The GNU C library defines this for functions which it implements
7585 to always fail with ENOSYS. Some functions are actually named
7586 something starting with __ and the normal name is an alias. */
7587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7588 choke me
7589 #else
7590 char (*f) () = $ac_func;
7591 #endif
7592 #ifdef __cplusplus
7593 }
7594 #endif
7595
7596 int
7597 main ()
7598 {
7599 return f != $ac_func;
7600 ;
7601 return 0;
7602 }
7603 _ACEOF
7604 rm -f conftest.$ac_objext conftest$ac_exeext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606 (eval $ac_link) 2>conftest.er1
7607 ac_status=$?
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -z "$ac_c_werror_flag"
7614 || test ! -s conftest.err'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 (eval $ac_try) 2>&5
7617 ac_status=$?
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest$ac_exeext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 eval "$as_ac_var=yes"
7627 else
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7630
7631 eval "$as_ac_var=no"
7632 fi
7633 rm -f conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 fi
7636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7638 if test `eval echo '${'$as_ac_var'}'` = yes; then
7639 cat >>confdefs.h <<_ACEOF
7640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7641 _ACEOF
7642
7643 fi
7644 done
7645
7646
7647 ac_config_files="$ac_config_files Makefile src/Makefile"
7648
7649
7650
7651
7652 if test "$RC_ProjectName" = launchd_libs; then
7653 LIBS_ONLY_TRUE=
7654 LIBS_ONLY_FALSE='#'
7655 else
7656 LIBS_ONLY_TRUE='#'
7657 LIBS_ONLY_FALSE=
7658 fi
7659
7660
7661 cat >confcache <<\_ACEOF
7662 # This file is a shell script that caches the results of configure
7663 # tests run on this system so they can be shared between configure
7664 # scripts and configure runs, see configure's option --config-cache.
7665 # It is not useful on other systems. If it contains results you don't
7666 # want to keep, you may remove or edit it.
7667 #
7668 # config.status only pays attention to the cache file if you give it
7669 # the --recheck option to rerun configure.
7670 #
7671 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7672 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7673 # following values.
7674
7675 _ACEOF
7676
7677 # The following way of writing the cache mishandles newlines in values,
7678 # but we know of no workaround that is simple, portable, and efficient.
7679 # So, don't put newlines in cache variables' values.
7680 # Ultrix sh set writes to stderr and can't be redirected directly,
7681 # and sets the high bit in the cache file unless we assign to the vars.
7682 {
7683 (set) 2>&1 |
7684 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7685 *ac_space=\ *)
7686 # `set' does not quote correctly, so add quotes (double-quote
7687 # substitution turns \\\\ into \\, and sed turns \\ into \).
7688 sed -n \
7689 "s/'/'\\\\''/g;
7690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7691 ;;
7692 *)
7693 # `set' quotes correctly as required by POSIX, so do not add quotes.
7694 sed -n \
7695 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7696 ;;
7697 esac;
7698 } |
7699 sed '
7700 t clear
7701 : clear
7702 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7703 t end
7704 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7705 : end' >>confcache
7706 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7707 if test -w $cache_file; then
7708 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7709 cat confcache >$cache_file
7710 else
7711 echo "not updating unwritable cache $cache_file"
7712 fi
7713 fi
7714 rm -f confcache
7715
7716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7717 # Let make expand exec_prefix.
7718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7719
7720 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7721 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7722 # trailing colons and then remove the whole line if VPATH becomes empty
7723 # (actually we leave an empty line to preserve line numbers).
7724 if test "x$srcdir" = x.; then
7725 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7726 s/:*\$(srcdir):*/:/;
7727 s/:*\${srcdir}:*/:/;
7728 s/:*@srcdir@:*/:/;
7729 s/^\([^=]*=[ ]*\):*/\1/;
7730 s/:*$//;
7731 s/^[^=]*=[ ]*$//;
7732 }'
7733 fi
7734
7735 DEFS=-DHAVE_CONFIG_H
7736
7737 ac_libobjs=
7738 ac_ltlibobjs=
7739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7740 # 1. Remove the extension, and $U if already installed.
7741 ac_i=`echo "$ac_i" |
7742 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7743 # 2. Add them.
7744 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7745 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7746 done
7747 LIBOBJS=$ac_libobjs
7748
7749 LTLIBOBJS=$ac_ltlibobjs
7750
7751
7752 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7753 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7754 Usually this means the macro was only invoked conditionally." >&5
7755 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7756 Usually this means the macro was only invoked conditionally." >&2;}
7757 { (exit 1); exit 1; }; }
7758 fi
7759 if test -z "${LIBS_ONLY_TRUE}" && test -z "${LIBS_ONLY_FALSE}"; then
7760 { { echo "$as_me:$LINENO: error: conditional \"LIBS_ONLY\" was never defined.
7761 Usually this means the macro was only invoked conditionally." >&5
7762 echo "$as_me: error: conditional \"LIBS_ONLY\" was never defined.
7763 Usually this means the macro was only invoked conditionally." >&2;}
7764 { (exit 1); exit 1; }; }
7765 fi
7766
7767 : ${CONFIG_STATUS=./config.status}
7768 ac_clean_files_save=$ac_clean_files
7769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7770 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7771 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7772 cat >$CONFIG_STATUS <<_ACEOF
7773 #! $SHELL
7774 # Generated by $as_me.
7775 # Run this file to recreate the current configuration.
7776 # Compiler output produced by configure, useful for debugging
7777 # configure, is in config.log if it exists.
7778
7779 debug=false
7780 ac_cs_recheck=false
7781 ac_cs_silent=false
7782 SHELL=\${CONFIG_SHELL-$SHELL}
7783 _ACEOF
7784
7785 cat >>$CONFIG_STATUS <<\_ACEOF
7786 ## --------------------- ##
7787 ## M4sh Initialization. ##
7788 ## --------------------- ##
7789
7790 # Be Bourne compatible
7791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7792 emulate sh
7793 NULLCMD=:
7794 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7795 # is contrary to our usage. Disable this feature.
7796 alias -g '${1+"$@"}'='"$@"'
7797 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7798 set -o posix
7799 fi
7800 DUALCASE=1; export DUALCASE # for MKS sh
7801
7802 # Support unset when possible.
7803 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7804 as_unset=unset
7805 else
7806 as_unset=false
7807 fi
7808
7809
7810 # Work around bugs in pre-3.0 UWIN ksh.
7811 $as_unset ENV MAIL MAILPATH
7812 PS1='$ '
7813 PS2='> '
7814 PS4='+ '
7815
7816 # NLS nuisances.
7817 for as_var in \
7818 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7819 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7820 LC_TELEPHONE LC_TIME
7821 do
7822 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7823 eval $as_var=C; export $as_var
7824 else
7825 $as_unset $as_var
7826 fi
7827 done
7828
7829 # Required to use basename.
7830 if expr a : '\(a\)' >/dev/null 2>&1; then
7831 as_expr=expr
7832 else
7833 as_expr=false
7834 fi
7835
7836 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7837 as_basename=basename
7838 else
7839 as_basename=false
7840 fi
7841
7842
7843 # Name of the executable.
7844 as_me=`$as_basename "$0" ||
7845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7846 X"$0" : 'X\(//\)$' \| \
7847 X"$0" : 'X\(/\)$' \| \
7848 . : '\(.\)' 2>/dev/null ||
7849 echo X/"$0" |
7850 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7851 /^X\/\(\/\/\)$/{ s//\1/; q; }
7852 /^X\/\(\/\).*/{ s//\1/; q; }
7853 s/.*/./; q'`
7854
7855
7856 # PATH needs CR, and LINENO needs CR and PATH.
7857 # Avoid depending upon Character Ranges.
7858 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7859 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7860 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7861 as_cr_digits='0123456789'
7862 as_cr_alnum=$as_cr_Letters$as_cr_digits
7863
7864 # The user is always right.
7865 if test "${PATH_SEPARATOR+set}" != set; then
7866 echo "#! /bin/sh" >conf$$.sh
7867 echo "exit 0" >>conf$$.sh
7868 chmod +x conf$$.sh
7869 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7870 PATH_SEPARATOR=';'
7871 else
7872 PATH_SEPARATOR=:
7873 fi
7874 rm -f conf$$.sh
7875 fi
7876
7877
7878 as_lineno_1=$LINENO
7879 as_lineno_2=$LINENO
7880 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7881 test "x$as_lineno_1" != "x$as_lineno_2" &&
7882 test "x$as_lineno_3" = "x$as_lineno_2" || {
7883 # Find who we are. Look in the path if we contain no path at all
7884 # relative or not.
7885 case $0 in
7886 *[\\/]* ) as_myself=$0 ;;
7887 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7889 do
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
7892 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7893 done
7894
7895 ;;
7896 esac
7897 # We did not find ourselves, most probably we were run as `sh COMMAND'
7898 # in which case we are not to be found in the path.
7899 if test "x$as_myself" = x; then
7900 as_myself=$0
7901 fi
7902 if test ! -f "$as_myself"; then
7903 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7904 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7905 { (exit 1); exit 1; }; }
7906 fi
7907 case $CONFIG_SHELL in
7908 '')
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7911 do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for as_base in sh bash ksh sh5; do
7915 case $as_dir in
7916 /*)
7917 if ("$as_dir/$as_base" -c '
7918 as_lineno_1=$LINENO
7919 as_lineno_2=$LINENO
7920 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7921 test "x$as_lineno_1" != "x$as_lineno_2" &&
7922 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7923 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7924 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7925 CONFIG_SHELL=$as_dir/$as_base
7926 export CONFIG_SHELL
7927 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7928 fi;;
7929 esac
7930 done
7931 done
7932 ;;
7933 esac
7934
7935 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7936 # uniformly replaced by the line number. The first 'sed' inserts a
7937 # line-number line before each line; the second 'sed' does the real
7938 # work. The second script uses 'N' to pair each line-number line
7939 # with the numbered line, and appends trailing '-' during
7940 # substitution so that $LINENO is not a special case at line end.
7941 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7942 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7943 sed '=' <$as_myself |
7944 sed '
7945 N
7946 s,$,-,
7947 : loop
7948 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7949 t loop
7950 s,-$,,
7951 s,^['$as_cr_digits']*\n,,
7952 ' >$as_me.lineno &&
7953 chmod +x $as_me.lineno ||
7954 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7955 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7956 { (exit 1); exit 1; }; }
7957
7958 # Don't try to exec as it changes $[0], causing all sort of problems
7959 # (the dirname of $[0] is not the place where we might find the
7960 # original and so on. Autoconf is especially sensible to this).
7961 . ./$as_me.lineno
7962 # Exit status is that of the last command.
7963 exit
7964 }
7965
7966
7967 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7968 *c*,-n*) ECHO_N= ECHO_C='
7969 ' ECHO_T=' ' ;;
7970 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7971 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7972 esac
7973
7974 if expr a : '\(a\)' >/dev/null 2>&1; then
7975 as_expr=expr
7976 else
7977 as_expr=false
7978 fi
7979
7980 rm -f conf$$ conf$$.exe conf$$.file
7981 echo >conf$$.file
7982 if ln -s conf$$.file conf$$ 2>/dev/null; then
7983 # We could just check for DJGPP; but this test a) works b) is more generic
7984 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7985 if test -f conf$$.exe; then
7986 # Don't use ln at all; we don't have any links
7987 as_ln_s='cp -p'
7988 else
7989 as_ln_s='ln -s'
7990 fi
7991 elif ln conf$$.file conf$$ 2>/dev/null; then
7992 as_ln_s=ln
7993 else
7994 as_ln_s='cp -p'
7995 fi
7996 rm -f conf$$ conf$$.exe conf$$.file
7997
7998 if mkdir -p . 2>/dev/null; then
7999 as_mkdir_p=:
8000 else
8001 test -d ./-p && rmdir ./-p
8002 as_mkdir_p=false
8003 fi
8004
8005 as_executable_p="test -f"
8006
8007 # Sed expression to map a string onto a valid CPP name.
8008 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8009
8010 # Sed expression to map a string onto a valid variable name.
8011 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8012
8013
8014 # IFS
8015 # We need space, tab and new line, in precisely that order.
8016 as_nl='
8017 '
8018 IFS=" $as_nl"
8019
8020 # CDPATH.
8021 $as_unset CDPATH
8022
8023 exec 6>&1
8024
8025 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8026 # report actual input values of CONFIG_FILES etc. instead of their
8027 # values after options handling. Logging --version etc. is OK.
8028 exec 5>>config.log
8029 {
8030 echo
8031 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8032 ## Running $as_me. ##
8033 _ASBOX
8034 } >&5
8035 cat >&5 <<_CSEOF
8036
8037 This file was extended by launchd $as_me 1.0, which was
8038 generated by GNU Autoconf 2.59. Invocation command line was
8039
8040 CONFIG_FILES = $CONFIG_FILES
8041 CONFIG_HEADERS = $CONFIG_HEADERS
8042 CONFIG_LINKS = $CONFIG_LINKS
8043 CONFIG_COMMANDS = $CONFIG_COMMANDS
8044 $ $0 $@
8045
8046 _CSEOF
8047 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8048 echo >&5
8049 _ACEOF
8050
8051 # Files that config.status was made for.
8052 if test -n "$ac_config_files"; then
8053 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8054 fi
8055
8056 if test -n "$ac_config_headers"; then
8057 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8058 fi
8059
8060 if test -n "$ac_config_links"; then
8061 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8062 fi
8063
8064 if test -n "$ac_config_commands"; then
8065 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8066 fi
8067
8068 cat >>$CONFIG_STATUS <<\_ACEOF
8069
8070 ac_cs_usage="\
8071 \`$as_me' instantiates files from templates according to the
8072 current configuration.
8073
8074 Usage: $0 [OPTIONS] [FILE]...
8075
8076 -h, --help print this help, then exit
8077 -V, --version print version number, then exit
8078 -q, --quiet do not print progress messages
8079 -d, --debug don't remove temporary files
8080 --recheck update $as_me by reconfiguring in the same conditions
8081 --file=FILE[:TEMPLATE]
8082 instantiate the configuration file FILE
8083 --header=FILE[:TEMPLATE]
8084 instantiate the configuration header FILE
8085
8086 Configuration files:
8087 $config_files
8088
8089 Configuration headers:
8090 $config_headers
8091
8092 Configuration commands:
8093 $config_commands
8094
8095 Report bugs to <bug-autoconf@gnu.org>."
8096 _ACEOF
8097
8098 cat >>$CONFIG_STATUS <<_ACEOF
8099 ac_cs_version="\\
8100 launchd config.status 1.0
8101 configured by $0, generated by GNU Autoconf 2.59,
8102 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8103
8104 Copyright (C) 2003 Free Software Foundation, Inc.
8105 This config.status script is free software; the Free Software Foundation
8106 gives unlimited permission to copy, distribute and modify it."
8107 srcdir=$srcdir
8108 INSTALL="$INSTALL"
8109 _ACEOF
8110
8111 cat >>$CONFIG_STATUS <<\_ACEOF
8112 # If no file are specified by the user, then we need to provide default
8113 # value. By we need to know if files were specified by the user.
8114 ac_need_defaults=:
8115 while test $# != 0
8116 do
8117 case $1 in
8118 --*=*)
8119 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8120 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8121 ac_shift=:
8122 ;;
8123 -*)
8124 ac_option=$1
8125 ac_optarg=$2
8126 ac_shift=shift
8127 ;;
8128 *) # This is not an option, so the user has probably given explicit
8129 # arguments.
8130 ac_option=$1
8131 ac_need_defaults=false;;
8132 esac
8133
8134 case $ac_option in
8135 # Handling of the options.
8136 _ACEOF
8137 cat >>$CONFIG_STATUS <<\_ACEOF
8138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8139 ac_cs_recheck=: ;;
8140 --version | --vers* | -V )
8141 echo "$ac_cs_version"; exit 0 ;;
8142 --he | --h)
8143 # Conflict between --help and --header
8144 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8145 Try \`$0 --help' for more information." >&5
8146 echo "$as_me: error: ambiguous option: $1
8147 Try \`$0 --help' for more information." >&2;}
8148 { (exit 1); exit 1; }; };;
8149 --help | --hel | -h )
8150 echo "$ac_cs_usage"; exit 0 ;;
8151 --debug | --d* | -d )
8152 debug=: ;;
8153 --file | --fil | --fi | --f )
8154 $ac_shift
8155 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8156 ac_need_defaults=false;;
8157 --header | --heade | --head | --hea )
8158 $ac_shift
8159 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8160 ac_need_defaults=false;;
8161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8162 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8163 ac_cs_silent=: ;;
8164
8165 # This is an error.
8166 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8167 Try \`$0 --help' for more information." >&5
8168 echo "$as_me: error: unrecognized option: $1
8169 Try \`$0 --help' for more information." >&2;}
8170 { (exit 1); exit 1; }; } ;;
8171
8172 *) ac_config_targets="$ac_config_targets $1" ;;
8173
8174 esac
8175 shift
8176 done
8177
8178 ac_configure_extra_args=
8179
8180 if $ac_cs_silent; then
8181 exec 6>/dev/null
8182 ac_configure_extra_args="$ac_configure_extra_args --silent"
8183 fi
8184
8185 _ACEOF
8186 cat >>$CONFIG_STATUS <<_ACEOF
8187 if \$ac_cs_recheck; then
8188 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8189 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8190 fi
8191
8192 _ACEOF
8193
8194 cat >>$CONFIG_STATUS <<_ACEOF
8195 #
8196 # INIT-COMMANDS section.
8197 #
8198
8199 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8200
8201 _ACEOF
8202
8203
8204
8205 cat >>$CONFIG_STATUS <<\_ACEOF
8206 for ac_config_target in $ac_config_targets
8207 do
8208 case "$ac_config_target" in
8209 # Handling of arguments.
8210 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8211 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8212 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8213 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
8214 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8215 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8216 { (exit 1); exit 1; }; };;
8217 esac
8218 done
8219
8220 # If the user did not use the arguments to specify the items to instantiate,
8221 # then the envvar interface is used. Set only those that are not.
8222 # We use the long form for the default assignment because of an extremely
8223 # bizarre bug on SunOS 4.1.3.
8224 if $ac_need_defaults; then
8225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8228 fi
8229
8230 # Have a temporary directory for convenience. Make it in the build tree
8231 # simply because there is no reason to put it here, and in addition,
8232 # creating and moving files from /tmp can sometimes cause problems.
8233 # Create a temporary directory, and hook for its removal unless debugging.
8234 $debug ||
8235 {
8236 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8237 trap '{ (exit 1); exit 1; }' 1 2 13 15
8238 }
8239
8240 # Create a (secure) tmp directory for tmp files.
8241
8242 {
8243 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8244 test -n "$tmp" && test -d "$tmp"
8245 } ||
8246 {
8247 tmp=./confstat$$-$RANDOM
8248 (umask 077 && mkdir $tmp)
8249 } ||
8250 {
8251 echo "$me: cannot create a temporary directory in ." >&2
8252 { (exit 1); exit 1; }
8253 }
8254
8255 _ACEOF
8256
8257 cat >>$CONFIG_STATUS <<_ACEOF
8258
8259 #
8260 # CONFIG_FILES section.
8261 #
8262
8263 # No need to generate the scripts if there are no CONFIG_FILES.
8264 # This happens for instance when ./config.status config.h
8265 if test -n "\$CONFIG_FILES"; then
8266 # Protect against being on the right side of a sed subst in config.status.
8267 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8268 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8269 s,@SHELL@,$SHELL,;t t
8270 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8271 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8272 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8273 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8274 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8275 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8276 s,@exec_prefix@,$exec_prefix,;t t
8277 s,@prefix@,$prefix,;t t
8278 s,@program_transform_name@,$program_transform_name,;t t
8279 s,@bindir@,$bindir,;t t
8280 s,@sbindir@,$sbindir,;t t
8281 s,@libexecdir@,$libexecdir,;t t
8282 s,@datadir@,$datadir,;t t
8283 s,@sysconfdir@,$sysconfdir,;t t
8284 s,@sharedstatedir@,$sharedstatedir,;t t
8285 s,@localstatedir@,$localstatedir,;t t
8286 s,@libdir@,$libdir,;t t
8287 s,@includedir@,$includedir,;t t
8288 s,@oldincludedir@,$oldincludedir,;t t
8289 s,@infodir@,$infodir,;t t
8290 s,@mandir@,$mandir,;t t
8291 s,@build_alias@,$build_alias,;t t
8292 s,@host_alias@,$host_alias,;t t
8293 s,@target_alias@,$target_alias,;t t
8294 s,@DEFS@,$DEFS,;t t
8295 s,@ECHO_C@,$ECHO_C,;t t
8296 s,@ECHO_N@,$ECHO_N,;t t
8297 s,@ECHO_T@,$ECHO_T,;t t
8298 s,@LIBS@,$LIBS,;t t
8299 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8300 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8301 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8302 s,@PACKAGE@,$PACKAGE,;t t
8303 s,@VERSION@,$VERSION,;t t
8304 s,@ACLOCAL@,$ACLOCAL,;t t
8305 s,@AUTOCONF@,$AUTOCONF,;t t
8306 s,@AUTOMAKE@,$AUTOMAKE,;t t
8307 s,@AUTOHEADER@,$AUTOHEADER,;t t
8308 s,@MAKEINFO@,$MAKEINFO,;t t
8309 s,@AMTAR@,$AMTAR,;t t
8310 s,@install_sh@,$install_sh,;t t
8311 s,@STRIP@,$STRIP,;t t
8312 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8313 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8314 s,@AWK@,$AWK,;t t
8315 s,@SET_MAKE@,$SET_MAKE,;t t
8316 s,@CC@,$CC,;t t
8317 s,@CFLAGS@,$CFLAGS,;t t
8318 s,@LDFLAGS@,$LDFLAGS,;t t
8319 s,@CPPFLAGS@,$CPPFLAGS,;t t
8320 s,@ac_ct_CC@,$ac_ct_CC,;t t
8321 s,@EXEEXT@,$EXEEXT,;t t
8322 s,@OBJEXT@,$OBJEXT,;t t
8323 s,@DEPDIR@,$DEPDIR,;t t
8324 s,@am__include@,$am__include,;t t
8325 s,@am__quote@,$am__quote,;t t
8326 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8327 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8328 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8329 s,@CCDEPMODE@,$CCDEPMODE,;t t
8330 s,@RANLIB@,$RANLIB,;t t
8331 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8332 s,@CPP@,$CPP,;t t
8333 s,@EGREP@,$EGREP,;t t
8334 s,@ALLOCA@,$ALLOCA,;t t
8335 s,@LIBOBJS@,$LIBOBJS,;t t
8336 s,@LIBS_ONLY_TRUE@,$LIBS_ONLY_TRUE,;t t
8337 s,@LIBS_ONLY_FALSE@,$LIBS_ONLY_FALSE,;t t
8338 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8339 CEOF
8340
8341 _ACEOF
8342
8343 cat >>$CONFIG_STATUS <<\_ACEOF
8344 # Split the substitutions into bite-sized pieces for seds with
8345 # small command number limits, like on Digital OSF/1 and HP-UX.
8346 ac_max_sed_lines=48
8347 ac_sed_frag=1 # Number of current file.
8348 ac_beg=1 # First line for current file.
8349 ac_end=$ac_max_sed_lines # Line after last line for current file.
8350 ac_more_lines=:
8351 ac_sed_cmds=
8352 while $ac_more_lines; do
8353 if test $ac_beg -gt 1; then
8354 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8355 else
8356 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8357 fi
8358 if test ! -s $tmp/subs.frag; then
8359 ac_more_lines=false
8360 else
8361 # The purpose of the label and of the branching condition is to
8362 # speed up the sed processing (if there are no `@' at all, there
8363 # is no need to browse any of the substitutions).
8364 # These are the two extra sed commands mentioned above.
8365 (echo ':t
8366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8367 if test -z "$ac_sed_cmds"; then
8368 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8369 else
8370 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8371 fi
8372 ac_sed_frag=`expr $ac_sed_frag + 1`
8373 ac_beg=$ac_end
8374 ac_end=`expr $ac_end + $ac_max_sed_lines`
8375 fi
8376 done
8377 if test -z "$ac_sed_cmds"; then
8378 ac_sed_cmds=cat
8379 fi
8380 fi # test -n "$CONFIG_FILES"
8381
8382 _ACEOF
8383 cat >>$CONFIG_STATUS <<\_ACEOF
8384 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8385 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8386 case $ac_file in
8387 - | *:- | *:-:* ) # input from stdin
8388 cat >$tmp/stdin
8389 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8390 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8391 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8392 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8393 * ) ac_file_in=$ac_file.in ;;
8394 esac
8395
8396 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8397 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8399 X"$ac_file" : 'X\(//\)[^/]' \| \
8400 X"$ac_file" : 'X\(//\)$' \| \
8401 X"$ac_file" : 'X\(/\)' \| \
8402 . : '\(.\)' 2>/dev/null ||
8403 echo X"$ac_file" |
8404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8405 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8406 /^X\(\/\/\)$/{ s//\1/; q; }
8407 /^X\(\/\).*/{ s//\1/; q; }
8408 s/.*/./; q'`
8409 { if $as_mkdir_p; then
8410 mkdir -p "$ac_dir"
8411 else
8412 as_dir="$ac_dir"
8413 as_dirs=
8414 while test ! -d "$as_dir"; do
8415 as_dirs="$as_dir $as_dirs"
8416 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8418 X"$as_dir" : 'X\(//\)[^/]' \| \
8419 X"$as_dir" : 'X\(//\)$' \| \
8420 X"$as_dir" : 'X\(/\)' \| \
8421 . : '\(.\)' 2>/dev/null ||
8422 echo X"$as_dir" |
8423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8425 /^X\(\/\/\)$/{ s//\1/; q; }
8426 /^X\(\/\).*/{ s//\1/; q; }
8427 s/.*/./; q'`
8428 done
8429 test ! -n "$as_dirs" || mkdir $as_dirs
8430 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8431 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8432 { (exit 1); exit 1; }; }; }
8433
8434 ac_builddir=.
8435
8436 if test "$ac_dir" != .; then
8437 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8438 # A "../" for each directory in $ac_dir_suffix.
8439 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8440 else
8441 ac_dir_suffix= ac_top_builddir=
8442 fi
8443
8444 case $srcdir in
8445 .) # No --srcdir option. We are building in place.
8446 ac_srcdir=.
8447 if test -z "$ac_top_builddir"; then
8448 ac_top_srcdir=.
8449 else
8450 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8451 fi ;;
8452 [\\/]* | ?:[\\/]* ) # Absolute path.
8453 ac_srcdir=$srcdir$ac_dir_suffix;
8454 ac_top_srcdir=$srcdir ;;
8455 *) # Relative path.
8456 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8457 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8458 esac
8459
8460 # Do not use `cd foo && pwd` to compute absolute paths, because
8461 # the directories may not exist.
8462 case `pwd` in
8463 .) ac_abs_builddir="$ac_dir";;
8464 *)
8465 case "$ac_dir" in
8466 .) ac_abs_builddir=`pwd`;;
8467 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8468 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8469 esac;;
8470 esac
8471 case $ac_abs_builddir in
8472 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8473 *)
8474 case ${ac_top_builddir}. in
8475 .) ac_abs_top_builddir=$ac_abs_builddir;;
8476 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8477 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8478 esac;;
8479 esac
8480 case $ac_abs_builddir in
8481 .) ac_abs_srcdir=$ac_srcdir;;
8482 *)
8483 case $ac_srcdir in
8484 .) ac_abs_srcdir=$ac_abs_builddir;;
8485 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8486 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8487 esac;;
8488 esac
8489 case $ac_abs_builddir in
8490 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8491 *)
8492 case $ac_top_srcdir in
8493 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8494 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8495 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8496 esac;;
8497 esac
8498
8499
8500 case $INSTALL in
8501 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8502 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8503 esac
8504
8505 if test x"$ac_file" != x-; then
8506 { echo "$as_me:$LINENO: creating $ac_file" >&5
8507 echo "$as_me: creating $ac_file" >&6;}
8508 rm -f "$ac_file"
8509 fi
8510 # Let's still pretend it is `configure' which instantiates (i.e., don't
8511 # use $as_me), people would be surprised to read:
8512 # /* config.h. Generated by config.status. */
8513 if test x"$ac_file" = x-; then
8514 configure_input=
8515 else
8516 configure_input="$ac_file. "
8517 fi
8518 configure_input=$configure_input"Generated from `echo $ac_file_in |
8519 sed 's,.*/,,'` by configure."
8520
8521 # First look for the input files in the build tree, otherwise in the
8522 # src tree.
8523 ac_file_inputs=`IFS=:
8524 for f in $ac_file_in; do
8525 case $f in
8526 -) echo $tmp/stdin ;;
8527 [\\/$]*)
8528 # Absolute (can't be DOS-style, as IFS=:)
8529 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8530 echo "$as_me: error: cannot find input file: $f" >&2;}
8531 { (exit 1); exit 1; }; }
8532 echo "$f";;
8533 *) # Relative
8534 if test -f "$f"; then
8535 # Build tree
8536 echo "$f"
8537 elif test -f "$srcdir/$f"; then
8538 # Source tree
8539 echo "$srcdir/$f"
8540 else
8541 # /dev/null tree
8542 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8543 echo "$as_me: error: cannot find input file: $f" >&2;}
8544 { (exit 1); exit 1; }; }
8545 fi;;
8546 esac
8547 done` || { (exit 1); exit 1; }
8548 _ACEOF
8549 cat >>$CONFIG_STATUS <<_ACEOF
8550 sed "$ac_vpsub
8551 $extrasub
8552 _ACEOF
8553 cat >>$CONFIG_STATUS <<\_ACEOF
8554 :t
8555 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8556 s,@configure_input@,$configure_input,;t t
8557 s,@srcdir@,$ac_srcdir,;t t
8558 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8559 s,@top_srcdir@,$ac_top_srcdir,;t t
8560 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8561 s,@builddir@,$ac_builddir,;t t
8562 s,@abs_builddir@,$ac_abs_builddir,;t t
8563 s,@top_builddir@,$ac_top_builddir,;t t
8564 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8565 s,@INSTALL@,$ac_INSTALL,;t t
8566 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8567 rm -f $tmp/stdin
8568 if test x"$ac_file" != x-; then
8569 mv $tmp/out $ac_file
8570 else
8571 cat $tmp/out
8572 rm -f $tmp/out
8573 fi
8574
8575 done
8576 _ACEOF
8577 cat >>$CONFIG_STATUS <<\_ACEOF
8578
8579 #
8580 # CONFIG_HEADER section.
8581 #
8582
8583 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8584 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8585 #
8586 # ac_d sets the value in "#define NAME VALUE" lines.
8587 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8588 ac_dB='[ ].*$,\1#\2'
8589 ac_dC=' '
8590 ac_dD=',;t'
8591 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8592 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8593 ac_uB='$,\1#\2define\3'
8594 ac_uC=' '
8595 ac_uD=',;t'
8596
8597 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8599 case $ac_file in
8600 - | *:- | *:-:* ) # input from stdin
8601 cat >$tmp/stdin
8602 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8604 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8605 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8606 * ) ac_file_in=$ac_file.in ;;
8607 esac
8608
8609 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8610 echo "$as_me: creating $ac_file" >&6;}
8611
8612 # First look for the input files in the build tree, otherwise in the
8613 # src tree.
8614 ac_file_inputs=`IFS=:
8615 for f in $ac_file_in; do
8616 case $f in
8617 -) echo $tmp/stdin ;;
8618 [\\/$]*)
8619 # Absolute (can't be DOS-style, as IFS=:)
8620 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8621 echo "$as_me: error: cannot find input file: $f" >&2;}
8622 { (exit 1); exit 1; }; }
8623 # Do quote $f, to prevent DOS paths from being IFS'd.
8624 echo "$f";;
8625 *) # Relative
8626 if test -f "$f"; then
8627 # Build tree
8628 echo "$f"
8629 elif test -f "$srcdir/$f"; then
8630 # Source tree
8631 echo "$srcdir/$f"
8632 else
8633 # /dev/null tree
8634 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8635 echo "$as_me: error: cannot find input file: $f" >&2;}
8636 { (exit 1); exit 1; }; }
8637 fi;;
8638 esac
8639 done` || { (exit 1); exit 1; }
8640 # Remove the trailing spaces.
8641 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8642
8643 _ACEOF
8644
8645 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8646 # `conftest.undefs', that substitutes the proper values into
8647 # config.h.in to produce config.h. The first handles `#define'
8648 # templates, and the second `#undef' templates.
8649 # And first: Protect against being on the right side of a sed subst in
8650 # config.status. Protect against being in an unquoted here document
8651 # in config.status.
8652 rm -f conftest.defines conftest.undefs
8653 # Using a here document instead of a string reduces the quoting nightmare.
8654 # Putting comments in sed scripts is not portable.
8655 #
8656 # `end' is used to avoid that the second main sed command (meant for
8657 # 0-ary CPP macros) applies to n-ary macro definitions.
8658 # See the Autoconf documentation for `clear'.
8659 cat >confdef2sed.sed <<\_ACEOF
8660 s/[\\&,]/\\&/g
8661 s,[\\$`],\\&,g
8662 t clear
8663 : clear
8664 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8665 t end
8666 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8667 : end
8668 _ACEOF
8669 # If some macros were called several times there might be several times
8670 # the same #defines, which is useless. Nevertheless, we may not want to
8671 # sort them, since we want the *last* AC-DEFINE to be honored.
8672 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8673 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8674 rm -f confdef2sed.sed
8675
8676 # This sed command replaces #undef with comments. This is necessary, for
8677 # example, in the case of _POSIX_SOURCE, which is predefined and required
8678 # on some systems where configure will not decide to define it.
8679 cat >>conftest.undefs <<\_ACEOF
8680 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8681 _ACEOF
8682
8683 # Break up conftest.defines because some shells have a limit on the size
8684 # of here documents, and old seds have small limits too (100 cmds).
8685 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8686 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8687 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8688 echo ' :' >>$CONFIG_STATUS
8689 rm -f conftest.tail
8690 while grep . conftest.defines >/dev/null
8691 do
8692 # Write a limited-size here document to $tmp/defines.sed.
8693 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8694 # Speed up: don't consider the non `#define' lines.
8695 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8696 # Work around the forget-to-reset-the-flag bug.
8697 echo 't clr' >>$CONFIG_STATUS
8698 echo ': clr' >>$CONFIG_STATUS
8699 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8700 echo 'CEOF
8701 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8702 rm -f $tmp/in
8703 mv $tmp/out $tmp/in
8704 ' >>$CONFIG_STATUS
8705 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8706 rm -f conftest.defines
8707 mv conftest.tail conftest.defines
8708 done
8709 rm -f conftest.defines
8710 echo ' fi # grep' >>$CONFIG_STATUS
8711 echo >>$CONFIG_STATUS
8712
8713 # Break up conftest.undefs because some shells have a limit on the size
8714 # of here documents, and old seds have small limits too (100 cmds).
8715 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8716 rm -f conftest.tail
8717 while grep . conftest.undefs >/dev/null
8718 do
8719 # Write a limited-size here document to $tmp/undefs.sed.
8720 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8721 # Speed up: don't consider the non `#undef'
8722 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8723 # Work around the forget-to-reset-the-flag bug.
8724 echo 't clr' >>$CONFIG_STATUS
8725 echo ': clr' >>$CONFIG_STATUS
8726 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8727 echo 'CEOF
8728 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8729 rm -f $tmp/in
8730 mv $tmp/out $tmp/in
8731 ' >>$CONFIG_STATUS
8732 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8733 rm -f conftest.undefs
8734 mv conftest.tail conftest.undefs
8735 done
8736 rm -f conftest.undefs
8737
8738 cat >>$CONFIG_STATUS <<\_ACEOF
8739 # Let's still pretend it is `configure' which instantiates (i.e., don't
8740 # use $as_me), people would be surprised to read:
8741 # /* config.h. Generated by config.status. */
8742 if test x"$ac_file" = x-; then
8743 echo "/* Generated by configure. */" >$tmp/config.h
8744 else
8745 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8746 fi
8747 cat $tmp/in >>$tmp/config.h
8748 rm -f $tmp/in
8749 if test x"$ac_file" != x-; then
8750 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8751 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8752 echo "$as_me: $ac_file is unchanged" >&6;}
8753 else
8754 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8756 X"$ac_file" : 'X\(//\)[^/]' \| \
8757 X"$ac_file" : 'X\(//\)$' \| \
8758 X"$ac_file" : 'X\(/\)' \| \
8759 . : '\(.\)' 2>/dev/null ||
8760 echo X"$ac_file" |
8761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8763 /^X\(\/\/\)$/{ s//\1/; q; }
8764 /^X\(\/\).*/{ s//\1/; q; }
8765 s/.*/./; q'`
8766 { if $as_mkdir_p; then
8767 mkdir -p "$ac_dir"
8768 else
8769 as_dir="$ac_dir"
8770 as_dirs=
8771 while test ! -d "$as_dir"; do
8772 as_dirs="$as_dir $as_dirs"
8773 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8775 X"$as_dir" : 'X\(//\)[^/]' \| \
8776 X"$as_dir" : 'X\(//\)$' \| \
8777 X"$as_dir" : 'X\(/\)' \| \
8778 . : '\(.\)' 2>/dev/null ||
8779 echo X"$as_dir" |
8780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8782 /^X\(\/\/\)$/{ s//\1/; q; }
8783 /^X\(\/\).*/{ s//\1/; q; }
8784 s/.*/./; q'`
8785 done
8786 test ! -n "$as_dirs" || mkdir $as_dirs
8787 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8788 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8789 { (exit 1); exit 1; }; }; }
8790
8791 rm -f $ac_file
8792 mv $tmp/config.h $ac_file
8793 fi
8794 else
8795 cat $tmp/config.h
8796 rm -f $tmp/config.h
8797 fi
8798 # Run the commands associated with the file.
8799 case $ac_file in
8800 src/config.h ) # update the timestamp
8801 echo 'timestamp for src/config.h' >"src/stamp-h1"
8802 ;;
8803 esac
8804 done
8805 _ACEOF
8806 cat >>$CONFIG_STATUS <<\_ACEOF
8807
8808 #
8809 # CONFIG_COMMANDS section.
8810 #
8811 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8812 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8813 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8814 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8815 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8816 X"$ac_dest" : 'X\(//\)[^/]' \| \
8817 X"$ac_dest" : 'X\(//\)$' \| \
8818 X"$ac_dest" : 'X\(/\)' \| \
8819 . : '\(.\)' 2>/dev/null ||
8820 echo X"$ac_dest" |
8821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8823 /^X\(\/\/\)$/{ s//\1/; q; }
8824 /^X\(\/\).*/{ s//\1/; q; }
8825 s/.*/./; q'`
8826 { if $as_mkdir_p; then
8827 mkdir -p "$ac_dir"
8828 else
8829 as_dir="$ac_dir"
8830 as_dirs=
8831 while test ! -d "$as_dir"; do
8832 as_dirs="$as_dir $as_dirs"
8833 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8835 X"$as_dir" : 'X\(//\)[^/]' \| \
8836 X"$as_dir" : 'X\(//\)$' \| \
8837 X"$as_dir" : 'X\(/\)' \| \
8838 . : '\(.\)' 2>/dev/null ||
8839 echo X"$as_dir" |
8840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8842 /^X\(\/\/\)$/{ s//\1/; q; }
8843 /^X\(\/\).*/{ s//\1/; q; }
8844 s/.*/./; q'`
8845 done
8846 test ! -n "$as_dirs" || mkdir $as_dirs
8847 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8848 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8849 { (exit 1); exit 1; }; }; }
8850
8851 ac_builddir=.
8852
8853 if test "$ac_dir" != .; then
8854 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8855 # A "../" for each directory in $ac_dir_suffix.
8856 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8857 else
8858 ac_dir_suffix= ac_top_builddir=
8859 fi
8860
8861 case $srcdir in
8862 .) # No --srcdir option. We are building in place.
8863 ac_srcdir=.
8864 if test -z "$ac_top_builddir"; then
8865 ac_top_srcdir=.
8866 else
8867 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8868 fi ;;
8869 [\\/]* | ?:[\\/]* ) # Absolute path.
8870 ac_srcdir=$srcdir$ac_dir_suffix;
8871 ac_top_srcdir=$srcdir ;;
8872 *) # Relative path.
8873 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8874 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8875 esac
8876
8877 # Do not use `cd foo && pwd` to compute absolute paths, because
8878 # the directories may not exist.
8879 case `pwd` in
8880 .) ac_abs_builddir="$ac_dir";;
8881 *)
8882 case "$ac_dir" in
8883 .) ac_abs_builddir=`pwd`;;
8884 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8885 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8886 esac;;
8887 esac
8888 case $ac_abs_builddir in
8889 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8890 *)
8891 case ${ac_top_builddir}. in
8892 .) ac_abs_top_builddir=$ac_abs_builddir;;
8893 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8894 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8895 esac;;
8896 esac
8897 case $ac_abs_builddir in
8898 .) ac_abs_srcdir=$ac_srcdir;;
8899 *)
8900 case $ac_srcdir in
8901 .) ac_abs_srcdir=$ac_abs_builddir;;
8902 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8903 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8904 esac;;
8905 esac
8906 case $ac_abs_builddir in
8907 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8908 *)
8909 case $ac_top_srcdir in
8910 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8911 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8912 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8913 esac;;
8914 esac
8915
8916
8917 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8918 echo "$as_me: executing $ac_dest commands" >&6;}
8919 case $ac_dest in
8920 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8921 # Strip MF so we end up with the name of the file.
8922 mf=`echo "$mf" | sed -e 's/:.*$//'`
8923 # Check whether this is an Automake generated Makefile or not.
8924 # We used to match only the files named `Makefile.in', but
8925 # some people rename them; so instead we look at the file content.
8926 # Grep'ing the first line is not enough: some people post-process
8927 # each Makefile.in and add a new line on top of each file to say so.
8928 # So let's grep whole file.
8929 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8930 dirpart=`(dirname "$mf") 2>/dev/null ||
8931 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8932 X"$mf" : 'X\(//\)[^/]' \| \
8933 X"$mf" : 'X\(//\)$' \| \
8934 X"$mf" : 'X\(/\)' \| \
8935 . : '\(.\)' 2>/dev/null ||
8936 echo X"$mf" |
8937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8939 /^X\(\/\/\)$/{ s//\1/; q; }
8940 /^X\(\/\).*/{ s//\1/; q; }
8941 s/.*/./; q'`
8942 else
8943 continue
8944 fi
8945 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8946 # Extract the definition of DEP_FILES from the Makefile without
8947 # running `make'.
8948 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8949 test -z "$DEPDIR" && continue
8950 # When using ansi2knr, U may be empty or an underscore; expand it
8951 U=`sed -n -e '/^U = / s///p' < "$mf"`
8952 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8953 # We invoke sed twice because it is the simplest approach to
8954 # changing $(DEPDIR) to its actual value in the expansion.
8955 for file in `sed -n -e '
8956 /^DEP_FILES = .*\\\\$/ {
8957 s/^DEP_FILES = //
8958 :loop
8959 s/\\\\$//
8960 p
8961 n
8962 /\\\\$/ b loop
8963 p
8964 }
8965 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8966 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8967 # Make sure the directory exists.
8968 test -f "$dirpart/$file" && continue
8969 fdir=`(dirname "$file") 2>/dev/null ||
8970 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8971 X"$file" : 'X\(//\)[^/]' \| \
8972 X"$file" : 'X\(//\)$' \| \
8973 X"$file" : 'X\(/\)' \| \
8974 . : '\(.\)' 2>/dev/null ||
8975 echo X"$file" |
8976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8978 /^X\(\/\/\)$/{ s//\1/; q; }
8979 /^X\(\/\).*/{ s//\1/; q; }
8980 s/.*/./; q'`
8981 { if $as_mkdir_p; then
8982 mkdir -p $dirpart/$fdir
8983 else
8984 as_dir=$dirpart/$fdir
8985 as_dirs=
8986 while test ! -d "$as_dir"; do
8987 as_dirs="$as_dir $as_dirs"
8988 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8990 X"$as_dir" : 'X\(//\)[^/]' \| \
8991 X"$as_dir" : 'X\(//\)$' \| \
8992 X"$as_dir" : 'X\(/\)' \| \
8993 . : '\(.\)' 2>/dev/null ||
8994 echo X"$as_dir" |
8995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8996 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8997 /^X\(\/\/\)$/{ s//\1/; q; }
8998 /^X\(\/\).*/{ s//\1/; q; }
8999 s/.*/./; q'`
9000 done
9001 test ! -n "$as_dirs" || mkdir $as_dirs
9002 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9003 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9004 { (exit 1); exit 1; }; }; }
9005
9006 # echo "creating $dirpart/$file"
9007 echo '# dummy' > "$dirpart/$file"
9008 done
9009 done
9010 ;;
9011 esac
9012 done
9013 _ACEOF
9014
9015 cat >>$CONFIG_STATUS <<\_ACEOF
9016
9017 { (exit 0); exit 0; }
9018 _ACEOF
9019 chmod +x $CONFIG_STATUS
9020 ac_clean_files=$ac_clean_files_save
9021
9022
9023 # configure is writing to config.log, and then calls config.status.
9024 # config.status does its own redirection, appending to config.log.
9025 # Unfortunately, on DOS this fails, as config.log is still kept open
9026 # by configure, so config.status won't be able to write to it; its
9027 # output is simply discarded. So we exec the FD to /dev/null,
9028 # effectively closing config.log, so it can be properly (re)opened and
9029 # appended to by config.status. When coming back to configure, we
9030 # need to make the FD available again.
9031 if test "$no_create" != yes; then
9032 ac_cs_success=:
9033 ac_config_status_args=
9034 test "$silent" = yes &&
9035 ac_config_status_args="$ac_config_status_args --quiet"
9036 exec 5>/dev/null
9037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9038 exec 5>>config.log
9039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9040 # would make configure fail if this is the last instruction.
9041 $ac_cs_success || { (exit 1); exit 1; }
9042 fi
9043