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 cyrillic 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 --enable-depend turn on automatic dependency tracking"
34 --enable-debug build with debugging symbols (-g)"
36 --with-tcl build Tcl interfaces and pgtclsh "
38 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
40 --with-tkconfig=DIR tkConfig.sh is in DIR"
42 --with-perl build Perl interface and plperl"
44 --with-python build Python interface module"
46 --with-krb4[=DIR] use Kerberos 4 [/usr/athena]"
48 --with-krb5[=DIR] use Kerberos 5 [/usr/athena]"
50 --with-krb-srvnam=NAME name of the Postgres service principal in Kerberos"
52 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
54 --enable-odbc build the ODBC driver package"
56 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
58 --enable-cassert enable assertion checks (for debugging) "
60 --with-CXX build C++ modules (libpq++)"
62 --enable-syslog enable logging to syslog"
64 --with-x use the X Window System"
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file=./config.cache
79 program_transform_name=s,x,x,
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 docdir='${prefix}/doc'
98 mandir='${prefix}/man'
100 # Initialize some other variables.
103 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
111 # If the previous option needs an argument, assign it.
112 if test -n "$ac_prev"; then
113 eval "$ac_prev=\$ac_option"
119 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 # Accept the important Cygnus configure options, so we can diagnose typos.
127 -bindir | --bindir | --bindi | --bind | --bin | --bi)
129 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130 bindir="$ac_optarg" ;;
132 -build | --build | --buil | --bui | --bu)
134 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135 build="$ac_optarg" ;;
137 -cache-file | --cache-file | --cache-fil | --cache-fi \
138 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139 ac_prev=cache_file ;;
140 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142 cache_file="$ac_optarg" ;;
144 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148 datadir="$ac_optarg" ;;
150 -disable-* | --disable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}=no" ;;
159 -enable-* | --enable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}='$ac_optarg'" ;;
172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174 | --exec | --exe | --ex)
175 ac_prev=exec_prefix ;;
176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178 | --exec=* | --exe=* | --ex=*)
179 exec_prefix="$ac_optarg" ;;
181 -gas | --gas | --ga | --g)
182 # Obsolete; use --with-gas.
185 -help | --help | --hel | --he)
186 # Omit some internal or obsolete options to make the list less imposing.
187 # This message is too long to be a string in the A/UX 3.1 sh.
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
192 --cache-file=FILE cache test results in FILE
193 --help print this message
194 --no-create do not create output files
195 --quiet, --silent do not print \`checking...' messages
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --docdir=DIR doc documentation in DIR [PREFIX/doc]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
240 -host | --host | --hos | --ho)
242 -host=* | --host=* | --hos=* | --ho=*)
245 -includedir | --includedir | --includedi | --included | --include \
246 | --includ | --inclu | --incl | --inc)
247 ac_prev=includedir ;;
248 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249 | --includ=* | --inclu=* | --incl=* | --inc=*)
250 includedir="$ac_optarg" ;;
252 -docdir | --docdir | --infodi | --infod | --doc | --inf)
254 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
255 docdir="$ac_optarg" ;;
257 -libdir | --libdir | --libdi | --libd)
259 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 libdir="$ac_optarg" ;;
262 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263 | --libexe | --libex | --libe)
264 ac_prev=libexecdir ;;
265 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266 | --libexe=* | --libex=* | --libe=*)
267 libexecdir="$ac_optarg" ;;
269 -localstatedir | --localstatedir | --localstatedi | --localstated \
270 | --localstate | --localstat | --localsta | --localst \
271 | --locals | --local | --loca | --loc | --lo)
272 ac_prev=localstatedir ;;
273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276 localstatedir="$ac_optarg" ;;
278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281 mandir="$ac_optarg" ;;
284 # Obsolete; use --without-fp.
287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297 | --oldin | --oldi | --old | --ol | --o)
298 ac_prev=oldincludedir ;;
299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302 oldincludedir="$ac_optarg" ;;
304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 prefix="$ac_optarg" ;;
309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
310 | --program-pre | --program-pr | --program-p)
311 ac_prev=program_prefix ;;
312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314 program_prefix="$ac_optarg" ;;
316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
317 | --program-suf | --program-su | --program-s)
318 ac_prev=program_suffix ;;
319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321 program_suffix="$ac_optarg" ;;
323 -program-transform-name | --program-transform-name \
324 | --program-transform-nam | --program-transform-na \
325 | --program-transform-n | --program-transform- \
326 | --program-transform | --program-transfor \
327 | --program-transfo | --program-transf \
328 | --program-trans | --program-tran \
329 | --progr-tra | --program-tr | --program-t)
330 ac_prev=program_transform_name ;;
331 -program-transform-name=* | --program-transform-name=* \
332 | --program-transform-nam=* | --program-transform-na=* \
333 | --program-transform-n=* | --program-transform-=* \
334 | --program-transform=* | --program-transfor=* \
335 | --program-transfo=* | --program-transf=* \
336 | --program-trans=* | --program-tran=* \
337 | --progr-tra=* | --program-tr=* | --program-t=*)
338 program_transform_name="$ac_optarg" ;;
340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341 | -silent | --silent | --silen | --sile | --sil)
344 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348 sbindir="$ac_optarg" ;;
350 -sharedstatedir | --sharedstatedir | --sharedstatedi \
351 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352 | --sharedst | --shareds | --shared | --share | --shar \
354 ac_prev=sharedstatedir ;;
355 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359 sharedstatedir="$ac_optarg" ;;
361 -site | --site | --sit)
363 -site=* | --site=* | --sit=*)
366 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369 srcdir="$ac_optarg" ;;
371 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372 | --syscon | --sysco | --sysc | --sys | --sy)
373 ac_prev=sysconfdir ;;
374 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376 sysconfdir="$ac_optarg" ;;
378 -target | --target | --targe | --targ | --tar | --ta | --t)
380 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381 target="$ac_optarg" ;;
383 -v | -verbose | --verbose | --verbos | --verbo | --verb)
386 -version | --version | --versio | --versi | --vers)
387 echo "configure generated by autoconf version 2.13"
391 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
401 eval "with_${ac_package}='$ac_optarg'" ;;
403 -without-* | --without-*)
404 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}=no" ;;
413 # Obsolete; use --with-x.
416 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417 | --x-incl | --x-inc | --x-in | --x-i)
418 ac_prev=x_includes ;;
419 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421 x_includes="$ac_optarg" ;;
423 -x-libraries | --x-libraries | --x-librarie | --x-librari \
424 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425 ac_prev=x_libraries ;;
426 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428 x_libraries="$ac_optarg" ;;
430 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435 echo "configure: warning: $ac_option: invalid host type" 1>&2
437 if test "x$nonopt" != xNONE; then
438 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 if test -n "$ac_prev"; then
447 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452 # File descriptor usage:
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
478 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
479 | --no-cr | --no-c) ;;
480 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
481 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
484 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
489 # Only set these to C if already set. These must not be set unconditionally
490 # because not all systems understand e.g. LANG=C (notably SCO).
491 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492 # Non-C LC_CTYPE values break the ctype check.
493 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
494 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
495 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
496 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
499 rm -rf conftest* confdefs.h
500 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 # A filename unique to this package, relative to the directory that
504 # configure is in, which we can look for to find out if srcdir is correct.
505 ac_unique_file=src/backend/access/common/heaptuple.c
507 # Find the source files, if location was not specified.
508 if test -z "$srcdir"; then
509 ac_srcdir_defaulted=yes
510 # Try the directory containing this script, then its parent.
512 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515 if test ! -r $srcdir/$ac_unique_file; then
519 ac_srcdir_defaulted=no
521 if test ! -r $srcdir/$ac_unique_file; then
522 if test "$ac_srcdir_defaulted" = yes; then
523 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
528 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530 # Prefer explicitly selected file to automatically selected ones.
531 if test -z "$CONFIG_SITE"; then
532 if test "x$prefix" != xNONE; then
533 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
535 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538 for ac_site_file in $CONFIG_SITE; do
539 if test -r "$ac_site_file"; then
540 echo "loading site script $ac_site_file"
545 if test -r "$cache_file"; then
546 echo "loading cache $cache_file"
549 echo "creating cache $cache_file"
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp='$CPP $CPPFLAGS'
556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling=$ac_cv_prog_cc_cross
562 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='\c' ac_t=
583 for ac_dir in config $srcdir/config; do
584 if test -f $ac_dir/install-sh; then
586 ac_install_sh="$ac_aux_dir/install-sh -c"
588 elif test -f $ac_dir/install.sh; then
590 ac_install_sh="$ac_aux_dir/install.sh -c"
594 if test -z "$ac_aux_dir"; then
595 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
597 ac_config_guess=$ac_aux_dir/config.guess
598 ac_config_sub=$ac_aux_dir/config.sub
599 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
604 cat >> confdefs.h <<EOF
605 #define PG_VERSION "$VERSION"
610 # Make sure we can run config.sub.
611 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
612 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
615 echo $ac_n "checking host system type""... $ac_c" 1>&6
616 echo "configure:617: checking host system type" >&5
619 case "$host_alias" in
623 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
624 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
626 *) host_alias=$nonopt ;;
630 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
631 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
632 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
633 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634 echo "$ac_t""$host" 1>&6
638 echo $ac_n "checking which template to use""... $ac_c" 1>&6
639 echo "configure:640: checking which template to use" >&5
641 # check if --with-template was given
642 if test x"${with_template+set}" = xset ; then
643 case $with_template in
644 yes|no) { echo "configure: error: You must supply an argument to the --with-template option." 1>&2; exit 1; };;
645 list) echo; ls "$srcdir/src/template"; exit;;
646 *) if test -f "$srcdir/src/template/$with_template" ; then
647 template=$with_template
649 { echo "configure: error: \`$with_template' is not a valid template name. Use \`list' for a list." 1>&2; exit 1; }
653 else # --with-template not given
656 aix*) template=aix ;;
657 bsdi*) template=bsdi ;;
658 cygwin*) template=win ;;
659 dgux*) template=dgux ;;
660 freebsd*) template=freebsd ;;
661 hpux*) template=hpux ;;
662 irix*) template=irix5 ;;
663 linux*) template=linux ;;
664 netbsd*) template=netbsd ;;
665 nextstep*) template=nextstep ;;
666 openbsd*) template=openbsd ;;
667 osf*) template=osf ;;
668 qnx*) template=qnx4 ;;
669 sco*) template=sco ;;
672 sparc) template=solaris_sparc ;;
673 i?86) template=solaris_i386 ;;
675 sunos*) template=sunos4 ;;
678 univel) template=univel ;;
680 sysv4*) template=svr4 ;;
681 sysv5uw*) template=unixware ;;
682 ultrix*) template=ultrix4 ;;
685 if test x"$template" = x"" ; then
686 { echo "configure: error:
687 *******************************************************************
688 PostgreSQL has apparently not been ported to your platform yet.
689 To try a manual configuration, look into the src/template directory
690 for a similar platform and use the \`--with-template=' option.
692 Please also contact <pgsql-ports@postgresql.org> to see about
693 rectifying this. Include the above \`checking host system type...'
695 *******************************************************************
699 fi # --with-template not given
701 echo "$ac_t""$template" 1>&6
713 # Pick right test-and-set (TAS) code. Most platforms have inline
714 # assembler code in their port include file, so we just use a dummy
719 hpux) need_tas=yes; tas_file=hpux.s ;;
720 solaris_sparc) need_tas=yes; tas_file=solaris_sparc.s ;;
721 solaris_i386) need_tas=yes; tas_file=solaris_i386.s ;;
724 if test "$need_tas" = yes ; then
733 ## Command line options
738 # Add non-standard directories to the include path
740 # Check whether --with-includes or --without-includes was given.
741 if test "${with_includes+set}" = set; then
742 withval="$with_includes"
745 yes | no) { echo "configure: error: You must supply an argument to the --with-includes option." 1>&2; exit 1; };;
753 # Add non-standard directories to the library search path
755 # Check whether --with-libraries or --without-libraries was given.
756 if test "${with_libraries+set}" = set; then
757 withval="$with_libraries"
760 yes | no) { echo "configure: error: You must supply an argument to the --with-libraries option." 1>&2; exit 1; };;
762 LIBRARY_DIRS=$withval
767 # Check whether --with-libs or --without-libs was given.
768 if test "${with_libs+set}" = set; then
772 yes | no) { echo "configure: error: You must supply an argument to the --with-libs option." 1>&2; exit 1; };;
774 LIBRARY_DIRS=$withval
781 # Locale (--enable-locale)
783 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
784 echo "configure:785: checking whether to build with locale support" >&5
785 # Check whether --enable-locale or --disable-locale was given.
786 if test "${enable_locale+set}" = set; then
787 enableval="$enable_locale"
788 if test x"$enable_locale" != x"no" ; then
790 cat >> confdefs.h <<\EOF
799 echo "$ac_t""$enable_locale" 1>&6
803 # Cyrillic recode (--enable-recode)
805 echo $ac_n "checking whether to build with Cyrillic recode support""... $ac_c" 1>&6
806 echo "configure:807: checking whether to build with Cyrillic recode support" >&5
807 # Check whether --enable-recode or --disable-recode was given.
808 if test "${enable_recode+set}" = set; then
809 enableval="$enable_recode"
810 if test x"$enable_recode" != x"no" ; then
812 cat >> confdefs.h <<\EOF
821 echo "$ac_t""$enable_recode" 1>&6
828 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
829 echo "configure:830: checking whether to build with multibyte character support" >&5
830 # Check whether --enable-multibyte or --disable-multibyte was given.
831 if test "${enable_multibyte+set}" = set; then
832 enableval="$enable_multibyte"
835 no) enable_multibyte=no;;
836 yes) enable_multibyte=yes; MULTIBYTE=SQL_ASCII;;
837 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
838 enable_multibyte=yes; MULTIBYTE=$enableval;;
839 *) { echo "configure: error: argument to --enable-multibyte must be one of:
840 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
841 UNICODE, MULE_INTERNAL,
842 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
844 Or do not specify an argument to the option to use the default." 1>&2; exit 1; } ;;
854 if test "$enable_multibyte" = yes ; then
855 cat >> confdefs.h <<\EOF
859 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
861 echo "$ac_t""no" 1>&6
866 # Default port number (--with-pgport), default 5432
868 echo $ac_n "checking for default port number""... $ac_c" 1>&6
869 echo "configure:870: checking for default port number" >&5
870 # Check whether --with-pgport or --without-pgport was given.
871 if test "${with_pgport+set}" = set; then
872 withval="$with_pgport"
874 yes|no) { echo "configure: error: You must supply an argument to the --with-pgport option" 1>&2; exit 1; };;
875 *) default_port=$withval;;
882 # Need both of these because backend wants an integer and frontend a string
883 cat >> confdefs.h <<EOF
884 #define DEF_PGPORT ${default_port}
887 cat >> confdefs.h <<EOF
888 #define DEF_PGPORT_STR "${default_port}"
891 echo "$ac_t""$default_port" 1>&6
895 # Maximum number of allowed connections (--with-maxbackends), default 32
897 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
898 echo "configure:899: checking for default soft limit on number of connections" >&5
899 # Check whether --with-maxbackends or --without-maxbackends was given.
900 if test "${with_maxbackends+set}" = set; then
901 withval="$with_maxbackends"
903 yes|no) { echo "configure: error: You must supply an argument to the --with-maxbackends option" 1>&2; exit 1; };;
909 echo "$ac_t""$with_maxbackends" 1>&6
910 cat >> confdefs.h <<EOF
911 #define DEF_MAXBACKENDS $with_maxbackends
920 # For historical reasons you can also use --with-CC to specify the C compiler
921 # to use, although the standard way to do this is to set the CC environment
923 if test "${with_CC+set}" = set; then
925 yes | no) { echo "configure: error: You must supply an argument to the --with-CC option." 1>&2; exit 1; };;
930 # On AIX, default compiler to xlc.
931 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
933 # Extract the first word of "gcc", so it can be a program name with args.
934 set dummy gcc; ac_word=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 if test -n "$CC"; then
941 ac_cv_prog_CC="$CC" # Let the user override the test.
943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
945 for ac_dir in $ac_dummy; do
946 test -z "$ac_dir" && ac_dir=.
947 if test -f $ac_dir/$ac_word; then
956 if test -n "$CC"; then
957 echo "$ac_t""$CC" 1>&6
959 echo "$ac_t""no" 1>&6
962 if test -z "$CC"; then
963 # Extract the first word of "cc", so it can be a program name with args.
964 set dummy cc; ac_word=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 if test -n "$CC"; then
971 ac_cv_prog_CC="$CC" # Let the user override the test.
973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
976 for ac_dir in $ac_dummy; do
977 test -z "$ac_dir" && ac_dir=.
978 if test -f $ac_dir/$ac_word; then
979 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
988 if test $ac_prog_rejected = yes; then
989 # We found a bogon in the path, so make sure we never use it.
990 set dummy $ac_cv_prog_CC
992 if test $# -gt 0; then
993 # We chose a different compiler from the bogus one.
994 # However, it has the same basename, so the bogon will be chosen
995 # first if we set CC to just the basename; use the full file name.
997 set dummy "$ac_dir/$ac_word" "$@"
1005 if test -n "$CC"; then
1006 echo "$ac_t""$CC" 1>&6
1008 echo "$ac_t""no" 1>&6
1011 if test -z "$CC"; then
1012 case "`uname -s`" in
1014 # Extract the first word of "cl", so it can be a program name with args.
1015 set dummy cl; ac_word=$2
1016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1017 echo "configure:1018: checking for $ac_word" >&5
1018 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 if test -n "$CC"; then
1022 ac_cv_prog_CC="$CC" # Let the user override the test.
1024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1026 for ac_dir in $ac_dummy; do
1027 test -z "$ac_dir" && ac_dir=.
1028 if test -f $ac_dir/$ac_word; then
1037 if test -n "$CC"; then
1038 echo "$ac_t""$CC" 1>&6
1040 echo "$ac_t""no" 1>&6
1045 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1048 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1049 echo "configure:1050: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1052 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1053 ac_cpp='$CPP $CPPFLAGS'
1054 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1055 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1056 cross_compiling=$ac_cv_prog_cc_cross
1058 cat > conftest.$ac_ext << EOF
1060 #line 1061 "configure"
1061 #include "confdefs.h"
1065 if { (eval echo configure:1066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1066 ac_cv_prog_cc_works=yes
1067 # If we can't run a trivial program, we are probably using a cross compiler.
1068 if (./conftest; exit) 2>/dev/null; then
1069 ac_cv_prog_cc_cross=no
1071 ac_cv_prog_cc_cross=yes
1074 echo "configure: failed program was:" >&5
1075 cat conftest.$ac_ext >&5
1076 ac_cv_prog_cc_works=no
1080 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1081 ac_cpp='$CPP $CPPFLAGS'
1082 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1083 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1084 cross_compiling=$ac_cv_prog_cc_cross
1086 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1087 if test $ac_cv_prog_cc_works = no; then
1088 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1090 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1091 echo "configure:1092: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1092 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1093 cross_compiling=$ac_cv_prog_cc_cross
1095 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1096 echo "configure:1097: checking whether we are using GNU C" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 cat > conftest.c <<EOF
1105 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1112 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1114 if test $ac_cv_prog_gcc = yes; then
1120 ac_test_CFLAGS="${CFLAGS+set}"
1121 ac_save_CFLAGS="$CFLAGS"
1123 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1124 echo "configure:1125: checking whether ${CC-cc} accepts -g" >&5
1125 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1128 echo 'void f(){}' > conftest.c
1129 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1138 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1139 if test "$ac_test_CFLAGS" = set; then
1140 CFLAGS="$ac_save_CFLAGS"
1141 elif test $ac_cv_prog_cc_g = yes; then
1142 if test "$GCC" = yes; then
1148 if test "$GCC" = yes; then
1156 . "$srcdir/src/template/$template" || exit
1157 echo "using CFLAGS=$CFLAGS"
1158 # Check if the compiler still works with the template settings
1159 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1160 echo "configure:1161: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1164 ac_cpp='$CPP $CPPFLAGS'
1165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1167 cross_compiling=$ac_cv_prog_cc_cross
1169 cat > conftest.$ac_ext << EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1176 if { (eval echo configure:1177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1177 ac_cv_prog_cc_works=yes
1178 # If we can't run a trivial program, we are probably using a cross compiler.
1179 if (./conftest; exit) 2>/dev/null; then
1180 ac_cv_prog_cc_cross=no
1182 ac_cv_prog_cc_cross=yes
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1187 ac_cv_prog_cc_works=no
1191 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1192 ac_cpp='$CPP $CPPFLAGS'
1193 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1194 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1195 cross_compiling=$ac_cv_prog_cc_cross
1197 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1198 if test $ac_cv_prog_cc_works = no; then
1199 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1201 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1203 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1204 cross_compiling=$ac_cv_prog_cc_cross
1206 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1207 echo "configure:1208: checking how to run the C preprocessor" >&5
1208 # On Suns, sometimes $CPP names a directory.
1209 if test -n "$CPP" && test -d "$CPP"; then
1212 if test -z "$CPP"; then
1213 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 # This must be in double quotes, not single quotes, because CPP may get
1217 # substituted into the Makefile and "${CC-cc}" will confuse make.
1219 # On the NeXT, cc -E runs the code through the compiler's parser,
1220 # not just through cpp.
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1228 { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1230 if test -z "$ac_err"; then
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1237 CPP="${CC-cc} -E -traditional-cpp"
1238 cat > conftest.$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1245 { (eval echo configure:1246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1247 if test -z "$ac_err"; then
1251 echo "configure: failed program was:" >&5
1252 cat conftest.$ac_ext >&5
1254 CPP="${CC-cc} -nologo -E"
1255 cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1262 { (eval echo configure:1263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1264 if test -z "$ac_err"; then
1268 echo "configure: failed program was:" >&5
1269 cat conftest.$ac_ext >&5
1278 ac_cv_prog_CPP="$CPP"
1280 CPP="$ac_cv_prog_CPP"
1282 ac_cv_prog_CPP="$CPP"
1284 echo "$ac_t""$CPP" 1>&6
1286 if test $ac_cv_prog_gcc = yes; then
1287 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1288 echo "configure:1289: checking whether ${CC-cc} needs -traditional" >&5
1289 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 ac_pattern="Autoconf.*'x'"
1293 cat > conftest.$ac_ext <<EOF
1294 #line 1295 "configure"
1295 #include "confdefs.h"
1299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1300 egrep "$ac_pattern" >/dev/null 2>&1; then
1302 ac_cv_prog_gcc_traditional=yes
1305 ac_cv_prog_gcc_traditional=no
1310 if test $ac_cv_prog_gcc_traditional = no; then
1311 cat > conftest.$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1318 egrep "$ac_pattern" >/dev/null 2>&1; then
1320 ac_cv_prog_gcc_traditional=yes
1327 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1328 if test $ac_cv_prog_gcc_traditional = yes; then
1329 CC="$CC -traditional"
1340 # Create compiler version string
1341 if test x"$GCC" = x"yes" ; then
1342 cc_string="GCC `${CC} --version`"
1346 cat >> confdefs.h <<EOF
1347 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1353 # Automatic dependency tracking
1355 # Check whether --enable-depend or --disable-depend was given.
1356 if test "${enable_depend+set}" = set; then
1357 enableval="$enable_depend"
1359 if test x"$enableval" = x"yes" ; then
1368 # --enable-debug adds -g to compiler flags
1369 # --disable-debug will forcefully remove it
1370 echo $ac_n "checking setting debug compiler flag""... $ac_c" 1>&6
1371 echo "configure:1372: checking setting debug compiler flag" >&5
1372 # Check whether --enable-debug or --disable-debug was given.
1373 if test "${enable_debug+set}" = set; then
1374 enableval="$enable_debug"
1377 yes) CFLAGS="$CFLAGS -g"
1378 echo "$ac_t""yes" 1>&6
1380 *) CFLAGS=`echo "$CFLAGS" | sed -e 's/ -g/ /g' -e 's/^-g//'`
1381 echo "$ac_t""no" 1>&6
1386 echo "$ac_t""using default" 1>&6
1392 # Include directories
1396 # SRCH_INC comes from the template file
1397 for dir in $with_includes $SRCH_INC; do
1398 if test -d "$dir"; then
1399 INCLUDES="$INCLUDES -I$dir"
1401 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1409 # Library directories
1413 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1414 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1415 if test -d "$dir"; then
1416 PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
1418 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1425 echo $ac_n "checking setting USE_TCL""... $ac_c" 1>&6
1426 echo "configure:1427: checking setting USE_TCL" >&5
1427 # Check whether --with-tcl or --without-tcl was given.
1428 if test "${with_tcl+set}" = set; then
1432 y | ye | yes) USE_TCL=true; USE_TK=true; echo "$ac_t""enabled" 1>&6 ;;
1433 *) USE_TCL=; USE_TK=; echo "$ac_t""disabled" 1>&6 ;;
1437 USE_TCL=; USE_TK=; echo "$ac_t""disabled" 1>&6
1446 # Check whether --with-tclconfig or --without-tclconfig was given.
1447 if test "${with_tclconfig+set}" = set; then
1448 withval="$with_tclconfig"
1451 "" | y | ye | yes | n | no)
1452 { echo "configure: error: *** You must supply an argument to the --with-tclconfig option." 1>&2; exit 1; }
1462 # Check whether --with-tkconfig or --without-tkconfig was given.
1463 if test "${with_tkconfig+set}" = set; then
1464 withval="$with_tkconfig"
1467 "" | y | ye | yes | n | no)
1468 { echo "configure: error: *** You must supply an argument to the --with-tkconfig option." 1>&2; exit 1; }
1478 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1479 echo "configure:1480: checking whether to build Perl modules" >&5
1480 # Check whether --with-perl or --without-perl was given.
1481 if test "${with_perl+set}" = set; then
1482 withval="$with_perl"
1483 if test x"${withval}" = x"yes" ; then
1484 echo "$ac_t""yes" 1>&6
1486 echo "$ac_t""no" 1>&6
1489 echo "$ac_t""no" 1>&6
1495 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1496 echo "configure:1497: checking whether to build Python modules" >&5
1497 # Check whether --with-python or --without-python was given.
1498 if test "${with_python+set}" = set; then
1499 withval="$with_python"
1500 if test x"${withval}" = x"yes" ; then
1501 echo "$ac_t""yes" 1>&6
1502 # Extract the first word of "python", so it can be a program name with args.
1503 set dummy python; ac_word=$2
1504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1505 echo "configure:1506: checking for $ac_word" >&5
1506 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 if test -n "$PYTHON"; then
1510 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1514 for ac_dir in $ac_dummy; do
1515 test -z "$ac_dir" && ac_dir=.
1516 if test -f $ac_dir/$ac_word; then
1517 ac_cv_prog_PYTHON="python"
1524 PYTHON="$ac_cv_prog_PYTHON"
1525 if test -n "$PYTHON"; then
1526 echo "$ac_t""$PYTHON" 1>&6
1528 echo "$ac_t""no" 1>&6
1532 if test "${PYTHON+set}" = set ; then
1533 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
1534 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
1535 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
1536 python_configdir="${python_execprefix}/lib/python${python_version}/config"
1537 python_moduledir="${python_prefix}/lib/python${python_version}"
1538 python_extmakefile="${python_configdir}/Makefile.pre.in"
1540 echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1541 echo "configure:1542: checking for Python extension makefile" >&5
1542 if test -f "${python_extmakefile}" ; then
1543 echo "$ac_t""found" 1>&6
1545 echo "$ac_t""no" 1>&6
1546 { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
1547 but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
1557 { echo "configure: error: Python not found" 1>&2; exit 1; }
1560 echo "$ac_t""no" 1>&6
1563 echo "$ac_t""no" 1>&6
1573 # Check whether --with-krb4 or --without-krb4 was given.
1574 if test "${with_krb4+set}" = set; then
1575 withval="$with_krb4"
1576 if test x"$withval" != x"no"; then
1577 if test x"$withval" != x"yes"; then
1578 krb4_prefix=$withval
1580 krb4_prefix=/usr/athena
1592 if test "$with_krb4" = yes ; then
1593 echo "$ac_t""building with Kerberos 4 support" 1>&6
1594 cat >> confdefs.h <<\EOF
1599 if test -d "$krb4_prefix"; then
1600 if test -d "$krb4_prefix/include"; then
1601 INCLUDES="$INCLUDES -I$krb4_prefix/include"
1603 if test -d "$krb4_prefix/lib"; then
1604 krb_libdir="-L$krb4_prefix/lib"
1605 LIBS="$krb_libdir $LIBS"
1608 KRB_LIBS="$krb_libdir -lkrb -ldes"
1610 krb_srvtab='/etc/srvtab'
1617 # Check whether --with-krb5 or --without-krb5 was given.
1618 if test "${with_krb5+set}" = set; then
1619 withval="$with_krb5"
1620 if test x"$withval" != x"no"; then
1621 if test x"$withval" != x"yes"; then
1622 krb5_prefix=$withval
1624 krb5_prefix=/usr/athena
1636 if test "$with_krb5" = yes ; then
1637 echo "$ac_t""building with Kerberos 5 support" 1>&6
1638 cat >> confdefs.h <<\EOF
1643 if test -d $krb5_prefix; then
1644 if test -d "$krb5_prefix/include"; then
1645 INCLUDES="$INCLUDES -I$krb5_prefix/include"
1647 if test -d "$krb5_prefix/lib"; then
1648 krb_libdir="-L$krb5_prefix/lib"
1649 LIBS="$krb_libdir $LIBS"
1653 KRB_LIBS="$krb_libdir -lkrb5 -lcrypto -lcom_err"
1655 krb_srvtab='FILE:$(sysconfdir)/krb5.keytab'
1659 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
1660 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
1661 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
1670 # Kerberos configuration parameters
1672 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
1673 if test "${with_krb_srvnam+set}" = set; then
1674 withval="$with_krb_srvnam"
1675 if test x"$withval" = x"yes"; then
1676 { echo "configure: error: argument required for --with-krb-srvnam" 1>&2; exit 1; }
1681 krb_srvnam="postgres"
1684 cat >> confdefs.h <<EOF
1685 #define PG_KRB_SRVNAM "$krb_srvnam"
1694 # Check whether --with-openssl or --without-openssl was given.
1695 if test "${with_openssl+set}" = set; then
1696 withval="$with_openssl"
1697 if test x"$withval" != x"no" ; then
1698 if test x"$withval" != x"yes" ; then
1699 openssl_prefix=$withval
1701 openssl_prefix=/usr/local/ssl
1713 if test "$with_openssl" = yes ; then
1714 echo "$ac_t""building with OpenSSL support" 1>&6
1715 cat >> confdefs.h <<\EOF
1720 if test -d "${openssl_prefix}/include" ; then
1721 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
1723 if test -d "${openssl_prefix}/lib" ; then
1724 openssl_libdir="${openssl_prefix}/lib"
1725 LIBS="$LIBS -L${openssl_prefix}/lib"
1730 # OpenSSL and Kerberos 5 both have a `crypto' library, so if you want to
1731 # use both of them you'll have to figure it out yourself.
1732 if test "$with_openssl" = yes && test "$with_krb5" = yes ; then
1733 { echo "configure: error: OpenSSL and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
1738 if test "x${with_odbc+set}" = xset && test "x${enable_odbc+set}" != xset; then
1739 enable_odbc=$with_odbc
1742 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
1743 echo "configure:1744: checking whether to build the ODBC driver" >&5
1744 # Check whether --enable-odbc or --disable-odbc was given.
1745 if test "${enable_odbc+set}" = set; then
1746 enableval="$enable_odbc"
1747 if test x"$enableval" = x"yes" ; then
1748 echo "$ac_t""yes" 1>&6
1750 echo "$ac_t""no" 1>&6
1753 echo "$ac_t""no" 1>&6
1759 if test x"$enable_odbc" = x"yes" ; then
1760 # Check whether --with-odbcinst or --without-odbcinst was given.
1761 if test "${with_odbcinst+set}" = set; then
1762 withval="$with_odbcinst"
1763 if test x"$with_odbcinst" = x"yes" || test x"$with_odbcinst" = x"no" ; then
1764 { echo "configure: error: You must supply an argument to the --with-odbcinst option." 1>&2; exit 1; }
1766 odbcinst_ini_dir=$withval
1768 odbcinst_ini_dir='${sysconfdir}'
1772 odbcinst_ini_dir='${sysconfdir}'
1778 echo $ac_n "checking setting ASSERT CHECKING""... $ac_c" 1>&6
1779 echo "configure:1780: checking setting ASSERT CHECKING" >&5
1780 # Check whether --enable-cassert or --disable-cassert was given.
1781 if test "${enable_cassert+set}" = set; then
1782 enableval="$enable_cassert"
1783 cat >> confdefs.h <<\EOF
1784 #define USE_ASSERT_CHECKING 1
1786 echo "$ac_t""enabled" 1>&6
1788 echo "$ac_t""disabled" 1>&6
1794 # Assume system is ELF if it predefines __ELF__ as 1,
1795 # otherwise believe host_os based default.
1797 freebsd1*|freebsd2*) elf=yes;;
1800 cat > conftest.$ac_ext <<EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1809 egrep "yes" >/dev/null 2>&1; then
1814 if test "X$elf" = "Xyes" ; then
1826 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
1827 echo "configure:1828: checking whether to build C++ modules" >&5
1828 # Check whether --with-CXX or --without-CXX was given.
1829 if test "${with_CXX+set}" = set; then
1831 if test x"$withval" != x"no"; then
1832 if test x"$withval" != x"yes" ; then
1842 echo "$ac_t""$with_CXX" 1>&6
1845 if test $with_CXX = yes; then
1846 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1848 # Extract the first word of "$ac_prog", so it can be a program name with args.
1849 set dummy $ac_prog; ac_word=$2
1850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1851 echo "configure:1852: checking for $ac_word" >&5
1852 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 if test -n "$CXX"; then
1856 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1860 for ac_dir in $ac_dummy; do
1861 test -z "$ac_dir" && ac_dir=.
1862 if test -f $ac_dir/$ac_word; then
1863 ac_cv_prog_CXX="$ac_prog"
1870 CXX="$ac_cv_prog_CXX"
1871 if test -n "$CXX"; then
1872 echo "$ac_t""$CXX" 1>&6
1874 echo "$ac_t""no" 1>&6
1877 test -n "$CXX" && break
1879 test -n "$CXX" || CXX="gcc"
1882 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1883 echo "configure:1884: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1886 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1887 ac_cpp='$CXXCPP $CPPFLAGS'
1888 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1889 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1890 cross_compiling=$ac_cv_prog_cxx_cross
1892 cat > conftest.$ac_ext << EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1897 int main(){return(0);}
1899 if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1900 ac_cv_prog_cxx_works=yes
1901 # If we can't run a trivial program, we are probably using a cross compiler.
1902 if (./conftest; exit) 2>/dev/null; then
1903 ac_cv_prog_cxx_cross=no
1905 ac_cv_prog_cxx_cross=yes
1908 echo "configure: failed program was:" >&5
1909 cat conftest.$ac_ext >&5
1910 ac_cv_prog_cxx_works=no
1914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1915 ac_cpp='$CPP $CPPFLAGS'
1916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1918 cross_compiling=$ac_cv_prog_cc_cross
1920 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1921 if test $ac_cv_prog_cxx_works = no; then
1922 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1924 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1925 echo "configure:1926: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1926 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1927 cross_compiling=$ac_cv_prog_cxx_cross
1929 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether we are using GNU C++" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 cat > conftest.C <<EOF
1939 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1946 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1948 if test $ac_cv_prog_gxx = yes; then
1954 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1955 ac_save_CXXFLAGS="$CXXFLAGS"
1957 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1958 echo "configure:1959: checking whether ${CXX-g++} accepts -g" >&5
1959 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 echo 'void f(){}' > conftest.cc
1963 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1964 ac_cv_prog_cxx_g=yes
1972 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1973 if test "$ac_test_CXXFLAGS" = set; then
1974 CXXFLAGS="$ac_save_CXXFLAGS"
1975 elif test $ac_cv_prog_cxx_g = yes; then
1976 if test "$GXX" = yes; then
1982 if test "$GXX" = yes; then
1989 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1990 echo "configure:1991: checking how to run the C++ preprocessor" >&5
1991 if test -z "$CXXCPP"; then
1992 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1996 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1997 ac_cpp='$CXXCPP $CPPFLAGS'
1998 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1999 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2000 cross_compiling=$ac_cv_prog_cxx_cross
2001 CXXCPP="${CXX-g++} -E"
2002 cat > conftest.$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2008 { (eval echo configure:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2010 if test -z "$ac_err"; then
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2020 ac_cv_prog_CXXCPP="$CXXCPP"
2022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2023 ac_cpp='$CPP $CPPFLAGS'
2024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2026 cross_compiling=$ac_cv_prog_cc_cross
2029 CXXCPP="$ac_cv_prog_CXXCPP"
2030 echo "$ac_t""$CXXCPP" 1>&6
2034 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2035 ac_cpp='$CXXCPP $CPPFLAGS'
2036 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2037 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2038 cross_compiling=$ac_cv_prog_cxx_cross
2040 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2041 echo $ac_n "checking for string""... $ac_c" 1>&6
2042 echo "configure:2043: checking for string" >&5
2043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2052 { (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2054 if test -z "$ac_err"; then
2056 eval "ac_cv_header_$ac_safe=yes"
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2062 eval "ac_cv_header_$ac_safe=no"
2066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2068 cat >> confdefs.h <<\EOF
2069 #define HAVE_CXX_STRING_HEADER 1
2073 echo "$ac_t""no" 1>&6
2077 if test x"$ac_cv_header_string" != xyes ; then
2078 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2079 echo "configure:2080: checking for class string in <string.h>" >&5
2080 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2094 if { (eval echo configure:2095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2096 pgac_cv_class_string_in_string_h=yes
2098 echo "configure: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 pgac_cv_class_string_in_string_h=no
2106 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2108 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2109 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2117 cross_compiling=$ac_cv_prog_cc_cross
2120 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2121 echo "configure:2122: checking for namespace std in C++" >&5
2122 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2128 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2129 ac_cpp='$CXXCPP $CPPFLAGS'
2130 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2131 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2132 cross_compiling=$ac_cv_prog_cxx_cross
2134 cat > conftest.$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2139 #ifdef HAVE_CXX_STRING_HEADER
2142 using namespace std;
2148 if { (eval echo configure:2149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2150 pgac_cv_cxx_namespace_std=yes
2152 echo "configure: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2155 pgac_cv_cxx_namespace_std=no
2159 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2162 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2163 cross_compiling=$ac_cv_prog_cc_cross
2167 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2169 if test $pgac_cv_cxx_namespace_std = yes ; then
2170 cat >> confdefs.h <<\EOF
2171 #define HAVE_NAMESPACE_STD 1
2178 CPPFLAGS="$CPPFLAGS $INCLUDES"
2179 LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
2181 echo "using CPPFLAGS=$CPPFLAGS"
2182 echo "using LDFLAGS=$LDFLAGS"
2185 # Figure out how to invoke "install" and what install options to use.
2187 # Find a good install program. We prefer a C program (faster),
2188 # so one script is as good as another. But avoid the broken or
2189 # incompatible versions:
2190 # SysV /etc/install, /usr/sbin/install
2191 # SunOS /usr/etc/install
2192 # IRIX /sbin/install
2194 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2195 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2196 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2197 # ./install, which can be erroneously created by make from ./install.sh.
2198 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2199 echo "configure:2200: checking for a BSD compatible install" >&5
2200 if test -z "$INSTALL"; then
2201 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2205 for ac_dir in $PATH; do
2206 # Account for people who put trailing slashes in PATH elements.
2208 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2210 # OSF1 and SCO ODT 3.0 have their own names for install.
2211 # Don't use installbsd from OSF since it installs stuff as root
2213 for ac_prog in ginstall scoinst install; do
2214 if test -f $ac_dir/$ac_prog; then
2215 if test $ac_prog = install &&
2216 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2217 # AIX install. It has an incompatible calling convention.
2220 ac_cv_path_install="$ac_dir/$ac_prog -c"
2231 if test "${ac_cv_path_install+set}" = set; then
2232 INSTALL="$ac_cv_path_install"
2234 # As a last resort, use the slow shell script. We don't cache a
2235 # path for INSTALL within a source directory, because that will
2236 # break other packages using the cache if that directory is
2237 # removed, or if the path is relative.
2238 INSTALL="$ac_install_sh"
2241 echo "$ac_t""$INSTALL" 1>&6
2243 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2244 # It thinks the first close brace ends the variable substitution.
2245 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2247 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2249 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2251 # When Autoconf chooses install-sh as install program it tries to generate
2252 # a relative path to it in each makefile where it subsitutes it. This clashes
2253 # with our Makefile.global concept. This workaround helps.
2255 *install-sh*) INSTALL='\${SHELL} \${top_srcdir}/config/install-sh -c';;
2258 # Fix Autoconf's brain-dead defaults for script installs.
2259 INSTALL_SCRIPT="\${INSTALL} -m 755"
2261 # HPUX wants shared libs to be mode 555. Add your platform's special
2262 # needs here if necessary.
2264 hpux*) INSTL_SHLIB_OPTS="-m 555" ;;
2265 *) INSTL_SHLIB_OPTS="-m 644" ;;
2268 INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
2272 mkinstalldirs="\$(SHELL) \$(top_srcdir)/config/mkinstalldirs"
2276 for ac_prog in gawk mawk nawk awk
2278 # Extract the first word of "$ac_prog", so it can be a program name with args.
2279 set dummy $ac_prog; ac_word=$2
2280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2281 echo "configure:2282: checking for $ac_word" >&5
2282 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2285 if test -n "$AWK"; then
2286 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2290 for ac_dir in $ac_dummy; do
2291 test -z "$ac_dir" && ac_dir=.
2292 if test -f $ac_dir/$ac_word; then
2293 ac_cv_prog_AWK="$ac_prog"
2300 AWK="$ac_cv_prog_AWK"
2301 if test -n "$AWK"; then
2302 echo "$ac_t""$AWK" 1>&6
2304 echo "$ac_t""no" 1>&6
2307 test -n "$AWK" && break
2311 # Extract the first word of "flex", so it can be a program name with args.
2312 set dummy flex; ac_word=$2
2313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_word" >&5
2315 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 if test -n "$LEX"; then
2319 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2323 for ac_dir in $ac_dummy; do
2324 test -z "$ac_dir" && ac_dir=.
2325 if test -f $ac_dir/$ac_word; then
2326 ac_cv_prog_LEX="flex"
2331 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2334 LEX="$ac_cv_prog_LEX"
2335 if test -n "$LEX"; then
2336 echo "$ac_t""$LEX" 1>&6
2338 echo "$ac_t""no" 1>&6
2341 if test -z "$LEXLIB"
2347 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2348 echo "configure:2349: checking for yywrap in -l$ac_lib" >&5
2349 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2353 ac_save_LIBS="$LIBS"
2354 LIBS="-l$ac_lib $LIBS"
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2358 /* Override any gcc2 internal prototype to avoid an error. */
2359 /* We use char because int might match the return type of a gcc2
2360 builtin and then its argument prototype would still apply. */
2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2369 eval "ac_cv_lib_$ac_lib_var=yes"
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2374 eval "ac_cv_lib_$ac_lib_var=no"
2377 LIBS="$ac_save_LIBS"
2380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2384 echo "$ac_t""no" 1>&6
2389 if test "$LEX" = "flex"; then
2390 $LEX --version 2> /dev/null | grep -s '2\.5\.3' > /dev/null 2>&1
2391 if test $? -eq 0 ; then
2392 echo "configure: warning:
2394 You have flex version 2.5.3, which is broken. Get version 2.5.4 or
2396 (If you are using the official distribution of PostgreSQL then you
2397 do not need to worry about this because the lexer files are
2398 pre-generated. However, other software using flex is likely to be
2403 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2404 echo "configure:2405: checking whether ln -s works" >&5
2405 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2409 if ln -s X conftestdata 2>/dev/null
2412 ac_cv_prog_LN_S="ln -s"
2417 LN_S="$ac_cv_prog_LN_S"
2418 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2419 echo "$ac_t""yes" 1>&6
2421 echo "$ac_t""no" 1>&6
2424 # Extract the first word of "ranlib", so it can be a program name with args.
2425 set dummy ranlib; ac_word=$2
2426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2427 echo "configure:2428: checking for $ac_word" >&5
2428 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 if test -n "$RANLIB"; then
2432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2436 for ac_dir in $ac_dummy; do
2437 test -z "$ac_dir" && ac_dir=.
2438 if test -f $ac_dir/$ac_word; then
2439 ac_cv_prog_RANLIB="ranlib"
2444 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2447 RANLIB="$ac_cv_prog_RANLIB"
2448 if test -n "$RANLIB"; then
2449 echo "$ac_t""$RANLIB" 1>&6
2451 echo "$ac_t""no" 1>&6
2454 # Extract the first word of "tar", so it can be a program name with args.
2455 set dummy tar; ac_word=$2
2456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2457 echo "configure:2458: checking for $ac_word" >&5
2458 if eval "test \"`echo '$''{'ac_cv_path_tar'+set}'`\" = set"; then
2459 echo $ac_n "(cached) $ac_c" 1>&6
2463 ac_cv_path_tar="$tar" # Let the user override the test with a path.
2466 ac_cv_path_tar="$tar" # Let the user override the test with a dos path.
2469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2471 for ac_dir in $ac_dummy; do
2472 test -z "$ac_dir" && ac_dir=.
2473 if test -f $ac_dir/$ac_word; then
2474 ac_cv_path_tar="$ac_dir/$ac_word"
2482 tar="$ac_cv_path_tar"
2483 if test -n "$tar"; then
2484 echo "$ac_t""$tar" 1>&6
2486 echo "$ac_t""no" 1>&6
2491 # Extract the first word of "$ac_prog", so it can be a program name with args.
2492 set dummy $ac_prog; ac_word=$2
2493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2494 echo "configure:2495: checking for $ac_word" >&5
2495 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 if test -n "$PERL"; then
2499 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2503 for ac_dir in $ac_dummy; do
2504 test -z "$ac_dir" && ac_dir=.
2505 if test -f $ac_dir/$ac_word; then
2506 ac_cv_prog_PERL="$ac_prog"
2513 PERL="$ac_cv_prog_PERL"
2514 if test -n "$PERL"; then
2515 echo "$ac_t""$PERL" 1>&6
2517 echo "$ac_t""no" 1>&6
2520 test -n "$PERL" && break
2523 for ac_prog in 'bison -y' byacc
2525 # Extract the first word of "$ac_prog", so it can be a program name with args.
2526 set dummy $ac_prog; ac_word=$2
2527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2528 echo "configure:2529: checking for $ac_word" >&5
2529 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 if test -n "$YACC"; then
2533 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2537 for ac_dir in $ac_dummy; do
2538 test -z "$ac_dir" && ac_dir=.
2539 if test -f $ac_dir/$ac_word; then
2540 ac_cv_prog_YACC="$ac_prog"
2547 YACC="$ac_cv_prog_YACC"
2548 if test -n "$YACC"; then
2549 echo "$ac_t""$YACC" 1>&6
2551 echo "$ac_t""no" 1>&6
2554 test -n "$YACC" && break
2556 test -n "$YACC" || YACC="yacc"
2565 echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
2566 echo "configure:2567: checking for main in -lsfio" >&5
2567 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
2568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2571 ac_save_LIBS="$LIBS"
2573 cat > conftest.$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2583 eval "ac_cv_lib_$ac_lib_var=yes"
2585 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2588 eval "ac_cv_lib_$ac_lib_var=no"
2591 LIBS="$ac_save_LIBS"
2594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2595 echo "$ac_t""yes" 1>&6
2596 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2597 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2598 cat >> confdefs.h <<EOF
2599 #define $ac_tr_lib 1
2605 echo "$ac_t""no" 1>&6
2608 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
2609 echo "configure:2610: checking for main in -lncurses" >&5
2610 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 ac_save_LIBS="$LIBS"
2615 LIBS="-lncurses $LIBS"
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2624 if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2626 eval "ac_cv_lib_$ac_lib_var=yes"
2628 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2631 eval "ac_cv_lib_$ac_lib_var=no"
2634 LIBS="$ac_save_LIBS"
2637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2639 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2641 cat >> confdefs.h <<EOF
2642 #define $ac_tr_lib 1
2645 LIBS="-lncurses $LIBS"
2648 echo "$ac_t""no" 1>&6
2649 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2650 echo "configure:2651: checking for main in -lcurses" >&5
2651 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 ac_save_LIBS="$LIBS"
2656 LIBS="-lcurses $LIBS"
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2665 if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2667 eval "ac_cv_lib_$ac_lib_var=yes"
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 eval "ac_cv_lib_$ac_lib_var=no"
2675 LIBS="$ac_save_LIBS"
2678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2681 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2682 cat >> confdefs.h <<EOF
2683 #define $ac_tr_lib 1
2686 LIBS="-lcurses $LIBS"
2689 echo "$ac_t""no" 1>&6
2694 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
2695 echo "configure:2696: checking for main in -ltermcap" >&5
2696 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
2697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 ac_save_LIBS="$LIBS"
2701 LIBS="-ltermcap $LIBS"
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2710 if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2712 eval "ac_cv_lib_$ac_lib_var=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2717 eval "ac_cv_lib_$ac_lib_var=no"
2720 LIBS="$ac_save_LIBS"
2723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2724 echo "$ac_t""yes" 1>&6
2725 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2726 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2727 cat >> confdefs.h <<EOF
2728 #define $ac_tr_lib 1
2731 LIBS="-ltermcap $LIBS"
2734 echo "$ac_t""no" 1>&6
2737 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
2738 echo "configure:2739: checking for main in -lreadline" >&5
2739 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
2740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 ac_save_LIBS="$LIBS"
2744 LIBS="-lreadline $LIBS"
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2753 if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2755 eval "ac_cv_lib_$ac_lib_var=yes"
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2760 eval "ac_cv_lib_$ac_lib_var=no"
2763 LIBS="$ac_save_LIBS"
2766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2767 echo "$ac_t""yes" 1>&6
2768 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2769 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2770 cat >> confdefs.h <<EOF
2771 #define $ac_tr_lib 1
2774 LIBS="-lreadline $LIBS"
2777 echo "$ac_t""no" 1>&6
2780 echo $ac_n "checking for using_history in -lreadline""... $ac_c" 1>&6
2781 echo "configure:2782: checking for using_history in -lreadline" >&5
2782 ac_lib_var=`echo readline'_'using_history | sed 'y%./+-%__p_%'`
2783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2786 ac_save_LIBS="$LIBS"
2787 LIBS="-lreadline $LIBS"
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2791 /* Override any gcc2 internal prototype to avoid an error. */
2792 /* We use char because int might match the return type of a gcc2
2793 builtin and then its argument prototype would still apply. */
2794 char using_history();
2800 if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2802 eval "ac_cv_lib_$ac_lib_var=yes"
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2807 eval "ac_cv_lib_$ac_lib_var=no"
2810 LIBS="$ac_save_LIBS"
2813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2814 echo "$ac_t""yes" 1>&6
2815 cat >> confdefs.h <<\EOF
2816 #define HAVE_HISTORY_IN_READLINE 1
2820 echo "$ac_t""no" 1>&6
2821 echo $ac_n "checking for main in -lhistory""... $ac_c" 1>&6
2822 echo "configure:2823: checking for main in -lhistory" >&5
2823 ac_lib_var=`echo history'_'main | sed 'y%./+-%__p_%'`
2824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 ac_save_LIBS="$LIBS"
2828 LIBS="-lhistory $LIBS"
2829 cat > conftest.$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2837 if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2839 eval "ac_cv_lib_$ac_lib_var=yes"
2841 echo "configure: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
2844 eval "ac_cv_lib_$ac_lib_var=no"
2847 LIBS="$ac_save_LIBS"
2850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2851 echo "$ac_t""yes" 1>&6
2852 ac_tr_lib=HAVE_LIB`echo history | sed -e 's/^a-zA-Z0-9_/_/g' \
2853 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2854 cat >> confdefs.h <<EOF
2855 #define $ac_tr_lib 1
2858 LIBS="-lhistory $LIBS"
2861 echo "$ac_t""no" 1>&6
2867 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
2869 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
2870 echo "configure:2871: checking for main in -lbsd" >&5
2871 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
2872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 ac_save_LIBS="$LIBS"
2877 cat > conftest.$ac_ext <<EOF
2878 #line 2879 "configure"
2879 #include "confdefs.h"
2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2887 eval "ac_cv_lib_$ac_lib_var=yes"
2889 echo "configure: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2892 eval "ac_cv_lib_$ac_lib_var=no"
2895 LIBS="$ac_save_LIBS"
2898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2902 cat >> confdefs.h <<EOF
2903 #define $ac_tr_lib 1
2909 echo "$ac_t""no" 1>&6
2913 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
2914 echo "configure:2915: checking for setproctitle in -lutil" >&5
2915 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
2916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2919 ac_save_LIBS="$LIBS"
2921 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2924 /* Override any gcc2 internal prototype to avoid an error. */
2925 /* We use char because int might match the return type of a gcc2
2926 builtin and then its argument prototype would still apply. */
2927 char setproctitle();
2933 if { (eval echo configure:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2935 eval "ac_cv_lib_$ac_lib_var=yes"
2937 echo "configure: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2940 eval "ac_cv_lib_$ac_lib_var=no"
2943 LIBS="$ac_save_LIBS"
2946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2948 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2949 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2950 cat >> confdefs.h <<EOF
2951 #define $ac_tr_lib 1
2957 echo "$ac_t""no" 1>&6
2960 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2961 echo "configure:2962: checking for main in -lm" >&5
2962 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
2963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 ac_save_LIBS="$LIBS"
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2976 if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2978 eval "ac_cv_lib_$ac_lib_var=yes"
2980 echo "configure: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2983 eval "ac_cv_lib_$ac_lib_var=no"
2986 LIBS="$ac_save_LIBS"
2989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2990 echo "$ac_t""yes" 1>&6
2991 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2992 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2993 cat >> confdefs.h <<EOF
2994 #define $ac_tr_lib 1
3000 echo "$ac_t""no" 1>&6
3003 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3004 echo "configure:3005: checking for main in -ldl" >&5
3005 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 ac_save_LIBS="$LIBS"
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3019 if { (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3021 eval "ac_cv_lib_$ac_lib_var=yes"
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3026 eval "ac_cv_lib_$ac_lib_var=no"
3029 LIBS="$ac_save_LIBS"
3032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3033 echo "$ac_t""yes" 1>&6
3034 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3035 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3036 cat >> confdefs.h <<EOF
3037 #define $ac_tr_lib 1
3043 echo "$ac_t""no" 1>&6
3046 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3047 echo "configure:3048: checking for main in -lsocket" >&5
3048 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3052 ac_save_LIBS="$LIBS"
3053 LIBS="-lsocket $LIBS"
3054 cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3062 if { (eval echo configure:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3064 eval "ac_cv_lib_$ac_lib_var=yes"
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3069 eval "ac_cv_lib_$ac_lib_var=no"
3072 LIBS="$ac_save_LIBS"
3075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3076 echo "$ac_t""yes" 1>&6
3077 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3078 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3079 cat >> confdefs.h <<EOF
3080 #define $ac_tr_lib 1
3083 LIBS="-lsocket $LIBS"
3086 echo "$ac_t""no" 1>&6
3089 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3090 echo "configure:3091: checking for main in -lnsl" >&5
3091 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3093 echo $ac_n "(cached) $ac_c" 1>&6
3095 ac_save_LIBS="$LIBS"
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3105 if { (eval echo configure:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3107 eval "ac_cv_lib_$ac_lib_var=yes"
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3112 eval "ac_cv_lib_$ac_lib_var=no"
3115 LIBS="$ac_save_LIBS"
3118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3119 echo "$ac_t""yes" 1>&6
3120 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3121 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3122 cat >> confdefs.h <<EOF
3123 #define $ac_tr_lib 1
3129 echo "$ac_t""no" 1>&6
3132 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3133 echo "configure:3134: checking for main in -lipc" >&5
3134 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3138 ac_save_LIBS="$LIBS"
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3148 if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3150 eval "ac_cv_lib_$ac_lib_var=yes"
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3155 eval "ac_cv_lib_$ac_lib_var=no"
3158 LIBS="$ac_save_LIBS"
3161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3162 echo "$ac_t""yes" 1>&6
3163 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3164 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3165 cat >> confdefs.h <<EOF
3166 #define $ac_tr_lib 1
3172 echo "$ac_t""no" 1>&6
3175 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3176 echo "configure:3177: checking for main in -lIPC" >&5
3177 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 ac_save_LIBS="$LIBS"
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3191 if { (eval echo configure:3192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3193 eval "ac_cv_lib_$ac_lib_var=yes"
3195 echo "configure: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3198 eval "ac_cv_lib_$ac_lib_var=no"
3201 LIBS="$ac_save_LIBS"
3204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3205 echo "$ac_t""yes" 1>&6
3206 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3207 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3208 cat >> confdefs.h <<EOF
3209 #define $ac_tr_lib 1
3215 echo "$ac_t""no" 1>&6
3218 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3219 echo "configure:3220: checking for main in -llc" >&5
3220 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 ac_save_LIBS="$LIBS"
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3234 if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3236 eval "ac_cv_lib_$ac_lib_var=yes"
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3241 eval "ac_cv_lib_$ac_lib_var=no"
3244 LIBS="$ac_save_LIBS"
3247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3248 echo "$ac_t""yes" 1>&6
3249 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3250 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3251 cat >> confdefs.h <<EOF
3252 #define $ac_tr_lib 1
3258 echo "$ac_t""no" 1>&6
3261 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3262 echo "configure:3263: checking for main in -ldld" >&5
3263 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 ac_save_LIBS="$LIBS"
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3277 if { (eval echo configure:3278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3279 eval "ac_cv_lib_$ac_lib_var=yes"
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3284 eval "ac_cv_lib_$ac_lib_var=no"
3287 LIBS="$ac_save_LIBS"
3290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3293 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3294 cat >> confdefs.h <<EOF
3295 #define $ac_tr_lib 1
3301 echo "$ac_t""no" 1>&6
3304 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
3305 echo "configure:3306: checking for main in -lln" >&5
3306 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
3307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3310 ac_save_LIBS="$LIBS"
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3322 eval "ac_cv_lib_$ac_lib_var=yes"
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3327 eval "ac_cv_lib_$ac_lib_var=no"
3330 LIBS="$ac_save_LIBS"
3333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3334 echo "$ac_t""yes" 1>&6
3335 ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3336 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3337 cat >> confdefs.h <<EOF
3338 #define $ac_tr_lib 1
3344 echo "$ac_t""no" 1>&6
3347 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3348 echo "configure:3349: checking for main in -lld" >&5
3349 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 ac_save_LIBS="$LIBS"
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
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 ld | 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 -lcompat""... $ac_c" 1>&6
3391 echo "configure:3392: checking for main in -lcompat" >&5
3392 ac_lib_var=`echo compat'_'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"
3397 LIBS="-lcompat $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 compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3422 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3423 cat >> confdefs.h <<EOF
3424 #define $ac_tr_lib 1
3427 LIBS="-lcompat $LIBS"
3430 echo "$ac_t""no" 1>&6
3433 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3434 echo "configure:3435: checking for main in -lBSD" >&5
3435 ac_lib_var=`echo BSD'_'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 BSD | 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 -lgen""... $ac_c" 1>&6
3477 echo "configure:3478: checking for main in -lgen" >&5
3478 ac_lib_var=`echo gen'_'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"
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 gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3508 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3509 cat >> confdefs.h <<EOF
3510 #define $ac_tr_lib 1
3516 echo "$ac_t""no" 1>&6
3519 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3520 echo "configure:3521: checking for main in -lPW" >&5
3521 ac_lib_var=`echo PW'_'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 PW | 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
3563 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
3564 echo "configure:3565: checking for library containing crypt" >&5
3565 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3568 ac_func_search_save_LIBS="$LIBS"
3569 ac_cv_search_crypt="no"
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 /* Override any gcc2 internal prototype to avoid an error. */
3574 /* We use char because int might match the return type of a gcc2
3575 builtin and then its argument prototype would still apply. */
3582 if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3584 ac_cv_search_crypt="none required"
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3590 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
3591 LIBS="-l$i $ac_func_search_save_LIBS"
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 /* Override any gcc2 internal prototype to avoid an error. */
3596 /* We use char because int might match the return type of a gcc2
3597 builtin and then its argument prototype would still apply. */
3604 if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3606 ac_cv_search_crypt="-l$i"
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3614 LIBS="$ac_func_search_save_LIBS"
3617 echo "$ac_t""$ac_cv_search_crypt" 1>&6
3618 if test "$ac_cv_search_crypt" != "no"; then
3619 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3624 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
3625 echo "configure:3626: checking for inflate in -lz" >&5
3626 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
3627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 ac_save_LIBS="$LIBS"
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 /* Override any gcc2 internal prototype to avoid an error. */
3636 /* We use char because int might match the return type of a gcc2
3637 builtin and then its argument prototype would still apply. */
3644 if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3646 eval "ac_cv_lib_$ac_lib_var=yes"
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3651 eval "ac_cv_lib_$ac_lib_var=no"
3654 LIBS="$ac_save_LIBS"
3657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3658 echo "$ac_t""yes" 1>&6
3659 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3660 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3661 cat >> confdefs.h <<EOF
3662 #define $ac_tr_lib 1
3668 echo "$ac_t""no" 1>&6
3672 if test "$with_krb4" = yes ; then
3673 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
3674 echo "configure:3675: checking for des_encrypt in -ldes" >&5
3675 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
3676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 ac_save_LIBS="$LIBS"
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 /* Override any gcc2 internal prototype to avoid an error. */
3685 /* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3695 eval "ac_cv_lib_$ac_lib_var=yes"
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3700 eval "ac_cv_lib_$ac_lib_var=no"
3703 LIBS="$ac_save_LIBS"
3706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3707 echo "$ac_t""yes" 1>&6
3708 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3709 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3710 cat >> confdefs.h <<EOF
3711 #define $ac_tr_lib 1
3717 echo "$ac_t""no" 1>&6
3718 { echo "configure: error: library \`des' is required for Kerberos 4" 1>&2; exit 1; }
3721 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
3722 echo "configure:3723: checking for krb_sendauth in -lkrb" >&5
3723 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
3724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 ac_save_LIBS="$LIBS"
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 /* Override any gcc2 internal prototype to avoid an error. */
3733 /* We use char because int might match the return type of a gcc2
3734 builtin and then its argument prototype would still apply. */
3735 char krb_sendauth();
3741 if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3743 eval "ac_cv_lib_$ac_lib_var=yes"
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3748 eval "ac_cv_lib_$ac_lib_var=no"
3751 LIBS="$ac_save_LIBS"
3754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3755 echo "$ac_t""yes" 1>&6
3756 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3757 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3758 cat >> confdefs.h <<EOF
3759 #define $ac_tr_lib 1
3765 echo "$ac_t""no" 1>&6
3766 { echo "configure: error: library \`krb' is required for Kerberos 4" 1>&2; exit 1; }
3771 if test "$with_krb5" = yes ; then
3772 echo $ac_n "checking for main in -lcom_err""... $ac_c" 1>&6
3773 echo "configure:3774: checking for main in -lcom_err" >&5
3774 ac_lib_var=`echo com_err'_'main | sed 'y%./+-%__p_%'`
3775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3778 ac_save_LIBS="$LIBS"
3779 LIBS="-lcom_err $LIBS"
3780 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3790 eval "ac_cv_lib_$ac_lib_var=yes"
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3795 eval "ac_cv_lib_$ac_lib_var=no"
3798 LIBS="$ac_save_LIBS"
3801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3802 echo "$ac_t""yes" 1>&6
3803 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3805 cat >> confdefs.h <<EOF
3806 #define $ac_tr_lib 1
3809 LIBS="-lcom_err $LIBS"
3812 echo "$ac_t""no" 1>&6
3813 { echo "configure: error: library \`com_err' is required for Kerberos 5" 1>&2; exit 1; }
3816 echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
3817 echo "configure:3818: checking for main in -lcrypto" >&5
3818 ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
3819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3822 ac_save_LIBS="$LIBS"
3823 LIBS="-lcrypto $LIBS"
3824 cat > conftest.$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3832 if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3834 eval "ac_cv_lib_$ac_lib_var=yes"
3836 echo "configure: failed program was:" >&5
3837 cat conftest.$ac_ext >&5
3839 eval "ac_cv_lib_$ac_lib_var=no"
3842 LIBS="$ac_save_LIBS"
3845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3846 echo "$ac_t""yes" 1>&6
3847 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3848 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3849 cat >> confdefs.h <<EOF
3850 #define $ac_tr_lib 1
3853 LIBS="-lcrypto $LIBS"
3856 echo "$ac_t""no" 1>&6
3857 { echo "configure: error: library \`crypto' is required for Kerberos 5" 1>&2; exit 1; }
3860 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
3861 echo "configure:3862: checking for main in -lkrb5" >&5
3862 ac_lib_var=`echo krb5'_'main | sed 'y%./+-%__p_%'`
3863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 ac_save_LIBS="$LIBS"
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3878 eval "ac_cv_lib_$ac_lib_var=yes"
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3883 eval "ac_cv_lib_$ac_lib_var=no"
3886 LIBS="$ac_save_LIBS"
3889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3891 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3892 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3893 cat >> confdefs.h <<EOF
3894 #define $ac_tr_lib 1
3900 echo "$ac_t""no" 1>&6
3901 { echo "configure: error: library \`krb5' is required for Kerberos 5" 1>&2; exit 1; }
3906 if test "$with_openssl" = yes ; then
3907 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
3908 echo "configure:3909: checking for CRYPTO_new_ex_data in -lcrypto" >&5
3909 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
3910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3913 ac_save_LIBS="$LIBS"
3914 LIBS="-lcrypto $LIBS"
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 /* Override any gcc2 internal prototype to avoid an error. */
3919 /* We use char because int might match the return type of a gcc2
3920 builtin and then its argument prototype would still apply. */
3921 char CRYPTO_new_ex_data();
3924 CRYPTO_new_ex_data()
3927 if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3929 eval "ac_cv_lib_$ac_lib_var=yes"
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3934 eval "ac_cv_lib_$ac_lib_var=no"
3937 LIBS="$ac_save_LIBS"
3940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3941 echo "$ac_t""yes" 1>&6
3942 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3943 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3944 cat >> confdefs.h <<EOF
3945 #define $ac_tr_lib 1
3948 LIBS="-lcrypto $LIBS"
3951 echo "$ac_t""no" 1>&6
3952 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
3955 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
3956 echo "configure:3957: checking for SSL_library_init in -lssl" >&5
3957 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
3958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3961 ac_save_LIBS="$LIBS"
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3966 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3969 char SSL_library_init();
3975 if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3977 eval "ac_cv_lib_$ac_lib_var=yes"
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3982 eval "ac_cv_lib_$ac_lib_var=no"
3985 LIBS="$ac_save_LIBS"
3988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3991 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3992 cat >> confdefs.h <<EOF
3993 #define $ac_tr_lib 1
3999 echo "$ac_t""no" 1>&6
4000 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4009 for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/pstat.h sys/select.h sys/socket.h sys/types.h termios.h
4011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4013 echo "configure:4014: checking for $ac_hdr" >&5
4014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4017 cat > conftest.$ac_ext <<EOF
4018 #line 4019 "configure"
4019 #include "confdefs.h"
4022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4023 { (eval echo configure:4024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4025 if test -z "$ac_err"; then
4027 eval "ac_cv_header_$ac_safe=yes"
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4033 eval "ac_cv_header_$ac_safe=no"
4037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4038 echo "$ac_t""yes" 1>&6
4039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4040 cat >> confdefs.h <<EOF
4041 #define $ac_tr_hdr 1
4045 echo "$ac_t""no" 1>&6
4050 for ac_hdr in readline/readline.h readline.h
4052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4054 echo "configure:4055: checking for $ac_hdr" >&5
4055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4058 cat > conftest.$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4064 { (eval echo configure:4065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4066 if test -z "$ac_err"; then
4068 eval "ac_cv_header_$ac_safe=yes"
4071 echo "configure: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4074 eval "ac_cv_header_$ac_safe=no"
4078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4079 echo "$ac_t""yes" 1>&6
4080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4081 cat >> confdefs.h <<EOF
4082 #define $ac_tr_hdr 1
4086 echo "$ac_t""no" 1>&6
4090 for ac_hdr in readline/history.h history.h
4092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4094 echo "configure:4095: checking for $ac_hdr" >&5
4095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 cat > conftest.$ac_ext <<EOF
4099 #line 4100 "configure"
4100 #include "confdefs.h"
4103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4104 { (eval echo configure:4105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4106 if test -z "$ac_err"; then
4108 eval "ac_cv_header_$ac_safe=yes"
4111 echo "configure: failed program was:" >&5
4112 cat conftest.$ac_ext >&5
4114 eval "ac_cv_header_$ac_safe=no"
4118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4121 cat >> confdefs.h <<EOF
4122 #define $ac_tr_hdr 1
4126 echo "$ac_t""no" 1>&6
4131 if test "$with_krb4" = yes ; then
4132 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4133 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4134 echo "configure:4135: checking for krb.h" >&5
4135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4138 cat > conftest.$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4144 { (eval echo configure:4145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4146 if test -z "$ac_err"; then
4148 eval "ac_cv_header_$ac_safe=yes"
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 eval "ac_cv_header_$ac_safe=no"
4158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4159 echo "$ac_t""yes" 1>&6
4162 echo "$ac_t""no" 1>&6
4163 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4168 if test "$with_krb5" = yes ; then
4169 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4170 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4171 echo "configure:4172: checking for krb5.h" >&5
4172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4175 cat > conftest.$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4181 { (eval echo configure:4182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4183 if test -z "$ac_err"; then
4185 eval "ac_cv_header_$ac_safe=yes"
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 eval "ac_cv_header_$ac_safe=no"
4195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4199 echo "$ac_t""no" 1>&6
4200 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4203 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4204 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4205 echo "configure:4206: checking for com_err.h" >&5
4206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4212 #include <com_err.h>
4214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4215 { (eval echo configure:4216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4217 if test -z "$ac_err"; then
4219 eval "ac_cv_header_$ac_safe=yes"
4222 echo "configure: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4225 eval "ac_cv_header_$ac_safe=no"
4229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4230 echo "$ac_t""yes" 1>&6
4233 echo "$ac_t""no" 1>&6
4234 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4239 if test "$with_openssl" = yes ; then
4240 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4241 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4242 echo "configure:4243: checking for openssl/ssl.h" >&5
4243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4246 cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4249 #include <openssl/ssl.h>
4251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4252 { (eval echo configure:4253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4254 if test -z "$ac_err"; then
4256 eval "ac_cv_header_$ac_safe=yes"
4259 echo "configure: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4262 eval "ac_cv_header_$ac_safe=no"
4266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4267 echo "$ac_t""yes" 1>&6
4270 echo "$ac_t""no" 1>&6
4271 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4274 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4275 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4276 echo "configure:4277: checking for openssl/err.h" >&5
4277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 #include <openssl/err.h>
4285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4286 { (eval echo configure:4287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4288 if test -z "$ac_err"; then
4290 eval "ac_cv_header_$ac_safe=yes"
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4296 eval "ac_cv_header_$ac_safe=no"
4300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4301 echo "$ac_t""yes" 1>&6
4304 echo "$ac_t""no" 1>&6
4305 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
4312 ## Types, structures, compiler characteristics
4314 echo $ac_n "checking for working const""... $ac_c" 1>&6
4315 echo "configure:4316: checking for working const" >&5
4316 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4325 /* Ultrix mips cc rejects this. */
4326 typedef int charset[2]; const charset x;
4327 /* SunOS 4.1.1 cc rejects this. */
4328 char const *const *ccp;
4330 /* NEC SVR4.0.2 mips cc rejects this. */
4331 struct point {int x, y;};
4332 static struct point const zero = {0,0};
4333 /* AIX XL C 1.02.0.0 rejects this.
4334 It does not let you subtract one const X* pointer from another in an arm
4335 of an if-expression whose if-part is not a constant expression */
4336 const char *g = "string";
4337 ccp = &g + (g ? g-g : 0);
4338 /* HPUX 7.0 cc rejects these. */
4341 ccp = (char const *const *) p;
4342 { /* SCO 3.2v4 cc rejects this. */
4344 char const *s = 0 ? (char *) 0 : (char const *) 0;
4348 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4350 const int *foo = &x[0];
4353 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4354 typedef const int *iptr;
4358 { /* AIX XL C 1.02.0.0 rejects this saying
4359 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4360 struct s { int j; const int *ap[3]; };
4361 struct s *b; b->j = 5;
4363 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4369 if { (eval echo configure:4370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4381 echo "$ac_t""$ac_cv_c_const" 1>&6
4382 if test $ac_cv_c_const = no; then
4383 cat >> confdefs.h <<\EOF
4389 echo $ac_n "checking for inline""... $ac_c" 1>&6
4390 echo "configure:4391: checking for inline" >&5
4391 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4395 for ac_kw in inline __inline__ __inline; do
4396 cat > conftest.$ac_ext <<EOF
4397 #line 4398 "configure"
4398 #include "confdefs.h"
4404 if { (eval echo configure:4405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4406 ac_cv_c_inline=$ac_kw; break
4408 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4416 echo "$ac_t""$ac_cv_c_inline" 1>&6
4417 case "$ac_cv_c_inline" in
4419 no) cat >> confdefs.h <<\EOF
4423 *) cat >> confdefs.h <<EOF
4424 #define inline $ac_cv_c_inline
4431 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
4432 echo "configure:4433: checking for preprocessor stringizing operator" >&5
4433 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4442 char *s = x(teststring);
4445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4446 egrep "#teststring" >/dev/null 2>&1; then
4448 ac_cv_c_stringize=no
4451 ac_cv_c_stringize=yes
4457 if test "${ac_cv_c_stringize}" = yes
4459 cat >> confdefs.h <<\EOF
4460 #define HAVE_STRINGIZE 1
4464 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
4466 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4467 echo "configure:4468: checking whether struct tm is in sys/time.h or time.h" >&5
4468 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4469 echo $ac_n "(cached) $ac_c" 1>&6
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4474 #include <sys/types.h>
4477 struct tm *tp; tp->tm_sec;
4480 if { (eval echo configure:4481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4482 ac_cv_struct_tm=time.h
4484 echo "configure: failed program was:" >&5
4485 cat conftest.$ac_ext >&5
4487 ac_cv_struct_tm=sys/time.h
4492 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4493 if test $ac_cv_struct_tm = sys/time.h; then
4494 cat >> confdefs.h <<\EOF
4495 #define TM_IN_SYS_TIME 1
4500 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4501 echo "configure:4502: checking for tm_zone in struct tm" >&5
4502 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4503 echo $ac_n "(cached) $ac_c" 1>&6
4505 cat > conftest.$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4508 #include <sys/types.h>
4509 #include <$ac_cv_struct_tm>
4511 struct tm tm; tm.tm_zone;
4514 if { (eval echo configure:4515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4516 ac_cv_struct_tm_zone=yes
4518 echo "configure: failed program was:" >&5
4519 cat conftest.$ac_ext >&5
4521 ac_cv_struct_tm_zone=no
4526 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4527 if test "$ac_cv_struct_tm_zone" = yes; then
4528 cat >> confdefs.h <<\EOF
4529 #define HAVE_TM_ZONE 1
4533 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4534 echo "configure:4535: checking for tzname" >&5
4535 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4542 #ifndef tzname /* For SGI. */
4543 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 ac_cv_var_tzname=yes
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4561 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4562 if test $ac_cv_var_tzname = yes; then
4563 cat >> confdefs.h <<\EOF
4564 #define HAVE_TZNAME 1
4570 echo $ac_n "checking for union semun""... $ac_c" 1>&6
4571 echo "configure:4572: checking for union semun" >&5
4572 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4575 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4578 #include <sys/types.h>
4579 #include <sys/ipc.h>
4580 #include <sys/sem.h>
4585 if { (eval echo configure:4586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4587 pgac_cv_union_semun=yes
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4592 pgac_cv_union_semun=no
4597 echo "$ac_t""$pgac_cv_union_semun" 1>&6
4598 if test x"$pgac_cv_union_semun" = xyes ; then
4599 cat >> confdefs.h <<\EOF
4600 #define HAVE_UNION_SEMUN
4607 ## Functions, global variables
4609 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
4610 echo "configure:4611: checking for int timezone" >&5
4611 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4614 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4619 int res = timezone / 60;
4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4624 pgac_cv_var_int_timezone=yes
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 pgac_cv_var_int_timezone=no
4634 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
4635 if test x"$pgac_cv_var_int_timezone" = xyes ; then
4636 cat >> confdefs.h <<\EOF
4637 #define HAVE_INT_TIMEZONE
4641 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
4642 echo "configure:4643: checking types of arguments for accept()" >&5
4643 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
4644 echo $ac_n "(cached) $ac_c" 1>&6
4646 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4649 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
4653 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
4654 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int'; do
4655 cat > conftest.$ac_ext <<EOF
4656 #line 4657 "configure"
4657 #include "confdefs.h"
4658 #ifdef HAVE_SYS_TYPES_H
4659 #include <sys/types.h>
4661 #ifdef HAVE_SYS_SOCKET_H
4662 #include <sys/socket.h>
4664 extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
4669 if { (eval echo configure:4670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4671 ac_not_found=no; break 3
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4682 if test "$ac_not_found" = yes; then
4683 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
4691 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
4692 cat >> confdefs.h <<EOF
4693 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
4696 cat >> confdefs.h <<EOF
4697 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
4700 cat >> confdefs.h <<EOF
4701 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
4705 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
4706 echo "configure:4707: checking whether gettimeofday takes only one argument" >&5
4707 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4710 cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713 #include <sys/time.h>
4716 struct timezone *tzp;
4717 gettimeofday(tp,tzp);
4720 if { (eval echo configure:4721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4722 pgac_cv_func_gettimeofday_1arg=no
4724 echo "configure: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4727 pgac_cv_func_gettimeofday_1arg=yes
4732 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
4733 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
4734 cat >> confdefs.h <<\EOF
4735 #define GETTIMEOFDAY_1ARG
4740 echo $ac_n "checking for fcntl(F_SETLK)""... $ac_c" 1>&6
4741 echo "configure:4742: checking for fcntl(F_SETLK)" >&5
4743 linux*) echo "$ac_t""broken on Linux" 1>&6 ;;
4745 cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4753 lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
4754 lck.l_type = F_WRLCK;
4755 fcntl(0, F_SETLK, &lck);
4758 if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4760 cat >> confdefs.h <<\EOF
4761 #define HAVE_FCNTL_SETLK 1
4763 echo "$ac_t""yes" 1>&6
4765 echo "configure: failed program was:" >&5
4766 cat conftest.$ac_ext >&5
4768 echo "$ac_t""no" 1>&6
4774 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid
4776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4777 echo "configure:4778: checking for $ac_func" >&5
4778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4779 echo $ac_n "(cached) $ac_c" 1>&6
4781 cat > conftest.$ac_ext <<EOF
4782 #line 4783 "configure"
4783 #include "confdefs.h"
4784 /* System header to define __stub macros and hopefully few prototypes,
4785 which can conflict with char $ac_func(); below. */
4787 /* Override any gcc2 internal prototype to avoid an error. */
4788 /* We use char because int might match the return type of a gcc2
4789 builtin and then its argument prototype would still apply. */
4794 /* The GNU C library defines this for functions which it implements
4795 to always fail with ENOSYS. Some functions are actually named
4796 something starting with __ and the normal name is an alias. */
4797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4807 eval "ac_cv_func_$ac_func=yes"
4809 echo "configure: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4812 eval "ac_cv_func_$ac_func=no"
4817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4818 echo "$ac_t""yes" 1>&6
4819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4820 cat >> confdefs.h <<EOF
4821 #define $ac_tr_func 1
4825 echo "$ac_t""no" 1>&6
4830 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
4831 echo "configure:4832: checking for PS_STRINGS" >&5
4832 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 #include <machine/vmparam.h>
4839 #include <sys/exec.h>
4842 PS_STRINGS->ps_nargvstr = 1;
4843 PS_STRINGS->ps_argvstr = "foo";
4846 if { (eval echo configure:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4848 pgac_cv_var_PS_STRINGS=yes
4850 echo "configure: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4853 pgac_cv_var_PS_STRINGS=no
4858 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
4859 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
4860 cat >> confdefs.h <<\EOF
4861 #define HAVE_PS_STRINGS
4867 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
4868 echo "configure:4869: checking for snprintf" >&5
4869 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4875 /* System header to define __stub macros and hopefully few prototypes,
4876 which can conflict with char snprintf(); below. */
4878 /* Override any gcc2 internal prototype to avoid an error. */
4879 /* We use char because int might match the return type of a gcc2
4880 builtin and then its argument prototype would still apply. */
4885 /* The GNU C library defines this for functions which it implements
4886 to always fail with ENOSYS. Some functions are actually named
4887 something starting with __ and the normal name is an alias. */
4888 #if defined (__stub_snprintf) || defined (__stub___snprintf)
4896 if { (eval echo configure:4897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4898 eval "ac_cv_func_snprintf=yes"
4900 echo "configure: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4903 eval "ac_cv_func_snprintf=no"
4908 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
4909 echo "$ac_t""yes" 1>&6
4910 cat >> confdefs.h <<\EOF
4911 #define HAVE_SNPRINTF 1
4915 echo "$ac_t""no" 1>&6
4916 SNPRINTF='snprintf.o'
4919 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
4920 echo "configure:4921: checking for vsnprintf" >&5
4921 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4924 cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4927 /* System header to define __stub macros and hopefully few prototypes,
4928 which can conflict with char vsnprintf(); below. */
4930 /* Override any gcc2 internal prototype to avoid an error. */
4931 /* We use char because int might match the return type of a gcc2
4932 builtin and then its argument prototype would still apply. */
4937 /* The GNU C library defines this for functions which it implements
4938 to always fail with ENOSYS. Some functions are actually named
4939 something starting with __ and the normal name is an alias. */
4940 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
4948 if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4950 eval "ac_cv_func_vsnprintf=yes"
4952 echo "configure: failed program was:" >&5
4953 cat conftest.$ac_ext >&5
4955 eval "ac_cv_func_vsnprintf=no"
4960 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 cat >> confdefs.h <<\EOF
4963 #define HAVE_VSNPRINTF 1
4967 echo "$ac_t""no" 1>&6
4968 SNPRINTF='snprintf.o'
4972 cat > conftest.$ac_ext <<EOF
4973 #line 4974 "configure"
4974 #include "confdefs.h"
4977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4978 egrep "snprintf" >/dev/null 2>&1; then
4980 cat >> confdefs.h <<\EOF
4981 #define HAVE_SNPRINTF_DECL 1
4987 cat > conftest.$ac_ext <<EOF
4988 #line 4989 "configure"
4989 #include "confdefs.h"
4992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4993 egrep "vsnprintf" >/dev/null 2>&1; then
4995 cat >> confdefs.h <<\EOF
4996 #define HAVE_VSNPRINTF_DECL 1
5003 # do this one the hard way in case isinf() is a macro
5004 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5005 echo "configure:5006: checking for isinf" >&5
5006 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5009 cat > conftest.$ac_ext <<EOF
5010 #line 5011 "configure"
5011 #include "confdefs.h"
5015 double x = 0.0; int res = isinf(x);
5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5020 ac_cv_func_isinf=yes
5022 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5030 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5032 if test $ac_cv_func_isinf = yes ; then
5033 cat >> confdefs.h <<\EOF
5034 #define HAVE_ISINF 1
5040 # Look for a way to implement a substitute for isinf()
5041 for ac_func in fpclass fp_class fp_class_d class
5043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5044 echo "configure:5045: checking for $ac_func" >&5
5045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5051 /* System header to define __stub macros and hopefully few prototypes,
5052 which can conflict with char $ac_func(); below. */
5054 /* Override any gcc2 internal prototype to avoid an error. */
5055 /* We use char because int might match the return type of a gcc2
5056 builtin and then its argument prototype would still apply. */
5061 /* The GNU C library defines this for functions which it implements
5062 to always fail with ENOSYS. Some functions are actually named
5063 something starting with __ and the normal name is an alias. */
5064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5074 eval "ac_cv_func_$ac_func=yes"
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5079 eval "ac_cv_func_$ac_func=no"
5084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5085 echo "$ac_t""yes" 1>&6
5086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5087 cat >> confdefs.h <<EOF
5088 #define $ac_tr_func 1
5092 echo "$ac_t""no" 1>&6
5099 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5100 echo "configure:5101: checking for getrusage" >&5
5101 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5102 echo $ac_n "(cached) $ac_c" 1>&6
5104 cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5107 /* System header to define __stub macros and hopefully few prototypes,
5108 which can conflict with char getrusage(); below. */
5110 /* Override any gcc2 internal prototype to avoid an error. */
5111 /* We use char because int might match the return type of a gcc2
5112 builtin and then its argument prototype would still apply. */
5117 /* The GNU C library defines this for functions which it implements
5118 to always fail with ENOSYS. Some functions are actually named
5119 something starting with __ and the normal name is an alias. */
5120 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5128 if { (eval echo configure:5129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5130 eval "ac_cv_func_getrusage=yes"
5132 echo "configure: failed program was:" >&5
5133 cat conftest.$ac_ext >&5
5135 eval "ac_cv_func_getrusage=no"
5140 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5141 echo "$ac_t""yes" 1>&6
5142 cat >> confdefs.h <<\EOF
5143 #define HAVE_GETRUSAGE 1
5147 echo "$ac_t""no" 1>&6
5148 GETRUSAGE='getrusage.o'
5152 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5153 echo "configure:5154: checking for srandom" >&5
5154 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5157 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5160 /* System header to define __stub macros and hopefully few prototypes,
5161 which can conflict with char srandom(); below. */
5163 /* Override any gcc2 internal prototype to avoid an error. */
5164 /* We use char because int might match the return type of a gcc2
5165 builtin and then its argument prototype would still apply. */
5170 /* The GNU C library defines this for functions which it implements
5171 to always fail with ENOSYS. Some functions are actually named
5172 something starting with __ and the normal name is an alias. */
5173 #if defined (__stub_srandom) || defined (__stub___srandom)
5181 if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5183 eval "ac_cv_func_srandom=yes"
5185 echo "configure: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5188 eval "ac_cv_func_srandom=no"
5193 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5194 echo "$ac_t""yes" 1>&6
5195 cat >> confdefs.h <<\EOF
5196 #define HAVE_SRANDOM 1
5200 echo "$ac_t""no" 1>&6
5205 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5206 echo "configure:5207: checking for gethostname" >&5
5207 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5208 echo $ac_n "(cached) $ac_c" 1>&6
5210 cat > conftest.$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5213 /* System header to define __stub macros and hopefully few prototypes,
5214 which can conflict with char gethostname(); below. */
5216 /* Override any gcc2 internal prototype to avoid an error. */
5217 /* We use char because int might match the return type of a gcc2
5218 builtin and then its argument prototype would still apply. */
5223 /* The GNU C library defines this for functions which it implements
5224 to always fail with ENOSYS. Some functions are actually named
5225 something starting with __ and the normal name is an alias. */
5226 #if defined (__stub_gethostname) || defined (__stub___gethostname)
5234 if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5236 eval "ac_cv_func_gethostname=yes"
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5241 eval "ac_cv_func_gethostname=no"
5246 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
5247 echo "$ac_t""yes" 1>&6
5248 cat >> confdefs.h <<\EOF
5249 #define HAVE_GETHOSTNAME 1
5253 echo "$ac_t""no" 1>&6
5254 GETHOSTNAME='gethostname.o'
5258 echo $ac_n "checking for random""... $ac_c" 1>&6
5259 echo "configure:5260: checking for random" >&5
5260 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5263 cat > conftest.$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5266 /* System header to define __stub macros and hopefully few prototypes,
5267 which can conflict with char random(); below. */
5269 /* Override any gcc2 internal prototype to avoid an error. */
5270 /* We use char because int might match the return type of a gcc2
5271 builtin and then its argument prototype would still apply. */
5276 /* The GNU C library defines this for functions which it implements
5277 to always fail with ENOSYS. Some functions are actually named
5278 something starting with __ and the normal name is an alias. */
5279 #if defined (__stub_random) || defined (__stub___random)
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5289 eval "ac_cv_func_random=yes"
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 eval "ac_cv_func_random=no"
5299 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
5300 echo "$ac_t""yes" 1>&6
5301 cat >> confdefs.h <<\EOF
5302 #define HAVE_RANDOM 1
5306 echo "$ac_t""no" 1>&6
5307 MISSING_RANDOM='random.o'
5311 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
5312 echo "configure:5313: checking for inet_aton" >&5
5313 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
5314 echo $ac_n "(cached) $ac_c" 1>&6
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319 /* System header to define __stub macros and hopefully few prototypes,
5320 which can conflict with char inet_aton(); below. */
5322 /* Override any gcc2 internal prototype to avoid an error. */
5323 /* We use char because int might match the return type of a gcc2
5324 builtin and then its argument prototype would still apply. */
5329 /* The GNU C library defines this for functions which it implements
5330 to always fail with ENOSYS. Some functions are actually named
5331 something starting with __ and the normal name is an alias. */
5332 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
5340 if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5342 eval "ac_cv_func_inet_aton=yes"
5344 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5
5347 eval "ac_cv_func_inet_aton=no"
5352 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
5353 echo "$ac_t""yes" 1>&6
5354 cat >> confdefs.h <<\EOF
5355 #define HAVE_INET_ATON 1
5359 echo "$ac_t""no" 1>&6
5360 INET_ATON='inet_aton.o'
5364 echo $ac_n "checking for strerror""... $ac_c" 1>&6
5365 echo "configure:5366: checking for strerror" >&5
5366 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 cat > conftest.$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5372 /* System header to define __stub macros and hopefully few prototypes,
5373 which can conflict with char strerror(); below. */
5375 /* Override any gcc2 internal prototype to avoid an error. */
5376 /* We use char because int might match the return type of a gcc2
5377 builtin and then its argument prototype would still apply. */
5382 /* The GNU C library defines this for functions which it implements
5383 to always fail with ENOSYS. Some functions are actually named
5384 something starting with __ and the normal name is an alias. */
5385 #if defined (__stub_strerror) || defined (__stub___strerror)
5393 if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5395 eval "ac_cv_func_strerror=yes"
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5400 eval "ac_cv_func_strerror=no"
5405 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
5406 echo "$ac_t""yes" 1>&6
5407 cat >> confdefs.h <<\EOF
5408 #define HAVE_STRERROR 1
5412 echo "$ac_t""no" 1>&6
5413 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
5418 echo $ac_n "checking for strdup""... $ac_c" 1>&6
5419 echo "configure:5420: checking for strdup" >&5
5420 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5423 cat > conftest.$ac_ext <<EOF
5424 #line 5425 "configure"
5425 #include "confdefs.h"
5426 /* System header to define __stub macros and hopefully few prototypes,
5427 which can conflict with char strdup(); below. */
5429 /* Override any gcc2 internal prototype to avoid an error. */
5430 /* We use char because int might match the return type of a gcc2
5431 builtin and then its argument prototype would still apply. */
5436 /* The GNU C library defines this for functions which it implements
5437 to always fail with ENOSYS. Some functions are actually named
5438 something starting with __ and the normal name is an alias. */
5439 #if defined (__stub_strdup) || defined (__stub___strdup)
5447 if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5449 eval "ac_cv_func_strdup=yes"
5451 echo "configure: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5454 eval "ac_cv_func_strdup=no"
5459 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
5460 echo "$ac_t""yes" 1>&6
5461 cat >> confdefs.h <<\EOF
5462 #define HAVE_STRDUP 1
5466 echo "$ac_t""no" 1>&6
5467 STRDUP='../../utils/strdup.o'
5471 echo $ac_n "checking for strtol""... $ac_c" 1>&6
5472 echo "configure:5473: checking for strtol" >&5
5473 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
5474 echo $ac_n "(cached) $ac_c" 1>&6
5476 cat > conftest.$ac_ext <<EOF
5477 #line 5478 "configure"
5478 #include "confdefs.h"
5479 /* System header to define __stub macros and hopefully few prototypes,
5480 which can conflict with char strtol(); below. */
5482 /* Override any gcc2 internal prototype to avoid an error. */
5483 /* We use char because int might match the return type of a gcc2
5484 builtin and then its argument prototype would still apply. */
5489 /* The GNU C library defines this for functions which it implements
5490 to always fail with ENOSYS. Some functions are actually named
5491 something starting with __ and the normal name is an alias. */
5492 #if defined (__stub_strtol) || defined (__stub___strtol)
5500 if { (eval echo configure:5501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5502 eval "ac_cv_func_strtol=yes"
5504 echo "configure: failed program was:" >&5
5505 cat conftest.$ac_ext >&5
5507 eval "ac_cv_func_strtol=no"
5512 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
5513 echo "$ac_t""yes" 1>&6
5514 cat >> confdefs.h <<\EOF
5515 #define HAVE_STRTOL 1
5519 echo "$ac_t""no" 1>&6
5524 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
5525 echo "configure:5526: checking for strtoul" >&5
5526 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
5527 echo $ac_n "(cached) $ac_c" 1>&6
5529 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5532 /* System header to define __stub macros and hopefully few prototypes,
5533 which can conflict with char strtoul(); below. */
5535 /* Override any gcc2 internal prototype to avoid an error. */
5536 /* We use char because int might match the return type of a gcc2
5537 builtin and then its argument prototype would still apply. */
5542 /* The GNU C library defines this for functions which it implements
5543 to always fail with ENOSYS. Some functions are actually named
5544 something starting with __ and the normal name is an alias. */
5545 #if defined (__stub_strtoul) || defined (__stub___strtoul)
5553 if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5555 eval "ac_cv_func_strtoul=yes"
5557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5560 eval "ac_cv_func_strtoul=no"
5565 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
5566 echo "$ac_t""yes" 1>&6
5567 cat >> confdefs.h <<\EOF
5568 #define HAVE_STRTOUL 1
5572 echo "$ac_t""no" 1>&6
5577 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
5578 echo "configure:5579: checking for strcasecmp" >&5
5579 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
5580 echo $ac_n "(cached) $ac_c" 1>&6
5582 cat > conftest.$ac_ext <<EOF
5583 #line 5584 "configure"
5584 #include "confdefs.h"
5585 /* System header to define __stub macros and hopefully few prototypes,
5586 which can conflict with char strcasecmp(); below. */
5588 /* Override any gcc2 internal prototype to avoid an error. */
5589 /* We use char because int might match the return type of a gcc2
5590 builtin and then its argument prototype would still apply. */
5595 /* The GNU C library defines this for functions which it implements
5596 to always fail with ENOSYS. Some functions are actually named
5597 something starting with __ and the normal name is an alias. */
5598 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5606 if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5608 eval "ac_cv_func_strcasecmp=yes"
5610 echo "configure: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5613 eval "ac_cv_func_strcasecmp=no"
5618 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
5619 echo "$ac_t""yes" 1>&6
5620 cat >> confdefs.h <<\EOF
5621 #define HAVE_STRCASECMP 1
5625 echo "$ac_t""no" 1>&6
5626 STRCASECMP='strcasecmp.o'
5630 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
5631 echo "configure:5632: checking for cbrt" >&5
5632 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
5633 echo $ac_n "(cached) $ac_c" 1>&6
5635 cat > conftest.$ac_ext <<EOF
5636 #line 5637 "configure"
5637 #include "confdefs.h"
5638 /* System header to define __stub macros and hopefully few prototypes,
5639 which can conflict with char cbrt(); below. */
5641 /* Override any gcc2 internal prototype to avoid an error. */
5642 /* We use char because int might match the return type of a gcc2
5643 builtin and then its argument prototype would still apply. */
5648 /* The GNU C library defines this for functions which it implements
5649 to always fail with ENOSYS. Some functions are actually named
5650 something starting with __ and the normal name is an alias. */
5651 #if defined (__stub_cbrt) || defined (__stub___cbrt)
5659 if { (eval echo configure:5660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5661 eval "ac_cv_func_cbrt=yes"
5663 echo "configure: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5666 eval "ac_cv_func_cbrt=no"
5671 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
5672 echo "$ac_t""yes" 1>&6
5673 cat >> confdefs.h <<\EOF
5678 echo "$ac_t""no" 1>&6
5679 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
5680 echo "configure:5681: checking for cbrt in -lm" >&5
5681 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
5682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5683 echo $ac_n "(cached) $ac_c" 1>&6
5685 ac_save_LIBS="$LIBS"
5687 cat > conftest.$ac_ext <<EOF
5688 #line 5689 "configure"
5689 #include "confdefs.h"
5690 /* Override any gcc2 internal prototype to avoid an error. */
5691 /* We use char because int might match the return type of a gcc2
5692 builtin and then its argument prototype would still apply. */
5699 if { (eval echo configure:5700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5701 eval "ac_cv_lib_$ac_lib_var=yes"
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5706 eval "ac_cv_lib_$ac_lib_var=no"
5709 LIBS="$ac_save_LIBS"
5712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5713 echo "$ac_t""yes" 1>&6
5714 cat >> confdefs.h <<\EOF
5719 echo "$ac_t""no" 1>&6
5725 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
5726 # this hackery with HPUXMATHLIB allows us to cope.
5730 if [ -r /lib/pa1.1/libm.a ] ; then
5731 HPUXMATHLIB="-L /lib/pa1.1 -lm"
5736 echo $ac_n "checking for rint""... $ac_c" 1>&6
5737 echo "configure:5738: checking for rint" >&5
5738 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5741 cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5744 /* System header to define __stub macros and hopefully few prototypes,
5745 which can conflict with char rint(); below. */
5747 /* Override any gcc2 internal prototype to avoid an error. */
5748 /* We use char because int might match the return type of a gcc2
5749 builtin and then its argument prototype would still apply. */
5754 /* The GNU C library defines this for functions which it implements
5755 to always fail with ENOSYS. Some functions are actually named
5756 something starting with __ and the normal name is an alias. */
5757 #if defined (__stub_rint) || defined (__stub___rint)
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5767 eval "ac_cv_func_rint=yes"
5769 echo "configure: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5772 eval "ac_cv_func_rint=no"
5777 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
5778 echo "$ac_t""yes" 1>&6
5779 cat >> confdefs.h <<\EOF
5784 echo "$ac_t""no" 1>&6
5785 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
5786 echo "configure:5787: checking for rint in -lm" >&5
5787 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
5788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5789 echo $ac_n "(cached) $ac_c" 1>&6
5791 ac_save_LIBS="$LIBS"
5792 LIBS="-lm $HPUXMATHLIB $LIBS"
5793 cat > conftest.$ac_ext <<EOF
5794 #line 5795 "configure"
5795 #include "confdefs.h"
5796 /* Override any gcc2 internal prototype to avoid an error. */
5797 /* We use char because int might match the return type of a gcc2
5798 builtin and then its argument prototype would still apply. */
5805 if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5807 eval "ac_cv_lib_$ac_lib_var=yes"
5809 echo "configure: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5812 eval "ac_cv_lib_$ac_lib_var=no"
5815 LIBS="$ac_save_LIBS"
5818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5819 echo "$ac_t""yes" 1>&6
5820 cat >> confdefs.h <<\EOF
5825 echo "$ac_t""no" 1>&6
5831 cat > conftest.$ac_ext <<EOF
5832 #line 5833 "configure"
5833 #include "confdefs.h"
5834 #include <readline.h>
5836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5837 egrep "rl_completion_append_character" >/dev/null 2>&1; then
5839 cat >> confdefs.h <<\EOF
5840 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
5845 cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure"
5847 #include "confdefs.h"
5848 #include <readline/readline.h>
5850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5851 egrep "rl_completion_append_character" >/dev/null 2>&1; then
5853 cat >> confdefs.h <<\EOF
5854 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
5865 for ac_func in filename_completion_function
5867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5868 echo "configure:5869: checking for $ac_func" >&5
5869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5870 echo $ac_n "(cached) $ac_c" 1>&6
5872 cat > conftest.$ac_ext <<EOF
5873 #line 5874 "configure"
5874 #include "confdefs.h"
5875 /* System header to define __stub macros and hopefully few prototypes,
5876 which can conflict with char $ac_func(); below. */
5878 /* Override any gcc2 internal prototype to avoid an error. */
5879 /* We use char because int might match the return type of a gcc2
5880 builtin and then its argument prototype would still apply. */
5885 /* The GNU C library defines this for functions which it implements
5886 to always fail with ENOSYS. Some functions are actually named
5887 something starting with __ and the normal name is an alias. */
5888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5896 if { (eval echo configure:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5898 eval "ac_cv_func_$ac_func=yes"
5900 echo "configure: failed program was:" >&5
5901 cat conftest.$ac_ext >&5
5903 eval "ac_cv_func_$ac_func=no"
5908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5909 echo "$ac_t""yes" 1>&6
5910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5911 cat >> confdefs.h <<EOF
5912 #define $ac_tr_func 1
5914 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5917 #include <readline.h>
5919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5920 egrep "filename_completion_function" >/dev/null 2>&1; then
5922 cat >> confdefs.h <<\EOF
5923 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
5928 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 #include <readline/readline.h>
5933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5934 egrep "filename_completion_function" >/dev/null 2>&1; then
5936 cat >> confdefs.h <<\EOF
5937 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
5948 echo "$ac_t""no" 1>&6
5956 echo $ac_n "checking for finite""... $ac_c" 1>&6
5957 echo "configure:5958: checking for finite" >&5
5958 cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure"
5960 #include "confdefs.h"
5963 int dummy=finite(1.0);
5966 if { (eval echo configure:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5968 cat >> confdefs.h <<\EOF
5969 #define HAVE_FINITE 1
5971 echo "$ac_t""yes" 1>&6
5973 echo "configure: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5976 echo "$ac_t""no" 1>&6
5980 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
5981 echo "configure:5982: checking for sigsetjmp" >&5
5982 cat > conftest.$ac_ext <<EOF
5983 #line 5984 "configure"
5984 #include "confdefs.h"
5987 sigjmp_buf x; sigsetjmp(x, 1);
5990 if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5992 cat >> confdefs.h <<\EOF
5993 #define HAVE_SIGSETJMP 1
5995 echo "$ac_t""yes" 1>&6
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
6000 echo "$ac_t""no" 1>&6
6004 # Check whether --enable-syslog or --disable-syslog was given.
6005 if test "${enable_syslog+set}" = set; then
6006 enableval="$enable_syslog"
6007 case $enableval in y|ye|yes)
6008 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6009 echo "configure:6010: checking for syslog" >&5
6010 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6011 echo $ac_n "(cached) $ac_c" 1>&6
6013 cat > conftest.$ac_ext <<EOF
6014 #line 6015 "configure"
6015 #include "confdefs.h"
6016 /* System header to define __stub macros and hopefully few prototypes,
6017 which can conflict with char syslog(); below. */
6019 /* Override any gcc2 internal prototype to avoid an error. */
6020 /* We use char because int might match the return type of a gcc2
6021 builtin and then its argument prototype would still apply. */
6026 /* The GNU C library defines this for functions which it implements
6027 to always fail with ENOSYS. Some functions are actually named
6028 something starting with __ and the normal name is an alias. */
6029 #if defined (__stub_syslog) || defined (__stub___syslog)
6037 if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6039 eval "ac_cv_func_syslog=yes"
6041 echo "configure: failed program was:" >&5
6042 cat conftest.$ac_ext >&5
6044 eval "ac_cv_func_syslog=no"
6049 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6050 echo "$ac_t""yes" 1>&6
6051 cat >> confdefs.h <<\EOF
6052 #define ENABLE_SYSLOG 1
6056 echo "$ac_t""no" 1>&6
6057 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6067 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6068 echo "configure:6069: checking whether long int is 64 bits" >&5
6069 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6070 echo $ac_n "(cached) $ac_c" 1>&6
6072 if test "$cross_compiling" = yes; then
6073 pgac_cv_type_long_int_64=no
6074 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6076 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6079 typedef long int int64;
6082 * These are globals to discourage the compiler from folding all the
6083 * arithmetic tests down to compile-time constants.
6088 int does_int64_work()
6092 if (sizeof(int64) != 8)
6093 return 0; /* definitely not the right size */
6095 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6103 exit(! does_int64_work());
6106 if { (eval echo configure:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6108 pgac_cv_type_long_int_64=yes
6110 echo "configure: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6113 pgac_cv_type_long_int_64=no
6120 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6122 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6123 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6124 cat >> confdefs.h <<\EOF
6125 #define HAVE_LONG_INT_64
6131 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6132 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6133 echo "configure:6134: checking whether long long int is 64 bits" >&5
6134 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6137 if test "$cross_compiling" = yes; then
6138 pgac_cv_type_long_long_int_64=no
6139 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6141 cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6144 typedef long long int int64;
6147 * These are globals to discourage the compiler from folding all the
6148 * arithmetic tests down to compile-time constants.
6153 int does_int64_work()
6157 if (sizeof(int64) != 8)
6158 return 0; /* definitely not the right size */
6160 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6168 exit(! does_int64_work());
6171 if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6173 pgac_cv_type_long_long_int_64=yes
6175 echo "configure: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6178 pgac_cv_type_long_long_int_64=no
6185 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
6187 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
6188 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
6189 cat >> confdefs.h <<\EOF
6190 #define HAVE_LONG_LONG_INT_64
6199 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6200 if [ x$SNPRINTF = x ] ; then
6201 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
6202 echo "configure:6203: checking whether snprintf handles 'long long int' as %lld" >&5
6203 if test "$cross_compiling" = yes; then
6204 echo "$ac_t""assuming not on target machine" 1>&6
6205 # Force usage of our own snprintf, since we cannot test foreign snprintf
6206 SNPRINTF='snprintf.o'
6207 INT64_FORMAT='"%lld"'
6210 cat > conftest.$ac_ext <<EOF
6211 #line 6212 "configure"
6212 #include "confdefs.h"
6214 typedef long long int int64;
6215 #define INT64_FORMAT "%lld"
6220 int does_int64_snprintf_work()
6225 if (sizeof(int64) != 8)
6226 return 0; /* doesn't look like the right size */
6229 snprintf(buf, 100, INT64_FORMAT, c);
6230 if (strcmp(buf, "800000140000005") != 0)
6231 return 0; /* either multiply or snprintf is busted */
6235 exit(! does_int64_snprintf_work());
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6240 echo "$ac_t""yes" 1>&6
6241 INT64_FORMAT='"%lld"'
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6247 echo "$ac_t""no" 1>&6
6248 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
6249 echo "configure:6250: checking whether snprintf handles 'long long int' as %qd" >&5
6250 if test "$cross_compiling" = yes; then
6251 echo "$ac_t""assuming not on target machine" 1>&6
6252 # Force usage of our own snprintf, since we cannot test foreign snprintf
6253 SNPRINTF='snprintf.o'
6254 INT64_FORMAT='"%lld"'
6257 cat > conftest.$ac_ext <<EOF
6258 #line 6259 "configure"
6259 #include "confdefs.h"
6261 typedef long long int int64;
6262 #define INT64_FORMAT "%qd"
6267 int does_int64_snprintf_work()
6272 if (sizeof(int64) != 8)
6273 return 0; /* doesn't look like the right size */
6276 snprintf(buf, 100, INT64_FORMAT, c);
6277 if (strcmp(buf, "800000140000005") != 0)
6278 return 0; /* either multiply or snprintf is busted */
6282 exit(! does_int64_snprintf_work());
6285 if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6287 echo "$ac_t""yes" 1>&6
6288 INT64_FORMAT='"%qd"'
6291 echo "configure: failed program was:" >&5
6292 cat conftest.$ac_ext >&5
6294 echo "$ac_t""no" 1>&6
6295 # Force usage of our own snprintf, since system snprintf is broken
6296 SNPRINTF='snprintf.o'
6297 INT64_FORMAT='"%lld"'
6308 # here if we previously decided we needed to use our own snprintf
6309 INT64_FORMAT='"%lld"'
6312 # Here if we are not using 'long long int' at all
6313 INT64_FORMAT='"%ld"'
6316 cat >> confdefs.h <<EOF
6317 #define INT64_FORMAT $INT64_FORMAT
6323 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
6324 echo "configure:6325: checking alignment of short" >&5
6325 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6328 if test "$cross_compiling" = yes; then
6329 pgac_cv_alignof_short='sizeof(short)'
6331 cat > conftest.$ac_ext <<EOF
6332 #line 6333 "configure"
6333 #include "confdefs.h"
6335 struct { char filler; short field; } mystruct;
6338 FILE *f=fopen("conftestval", "w");
6340 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6344 if { (eval echo configure:6345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6346 pgac_cv_alignof_short=`cat conftestval`
6348 echo "configure: failed program was:" >&5
6349 cat conftest.$ac_ext >&5
6351 pgac_cv_alignof_short='sizeof(short)'
6357 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
6358 cat >> confdefs.h <<EOF
6359 #define ALIGNOF_SHORT $pgac_cv_alignof_short
6363 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
6364 echo "configure:6365: checking alignment of int" >&5
6365 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
6366 echo $ac_n "(cached) $ac_c" 1>&6
6368 if test "$cross_compiling" = yes; then
6369 pgac_cv_alignof_int='sizeof(int)'
6371 cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6375 struct { char filler; int field; } mystruct;
6378 FILE *f=fopen("conftestval", "w");
6380 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6384 if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6386 pgac_cv_alignof_int=`cat conftestval`
6388 echo "configure: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6391 pgac_cv_alignof_int='sizeof(int)'
6397 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
6398 cat >> confdefs.h <<EOF
6399 #define ALIGNOF_INT $pgac_cv_alignof_int
6403 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
6404 echo "configure:6405: checking alignment of long" >&5
6405 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
6406 echo $ac_n "(cached) $ac_c" 1>&6
6408 if test "$cross_compiling" = yes; then
6409 pgac_cv_alignof_long='sizeof(long)'
6411 cat > conftest.$ac_ext <<EOF
6412 #line 6413 "configure"
6413 #include "confdefs.h"
6415 struct { char filler; long field; } mystruct;
6418 FILE *f=fopen("conftestval", "w");
6420 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6424 if { (eval echo configure:6425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6426 pgac_cv_alignof_long=`cat conftestval`
6428 echo "configure: failed program was:" >&5
6429 cat conftest.$ac_ext >&5
6431 pgac_cv_alignof_long='sizeof(long)'
6437 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
6438 cat >> confdefs.h <<EOF
6439 #define ALIGNOF_LONG $pgac_cv_alignof_long
6443 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6444 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
6445 echo "configure:6446: checking alignment of long long int" >&5
6446 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6449 if test "$cross_compiling" = yes; then
6450 pgac_cv_alignof_long_long_int='sizeof(long long int)'
6452 cat > conftest.$ac_ext <<EOF
6453 #line 6454 "configure"
6454 #include "confdefs.h"
6456 struct { char filler; long long int field; } mystruct;
6459 FILE *f=fopen("conftestval", "w");
6461 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6465 if { (eval echo configure:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6467 pgac_cv_alignof_long_long_int=`cat conftestval`
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6472 pgac_cv_alignof_long_long_int='sizeof(long long int)'
6478 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
6479 cat >> confdefs.h <<EOF
6480 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
6485 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
6486 echo "configure:6487: checking alignment of double" >&5
6487 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6490 if test "$cross_compiling" = yes; then
6491 pgac_cv_alignof_double='sizeof(double)'
6493 cat > conftest.$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6497 struct { char filler; double field; } mystruct;
6500 FILE *f=fopen("conftestval", "w");
6502 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6506 if { (eval echo configure:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6508 pgac_cv_alignof_double=`cat conftestval`
6510 echo "configure: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6513 pgac_cv_alignof_double='sizeof(double)'
6519 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
6520 cat >> confdefs.h <<EOF
6521 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
6527 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
6528 MAX_ALIGNOF=$pgac_cv_alignof_long
6529 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
6530 MAX_ALIGNOF=$pgac_cv_alignof_double
6532 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
6533 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
6536 MAX_ALIGNOF="$pgac_cv_alignof_double"
6538 cat >> confdefs.h <<EOF
6539 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
6543 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
6544 echo "configure:6545: checking for POSIX signal interface" >&5
6545 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6548 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6554 struct sigaction act, oact;
6555 sigemptyset(&act.sa_mask);
6556 act.sa_flags = SA_RESTART;
6557 sigaction(0, &act, &oact);
6560 if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6562 pgac_cv_func_posix_signals=yes
6564 echo "configure: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6567 pgac_cv_func_posix_signals=no
6572 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
6573 if test x"$pgac_cv_func_posix_signals" = xyes ; then
6574 cat >> confdefs.h <<\EOF
6575 #define HAVE_POSIX_SIGNALS
6579 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
6584 if test -z "$TCL_DIRS"
6586 # Extract the first word of "tclsh", so it can be a program name with args.
6587 set dummy tclsh; ac_word=$2
6588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6589 echo "configure:6590: checking for $ac_word" >&5
6590 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6595 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
6598 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
6601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6603 for ac_dir in $ac_dummy; do
6604 test -z "$ac_dir" && ac_dir=.
6605 if test -f $ac_dir/$ac_word; then
6606 ac_cv_path_TCLSH="$ac_dir/$ac_word"
6614 TCLSH="$ac_cv_path_TCLSH"
6615 if test -n "$TCLSH"; then
6616 echo "$ac_t""$TCLSH" 1>&6
6618 echo "$ac_t""no" 1>&6
6623 # Extract the first word of "tcl", so it can be a program name with args.
6624 set dummy tcl; ac_word=$2
6625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6626 echo "configure:6627: checking for $ac_word" >&5
6627 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
6628 echo $ac_n "(cached) $ac_c" 1>&6
6632 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
6635 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
6638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6640 for ac_dir in $ac_dummy; do
6641 test -z "$ac_dir" && ac_dir=.
6642 if test -f $ac_dir/$ac_word; then
6643 ac_cv_path_TCLSH="$ac_dir/$ac_word"
6651 TCLSH="$ac_cv_path_TCLSH"
6652 if test -n "$TCLSH"; then
6653 echo "$ac_t""$TCLSH" 1>&6
6655 echo "$ac_t""no" 1>&6
6660 echo "configure: warning: TCL/TK support disabled; tcl shell is not in your path" 1>&2
6666 if test "$USE_TCL" = true
6668 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
6669 echo "configure:6670: checking for tclConfig.sh" >&5
6672 if test -z "$TCL_DIRS"
6674 library_dirs=`echo 'puts $auto_path' | $TCLSH`
6676 library_dirs="$TCL_DIRS $TK_DIRS $library_dirs"
6677 for dir in $library_dirs; do
6678 if test -d "$dir" -a -r "$dir/tclConfig.sh"; then
6679 TCL_CONFIG_SH=$dir/tclConfig.sh
6683 if test -z "$TCL_CONFIG_SH"; then
6684 echo "$ac_t""no" 1>&6
6685 echo "configure: warning: TCL/TK support disabled; Tcl configuration script missing" 1>&2
6688 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
6693 USE_TK=$USE_TCL # If TCL is disabled, disable TK
6695 if test "$USE_TK" = true
6697 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
6698 echo "configure:6699: checking for tkConfig.sh" >&5
6700 # library_dirs are set in the check for TCL
6701 for dir in $library_dirs
6703 if test -d "$dir" -a -r "$dir/tkConfig.sh"
6705 TK_CONFIG_SH=$dir/tkConfig.sh
6709 if test -z "$TK_CONFIG_SH"
6711 echo "$ac_t""no" 1>&6
6712 echo "configure: warning: TK support disabled; Tk configuration script missing" 1>&2
6715 echo "$ac_t""$TK_CONFIG_SH" 1>&6
6717 # Extract the first word of "wish", so it can be a program name with args.
6718 set dummy wish; ac_word=$2
6719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6720 echo "configure:6721: checking for $ac_word" >&5
6721 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6726 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
6729 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
6732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6734 for ac_dir in $ac_dummy; do
6735 test -z "$ac_dir" && ac_dir=.
6736 if test -f $ac_dir/$ac_word; then
6737 ac_cv_path_WISH="$ac_dir/$ac_word"
6745 WISH="$ac_cv_path_WISH"
6746 if test -n "$WISH"; then
6747 echo "$ac_t""$WISH" 1>&6
6749 echo "$ac_t""no" 1>&6
6759 if test "$USE_X" = true; then
6761 ice_save_LIBS="$LIBS"
6762 ice_save_CFLAGS="$CFLAGS"
6763 ice_save_CPPFLAGS="$CPPFLAGS"
6764 ice_save_LDFLAGS="$LDFLAGS"
6766 # If we find X, set shell vars x_includes and x_libraries to the
6767 # paths, otherwise set no_x=yes.
6768 # Uses ac_ vars as temps to allow command line to override cache and checks.
6769 # --without-x overrides everything else, but does not touch the cache.
6770 echo $ac_n "checking for X""... $ac_c" 1>&6
6771 echo "configure:6772: checking for X" >&5
6773 # Check whether --with-x or --without-x was given.
6774 if test "${with_x+set}" = set; then
6779 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6780 if test "x$with_x" = xno; then
6781 # The user explicitly disabled X.
6784 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6785 # Both variables are already set.
6788 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6789 echo $ac_n "(cached) $ac_c" 1>&6
6791 # One or both of the vars are not set, and there is no cached value.
6792 ac_x_includes=NO ac_x_libraries=NO
6794 if mkdir conftestdir; then
6796 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6797 cat > Imakefile <<'EOF'
6799 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6801 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6802 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6803 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6804 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6805 for ac_extension in a so sl; do
6806 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6807 test -f $ac_im_libdir/libX11.$ac_extension; then
6808 ac_im_usrlibdir=$ac_im_libdir; break
6811 # Screen out bogus values from the imake configuration. They are
6812 # bogus both because they are the default anyway, and because
6813 # using them would break gcc on systems where it needs fixed includes.
6814 case "$ac_im_incroot" in
6816 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6818 case "$ac_im_usrlibdir" in
6820 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6827 if test "$ac_x_includes" = NO; then
6828 # Guess where to find include files, by looking for this one X11 .h file.
6829 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6831 # First, try using that file with no special directory specified.
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6835 #include <$x_direct_test_include>
6837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6838 { (eval echo configure:6839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6840 if test -z "$ac_err"; then
6842 # We can compile using X headers with no special include directory.
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6849 # Look for the header file in a standard set of common directories.
6850 # Check X11 before X11Rn because it is often a symlink to the current release.
6853 /usr/X11R6/include \
6854 /usr/X11R5/include \
6855 /usr/X11R4/include \
6858 /usr/include/X11R6 \
6859 /usr/include/X11R5 \
6860 /usr/include/X11R4 \
6862 /usr/local/X11/include \
6863 /usr/local/X11R6/include \
6864 /usr/local/X11R5/include \
6865 /usr/local/X11R4/include \
6867 /usr/local/include/X11 \
6868 /usr/local/include/X11R6 \
6869 /usr/local/include/X11R5 \
6870 /usr/local/include/X11R4 \
6874 /usr/XFree86/include/X11 \
6877 /usr/local/include \
6878 /usr/unsupported/include \
6879 /usr/athena/include \
6880 /usr/local/x11r5/include \
6881 /usr/lpp/Xamples/include \
6883 /usr/openwin/include \
6884 /usr/openwin/share/include \
6887 if test -r "$ac_dir/$x_direct_test_include"; then
6888 ac_x_includes=$ac_dir
6894 fi # $ac_x_includes = NO
6896 if test "$ac_x_libraries" = NO; then
6897 # Check for the libraries.
6899 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6900 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6902 # See if we find them without any special options.
6903 # Don't add to $LIBS permanently.
6904 ac_save_LIBS="$LIBS"
6905 LIBS="-l$x_direct_test_library $LIBS"
6906 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6911 ${x_direct_test_function}()
6914 if { (eval echo configure:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6916 LIBS="$ac_save_LIBS"
6917 # We can link X programs with no special library path.
6920 echo "configure: failed program was:" >&5
6921 cat conftest.$ac_ext >&5
6923 LIBS="$ac_save_LIBS"
6924 # First see if replacing the include by lib works.
6925 # Check X11 before X11Rn because it is often a symlink to the current release.
6926 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6937 /usr/local/X11/lib \
6938 /usr/local/X11R6/lib \
6939 /usr/local/X11R5/lib \
6940 /usr/local/X11R4/lib \
6942 /usr/local/lib/X11 \
6943 /usr/local/lib/X11R6 \
6944 /usr/local/lib/X11R5 \
6945 /usr/local/lib/X11R4 \
6949 /usr/XFree86/lib/X11 \
6953 /usr/unsupported/lib \
6955 /usr/local/x11r5/lib \
6956 /usr/lpp/Xamples/lib \
6960 /usr/openwin/share/lib \
6963 for ac_extension in a so sl; do
6964 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6965 ac_x_libraries=$ac_dir
6972 fi # $ac_x_libraries = NO
6974 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6975 # Didn't find X anywhere. Cache the known absence of X.
6976 ac_cv_have_x="have_x=no"
6978 # Record where we found X for the cache.
6979 ac_cv_have_x="have_x=yes \
6980 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6984 eval "$ac_cv_have_x"
6987 if test "$have_x" != yes; then
6988 echo "$ac_t""$have_x" 1>&6
6991 # If each of the values was on the command line, it overrides each guess.
6992 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6993 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6994 # Update the cache value to reflect the command line values.
6995 ac_cv_have_x="have_x=yes \
6996 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6997 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7000 if test "$no_x" = yes; then
7001 # Not all programs may use this symbol, but it does not hurt to define it.
7002 cat >> confdefs.h <<\EOF
7003 #define X_DISPLAY_MISSING 1
7006 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7008 if test -n "$x_includes"; then
7009 X_CFLAGS="$X_CFLAGS -I$x_includes"
7012 # It would also be nice to do this for all -L options, not just this one.
7013 if test -n "$x_libraries"; then
7014 X_LIBS="$X_LIBS -L$x_libraries"
7015 # For Solaris; some versions of Sun CC require a space after -R and
7016 # others require no space. Words are not sufficient . . . .
7017 case "`(uname -sr) 2>/dev/null`" in
7019 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7020 echo "configure:7021: checking whether -R must be followed by a space" >&5
7021 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7022 cat > conftest.$ac_ext <<EOF
7023 #line 7024 "configure"
7024 #include "confdefs.h"
7030 if { (eval echo configure:7031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7034 echo "configure: failed program was:" >&5
7035 cat conftest.$ac_ext >&5
7040 if test $ac_R_nospace = yes; then
7041 echo "$ac_t""no" 1>&6
7042 X_LIBS="$X_LIBS -R$x_libraries"
7044 LIBS="$ac_xsave_LIBS -R $x_libraries"
7045 cat > conftest.$ac_ext <<EOF
7046 #line 7047 "configure"
7047 #include "confdefs.h"
7053 if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7057 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7063 if test $ac_R_space = yes; then
7064 echo "$ac_t""yes" 1>&6
7065 X_LIBS="$X_LIBS -R $x_libraries"
7067 echo "$ac_t""neither works" 1>&6
7070 LIBS="$ac_xsave_LIBS"
7074 # Check for system-dependent libraries X programs must link with.
7075 # Do this before checking for the system-independent R6 libraries
7076 # (-lICE), since we may need -lsocket or whatever for X linking.
7078 if test "$ISC" = yes; then
7079 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7081 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7082 # libraries were built with DECnet support. And karl@cs.umb.edu says
7083 # the Alpha needs dnet_stub (dnet does not exist).
7084 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7085 echo "configure:7086: checking for dnet_ntoa in -ldnet" >&5
7086 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7088 echo $ac_n "(cached) $ac_c" 1>&6
7090 ac_save_LIBS="$LIBS"
7092 cat > conftest.$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7095 /* Override any gcc2 internal prototype to avoid an error. */
7096 /* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7104 if { (eval echo configure:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7106 eval "ac_cv_lib_$ac_lib_var=yes"
7108 echo "configure: failed program was:" >&5
7109 cat conftest.$ac_ext >&5
7111 eval "ac_cv_lib_$ac_lib_var=no"
7114 LIBS="$ac_save_LIBS"
7117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7118 echo "$ac_t""yes" 1>&6
7119 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7121 echo "$ac_t""no" 1>&6
7124 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7125 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7126 echo "configure:7127: checking for dnet_ntoa in -ldnet_stub" >&5
7127 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7131 ac_save_LIBS="$LIBS"
7132 LIBS="-ldnet_stub $LIBS"
7133 cat > conftest.$ac_ext <<EOF
7134 #line 7135 "configure"
7135 #include "confdefs.h"
7136 /* Override any gcc2 internal prototype to avoid an error. */
7137 /* We use char because int might match the return type of a gcc2
7138 builtin and then its argument prototype would still apply. */
7145 if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7147 eval "ac_cv_lib_$ac_lib_var=yes"
7149 echo "configure: failed program was:" >&5
7150 cat conftest.$ac_ext >&5
7152 eval "ac_cv_lib_$ac_lib_var=no"
7155 LIBS="$ac_save_LIBS"
7158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7159 echo "$ac_t""yes" 1>&6
7160 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7162 echo "$ac_t""no" 1>&6
7167 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7168 # to get the SysV transport functions.
7169 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7171 # The nsl library prevents programs from opening the X display
7172 # on Irix 5.2, according to dickey@clark.net.
7173 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7174 echo "configure:7175: checking for gethostbyname" >&5
7175 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7178 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 /* System header to define __stub macros and hopefully few prototypes,
7182 which can conflict with char gethostbyname(); below. */
7184 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7187 char gethostbyname();
7191 /* The GNU C library defines this for functions which it implements
7192 to always fail with ENOSYS. Some functions are actually named
7193 something starting with __ and the normal name is an alias. */
7194 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7202 if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7204 eval "ac_cv_func_gethostbyname=yes"
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7209 eval "ac_cv_func_gethostbyname=no"
7214 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7215 echo "$ac_t""yes" 1>&6
7218 echo "$ac_t""no" 1>&6
7221 if test $ac_cv_func_gethostbyname = no; then
7222 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7223 echo "configure:7224: checking for gethostbyname in -lnsl" >&5
7224 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7228 ac_save_LIBS="$LIBS"
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 /* Override any gcc2 internal prototype to avoid an error. */
7234 /* We use char because int might match the return type of a gcc2
7235 builtin and then its argument prototype would still apply. */
7236 char gethostbyname();
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7244 eval "ac_cv_lib_$ac_lib_var=yes"
7246 echo "configure: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7249 eval "ac_cv_lib_$ac_lib_var=no"
7252 LIBS="$ac_save_LIBS"
7255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7256 echo "$ac_t""yes" 1>&6
7257 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7259 echo "$ac_t""no" 1>&6
7264 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7265 # socket/setsockopt and other routines are undefined under SCO ODT
7266 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7267 # on later versions), says simon@lia.di.epfl.ch: it contains
7268 # gethostby* variants that don't use the nameserver (or something).
7269 # -lsocket must be given before -lnsl if both are needed.
7270 # We assume that if connect needs -lnsl, so does gethostbyname.
7271 echo $ac_n "checking for connect""... $ac_c" 1>&6
7272 echo "configure:7273: checking for connect" >&5
7273 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7276 cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7279 /* System header to define __stub macros and hopefully few prototypes,
7280 which can conflict with char connect(); below. */
7282 /* Override any gcc2 internal prototype to avoid an error. */
7283 /* We use char because int might match the return type of a gcc2
7284 builtin and then its argument prototype would still apply. */
7289 /* The GNU C library defines this for functions which it implements
7290 to always fail with ENOSYS. Some functions are actually named
7291 something starting with __ and the normal name is an alias. */
7292 #if defined (__stub_connect) || defined (__stub___connect)
7300 if { (eval echo configure:7301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7302 eval "ac_cv_func_connect=yes"
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7307 eval "ac_cv_func_connect=no"
7312 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7313 echo "$ac_t""yes" 1>&6
7316 echo "$ac_t""no" 1>&6
7319 if test $ac_cv_func_connect = no; then
7320 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7321 echo "configure:7322: checking for connect in -lsocket" >&5
7322 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7324 echo $ac_n "(cached) $ac_c" 1>&6
7326 ac_save_LIBS="$LIBS"
7327 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7328 cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure"
7330 #include "confdefs.h"
7331 /* Override any gcc2 internal prototype to avoid an error. */
7332 /* We use char because int might match the return type of a gcc2
7333 builtin and then its argument prototype would still apply. */
7340 if { (eval echo configure:7341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7342 eval "ac_cv_lib_$ac_lib_var=yes"
7344 echo "configure: failed program was:" >&5
7345 cat conftest.$ac_ext >&5
7347 eval "ac_cv_lib_$ac_lib_var=no"
7350 LIBS="$ac_save_LIBS"
7353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7354 echo "$ac_t""yes" 1>&6
7355 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7357 echo "$ac_t""no" 1>&6
7362 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7363 echo $ac_n "checking for remove""... $ac_c" 1>&6
7364 echo "configure:7365: checking for remove" >&5
7365 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7366 echo $ac_n "(cached) $ac_c" 1>&6
7368 cat > conftest.$ac_ext <<EOF
7369 #line 7370 "configure"
7370 #include "confdefs.h"
7371 /* System header to define __stub macros and hopefully few prototypes,
7372 which can conflict with char remove(); below. */
7374 /* Override any gcc2 internal prototype to avoid an error. */
7375 /* We use char because int might match the return type of a gcc2
7376 builtin and then its argument prototype would still apply. */
7381 /* The GNU C library defines this for functions which it implements
7382 to always fail with ENOSYS. Some functions are actually named
7383 something starting with __ and the normal name is an alias. */
7384 #if defined (__stub_remove) || defined (__stub___remove)
7392 if { (eval echo configure:7393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7394 eval "ac_cv_func_remove=yes"
7396 echo "configure: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7399 eval "ac_cv_func_remove=no"
7404 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7405 echo "$ac_t""yes" 1>&6
7408 echo "$ac_t""no" 1>&6
7411 if test $ac_cv_func_remove = no; then
7412 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7413 echo "configure:7414: checking for remove in -lposix" >&5
7414 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7416 echo $ac_n "(cached) $ac_c" 1>&6
7418 ac_save_LIBS="$LIBS"
7419 LIBS="-lposix $LIBS"
7420 cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7423 /* Override any gcc2 internal prototype to avoid an error. */
7424 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */
7432 if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7434 eval "ac_cv_lib_$ac_lib_var=yes"
7436 echo "configure: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7439 eval "ac_cv_lib_$ac_lib_var=no"
7442 LIBS="$ac_save_LIBS"
7445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7446 echo "$ac_t""yes" 1>&6
7447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7449 echo "$ac_t""no" 1>&6
7454 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7455 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7456 echo "configure:7457: checking for shmat" >&5
7457 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7458 echo $ac_n "(cached) $ac_c" 1>&6
7460 cat > conftest.$ac_ext <<EOF
7461 #line 7462 "configure"
7462 #include "confdefs.h"
7463 /* System header to define __stub macros and hopefully few prototypes,
7464 which can conflict with char shmat(); below. */
7466 /* Override any gcc2 internal prototype to avoid an error. */
7467 /* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */
7473 /* The GNU C library defines this for functions which it implements
7474 to always fail with ENOSYS. Some functions are actually named
7475 something starting with __ and the normal name is an alias. */
7476 #if defined (__stub_shmat) || defined (__stub___shmat)
7484 if { (eval echo configure:7485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7486 eval "ac_cv_func_shmat=yes"
7488 echo "configure: failed program was:" >&5
7489 cat conftest.$ac_ext >&5
7491 eval "ac_cv_func_shmat=no"
7496 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7497 echo "$ac_t""yes" 1>&6
7500 echo "$ac_t""no" 1>&6
7503 if test $ac_cv_func_shmat = no; then
7504 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7505 echo "configure:7506: checking for shmat in -lipc" >&5
7506 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7508 echo $ac_n "(cached) $ac_c" 1>&6
7510 ac_save_LIBS="$LIBS"
7512 cat > conftest.$ac_ext <<EOF
7513 #line 7514 "configure"
7514 #include "confdefs.h"
7515 /* Override any gcc2 internal prototype to avoid an error. */
7516 /* We use char because int might match the return type of a gcc2
7517 builtin and then its argument prototype would still apply. */
7524 if { (eval echo configure:7525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7526 eval "ac_cv_lib_$ac_lib_var=yes"
7528 echo "configure: failed program was:" >&5
7529 cat conftest.$ac_ext >&5
7531 eval "ac_cv_lib_$ac_lib_var=no"
7534 LIBS="$ac_save_LIBS"
7537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7538 echo "$ac_t""yes" 1>&6
7539 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7541 echo "$ac_t""no" 1>&6
7547 # Check for libraries that X11R6 Xt/Xaw programs need.
7548 ac_save_LDFLAGS="$LDFLAGS"
7549 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7550 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7551 # check for ICE first), but we must link in the order -lSM -lICE or
7552 # we get undefined symbols. So assume we have SM if we have ICE.
7553 # These have to be linked with before -lX11, unlike the other
7554 # libraries we check for below, so use a different variable.
7555 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7556 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7557 echo "configure:7558: checking for IceConnectionNumber in -lICE" >&5
7558 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7560 echo $ac_n "(cached) $ac_c" 1>&6
7562 ac_save_LIBS="$LIBS"
7563 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7564 cat > conftest.$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7567 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7570 char IceConnectionNumber();
7573 IceConnectionNumber()
7576 if { (eval echo configure:7577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7578 eval "ac_cv_lib_$ac_lib_var=yes"
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7583 eval "ac_cv_lib_$ac_lib_var=no"
7586 LIBS="$ac_save_LIBS"
7589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7590 echo "$ac_t""yes" 1>&6
7591 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7593 echo "$ac_t""no" 1>&6
7596 LDFLAGS="$ac_save_LDFLAGS"
7601 LIBS="$LIBS $X_EXTRA_LIBS"
7602 CFLAGS="$CFLAGS $X_CFLAGS"
7603 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7604 LDFLAGS="$LDFLAGS $X_LIBS"
7608 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
7609 echo "configure:7610: checking for XOpenDisplay in -lX11" >&5
7610 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
7611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7612 echo $ac_n "(cached) $ac_c" 1>&6
7614 ac_save_LIBS="$LIBS"
7615 LIBS="-lX11 ${X_PRE_LIBS} $LIBS"
7616 cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 /* Override any gcc2 internal prototype to avoid an error. */
7620 /* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7622 char XOpenDisplay();
7628 if { (eval echo configure:7629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7630 eval "ac_cv_lib_$ac_lib_var=yes"
7632 echo "configure: failed program was:" >&5
7633 cat conftest.$ac_ext >&5
7635 eval "ac_cv_lib_$ac_lib_var=no"
7638 LIBS="$ac_save_LIBS"
7641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7642 echo "$ac_t""yes" 1>&6
7645 echo "$ac_t""no" 1>&6
7648 if test "$X11_LIBS" = ""; then
7649 echo "configure: warning: The X11 library '-lX11' could not be found,
7650 so TK support will be disabled. To enable TK support,
7651 please use the configure options '--x-includes=DIR'
7652 and '--x-libraries=DIR' to specify the X location.
7653 See the file 'config.log' for further diagnostics." 1>&2
7660 LIBS="$ice_save_LIBS"
7661 CFLAGS="$ice_save_CFLAGS"
7662 CPPFLAGS="$ice_save_CPPFLAGS"
7663 LDFLAGS="$ice_save_LDFLAGS"
7667 # Wait with these until we're done so no tests fail because of too
7669 if test x"$GCC" = x"yes" ; then
7670 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wmissing-declarations"
7675 cat > confcache <<\EOF
7676 # This file is a shell script that caches the results of configure
7677 # tests run on this system so they can be shared between configure
7678 # scripts and configure runs. It is not useful on other systems.
7679 # If it contains results you don't want to keep, you may remove or edit it.
7681 # By default, configure uses ./config.cache as the cache file,
7682 # creating it if it does not exist already. You can give configure
7683 # the --cache-file=FILE option to use a different cache file; that is
7684 # what configure does when it calls configure scripts in
7685 # subdirectories, so they share the cache.
7686 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7687 # config.status only pays attention to the cache file if you give it the
7688 # --recheck option to rerun configure.
7691 # The following way of writing the cache mishandles newlines in values,
7692 # but we know of no workaround that is simple, portable, and efficient.
7693 # So, don't put newlines in cache variables' values.
7694 # Ultrix sh set writes to stderr and can't be redirected directly,
7695 # and sets the high bit in the cache file unless we assign to the vars.
7697 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7699 # `set' does not quote correctly, so add quotes (double-quote substitution
7700 # turns \\\\ into \\, and sed turns \\ into \).
7702 -e "s/'/'\\\\''/g" \
7703 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7706 # `set' quotes correctly as required by POSIX, so do not add quotes.
7707 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7710 if cmp -s $cache_file confcache; then
7713 if test -w $cache_file; then
7714 echo "updating cache $cache_file"
7715 cat confcache > $cache_file
7717 echo "not updating unwritable cache $cache_file"
7722 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7724 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7725 # Let make expand exec_prefix.
7726 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7728 # Any assignment to VPATH causes Sun make to only execute
7729 # the first set of double-colon rules, so remove it if not needed.
7730 # If there is a colon in the path, we need to keep it.
7731 if test "x$srcdir" = x.; then
7732 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7735 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7737 DEFS=-DHAVE_CONFIG_H
7739 # Without the "./", some shells look in PATH for config.status.
7740 : ${CONFIG_STATUS=./config.status}
7742 echo creating $CONFIG_STATUS
7743 rm -f $CONFIG_STATUS
7744 cat > $CONFIG_STATUS <<EOF
7746 # Generated automatically by configure.
7747 # Run this file to recreate the current configuration.
7748 # This directory was configured as follows,
7749 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7751 # $0 $ac_configure_args
7753 # Compiler output produced by configure, useful for debugging
7754 # configure, is in ./config.log if it exists.
7756 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7759 case "\$ac_option" in
7760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7761 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7762 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7763 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7764 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7766 -help | --help | --hel | --he | --h)
7767 echo "\$ac_cs_usage"; exit 0 ;;
7768 *) echo "\$ac_cs_usage"; exit 1 ;;
7772 ac_given_srcdir=$srcdir
7773 ac_given_INSTALL="$INSTALL"
7775 trap 'rm -fr `echo "
7779 src/backend/port/Makefile
7780 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7782 cat >> $CONFIG_STATUS <<EOF
7784 # Protect against being on the right side of a sed subst in config.status.
7785 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7786 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7790 s%@CFLAGS@%$CFLAGS%g
7791 s%@CPPFLAGS@%$CPPFLAGS%g
7792 s%@CXXFLAGS@%$CXXFLAGS%g
7793 s%@FFLAGS@%$FFLAGS%g
7795 s%@LDFLAGS@%$LDFLAGS%g
7797 s%@exec_prefix@%$exec_prefix%g
7798 s%@prefix@%$prefix%g
7799 s%@program_transform_name@%$program_transform_name%g
7800 s%@bindir@%$bindir%g
7801 s%@sbindir@%$sbindir%g
7802 s%@libexecdir@%$libexecdir%g
7803 s%@datadir@%$datadir%g
7804 s%@sysconfdir@%$sysconfdir%g
7805 s%@sharedstatedir@%$sharedstatedir%g
7806 s%@localstatedir@%$localstatedir%g
7807 s%@libdir@%$libdir%g
7808 s%@includedir@%$includedir%g
7809 s%@oldincludedir@%$oldincludedir%g
7810 s%@docdir@%$docdir%g
7811 s%@mandir@%$mandir%g
7812 s%@VERSION@%$VERSION%g
7814 s%@host_alias@%$host_alias%g
7815 s%@host_cpu@%$host_cpu%g
7816 s%@host_vendor@%$host_vendor%g
7817 s%@host_os@%$host_os%g
7818 s%@PORTNAME@%$PORTNAME%g
7821 s%@MULTIBYTE@%$MULTIBYTE%g
7826 s%@SHARED_LIB@%$SHARED_LIB%g
7827 s%@DLSUFFIX@%$DLSUFFIX%g
7828 s%@DL_LIB@%$DL_LIB%g
7829 s%@autodepend@%$autodepend%g
7830 s%@INCLUDES@%$INCLUDES%g
7831 s%@USE_TCL@%$USE_TCL%g
7832 s%@USE_TK@%$USE_TK%g
7833 s%@with_perl@%$with_perl%g
7834 s%@PYTHON@%$PYTHON%g
7835 s%@python_version@%$python_version%g
7836 s%@python_prefix@%$python_prefix%g
7837 s%@python_execprefix@%$python_execprefix%g
7838 s%@python_configdir@%$python_configdir%g
7839 s%@python_moduledir@%$python_moduledir%g
7840 s%@python_extmakefile@%$python_extmakefile%g
7841 s%@with_python@%$with_python%g
7842 s%@with_krb4@%$with_krb4%g
7843 s%@with_krb5@%$with_krb5%g
7844 s%@krb_srvtab@%$krb_srvtab%g
7845 s%@KRB_LIBS@%$KRB_LIBS%g
7846 s%@with_openssl@%$with_openssl%g
7847 s%@enable_odbc@%$enable_odbc%g
7848 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
7849 s%@ELF_SYS@%$ELF_SYS%g
7850 s%@with_CXX@%$with_CXX%g
7852 s%@CXXCPP@%$CXXCPP%g
7853 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7854 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7855 s%@INSTALL_DATA@%$INSTALL_DATA%g
7856 s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
7857 s%@mkinstalldirs@%$mkinstalldirs%g
7860 s%@LEXLIB@%$LEXLIB%g
7862 s%@RANLIB@%$RANLIB%g
7866 s%@YFLAGS@%$YFLAGS%g
7867 s%@SNPRINTF@%$SNPRINTF%g
7869 s%@GETRUSAGE@%$GETRUSAGE%g
7870 s%@SRANDOM@%$SRANDOM%g
7871 s%@GETHOSTNAME@%$GETHOSTNAME%g
7872 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
7873 s%@INET_ATON@%$INET_ATON%g
7874 s%@STRERROR@%$STRERROR%g
7875 s%@STRERROR2@%$STRERROR2%g
7876 s%@STRDUP@%$STRDUP%g
7877 s%@STRTOL@%$STRTOL%g
7878 s%@STRTOUL@%$STRTOUL%g
7879 s%@STRCASECMP@%$STRCASECMP%g
7880 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
7881 s%@HAVE_RL_COMPLETION_APPEND_CHARACTER@%$HAVE_RL_COMPLETION_APPEND_CHARACTER%g
7882 s%@HAVE_FILENAME_COMPLETION_FUNCTION@%$HAVE_FILENAME_COMPLETION_FUNCTION%g
7883 s%@HAVE_FILENAME_COMPLETION_FUNCTION_DECL@%$HAVE_FILENAME_COMPLETION_FUNCTION_DECL%g
7884 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
7886 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
7887 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
7889 s%@X_CFLAGS@%$X_CFLAGS%g
7890 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7891 s%@X_LIBS@%$X_LIBS%g
7892 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7893 s%@X11_LIBS@%$X11_LIBS%g
7898 cat >> $CONFIG_STATUS <<\EOF
7900 # Split the substitutions into bite-sized pieces for seds with
7901 # small command number limits, like on Digital OSF/1 and HP-UX.
7902 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7903 ac_file=1 # Number of current file.
7904 ac_beg=1 # First line for current file.
7905 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7908 while $ac_more_lines; do
7909 if test $ac_beg -gt 1; then
7910 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7912 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7914 if test ! -s conftest.s$ac_file; then
7916 rm -f conftest.s$ac_file
7918 if test -z "$ac_sed_cmds"; then
7919 ac_sed_cmds="sed -f conftest.s$ac_file"
7921 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7923 ac_file=`expr $ac_file + 1`
7925 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7928 if test -z "$ac_sed_cmds"; then
7933 cat >> $CONFIG_STATUS <<EOF
7935 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
7938 src/backend/port/Makefile
7941 cat >> $CONFIG_STATUS <<\EOF
7942 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7945 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7946 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7947 *) ac_file_in="${ac_file}.in" ;;
7950 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7952 # Remove last slash and all that follows it. Not all systems have dirname.
7953 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7954 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7955 # The file is in a subdirectory.
7956 test ! -d "$ac_dir" && mkdir "$ac_dir"
7957 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7958 # A "../" for each directory in $ac_dir_suffix.
7959 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7961 ac_dir_suffix= ac_dots=
7964 case "$ac_given_srcdir" in
7966 if test -z "$ac_dots"; then top_srcdir=.
7967 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7968 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7970 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7971 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7974 case "$ac_given_INSTALL" in
7975 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7976 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7979 echo creating "$ac_file"
7981 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7983 *Makefile*) ac_comsub="1i\\
7984 # $configure_input" ;;
7988 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7990 s%@configure_input@%$configure_input%g
7991 s%@srcdir@%$srcdir%g
7992 s%@top_srcdir@%$top_srcdir%g
7993 s%@INSTALL@%$INSTALL%g
7994 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7998 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7999 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8001 # ac_d sets the value in "#define NAME VALUE" lines.
8002 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8003 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8006 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8007 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8008 ac_uB='\([ ]\)%\1#\2define\3'
8011 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8012 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8013 ac_eB='$%\1#\2define\3'
8017 if test "${CONFIG_HEADERS+set}" != set; then
8019 cat >> $CONFIG_STATUS <<EOF
8020 CONFIG_HEADERS="src/include/config.h"
8022 cat >> $CONFIG_STATUS <<\EOF
8024 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8025 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8027 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8028 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8029 *) ac_file_in="${ac_file}.in" ;;
8032 echo creating $ac_file
8034 rm -f conftest.frag conftest.in conftest.out
8035 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8036 cat $ac_file_inputs > conftest.in
8040 # Transform confdefs.h into a sed script conftest.vals that substitutes
8041 # the proper values into config.h.in to produce config.h. And first:
8042 # Protect against being on the right side of a sed subst in config.status.
8043 # Protect against being in an unquoted here document in config.status.
8045 cat > conftest.hdr <<\EOF
8048 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8052 sed -n -f conftest.hdr confdefs.h > conftest.vals
8055 # This sed command replaces #undef with comments. This is necessary, for
8056 # example, in the case of _POSIX_SOURCE, which is predefined and required
8057 # on some systems where configure will not decide to define it.
8058 cat >> conftest.vals <<\EOF
8059 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8062 # Break up conftest.vals because some shells have a limit on
8063 # the size of here documents, and old seds have small limits too.
8068 ac_lines=`grep -c . conftest.vals`
8069 # grep -c gives empty output for an empty file on some AIX systems.
8070 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8071 # Write a limited-size here document to conftest.frag.
8072 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8073 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8075 sed -f conftest.frag conftest.in > conftest.out
8077 mv conftest.out conftest.in
8079 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8081 mv conftest.tail conftest.vals
8085 cat >> $CONFIG_STATUS <<\EOF
8086 rm -f conftest.frag conftest.h
8087 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8088 cat conftest.in >> conftest.h
8090 if cmp -s $ac_file conftest.h 2>/dev/null; then
8091 echo "$ac_file is unchanged"
8094 # Remove last slash and all that follows it. Not all systems have dirname.
8095 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8096 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8097 # The file is in a subdirectory.
8098 test ! -d "$ac_dir" && mkdir "$ac_dir"
8101 mv conftest.h $ac_file
8107 cat >> $CONFIG_STATUS <<EOF
8108 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}"
8109 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
8112 cat >> $CONFIG_STATUS <<\EOF
8113 srcdir=$ac_given_srcdir
8114 while test -n "$ac_sources"; do
8115 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8116 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8118 echo "linking $srcdir/$ac_source to $ac_dest"
8120 if test ! -r $srcdir/$ac_source; then
8121 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8125 # Make relative symlinks.
8126 # Remove last slash and all that follows it. Not all systems have dirname.
8127 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8128 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8129 # The dest file is in a subdirectory.
8130 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8131 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8132 # A "../" for each directory in $ac_dest_dir_suffix.
8133 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8135 ac_dest_dir_suffix= ac_dots=
8139 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8140 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8143 # Make a symlink if possible; otherwise try a hard link.
8144 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8145 ln $srcdir/$ac_source $ac_dest; then :
8147 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8151 cat >> $CONFIG_STATUS <<EOF
8154 cat >> $CONFIG_STATUS <<\EOF
8155 echo timestamp > src/include/stamp-h
8159 chmod +x $CONFIG_STATUS
8160 rm -fr confdefs* $ac_clean_files
8161 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1