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=/usr/local/pgsql
16 --with-includes=DIRS look for additional header files in DIRS"
18 --with-libraries=DIRS look for additional libraries in DIRS"
20 --with-libs=DIRS alternative spelling of --with-libraries"
22 --enable-locale enable locale support"
24 --enable-recode enable character set recode support"
26 --enable-multibyte enable multibyte character support"
28 --with-pgport=PORTNUM change default port number [5432]"
30 --with-maxbackends=N set default maximum number of connections [32]"
32 --disable-shared do not build shared libraries"
34 --disable-rpath do not embed shared library search path in executables"
36 --enable-depend turn on automatic dependency tracking"
38 --enable-debug build with debugging symbols (-g)"
40 --enable-cassert enable assertion checks (for debugging)"
42 --with-tcl build Tcl and Tk interfaces"
44 --without-tk do not build Tk interfaces if Tcl is enabled"
46 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
48 --with-tkconfig=DIR tkConfig.sh is in DIR"
50 --with-perl build Perl interface and PL/Perl"
52 --with-python build Python interface module"
54 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
56 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
58 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]"
60 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
62 --enable-odbc build the ODBC driver package"
64 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
66 --with-CXX build C++ modules (libpq++)"
68 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
70 --enable-syslog enable logging to syslog"
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
76 cache_file=./config.cache
85 program_transform_name=s,x,x,
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 docdir='${prefix}/doc'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 # Accept the important Cygnus configure options, so we can diagnose typos.
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --docdir=DIR doc documentation in DIR [PREFIX/doc]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
246 -host | --host | --hos | --ho)
248 -host=* | --host=* | --hos=* | --ho=*)
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -docdir | --docdir | --infodi | --infod | --doc | --inf)
260 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
261 docdir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
290 # Obsolete; use --without-fp.
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
369 -site=* | --site=* | --sit=*)
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/backend/access/common/heaptuple.c
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
555 echo "creating cache $cache_file"
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
577 ac_n= ac_c='\c' ac_t=
589 for ac_dir in config $srcdir/config; do
590 if test -f $ac_dir/install-sh; then
592 ac_install_sh="$ac_aux_dir/install-sh -c"
594 elif test -f $ac_dir/install.sh; then
596 ac_install_sh="$ac_aux_dir/install.sh -c"
600 if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
603 ac_config_guess=$ac_aux_dir/config.guess
604 ac_config_sub=$ac_aux_dir/config.sub
605 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
610 cat >> confdefs.h <<EOF
611 #define PG_VERSION "$VERSION"
615 abs_top_srcdir=`cd $srcdir && pwd`
617 abs_top_builddir=`pwd`
621 # Make sure we can run config.sub.
622 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
623 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
626 echo $ac_n "checking host system type""... $ac_c" 1>&6
627 echo "configure:628: checking host system type" >&5
630 case "$host_alias" in
634 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
635 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
637 *) host_alias=$nonopt ;;
641 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
642 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$host" 1>&6
652 echo $ac_n "checking which template to use""... $ac_c" 1>&6
653 echo "configure:654: checking which template to use" >&5
655 # Check whether --with-template was given
656 if test x"${with_template+set}" = xset; then
657 case $with_template in
659 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
662 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
665 withval=$with_template
668 list) echo; ls "$srcdir/src/template"; exit;;
669 *) if test -f "$srcdir/src/template/$with_template" ; then
672 { echo "configure: error: \`$withval' is not a valid template name. Use \`list' for a list." 1>&2; exit 1; }
677 esac # $with_template
680 # --with-template not given
683 aix*) template=aix ;;
684 beos*) template=beos ;;
685 bsdi*) template=bsdi ;;
686 cygwin*) template=win ;;
687 dgux*) template=dgux ;;
688 freebsd*) template=freebsd ;;
689 hpux*) template=hpux ;;
690 irix*) template=irix5 ;;
691 linux*) template=linux ;;
692 netbsd*) template=netbsd ;;
693 nextstep*) template=nextstep ;;
694 openbsd*) template=openbsd ;;
695 osf*) template=osf ;;
696 qnx*) template=qnx4 ;;
697 sco*) template=sco ;;
698 solaris*) template=solaris ;;
699 sunos*) template=sunos4 ;;
702 univel) template=univel ;;
704 sysv4*) template=svr4 ;;
705 sysv5uw*) template=unixware ;;
706 ultrix*) template=ultrix4 ;;
709 if test x"$template" = x"" ; then
710 { echo "configure: error:
711 *******************************************************************
712 PostgreSQL has apparently not been ported to your platform yet.
713 To try a manual configuration, look into the src/template directory
714 for a similar platform and use the \`--with-template=' option.
716 Please also contact <pgsql-ports@postgresql.org> to see about
717 rectifying this. Include the above \`checking host system type...'
719 *******************************************************************
726 echo "$ac_t""$template" 1>&6
736 # Pick right test-and-set (TAS) code. Most platforms have inline
737 # assembler code in src/include/storage/s_lock.h, so we just use
740 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
741 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
742 i?86-*-solaris) need_tas=yes; tas_file=solaris_i386.s ;;
743 *) need_tas=no; tas_file=dummy.s ;;
747 if test "$need_tas" = yes ; then
755 ## Command line options
760 # Add non-standard directories to the include path
762 # Check whether --with-includes was given
763 if test x"${with_includes+set}" = xset; then
764 case $with_includes in
766 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
769 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
771 esac # $with_includes
776 # Add non-standard directories to the library search path
778 # Check whether --with-libraries was given
779 if test x"${with_libraries+set}" = xset; then
780 case $with_libraries in
782 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
785 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
788 withval=$with_libraries
789 LIBRARY_DIRS=$withval
791 esac # $with_libraries
794 # Check whether --with-libs was given
795 if test x"${with_libs+set}" = xset; then
798 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
801 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
805 LIBRARY_DIRS=$withval
812 # Locale (--enable-locale)
814 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
815 echo "configure:816: checking whether to build with locale support" >&5
816 # Check whether --enable-locale was given
817 if test x"${enable_locale+set}" = xset; then
818 case $enable_locale in
820 cat >> confdefs.h <<\EOF
829 enableval=$enable_locale
830 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
832 esac # $enable_locale
837 echo "$ac_t""$enable_locale" 1>&6
841 # Character set recode (--enable-recode)
843 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
844 echo "configure:845: checking whether to build with recode support" >&5
845 # Check whether --enable-recode was given
846 if test x"${enable_recode+set}" = xset; then
847 case $enable_recode in
849 cat >> confdefs.h <<\EOF
858 enableval=$enable_recode
859 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
861 esac # $enable_recode
866 echo "$ac_t""$enable_recode" 1>&6
873 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
874 echo "configure:875: checking whether to build with multibyte character support" >&5
876 # Check whether --enable-multibyte was given
877 if test x"${enable_multibyte+set}" = xset; then
878 case $enable_multibyte in
886 enableval=$enable_multibyte
890 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
891 MULTIBYTE=$enableval;;
893 { echo "configure: error: argument to --enable-multibyte must be one of:
894 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
895 UNICODE, MULE_INTERNAL,
896 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
898 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
902 esac # $enable_multibyte
907 if test "$enable_multibyte" = yes; then
909 cat >> confdefs.h <<\EOF
913 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
916 echo "$ac_t""no" 1>&6
924 # Default port number (--with-pgport), default 5432
926 echo $ac_n "checking for default port number""... $ac_c" 1>&6
927 echo "configure:928: checking for default port number" >&5
928 # Check whether --with-pgport was given
929 if test x"${with_pgport+set}" = xset; then
932 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
935 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
939 default_port=$withval
945 # Need both of these because backend wants an integer and frontend a string
946 cat >> confdefs.h <<EOF
947 #define DEF_PGPORT ${default_port}
950 cat >> confdefs.h <<EOF
951 #define DEF_PGPORT_STR "${default_port}"
954 echo "$ac_t""$default_port" 1>&6
958 # Maximum number of allowed connections (--with-maxbackends), default 32
960 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
961 echo "configure:962: checking for default soft limit on number of connections" >&5
962 # Check whether --with-maxbackends was given
963 if test x"${with_maxbackends+set}" = xset; then
964 case $with_maxbackends in
966 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
969 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
971 esac # $with_maxbackends
975 echo "$ac_t""$with_maxbackends" 1>&6
976 cat >> confdefs.h <<EOF
977 #define DEF_MAXBACKENDS $with_maxbackends
983 # Option to disable shared libraries
985 # Check whether --enable-shared was given
986 if test x"${enable_shared+set}" = xset; then
987 case $enable_shared in
995 enableval=$enable_shared
996 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
998 esac # $enable_shared
1006 # '-rpath'-like feature can be disabled
1008 # Check whether --enable-rpath was given
1009 if test x"${enable_rpath+set}" = xset; then
1010 case $enable_rpath in
1018 enableval=$enable_rpath
1019 { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
1021 esac # $enable_rpath
1033 # For historical reasons you can also use --with-CC to specify the C compiler
1034 # to use, although the standard way to do this is to set the CC environment
1036 # Check whether --with-CC was given
1037 if test x"${with_CC+set}" = xset; then
1040 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1043 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1052 # On AIX, default compiler to xlc.
1053 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1055 # Extract the first word of "gcc", so it can be a program name with args.
1056 set dummy gcc; ac_word=$2
1057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1058 echo "configure:1059: checking for $ac_word" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 if test -n "$CC"; then
1063 ac_cv_prog_CC="$CC" # Let the user override the test.
1065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1067 for ac_dir in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir=.
1069 if test -f $ac_dir/$ac_word; then
1078 if test -n "$CC"; then
1079 echo "$ac_t""$CC" 1>&6
1081 echo "$ac_t""no" 1>&6
1084 if test -z "$CC"; then
1085 # Extract the first word of "cc", so it can be a program name with args.
1086 set dummy cc; ac_word=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 if test -n "$CC"; then
1093 ac_cv_prog_CC="$CC" # Let the user override the test.
1095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1098 for ac_dir in $ac_dummy; do
1099 test -z "$ac_dir" && ac_dir=.
1100 if test -f $ac_dir/$ac_word; then
1101 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1102 ac_prog_rejected=yes
1110 if test $ac_prog_rejected = yes; then
1111 # We found a bogon in the path, so make sure we never use it.
1112 set dummy $ac_cv_prog_CC
1114 if test $# -gt 0; then
1115 # We chose a different compiler from the bogus one.
1116 # However, it has the same basename, so the bogon will be chosen
1117 # first if we set CC to just the basename; use the full file name.
1119 set dummy "$ac_dir/$ac_word" "$@"
1127 if test -n "$CC"; then
1128 echo "$ac_t""$CC" 1>&6
1130 echo "$ac_t""no" 1>&6
1133 if test -z "$CC"; then
1134 case "`uname -s`" in
1136 # Extract the first word of "cl", so it can be a program name with args.
1137 set dummy cl; ac_word=$2
1138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1139 echo "configure:1140: checking for $ac_word" >&5
1140 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1143 if test -n "$CC"; then
1144 ac_cv_prog_CC="$CC" # Let the user override the test.
1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1148 for ac_dir in $ac_dummy; do
1149 test -z "$ac_dir" && ac_dir=.
1150 if test -f $ac_dir/$ac_word; then
1159 if test -n "$CC"; then
1160 echo "$ac_t""$CC" 1>&6
1162 echo "$ac_t""no" 1>&6
1167 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1170 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1171 echo "configure:1172: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1175 ac_cpp='$CPP $CPPFLAGS'
1176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1178 cross_compiling=$ac_cv_prog_cc_cross
1180 cat > conftest.$ac_ext << EOF
1182 #line 1183 "configure"
1183 #include "confdefs.h"
1187 if { (eval echo configure:1188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1188 ac_cv_prog_cc_works=yes
1189 # If we can't run a trivial program, we are probably using a cross compiler.
1190 if (./conftest; exit) 2>/dev/null; then
1191 ac_cv_prog_cc_cross=no
1193 ac_cv_prog_cc_cross=yes
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1198 ac_cv_prog_cc_works=no
1202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1203 ac_cpp='$CPP $CPPFLAGS'
1204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1206 cross_compiling=$ac_cv_prog_cc_cross
1208 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1209 if test $ac_cv_prog_cc_works = no; then
1210 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1212 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1214 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1215 cross_compiling=$ac_cv_prog_cc_cross
1217 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether we are using GNU C" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 cat > conftest.c <<EOF
1227 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1234 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1236 if test $ac_cv_prog_gcc = yes; then
1242 ac_test_CFLAGS="${CFLAGS+set}"
1243 ac_save_CFLAGS="$CFLAGS"
1245 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether ${CC-cc} accepts -g" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 echo 'void f(){}' > conftest.c
1251 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1260 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1261 if test "$ac_test_CFLAGS" = set; then
1262 CFLAGS="$ac_save_CFLAGS"
1263 elif test $ac_cv_prog_cc_g = yes; then
1264 if test "$GCC" = yes; then
1270 if test "$GCC" = yes; then
1278 . "$srcdir/src/template/$template" || exit
1279 echo "using CFLAGS=$CFLAGS"
1280 # Check if the compiler still works with the template settings
1281 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1282 echo "configure:1283: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1289 cross_compiling=$ac_cv_prog_cc_cross
1291 cat > conftest.$ac_ext << EOF
1293 #line 1294 "configure"
1294 #include "confdefs.h"
1298 if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1299 ac_cv_prog_cc_works=yes
1300 # If we can't run a trivial program, we are probably using a cross compiler.
1301 if (./conftest; exit) 2>/dev/null; then
1302 ac_cv_prog_cc_cross=no
1304 ac_cv_prog_cc_cross=yes
1307 echo "configure: failed program was:" >&5
1308 cat conftest.$ac_ext >&5
1309 ac_cv_prog_cc_works=no
1313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1314 ac_cpp='$CPP $CPPFLAGS'
1315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1317 cross_compiling=$ac_cv_prog_cc_cross
1319 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1320 if test $ac_cv_prog_cc_works = no; then
1321 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1323 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1324 echo "configure:1325: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1325 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1326 cross_compiling=$ac_cv_prog_cc_cross
1328 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1329 echo "configure:1330: checking for Cygwin environment" >&5
1330 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1340 #define __CYGWIN__ __CYGWIN32__
1345 if { (eval echo configure:1346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1349 echo "configure: failed program was:" >&5
1350 cat conftest.$ac_ext >&5
1358 echo "$ac_t""$ac_cv_cygwin" 1>&6
1360 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1361 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1362 echo "configure:1363: checking for mingw32 environment" >&5
1363 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 cat > conftest.$ac_ext <<EOF
1367 #line 1368 "configure"
1368 #include "confdefs.h"
1374 if { (eval echo configure:1375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1378 echo "configure: failed program was:" >&5
1379 cat conftest.$ac_ext >&5
1387 echo "$ac_t""$ac_cv_mingw32" 1>&6
1389 test "$ac_cv_mingw32" = yes && MINGW32=yes
1392 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1393 echo "configure:1394: checking for executable suffix" >&5
1394 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1401 echo 'int main () { return 0; }' > conftest.$ac_ext
1403 if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1404 for file in conftest.*; do
1406 *.c | *.o | *.obj) ;;
1407 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1411 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1414 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1419 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1420 echo "$ac_t""${ac_cv_exeext}" 1>&6
1423 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1424 echo "configure:1425: checking how to run the C preprocessor" >&5
1425 # On Suns, sometimes $CPP names a directory.
1426 if test -n "$CPP" && test -d "$CPP"; then
1429 if test -z "$CPP"; then
1430 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 # This must be in double quotes, not single quotes, because CPP may get
1434 # substituted into the Makefile and "${CC-cc}" will confuse make.
1436 # On the NeXT, cc -E runs the code through the compiler's parser,
1437 # not just through cpp.
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1445 { (eval echo configure:1446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1447 if test -z "$ac_err"; then
1451 echo "configure: failed program was:" >&5
1452 cat conftest.$ac_ext >&5
1454 CPP="${CC-cc} -E -traditional-cpp"
1455 cat > conftest.$ac_ext <<EOF
1456 #line 1457 "configure"
1457 #include "confdefs.h"
1461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1462 { (eval echo configure:1463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1464 if test -z "$ac_err"; then
1468 echo "configure: failed program was:" >&5
1469 cat conftest.$ac_ext >&5
1471 CPP="${CC-cc} -nologo -E"
1472 cat > conftest.$ac_ext <<EOF
1473 #line 1474 "configure"
1474 #include "confdefs.h"
1478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1479 { (eval echo configure:1480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1481 if test -z "$ac_err"; then
1485 echo "configure: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1495 ac_cv_prog_CPP="$CPP"
1497 CPP="$ac_cv_prog_CPP"
1499 ac_cv_prog_CPP="$CPP"
1501 echo "$ac_t""$CPP" 1>&6
1503 if test $ac_cv_prog_gcc = yes; then
1504 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether ${CC-cc} needs -traditional" >&5
1506 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 ac_pattern="Autoconf.*'x'"
1510 cat > conftest.$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1517 egrep "$ac_pattern" >/dev/null 2>&1; then
1519 ac_cv_prog_gcc_traditional=yes
1522 ac_cv_prog_gcc_traditional=no
1527 if test $ac_cv_prog_gcc_traditional = no; then
1528 cat > conftest.$ac_ext <<EOF
1529 #line 1530 "configure"
1530 #include "confdefs.h"
1534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1535 egrep "$ac_pattern" >/dev/null 2>&1; then
1537 ac_cv_prog_gcc_traditional=yes
1544 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1545 if test $ac_cv_prog_gcc_traditional = yes; then
1546 CC="$CC -traditional"
1552 # Create compiler version string
1553 if test x"$GCC" = x"yes" ; then
1554 cc_string="GCC `${CC} --version`"
1558 cat >> confdefs.h <<EOF
1559 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1565 # Automatic dependency tracking
1567 # Check whether --enable-depend was given
1568 if test x"${enable_depend+set}" = xset; then
1569 case $enable_depend in
1577 enableval=$enable_depend
1578 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1580 esac # $enable_depend
1589 # --enable-debug adds -g to compiler flags
1591 # Check whether --enable-debug was given
1592 if test x"${enable_debug+set}" = xset; then
1593 case $enable_debug in
1601 enableval=$enable_debug
1602 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1604 esac # $enable_debug
1612 # Enable assert checks
1614 # Check whether --enable-cassert was given
1615 if test x"${enable_cassert+set}" = xset; then
1616 case $enable_cassert in
1618 cat >> confdefs.h <<\EOF
1619 #define USE_ASSERT_CHECKING 1
1627 enableval=$enable_cassert
1628 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1630 esac # $enable_cassert
1638 # Include directories
1642 # SRCH_INC comes from the template file
1643 for dir in $with_includes $SRCH_INC; do
1644 if test -d "$dir"; then
1645 INCLUDES="$INCLUDES -I$dir"
1647 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1655 # Library directories
1659 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1660 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1661 if test -d "$dir"; then
1662 LIBDIRS="$LIBDIRS -L$dir"
1664 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1673 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1674 echo "configure:1675: checking whether to build with Tcl" >&5
1675 # Check whether --with-tcl was given
1676 if test x"${with_tcl+set}" = xset; then
1686 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1693 echo "$ac_t""$with_tcl" 1>&6
1696 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1697 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1698 echo "configure:1699: checking whether to build with Tk" >&5
1699 if test "$with_tcl" = yes; then
1700 # Check whether --with-tk was given
1701 if test x"${with_tk+set}" = xset; then
1711 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1721 echo "$ac_t""$with_tk" 1>&6
1725 # We see if the path to the TCL/TK configuration scripts is specified.
1726 # This will override the use of tclsh to find the paths to search.
1728 # Check whether --with-tclconfig was given
1729 if test x"${with_tclconfig+set}" = xset; then
1730 case $with_tclconfig in
1732 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1735 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1737 esac # $with_tclconfig
1740 # We see if the path to the TK configuration scripts is specified.
1741 # This will override the use of tclsh to find the paths to search.
1743 # Check whether --with-tkconfig was given
1744 if test x"${with_tkconfig+set}" = xset; then
1745 case $with_tkconfig in
1747 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1750 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1752 esac # $with_tkconfig
1757 # Optionally build Perl modules (Pg.pm and PL/Perl)
1759 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1760 echo "configure:1761: checking whether to build Perl modules" >&5
1761 # Check whether --with-perl was given
1762 if test x"${with_perl+set}" = xset; then
1772 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1779 echo "$ac_t""$with_perl" 1>&6
1784 # Optionally build Python interface module
1786 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1787 echo "configure:1788: checking whether to build Python modules" >&5
1788 # Check whether --with-python was given
1789 if test x"${with_python+set}" = xset; then
1790 case $with_python in
1792 echo "$ac_t""yes" 1>&6
1793 # Extract the first word of "python", so it can be a program name with args.
1794 set dummy python; ac_word=$2
1795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1796 echo "configure:1797: checking for $ac_word" >&5
1797 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 if test -n "$PYTHON"; then
1801 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1805 for ac_dir in $ac_dummy; do
1806 test -z "$ac_dir" && ac_dir=.
1807 if test -f $ac_dir/$ac_word; then
1808 ac_cv_prog_PYTHON="python"
1815 PYTHON="$ac_cv_prog_PYTHON"
1816 if test -n "$PYTHON"; then
1817 echo "$ac_t""$PYTHON" 1>&6
1819 echo "$ac_t""no" 1>&6
1823 if test "${PYTHON+set}" = set ; then
1824 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
1825 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
1826 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
1827 python_configdir="${python_execprefix}/lib/python${python_version}/config"
1828 python_moduledir="${python_prefix}/lib/python${python_version}"
1829 python_extmakefile="${python_configdir}/Makefile.pre.in"
1831 echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1832 echo "configure:1833: checking for Python extension makefile" >&5
1833 if test -f "${python_extmakefile}" ; then
1834 echo "$ac_t""found" 1>&6
1836 echo "$ac_t""no" 1>&6
1837 { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
1838 but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
1848 { echo "configure: error: Python not found" 1>&2; exit 1; }
1852 echo "$ac_t""no" 1>&6
1855 withval=$with_python
1856 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1861 echo "$ac_t""no" 1>&6
1870 # Check whether --with-krb4 was given
1871 if test x"${with_krb4+set}" = xset; then
1874 krb4_prefix=/usr/athena
1882 krb4_prefix=$withval
1889 if test "$with_krb4" = yes; then
1891 echo "$ac_t""building with Kerberos 4 support" 1>&6
1892 cat >> confdefs.h <<\EOF
1897 if test -d "$krb4_prefix/include"; then
1898 INCLUDES="$INCLUDES -I$krb4_prefix/include"
1900 if test -d "$krb4_prefix/lib"; then
1901 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
1904 krb_srvtab="/etc/srvtab"
1915 # Check whether --with-krb5 was given
1916 if test x"${with_krb5+set}" = xset; then
1919 krb5_prefix=/usr/athena
1927 krb5_prefix=$withval
1934 if test "$with_krb5" = yes; then
1936 echo "$ac_t""building with Kerberos 5 support" 1>&6
1937 cat >> confdefs.h <<\EOF
1942 if test -d "$krb5_prefix/include"; then
1943 INCLUDES="$INCLUDES -I$krb5_prefix/include"
1945 if test -d "$krb5_prefix/lib"; then
1946 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
1949 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
1957 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
1958 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
1959 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
1966 # Kerberos configuration parameters
1968 # Check whether --with-krb-srvnam was given
1969 if test x"${with_krb_srvnam+set}" = xset; then
1970 case $with_krb_srvnam in
1972 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
1975 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
1977 esac # $with_krb_srvnam
1979 with_krb_srvnam="postgres"
1981 cat >> confdefs.h <<EOF
1982 #define PG_KRB_SRVNAM "$with_krb_srvnam"
1991 # Check whether --with-openssl was given
1992 if test x"${with_openssl+set}" = xset; then
1993 case $with_openssl in
1995 openssl_prefix=/usr/local/ssl
2001 withval=$with_openssl
2003 openssl_prefix=$withval
2005 esac # $with_openssl
2010 if test "$with_openssl" = yes; then
2012 echo "$ac_t""building with OpenSSL support" 1>&6
2013 cat >> confdefs.h <<\EOF
2018 if test -d "${openssl_prefix}/include" ; then
2019 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2021 if test -d "${openssl_prefix}/lib" ; then
2022 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2033 # Optionally enable the building of the ODBC driver
2037 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2038 enable_odbc=$with_odbc
2041 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2042 echo "configure:2043: checking whether to build the ODBC driver" >&5
2043 # Check whether --enable-odbc was given
2044 if test x"${enable_odbc+set}" = xset; then
2045 case $enable_odbc in
2053 enableval=$enable_odbc
2054 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2061 echo "$ac_t""$enable_odbc" 1>&6
2065 # Allow for overriding the default location of the odbcinst.ini
2066 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2067 # Check whether --with-odbcinst was given
2068 if test x"${with_odbcinst+set}" = xset; then
2069 case $with_odbcinst in
2071 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2074 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2077 withval=$with_odbcinst
2078 odbcinst_ini_dir=$withval
2080 esac # $with_odbcinst
2082 odbcinst_ini_dir="\${sysconfdir}"
2088 # Assume system is ELF if it predefines __ELF__ as 1,
2089 # otherwise believe host_os based default.
2091 freebsd1*|freebsd2*) elf=yes;;
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2103 egrep "yes" >/dev/null 2>&1; then
2108 if test "X$elf" = "Xyes" ; then
2121 # Optionally build C++ code (i.e., libpq++)
2123 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2124 echo "configure:2125: checking whether to build C++ modules" >&5
2125 # Check whether --with-CXX was given
2126 if test x"${with_CXX+set}" = xset; then
2144 if test "$with_CXX" = yes; then
2146 echo "$ac_t""yes" 1>&6
2147 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2149 # Extract the first word of "$ac_prog", so it can be a program name with args.
2150 set dummy $ac_prog; ac_word=$2
2151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2152 echo "configure:2153: checking for $ac_word" >&5
2153 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 if test -n "$CXX"; then
2157 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2161 for ac_dir in $ac_dummy; do
2162 test -z "$ac_dir" && ac_dir=.
2163 if test -f $ac_dir/$ac_word; then
2164 ac_cv_prog_CXX="$ac_prog"
2171 CXX="$ac_cv_prog_CXX"
2172 if test -n "$CXX"; then
2173 echo "$ac_t""$CXX" 1>&6
2175 echo "$ac_t""no" 1>&6
2178 test -n "$CXX" && break
2180 test -n "$CXX" || CXX="gcc"
2183 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2184 echo "configure:2185: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2187 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2188 ac_cpp='$CXXCPP $CPPFLAGS'
2189 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2190 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2191 cross_compiling=$ac_cv_prog_cxx_cross
2193 cat > conftest.$ac_ext << EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2198 int main(){return(0);}
2200 if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2201 ac_cv_prog_cxx_works=yes
2202 # If we can't run a trivial program, we are probably using a cross compiler.
2203 if (./conftest; exit) 2>/dev/null; then
2204 ac_cv_prog_cxx_cross=no
2206 ac_cv_prog_cxx_cross=yes
2209 echo "configure: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2211 ac_cv_prog_cxx_works=no
2215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2219 cross_compiling=$ac_cv_prog_cc_cross
2221 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2222 if test $ac_cv_prog_cxx_works = no; then
2223 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2225 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2226 echo "configure:2227: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2227 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2228 cross_compiling=$ac_cv_prog_cxx_cross
2230 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2231 echo "configure:2232: checking whether we are using GNU C++" >&5
2232 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 cat > conftest.C <<EOF
2240 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2247 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2249 if test $ac_cv_prog_gxx = yes; then
2255 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2256 ac_save_CXXFLAGS="$CXXFLAGS"
2258 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2259 echo "configure:2260: checking whether ${CXX-g++} accepts -g" >&5
2260 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 echo 'void f(){}' > conftest.cc
2264 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2265 ac_cv_prog_cxx_g=yes
2273 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2274 if test "$ac_test_CXXFLAGS" = set; then
2275 CXXFLAGS="$ac_save_CXXFLAGS"
2276 elif test $ac_cv_prog_cxx_g = yes; then
2277 if test "$GXX" = yes; then
2283 if test "$GXX" = yes; then
2290 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2291 echo "configure:2292: checking how to run the C++ preprocessor" >&5
2292 if test -z "$CXXCPP"; then
2293 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2297 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2298 ac_cpp='$CXXCPP $CPPFLAGS'
2299 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2300 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2301 cross_compiling=$ac_cv_prog_cxx_cross
2302 CXXCPP="${CXX-g++} -E"
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2309 { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2311 if test -z "$ac_err"; then
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2321 ac_cv_prog_CXXCPP="$CXXCPP"
2323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2324 ac_cpp='$CPP $CPPFLAGS'
2325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2327 cross_compiling=$ac_cv_prog_cc_cross
2330 CXXCPP="$ac_cv_prog_CXXCPP"
2331 echo "$ac_t""$CXXCPP" 1>&6
2336 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2339 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2340 cross_compiling=$ac_cv_prog_cxx_cross
2342 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for string""... $ac_c" 1>&6
2344 echo "configure:2345: checking for string" >&5
2345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2358 eval "ac_cv_header_$ac_safe=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2364 eval "ac_cv_header_$ac_safe=no"
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 cat >> confdefs.h <<\EOF
2371 #define HAVE_CXX_STRING_HEADER 1
2375 echo "$ac_t""no" 1>&6
2379 if test x"$ac_cv_header_string" != xyes ; then
2380 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2381 echo "configure:2382: checking for class string in <string.h>" >&5
2382 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2396 if { (eval echo configure:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398 pgac_cv_class_string_in_string_h=yes
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2403 pgac_cv_class_string_in_string_h=no
2408 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2410 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2411 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2416 ac_cpp='$CPP $CPPFLAGS'
2417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2419 cross_compiling=$ac_cv_prog_cc_cross
2422 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2423 echo "configure:2424: checking for namespace std in C++" >&5
2424 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2430 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2431 ac_cpp='$CXXCPP $CPPFLAGS'
2432 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2433 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2434 cross_compiling=$ac_cv_prog_cxx_cross
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2441 #ifdef HAVE_CXX_STRING_HEADER
2444 using namespace std;
2450 if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2452 pgac_cv_cxx_namespace_std=yes
2454 echo "configure: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2457 pgac_cv_cxx_namespace_std=no
2461 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2464 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2465 cross_compiling=$ac_cv_prog_cc_cross
2469 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2471 if test $pgac_cv_cxx_namespace_std = yes ; then
2472 cat >> confdefs.h <<\EOF
2473 #define HAVE_NAMESPACE_STD 1
2479 echo "$ac_t""no" 1>&6
2484 CPPFLAGS="$CPPFLAGS $INCLUDES"
2485 LDFLAGS="$LDFLAGS $LIBDIRS"
2487 echo "using CPPFLAGS=$CPPFLAGS"
2488 echo "using LDFLAGS=$LDFLAGS"
2491 # Figure out how to invoke "install" and what install options to use.
2493 # Find a good install program. We prefer a C program (faster),
2494 # so one script is as good as another. But avoid the broken or
2495 # incompatible versions:
2496 # SysV /etc/install, /usr/sbin/install
2497 # SunOS /usr/etc/install
2498 # IRIX /sbin/install
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # ./install, which can be erroneously created by make from ./install.sh.
2504 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2505 echo "configure:2506: checking for a BSD compatible install" >&5
2506 if test -z "$INSTALL"; then
2507 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2511 for ac_dir in $PATH; do
2512 # Account for people who put trailing slashes in PATH elements.
2514 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2516 # OSF1 and SCO ODT 3.0 have their own names for install.
2517 # Don't use installbsd from OSF since it installs stuff as root
2519 for ac_prog in ginstall scoinst install; do
2520 if test -f $ac_dir/$ac_prog; then
2521 if test $ac_prog = install &&
2522 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2523 # AIX install. It has an incompatible calling convention.
2526 ac_cv_path_install="$ac_dir/$ac_prog -c"
2537 if test "${ac_cv_path_install+set}" = set; then
2538 INSTALL="$ac_cv_path_install"
2540 # As a last resort, use the slow shell script. We don't cache a
2541 # path for INSTALL within a source directory, because that will
2542 # break other packages using the cache if that directory is
2543 # removed, or if the path is relative.
2544 INSTALL="$ac_install_sh"
2547 echo "$ac_t""$INSTALL" 1>&6
2549 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2550 # It thinks the first close brace ends the variable substitution.
2551 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2553 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2555 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2557 # When Autoconf chooses install-sh as install program it tries to generate
2558 # a relative path to it in each makefile where it subsitutes it. This clashes
2559 # with our Makefile.global concept. This workaround helps.
2561 *install-sh*) INSTALL='\${SHELL} \${top_srcdir}/config/install-sh -c';;
2564 # Fix Autoconf's brain-dead defaults for script installs.
2565 INSTALL_SCRIPT="\${INSTALL} -m 755"
2567 # HPUX wants shared libs to be mode 555. Add your platform's special
2568 # needs here if necessary.
2570 hpux*) INSTL_SHLIB_OPTS="-m 555" ;;
2571 *) INSTL_SHLIB_OPTS="-m 644" ;;
2574 INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
2578 for ac_prog in gawk mawk nawk awk
2580 # Extract the first word of "$ac_prog", so it can be a program name with args.
2581 set dummy $ac_prog; ac_word=$2
2582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2583 echo "configure:2584: checking for $ac_word" >&5
2584 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 if test -n "$AWK"; then
2588 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2592 for ac_dir in $ac_dummy; do
2593 test -z "$ac_dir" && ac_dir=.
2594 if test -f $ac_dir/$ac_word; then
2595 ac_cv_prog_AWK="$ac_prog"
2602 AWK="$ac_cv_prog_AWK"
2603 if test -n "$AWK"; then
2604 echo "$ac_t""$AWK" 1>&6
2606 echo "$ac_t""no" 1>&6
2609 test -n "$AWK" && break
2612 echo $ac_n "checking for flex""... $ac_c" 1>&6
2613 echo "configure:2614: checking for flex" >&5
2614 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 # Let the user override the test
2618 if test -n "$FLEX"; then
2619 pgac_cv_path_flex=$FLEX
2623 for pgac_dir in $PATH; do
2624 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2627 for pgac_prog in flex lex; do
2628 pgac_candidate="$pgac_dir/$pgac_prog"
2629 if test -f "$pgac_candidate" \
2630 && $pgac_candidate --version </dev/null >/dev/null 2>&1
2632 echo '%%' > conftest.l
2633 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2634 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2635 pgac_broken_flex=$pgac_candidate
2639 pgac_cv_path_flex=$pgac_candidate
2647 : ${pgac_cv_path_flex=no}
2652 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2653 if test x"$pgac_cv_path_flex" = x"no"; then
2654 if test -n "$pgac_broken_flex"; then
2655 echo "configure: warning:
2657 The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2658 should get version 2.5.4 or later.
2662 echo "configure: warning:
2664 Without Flex you won't be able to build PostgreSQL from scratch, or change
2665 any of the scanner definition files. You can obtain Flex from a GNU mirror
2666 site. (If you are using the official distribution of PostgreSQL then you
2667 do not need to worry about this because the lexer files are pre-generated.)
2671 if test x"$pgac_cv_path_flex" = x"no"; then
2674 FLEX=$pgac_cv_path_flex
2680 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2681 echo "configure:2682: checking whether ln -s works" >&5
2682 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2686 if ln -s X conftestdata 2>/dev/null
2689 ac_cv_prog_LN_S="ln -s"
2694 LN_S="$ac_cv_prog_LN_S"
2695 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2696 echo "$ac_t""yes" 1>&6
2698 echo "$ac_t""no" 1>&6
2701 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2702 if test "${with_gnu_ld+set}" = set; then
2703 withval="$with_gnu_ld"
2704 test "$withval" = no || with_gnu_ld=yes
2710 if test "$ac_cv_prog_gcc" = yes; then
2711 # Check if gcc -print-prog-name=ld gives a path.
2712 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2713 echo "configure:2714: checking for ld used by GCC" >&5
2716 # gcc leaves a trailing carriage return which upsets mingw
2717 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2719 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2722 # Accept absolute paths.
2723 [\\/]* | [A-Za-z]:[\\/]*)
2724 re_direlt='/[^/][^/]*/\.\./'
2725 # Canonicalize the path of ld
2726 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2727 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2728 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2730 test -z "$LD" && LD="$ac_prog"
2733 # If it fails, then pretend we aren't using GCC.
2737 # If it is relative, then search for the first ld in PATH.
2741 elif test "$with_gnu_ld" = yes; then
2742 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2743 echo "configure:2744: checking for GNU ld" >&5
2745 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2746 echo "configure:2747: checking for non-GNU ld" >&5
2748 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 if test -z "$LD"; then
2752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2753 for ac_dir in $PATH; do
2754 test -z "$ac_dir" && ac_dir=.
2755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2756 ac_cv_path_LD="$ac_dir/$ac_prog"
2757 # Check to see if the program is GNU ld. I'd rather use --version,
2758 # but apparently some GNU ld's only accept -v.
2759 # Break only if it was the GNU/non-GNU ld that we prefer.
2760 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2761 test "$with_gnu_ld" != no && break
2763 test "$with_gnu_ld" != yes && break
2769 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2774 if test -n "$LD"; then
2775 echo "$ac_t""$LD" 1>&6
2777 echo "$ac_t""no" 1>&6
2779 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2780 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2781 echo "configure:2782: checking if the linker ($LD) is GNU ld" >&5
2782 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2786 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2787 ac_cv_prog_gnu_ld=yes
2789 ac_cv_prog_gnu_ld=no
2793 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2794 with_gnu_ld=$ac_cv_prog_gnu_ld
2799 # Extract the first word of "ranlib", so it can be a program name with args.
2800 set dummy ranlib; ac_word=$2
2801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2802 echo "configure:2803: checking for $ac_word" >&5
2803 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2806 if test -n "$RANLIB"; then
2807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2811 for ac_dir in $ac_dummy; do
2812 test -z "$ac_dir" && ac_dir=.
2813 if test -f $ac_dir/$ac_word; then
2814 ac_cv_prog_RANLIB="ranlib"
2819 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2822 RANLIB="$ac_cv_prog_RANLIB"
2823 if test -n "$RANLIB"; then
2824 echo "$ac_t""$RANLIB" 1>&6
2826 echo "$ac_t""no" 1>&6
2829 for ac_prog in lorder
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy $ac_prog; ac_word=$2
2833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_word" >&5
2835 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 if test -n "$LORDER"; then
2839 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
2841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2843 for ac_dir in $ac_dummy; do
2844 test -z "$ac_dir" && ac_dir=.
2845 if test -f $ac_dir/$ac_word; then
2846 ac_cv_prog_LORDER="$ac_prog"
2853 LORDER="$ac_cv_prog_LORDER"
2854 if test -n "$LORDER"; then
2855 echo "$ac_t""$LORDER" 1>&6
2857 echo "$ac_t""no" 1>&6
2860 test -n "$LORDER" && break
2863 # Extract the first word of "tar", so it can be a program name with args.
2864 set dummy tar; ac_word=$2
2865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2866 echo "configure:2867: checking for $ac_word" >&5
2867 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2872 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2875 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
2878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2880 for ac_dir in $ac_dummy; do
2881 test -z "$ac_dir" && ac_dir=.
2882 if test -f $ac_dir/$ac_word; then
2883 ac_cv_path_TAR="$ac_dir/$ac_word"
2891 TAR="$ac_cv_path_TAR"
2892 if test -n "$TAR"; then
2893 echo "$ac_t""$TAR" 1>&6
2895 echo "$ac_t""no" 1>&6
2900 # Extract the first word of "$ac_prog", so it can be a program name with args.
2901 set dummy $ac_prog; ac_word=$2
2902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2903 echo "configure:2904: checking for $ac_word" >&5
2904 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 if test -n "$PERL"; then
2908 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2912 for ac_dir in $ac_dummy; do
2913 test -z "$ac_dir" && ac_dir=.
2914 if test -f $ac_dir/$ac_word; then
2915 ac_cv_prog_PERL="$ac_prog"
2922 PERL="$ac_cv_prog_PERL"
2923 if test -n "$PERL"; then
2924 echo "$ac_t""$PERL" 1>&6
2926 echo "$ac_t""no" 1>&6
2929 test -n "$PERL" && break
2932 for ac_prog in 'bison -y' byacc
2934 # Extract the first word of "$ac_prog", so it can be a program name with args.
2935 set dummy $ac_prog; ac_word=$2
2936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2937 echo "configure:2938: checking for $ac_word" >&5
2938 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 if test -n "$YACC"; then
2942 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2946 for ac_dir in $ac_dummy; do
2947 test -z "$ac_dir" && ac_dir=.
2948 if test -f $ac_dir/$ac_word; then
2949 ac_cv_prog_YACC="$ac_prog"
2956 YACC="$ac_cv_prog_YACC"
2957 if test -n "$YACC"; then
2958 echo "$ac_t""$YACC" 1>&6
2960 echo "$ac_t""no" 1>&6
2963 test -n "$YACC" && break
2965 test -n "$YACC" || YACC="yacc"
2968 if test "$with_tk" = yes; then
2969 # Extract the first word of "wish", so it can be a program name with args.
2970 set dummy wish; ac_word=$2
2971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2972 echo "configure:2973: checking for $ac_word" >&5
2973 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2978 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
2981 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
2984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2986 for ac_dir in $ac_dummy; do
2987 test -z "$ac_dir" && ac_dir=.
2988 if test -f $ac_dir/$ac_word; then
2989 ac_cv_path_WISH="$ac_dir/$ac_word"
2997 WISH="$ac_cv_path_WISH"
2998 if test -n "$WISH"; then
2999 echo "$ac_t""$WISH" 1>&6
3001 echo "$ac_t""no" 1>&6
3004 test -z "$WISH" && { echo "configure: error: \`wish' is required for Tk support" 1>&2; exit 1; }
3012 echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
3013 echo "configure:3014: checking for main in -lsfio" >&5
3014 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
3015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 ac_save_LIBS="$LIBS"
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3028 if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3030 eval "ac_cv_lib_$ac_lib_var=yes"
3032 echo "configure: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3035 eval "ac_cv_lib_$ac_lib_var=no"
3038 LIBS="$ac_save_LIBS"
3041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3042 echo "$ac_t""yes" 1>&6
3043 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3044 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3045 cat >> confdefs.h <<EOF
3046 #define $ac_tr_lib 1
3052 echo "$ac_t""no" 1>&6
3055 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
3056 echo "configure:3057: checking for main in -lncurses" >&5
3057 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
3058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3059 echo $ac_n "(cached) $ac_c" 1>&6
3061 ac_save_LIBS="$LIBS"
3062 LIBS="-lncurses $LIBS"
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3071 if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3073 eval "ac_cv_lib_$ac_lib_var=yes"
3075 echo "configure: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3078 eval "ac_cv_lib_$ac_lib_var=no"
3081 LIBS="$ac_save_LIBS"
3084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3085 echo "$ac_t""yes" 1>&6
3086 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3087 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3088 cat >> confdefs.h <<EOF
3089 #define $ac_tr_lib 1
3092 LIBS="-lncurses $LIBS"
3095 echo "$ac_t""no" 1>&6
3096 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
3097 echo "configure:3098: checking for main in -lcurses" >&5
3098 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
3099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3102 ac_save_LIBS="$LIBS"
3103 LIBS="-lcurses $LIBS"
3104 cat > conftest.$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3112 if { (eval echo configure:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3114 eval "ac_cv_lib_$ac_lib_var=yes"
3116 echo "configure: failed program was:" >&5
3117 cat conftest.$ac_ext >&5
3119 eval "ac_cv_lib_$ac_lib_var=no"
3122 LIBS="$ac_save_LIBS"
3125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3126 echo "$ac_t""yes" 1>&6
3127 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3128 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3129 cat >> confdefs.h <<EOF
3130 #define $ac_tr_lib 1
3133 LIBS="-lcurses $LIBS"
3136 echo "$ac_t""no" 1>&6
3141 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
3142 echo "configure:3143: checking for main in -ltermcap" >&5
3143 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
3144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 ac_save_LIBS="$LIBS"
3148 LIBS="-ltermcap $LIBS"
3149 cat > conftest.$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3157 if { (eval echo configure:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3159 eval "ac_cv_lib_$ac_lib_var=yes"
3161 echo "configure: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3164 eval "ac_cv_lib_$ac_lib_var=no"
3167 LIBS="$ac_save_LIBS"
3170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3171 echo "$ac_t""yes" 1>&6
3172 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3173 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3174 cat >> confdefs.h <<EOF
3175 #define $ac_tr_lib 1
3178 LIBS="-ltermcap $LIBS"
3181 echo "$ac_t""no" 1>&6
3184 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3185 echo "configure:3186: checking for readline in -lreadline" >&5
3186 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 ac_save_LIBS="$LIBS"
3191 LIBS="-lreadline $LIBS"
3192 cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3195 /* Override any gcc2 internal prototype to avoid an error. */
3196 /* We use char because int might match the return type of a gcc2
3197 builtin and then its argument prototype would still apply. */
3204 if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3206 eval "ac_cv_lib_$ac_lib_var=yes"
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3211 eval "ac_cv_lib_$ac_lib_var=no"
3214 LIBS="$ac_save_LIBS"
3217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3218 echo "$ac_t""yes" 1>&6
3219 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3220 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3221 cat >> confdefs.h <<EOF
3222 #define $ac_tr_lib 1
3225 LIBS="-lreadline $LIBS"
3228 echo "$ac_t""no" 1>&6
3232 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3233 echo "configure:3234: checking for library containing using_history" >&5
3234 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3237 ac_func_search_save_LIBS="$LIBS"
3238 ac_cv_search_using_history="no"
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 /* Override any gcc2 internal prototype to avoid an error. */
3243 /* We use char because int might match the return type of a gcc2
3244 builtin and then its argument prototype would still apply. */
3245 char using_history();
3251 if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3253 ac_cv_search_using_history="none required"
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3259 test "$ac_cv_search_using_history" = "no" && for i in history; do
3260 LIBS="-l$i $ac_func_search_save_LIBS"
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 /* Override any gcc2 internal prototype to avoid an error. */
3265 /* We use char because int might match the return type of a gcc2
3266 builtin and then its argument prototype would still apply. */
3267 char using_history();
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3275 ac_cv_search_using_history="-l$i"
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3283 LIBS="$ac_func_search_save_LIBS"
3286 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3287 if test "$ac_cv_search_using_history" != "no"; then
3288 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3289 cat >> confdefs.h <<\EOF
3290 #define HAVE_HISTORY_FUNCTIONS 1
3297 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3299 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3300 echo "configure:3301: checking for main in -lbsd" >&5
3301 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 ac_save_LIBS="$LIBS"
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3315 if { (eval echo configure:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3317 eval "ac_cv_lib_$ac_lib_var=yes"
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3322 eval "ac_cv_lib_$ac_lib_var=no"
3325 LIBS="$ac_save_LIBS"
3328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3329 echo "$ac_t""yes" 1>&6
3330 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3331 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3332 cat >> confdefs.h <<EOF
3333 #define $ac_tr_lib 1
3339 echo "$ac_t""no" 1>&6
3343 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3344 echo "configure:3345: checking for setproctitle in -lutil" >&5
3345 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 ac_save_LIBS="$LIBS"
3351 cat > conftest.$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3354 /* Override any gcc2 internal prototype to avoid an error. */
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3357 char setproctitle();
3363 if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3365 eval "ac_cv_lib_$ac_lib_var=yes"
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3370 eval "ac_cv_lib_$ac_lib_var=no"
3373 LIBS="$ac_save_LIBS"
3376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3378 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3379 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3380 cat >> confdefs.h <<EOF
3381 #define $ac_tr_lib 1
3387 echo "$ac_t""no" 1>&6
3390 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3391 echo "configure:3392: checking for main in -lm" >&5
3392 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 ac_save_LIBS="$LIBS"
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3406 if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3408 eval "ac_cv_lib_$ac_lib_var=yes"
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3413 eval "ac_cv_lib_$ac_lib_var=no"
3416 LIBS="$ac_save_LIBS"
3419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3420 echo "$ac_t""yes" 1>&6
3421 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3422 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3423 cat >> confdefs.h <<EOF
3424 #define $ac_tr_lib 1
3430 echo "$ac_t""no" 1>&6
3433 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3434 echo "configure:3435: checking for main in -ldl" >&5
3435 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3439 ac_save_LIBS="$LIBS"
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3449 if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3451 eval "ac_cv_lib_$ac_lib_var=yes"
3453 echo "configure: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3456 eval "ac_cv_lib_$ac_lib_var=no"
3459 LIBS="$ac_save_LIBS"
3462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3463 echo "$ac_t""yes" 1>&6
3464 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3465 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3466 cat >> confdefs.h <<EOF
3467 #define $ac_tr_lib 1
3473 echo "$ac_t""no" 1>&6
3476 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3477 echo "configure:3478: checking for main in -lsocket" >&5
3478 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 ac_save_LIBS="$LIBS"
3483 LIBS="-lsocket $LIBS"
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3492 if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3494 eval "ac_cv_lib_$ac_lib_var=yes"
3496 echo "configure: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3499 eval "ac_cv_lib_$ac_lib_var=no"
3502 LIBS="$ac_save_LIBS"
3505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3506 echo "$ac_t""yes" 1>&6
3507 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3508 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3509 cat >> confdefs.h <<EOF
3510 #define $ac_tr_lib 1
3513 LIBS="-lsocket $LIBS"
3516 echo "$ac_t""no" 1>&6
3519 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3520 echo "configure:3521: checking for main in -lnsl" >&5
3521 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 ac_save_LIBS="$LIBS"
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3535 if { (eval echo configure:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3537 eval "ac_cv_lib_$ac_lib_var=yes"
3539 echo "configure: failed program was:" >&5
3540 cat conftest.$ac_ext >&5
3542 eval "ac_cv_lib_$ac_lib_var=no"
3545 LIBS="$ac_save_LIBS"
3548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3549 echo "$ac_t""yes" 1>&6
3550 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3551 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3552 cat >> confdefs.h <<EOF
3553 #define $ac_tr_lib 1
3559 echo "$ac_t""no" 1>&6
3562 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3563 echo "configure:3564: checking for main in -lipc" >&5
3564 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3568 ac_save_LIBS="$LIBS"
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3578 if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3580 eval "ac_cv_lib_$ac_lib_var=yes"
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3585 eval "ac_cv_lib_$ac_lib_var=no"
3588 LIBS="$ac_save_LIBS"
3591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3592 echo "$ac_t""yes" 1>&6
3593 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3594 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3595 cat >> confdefs.h <<EOF
3596 #define $ac_tr_lib 1
3602 echo "$ac_t""no" 1>&6
3605 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3606 echo "configure:3607: checking for main in -lIPC" >&5
3607 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3611 ac_save_LIBS="$LIBS"
3613 cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623 eval "ac_cv_lib_$ac_lib_var=yes"
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3628 eval "ac_cv_lib_$ac_lib_var=no"
3631 LIBS="$ac_save_LIBS"
3634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3637 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3638 cat >> confdefs.h <<EOF
3639 #define $ac_tr_lib 1
3645 echo "$ac_t""no" 1>&6
3648 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3649 echo "configure:3650: checking for main in -llc" >&5
3650 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 ac_save_LIBS="$LIBS"
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3664 if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3666 eval "ac_cv_lib_$ac_lib_var=yes"
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3671 eval "ac_cv_lib_$ac_lib_var=no"
3674 LIBS="$ac_save_LIBS"
3677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3678 echo "$ac_t""yes" 1>&6
3679 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3680 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3681 cat >> confdefs.h <<EOF
3682 #define $ac_tr_lib 1
3688 echo "$ac_t""no" 1>&6
3691 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3692 echo "configure:3693: checking for main in -ldld" >&5
3693 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 ac_save_LIBS="$LIBS"
3699 cat > conftest.$ac_ext <<EOF
3700 #line 3701 "configure"
3701 #include "confdefs.h"
3707 if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3709 eval "ac_cv_lib_$ac_lib_var=yes"
3711 echo "configure: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3714 eval "ac_cv_lib_$ac_lib_var=no"
3717 LIBS="$ac_save_LIBS"
3720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3721 echo "$ac_t""yes" 1>&6
3722 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3723 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3724 cat >> confdefs.h <<EOF
3725 #define $ac_tr_lib 1
3731 echo "$ac_t""no" 1>&6
3734 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
3735 echo "configure:3736: checking for main in -lln" >&5
3736 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
3737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 ac_save_LIBS="$LIBS"
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3750 if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3752 eval "ac_cv_lib_$ac_lib_var=yes"
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3757 eval "ac_cv_lib_$ac_lib_var=no"
3760 LIBS="$ac_save_LIBS"
3763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3764 echo "$ac_t""yes" 1>&6
3765 ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3766 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3767 cat >> confdefs.h <<EOF
3768 #define $ac_tr_lib 1
3774 echo "$ac_t""no" 1>&6
3777 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3778 echo "configure:3779: checking for main in -lld" >&5
3779 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3783 ac_save_LIBS="$LIBS"
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3793 if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3795 eval "ac_cv_lib_$ac_lib_var=yes"
3797 echo "configure: failed program was:" >&5
3798 cat conftest.$ac_ext >&5
3800 eval "ac_cv_lib_$ac_lib_var=no"
3803 LIBS="$ac_save_LIBS"
3806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3807 echo "$ac_t""yes" 1>&6
3808 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3809 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3810 cat >> confdefs.h <<EOF
3811 #define $ac_tr_lib 1
3817 echo "$ac_t""no" 1>&6
3820 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3821 echo "configure:3822: checking for main in -lcompat" >&5
3822 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3826 ac_save_LIBS="$LIBS"
3827 LIBS="-lcompat $LIBS"
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3836 if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3838 eval "ac_cv_lib_$ac_lib_var=yes"
3840 echo "configure: failed program was:" >&5
3841 cat conftest.$ac_ext >&5
3843 eval "ac_cv_lib_$ac_lib_var=no"
3846 LIBS="$ac_save_LIBS"
3849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3850 echo "$ac_t""yes" 1>&6
3851 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3852 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3853 cat >> confdefs.h <<EOF
3854 #define $ac_tr_lib 1
3857 LIBS="-lcompat $LIBS"
3860 echo "$ac_t""no" 1>&6
3863 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3864 echo "configure:3865: checking for main in -lBSD" >&5
3865 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 ac_save_LIBS="$LIBS"
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3881 eval "ac_cv_lib_$ac_lib_var=yes"
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3886 eval "ac_cv_lib_$ac_lib_var=no"
3889 LIBS="$ac_save_LIBS"
3892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3894 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3895 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3896 cat >> confdefs.h <<EOF
3897 #define $ac_tr_lib 1
3903 echo "$ac_t""no" 1>&6
3906 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3907 echo "configure:3908: checking for main in -lgen" >&5
3908 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3912 ac_save_LIBS="$LIBS"
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3922 if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3924 eval "ac_cv_lib_$ac_lib_var=yes"
3926 echo "configure: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3929 eval "ac_cv_lib_$ac_lib_var=no"
3932 LIBS="$ac_save_LIBS"
3935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3936 echo "$ac_t""yes" 1>&6
3937 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3938 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3939 cat >> confdefs.h <<EOF
3940 #define $ac_tr_lib 1
3946 echo "$ac_t""no" 1>&6
3949 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3950 echo "configure:3951: checking for main in -lPW" >&5
3951 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3955 ac_save_LIBS="$LIBS"
3957 cat > conftest.$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3965 if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3967 eval "ac_cv_lib_$ac_lib_var=yes"
3969 echo "configure: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3972 eval "ac_cv_lib_$ac_lib_var=no"
3975 LIBS="$ac_save_LIBS"
3978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3979 echo "$ac_t""yes" 1>&6
3980 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3981 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3982 cat >> confdefs.h <<EOF
3983 #define $ac_tr_lib 1
3989 echo "$ac_t""no" 1>&6
3993 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
3994 echo "configure:3995: checking for library containing crypt" >&5
3995 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3998 ac_func_search_save_LIBS="$LIBS"
3999 ac_cv_search_crypt="no"
4000 cat > conftest.$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 /* Override any gcc2 internal prototype to avoid an error. */
4004 /* We use char because int might match the return type of a gcc2
4005 builtin and then its argument prototype would still apply. */
4012 if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4014 ac_cv_search_crypt="none required"
4016 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4020 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4021 LIBS="-l$i $ac_func_search_save_LIBS"
4022 cat > conftest.$ac_ext <<EOF
4023 #line 4024 "configure"
4024 #include "confdefs.h"
4025 /* Override any gcc2 internal prototype to avoid an error. */
4026 /* We use char because int might match the return type of a gcc2
4027 builtin and then its argument prototype would still apply. */
4034 if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4036 ac_cv_search_crypt="-l$i"
4039 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4044 LIBS="$ac_func_search_save_LIBS"
4047 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4048 if test "$ac_cv_search_crypt" != "no"; then
4049 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4054 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4055 echo "configure:4056: checking for inflate in -lz" >&5
4056 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 ac_save_LIBS="$LIBS"
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4065 /* Override any gcc2 internal prototype to avoid an error. */
4066 /* We use char because int might match the return type of a gcc2
4067 builtin and then its argument prototype would still apply. */
4074 if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4076 eval "ac_cv_lib_$ac_lib_var=yes"
4078 echo "configure: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4081 eval "ac_cv_lib_$ac_lib_var=no"
4084 LIBS="$ac_save_LIBS"
4087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4089 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4090 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4091 cat >> confdefs.h <<EOF
4092 #define $ac_tr_lib 1
4098 echo "$ac_t""no" 1>&6
4101 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4102 echo "configure:4103: checking for __inet_ntoa in -lbind" >&5
4103 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4107 ac_save_LIBS="$LIBS"
4109 cat > conftest.$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4112 /* Override any gcc2 internal prototype to avoid an error. */
4113 /* We use char because int might match the return type of a gcc2
4114 builtin and then its argument prototype would still apply. */
4121 if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4123 eval "ac_cv_lib_$ac_lib_var=yes"
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4128 eval "ac_cv_lib_$ac_lib_var=no"
4131 LIBS="$ac_save_LIBS"
4134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4135 echo "$ac_t""yes" 1>&6
4136 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4137 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4138 cat >> confdefs.h <<EOF
4139 #define $ac_tr_lib 1
4145 echo "$ac_t""no" 1>&6
4150 if test "$with_krb4" = yes ; then
4151 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4152 echo "configure:4153: checking for des_encrypt in -ldes" >&5
4153 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 ac_save_LIBS="$LIBS"
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 /* Override any gcc2 internal prototype to avoid an error. */
4163 /* We use char because int might match the return type of a gcc2
4164 builtin and then its argument prototype would still apply. */
4171 if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4173 eval "ac_cv_lib_$ac_lib_var=yes"
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4178 eval "ac_cv_lib_$ac_lib_var=no"
4181 LIBS="$ac_save_LIBS"
4184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4185 echo "$ac_t""yes" 1>&6
4186 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4188 cat >> confdefs.h <<EOF
4189 #define $ac_tr_lib 1
4195 echo "$ac_t""no" 1>&6
4196 { echo "configure: error: library \`des' is required for Kerberos 4" 1>&2; exit 1; }
4199 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4200 echo "configure:4201: checking for krb_sendauth in -lkrb" >&5
4201 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 ac_save_LIBS="$LIBS"
4207 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4210 /* Override any gcc2 internal prototype to avoid an error. */
4211 /* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4213 char krb_sendauth();
4219 if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4221 eval "ac_cv_lib_$ac_lib_var=yes"
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 eval "ac_cv_lib_$ac_lib_var=no"
4229 LIBS="$ac_save_LIBS"
4232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4233 echo "$ac_t""yes" 1>&6
4234 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4235 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4236 cat >> confdefs.h <<EOF
4237 #define $ac_tr_lib 1
4243 echo "$ac_t""no" 1>&6
4244 { echo "configure: error: library \`krb' is required for Kerberos 4" 1>&2; exit 1; }
4249 if test "$with_krb5" = yes ; then
4250 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4251 echo "configure:4252: checking for com_err in -lcom_err" >&5
4252 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4256 ac_save_LIBS="$LIBS"
4257 LIBS="-lcom_err $LIBS"
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 /* Override any gcc2 internal prototype to avoid an error. */
4262 /* We use char because int might match the return type of a gcc2
4263 builtin and then its argument prototype would still apply. */
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4272 eval "ac_cv_lib_$ac_lib_var=yes"
4274 echo "configure: failed program was:" >&5
4275 cat conftest.$ac_ext >&5
4277 eval "ac_cv_lib_$ac_lib_var=no"
4280 LIBS="$ac_save_LIBS"
4283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4284 echo "$ac_t""yes" 1>&6
4285 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4286 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4287 cat >> confdefs.h <<EOF
4288 #define $ac_tr_lib 1
4291 LIBS="-lcom_err $LIBS"
4294 echo "$ac_t""no" 1>&6
4295 { echo "configure: error: library \`com_err' is required for Kerberos 5" 1>&2; exit 1; }
4298 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4299 echo "configure:4300: checking for krb5_encrypt in -lcrypto" >&5
4300 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4304 ac_save_LIBS="$LIBS"
4305 LIBS="-lcrypto $LIBS"
4306 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 /* Override any gcc2 internal prototype to avoid an error. */
4310 /* We use char because int might match the return type of a gcc2
4311 builtin and then its argument prototype would still apply. */
4312 char krb5_encrypt();
4318 if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4320 eval "ac_cv_lib_$ac_lib_var=yes"
4322 echo "configure: failed program was:" >&5
4323 cat conftest.$ac_ext >&5
4325 eval "ac_cv_lib_$ac_lib_var=no"
4328 LIBS="$ac_save_LIBS"
4331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4332 echo "$ac_t""yes" 1>&6
4333 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4335 cat >> confdefs.h <<EOF
4336 #define $ac_tr_lib 1
4339 LIBS="-lcrypto $LIBS"
4342 echo "$ac_t""no" 1>&6
4343 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4344 echo "configure:4345: checking for krb5_encrypt in -lk5crypto" >&5
4345 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4349 ac_save_LIBS="$LIBS"
4350 LIBS="-lk5crypto $LIBS"
4351 cat > conftest.$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4354 /* Override any gcc2 internal prototype to avoid an error. */
4355 /* We use char because int might match the return type of a gcc2
4356 builtin and then its argument prototype would still apply. */
4357 char krb5_encrypt();
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4365 eval "ac_cv_lib_$ac_lib_var=yes"
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4370 eval "ac_cv_lib_$ac_lib_var=no"
4373 LIBS="$ac_save_LIBS"
4376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4377 echo "$ac_t""yes" 1>&6
4378 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4379 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4380 cat >> confdefs.h <<EOF
4381 #define $ac_tr_lib 1
4384 LIBS="-lk5crypto $LIBS"
4387 echo "$ac_t""no" 1>&6
4388 { echo "configure: error: library \`crypto' is required for Kerberos 5" 1>&2; exit 1; }
4393 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4394 echo "configure:4395: checking for krb5_sendauth in -lkrb5" >&5
4395 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4399 ac_save_LIBS="$LIBS"
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 /* Override any gcc2 internal prototype to avoid an error. */
4405 /* We use char because int might match the return type of a gcc2
4406 builtin and then its argument prototype would still apply. */
4407 char krb5_sendauth();
4413 if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4415 eval "ac_cv_lib_$ac_lib_var=yes"
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4420 eval "ac_cv_lib_$ac_lib_var=no"
4423 LIBS="$ac_save_LIBS"
4426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4427 echo "$ac_t""yes" 1>&6
4428 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4429 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4430 cat >> confdefs.h <<EOF
4431 #define $ac_tr_lib 1
4437 echo "$ac_t""no" 1>&6
4438 { echo "configure: error: library \`krb5' is required for Kerberos 5" 1>&2; exit 1; }
4443 if test "$with_openssl" = yes ; then
4444 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4445 echo "configure:4446: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4446 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 ac_save_LIBS="$LIBS"
4451 LIBS="-lcrypto $LIBS"
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 /* Override any gcc2 internal prototype to avoid an error. */
4456 /* We use char because int might match the return type of a gcc2
4457 builtin and then its argument prototype would still apply. */
4458 char CRYPTO_new_ex_data();
4461 CRYPTO_new_ex_data()
4464 if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4466 eval "ac_cv_lib_$ac_lib_var=yes"
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4471 eval "ac_cv_lib_$ac_lib_var=no"
4474 LIBS="$ac_save_LIBS"
4477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4479 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4481 cat >> confdefs.h <<EOF
4482 #define $ac_tr_lib 1
4485 LIBS="-lcrypto $LIBS"
4488 echo "$ac_t""no" 1>&6
4489 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4492 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4493 echo "configure:4494: checking for SSL_library_init in -lssl" >&5
4494 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 ac_save_LIBS="$LIBS"
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4503 /* Override any gcc2 internal prototype to avoid an error. */
4504 /* We use char because int might match the return type of a gcc2
4505 builtin and then its argument prototype would still apply. */
4506 char SSL_library_init();
4512 if { (eval echo configure:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4514 eval "ac_cv_lib_$ac_lib_var=yes"
4516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4519 eval "ac_cv_lib_$ac_lib_var=no"
4522 LIBS="$ac_save_LIBS"
4525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4526 echo "$ac_t""yes" 1>&6
4527 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4528 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4529 cat >> confdefs.h <<EOF
4530 #define $ac_tr_lib 1
4536 echo "$ac_t""no" 1>&6
4537 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4546 for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/types.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
4548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4550 echo "configure:4551: checking for $ac_hdr" >&5
4551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4560 { (eval echo configure:4561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4562 if test -z "$ac_err"; then
4564 eval "ac_cv_header_$ac_safe=yes"
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4570 eval "ac_cv_header_$ac_safe=no"
4574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4575 echo "$ac_t""yes" 1>&6
4576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4577 cat >> confdefs.h <<EOF
4578 #define $ac_tr_hdr 1
4582 echo "$ac_t""no" 1>&6
4587 for ac_hdr in netinet/in.h
4589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4591 echo "configure:4592: checking for $ac_hdr" >&5
4592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4601 { (eval echo configure:4602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4603 if test -z "$ac_err"; then
4605 eval "ac_cv_header_$ac_safe=yes"
4608 echo "configure: failed program was:" >&5
4609 cat conftest.$ac_ext >&5
4611 eval "ac_cv_header_$ac_safe=no"
4615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4616 echo "$ac_t""yes" 1>&6
4617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4618 cat >> confdefs.h <<EOF
4619 #define $ac_tr_hdr 1
4623 echo "$ac_t""no" 1>&6
4627 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
4628 echo "configure:4629: checking for netinet/tcp.h" >&5
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4633 #ifdef HAVE_NETINET_IN_H
4634 #include <netinet/in.h>
4636 #include <netinet/tcp.h>
4639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4640 { (eval echo configure:4641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4642 if test -z "$ac_err"; then
4644 cat >> confdefs.h <<\EOF
4645 #define HAVE_NETINET_TCP_H 1
4647 echo "$ac_t""yes" 1>&6
4650 echo "configure: failed program was:" >&5
4651 cat conftest.$ac_ext >&5
4653 echo "$ac_t""no" 1>&6
4657 for ac_hdr in readline/readline.h readline.h
4659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4661 echo "configure:4662: checking for $ac_hdr" >&5
4662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4671 { (eval echo configure:4672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4673 if test -z "$ac_err"; then
4675 eval "ac_cv_header_$ac_safe=yes"
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4681 eval "ac_cv_header_$ac_safe=no"
4685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4688 cat >> confdefs.h <<EOF
4689 #define $ac_tr_hdr 1
4693 echo "$ac_t""no" 1>&6
4697 for ac_hdr in readline/history.h history.h
4699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4701 echo "configure:4702: checking for $ac_hdr" >&5
4702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4711 { (eval echo configure:4712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4713 if test -z "$ac_err"; then
4715 eval "ac_cv_header_$ac_safe=yes"
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4721 eval "ac_cv_header_$ac_safe=no"
4725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4726 echo "$ac_t""yes" 1>&6
4727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4728 cat >> confdefs.h <<EOF
4729 #define $ac_tr_hdr 1
4733 echo "$ac_t""no" 1>&6
4738 if test "$with_krb4" = yes ; then
4739 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4740 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4741 echo "configure:4742: checking for krb.h" >&5
4742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4745 cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4751 { (eval echo configure:4752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4753 if test -z "$ac_err"; then
4755 eval "ac_cv_header_$ac_safe=yes"
4758 echo "configure: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4761 eval "ac_cv_header_$ac_safe=no"
4765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4766 echo "$ac_t""yes" 1>&6
4769 echo "$ac_t""no" 1>&6
4770 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4775 if test "$with_krb5" = yes ; then
4776 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4777 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4778 echo "configure:4779: checking for krb5.h" >&5
4779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 cat > conftest.$ac_ext <<EOF
4783 #line 4784 "configure"
4784 #include "confdefs.h"
4787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4788 { (eval echo configure:4789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4790 if test -z "$ac_err"; then
4792 eval "ac_cv_header_$ac_safe=yes"
4795 echo "configure: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4798 eval "ac_cv_header_$ac_safe=no"
4802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4806 echo "$ac_t""no" 1>&6
4807 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4810 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4811 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4812 echo "configure:4813: checking for com_err.h" >&5
4813 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4819 #include <com_err.h>
4821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4822 { (eval echo configure:4823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4824 if test -z "$ac_err"; then
4826 eval "ac_cv_header_$ac_safe=yes"
4829 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4832 eval "ac_cv_header_$ac_safe=no"
4836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4837 echo "$ac_t""yes" 1>&6
4840 echo "$ac_t""no" 1>&6
4841 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4846 if test "$with_openssl" = yes ; then
4847 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4848 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4849 echo "configure:4850: checking for openssl/ssl.h" >&5
4850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4856 #include <openssl/ssl.h>
4858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4859 { (eval echo configure:4860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4861 if test -z "$ac_err"; then
4863 eval "ac_cv_header_$ac_safe=yes"
4866 echo "configure: failed program was:" >&5
4867 cat conftest.$ac_ext >&5
4869 eval "ac_cv_header_$ac_safe=no"
4873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4874 echo "$ac_t""yes" 1>&6
4877 echo "$ac_t""no" 1>&6
4878 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4881 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4882 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4883 echo "configure:4884: checking for openssl/err.h" >&5
4884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4885 echo $ac_n "(cached) $ac_c" 1>&6
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4890 #include <openssl/err.h>
4892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4893 { (eval echo configure:4894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4895 if test -z "$ac_err"; then
4897 eval "ac_cv_header_$ac_safe=yes"
4900 echo "configure: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4903 eval "ac_cv_header_$ac_safe=no"
4907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4908 echo "$ac_t""yes" 1>&6
4911 echo "$ac_t""no" 1>&6
4912 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
4919 ## Types, structures, compiler characteristics
4921 echo $ac_n "checking for working const""... $ac_c" 1>&6
4922 echo "configure:4923: checking for working const" >&5
4923 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4924 echo $ac_n "(cached) $ac_c" 1>&6
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4932 /* Ultrix mips cc rejects this. */
4933 typedef int charset[2]; const charset x;
4934 /* SunOS 4.1.1 cc rejects this. */
4935 char const *const *ccp;
4937 /* NEC SVR4.0.2 mips cc rejects this. */
4938 struct point {int x, y;};
4939 static struct point const zero = {0,0};
4940 /* AIX XL C 1.02.0.0 rejects this.
4941 It does not let you subtract one const X* pointer from another in an arm
4942 of an if-expression whose if-part is not a constant expression */
4943 const char *g = "string";
4944 ccp = &g + (g ? g-g : 0);
4945 /* HPUX 7.0 cc rejects these. */
4948 ccp = (char const *const *) p;
4949 { /* SCO 3.2v4 cc rejects this. */
4951 char const *s = 0 ? (char *) 0 : (char const *) 0;
4955 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4957 const int *foo = &x[0];
4960 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4961 typedef const int *iptr;
4965 { /* AIX XL C 1.02.0.0 rejects this saying
4966 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4967 struct s { int j; const int *ap[3]; };
4968 struct s *b; b->j = 5;
4970 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4976 if { (eval echo configure:4977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4980 echo "configure: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4988 echo "$ac_t""$ac_cv_c_const" 1>&6
4989 if test $ac_cv_c_const = no; then
4990 cat >> confdefs.h <<\EOF
4996 echo $ac_n "checking for inline""... $ac_c" 1>&6
4997 echo "configure:4998: checking for inline" >&5
4998 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4999 echo $ac_n "(cached) $ac_c" 1>&6
5002 for ac_kw in inline __inline__ __inline; do
5003 cat > conftest.$ac_ext <<EOF
5004 #line 5005 "configure"
5005 #include "confdefs.h"
5011 if { (eval echo configure:5012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5013 ac_cv_c_inline=$ac_kw; break
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5023 echo "$ac_t""$ac_cv_c_inline" 1>&6
5024 case "$ac_cv_c_inline" in
5026 no) cat >> confdefs.h <<\EOF
5030 *) cat >> confdefs.h <<EOF
5031 #define inline $ac_cv_c_inline
5038 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5039 echo "configure:5040: checking for preprocessor stringizing operator" >&5
5040 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5049 char *s = x(teststring);
5052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5053 egrep "#teststring" >/dev/null 2>&1; then
5055 ac_cv_c_stringize=no
5058 ac_cv_c_stringize=yes
5064 if test "${ac_cv_c_stringize}" = yes
5066 cat >> confdefs.h <<\EOF
5067 #define HAVE_STRINGIZE 1
5071 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5073 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5074 echo "configure:5075: checking for signed types" >&5
5075 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5076 echo $ac_n "(cached) $ac_c" 1>&6
5078 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5083 signed char c; signed short s; signed int i;
5086 if { (eval echo configure:5087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5088 pgac_cv_c_signed=yes
5090 echo "configure: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5098 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5099 if test x"$pgac_cv_c_signed" = xno ; then
5100 cat >> confdefs.h <<\EOF
5105 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5106 echo "configure:5107: checking for volatile" >&5
5107 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5108 echo $ac_n "(cached) $ac_c" 1>&6
5110 cat > conftest.$ac_ext <<EOF
5111 #line 5112 "configure"
5112 #include "confdefs.h"
5115 extern volatile int i;
5118 if { (eval echo configure:5119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5120 pgac_cv_c_volatile=yes
5122 echo "configure: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5125 pgac_cv_c_volatile=no
5130 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5131 if test x"$pgac_cv_c_volatile" = xno ; then
5132 cat >> confdefs.h <<\EOF
5137 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5138 echo "configure:5139: checking whether struct tm is in sys/time.h or time.h" >&5
5139 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5140 echo $ac_n "(cached) $ac_c" 1>&6
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5145 #include <sys/types.h>
5148 struct tm *tp; tp->tm_sec;
5151 if { (eval echo configure:5152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5153 ac_cv_struct_tm=time.h
5155 echo "configure: failed program was:" >&5
5156 cat conftest.$ac_ext >&5
5158 ac_cv_struct_tm=sys/time.h
5163 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5164 if test $ac_cv_struct_tm = sys/time.h; then
5165 cat >> confdefs.h <<\EOF
5166 #define TM_IN_SYS_TIME 1
5171 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5172 echo "configure:5173: checking for tm_zone in struct tm" >&5
5173 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6
5176 cat > conftest.$ac_ext <<EOF
5177 #line 5178 "configure"
5178 #include "confdefs.h"
5179 #include <sys/types.h>
5180 #include <$ac_cv_struct_tm>
5182 struct tm tm; tm.tm_zone;
5185 if { (eval echo configure:5186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5187 ac_cv_struct_tm_zone=yes
5189 echo "configure: failed program was:" >&5
5190 cat conftest.$ac_ext >&5
5192 ac_cv_struct_tm_zone=no
5197 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5198 if test "$ac_cv_struct_tm_zone" = yes; then
5199 cat >> confdefs.h <<\EOF
5200 #define HAVE_TM_ZONE 1
5204 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5205 echo "configure:5206: checking for tzname" >&5
5206 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5207 echo $ac_n "(cached) $ac_c" 1>&6
5209 cat > conftest.$ac_ext <<EOF
5210 #line 5211 "configure"
5211 #include "confdefs.h"
5213 #ifndef tzname /* For SGI. */
5214 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5220 if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5222 ac_cv_var_tzname=yes
5224 echo "configure: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5232 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5233 if test $ac_cv_var_tzname = yes; then
5234 cat >> confdefs.h <<\EOF
5235 #define HAVE_TZNAME 1
5241 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5242 echo "configure:5243: checking for union semun" >&5
5243 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5244 echo $ac_n "(cached) $ac_c" 1>&6
5246 cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5249 #include <sys/types.h>
5250 #include <sys/ipc.h>
5251 #include <sys/sem.h>
5256 if { (eval echo configure:5257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5258 pgac_cv_union_semun=yes
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 pgac_cv_union_semun=no
5268 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5269 if test x"$pgac_cv_union_semun" = xyes ; then
5270 cat >> confdefs.h <<\EOF
5271 #define HAVE_UNION_SEMUN 1
5275 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5276 echo "configure:5277: checking for struct sockaddr_un" >&5
5277 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5280 cat > conftest.$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5283 #include <sys/types.h>
5284 #ifdef HAVE_SYS_UN_H
5288 struct sockaddr_un un;
5291 if { (eval echo configure:5292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5293 pgac_cv_struct_sockaddr_un=yes
5295 echo "configure: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5298 pgac_cv_struct_sockaddr_un=no
5303 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5304 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5305 cat >> confdefs.h <<\EOF
5306 #define HAVE_STRUCT_SOCKADDR_UN 1
5312 ## Functions, global variables
5314 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5315 echo "configure:5316: checking for int timezone" >&5
5316 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 cat > conftest.$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5324 int res = timezone / 60;
5327 if { (eval echo configure:5328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5329 pgac_cv_var_int_timezone=yes
5331 echo "configure: failed program was:" >&5
5332 cat conftest.$ac_ext >&5
5334 pgac_cv_var_int_timezone=no
5339 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5340 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5341 cat >> confdefs.h <<\EOF
5342 #define HAVE_INT_TIMEZONE
5346 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5347 echo "configure:5348: checking types of arguments for accept()" >&5
5348 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5351 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5354 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5357 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5358 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5359 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int'; do
5360 cat > conftest.$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5363 #ifdef HAVE_SYS_TYPES_H
5364 #include <sys/types.h>
5366 #ifdef HAVE_SYS_SOCKET_H
5367 #include <sys/socket.h>
5369 extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5374 if { (eval echo configure:5375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5376 ac_not_found=no; break 3
5378 echo "configure: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5387 if test "$ac_not_found" = yes; then
5388 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5396 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5397 cat >> confdefs.h <<EOF
5398 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5401 cat >> confdefs.h <<EOF
5402 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5405 cat >> confdefs.h <<EOF
5406 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5410 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5411 echo "configure:5412: checking whether gettimeofday takes only one argument" >&5
5412 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5413 echo $ac_n "(cached) $ac_c" 1>&6
5415 cat > conftest.$ac_ext <<EOF
5416 #line 5417 "configure"
5417 #include "confdefs.h"
5418 #include <sys/time.h>
5421 struct timezone *tzp;
5422 gettimeofday(tp,tzp);
5425 if { (eval echo configure:5426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5427 pgac_cv_func_gettimeofday_1arg=no
5429 echo "configure: failed program was:" >&5
5430 cat conftest.$ac_ext >&5
5432 pgac_cv_func_gettimeofday_1arg=yes
5437 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5438 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5439 cat >> confdefs.h <<\EOF
5440 #define GETTIMEOFDAY_1ARG
5445 echo $ac_n "checking for fcntl(F_SETLK)""... $ac_c" 1>&6
5446 echo "configure:5447: checking for fcntl(F_SETLK)" >&5
5448 linux*) echo "$ac_t""broken on Linux" 1>&6 ;;
5450 cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5458 lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
5459 lck.l_type = F_WRLCK;
5460 fcntl(0, F_SETLK, &lck);
5463 if { (eval echo configure:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5465 cat >> confdefs.h <<\EOF
5466 #define HAVE_FCNTL_SETLK 1
5468 echo "$ac_t""yes" 1>&6
5470 echo "configure: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5473 echo "$ac_t""no" 1>&6
5479 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen
5481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5482 echo "configure:5483: checking for $ac_func" >&5
5483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5486 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 /* System header to define __stub macros and hopefully few prototypes,
5490 which can conflict with char $ac_func(); below. */
5492 /* Override any gcc2 internal prototype to avoid an error. */
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5499 /* The GNU C library defines this for functions which it implements
5500 to always fail with ENOSYS. Some functions are actually named
5501 something starting with __ and the normal name is an alias. */
5502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5510 if { (eval echo configure:5511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5512 eval "ac_cv_func_$ac_func=yes"
5514 echo "configure: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5517 eval "ac_cv_func_$ac_func=no"
5522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5523 echo "$ac_t""yes" 1>&6
5524 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5525 cat >> confdefs.h <<EOF
5526 #define $ac_tr_func 1
5530 echo "$ac_t""no" 1>&6
5535 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5536 echo "configure:5537: checking for PS_STRINGS" >&5
5537 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 #include <machine/vmparam.h>
5544 #include <sys/exec.h>
5547 PS_STRINGS->ps_nargvstr = 1;
5548 PS_STRINGS->ps_argvstr = "foo";
5551 if { (eval echo configure:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5553 pgac_cv_var_PS_STRINGS=yes
5555 echo "configure: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5558 pgac_cv_var_PS_STRINGS=no
5563 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5564 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5565 cat >> confdefs.h <<\EOF
5566 #define HAVE_PS_STRINGS
5572 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5573 echo "configure:5574: checking for snprintf" >&5
5574 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5575 echo $ac_n "(cached) $ac_c" 1>&6
5577 cat > conftest.$ac_ext <<EOF
5578 #line 5579 "configure"
5579 #include "confdefs.h"
5580 /* System header to define __stub macros and hopefully few prototypes,
5581 which can conflict with char snprintf(); below. */
5583 /* Override any gcc2 internal prototype to avoid an error. */
5584 /* We use char because int might match the return type of a gcc2
5585 builtin and then its argument prototype would still apply. */
5590 /* The GNU C library defines this for functions which it implements
5591 to always fail with ENOSYS. Some functions are actually named
5592 something starting with __ and the normal name is an alias. */
5593 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5601 if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5603 eval "ac_cv_func_snprintf=yes"
5605 echo "configure: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5608 eval "ac_cv_func_snprintf=no"
5613 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5614 echo "$ac_t""yes" 1>&6
5615 cat >> confdefs.h <<\EOF
5616 #define HAVE_SNPRINTF 1
5620 echo "$ac_t""no" 1>&6
5621 SNPRINTF='snprintf.o'
5624 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5625 echo "configure:5626: checking for vsnprintf" >&5
5626 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5629 cat > conftest.$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5632 /* System header to define __stub macros and hopefully few prototypes,
5633 which can conflict with char vsnprintf(); below. */
5635 /* Override any gcc2 internal prototype to avoid an error. */
5636 /* We use char because int might match the return type of a gcc2
5637 builtin and then its argument prototype would still apply. */
5642 /* The GNU C library defines this for functions which it implements
5643 to always fail with ENOSYS. Some functions are actually named
5644 something starting with __ and the normal name is an alias. */
5645 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5653 if { (eval echo configure:5654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5655 eval "ac_cv_func_vsnprintf=yes"
5657 echo "configure: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5660 eval "ac_cv_func_vsnprintf=no"
5665 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5666 echo "$ac_t""yes" 1>&6
5667 cat >> confdefs.h <<\EOF
5668 #define HAVE_VSNPRINTF 1
5672 echo "$ac_t""no" 1>&6
5673 SNPRINTF='snprintf.o'
5677 cat > conftest.$ac_ext <<EOF
5678 #line 5679 "configure"
5679 #include "confdefs.h"
5682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5683 egrep "snprintf" >/dev/null 2>&1; then
5685 cat >> confdefs.h <<\EOF
5686 #define HAVE_SNPRINTF_DECL 1
5692 cat > conftest.$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5698 egrep "vsnprintf" >/dev/null 2>&1; then
5700 cat >> confdefs.h <<\EOF
5701 #define HAVE_VSNPRINTF_DECL 1
5708 # do this one the hard way in case isinf() is a macro
5709 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5710 echo "configure:5711: checking for isinf" >&5
5711 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5714 cat > conftest.$ac_ext <<EOF
5715 #line 5716 "configure"
5716 #include "confdefs.h"
5720 double x = 0.0; int res = isinf(x);
5723 if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5725 ac_cv_func_isinf=yes
5727 echo "configure: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5735 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5737 if test $ac_cv_func_isinf = yes ; then
5738 cat >> confdefs.h <<\EOF
5739 #define HAVE_ISINF 1
5745 # Look for a way to implement a substitute for isinf()
5746 for ac_func in fpclass fp_class fp_class_d class
5748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5749 echo "configure:5750: checking for $ac_func" >&5
5750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5756 /* System header to define __stub macros and hopefully few prototypes,
5757 which can conflict with char $ac_func(); below. */
5759 /* Override any gcc2 internal prototype to avoid an error. */
5760 /* We use char because int might match the return type of a gcc2
5761 builtin and then its argument prototype would still apply. */
5766 /* The GNU C library defines this for functions which it implements
5767 to always fail with ENOSYS. Some functions are actually named
5768 something starting with __ and the normal name is an alias. */
5769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5779 eval "ac_cv_func_$ac_func=yes"
5781 echo "configure: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5784 eval "ac_cv_func_$ac_func=no"
5789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5790 echo "$ac_t""yes" 1>&6
5791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5792 cat >> confdefs.h <<EOF
5793 #define $ac_tr_func 1
5797 echo "$ac_t""no" 1>&6
5804 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5805 echo "configure:5806: checking for getrusage" >&5
5806 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5812 /* System header to define __stub macros and hopefully few prototypes,
5813 which can conflict with char getrusage(); below. */
5815 /* Override any gcc2 internal prototype to avoid an error. */
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5822 /* The GNU C library defines this for functions which it implements
5823 to always fail with ENOSYS. Some functions are actually named
5824 something starting with __ and the normal name is an alias. */
5825 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5833 if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5835 eval "ac_cv_func_getrusage=yes"
5837 echo "configure: failed program was:" >&5
5838 cat conftest.$ac_ext >&5
5840 eval "ac_cv_func_getrusage=no"
5845 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5846 echo "$ac_t""yes" 1>&6
5847 cat >> confdefs.h <<\EOF
5848 #define HAVE_GETRUSAGE 1
5852 echo "$ac_t""no" 1>&6
5853 GETRUSAGE='getrusage.o'
5857 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5858 echo "configure:5859: checking for srandom" >&5
5859 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5860 echo $ac_n "(cached) $ac_c" 1>&6
5862 cat > conftest.$ac_ext <<EOF
5863 #line 5864 "configure"
5864 #include "confdefs.h"
5865 /* System header to define __stub macros and hopefully few prototypes,
5866 which can conflict with char srandom(); below. */
5868 /* Override any gcc2 internal prototype to avoid an error. */
5869 /* We use char because int might match the return type of a gcc2
5870 builtin and then its argument prototype would still apply. */
5875 /* The GNU C library defines this for functions which it implements
5876 to always fail with ENOSYS. Some functions are actually named
5877 something starting with __ and the normal name is an alias. */
5878 #if defined (__stub_srandom) || defined (__stub___srandom)
5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5888 eval "ac_cv_func_srandom=yes"
5890 echo "configure: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5893 eval "ac_cv_func_srandom=no"
5898 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5899 echo "$ac_t""yes" 1>&6
5900 cat >> confdefs.h <<\EOF
5901 #define HAVE_SRANDOM 1
5905 echo "$ac_t""no" 1>&6
5910 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5911 echo "configure:5912: checking for gethostname" >&5
5912 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5913 echo $ac_n "(cached) $ac_c" 1>&6
5915 cat > conftest.$ac_ext <<EOF
5916 #line 5917 "configure"
5917 #include "confdefs.h"
5918 /* System header to define __stub macros and hopefully few prototypes,
5919 which can conflict with char gethostname(); below. */
5921 /* Override any gcc2 internal prototype to avoid an error. */
5922 /* We use char because int might match the return type of a gcc2
5923 builtin and then its argument prototype would still apply. */
5928 /* The GNU C library defines this for functions which it implements
5929 to always fail with ENOSYS. Some functions are actually named
5930 something starting with __ and the normal name is an alias. */
5931 #if defined (__stub_gethostname) || defined (__stub___gethostname)
5939 if { (eval echo configure:5940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5941 eval "ac_cv_func_gethostname=yes"
5943 echo "configure: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5946 eval "ac_cv_func_gethostname=no"
5951 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
5952 echo "$ac_t""yes" 1>&6
5953 cat >> confdefs.h <<\EOF
5954 #define HAVE_GETHOSTNAME 1
5958 echo "$ac_t""no" 1>&6
5959 GETHOSTNAME='gethostname.o'
5963 echo $ac_n "checking for random""... $ac_c" 1>&6
5964 echo "configure:5965: checking for random" >&5
5965 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
5966 echo $ac_n "(cached) $ac_c" 1>&6
5968 cat > conftest.$ac_ext <<EOF
5969 #line 5970 "configure"
5970 #include "confdefs.h"
5971 /* System header to define __stub macros and hopefully few prototypes,
5972 which can conflict with char random(); below. */
5974 /* Override any gcc2 internal prototype to avoid an error. */
5975 /* We use char because int might match the return type of a gcc2
5976 builtin and then its argument prototype would still apply. */
5981 /* The GNU C library defines this for functions which it implements
5982 to always fail with ENOSYS. Some functions are actually named
5983 something starting with __ and the normal name is an alias. */
5984 #if defined (__stub_random) || defined (__stub___random)
5992 if { (eval echo configure:5993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5994 eval "ac_cv_func_random=yes"
5996 echo "configure: failed program was:" >&5
5997 cat conftest.$ac_ext >&5
5999 eval "ac_cv_func_random=no"
6004 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6005 echo "$ac_t""yes" 1>&6
6006 cat >> confdefs.h <<\EOF
6007 #define HAVE_RANDOM 1
6011 echo "$ac_t""no" 1>&6
6012 MISSING_RANDOM='random.o'
6016 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6017 echo "configure:6018: checking for inet_aton" >&5
6018 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6019 echo $ac_n "(cached) $ac_c" 1>&6
6021 cat > conftest.$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 /* System header to define __stub macros and hopefully few prototypes,
6025 which can conflict with char inet_aton(); below. */
6027 /* Override any gcc2 internal prototype to avoid an error. */
6028 /* We use char because int might match the return type of a gcc2
6029 builtin and then its argument prototype would still apply. */
6034 /* The GNU C library defines this for functions which it implements
6035 to always fail with ENOSYS. Some functions are actually named
6036 something starting with __ and the normal name is an alias. */
6037 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6045 if { (eval echo configure:6046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6047 eval "ac_cv_func_inet_aton=yes"
6049 echo "configure: failed program was:" >&5
6050 cat conftest.$ac_ext >&5
6052 eval "ac_cv_func_inet_aton=no"
6057 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6058 echo "$ac_t""yes" 1>&6
6059 cat >> confdefs.h <<\EOF
6060 #define HAVE_INET_ATON 1
6064 echo "$ac_t""no" 1>&6
6065 INET_ATON='inet_aton.o'
6069 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6070 echo "configure:6071: checking for strerror" >&5
6071 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6072 echo $ac_n "(cached) $ac_c" 1>&6
6074 cat > conftest.$ac_ext <<EOF
6075 #line 6076 "configure"
6076 #include "confdefs.h"
6077 /* System header to define __stub macros and hopefully few prototypes,
6078 which can conflict with char strerror(); below. */
6080 /* Override any gcc2 internal prototype to avoid an error. */
6081 /* We use char because int might match the return type of a gcc2
6082 builtin and then its argument prototype would still apply. */
6087 /* The GNU C library defines this for functions which it implements
6088 to always fail with ENOSYS. Some functions are actually named
6089 something starting with __ and the normal name is an alias. */
6090 #if defined (__stub_strerror) || defined (__stub___strerror)
6098 if { (eval echo configure:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6100 eval "ac_cv_func_strerror=yes"
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6105 eval "ac_cv_func_strerror=no"
6110 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6111 echo "$ac_t""yes" 1>&6
6112 cat >> confdefs.h <<\EOF
6113 #define HAVE_STRERROR 1
6117 echo "$ac_t""no" 1>&6
6118 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
6123 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6124 echo "configure:6125: checking for strdup" >&5
6125 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6126 echo $ac_n "(cached) $ac_c" 1>&6
6128 cat > conftest.$ac_ext <<EOF
6129 #line 6130 "configure"
6130 #include "confdefs.h"
6131 /* System header to define __stub macros and hopefully few prototypes,
6132 which can conflict with char strdup(); below. */
6134 /* Override any gcc2 internal prototype to avoid an error. */
6135 /* We use char because int might match the return type of a gcc2
6136 builtin and then its argument prototype would still apply. */
6141 /* The GNU C library defines this for functions which it implements
6142 to always fail with ENOSYS. Some functions are actually named
6143 something starting with __ and the normal name is an alias. */
6144 #if defined (__stub_strdup) || defined (__stub___strdup)
6152 if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6154 eval "ac_cv_func_strdup=yes"
6156 echo "configure: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6159 eval "ac_cv_func_strdup=no"
6164 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6165 echo "$ac_t""yes" 1>&6
6166 cat >> confdefs.h <<\EOF
6167 #define HAVE_STRDUP 1
6171 echo "$ac_t""no" 1>&6
6172 STRDUP='../../utils/strdup.o'
6176 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6177 echo "configure:6178: checking for strtol" >&5
6178 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6179 echo $ac_n "(cached) $ac_c" 1>&6
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 /* System header to define __stub macros and hopefully few prototypes,
6185 which can conflict with char strtol(); below. */
6187 /* Override any gcc2 internal prototype to avoid an error. */
6188 /* We use char because int might match the return type of a gcc2
6189 builtin and then its argument prototype would still apply. */
6194 /* The GNU C library defines this for functions which it implements
6195 to always fail with ENOSYS. Some functions are actually named
6196 something starting with __ and the normal name is an alias. */
6197 #if defined (__stub_strtol) || defined (__stub___strtol)
6205 if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6207 eval "ac_cv_func_strtol=yes"
6209 echo "configure: failed program was:" >&5
6210 cat conftest.$ac_ext >&5
6212 eval "ac_cv_func_strtol=no"
6217 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6218 echo "$ac_t""yes" 1>&6
6219 cat >> confdefs.h <<\EOF
6220 #define HAVE_STRTOL 1
6224 echo "$ac_t""no" 1>&6
6229 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6230 echo "configure:6231: checking for strtoul" >&5
6231 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6234 cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 /* System header to define __stub macros and hopefully few prototypes,
6238 which can conflict with char strtoul(); below. */
6240 /* Override any gcc2 internal prototype to avoid an error. */
6241 /* We use char because int might match the return type of a gcc2
6242 builtin and then its argument prototype would still apply. */
6247 /* The GNU C library defines this for functions which it implements
6248 to always fail with ENOSYS. Some functions are actually named
6249 something starting with __ and the normal name is an alias. */
6250 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6258 if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6260 eval "ac_cv_func_strtoul=yes"
6262 echo "configure: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6265 eval "ac_cv_func_strtoul=no"
6270 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6271 echo "$ac_t""yes" 1>&6
6272 cat >> confdefs.h <<\EOF
6273 #define HAVE_STRTOUL 1
6277 echo "$ac_t""no" 1>&6
6282 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6283 echo "configure:6284: checking for strcasecmp" >&5
6284 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6285 echo $ac_n "(cached) $ac_c" 1>&6
6287 cat > conftest.$ac_ext <<EOF
6288 #line 6289 "configure"
6289 #include "confdefs.h"
6290 /* System header to define __stub macros and hopefully few prototypes,
6291 which can conflict with char strcasecmp(); below. */
6293 /* Override any gcc2 internal prototype to avoid an error. */
6294 /* We use char because int might match the return type of a gcc2
6295 builtin and then its argument prototype would still apply. */
6300 /* The GNU C library defines this for functions which it implements
6301 to always fail with ENOSYS. Some functions are actually named
6302 something starting with __ and the normal name is an alias. */
6303 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6311 if { (eval echo configure:6312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6313 eval "ac_cv_func_strcasecmp=yes"
6315 echo "configure: failed program was:" >&5
6316 cat conftest.$ac_ext >&5
6318 eval "ac_cv_func_strcasecmp=no"
6323 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6324 echo "$ac_t""yes" 1>&6
6325 cat >> confdefs.h <<\EOF
6326 #define HAVE_STRCASECMP 1
6330 echo "$ac_t""no" 1>&6
6331 STRCASECMP='strcasecmp.o'
6335 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6336 echo "configure:6337: checking for cbrt" >&5
6337 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6340 cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure"
6342 #include "confdefs.h"
6343 /* System header to define __stub macros and hopefully few prototypes,
6344 which can conflict with char cbrt(); below. */
6346 /* Override any gcc2 internal prototype to avoid an error. */
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6353 /* The GNU C library defines this for functions which it implements
6354 to always fail with ENOSYS. Some functions are actually named
6355 something starting with __ and the normal name is an alias. */
6356 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6364 if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6366 eval "ac_cv_func_cbrt=yes"
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6371 eval "ac_cv_func_cbrt=no"
6376 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6377 echo "$ac_t""yes" 1>&6
6378 cat >> confdefs.h <<\EOF
6383 echo "$ac_t""no" 1>&6
6384 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6385 echo "configure:6386: checking for cbrt in -lm" >&5
6386 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6388 echo $ac_n "(cached) $ac_c" 1>&6
6390 ac_save_LIBS="$LIBS"
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6404 if { (eval echo configure:6405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6406 eval "ac_cv_lib_$ac_lib_var=yes"
6408 echo "configure: failed program was:" >&5
6409 cat conftest.$ac_ext >&5
6411 eval "ac_cv_lib_$ac_lib_var=no"
6414 LIBS="$ac_save_LIBS"
6417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6418 echo "$ac_t""yes" 1>&6
6419 cat >> confdefs.h <<\EOF
6424 echo "$ac_t""no" 1>&6
6430 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6431 # this hackery with HPUXMATHLIB allows us to cope.
6435 if [ -r /lib/pa1.1/libm.a ] ; then
6436 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6441 echo $ac_n "checking for rint""... $ac_c" 1>&6
6442 echo "configure:6443: checking for rint" >&5
6443 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6444 echo $ac_n "(cached) $ac_c" 1>&6
6446 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure"
6448 #include "confdefs.h"
6449 /* System header to define __stub macros and hopefully few prototypes,
6450 which can conflict with char rint(); below. */
6452 /* Override any gcc2 internal prototype to avoid an error. */
6453 /* We use char because int might match the return type of a gcc2
6454 builtin and then its argument prototype would still apply. */
6459 /* The GNU C library defines this for functions which it implements
6460 to always fail with ENOSYS. Some functions are actually named
6461 something starting with __ and the normal name is an alias. */
6462 #if defined (__stub_rint) || defined (__stub___rint)
6470 if { (eval echo configure:6471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6472 eval "ac_cv_func_rint=yes"
6474 echo "configure: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6477 eval "ac_cv_func_rint=no"
6482 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6483 echo "$ac_t""yes" 1>&6
6484 cat >> confdefs.h <<\EOF
6489 echo "$ac_t""no" 1>&6
6490 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6491 echo "configure:6492: checking for rint in -lm" >&5
6492 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6496 ac_save_LIBS="$LIBS"
6497 LIBS="-lm $HPUXMATHLIB $LIBS"
6498 cat > conftest.$ac_ext <<EOF
6499 #line 6500 "configure"
6500 #include "confdefs.h"
6501 /* Override any gcc2 internal prototype to avoid an error. */
6502 /* We use char because int might match the return type of a gcc2
6503 builtin and then its argument prototype would still apply. */
6510 if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6512 eval "ac_cv_lib_$ac_lib_var=yes"
6514 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6517 eval "ac_cv_lib_$ac_lib_var=no"
6520 LIBS="$ac_save_LIBS"
6523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6524 echo "$ac_t""yes" 1>&6
6525 cat >> confdefs.h <<\EOF
6530 echo "$ac_t""no" 1>&6
6537 # Readline versions < 2.1 don't have rl_completion_append_character
6538 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
6539 echo "configure:6540: checking for rl_completion_append_character" >&5
6540 cat > conftest.$ac_ext <<EOF
6541 #line 6542 "configure"
6542 #include "confdefs.h"
6544 #ifdef HAVE_READLINE_H
6545 # include <readline.h>
6547 #ifdef HAVE_READLINE_READLINE_H
6548 # include <readline/readline.h>
6551 rl_completion_append_character = 'x';
6554 if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6556 echo "$ac_t""yes" 1>&6
6557 cat >> confdefs.h <<\EOF
6558 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6562 echo "configure: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6565 echo "$ac_t""no" 1>&6
6570 # Check whether readline's filename_completion_function is declared.
6571 # Some prehistoric versions of readline, in particular those shipped
6572 # with earlier Cygwins don't have this declared, although it's in the
6574 echo $ac_n "checking whether filename_completion_function is declared""... $ac_c" 1>&6
6575 echo "configure:6576: checking whether filename_completion_function is declared" >&5
6576 if test "$ac_cv_header_readline_h" = yes; then
6577 _readline_header='readline.h'
6578 elif test "$ac_cv_header_readline_readline_h" = yes; then
6579 _readline_header='readline/readline.h'
6581 _readline_header='xxx'
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 #include <$_readline_header>
6588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6589 egrep "filename_completion_function" >/dev/null 2>&1; then
6591 cat >> confdefs.h <<\EOF
6592 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6595 echo "$ac_t""yes" 1>&6
6598 echo "$ac_t""no" 1>&6
6605 echo $ac_n "checking for finite""... $ac_c" 1>&6
6606 echo "configure:6607: checking for finite" >&5
6607 cat > conftest.$ac_ext <<EOF
6608 #line 6609 "configure"
6609 #include "confdefs.h"
6612 int dummy=finite(1.0);
6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6617 cat >> confdefs.h <<\EOF
6618 #define HAVE_FINITE 1
6620 echo "$ac_t""yes" 1>&6
6622 echo "configure: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6625 echo "$ac_t""no" 1>&6
6629 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6630 echo "configure:6631: checking for sigsetjmp" >&5
6631 cat > conftest.$ac_ext <<EOF
6632 #line 6633 "configure"
6633 #include "confdefs.h"
6636 sigjmp_buf x; sigsetjmp(x, 1);
6639 if { (eval echo configure:6640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6641 cat >> confdefs.h <<\EOF
6642 #define HAVE_SIGSETJMP 1
6644 echo "$ac_t""yes" 1>&6
6646 echo "configure: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6649 echo "$ac_t""no" 1>&6
6654 # Check whether --enable-syslog was given
6655 if test x"${enable_syslog+set}" = xset; then
6656 case $enable_syslog in
6658 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6659 echo "configure:6660: checking for syslog" >&5
6660 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6661 echo $ac_n "(cached) $ac_c" 1>&6
6663 cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 /* System header to define __stub macros and hopefully few prototypes,
6667 which can conflict with char syslog(); below. */
6669 /* Override any gcc2 internal prototype to avoid an error. */
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6676 /* The GNU C library defines this for functions which it implements
6677 to always fail with ENOSYS. Some functions are actually named
6678 something starting with __ and the normal name is an alias. */
6679 #if defined (__stub_syslog) || defined (__stub___syslog)
6687 if { (eval echo configure:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6689 eval "ac_cv_func_syslog=yes"
6691 echo "configure: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6694 eval "ac_cv_func_syslog=no"
6699 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 cat >> confdefs.h <<\EOF
6702 #define ENABLE_SYSLOG 1
6706 echo "$ac_t""no" 1>&6
6707 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6715 enableval=$enable_syslog
6716 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6718 esac # $enable_syslog
6726 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6727 echo "configure:6728: checking whether long int is 64 bits" >&5
6728 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6729 echo $ac_n "(cached) $ac_c" 1>&6
6731 if test "$cross_compiling" = yes; then
6732 pgac_cv_type_long_int_64=no
6733 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6735 cat > conftest.$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6738 typedef long int int64;
6741 * These are globals to discourage the compiler from folding all the
6742 * arithmetic tests down to compile-time constants.
6747 int does_int64_work()
6751 if (sizeof(int64) != 8)
6752 return 0; /* definitely not the right size */
6754 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6762 exit(! does_int64_work());
6765 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6767 pgac_cv_type_long_int_64=yes
6769 echo "configure: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6772 pgac_cv_type_long_int_64=no
6779 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6781 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6782 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6783 cat >> confdefs.h <<\EOF
6784 #define HAVE_LONG_INT_64
6790 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6791 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6792 echo "configure:6793: checking whether long long int is 64 bits" >&5
6793 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6796 if test "$cross_compiling" = yes; then
6797 pgac_cv_type_long_long_int_64=no
6798 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 typedef long long int int64;
6806 * These are globals to discourage the compiler from folding all the
6807 * arithmetic tests down to compile-time constants.
6812 int does_int64_work()
6816 if (sizeof(int64) != 8)
6817 return 0; /* definitely not the right size */
6819 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6827 exit(! does_int64_work());
6830 if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6832 pgac_cv_type_long_long_int_64=yes
6834 echo "configure: failed program was:" >&5
6835 cat conftest.$ac_ext >&5
6837 pgac_cv_type_long_long_int_64=no
6844 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
6846 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
6847 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
6848 cat >> confdefs.h <<\EOF
6849 #define HAVE_LONG_LONG_INT_64
6858 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6859 if [ x$SNPRINTF = x ] ; then
6860 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
6861 echo "configure:6862: checking whether snprintf handles 'long long int' as %lld" >&5
6862 if test "$cross_compiling" = yes; then
6863 echo "$ac_t""assuming not on target machine" 1>&6
6864 # Force usage of our own snprintf, since we cannot test foreign snprintf
6865 SNPRINTF='snprintf.o'
6866 INT64_FORMAT='"%lld"'
6869 cat > conftest.$ac_ext <<EOF
6870 #line 6871 "configure"
6871 #include "confdefs.h"
6873 typedef long long int int64;
6874 #define INT64_FORMAT "%lld"
6879 int does_int64_snprintf_work()
6884 if (sizeof(int64) != 8)
6885 return 0; /* doesn't look like the right size */
6888 snprintf(buf, 100, INT64_FORMAT, c);
6889 if (strcmp(buf, "800000140000005") != 0)
6890 return 0; /* either multiply or snprintf is busted */
6894 exit(! does_int64_snprintf_work());
6897 if { (eval echo configure:6898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6899 echo "$ac_t""yes" 1>&6
6900 INT64_FORMAT='"%lld"'
6903 echo "configure: failed program was:" >&5
6904 cat conftest.$ac_ext >&5
6906 echo "$ac_t""no" 1>&6
6907 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
6908 echo "configure:6909: checking whether snprintf handles 'long long int' as %qd" >&5
6909 if test "$cross_compiling" = yes; then
6910 echo "$ac_t""assuming not on target machine" 1>&6
6911 # Force usage of our own snprintf, since we cannot test foreign snprintf
6912 SNPRINTF='snprintf.o'
6913 INT64_FORMAT='"%lld"'
6916 cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6920 typedef long long int int64;
6921 #define INT64_FORMAT "%qd"
6926 int does_int64_snprintf_work()
6931 if (sizeof(int64) != 8)
6932 return 0; /* doesn't look like the right size */
6935 snprintf(buf, 100, INT64_FORMAT, c);
6936 if (strcmp(buf, "800000140000005") != 0)
6937 return 0; /* either multiply or snprintf is busted */
6941 exit(! does_int64_snprintf_work());
6944 if { (eval echo configure:6945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6946 echo "$ac_t""yes" 1>&6
6947 INT64_FORMAT='"%qd"'
6950 echo "configure: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6953 echo "$ac_t""no" 1>&6
6954 # Force usage of our own snprintf, since system snprintf is broken
6955 SNPRINTF='snprintf.o'
6956 INT64_FORMAT='"%lld"'
6967 # here if we previously decided we needed to use our own snprintf
6968 INT64_FORMAT='"%lld"'
6971 # Here if we are not using 'long long int' at all
6972 INT64_FORMAT='"%ld"'
6975 cat >> confdefs.h <<EOF
6976 #define INT64_FORMAT $INT64_FORMAT
6982 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
6983 echo "configure:6984: checking alignment of short" >&5
6984 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
6985 echo $ac_n "(cached) $ac_c" 1>&6
6987 if test "$cross_compiling" = yes; then
6988 pgac_cv_alignof_short='sizeof(short)'
6990 cat > conftest.$ac_ext <<EOF
6991 #line 6992 "configure"
6992 #include "confdefs.h"
6994 struct { char filler; short field; } mystruct;
6997 FILE *f=fopen("conftestval", "w");
6999 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7003 if { (eval echo configure:7004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7005 pgac_cv_alignof_short=`cat conftestval`
7007 echo "configure: failed program was:" >&5
7008 cat conftest.$ac_ext >&5
7010 pgac_cv_alignof_short='sizeof(short)'
7016 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7017 cat >> confdefs.h <<EOF
7018 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7022 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7023 echo "configure:7024: checking alignment of int" >&5
7024 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7025 echo $ac_n "(cached) $ac_c" 1>&6
7027 if test "$cross_compiling" = yes; then
7028 pgac_cv_alignof_int='sizeof(int)'
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7034 struct { char filler; int field; } mystruct;
7037 FILE *f=fopen("conftestval", "w");
7039 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7043 if { (eval echo configure:7044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7045 pgac_cv_alignof_int=`cat conftestval`
7047 echo "configure: failed program was:" >&5
7048 cat conftest.$ac_ext >&5
7050 pgac_cv_alignof_int='sizeof(int)'
7056 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7057 cat >> confdefs.h <<EOF
7058 #define ALIGNOF_INT $pgac_cv_alignof_int
7062 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7063 echo "configure:7064: checking alignment of long" >&5
7064 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7067 if test "$cross_compiling" = yes; then
7068 pgac_cv_alignof_long='sizeof(long)'
7070 cat > conftest.$ac_ext <<EOF
7071 #line 7072 "configure"
7072 #include "confdefs.h"
7074 struct { char filler; long field; } mystruct;
7077 FILE *f=fopen("conftestval", "w");
7079 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7085 pgac_cv_alignof_long=`cat conftestval`
7087 echo "configure: failed program was:" >&5
7088 cat conftest.$ac_ext >&5
7090 pgac_cv_alignof_long='sizeof(long)'
7096 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7097 cat >> confdefs.h <<EOF
7098 #define ALIGNOF_LONG $pgac_cv_alignof_long
7102 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7103 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7104 echo "configure:7105: checking alignment of long long int" >&5
7105 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7106 echo $ac_n "(cached) $ac_c" 1>&6
7108 if test "$cross_compiling" = yes; then
7109 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7111 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7115 struct { char filler; long long int field; } mystruct;
7118 FILE *f=fopen("conftestval", "w");
7120 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7124 if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7126 pgac_cv_alignof_long_long_int=`cat conftestval`
7128 echo "configure: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7131 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7137 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7138 cat >> confdefs.h <<EOF
7139 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7144 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7145 echo "configure:7146: checking alignment of double" >&5
7146 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7147 echo $ac_n "(cached) $ac_c" 1>&6
7149 if test "$cross_compiling" = yes; then
7150 pgac_cv_alignof_double='sizeof(double)'
7152 cat > conftest.$ac_ext <<EOF
7153 #line 7154 "configure"
7154 #include "confdefs.h"
7156 struct { char filler; double field; } mystruct;
7159 FILE *f=fopen("conftestval", "w");
7161 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7165 if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7167 pgac_cv_alignof_double=`cat conftestval`
7169 echo "configure: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7172 pgac_cv_alignof_double='sizeof(double)'
7178 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7179 cat >> confdefs.h <<EOF
7180 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7186 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7187 MAX_ALIGNOF=$pgac_cv_alignof_long
7188 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7189 MAX_ALIGNOF=$pgac_cv_alignof_double
7191 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7192 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7195 MAX_ALIGNOF="$pgac_cv_alignof_double"
7197 cat >> confdefs.h <<EOF
7198 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7202 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7203 echo "configure:7204: checking for POSIX signal interface" >&5
7204 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7205 echo $ac_n "(cached) $ac_c" 1>&6
7207 cat > conftest.$ac_ext <<EOF
7208 #line 7209 "configure"
7209 #include "confdefs.h"
7213 struct sigaction act, oact;
7214 sigemptyset(&act.sa_mask);
7215 act.sa_flags = SA_RESTART;
7216 sigaction(0, &act, &oact);
7219 if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7221 pgac_cv_func_posix_signals=yes
7223 echo "configure: failed program was:" >&5
7224 cat conftest.$ac_ext >&5
7226 pgac_cv_func_posix_signals=no
7231 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
7232 if test x"$pgac_cv_func_posix_signals" = xyes ; then
7233 cat >> confdefs.h <<\EOF
7234 #define HAVE_POSIX_SIGNALS
7238 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
7242 # Check for Tcl configuration script tclConfig.sh
7243 if test "$with_tcl" = yes; then
7244 for ac_prog in tclsh tcl
7246 # Extract the first word of "$ac_prog", so it can be a program name with args.
7247 set dummy $ac_prog; ac_word=$2
7248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7249 echo "configure:7250: checking for $ac_word" >&5
7250 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
7251 echo $ac_n "(cached) $ac_c" 1>&6
7255 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7258 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7263 for ac_dir in $ac_dummy; do
7264 test -z "$ac_dir" && ac_dir=.
7265 if test -f $ac_dir/$ac_word; then
7266 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7274 TCLSH="$ac_cv_path_TCLSH"
7275 if test -n "$TCLSH"; then
7276 echo "$ac_t""$TCLSH" 1>&6
7278 echo "$ac_t""no" 1>&6
7281 test -n "$TCLSH" && break
7284 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7285 echo "configure:7286: checking for tclConfig.sh" >&5
7286 # Let user override test
7287 if test -z "$TCL_CONFIG_SH"; then
7288 pgac_test_dirs="$with_tclconfig"
7290 set X $pgac_test_dirs; shift
7291 if test $# -eq 0; then
7292 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7293 set X `echo 'puts $auto_path' | $TCLSH`; shift
7297 if test -r "$pgac_dir/tclConfig.sh"; then
7298 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7304 if test -z "$TCL_CONFIG_SH"; then
7305 echo "$ac_t""no" 1>&6
7306 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7308 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7315 # Check for Tk configuration script tkConfig.sh
7316 if test "$with_tk" = yes; then
7317 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7318 echo "configure:7319: checking for tkConfig.sh" >&5
7319 # Let user override test
7320 if test -z "$TK_CONFIG_SH"; then
7321 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7323 set X $pgac_test_dirs; shift
7324 if test $# -eq 0; then
7325 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7326 set X `echo 'puts $auto_path' | $TCLSH`; shift
7330 if test -r "$pgac_dir/tkConfig.sh"; then
7331 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7337 if test -z "$TK_CONFIG_SH"; then
7338 echo "$ac_t""no" 1>&6
7339 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7341 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7349 # Finally ready to produce output files ...
7351 if test x"$abs_top_srcdir" != x"$abs_top_builddir"; then
7352 echo $ac_n "preparing build tree... $ac_c" 1>&6
7353 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "$abs_top_builddir" \
7354 || { echo "configure: error: failed" 1>&2; exit 1; }
7355 echo "$ac_t""done" 1>&6
7359 cat > confcache <<\EOF
7360 # This file is a shell script that caches the results of configure
7361 # tests run on this system so they can be shared between configure
7362 # scripts and configure runs. It is not useful on other systems.
7363 # If it contains results you don't want to keep, you may remove or edit it.
7365 # By default, configure uses ./config.cache as the cache file,
7366 # creating it if it does not exist already. You can give configure
7367 # the --cache-file=FILE option to use a different cache file; that is
7368 # what configure does when it calls configure scripts in
7369 # subdirectories, so they share the cache.
7370 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7371 # config.status only pays attention to the cache file if you give it the
7372 # --recheck option to rerun configure.
7375 # The following way of writing the cache mishandles newlines in values,
7376 # but we know of no workaround that is simple, portable, and efficient.
7377 # So, don't put newlines in cache variables' values.
7378 # Ultrix sh set writes to stderr and can't be redirected directly,
7379 # and sets the high bit in the cache file unless we assign to the vars.
7381 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7383 # `set' does not quote correctly, so add quotes (double-quote substitution
7384 # turns \\\\ into \\, and sed turns \\ into \).
7386 -e "s/'/'\\\\''/g" \
7387 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7390 # `set' quotes correctly as required by POSIX, so do not add quotes.
7391 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7394 if cmp -s $cache_file confcache; then
7397 if test -w $cache_file; then
7398 echo "updating cache $cache_file"
7399 cat confcache > $cache_file
7401 echo "not updating unwritable cache $cache_file"
7406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7409 # Let make expand exec_prefix.
7410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7412 # Any assignment to VPATH causes Sun make to only execute
7413 # the first set of double-colon rules, so remove it if not needed.
7414 # If there is a colon in the path, we need to keep it.
7415 if test "x$srcdir" = x.; then
7416 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7419 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7421 DEFS=-DHAVE_CONFIG_H
7423 # Without the "./", some shells look in PATH for config.status.
7424 : ${CONFIG_STATUS=./config.status}
7426 echo creating $CONFIG_STATUS
7427 rm -f $CONFIG_STATUS
7428 cat > $CONFIG_STATUS <<EOF
7430 # Generated automatically by configure.
7431 # Run this file to recreate the current configuration.
7432 # This directory was configured as follows,
7433 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7435 # $0 $ac_configure_args
7437 # Compiler output produced by configure, useful for debugging
7438 # configure, is in ./config.log if it exists.
7440 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7443 case "\$ac_option" in
7444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7445 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7446 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7447 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7448 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7450 -help | --help | --hel | --he | --h)
7451 echo "\$ac_cs_usage"; exit 0 ;;
7452 *) echo "\$ac_cs_usage"; exit 1 ;;
7456 ac_given_srcdir=$srcdir
7457 ac_given_INSTALL="$INSTALL"
7459 trap 'rm -fr `echo "
7463 src/backend/port/Makefile
7464 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7466 cat >> $CONFIG_STATUS <<EOF
7468 # Protect against being on the right side of a sed subst in config.status.
7469 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7470 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7474 s%@CFLAGS@%$CFLAGS%g
7475 s%@CPPFLAGS@%$CPPFLAGS%g
7476 s%@CXXFLAGS@%$CXXFLAGS%g
7477 s%@FFLAGS@%$FFLAGS%g
7479 s%@LDFLAGS@%$LDFLAGS%g
7481 s%@exec_prefix@%$exec_prefix%g
7482 s%@prefix@%$prefix%g
7483 s%@program_transform_name@%$program_transform_name%g
7484 s%@bindir@%$bindir%g
7485 s%@sbindir@%$sbindir%g
7486 s%@libexecdir@%$libexecdir%g
7487 s%@datadir@%$datadir%g
7488 s%@sysconfdir@%$sysconfdir%g
7489 s%@sharedstatedir@%$sharedstatedir%g
7490 s%@localstatedir@%$localstatedir%g
7491 s%@libdir@%$libdir%g
7492 s%@includedir@%$includedir%g
7493 s%@oldincludedir@%$oldincludedir%g
7494 s%@docdir@%$docdir%g
7495 s%@mandir@%$mandir%g
7496 s%@VERSION@%$VERSION%g
7497 s%@abs_top_srcdir@%$abs_top_srcdir%g
7498 s%@abs_top_builddir@%$abs_top_builddir%g
7500 s%@host_alias@%$host_alias%g
7501 s%@host_cpu@%$host_cpu%g
7502 s%@host_vendor@%$host_vendor%g
7503 s%@host_os@%$host_os%g
7504 s%@PORTNAME@%$PORTNAME%g
7506 s%@MULTIBYTE@%$MULTIBYTE%g
7507 s%@enable_shared@%$enable_shared%g
7508 s%@enable_rpath@%$enable_rpath%g
7510 s%@EXEEXT@%$EXEEXT%g
7513 s%@autodepend@%$autodepend%g
7514 s%@INCLUDES@%$INCLUDES%g
7515 s%@with_tcl@%$with_tcl%g
7516 s%@with_tk@%$with_tk%g
7517 s%@with_perl@%$with_perl%g
7518 s%@PYTHON@%$PYTHON%g
7519 s%@python_version@%$python_version%g
7520 s%@python_prefix@%$python_prefix%g
7521 s%@python_execprefix@%$python_execprefix%g
7522 s%@python_configdir@%$python_configdir%g
7523 s%@python_moduledir@%$python_moduledir%g
7524 s%@python_extmakefile@%$python_extmakefile%g
7525 s%@with_python@%$with_python%g
7526 s%@with_krb4@%$with_krb4%g
7527 s%@with_krb5@%$with_krb5%g
7528 s%@krb_srvtab@%$krb_srvtab%g
7529 s%@with_openssl@%$with_openssl%g
7530 s%@enable_odbc@%$enable_odbc%g
7531 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
7532 s%@ELF_SYS@%$ELF_SYS%g
7534 s%@CXXCPP@%$CXXCPP%g
7536 s%@with_CXX@%$with_CXX%g
7537 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7538 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7539 s%@INSTALL_DATA@%$INSTALL_DATA%g
7540 s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
7543 s%@FLEXFLAGS@%$FLEXFLAGS%g
7546 s%@with_gnu_ld@%$with_gnu_ld%g
7547 s%@RANLIB@%$RANLIB%g
7548 s%@LORDER@%$LORDER%g
7552 s%@YFLAGS@%$YFLAGS%g
7554 s%@SNPRINTF@%$SNPRINTF%g
7556 s%@GETRUSAGE@%$GETRUSAGE%g
7557 s%@SRANDOM@%$SRANDOM%g
7558 s%@GETHOSTNAME@%$GETHOSTNAME%g
7559 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
7560 s%@INET_ATON@%$INET_ATON%g
7561 s%@STRERROR@%$STRERROR%g
7562 s%@STRERROR2@%$STRERROR2%g
7563 s%@STRDUP@%$STRDUP%g
7564 s%@STRTOL@%$STRTOL%g
7565 s%@STRTOUL@%$STRTOUL%g
7566 s%@STRCASECMP@%$STRCASECMP%g
7567 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
7568 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
7570 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
7571 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
7576 cat >> $CONFIG_STATUS <<\EOF
7578 # Split the substitutions into bite-sized pieces for seds with
7579 # small command number limits, like on Digital OSF/1 and HP-UX.
7580 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7581 ac_file=1 # Number of current file.
7582 ac_beg=1 # First line for current file.
7583 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7586 while $ac_more_lines; do
7587 if test $ac_beg -gt 1; then
7588 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7590 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7592 if test ! -s conftest.s$ac_file; then
7594 rm -f conftest.s$ac_file
7596 if test -z "$ac_sed_cmds"; then
7597 ac_sed_cmds="sed -f conftest.s$ac_file"
7599 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7601 ac_file=`expr $ac_file + 1`
7603 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7606 if test -z "$ac_sed_cmds"; then
7611 cat >> $CONFIG_STATUS <<EOF
7613 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
7616 src/backend/port/Makefile
7619 cat >> $CONFIG_STATUS <<\EOF
7620 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7621 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7623 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7624 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7625 *) ac_file_in="${ac_file}.in" ;;
7628 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7630 # Remove last slash and all that follows it. Not all systems have dirname.
7631 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7632 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7633 # The file is in a subdirectory.
7634 test ! -d "$ac_dir" && mkdir "$ac_dir"
7635 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7636 # A "../" for each directory in $ac_dir_suffix.
7637 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7639 ac_dir_suffix= ac_dots=
7642 case "$ac_given_srcdir" in
7644 if test -z "$ac_dots"; then top_srcdir=.
7645 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7646 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7648 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7649 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7652 case "$ac_given_INSTALL" in
7653 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7654 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7657 echo creating "$ac_file"
7659 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7661 *Makefile*) ac_comsub="1i\\
7662 # $configure_input" ;;
7666 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7668 s%@configure_input@%$configure_input%g
7669 s%@srcdir@%$srcdir%g
7670 s%@top_srcdir@%$top_srcdir%g
7671 s%@INSTALL@%$INSTALL%g
7672 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7676 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7677 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7679 # ac_d sets the value in "#define NAME VALUE" lines.
7680 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7681 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7684 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7685 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7686 ac_uB='\([ ]\)%\1#\2define\3'
7689 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7690 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7691 ac_eB='$%\1#\2define\3'
7695 if test "${CONFIG_HEADERS+set}" != set; then
7697 cat >> $CONFIG_STATUS <<EOF
7698 CONFIG_HEADERS="src/include/config.h"
7700 cat >> $CONFIG_STATUS <<\EOF
7702 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7703 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7705 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7706 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7707 *) ac_file_in="${ac_file}.in" ;;
7710 echo creating $ac_file
7712 rm -f conftest.frag conftest.in conftest.out
7713 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7714 cat $ac_file_inputs > conftest.in
7718 # Transform confdefs.h into a sed script conftest.vals that substitutes
7719 # the proper values into config.h.in to produce config.h. And first:
7720 # Protect against being on the right side of a sed subst in config.status.
7721 # Protect against being in an unquoted here document in config.status.
7723 cat > conftest.hdr <<\EOF
7726 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7730 sed -n -f conftest.hdr confdefs.h > conftest.vals
7733 # This sed command replaces #undef with comments. This is necessary, for
7734 # example, in the case of _POSIX_SOURCE, which is predefined and required
7735 # on some systems where configure will not decide to define it.
7736 cat >> conftest.vals <<\EOF
7737 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7740 # Break up conftest.vals because some shells have a limit on
7741 # the size of here documents, and old seds have small limits too.
7746 ac_lines=`grep -c . conftest.vals`
7747 # grep -c gives empty output for an empty file on some AIX systems.
7748 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7749 # Write a limited-size here document to conftest.frag.
7750 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7751 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7753 sed -f conftest.frag conftest.in > conftest.out
7755 mv conftest.out conftest.in
7757 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7759 mv conftest.tail conftest.vals
7763 cat >> $CONFIG_STATUS <<\EOF
7764 rm -f conftest.frag conftest.h
7765 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7766 cat conftest.in >> conftest.h
7768 if cmp -s $ac_file conftest.h 2>/dev/null; then
7769 echo "$ac_file is unchanged"
7772 # Remove last slash and all that follows it. Not all systems have dirname.
7773 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7774 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7775 # The file is in a subdirectory.
7776 test ! -d "$ac_dir" && mkdir "$ac_dir"
7779 mv conftest.h $ac_file
7785 cat >> $CONFIG_STATUS <<EOF
7786 ac_sources="src/backend/port/dynloader/${template}.c src/backend/port/dynloader/${template}.h src/include/port/${template}.h src/makefiles/Makefile.${template} src/backend/port/tas/${tas_file}"
7787 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
7790 cat >> $CONFIG_STATUS <<\EOF
7791 srcdir=$ac_given_srcdir
7792 while test -n "$ac_sources"; do
7793 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7794 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7796 echo "linking $srcdir/$ac_source to $ac_dest"
7798 if test ! -r $srcdir/$ac_source; then
7799 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7803 # Make relative symlinks.
7804 # Remove last slash and all that follows it. Not all systems have dirname.
7805 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7806 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7807 # The dest file is in a subdirectory.
7808 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7809 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7810 # A "../" for each directory in $ac_dest_dir_suffix.
7811 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7813 ac_dest_dir_suffix= ac_dots=
7817 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7818 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7821 # Make a symlink if possible; otherwise try a hard link.
7822 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7823 ln $srcdir/$ac_source $ac_dest; then :
7825 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7829 cat >> $CONFIG_STATUS <<EOF
7832 cat >> $CONFIG_STATUS <<\EOF
7833 echo "timestamp file" > src/include/stamp-h
7837 chmod +x $CONFIG_STATUS
7838 rm -fr confdefs* $ac_clean_files
7839 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1