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