3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=~
/praxis
16 --enable-hard-assert Enable hard asserts.
17 --disable-hard-assert Disable hard asserts. "
19 --enable-large-net Enable large network support.
20 --disable-large-net Disable large network support. "
22 --enable-shared-modules Enable shared module support.
23 --disable-shared-modules Disable shared module support. "
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file
=.
/config.cache
38 program_transform_name
=s
,x
,x
,
46 bindir
='${exec_prefix}/bin'
47 sbindir
='${exec_prefix}/sbin'
48 libexecdir
='${exec_prefix}/libexec'
49 datadir
='${prefix}/share'
50 sysconfdir
='${prefix}/etc'
51 sharedstatedir
='${prefix}/com'
52 localstatedir
='${prefix}/var'
53 libdir
='${exec_prefix}/lib'
54 includedir
='${prefix}/include'
55 oldincludedir
='/usr/include'
56 infodir
='${prefix}/info'
57 mandir
='${prefix}/man'
59 # Initialize some other variables.
62 SHELL
=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir
="$ac_optarg" ;;
91 -build | --build | --buil | --bui | --bu)
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file
="$ac_optarg" ;;
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107 datadir
="$ac_optarg" ;;
109 -disable-* | --disable-*)
110 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* | --enable-*)
119 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev
=exec_prefix
;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix
="$ac_optarg" ;;
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host | --host | --hos | --ho)
201 -host=* | --host=* | --hos=* | --ho=*)
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev
=includedir
;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir
="$ac_optarg" ;;
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir
="$ac_optarg" ;;
216 -libdir | --libdir | --libdi | --libd)
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir
="$ac_optarg" ;;
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev
=libexecdir
;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir
="$ac_optarg" ;;
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev
=localstatedir
;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir
="$ac_optarg" ;;
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir
="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev
=oldincludedir
;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir
="$ac_optarg" ;;
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix
="$ac_optarg" ;;
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev
=program_prefix
;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix
="$ac_optarg" ;;
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev
=program_suffix
;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix
="$ac_optarg" ;;
282 -program-transform-name | --program-transform-name \
283 | --program-transform-nam | --program-transform-na \
284 | --program-transform-n | --program-transform- \
285 | --program-transform | --program-transfor \
286 | --program-transfo | --program-transf \
287 | --program-trans | --program-tran \
288 | --progr-tra | --program-tr | --program-t)
289 ac_prev
=program_transform_name
;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name
="$ac_optarg" ;;
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307 sbindir
="$ac_optarg" ;;
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
313 ac_prev
=sharedstatedir
;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318 sharedstatedir
="$ac_optarg" ;;
320 -site | --site | --sit)
322 -site=* | --site=* | --sit=*)
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir
="$ac_optarg" ;;
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev
=sysconfdir
;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir
="$ac_optarg" ;;
337 -target | --target | --targe | --targ | --tar | --ta | --t)
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target
="$ac_optarg" ;;
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
350 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package
=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}='$ac_optarg'" ;;
362 -without-* | --without-*)
363 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package
=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
372 # Obsolete; use --with-x.
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev
=x_includes
;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes
="$ac_optarg" ;;
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev
=x_libraries
;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries
="$ac_optarg" ;;
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
396 if test "x$nonopt" != xNONE
; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411 # File descriptor usage:
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest
* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted
=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted
=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE
; then
492 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file
in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp
='$CPP $CPPFLAGS'
515 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling
=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
530 ac_n
= ac_c
='\c' ac_t
=
536 for ac_dir
in autoconf
$srcdir/autoconf
; do
537 if test -f $ac_dir/install-sh; then
539 ac_install_sh
="$ac_aux_dir/install-sh -c"
541 elif test -f $ac_dir/install.sh
; then
543 ac_install_sh
="$ac_aux_dir/install.sh -c"
547 if test -z "$ac_aux_dir"; then
548 { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
550 ac_config_guess
=$ac_aux_dir/config.guess
551 ac_config_sub
=$ac_aux_dir/config.sub
552 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
557 MOD_TARGET
=shared_modules
558 MOD_INSTALL_TARGET
=install_shared_modules
560 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
561 echo "configure:562: checking whether ${MAKE-make} sets \${MAKE}" >&5
562 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
563 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
566 cat > conftestmake
<<\EOF
568 @
echo 'ac_maketemp="${MAKE}"'
570 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
571 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
572 if test -n "$ac_maketemp"; then
573 eval ac_cv_prog_make_
${ac_make}_set
=yes
575 eval ac_cv_prog_make_
${ac_make}_set
=no
579 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
580 echo "$ac_t""yes" 1>&6
583 echo "$ac_t""no" 1>&6
584 SET_MAKE
="MAKE=${MAKE-make}"
587 # Extract the first word of "gcc", so it can be a program name with args.
588 set dummy gcc
; ac_word
=$2
589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
590 echo "configure:591: checking for $ac_word" >&5
591 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
594 if test -n "$CC"; then
595 ac_cv_prog_CC
="$CC" # Let the user override the test.
597 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
599 for ac_dir
in $ac_dummy; do
600 test -z "$ac_dir" && ac_dir
=.
601 if test -f $ac_dir/$ac_word; then
610 if test -n "$CC"; then
611 echo "$ac_t""$CC" 1>&6
613 echo "$ac_t""no" 1>&6
616 if test -z "$CC"; then
617 # Extract the first word of "cc", so it can be a program name with args.
618 set dummy cc
; ac_word
=$2
619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
620 echo "configure:621: checking for $ac_word" >&5
621 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
624 if test -n "$CC"; then
625 ac_cv_prog_CC
="$CC" # Let the user override the test.
627 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
630 for ac_dir
in $ac_dummy; do
631 test -z "$ac_dir" && ac_dir
=.
632 if test -f $ac_dir/$ac_word; then
633 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
642 if test $ac_prog_rejected = yes; then
643 # We found a bogon in the path, so make sure we never use it.
644 set dummy
$ac_cv_prog_CC
646 if test $# -gt 0; then
647 # We chose a different compiler from the bogus one.
648 # However, it has the same basename, so the bogon will be chosen
649 # first if we set CC to just the basename; use the full file name.
651 set dummy
"$ac_dir/$ac_word" "$@"
659 if test -n "$CC"; then
660 echo "$ac_t""$CC" 1>&6
662 echo "$ac_t""no" 1>&6
665 if test -z "$CC"; then
668 # Extract the first word of "cl", so it can be a program name with args.
669 set dummy cl
; ac_word
=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 if test -n "$CC"; then
676 ac_cv_prog_CC
="$CC" # Let the user override the test.
678 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
680 for ac_dir
in $ac_dummy; do
681 test -z "$ac_dir" && ac_dir
=.
682 if test -f $ac_dir/$ac_word; then
691 if test -n "$CC"; then
692 echo "$ac_t""$CC" 1>&6
694 echo "$ac_t""no" 1>&6
699 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
702 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
703 echo "configure:704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
707 ac_cpp
='$CPP $CPPFLAGS'
708 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
709 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
710 cross_compiling
=$ac_cv_prog_cc_cross
712 cat > conftest.
$ac_ext << EOF
714 #line 715 "configure"
715 #include "confdefs.h"
719 if { (eval echo configure
:720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
720 ac_cv_prog_cc_works
=yes
721 # If we can't run a trivial program, we are probably using a cross compiler.
722 if (.
/conftest
; exit) 2>/dev
/null
; then
723 ac_cv_prog_cc_cross
=no
725 ac_cv_prog_cc_cross
=yes
728 echo "configure: failed program was:" >&5
729 cat conftest.
$ac_ext >&5
730 ac_cv_prog_cc_works
=no
734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
735 ac_cpp
='$CPP $CPPFLAGS'
736 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
737 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
738 cross_compiling
=$ac_cv_prog_cc_cross
740 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
741 if test $ac_cv_prog_cc_works = no
; then
742 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
744 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
745 echo "configure:746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
746 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
747 cross_compiling
=$ac_cv_prog_cc_cross
749 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
750 echo "configure:751: checking whether we are using GNU C" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftest.c
<<EOF
759 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
766 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
768 if test $ac_cv_prog_gcc = yes; then
774 ac_test_CFLAGS
="${CFLAGS+set}"
775 ac_save_CFLAGS
="$CFLAGS"
777 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
778 echo "configure:779: checking whether ${CC-cc} accepts -g" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 echo 'void f(){}' > conftest.c
783 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
792 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
793 if test "$ac_test_CFLAGS" = set; then
794 CFLAGS
="$ac_save_CFLAGS"
795 elif test $ac_cv_prog_cc_g = yes; then
796 if test "$GCC" = yes; then
802 if test "$GCC" = yes; then
809 # Find a good install program. We prefer a C program (faster),
810 # so one script is as good as another. But avoid the broken or
811 # incompatible versions:
812 # SysV /etc/install, /usr/sbin/install
813 # SunOS /usr/etc/install
816 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
817 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
818 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
819 # ./install, which can be erroneously created by make from ./install.sh.
820 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
821 echo "configure:822: checking for a BSD compatible install" >&5
822 if test -z "$INSTALL"; then
823 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
827 for ac_dir
in $PATH; do
828 # Account for people who put trailing slashes in PATH elements.
830 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
832 # OSF1 and SCO ODT 3.0 have their own names for install.
833 # Don't use installbsd from OSF since it installs stuff as root
835 for ac_prog
in ginstall scoinst
install; do
836 if test -f $ac_dir/$ac_prog; then
837 if test $ac_prog = install &&
838 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
839 # AIX install. It has an incompatible calling convention.
842 ac_cv_path_install
="$ac_dir/$ac_prog -c"
853 if test "${ac_cv_path_install+set}" = set; then
854 INSTALL
="$ac_cv_path_install"
856 # As a last resort, use the slow shell script. We don't cache a
857 # path for INSTALL within a source directory, because that will
858 # break other packages using the cache if that directory is
859 # removed, or if the path is relative.
860 INSTALL
="$ac_install_sh"
863 echo "$ac_t""$INSTALL" 1>&6
865 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
866 # It thinks the first close brace ends the variable substitution.
867 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
869 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
871 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
873 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
874 echo "configure:875: checking for Cygwin environment" >&5
875 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
878 cat > conftest.
$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
885 #define __CYGWIN__ __CYGWIN32__
890 if { (eval echo configure
:891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
894 echo "configure: failed program was:" >&5
895 cat conftest.
$ac_ext >&5
903 echo "$ac_t""$ac_cv_cygwin" 1>&6
905 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
906 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
907 echo "configure:908: checking for mingw32 environment" >&5
908 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 cat > conftest.
$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
919 if { (eval echo configure
:920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
923 echo "configure: failed program was:" >&5
924 cat conftest.
$ac_ext >&5
932 echo "$ac_t""$ac_cv_mingw32" 1>&6
934 test "$ac_cv_mingw32" = yes && MINGW32
=yes
937 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
938 echo "configure:939: checking for executable suffix" >&5
939 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
942 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
946 echo 'int main () { return 0; }' > conftest.
$ac_ext
948 if { (eval echo configure
:949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
949 for file in conftest.
*; do
951 *.c
| *.o
| *.obj
) ;;
952 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
956 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
959 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
964 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
965 echo "$ac_t""${ac_cv_exeext}" 1>&6
968 # Extract the first word of "rm", so it can be a program name with args.
969 set dummy
rm; ac_word
=$2
970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
971 echo "configure:972: checking for $ac_word" >&5
972 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
977 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
980 ac_cv_path_RM
="$RM" # Let the user override the test with a dos path.
983 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
985 for ac_dir
in $ac_dummy; do
986 test -z "$ac_dir" && ac_dir
=.
987 if test -f $ac_dir/$ac_word; then
988 ac_cv_path_RM
="$ac_dir/$ac_word"
997 if test -n "$RM"; then
998 echo "$ac_t""$RM" 1>&6
1000 echo "$ac_t""no" 1>&6
1003 # Extract the first word of "mv", so it can be a program name with args.
1004 set dummy
mv; ac_word
=$2
1005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1006 echo "configure:1007: checking for $ac_word" >&5
1007 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1012 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
1015 ac_cv_path_MV
="$MV" # Let the user override the test with a dos path.
1018 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1020 for ac_dir
in $ac_dummy; do
1021 test -z "$ac_dir" && ac_dir
=.
1022 if test -f $ac_dir/$ac_word; then
1023 ac_cv_path_MV
="$ac_dir/$ac_word"
1032 if test -n "$MV"; then
1033 echo "$ac_t""$MV" 1>&6
1035 echo "$ac_t""no" 1>&6
1038 # Extract the first word of "cp", so it can be a program name with args.
1039 set dummy
cp; ac_word
=$2
1040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1041 echo "configure:1042: checking for $ac_word" >&5
1042 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1047 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
1050 ac_cv_path_CP
="$CP" # Let the user override the test with a dos path.
1053 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1055 for ac_dir
in $ac_dummy; do
1056 test -z "$ac_dir" && ac_dir
=.
1057 if test -f $ac_dir/$ac_word; then
1058 ac_cv_path_CP
="$ac_dir/$ac_word"
1067 if test -n "$CP"; then
1068 echo "$ac_t""$CP" 1>&6
1070 echo "$ac_t""no" 1>&6
1073 # Extract the first word of "ar", so it can be a program name with args.
1074 set dummy
ar; ac_word
=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1082 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
1085 ac_cv_path_AR
="$AR" # Let the user override the test with a dos path.
1088 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1090 for ac_dir
in $ac_dummy; do
1091 test -z "$ac_dir" && ac_dir
=.
1092 if test -f $ac_dir/$ac_word; then
1093 ac_cv_path_AR
="$ac_dir/$ac_word"
1102 if test -n "$AR"; then
1103 echo "$ac_t""$AR" 1>&6
1105 echo "$ac_t""no" 1>&6
1108 # Extract the first word of "ranlib", so it can be a program name with args.
1109 set dummy ranlib
; ac_word
=$2
1110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1111 echo "configure:1112: checking for $ac_word" >&5
1112 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1117 ac_cv_path_RANLIB
="$RANLIB" # Let the user override the test with a path.
1120 ac_cv_path_RANLIB
="$RANLIB" # Let the user override the test with a dos path.
1123 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1125 for ac_dir
in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir
=.
1127 if test -f $ac_dir/$ac_word; then
1128 ac_cv_path_RANLIB
="$ac_dir/$ac_word"
1136 RANLIB
="$ac_cv_path_RANLIB"
1137 if test -n "$RANLIB"; then
1138 echo "$ac_t""$RANLIB" 1>&6
1140 echo "$ac_t""no" 1>&6
1143 echo $ac_n "checking for inline""... $ac_c" 1>&6
1144 echo "configure:1145: checking for inline" >&5
1145 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1149 for ac_kw
in inline __inline__ __inline
; do
1150 cat > conftest.
$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1158 if { (eval echo configure
:1159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1160 ac_cv_c_inline
=$ac_kw; break
1162 echo "configure: failed program was:" >&5
1163 cat conftest.
$ac_ext >&5
1170 echo "$ac_t""$ac_cv_c_inline" 1>&6
1171 case "$ac_cv_c_inline" in
1173 no
) cat >> confdefs.h
<<\EOF
1177 *) cat >> confdefs.h
<<EOF
1178 #define inline $ac_cv_c_inline
1184 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1185 echo "configure:1186: checking how to run the C preprocessor" >&5
1186 # On Suns, sometimes $CPP names a directory.
1187 if test -n "$CPP" && test -d "$CPP"; then
1190 if test -z "$CPP"; then
1191 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 # This must be in double quotes, not single quotes, because CPP may get
1195 # substituted into the Makefile and "${CC-cc}" will confuse make.
1197 # On the NeXT, cc -E runs the code through the compiler's parser,
1198 # not just through cpp.
1199 cat > conftest.
$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1205 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1206 { (eval echo configure
:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1207 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1208 if test -z "$ac_err"; then
1212 echo "configure: failed program was:" >&5
1213 cat conftest.
$ac_ext >&5
1215 CPP
="${CC-cc} -E -traditional-cpp"
1216 cat > conftest.
$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1222 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1223 { (eval echo configure
:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1224 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1225 if test -z "$ac_err"; then
1229 echo "configure: failed program was:" >&5
1230 cat conftest.
$ac_ext >&5
1232 CPP
="${CC-cc} -nologo -E"
1233 cat > conftest.
$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1239 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1240 { (eval echo configure
:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1241 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1242 if test -z "$ac_err"; then
1246 echo "configure: failed program was:" >&5
1247 cat conftest.
$ac_ext >&5
1256 ac_cv_prog_CPP
="$CPP"
1258 CPP
="$ac_cv_prog_CPP"
1260 ac_cv_prog_CPP
="$CPP"
1262 echo "$ac_t""$CPP" 1>&6
1264 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1265 echo "configure:1266: checking for ANSI C header files" >&5
1266 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 cat > conftest.
$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1277 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1278 { (eval echo configure
:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1279 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1280 if test -z "$ac_err"; then
1282 ac_cv_header_stdc
=yes
1285 echo "configure: failed program was:" >&5
1286 cat conftest.
$ac_ext >&5
1288 ac_cv_header_stdc
=no
1292 if test $ac_cv_header_stdc = yes; then
1293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1294 cat > conftest.
$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1300 egrep "memchr" >/dev
/null
2>&1; then
1304 ac_cv_header_stdc
=no
1310 if test $ac_cv_header_stdc = yes; then
1311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1312 cat > conftest.
$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1318 egrep "free" >/dev
/null
2>&1; then
1322 ac_cv_header_stdc
=no
1328 if test $ac_cv_header_stdc = yes; then
1329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1330 if test "$cross_compiling" = yes; then
1333 cat > conftest.
$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1337 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1338 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1340 int main () { int i; for (i = 0; i < 256; i++)
1341 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1345 if { (eval echo configure
:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1349 echo "configure: failed program was:" >&5
1350 cat conftest.
$ac_ext >&5
1352 ac_cv_header_stdc
=no
1360 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1361 if test $ac_cv_header_stdc = yes; then
1362 cat >> confdefs.h
<<\EOF
1363 #define STDC_HEADERS 1
1368 for ac_hdr
in sys
/time.h sys
/select.h getopt.h
1370 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1372 echo "configure:1373: checking for $ac_hdr" >&5
1373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1376 cat > conftest.
$ac_ext <<EOF
1377 #line 1378 "configure"
1378 #include "confdefs.h"
1381 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1382 { (eval echo configure
:1383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1383 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1384 if test -z "$ac_err"; then
1386 eval "ac_cv_header_$ac_safe=yes"
1389 echo "configure: failed program was:" >&5
1390 cat conftest.
$ac_ext >&5
1392 eval "ac_cv_header_$ac_safe=no"
1396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1398 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1399 cat >> confdefs.h
<<EOF
1400 #define $ac_tr_hdr 1
1404 echo "$ac_t""no" 1>&6
1409 echo $ac_n "checking for working const""... $ac_c" 1>&6
1410 echo "configure:1411: checking for working const" >&5
1411 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 cat > conftest.
$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1420 /* Ultrix mips cc rejects this. */
1421 typedef int charset[2]; const charset x;
1422 /* SunOS 4.1.1 cc rejects this. */
1423 char const *const *ccp;
1425 /* NEC SVR4.0.2 mips cc rejects this. */
1426 struct point {int x, y;};
1427 static struct point const zero = {0,0};
1428 /* AIX XL C 1.02.0.0 rejects this.
1429 It does not let you subtract one const X* pointer from another in an arm
1430 of an if-expression whose if-part is not a constant expression */
1431 const char *g = "string";
1432 ccp = &g + (g ? g-g : 0);
1433 /* HPUX 7.0 cc rejects these. */
1436 ccp = (char const *const *) p;
1437 { /* SCO 3.2v4 cc rejects this. */
1439 char const *s = 0 ? (char *) 0 : (char const *) 0;
1443 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1445 const int *foo = &x[0];
1448 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1449 typedef const int *iptr;
1453 { /* AIX XL C 1.02.0.0 rejects this saying
1454 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1455 struct s { int j; const int *ap[3]; };
1456 struct s *b; b->j = 5;
1458 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1464 if { (eval echo configure
:1465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1468 echo "configure: failed program was:" >&5
1469 cat conftest.
$ac_ext >&5
1476 echo "$ac_t""$ac_cv_c_const" 1>&6
1477 if test $ac_cv_c_const = no
; then
1478 cat >> confdefs.h
<<\EOF
1484 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1485 echo "configure:1486: checking for size_t" >&5
1486 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 cat > conftest.
$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1492 #include <sys/types.h>
1498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1499 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1501 ac_cv_type_size_t
=yes
1504 ac_cv_type_size_t
=no
1509 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1510 if test $ac_cv_type_size_t = no
; then
1511 cat >> confdefs.h
<<\EOF
1512 #define size_t unsigned
1517 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1518 echo "configure:1519: checking whether time.h and sys/time.h may both be included" >&5
1519 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1522 cat > conftest.
$ac_ext <<EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1525 #include <sys/types.h>
1526 #include <sys/time.h>
1532 if { (eval echo configure
:1533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1534 ac_cv_header_time
=yes
1536 echo "configure: failed program was:" >&5
1537 cat conftest.
$ac_ext >&5
1539 ac_cv_header_time
=no
1544 echo "$ac_t""$ac_cv_header_time" 1>&6
1545 if test $ac_cv_header_time = yes; then
1546 cat >> confdefs.h
<<\EOF
1547 #define TIME_WITH_SYS_TIME 1
1552 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1553 echo "configure:1554: checking whether struct tm is in sys/time.h or time.h" >&5
1554 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1557 cat > conftest.
$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1560 #include <sys/types.h>
1563 struct tm *tp; tp->tm_sec;
1566 if { (eval echo configure
:1567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1568 ac_cv_struct_tm
=time.h
1570 echo "configure: failed program was:" >&5
1571 cat conftest.
$ac_ext >&5
1573 ac_cv_struct_tm
=sys
/time.h
1578 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1579 if test $ac_cv_struct_tm = sys
/time.h
; then
1580 cat >> confdefs.h
<<\EOF
1581 #define TM_IN_SYS_TIME 1
1587 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1588 echo "configure:1589: checking return type of signal handlers" >&5
1589 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 cat > conftest.
$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 #include <sys/types.h>
1601 extern "C" void (*signal (int, void (*)(int)))(int);
1603 void (*signal ()) ();
1610 if { (eval echo configure
:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1612 ac_cv_type_signal
=void
1614 echo "configure: failed program was:" >&5
1615 cat conftest.
$ac_ext >&5
1617 ac_cv_type_signal
=int
1622 echo "$ac_t""$ac_cv_type_signal" 1>&6
1623 cat >> confdefs.h
<<EOF
1624 #define RETSIGTYPE $ac_cv_type_signal
1628 echo $ac_n "checking for strftime""... $ac_c" 1>&6
1629 echo "configure:1630: checking for strftime" >&5
1630 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1633 cat > conftest.
$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1636 /* System header to define __stub macros and hopefully few prototypes,
1637 which can conflict with char strftime(); below. */
1639 /* Override any gcc2 internal prototype to avoid an error. */
1640 /* We use char because int might match the return type of a gcc2
1641 builtin and then its argument prototype would still apply. */
1646 /* The GNU C library defines this for functions which it implements
1647 to always fail with ENOSYS. Some functions are actually named
1648 something starting with __ and the normal name is an alias. */
1649 #if defined (__stub_strftime) || defined (__stub___strftime)
1657 if { (eval echo configure
:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1659 eval "ac_cv_func_strftime=yes"
1661 echo "configure: failed program was:" >&5
1662 cat conftest.
$ac_ext >&5
1664 eval "ac_cv_func_strftime=no"
1669 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
1670 echo "$ac_t""yes" 1>&6
1671 cat >> confdefs.h
<<\EOF
1672 #define HAVE_STRFTIME 1
1676 echo "$ac_t""no" 1>&6
1677 # strftime is in -lintl on SCO UNIX.
1678 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
1679 echo "configure:1680: checking for strftime in -lintl" >&5
1680 ac_lib_var
=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
1681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 ac_save_LIBS
="$LIBS"
1686 cat > conftest.
$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1689 /* Override any gcc2 internal prototype to avoid an error. */
1690 /* We use char because int might match the return type of a gcc2
1691 builtin and then its argument prototype would still apply. */
1698 if { (eval echo configure
:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1700 eval "ac_cv_lib_$ac_lib_var=yes"
1702 echo "configure: failed program was:" >&5
1703 cat conftest.
$ac_ext >&5
1705 eval "ac_cv_lib_$ac_lib_var=no"
1708 LIBS
="$ac_save_LIBS"
1711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1712 echo "$ac_t""yes" 1>&6
1713 cat >> confdefs.h
<<\EOF
1714 #define HAVE_STRFTIME 1
1719 echo "$ac_t""no" 1>&6
1724 for ac_func
in select strlcpy strlcat getaddrinfo gettimeofday
umask mmap
1726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1727 echo "configure:1728: checking for $ac_func" >&5
1728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 cat > conftest.
$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $ac_func(); below. */
1737 /* Override any gcc2 internal prototype to avoid an error. */
1738 /* We use char because int might match the return type of a gcc2
1739 builtin and then its argument prototype would still apply. */
1744 /* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1755 if { (eval echo configure
:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1757 eval "ac_cv_func_$ac_func=yes"
1759 echo "configure: failed program was:" >&5
1760 cat conftest.
$ac_ext >&5
1762 eval "ac_cv_func_$ac_func=no"
1767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1768 echo "$ac_t""yes" 1>&6
1769 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1770 cat >> confdefs.h
<<EOF
1771 #define $ac_tr_func 1
1775 echo "$ac_t""no" 1>&6
1779 echo $ac_n "checking for socket""... $ac_c" 1>&6
1780 echo "configure:1781: checking for socket" >&5
1781 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 cat > conftest.
$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 /* System header to define __stub macros and hopefully few prototypes,
1788 which can conflict with char socket(); below. */
1790 /* Override any gcc2 internal prototype to avoid an error. */
1791 /* We use char because int might match the return type of a gcc2
1792 builtin and then its argument prototype would still apply. */
1797 /* The GNU C library defines this for functions which it implements
1798 to always fail with ENOSYS. Some functions are actually named
1799 something starting with __ and the normal name is an alias. */
1800 #if defined (__stub_socket) || defined (__stub___socket)
1808 if { (eval echo configure
:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1810 eval "ac_cv_func_socket=yes"
1812 echo "configure: failed program was:" >&5
1813 cat conftest.
$ac_ext >&5
1815 eval "ac_cv_func_socket=no"
1820 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1821 echo "$ac_t""yes" 1>&6
1824 echo "$ac_t""no" 1>&6
1825 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1826 echo "configure:1827: checking for socket in -lsocket" >&5
1827 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 ac_save_LIBS
="$LIBS"
1832 LIBS
="-lsocket $LIBS"
1833 cat > conftest.
$ac_ext <<EOF
1834 #line 1835 "configure"
1835 #include "confdefs.h"
1836 /* Override any gcc2 internal prototype to avoid an error. */
1837 /* We use char because int might match the return type of a gcc2
1838 builtin and then its argument prototype would still apply. */
1845 if { (eval echo configure
:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1847 eval "ac_cv_lib_$ac_lib_var=yes"
1849 echo "configure: failed program was:" >&5
1850 cat conftest.
$ac_ext >&5
1852 eval "ac_cv_lib_$ac_lib_var=no"
1855 LIBS
="$ac_save_LIBS"
1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1861 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1862 cat >> confdefs.h
<<EOF
1863 #define $ac_tr_lib 1
1866 LIBS
="-lsocket $LIBS"
1869 echo "$ac_t""no" 1>&6
1874 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1875 echo "configure:1876: checking for gethostbyname" >&5
1876 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 cat > conftest.
$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1882 /* System header to define __stub macros and hopefully few prototypes,
1883 which can conflict with char gethostbyname(); below. */
1885 /* Override any gcc2 internal prototype to avoid an error. */
1886 /* We use char because int might match the return type of a gcc2
1887 builtin and then its argument prototype would still apply. */
1888 char gethostbyname();
1892 /* The GNU C library defines this for functions which it implements
1893 to always fail with ENOSYS. Some functions are actually named
1894 something starting with __ and the normal name is an alias. */
1895 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1903 if { (eval echo configure
:1904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1905 eval "ac_cv_func_gethostbyname=yes"
1907 echo "configure: failed program was:" >&5
1908 cat conftest.
$ac_ext >&5
1910 eval "ac_cv_func_gethostbyname=no"
1915 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1916 echo "$ac_t""yes" 1>&6
1919 echo "$ac_t""no" 1>&6
1920 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1921 echo "configure:1922: checking for gethostbyname in -lnsl" >&5
1922 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 ac_save_LIBS
="$LIBS"
1928 cat > conftest.
$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 /* Override any gcc2 internal prototype to avoid an error. */
1932 /* We use char because int might match the return type of a gcc2
1933 builtin and then its argument prototype would still apply. */
1934 char gethostbyname();
1940 if { (eval echo configure
:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1942 eval "ac_cv_lib_$ac_lib_var=yes"
1944 echo "configure: failed program was:" >&5
1945 cat conftest.
$ac_ext >&5
1947 eval "ac_cv_lib_$ac_lib_var=no"
1950 LIBS
="$ac_save_LIBS"
1953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1954 echo "$ac_t""yes" 1>&6
1955 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1956 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1957 cat >> confdefs.h
<<EOF
1958 #define $ac_tr_lib 1
1964 echo "$ac_t""no" 1>&6
1971 echo $ac_n "checking if you want hard asserts""... $ac_c" 1>&6
1972 echo "configure:1973: checking if you want hard asserts" >&5
1973 # Check whether --enable-hard-assert or --disable-hard-assert was given.
1974 if test "${enable_hard_assert+set}" = set; then
1975 enableval
="$enable_hard_assert"
1977 case "$enableval" in
1980 cat >> confdefs.h
<<\EOF
1981 #define HARD_ASSERT 1
1992 echo "$ac_t""$HARDASSERT" 1>&6
1995 echo $ac_n "checking if you want large network support""... $ac_c" 1>&6
1996 echo "configure:1997: checking if you want large network support" >&5
1997 # Check whether --enable-large-net or --disable-large-net was given.
1998 if test "${enable_large_net+set}" = set; then
1999 enableval
="$enable_large_net"
2001 case "$enableval" in
2004 cat >> confdefs.h
<<\EOF
2005 #define LARGE_NETWORK 1
2016 echo "$ac_t""$LARGENET" 1>&6
2018 SHARED_MODULES
="yes"
2019 echo $ac_n "checking if you want shared modules""... $ac_c" 1>&6
2020 echo "configure:2021: checking if you want shared modules" >&5
2021 # Check whether --enable-shared-modules or --disable-shared-modules was given.
2022 if test "${enable_shared_modules+set}" = set; then
2023 enableval
="$enable_shared_modules"
2025 case "$enableval" in
2027 SHARED_MODULES
="yes"
2036 echo "$ac_t""$SHARED_MODULES" 1>&6
2038 if test "$SHARED_MODULES" = yes; then
2039 for ac_hdr
in dlfcn.h
2041 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2043 echo "configure:2044: checking for $ac_hdr" >&5
2044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 cat > conftest.
$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2052 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2053 { (eval echo configure
:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2054 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2055 if test -z "$ac_err"; then
2057 eval "ac_cv_header_$ac_safe=yes"
2060 echo "configure: failed program was:" >&5
2061 cat conftest.
$ac_ext >&5
2063 eval "ac_cv_header_$ac_safe=no"
2067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2070 cat >> confdefs.h
<<EOF
2071 #define $ac_tr_hdr 1
2075 echo "$ac_t""no" 1>&6
2080 echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6
2081 echo "configure:2082: checking for library containing dlopen" >&5
2082 if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 ac_func_search_save_LIBS
="$LIBS"
2086 ac_cv_search_dlopen
="no"
2087 cat > conftest.
$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2090 /* Override any gcc2 internal prototype to avoid an error. */
2091 /* We use char because int might match the return type of a gcc2
2092 builtin and then its argument prototype would still apply. */
2099 if { (eval echo configure
:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2101 ac_cv_search_dlopen
="none required"
2103 echo "configure: failed program was:" >&5
2104 cat conftest.
$ac_ext >&5
2107 test "$ac_cv_search_dlopen" = "no" && for i
in dl c_r
; do
2108 LIBS
="-l$i $ac_func_search_save_LIBS"
2109 cat > conftest.
$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 /* Override any gcc2 internal prototype to avoid an error. */
2113 /* We use char because int might match the return type of a gcc2
2114 builtin and then its argument prototype would still apply. */
2121 if { (eval echo configure
:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2123 ac_cv_search_dlopen
="-l$i"
2126 echo "configure: failed program was:" >&5
2127 cat conftest.
$ac_ext >&5
2131 LIBS
="$ac_func_search_save_LIBS"
2134 echo "$ac_t""$ac_cv_search_dlopen" 1>&6
2135 if test "$ac_cv_search_dlopen" != "no"; then
2136 test "$ac_cv_search_dlopen" = "none required" || LIBS
="$ac_cv_search_dlopen $LIBS"
2138 cat >> confdefs.h
<<\EOF
2139 #define HAVE_DLOPEN 1
2142 MOD_TARGET
="shared_modules"
2143 MOD_INSTALL_TARGET
="install_shared_modules"
2144 echo $ac_n "checking for dlsym""... $ac_c" 1>&6
2145 echo "configure:2146: checking for dlsym" >&5
2146 if eval "test \"`echo '$''{'ac_cv_func_dlsym'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 cat > conftest.
$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 /* System header to define __stub macros and hopefully few prototypes,
2153 which can conflict with char dlsym(); below. */
2155 /* Override any gcc2 internal prototype to avoid an error. */
2156 /* We use char because int might match the return type of a gcc2
2157 builtin and then its argument prototype would still apply. */
2162 /* The GNU C library defines this for functions which it implements
2163 to always fail with ENOSYS. Some functions are actually named
2164 something starting with __ and the normal name is an alias. */
2165 #if defined (__stub_dlsym) || defined (__stub___dlsym)
2173 if { (eval echo configure
:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2175 eval "ac_cv_func_dlsym=yes"
2177 echo "configure: failed program was:" >&5
2178 cat conftest.
$ac_ext >&5
2180 eval "ac_cv_func_dlsym=no"
2185 if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
2186 echo "$ac_t""yes" 1>&6
2189 echo "$ac_t""no" 1>&6
2191 echo "configure: warning: dlsym is not available, shared modules disabled" 1>&2
2196 for ac_func
in dlfunc
2198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2199 echo "configure:2200: checking for $ac_func" >&5
2200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 cat > conftest.
$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2206 /* System header to define __stub macros and hopefully few prototypes,
2207 which can conflict with char $ac_func(); below. */
2209 /* Override any gcc2 internal prototype to avoid an error. */
2210 /* We use char because int might match the return type of a gcc2
2211 builtin and then its argument prototype would still apply. */
2216 /* The GNU C library defines this for functions which it implements
2217 to always fail with ENOSYS. Some functions are actually named
2218 something starting with __ and the normal name is an alias. */
2219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2227 if { (eval echo configure
:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2229 eval "ac_cv_func_$ac_func=yes"
2231 echo "configure: failed program was:" >&5
2232 cat conftest.
$ac_ext >&5
2234 eval "ac_cv_func_$ac_func=no"
2239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2240 echo "$ac_t""yes" 1>&6
2241 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2242 cat >> confdefs.h
<<EOF
2243 #define $ac_tr_func 1
2247 echo "$ac_t""no" 1>&6
2259 if test "$SHARED_MODULES" = yes; then
2260 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
2261 MY_CFLAGS
="-shared -fPIC -DPIC"
2264 if test "$SHARED_MODULES" = no
; then
2265 cat >> confdefs.h
<<\EOF
2266 #define STATIC_MODULES 1
2269 MOD_TARGET
="static_modules"
2271 LIBS
="${LIBS} ../modules/libmodules.a userserv/libuserserv.a"
2272 LDFLAGS
="${LDFLAGS} -L../modules -Luserserv -lmodules -luserserv"
2281 if test "$SHARED_MODULES" = no
; then
2287 if test "$HARDASSERT" = no
; then
2294 cat > confcache
<<\EOF
2295 # This file is a shell script that caches the results of configure
2296 # tests run on this system so they can be shared between configure
2297 # scripts and configure runs. It is not useful on other systems.
2298 # If it contains results you don't want to keep, you may remove or edit it.
2300 # By default, configure uses ./config.cache as the cache file,
2301 # creating it if it does not exist already. You can give configure
2302 # the --cache-file=FILE option to use a different cache file; that is
2303 # what configure does when it calls configure scripts in
2304 # subdirectories, so they share the cache.
2305 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2306 # config.status only pays attention to the cache file if you give it the
2307 # --recheck option to rerun configure.
2310 # The following way of writing the cache mishandles newlines in values,
2311 # but we know of no workaround that is simple, portable, and efficient.
2312 # So, don't put newlines in cache variables' values.
2313 # Ultrix sh set writes to stderr and can't be redirected directly,
2314 # and sets the high bit in the cache file unless we assign to the vars.
2316 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2318 # `set' does not quote correctly, so add quotes (double-quote substitution
2319 # turns \\\\ into \\, and sed turns \\ into \).
2321 -e "s/'/'\\\\''/g" \
2322 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2325 # `set' quotes correctly as required by POSIX, so do not add quotes.
2326 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2329 if cmp -s $cache_file confcache
; then
2332 if test -w $cache_file; then
2333 echo "updating cache $cache_file"
2334 cat confcache
> $cache_file
2336 echo "not updating unwritable cache $cache_file"
2341 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2343 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2344 # Let make expand exec_prefix.
2345 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2347 # Any assignment to VPATH causes Sun make to only execute
2348 # the first set of double-colon rules, so remove it if not needed.
2349 # If there is a colon in the path, we need to keep it.
2350 if test "x$srcdir" = x.
; then
2351 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2354 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2356 DEFS
=-DHAVE_CONFIG_H
2358 # Without the "./", some shells look in PATH for config.status.
2359 : ${CONFIG_STATUS=./config.status}
2361 echo creating
$CONFIG_STATUS
2362 rm -f $CONFIG_STATUS
2363 cat > $CONFIG_STATUS <<EOF
2365 # Generated automatically by configure.
2366 # Run this file to recreate the current configuration.
2367 # This directory was configured as follows,
2368 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2370 # $0 $ac_configure_args
2372 # Compiler output produced by configure, useful for debugging
2373 # configure, is in ./config.log if it exists.
2375 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2378 case "\$ac_option" in
2379 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2380 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2381 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2382 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2383 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2385 -help | --help | --hel | --he | --h)
2386 echo "\$ac_cs_usage"; exit 0 ;;
2387 *) echo "\$ac_cs_usage"; exit 1 ;;
2391 ac_given_srcdir=$srcdir
2392 ac_given_INSTALL="$INSTALL"
2394 trap 'rm -fr `echo "Makefile sqlite/Makefile src/Makefile modules/Makefile include/setup.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2396 cat >> $CONFIG_STATUS <<EOF
2398 # Protect against being on the right side of a sed subst in config.status.
2399 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2400 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2404 s%@CFLAGS@%$CFLAGS%g
2405 s%@CPPFLAGS@%$CPPFLAGS%g
2406 s%@CXXFLAGS@%$CXXFLAGS%g
2407 s%@FFLAGS@%$FFLAGS%g
2409 s%@LDFLAGS@%$LDFLAGS%g
2411 s%@exec_prefix@%$exec_prefix%g
2412 s%@prefix@%$prefix%g
2413 s%@program_transform_name@%$program_transform_name%g
2414 s%@bindir@%$bindir%g
2415 s%@sbindir@%$sbindir%g
2416 s%@libexecdir@%$libexecdir%g
2417 s%@datadir@%$datadir%g
2418 s%@sysconfdir@%$sysconfdir%g
2419 s%@sharedstatedir@%$sharedstatedir%g
2420 s%@localstatedir@%$localstatedir%g
2421 s%@libdir@%$libdir%g
2422 s%@includedir@%$includedir%g
2423 s%@oldincludedir@%$oldincludedir%g
2424 s%@infodir@%$infodir%g
2425 s%@mandir@%$mandir%g
2426 s%@SET_MAKE@%$SET_MAKE%g
2428 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2429 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2430 s%@INSTALL_DATA@%$INSTALL_DATA%g
2431 s%@EXEEXT@%$EXEEXT%g
2436 s%@RANLIB@%$RANLIB%g
2438 s%@MOD_TARGET@%$MOD_TARGET%g
2439 s%@MOD_INSTALL_TARGET@%$MOD_INSTALL_TARGET%g
2440 s%@MY_CFLAGS@%$MY_CFLAGS%g
2441 s%@HARDASSERT@%$HARDASSERT%g
2442 s%@LARGENET@%$LARGENET%g
2447 cat >> $CONFIG_STATUS <<\EOF
2449 # Split the substitutions into bite-sized pieces for seds with
2450 # small command number limits, like on Digital OSF/1 and HP-UX.
2451 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2452 ac_file
=1 # Number of current file.
2453 ac_beg
=1 # First line for current file.
2454 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2457 while $ac_more_lines; do
2458 if test $ac_beg -gt 1; then
2459 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2461 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2463 if test ! -s conftest.s
$ac_file; then
2465 rm -f conftest.s
$ac_file
2467 if test -z "$ac_sed_cmds"; then
2468 ac_sed_cmds
="sed -f conftest.s$ac_file"
2470 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2472 ac_file
=`expr $ac_file + 1`
2474 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2477 if test -z "$ac_sed_cmds"; then
2482 cat >> $CONFIG_STATUS <<EOF
2484 CONFIG_FILES=\${CONFIG_FILES-"Makefile sqlite/Makefile src/Makefile modules/Makefile"}
2486 cat >> $CONFIG_STATUS <<\EOF
2487 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2488 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2490 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2491 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2492 *) ac_file_in
="${ac_file}.in" ;;
2495 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2497 # Remove last slash and all that follows it. Not all systems have dirname.
2498 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2499 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2500 # The file is in a subdirectory.
2501 test ! -d "$ac_dir" && mkdir "$ac_dir"
2502 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2503 # A "../" for each directory in $ac_dir_suffix.
2504 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2506 ac_dir_suffix
= ac_dots
=
2509 case "$ac_given_srcdir" in
2511 if test -z "$ac_dots"; then top_srcdir
=.
2512 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2513 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2515 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2516 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2519 case "$ac_given_INSTALL" in
2520 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2521 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2524 echo creating
"$ac_file"
2526 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2528 *Makefile
*) ac_comsub
="1i\\
2529 # $configure_input" ;;
2533 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2535 s%@configure_input@%$configure_input%g
2536 s%@srcdir@%$srcdir%g
2537 s%@top_srcdir@%$top_srcdir%g
2538 s%@INSTALL@%$INSTALL%g
2539 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2543 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2544 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2546 # ac_d sets the value in "#define NAME VALUE" lines.
2547 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2548 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2551 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2552 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2553 ac_uB
='\([ ]\)%\1#\2define\3'
2556 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2557 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2558 ac_eB
='$%\1#\2define\3'
2562 if test "${CONFIG_HEADERS+set}" != set; then
2564 cat >> $CONFIG_STATUS <<EOF
2565 CONFIG_HEADERS="include/setup.h"
2567 cat >> $CONFIG_STATUS <<\EOF
2569 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2570 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2572 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2573 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2574 *) ac_file_in
="${ac_file}.in" ;;
2577 echo creating
$ac_file
2579 rm -f conftest.frag conftest.
in conftest.out
2580 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2581 cat $ac_file_inputs > conftest.
in
2585 # Transform confdefs.h into a sed script conftest.vals that substitutes
2586 # the proper values into config.h.in to produce config.h. And first:
2587 # Protect against being on the right side of a sed subst in config.status.
2588 # Protect against being in an unquoted here document in config.status.
2590 cat > conftest.hdr
<<\EOF
2593 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2597 sed -n -f conftest.hdr confdefs.h > conftest.vals
2600 # This sed command replaces #undef with comments. This is necessary, for
2601 # example, in the case of _POSIX_SOURCE, which is predefined and required
2602 # on some systems where configure will not decide to define it.
2603 cat >> conftest.vals <<\EOF
2604 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2607 # Break up conftest.vals because some shells have a limit on
2608 # the size of here documents, and old seds have small limits too.
2613 ac_lines=`grep -c . conftest.vals
`
2614 # grep -c gives empty output for an empty file on some AIX systems.
2615 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2616 # Write a limited-size here document to conftest.frag.
2617 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2618 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2620 sed -f conftest.frag conftest.in > conftest.out
2622 mv conftest.out conftest.in
2624 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2626 mv conftest.tail conftest.vals
2630 cat >> $CONFIG_STATUS <<\EOF
2631 rm -f conftest.frag conftest.h
2632 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2633 cat conftest.in >> conftest.h
2635 if cmp -s $ac_file conftest.h 2>/dev/null; then
2636 echo "$ac_file is unchanged"
2639 # Remove last slash and all that follows it. Not all systems have dirname.
2640 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2641 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2642 # The file is in a subdirectory.
2643 test ! -d "$ac_dir" && mkdir "$ac_dir"
2646 mv conftest.h $ac_file
2651 cat >> $CONFIG_STATUS <<EOF
2654 cat >> $CONFIG_STATUS <<\EOF
2658 chmod +x $CONFIG_STATUS
2659 rm -fr confdefs* $ac_clean_files
2660 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2664 echo "Modules ................. $tmp_mod"
2665 echo "Assert debugging ........ $tmp_assert"
2666 echo "Large network support ... $LARGENET"