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