2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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; }; }
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir -p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
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'"
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
274 ac_unique_file
="src/main.c"
275 ac_default_prefix
=\
${HOME}/thales
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
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'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
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'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev
=build_alias
;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias
=$ac_optarg ;;
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 ;;
388 cache_file
=config.cache
;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir
=$ac_optarg ;;
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" ;;
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'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
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
;;
438 -host | --host | --hos | --ho)
439 ac_prev
=host_alias
;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias
=$ac_optarg ;;
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 ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
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'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
610 # Obsolete; use --with-x.
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 ;;
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 ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
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
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
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.
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
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
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 ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
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; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
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}
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
776 # Report the --help message.
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.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
789 Defaults for the options are specified in brackets.
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 \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
816 For better control, use the options below.
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]
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
842 if test -n "$ac_init_help"; then
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
)
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
)
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
>
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.
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
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'`
892 ac_dir_suffix= ac_top_builddir=
896 .) # No --srcdir option. We are building in place.
898 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
911 # Do not use `cd foo
&& pwd` to compute absolute paths, because
912 # the directories may not exist.
914 .) ac_abs_builddir="$ac_dir";;
917 .) ac_abs_builddir=`pwd`;;
918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
919 *) ac_abs_builddir=`pwd`/"$ac_dir";;
922 case $ac_abs_builddir in
923 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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}.;;
931 case $ac_abs_builddir in
932 .) ac_abs_srcdir=$ac_srcdir;;
935 .) ac_abs_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
940 case $ac_abs_builddir in
941 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu; then
954 $SHELL $ac_srcdir/configure.gnu --help=recursive
955 elif test -f $ac_srcdir/configure; then
957 $SHELL $ac_srcdir/configure --help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.in; then
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
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.
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
984 It was created by $as_me, which was
985 generated by GNU Autoconf 2.59. Invocation command line was
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
`
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
`
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
`
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
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.
1044 ac_must_keep_next=false
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)
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
1073 -* ) ac_must_keep_next=true ;;
1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
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; }
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.
1097 ## ---------------- ##
1098 ## Cache variables. ##
1099 ## ---------------- ##
1102 # The following way of writing the cache mishandles newlines in values,
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 ## ----------------- ##
1121 ## Output variables. ##
1122 ## ----------------- ##
1125 for ac_var
in $ac_subst_vars
1127 eval ac_val
=$
`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1132 if test -n "$ac_subst_files"; then
1139 for ac_var
in $ac_subst_files
1141 eval ac_val
=$
`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1147 if test -s confdefs.h
; then
1154 sed "/^$/d" confdefs.h
| sort
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1161 rm -f core
*.core
&&
1162 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1165 for ac_signal in 1 2 13 15; do
1166 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1175 # Predefined preprocessor variables.
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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
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;}
1227 [\\/]* | ?:[\\/]* ) . $cache_file;;
1228 *) . ./$cache_file;;
1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233 echo "$as_me: creating cache $cache_file" >&6;}
1237 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
1313 ac_config_headers="$ac_config_headers src/config.h"
1315 ac_config_commands="$ac_config_commands default-1"
1317 am__api_version="1.4"
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1324 elif test -f $ac_dir/install.sh; then
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1328 elif test -f $ac_dir/shtool; then
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
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
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
1362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1366 test -z "$as_dir" && as_dir
=.
1367 # Account for people who put trailing slashes in PATH elements.
1369 .
/ | .
// | /cC
/* | \
1370 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1371 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
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
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.
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.
1389 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1401 if test "${ac_cv_path_install+set}" = set; then
1402 INSTALL
=$ac_cv_path_install
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
1411 echo "$as_me:$LINENO: result: $INSTALL" >&5
1412 echo "${ECHO_T}$INSTALL" >&6
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}'
1418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1420 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
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
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
1433 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1434 if test "$*" = "X"; then
1436 set X
`ls -t $srcdir/configure conftestfile`
1438 if test "$*" != "X $srcdir/configure conftestfile" \
1439 && test "$*" != "X conftestfile $srcdir/configure"; then
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; }; }
1452 test "$2" = conftestfile
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; }; }
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
,$
//
1477 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
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
1486 cat >conftest.
make <<\_ACEOF
1488 @
echo 'ac_maketemp="$(MAKE)"'
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
1495 eval ac_cv_prog_make_
${ac_make}_set
=no
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
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1506 SET_MAKE
="MAKE=${MAKE-make}"
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; }; }
1520 cat >>confdefs.h
<<_ACEOF
1521 #define PACKAGE "$PACKAGE"
1525 cat >>confdefs.h
<<_ACEOF
1526 #define VERSION "$VERSION"
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
1542 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
1543 echo "$as_me:$LINENO: result: missing" >&5
1544 echo "${ECHO_T}missing" >&6
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
1554 echo "$as_me:$LINENO: result: found" >&5
1555 echo "${ECHO_T}found" >&6
1557 AUTOCONF
="$missing_dir/missing autoconf"
1558 echo "$as_me:$LINENO: result: missing" >&5
1559 echo "${ECHO_T}missing" >&6
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
1572 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
1573 echo "$as_me:$LINENO: result: missing" >&5
1574 echo "${ECHO_T}missing" >&6
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
1587 AUTOHEADER
="$missing_dir/missing autoheader"
1588 echo "$as_me:$LINENO: result: missing" >&5
1589 echo "${ECHO_T}missing" >&6
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
1599 echo "$as_me:$LINENO: result: found" >&5
1600 echo "${ECHO_T}found" >&6
1602 MAKEINFO
="$missing_dir/missing makeinfo"
1603 echo "$as_me:$LINENO: result: missing" >&5
1604 echo "${ECHO_T}missing" >&6
1609 for ac_prog
in gawk mawk nawk
awk
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
1618 if test -n "$AWK"; then
1619 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1638 if test -n "$AWK"; then
1639 echo "$as_me:$LINENO: result: $AWK" >&5
1640 echo "${ECHO_T}$AWK" >&6
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1646 test -n "$AWK" && break
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
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC
="$CC" # Let the user override the test.
1665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1691 if test -z "$ac_cv_prog_CC"; then
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
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
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
1742 if test -n "$CC"; then
1743 ac_cv_prog_CC
="$CC" # Let the user override the test.
1745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1762 if test -n "$CC"; then
1763 echo "$as_me:$LINENO: result: $CC" >&5
1764 echo "${ECHO_T}$CC" >&6
1766 echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1771 if test -z "$ac_cv_prog_CC"; then
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
1780 if test -n "$ac_ct_CC"; then
1781 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
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
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC
="$CC" # Let the user override the test.
1826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
1853 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1859 if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1868 if test -z "$CC"; then
1869 if test -n "$ac_tool_prefix"; then
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
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC
="$CC" # Let the user override the test.
1882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1907 test -n "$CC" && break
1910 if test -z "$CC"; then
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
1921 if test -n "$ac_ct_CC"; then
1922 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1949 test -n "$ac_ct_CC" && break
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; }; }
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
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
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
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }
1984 cat >conftest.
$ac_ext <<_ACEOF
1987 cat confdefs.h
>>conftest.
$ac_ext
1988 cat >>conftest.
$ac_ext <<_ACEOF
1989 /* end confdefs.h. */
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
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
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
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.
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
2022 test -f "$ac_file" || continue
2024 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.o
| *.obj
)
2027 # This is the source file.
2030 # We found the default executable, but exeext='' is most
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.
2045 echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.
$ac_ext >&5
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; }; }
2055 ac_exeext
=$ac_cv_exeext
2056 echo "$as_me:$LINENO: result: $ac_file" >&5
2057 echo "${ECHO_T}$ac_file" >&6
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
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2074 if test "$cross_compiling" = maybe
; then
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; }; }
2087 echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6
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
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
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
2110 for ac_file
in conftest.exe conftest conftest.
*; do
2111 test -f "$ac_file" || continue
2113 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.o
| *.obj
) ;;
2114 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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
2132 rm -f conftest.
$ac_ext
2133 EXEEXT
=$ac_cv_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
2140 cat >conftest.
$ac_ext <<_ACEOF
2143 cat confdefs.h
>>conftest.
$ac_ext
2144 cat >>conftest.
$ac_ext <<_ACEOF
2145 /* end confdefs.h. */
2155 rm -f conftest.o conftest.obj
2156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2157 (eval $ac_compile) 2>&5
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
2163 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
) ;;
2164 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2169 echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.
$ac_ext >&5
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; }; }
2179 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2181 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2182 echo "${ECHO_T}$ac_cv_objext" >&6
2183 OBJEXT
=$ac_cv_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
2190 cat >conftest.
$ac_ext <<_ACEOF
2193 cat confdefs.h
>>conftest.
$ac_ext
2194 cat >>conftest.
$ac_ext <<_ACEOF
2195 /* end confdefs.h. */
2208 rm -f conftest.
$ac_objext
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>conftest.er1
2212 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2231 echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.
$ac_ext >&5
2236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2237 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
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
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
2251 cat >conftest.
$ac_ext <<_ACEOF
2254 cat confdefs.h
>>conftest.
$ac_ext
2255 cat >>conftest.
$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2266 rm -f conftest.
$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2270 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.
$ac_ext >&5
2294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
2307 if test "$GCC" = yes; then
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
2318 ac_cv_prog_cc_stdc
=no
2320 cat >conftest.
$ac_ext <<_ACEOF
2323 cat confdefs.h
>>conftest.
$ac_ext
2324 cat >>conftest.
$ac_ext <<_ACEOF
2325 /* end confdefs.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)
2339 static char *f (char * (*g) (char **, int), char **p, ...)
2344 s = g (p, va_arg (v,int));
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];
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);
2367 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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__"
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
2386 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 ac_cv_prog_cc_stdc
=$ac_arg
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.
$ac_ext >&5
2410 rm -f conftest.err conftest.
$ac_objext
2412 rm -f conftest.
$ac_ext conftest.
$ac_objext
2417 case "x$ac_cv_prog_cc_stdc" in
2419 echo "$as_me:$LINENO: result: none needed" >&5
2420 echo "${ECHO_T}none needed" >&6 ;;
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" ;;
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
2436 rm -f conftest.
$ac_objext
2437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438 (eval $ac_compile) 2>conftest.er1
2440 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2457 for ac_declaration
in \
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);' \
2465 cat >conftest.
$ac_ext <<_ACEOF
2468 cat confdefs.h
>>conftest.
$ac_ext
2469 cat >>conftest.
$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2481 rm -f conftest.
$ac_objext
2482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483 (eval $ac_compile) 2>conftest.er1
2485 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; }; then
2504 echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.
$ac_ext >&5
2509 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2510 cat >conftest.
$ac_ext <<_ACEOF
2513 cat confdefs.h
>>conftest.
$ac_ext
2514 cat >>conftest.
$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2525 rm -f conftest.
$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2529 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.
$ac_ext >&5
2552 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2555 if test -n "$ac_declaration"; then
2556 echo '#ifdef __cplusplus' >>confdefs.h
2557 echo $ac_declaration >>confdefs.h
2558 echo '#endif' >>confdefs.h
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.
$ac_ext >&5
2566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
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
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
2592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir
=.
2597 # Account for people who put trailing slashes in PATH elements.
2599 .
/ | .
// | /cC
/* | \
2600 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
2601 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
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
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.
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.
2619 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2631 if test "${ac_cv_path_install+set}" = set; then
2632 INSTALL
=$ac_cv_path_install
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
2641 echo "$as_me:$LINENO: result: $INSTALL" >&5
2642 echo "${ECHO_T}$INSTALL" >&6
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}'
2648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2650 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2652 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2653 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2655 if test "$LN_S" = "ln -s"; then
2656 echo "$as_me:$LINENO: result: yes" >&5
2657 echo "${ECHO_T}yes" >&6
2659 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2660 echo "${ECHO_T}no, using $LN_S" >&6
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
2670 ac_check_lib_save_LIBS
=$LIBS
2671 LIBS
="-lsocket $LIBS"
2672 cat >conftest.
$ac_ext <<_ACEOF
2675 cat confdefs.h
>>conftest.
$ac_ext
2676 cat >>conftest.
$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2679 /* Override any gcc2 internal prototype to avoid an error. */
2683 /* We use char because int might match the return type of a gcc2
2684 builtin and then its argument prototype would still apply. */
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
2698 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2715 ac_cv_lib_socket_connect
=yes
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.
$ac_ext >&5
2720 ac_cv_lib_socket_connect
=no
2722 rm -f conftest.err conftest.
$ac_objext \
2723 conftest
$ac_exeext conftest.
$ac_ext
2724 LIBS
=$ac_check_lib_save_LIBS
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
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
2738 ac_check_lib_save_LIBS
=$LIBS
2740 cat >conftest.
$ac_ext <<_ACEOF
2743 cat confdefs.h
>>conftest.
$ac_ext
2744 cat >>conftest.
$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2747 /* Override any gcc2 internal prototype to avoid an error. */
2751 /* We use char because int might match the return type of a gcc2
2752 builtin and then its argument prototype would still apply. */
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
2766 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 ac_cv_lib_z_compress
=yes
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.
$ac_ext >&5
2788 ac_cv_lib_z_compress
=no
2790 rm -f conftest.err conftest.
$ac_objext \
2791 conftest
$ac_exeext conftest.
$ac_ext
2792 LIBS
=$ac_check_lib_save_LIBS
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
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
2811 ac_check_lib_save_LIBS
=$LIBS
2813 cat >conftest.
$ac_ext <<_ACEOF
2816 cat confdefs.h
>>conftest.
$ac_ext
2817 cat >>conftest.
$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2820 /* Override any gcc2 internal prototype to avoid an error. */
2824 /* We use char because int might match the return type of a gcc2
2825 builtin and then its argument prototype would still apply. */
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
2839 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2856 ac_cv_lib_m_floor
=yes
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.
$ac_ext >&5
2861 ac_cv_lib_m_floor
=no
2863 rm -f conftest.err conftest.
$ac_objext \
2864 conftest
$ac_exeext conftest.
$ac_ext
2865 LIBS
=$ac_check_lib_save_LIBS
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
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
2890 if test -z "$CPP"; then
2891 if test "${ac_cv_prog_CPP+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 # Double quotes because CPP needs to be expanded
2895 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2898 for ac_c_preproc_warn_flag
in '' yes
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
2909 cat confdefs.h
>>conftest.
$ac_ext
2910 cat >>conftest.
$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2913 # include <limits.h>
2915 # include <assert.h>
2919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2922 grep -v '^ *+' conftest.er1
>conftest.err
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
2936 if test -z "$ac_cpp_err"; then
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.
$ac_ext >&5
2942 # Broken: fails on valid input.
2945 rm -f conftest.err conftest.
$ac_ext
2947 # OK, works on sane cases. Now check whether non-existent headers
2948 # can be detected and how.
2949 cat >conftest.
$ac_ext <<_ACEOF
2952 cat confdefs.h
>>conftest.
$ac_ext
2953 cat >>conftest.
$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2955 #include <ac_nonexistent.h>
2957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2958 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2960 grep -v '^ *+' conftest.er1
>conftest.err
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
2974 if test -z "$ac_cpp_err"; then
2975 # Broken: success on invalid input.
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.
$ac_ext >&5
2981 # Passes both tests.
2985 rm -f conftest.err conftest.
$ac_ext
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
3002 echo "$as_me:$LINENO: result: $CPP" >&5
3003 echo "${ECHO_T}$CPP" >&6
3005 for ac_c_preproc_warn_flag
in '' yes
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
3016 cat confdefs.h
>>conftest.
$ac_ext
3017 cat >>conftest.
$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3020 # include <limits.h>
3022 # include <assert.h>
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3029 grep -v '^ *+' conftest.er1
>conftest.err
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
3043 if test -z "$ac_cpp_err"; then
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.
$ac_ext >&5
3049 # Broken: fails on valid input.
3052 rm -f conftest.err conftest.
$ac_ext
3054 # OK, works on sane cases. Now check whether non-existent headers
3055 # can be detected and how.
3056 cat >conftest.
$ac_ext <<_ACEOF
3059 cat confdefs.h
>>conftest.
$ac_ext
3060 cat >>conftest.
$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #include <ac_nonexistent.h>
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3067 grep -v '^ *+' conftest.er1
>conftest.err
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
3081 if test -z "$ac_cpp_err"; then
3082 # Broken: success on invalid input.
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.
$ac_ext >&5
3088 # Passes both tests.
3092 rm -f conftest.err conftest.
$ac_ext
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
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; }; }
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
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
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'
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
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
3134 cat >conftest.
$ac_ext <<_ACEOF
3137 cat confdefs.h
>>conftest.
$ac_ext
3138 cat >>conftest.
$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3153 rm -f conftest.
$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>conftest.er1
3157 grep -v '^ *+' conftest.er1
>conftest.err
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
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
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; }; then
3174 ac_cv_header_stdc
=yes
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.
$ac_ext >&5
3179 ac_cv_header_stdc
=no
3181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
3188 cat confdefs.h
>>conftest.
$ac_ext
3189 cat >>conftest.
$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3195 $EGREP "memchr" >/dev
/null
2>&1; then
3198 ac_cv_header_stdc
=no
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
3209 cat confdefs.h
>>conftest.
$ac_ext
3210 cat >>conftest.
$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3216 $EGREP "free" >/dev
/null
2>&1; then
3219 ac_cv_header_stdc
=no
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
3230 cat >conftest.
$ac_ext <<_ACEOF
3233 cat confdefs.h
>>conftest.
$ac_ext
3234 cat >>conftest.
$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3237 #if ((' ' & 0x0FF) == 0x020)
3238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
3248 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3253 for (i = 0; i < 256; i++)
3254 if (XOR (islower (i), ISLOWER (i))
3255 || toupper (i) != TOUPPER (i))
3260 rm -f conftest
$ac_exeext
3261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3262 (eval $ac_link) 2>&5
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
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
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
3278 ac_cv_header_stdc
=no
3280 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
3288 cat >>confdefs.h
<<\_ACEOF
3289 #define STDC_HEADERS 1
3294 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
3313 cat >conftest.
$ac_ext <<_ACEOF
3316 cat confdefs.h
>>conftest.
$ac_ext
3317 cat >>conftest.
$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 $ac_includes_default
3321 #include <$ac_header>
3323 rm -f conftest.
$ac_objext
3324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>conftest.er1
3327 grep -v '^ *+' conftest.er1
>conftest.err
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
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
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3344 eval "$as_ac_Header=yes"
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.
$ac_ext >&5
3349 eval "$as_ac_Header=no"
3351 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
3371 for ac_header
in limits.h sys
/time.h unistd.h netdb.h netinet
/in.h sys
/socket.h
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
3380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
3395 rm -f conftest.
$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1
>conftest.err
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
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
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_header_compiler
=yes
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.
$ac_ext >&5
3421 ac_header_compiler
=no
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
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
3433 cat confdefs.h
>>conftest.
$ac_ext
3434 cat >>conftest.
$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 #include <$ac_header>
3438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3441 grep -v '^ *+' conftest.er1
>conftest.err
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
3455 if test -z "$ac_cpp_err"; then
3456 ac_header_preproc
=yes
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.
$ac_ext >&5
3461 ac_header_preproc
=no
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
3467 # So? What about this header?
3468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
3491 ## ------------------------------------------ ##
3492 ## Report this to the AC_PACKAGE_NAME lists. ##
3493 ## ------------------------------------------ ##
3496 sed "s/^/$as_me: WARNING: /" >&2
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
3504 eval "$as_ac_Header=\$ac_header_preproc"
3506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
3525 cat >conftest.
$ac_ext <<_ACEOF
3528 cat confdefs.h
>>conftest.
$ac_ext
3529 cat >>conftest.
$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3535 /* FIXME: Include the comments suggested by Paul. */
3537 /* Ultrix mips cc rejects this. */
3538 typedef int charset[2];
3540 /* SunOS 4.1.1 cc rejects this. */
3541 char const *const *ccp;
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
3550 const char *g = "string";
3551 ccp = &g + (g ? g-g : 0);
3552 /* HPUX 7.0 cc rejects these. */
3555 ccp = (char const *const *) p;
3556 { /* SCO 3.2v4 cc rejects this. */
3558 char const *s = 0 ? (char *) 0 : (char const *) 0;
3562 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3564 const int *foo = &x[0];
3567 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3568 typedef const int *iptr;
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;
3577 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3586 rm -f conftest.
$ac_objext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>conftest.er1
3590 grep -v '^ *+' conftest.er1
>conftest.err
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
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
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.
$ac_ext >&5
3614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
3620 cat >>confdefs.h
<<\_ACEOF
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
3631 cat >conftest.
$ac_ext <<_ACEOF
3634 cat confdefs.h
>>conftest.
$ac_ext
3635 cat >>conftest.
$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637 $ac_includes_default
3643 if (sizeof (size_t))
3649 rm -f conftest.
$ac_objext
3650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3651 (eval $ac_compile) 2>conftest.er1
3653 grep -v '^ *+' conftest.er1
>conftest.err
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
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
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3670 ac_cv_type_size_t
=yes
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.
$ac_ext >&5
3675 ac_cv_type_size_t
=no
3677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
3685 cat >>confdefs.h
<<_ACEOF
3686 #define size_t unsigned
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
3696 cat >conftest.
$ac_ext <<_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>
3709 if ((struct tm *) 0)
3715 rm -f conftest.
$ac_objext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>conftest.er1
3719 grep -v '^ *+' conftest.er1
>conftest.err
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
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
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3736 ac_cv_header_time
=yes
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.
$ac_ext >&5
3741 ac_cv_header_time
=no
3743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
3749 cat >>confdefs.h
<<\_ACEOF
3750 #define TIME_WITH_SYS_TIME 1
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
3760 cat >conftest.
$ac_ext <<_ACEOF
3763 cat confdefs.h
>>conftest.
$ac_ext
3764 cat >>conftest.
$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766 #include <sys/types.h>
3772 struct tm *tp; tp->tm_sec;
3777 rm -f conftest.
$ac_objext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>conftest.er1
3781 grep -v '^ *+' conftest.er1
>conftest.err
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
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
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 ac_cv_struct_tm
=time.h
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.
$ac_ext >&5
3803 ac_cv_struct_tm
=sys
/time.h
3805 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
3811 cat >>confdefs.h
<<\_ACEOF
3812 #define TM_IN_SYS_TIME 1
3819 for ac_func
in strftime
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
3827 cat >conftest.
$ac_ext <<_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
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. */
3843 # include <limits.h>
3845 # include <assert.h>
3850 /* Override any gcc2 internal prototype to avoid an error. */
3855 /* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
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)
3864 char (*f) () = $ac_func;
3873 return f != $ac_func;
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
3882 grep -v '^ *+' conftest.er1
>conftest.err
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
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
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 eval "$as_ac_var=yes"
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.
$ac_ext >&5
3904 eval "$as_ac_var=no"
3906 rm -f conftest.err conftest.
$ac_objext \
3907 conftest
$ac_exeext conftest.
$ac_ext
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
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
3923 ac_check_lib_save_LIBS
=$LIBS
3925 cat >conftest.
$ac_ext <<_ACEOF
3928 cat confdefs.h
>>conftest.
$ac_ext
3929 cat >>conftest.
$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3932 /* Override any gcc2 internal prototype to avoid an error. */
3936 /* We use char because int might match the return type of a gcc2
3937 builtin and then its argument prototype would still apply. */
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
3951 grep -v '^ *+' conftest.er1
>conftest.err
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
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
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3968 ac_cv_lib_intl_strftime
=yes
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.
$ac_ext >&5
3973 ac_cv_lib_intl_strftime
=no
3975 rm -f conftest.err conftest.
$ac_objext \
3976 conftest
$ac_exeext conftest.
$ac_ext
3977 LIBS
=$ac_check_lib_save_LIBS
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
3993 for ac_func
in vprintf
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
4001 cat >conftest.
$ac_ext <<_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
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. */
4017 # include <limits.h>
4019 # include <assert.h>
4024 /* Override any gcc2 internal prototype to avoid an error. */
4029 /* We use char because int might match the return type of a gcc2
4030 builtin and then its argument prototype would still apply. */
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)
4038 char (*f) () = $ac_func;
4047 return f != $ac_func;
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
4056 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4073 eval "$as_ac_var=yes"
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.
$ac_ext >&5
4078 eval "$as_ac_var=no"
4080 rm -f conftest.err conftest.
$ac_objext \
4081 conftest
$ac_exeext conftest.
$ac_ext
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
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
4095 cat >conftest.
$ac_ext <<_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
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. */
4111 # include <limits.h>
4113 # include <assert.h>
4118 /* Override any gcc2 internal prototype to avoid an error. */
4123 /* We use char because int might match the return type of a gcc2
4124 builtin and then its argument prototype would still apply. */
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)
4132 char (*f) () = _doprnt;
4141 return f != _doprnt;
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
4150 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_cv_func__doprnt
=yes
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.
$ac_ext >&5
4172 ac_cv_func__doprnt
=no
4174 rm -f conftest.err conftest.
$ac_objext \
4175 conftest
$ac_exeext conftest.
$ac_ext
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
4181 cat >>confdefs.h
<<\_ACEOF
4182 #define HAVE_DOPRNT 1
4206 for ac_func
in gettimeofday
select socket strcspn strdup strerror strspn strtol gethostbyname memmove memset strcasecmp strchr strpbrk strtoul
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
4214 cat >conftest.
$ac_ext <<_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
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. */
4230 # include <limits.h>
4232 # include <assert.h>
4237 /* Override any gcc2 internal prototype to avoid an error. */
4242 /* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
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)
4251 char (*f) () = $ac_func;
4260 return f != $ac_func;
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
4269 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 eval "$as_ac_var=yes"
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.
$ac_ext >&5
4291 eval "$as_ac_var=no"
4293 rm -f conftest.err conftest.
$ac_objext \
4294 conftest
$ac_exeext conftest.
$ac_ext
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
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
4311 cat >conftest.
$ac_ext <<_ACEOF
4314 cat confdefs.h
>>conftest.
$ac_ext
4315 cat >>conftest.
$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 $ac_includes_default
4321 error_at_line (0, 0, "", 0, "");
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
4330 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_lib_error_at_line
=yes
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.
$ac_ext >&5
4352 ac_cv_lib_error_at_line
=no
4354 rm -f conftest.err conftest.
$ac_objext \
4355 conftest
$ac_exeext conftest.
$ac_ext
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
4361 "error.$ac_objext" | \
4362 *" error.$ac_objext" | \
4363 "error.$ac_objext "* | \
4364 *" error.$ac_objext "* ) ;;
4365 *) LIBOBJS
="$LIBOBJS error.$ac_objext" ;;
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
4375 cat >conftest.
$ac_ext <<_ACEOF
4378 cat confdefs.h
>>conftest.
$ac_ext
4379 cat >>conftest.
$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 $ac_includes_default
4393 rm -f conftest.
$ac_objext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>conftest.er1
4397 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_type_pid_t
=yes
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.
$ac_ext >&5
4421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
4429 cat >>confdefs.h
<<_ACEOF
4437 for ac_header
in unistd.h vfork.h
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
4446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
4461 rm -f conftest.
$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>conftest.er1
4465 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 ac_header_compiler
=yes
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.
$ac_ext >&5
4487 ac_header_compiler
=no
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
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
4499 cat confdefs.h
>>conftest.
$ac_ext
4500 cat >>conftest.
$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 #include <$ac_header>
4504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4505 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4507 grep -v '^ *+' conftest.er1
>conftest.err
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
4521 if test -z "$ac_cpp_err"; then
4522 ac_header_preproc
=yes
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.
$ac_ext >&5
4527 ac_header_preproc
=no
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
4533 # So? What about this header?
4534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
4557 ## ------------------------------------------ ##
4558 ## Report this to the AC_PACKAGE_NAME lists. ##
4559 ## ------------------------------------------ ##
4562 sed "s/^/$as_me: WARNING: /" >&2
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
4570 eval "$as_ac_Header=\$ac_header_preproc"
4572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
4587 for ac_func
in fork vfork
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
4595 cat >conftest.
$ac_ext <<_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
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. */
4611 # include <limits.h>
4613 # include <assert.h>
4618 /* Override any gcc2 internal prototype to avoid an error. */
4623 /* We use char because int might match the return type of a gcc2
4624 builtin and then its argument prototype would still apply. */
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)
4632 char (*f) () = $ac_func;
4641 return f != $ac_func;
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
4650 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 eval "$as_ac_var=yes"
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.
$ac_ext >&5
4672 eval "$as_ac_var=no"
4674 rm -f conftest.err conftest.
$ac_objext \
4675 conftest
$ac_exeext conftest.
$ac_ext
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
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
4693 if test "$cross_compiling" = yes; then
4694 ac_cv_func_fork_works
=cross
4696 cat >conftest.
$ac_ext <<_ACEOF
4697 /* By Ruediger Kuhlmann. */
4698 #include <sys/types.h>
4700 # include <unistd.h>
4702 /* Some systems only have a dummy stub for fork() */
4710 rm -f conftest
$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>&5
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
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_func_fork_works
=yes
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
4728 ac_cv_func_fork_works
=no
4730 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4733 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4734 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4737 ac_cv_func_fork_works
=$ac_cv_func_fork
4739 if test "x$ac_cv_func_fork_works" = xcross
; then
4741 *-*-amigaos* | *-*-msdosdjgpp*)
4742 # Override, as these systems have only a dummy fork() stub
4743 ac_cv_func_fork_works
=no
4746 ac_cv_func_fork_works
=yes
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;}
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
4759 if test "$cross_compiling" = yes; then
4760 ac_cv_func_vfork_works
=cross
4762 cat >conftest.
$ac_ext <<_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. */
4771 #include <sys/types.h>
4772 #include <sys/stat.h>
4773 #include <sys/wait.h>
4775 # include <unistd.h>
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. */
4788 sparc_address_test (int arg)
4790 sparc_address_test (arg) int arg;
4811 pid_t parent = getpid ();
4814 sparc_address_test (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. */
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)
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);
4846 while (wait(&status) != child)
4849 /* Was there some problem with vforking? */
4852 /* Did the child fail? (This shouldn't happen.) */
4855 /* Did the vfork/compiler bug occur? */
4856 || parent != getpid()
4858 /* Did the file descriptor bug occur? */
4859 || fstat(fileno(stdout), &st) != 0
4864 rm -f conftest
$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>&5
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
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_cv_func_vfork_works
=yes
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
4882 ac_cv_func_vfork_works
=no
4884 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4887 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
4888 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
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;}
4897 if test "x$ac_cv_func_vfork_works" = xyes
; then
4899 cat >>confdefs.h
<<\_ACEOF
4900 #define HAVE_WORKING_VFORK 1
4905 cat >>confdefs.h
<<\_ACEOF
4910 if test "x$ac_cv_func_fork_works" = xyes
; then
4912 cat >>confdefs.h
<<\_ACEOF
4913 #define HAVE_WORKING_FORK 1
4919 for ac_header
in stdlib.h
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
4928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
4943 rm -f conftest.
$ac_objext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>conftest.er1
4947 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 ac_header_compiler
=yes
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.
$ac_ext >&5
4969 ac_header_compiler
=no
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
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
4981 cat confdefs.h
>>conftest.
$ac_ext
4982 cat >>conftest.
$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #include <$ac_header>
4986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4987 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4989 grep -v '^ *+' conftest.er1
>conftest.err
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
5003 if test -z "$ac_cpp_err"; then
5004 ac_header_preproc
=yes
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.
$ac_ext >&5
5009 ac_header_preproc
=no
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
5015 # So? What about this header?
5016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
5039 ## ------------------------------------------ ##
5040 ## Report this to the AC_PACKAGE_NAME lists. ##
5041 ## ------------------------------------------ ##
5044 sed "s/^/$as_me: WARNING: /" >&2
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
5052 eval "$as_ac_Header=\$ac_header_preproc"
5054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
5072 if test "$cross_compiling" = yes; then
5073 ac_cv_func_malloc_0_nonnull
=no
5075 cat >conftest.
$ac_ext <<_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>
5090 exit (malloc (0) ? 0 : 1);
5095 rm -f conftest
$ac_exeext
5096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5097 (eval $ac_link) 2>&5
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
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 ac_cv_func_malloc_0_nonnull
=yes
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
5113 ac_cv_func_malloc_0_nonnull
=no
5115 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
5122 cat >>confdefs.h
<<\_ACEOF
5123 #define HAVE_MALLOC 1
5127 cat >>confdefs.h
<<\_ACEOF
5128 #define HAVE_MALLOC 0
5132 "malloc.$ac_objext" | \
5133 *" malloc.$ac_objext" | \
5134 "malloc.$ac_objext "* | \
5135 *" malloc.$ac_objext "* ) ;;
5136 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
5140 cat >>confdefs.h
<<\_ACEOF
5141 #define malloc rpl_malloc
5149 for ac_header
in stdlib.h
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
5158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
5173 rm -f conftest.
$ac_objext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175 (eval $ac_compile) 2>conftest.er1
5177 grep -v '^ *+' conftest.er1
>conftest.err
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
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
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5194 ac_header_compiler
=yes
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.
$ac_ext >&5
5199 ac_header_compiler
=no
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
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
5211 cat confdefs.h
>>conftest.
$ac_ext
5212 cat >>conftest.
$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <$ac_header>
5216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5217 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5219 grep -v '^ *+' conftest.er1
>conftest.err
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
5233 if test -z "$ac_cpp_err"; then
5234 ac_header_preproc
=yes
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.
$ac_ext >&5
5239 ac_header_preproc
=no
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
5245 # So? What about this header?
5246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
5269 ## ------------------------------------------ ##
5270 ## Report this to the AC_PACKAGE_NAME lists. ##
5271 ## ------------------------------------------ ##
5274 sed "s/^/$as_me: WARNING: /" >&2
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
5282 eval "$as_ac_Header=\$ac_header_preproc"
5284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
5302 if test "$cross_compiling" = yes; then
5303 ac_cv_func_realloc_0_nonnull
=no
5305 cat >conftest.
$ac_ext <<_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>
5320 exit (realloc (0, 0) ? 0 : 1);
5325 rm -f conftest
$ac_exeext
5326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>&5
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
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; }; then
5336 ac_cv_func_realloc_0_nonnull
=yes
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
5343 ac_cv_func_realloc_0_nonnull
=no
5345 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
5352 cat >>confdefs.h
<<\_ACEOF
5353 #define HAVE_REALLOC 1
5357 cat >>confdefs.h
<<\_ACEOF
5358 #define HAVE_REALLOC 0
5362 "realloc.$ac_objext" | \
5363 *" realloc.$ac_objext" | \
5364 "realloc.$ac_objext "* | \
5365 *" realloc.$ac_objext "* ) ;;
5366 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
5370 cat >>confdefs.h
<<\_ACEOF
5371 #define realloc rpl_realloc
5380 for ac_header
in sys
/select.h sys
/socket.h
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
5389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
5404 rm -f conftest.
$ac_objext
5405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406 (eval $ac_compile) 2>conftest.er1
5408 grep -v '^ *+' conftest.er1
>conftest.err
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
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
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 ac_header_compiler
=yes
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.
$ac_ext >&5
5430 ac_header_compiler
=no
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
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
5442 cat confdefs.h
>>conftest.
$ac_ext
5443 cat >>conftest.
$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 #include <$ac_header>
5447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5448 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5450 grep -v '^ *+' conftest.er1
>conftest.err
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
5464 if test -z "$ac_cpp_err"; then
5465 ac_header_preproc
=yes
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.
$ac_ext >&5
5470 ac_header_preproc
=no
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
5476 # So? What about this header?
5477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
5500 ## ------------------------------------------ ##
5501 ## Report this to the AC_PACKAGE_NAME lists. ##
5502 ## ------------------------------------------ ##
5505 sed "s/^/$as_me: WARNING: /" >&2
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
5513 eval "$as_ac_Header=\$ac_header_preproc"
5515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
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
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>
5546 #if HAVE_SYS_SOCKET_H
5547 # include <sys/socket.h>
5553 extern int select ($ac_arg1,
5554 $ac_arg234, $ac_arg234, $ac_arg234,
5560 rm -f conftest.
$ac_objext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562 (eval $ac_compile) 2>conftest.er1
5564 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.
$ac_ext >&5
5587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5591 # Provide a safe default value.
5592 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
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'`
5602 cat >>confdefs.h
<<_ACEOF
5603 #define SELECT_TYPE_ARG1 $1
5607 cat >>confdefs.h
<<_ACEOF
5608 #define SELECT_TYPE_ARG234 ($2)
5612 cat >>confdefs.h
<<_ACEOF
5613 #define SELECT_TYPE_ARG5 ($3)
5620 # Check whether --with-ircd or --without-ircd was given.
5621 if test "${with_ircd+set}" = set; then
5622 withval
="$with_ircd"
5626 # Check whether --with-tableprefix or --without-tableprefix was given.
5627 if test "${with_tableprefix+set}" = set; then
5628 withval
="$with_tableprefix"
5632 # Check whether --with-hashlist or --without-hashlist was given.
5633 if test "${with_hashlist+set}" = set; then
5634 withval
="$with_hashlist"
5638 # Check whether --with-mysql or --without-mysql was given.
5639 if test "${with_mysql+set}" = set; then
5640 withval
="$with_mysql"
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"
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"
5655 # Check whether --enable-noreportusage or --disable-noreportusage was given.
5656 if test "${enable_noreportusage+set}" = set; then
5657 enableval
="$enable_noreportusage"
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
5672 ac_check_lib_save_LIBS
=$LIBS
5673 LIBS
="-lmysqlclient $LIBS"
5674 cat >conftest.
$ac_ext <<_ACEOF
5677 cat confdefs.h
>>conftest.
$ac_ext
5678 cat >>conftest.
$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5681 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
5691 mysql_real_connect ();
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
5700 grep -v '^ *+' conftest.er1
>conftest.err
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
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
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_lib_mysqlclient_mysql_real_connect
=yes
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.
$ac_ext >&5
5722 ac_cv_lib_mysqlclient_mysql_real_connect
=no
5724 rm -f conftest.err conftest.
$ac_objext \
5725 conftest
$ac_exeext conftest.
$ac_ext
5726 LIBS
=$ac_check_lib_save_LIBS
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
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
5743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
5758 rm -f conftest.
$ac_objext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>conftest.er1
5762 grep -v '^ *+' conftest.er1
>conftest.err
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
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
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_header_compiler
=yes
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.
$ac_ext >&5
5784 ac_header_compiler
=no
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
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
5796 cat confdefs.h
>>conftest.
$ac_ext
5797 cat >>conftest.
$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #include <$with_mysql_includes/mysql.h>
5801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5802 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5804 grep -v '^ *+' conftest.er1
>conftest.err
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
5818 if test -z "$ac_cpp_err"; then
5819 ac_header_preproc
=yes
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.
$ac_ext >&5
5824 ac_header_preproc
=no
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
5830 # So? What about this header?
5831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
5854 ## ------------------------------------------ ##
5855 ## Report this to the AC_PACKAGE_NAME lists. ##
5856 ## ------------------------------------------ ##
5859 sed "s/^/$as_me: WARNING: /" >&2
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
5867 eval "$as_ac_Header=\$ac_header_preproc"
5869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5874 CFLAGS
="$CFLAGS -I$with_mysql_includes" ; mysqlinc
=1
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
5888 ac_save_LIBS
="$LIBS"
5889 LIBS
="-L$with_mysql_libraries -lmysqlclient $LIBS"
5890 cat >conftest.
$ac_ext <<_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();
5903 mysql_real_connect()
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
5912 grep -v '^ *+' conftest.er1
>conftest.err
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
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
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 eval "ac_cv_lib_loc_$ac_lib_var=yes"
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.
$ac_ext >&5
5934 eval "ac_cv_lib_loc_$ac_lib_var=no"
5936 rm -f conftest.err conftest.
$ac_objext \
5937 conftest
$ac_exeext conftest.
$ac_ext
5938 LIBS
="$ac_save_LIBS"
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
5946 echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6
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
5962 ac_save_LIBS
="$LIBS"
5963 LIBS
="-L$with_mysql/lib/mysql -lmysqlclient $LIBS"
5964 cat >conftest.
$ac_ext <<_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();
5977 mysql_real_connect()
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
5986 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.
$ac_ext >&5
6008 eval "ac_cv_lib_loc_$ac_lib_var=no"
6010 rm -f conftest.err conftest.
$ac_objext \
6011 conftest
$ac_exeext conftest.
$ac_ext
6012 LIBS
="$ac_save_LIBS"
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
6020 echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6
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
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
6049 rm -f conftest.
$ac_objext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6051 (eval $ac_compile) 2>conftest.er1
6053 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_header_compiler
=yes
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.
$ac_ext >&5
6075 ac_header_compiler
=no
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
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
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>
6092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6093 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6095 grep -v '^ *+' conftest.er1
>conftest.err
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
6109 if test -z "$ac_cpp_err"; then
6110 ac_header_preproc
=yes
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.
$ac_ext >&5
6115 ac_header_preproc
=no
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
6121 # So? What about this header?
6122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
6145 ## ------------------------------------------ ##
6146 ## Report this to the AC_PACKAGE_NAME lists. ##
6147 ## ------------------------------------------ ##
6150 sed "s/^/$as_me: WARNING: /" >&2
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
6158 eval "$as_ac_Header=\$ac_header_preproc"
6160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6165 CFLAGS
="$CFLAGS -I$with_mysql/include/mysql" ; mysqlhead
=1
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
6179 ac_save_LIBS
="$LIBS"
6180 LIBS
="-L/opt/lib/mysql -lmysqlclient $LIBS"
6181 cat >conftest.
$ac_ext <<_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();
6194 mysql_real_connect()
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
6203 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.
$ac_ext >&5
6225 eval "ac_cv_lib_loc_$ac_lib_var=no"
6227 rm -f conftest.err conftest.
$ac_objext \
6228 conftest
$ac_exeext conftest.
$ac_ext
6229 LIBS
="$ac_save_LIBS"
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
6237 echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6
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
6249 ac_save_LIBS
="$LIBS"
6250 LIBS
="-L/usr/local/lib/mysql -lmysqlclient $LIBS"
6251 cat >conftest.
$ac_ext <<_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();
6264 mysql_real_connect()
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
6273 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.
$ac_ext >&5
6295 eval "ac_cv_lib_loc_$ac_lib_var=no"
6297 rm -f conftest.err conftest.
$ac_objext \
6298 conftest
$ac_exeext conftest.
$ac_ext
6299 LIBS
="$ac_save_LIBS"
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
6307 echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6
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
6319 ac_save_LIBS
="$LIBS"
6320 LIBS
="-L/usr/lib/mysql -lmysqlclient $LIBS"
6321 cat >conftest.
$ac_ext <<_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();
6334 mysql_real_connect()
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
6343 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.
$ac_ext >&5
6365 eval "ac_cv_lib_loc_$ac_lib_var=no"
6367 rm -f conftest.err conftest.
$ac_objext \
6368 conftest
$ac_exeext conftest.
$ac_ext
6369 LIBS
="$ac_save_LIBS"
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
6377 echo "$as_me:$LINENO: result: no" >&5
6378 echo "${ECHO_T}no" >&6
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
6389 ac_save_LIBS
="$LIBS"
6390 LIBS
="-L/usr/local/lib -lmysqlclient $LIBS"
6391 cat >conftest.
$ac_ext <<_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();
6404 mysql_real_connect()
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
6413 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.
$ac_ext >&5
6435 eval "ac_cv_lib_loc_$ac_lib_var=no"
6437 rm -f conftest.err conftest.
$ac_objext \
6438 conftest
$ac_exeext conftest.
$ac_ext
6439 LIBS
="$ac_save_LIBS"
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
6447 echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6
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
6459 ac_save_LIBS
="$LIBS"
6460 LIBS
="-L/opt/lib -lmysqlclient $LIBS"
6461 cat >conftest.
$ac_ext <<_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();
6474 mysql_real_connect()
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
6483 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.
$ac_ext >&5
6505 eval "ac_cv_lib_loc_$ac_lib_var=no"
6507 rm -f conftest.err conftest.
$ac_objext \
6508 conftest
$ac_exeext conftest.
$ac_ext
6509 LIBS
="$ac_save_LIBS"
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
6517 echo "$as_me:$LINENO: result: no" >&5
6518 echo "${ECHO_T}no" >&6
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
6529 ac_save_LIBS
="$LIBS"
6530 LIBS
="-L/usr/lib -lmysqlclient $LIBS"
6531 cat >conftest.
$ac_ext <<_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();
6544 mysql_real_connect()
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
6553 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.
$ac_ext >&5
6575 eval "ac_cv_lib_loc_$ac_lib_var=no"
6577 rm -f conftest.err conftest.
$ac_objext \
6578 conftest
$ac_exeext conftest.
$ac_ext
6579 LIBS
="$ac_save_LIBS"
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
6587 echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6
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
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
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
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>
6615 rm -f conftest.
$ac_objext
6616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6617 (eval $ac_compile) 2>conftest.er1
6619 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 ac_header_compiler
=yes
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.
$ac_ext >&5
6641 ac_header_compiler
=no
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
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
6653 cat confdefs.h
>>conftest.
$ac_ext
6654 cat >>conftest.
$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include </opt/include/mysql/mysql.h>
6658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6659 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6661 grep -v '^ *+' conftest.er1
>conftest.err
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
6675 if test -z "$ac_cpp_err"; then
6676 ac_header_preproc
=yes
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.
$ac_ext >&5
6681 ac_header_preproc
=no
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
6687 # So? What about this header?
6688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
6711 ## ------------------------------------------ ##
6712 ## Report this to the AC_PACKAGE_NAME lists. ##
6713 ## ------------------------------------------ ##
6716 sed "s/^/$as_me: WARNING: /" >&2
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
6724 ac_cv_header__opt_include_mysql_mysql_h
=$ac_header_preproc
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
6730 if test $ac_cv_header__opt_include_mysql_mysql_h = yes; then
6731 CFLAGS
="$CFLAGS -I/opt/include/mysql" ; mysqlhead
=1
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
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
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
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>
6756 rm -f conftest.
$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_header_compiler
=yes
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.
$ac_ext >&5
6782 ac_header_compiler
=no
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
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
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>
6799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6800 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6802 grep -v '^ *+' conftest.er1
>conftest.err
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
6816 if test -z "$ac_cpp_err"; then
6817 ac_header_preproc
=yes
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.
$ac_ext >&5
6822 ac_header_preproc
=no
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
6828 # So? What about this header?
6829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
6852 ## ------------------------------------------ ##
6853 ## Report this to the AC_PACKAGE_NAME lists. ##
6854 ## ------------------------------------------ ##
6857 sed "s/^/$as_me: WARNING: /" >&2
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
6865 ac_cv_header__usr_local_include_mysql_mysql_h
=$ac_header_preproc
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
6871 if test $ac_cv_header__usr_local_include_mysql_mysql_h = yes; then
6872 CFLAGS
="$CFLAGS -I/usr/local/include/mysql" ; mysqlhead
=1
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
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
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
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>
6897 rm -f conftest.
$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>conftest.er1
6901 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
6918 ac_header_compiler
=yes
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.
$ac_ext >&5
6923 ac_header_compiler
=no
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
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
6935 cat confdefs.h
>>conftest.
$ac_ext
6936 cat >>conftest.
$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include </usr/include/mysql/mysql.h>
6940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6941 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6943 grep -v '^ *+' conftest.er1
>conftest.err
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
6957 if test -z "$ac_cpp_err"; then
6958 ac_header_preproc
=yes
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.
$ac_ext >&5
6963 ac_header_preproc
=no
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
6969 # So? What about this header?
6970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
6993 ## ------------------------------------------ ##
6994 ## Report this to the AC_PACKAGE_NAME lists. ##
6995 ## ------------------------------------------ ##
6998 sed "s/^/$as_me: WARNING: /" >&2
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
7006 ac_cv_header__usr_include_mysql_mysql_h
=$ac_header_preproc
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
7012 if test $ac_cv_header__usr_include_mysql_mysql_h = yes; then
7013 CFLAGS
="$CFLAGS -I/usr/include/mysql"; mysqlhead
=1
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; }; }
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; }; }
7030 CFLAGS
="$CFLAGS -Wall"
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"
7040 if test "x$with_tableprefix" != "x"; then
7042 cat >>confdefs.h
<<_ACEOF
7043 #define TBL_PREFIX "$with_tableprefix"
7051 if test "x$with_hashlist" != "x"; then
7052 case $with_hashlist in
7054 echo "Hashlist support disabled : Thales will run slower."
7059 if test $ok -eq 0; then
7061 cat >>confdefs.h
<<_ACEOF
7062 #define HASHLISTSUPPORT 1
7070 if test "x$with_ircd" != "x"; then
7072 [Bb
][Aa
][Hh
][Aa
][Mm
][Uu
][Tt
])
7074 cat >>confdefs.h
<<_ACEOF
7075 #define IRCD_BAHAMUT 1
7078 echo "Using Bahamut IRCD"
7081 [Hh
][Yy
][Bb
][Rr
][Ii
][Dd
])
7083 cat >>confdefs.h
<<_ACEOF
7084 #define IRCD_HYBRID 1
7087 echo "Using Hybrid IRCD"
7090 [Ii
][Rr
][Cc
][Dd
][Rr
][Uu
])
7092 cat >>confdefs.h
<<_ACEOF
7093 #define IRCD_IRCDRU 1
7096 echo "Using IRCD-RU IRCD"
7099 [Uu
][Nn
][Rr
][Ee
][Aa
][Ll
])
7101 cat >>confdefs.h
<<_ACEOF
7102 #define IRCD_UNREAL 1
7105 echo "Using Unreal IRCD"
7109 [Uu
][Ll
][Tt
][Ii
][Mm
][Aa
][Tt
][Ee
]28)
7111 cat >>confdefs.h
<<_ACEOF
7112 #define IRCD_ULTI28 1
7115 echo "Using Ultimate IRCD 2.8"
7118 [Uu
][Ll
][Tt
][Ii
][Mm
][Aa
][Tt
][Ee
]30)
7120 cat >>confdefs.h
<<_ACEOF
7121 #define IRCD_ULTIMATE 1
7124 echo "Using Ultimate IRCD 3.0"
7128 echo "IRCD type unrecognized"
7132 if test $ok -eq 0; then
7134 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
7152 cat >>confdefs.h
<<_ACEOF
7153 #define IRCD_UNREAL 1
7161 cat >>confdefs.h
<<_ACEOF
7162 #define IRCD_BAHAMUT 1
7169 cat >>confdefs.h
<<_ACEOF
7170 #define IRCD_HYBRID 1
7177 cat >>confdefs.h
<<_ACEOF
7178 #define IRCD_IRCDRU 1
7185 cat >>confdefs.h
<<_ACEOF
7186 #define IRCD_ULTI28 1
7193 cat >>confdefs.h
<<_ACEOF
7194 #define IRCD_ULTIMATE 1
7200 echo "Please enter a valid option number."
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"
7210 cat >>confdefs.h
<<_ACEOF
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.
7224 # config.status only pays attention to the cache file if you give it
7225 # the --recheck option to rerun configure.
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
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.
7240 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7242 # `set' does not quote correctly, so add quotes (double-quote
7243 # substitution turns \\\\ into \\, and sed turns \\ into \).
7246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7249 # `set' quotes correctly as required by POSIX, so do not add quotes.
7251 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7260 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
7267 echo "not updating unwritable cache $cache_file"
7272 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7273 # Let make expand exec_prefix.
7274 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
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}:*/:/;
7285 s/^\([^=]*=[ ]*\):*/\1/;
7291 DEFS
=-DHAVE_CONFIG_H
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$//'`
7300 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7301 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7305 LTLIBOBJS
=$ac_ltlibobjs
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
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.
7324 SHELL=\${CONFIG_SHELL-$SHELL}
7327 cat >>$CONFIG_STATUS <<\_ACEOF
7328 ## --------------------- ##
7329 ## M4sh Initialization. ##
7330 ## --------------------- ##
7332 # Be Bourne compatible
7333 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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
7342 DUALCASE
=1; export DUALCASE
# for MKS sh
7344 # Support unset when possible.
7345 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
7352 # Work around bugs in pre-3.0 UWIN ksh.
7353 $as_unset ENV MAIL MAILPATH
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
7364 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7365 eval $as_var=C
; export $as_var
7371 # Required to use basename.
7372 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7378 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7379 as_basename
=basename
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 ||
7392 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7393 /^X\/\(\/\/\)$/{ s//\1/; q; }
7394 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
7411 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
7428 *[\\/]* ) as_myself
=$0 ;;
7429 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7433 test -z "$as_dir" && as_dir
=.
7434 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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; }; }
7449 case $CONFIG_SHELL in
7451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7452 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7455 test -z "$as_dir" && as_dir
=.
7456 for as_base
in sh bash ksh sh5
; do
7459 if ("$as_dir/$as_base" -c '
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
7469 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
7490 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7493 s,^['$as_cr_digits']*\n,,
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; }; }
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).
7504 # Exit status is that of the last command.
7509 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7510 *c
*,-n*) ECHO_N
= ECHO_C
='
7512 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7513 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7516 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7522 rm -f conf$$ conf$$.exe 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
7533 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7538 rm -f conf$$ conf$$.exe conf$$.
file
7540 if mkdir -p .
2>/dev
/null
; then
7543 test -d .
/-p && rmdir .
/-p
7547 as_executable_p
="test -f"
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'"
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'"
7557 # We need space, tab and new line, in precisely that order.
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.
7573 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7574 ## Running $as_me. ##
7579 This file was extended by $as_me, which was
7580 generated by GNU Autoconf 2.59. Invocation command line was
7582 CONFIG_FILES = $CONFIG_FILES
7583 CONFIG_HEADERS = $CONFIG_HEADERS
7584 CONFIG_LINKS = $CONFIG_LINKS
7585 CONFIG_COMMANDS = $CONFIG_COMMANDS
7589 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
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
7598 if test -n "$ac_config_headers"; then
7599 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7602 if test -n "$ac_config_links"; then
7603 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7606 if test -n "$ac_config_commands"; then
7607 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7610 cat >>$CONFIG_STATUS <<\_ACEOF
7613 \`$as_me' instantiates files from templates according to the
7614 current configuration.
7616 Usage: $0 [OPTIONS] [FILE]...
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
7628 Configuration files:
7631 Configuration headers:
7634 Configuration commands:
7637 Report bugs to <bug-autoconf@gnu.org>."
7640 cat >>$CONFIG_STATUS <<_ACEOF
7643 configured by $0, generated by GNU Autoconf 2.59,
7644 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
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."
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.
7661 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7662 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7670 *) # This is not an option, so the user has probably given explicit
7673 ac_need_defaults
=false
;;
7677 # Handling of the options.
7679 cat >>$CONFIG_STATUS <<\_ACEOF
7680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7682 --version | --vers* | -V )
7683 echo "$ac_cs_version"; exit 0 ;;
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 )
7695 --file | --fil | --fi | --f )
7697 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7698 ac_need_defaults
=false
;;
7699 --header | --heade | --head | --hea )
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)
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; }; } ;;
7714 *) ac_config_targets
="$ac_config_targets $1" ;;
7720 ac_configure_extra_args
=
7722 if $ac_cs_silent; then
7724 ac_configure_extra_args
="$ac_configure_extra_args --silent"
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
7736 cat >>$CONFIG_STATUS <<_ACEOF
7738 # INIT-COMMANDS section.
7747 cat >>$CONFIG_STATUS <<\_ACEOF
7748 for ac_config_target
in $ac_config_targets
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; }; };;
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
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.
7779 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7780 trap '{ (exit 1); exit 1; }' 1 2 13 15
7783 # Create a (secure) tmp directory for tmp files.
7786 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7787 test -n "$tmp" && test -d "$tmp"
7790 tmp
=.
/confstat$$
-$RANDOM
7791 (umask 077 && mkdir $tmp)
7794 echo "$me: cannot create a temporary directory in ." >&2
7795 { (exit 1); exit 1; }
7800 cat >>$CONFIG_STATUS <<_ACEOF
7803 # CONFIG_FILES section.
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
7838 s,@ECHO_C@,$ECHO_C,;t t
7839 s,@ECHO_N@,$ECHO_N,;t t
7840 s,@ECHO_T@,$ECHO_T,;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
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
7863 s,@EGREP@,$EGREP,;t t
7864 s,@LIBOBJS@,$LIBOBJS,;t t
7865 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
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.
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.
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
7883 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7885 if test ! -s $tmp/subs.frag
; then
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.
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"
7897 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7899 ac_sed_frag
=`expr $ac_sed_frag + 1`
7901 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7904 if test -z "$ac_sed_cmds"; then
7907 fi # test -n "$CONFIG_FILES"
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".
7914 - | *:- | *:-:* ) # input from 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 ;;
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 ||
7931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7933 /^X\(\/\/\)$/{ s//\1/; q; }
7934 /^X\(\/\).*/{ s//\1/; q; }
7936 { if $as_mkdir_p; then
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 ||
7950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7952 /^X\(\/\/\)$/{ s//\1/; q; }
7953 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
7968 ac_dir_suffix
= ac_top_builddir
=
7972 .
) # No --srcdir option. We are building in place.
7974 if test -z "$ac_top_builddir"; then
7977 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7979 [\\/]* | ?
:[\\/]* ) # Absolute path.
7980 ac_srcdir
=$srcdir$ac_dir_suffix;
7981 ac_top_srcdir
=$srcdir ;;
7983 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7984 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7987 # Do not use `cd foo && pwd` to compute absolute paths, because
7988 # the directories may not exist.
7990 .
) ac_abs_builddir
="$ac_dir";;
7993 .
) ac_abs_builddir
=`pwd`;;
7994 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7995 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7998 case $ac_abs_builddir in
7999 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
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}.
;;
8007 case $ac_abs_builddir in
8008 .
) ac_abs_srcdir
=$ac_srcdir;;
8011 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8012 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8013 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8016 case $ac_abs_builddir in
8017 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
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;;
8028 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8029 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
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
8038 configure_input
="$ac_file. "
8040 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8041 sed 's,.*/,,'` by configure."
8043 # First look for the input files in the build tree, otherwise in the
8045 ac_file_inputs
=`IFS=:
8046 for f in $ac_file_in; do
8048 -) echo $tmp/stdin ;;
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; }; }
8056 if test -f "$f"; then
8059 elif test -f "$srcdir/$f"; then
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; }; }
8069 done` || { (exit 1); exit 1; }
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;}
8077 cat >>$CONFIG_STATUS <<_ACEOF
8081 cat >>$CONFIG_STATUS <<\_ACEOF
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
8096 if test x"$ac_file" != x-; then
8097 mv $tmp/out $ac_file
8105 cat >>$CONFIG_STATUS <<\_ACEOF
8108 # CONFIG_HEADER section.
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.
8114 # ac_d sets the value in "#define NAME VALUE" lines.
8115 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8116 ac_dB
='[ ].*$,\1#\2'
8119 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8120 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8121 ac_uB
='$,\1#\2define\3'
8125 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8126 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8128 - | *:- | *:-:* ) # input from 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 ;;
8137 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8138 echo "$as_me: creating $ac_file" >&6;}
8140 # First look for the input files in the build tree, otherwise in the
8142 ac_file_inputs
=`IFS=:
8143 for f in $ac_file_in; do
8145 -) echo $tmp/stdin ;;
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.
8154 if test -f "$f"; then
8157 elif test -f "$srcdir/$f"; then
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; }; }
8167 done` || { (exit 1); exit 1; }
8168 # Remove the trailing spaces.
8169 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
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
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.
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
8192 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8194 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
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
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]*,/* & */,
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
8218 while grep . conftest.defines >/dev/null
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
8229 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8233 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8234 rm -f conftest.defines
8235 mv conftest.
tail conftest.defines
8237 rm -f conftest.defines
8238 echo ' fi # grep' >>$CONFIG_STATUS
8239 echo >>$CONFIG_STATUS
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
8245 while grep . conftest.undefs
>/dev
/null
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
8256 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8260 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8261 rm -f conftest.undefs
8262 mv conftest.tail conftest.undefs
8264 rm -f conftest.undefs
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
8273 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8275 cat $tmp/in >>$tmp/config.h
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;}
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 ||
8289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8291 /^X\(\/\/\)$/{ s//\1/; q; }
8292 /^X\(\/\).*/{ s//\1/; q; }
8294 { if $as_mkdir_p; then
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 ||
8308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8310 /^X\(\/\/\)$/{ s//\1/; q; }
8311 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
8320 mv $tmp/config.h
$ac_file
8328 cat >>$CONFIG_STATUS <<\_ACEOF
8331 # CONFIG_COMMANDS section.
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 ||
8343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8345 /^X\(\/\/\)$/{ s//\1/; q; }
8346 /^X\(\/\).*/{ s//\1/; q; }
8348 { if $as_mkdir_p; then
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 ||
8362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8364 /^X\(\/\/\)$/{ s//\1/; q; }
8365 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
8380 ac_dir_suffix
= ac_top_builddir
=
8384 .
) # No --srcdir option. We are building in place.
8386 if test -z "$ac_top_builddir"; then
8389 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8391 [\\/]* | ?
:[\\/]* ) # Absolute path.
8392 ac_srcdir
=$srcdir$ac_dir_suffix;
8393 ac_top_srcdir
=$srcdir ;;
8395 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8396 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8399 # Do not use `cd foo && pwd` to compute absolute paths, because
8400 # the directories may not exist.
8402 .
) ac_abs_builddir
="$ac_dir";;
8405 .
) ac_abs_builddir
=`pwd`;;
8406 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8407 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8410 case $ac_abs_builddir in
8411 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
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}.
;;
8419 case $ac_abs_builddir in
8420 .
) ac_abs_srcdir
=$ac_srcdir;;
8423 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8424 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8425 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8428 case $ac_abs_builddir in
8429 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
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;;
8439 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8440 echo "$as_me: executing $ac_dest commands" >&6;}
8442 default
-1 ) test -z "$CONFIG_HEADERS" || echo timestamp
> src
/stamp
-h ;;
8447 cat >>$CONFIG_STATUS <<\_ACEOF
8449 { (exit 0); exit 0; }
8451 chmod +x
$CONFIG_STATUS
8452 ac_clean_files
=$ac_clean_files_save
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
8465 ac_config_status_args
=
8466 test "$silent" = yes &&
8467 ac_config_status_args
="$ac_config_status_args --quiet"
8469 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
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; }
8477 if test $REPORT -eq 1 -a $reportusage -eq 1; then
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)"
8486 echo "Don't forget to read the README and INSTALL files for more detailed instructions"