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