3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/pgsql
16 --with-includes=DIRS look for additional header files in DIRS"
18 --with-libraries=DIRS look for additional libraries in DIRS"
20 --with-libs=DIRS alternative spelling of --with-libraries"
22 --enable-locale enable locale support"
24 --enable-recode enable character set recode support"
26 --enable-multibyte enable multibyte character support"
28 --enable-unicode-conversion enable unicode conversion support"
30 --with-pgport=PORTNUM change default port number [5432]"
32 --with-maxbackends=N set default maximum number of connections [32]"
34 --disable-shared do not build shared libraries"
36 --disable-rpath do not embed shared library search path in executables"
38 --enable-debug build with debugging symbols (-g)"
40 --enable-depend turn on automatic dependency tracking"
42 --enable-cassert enable assertion checks (for debugging)"
44 --with-tcl build Tcl and Tk interfaces"
46 --without-tk do not build Tk interfaces if Tcl is enabled"
48 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
50 --with-tkconfig=DIR tkConfig.sh is in DIR"
52 --with-perl build Perl interface and PL/Perl"
54 --with-python build Python interface module"
56 --with-java build JDBC interface and Java tools"
58 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
60 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
62 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]"
64 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
66 --enable-odbc build the ODBC driver package"
68 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
70 --with-CXX build C++ modules (libpq++)"
72 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
74 --enable-syslog enable logging to syslog"
76 # Initialize some variables set by options.
77 # The variables have the same names as the options, with
78 # dashes changed to underlines.
80 cache_file=./config.cache
89 program_transform_name=s,x,x,
97 bindir='${exec_prefix}/bin'
98 sbindir='${exec_prefix}/sbin'
99 libexecdir='${exec_prefix}/libexec'
100 datadir='${prefix}/share'
101 sysconfdir='${prefix}/etc'
102 sharedstatedir='${prefix}/com'
103 localstatedir='${prefix}/var'
104 libdir='${exec_prefix}/lib'
105 includedir='${prefix}/include'
106 oldincludedir='/usr/include'
107 docdir='${prefix}/doc'
108 mandir='${prefix}/man'
110 # Initialize some other variables.
113 SHELL=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 # Accept the important Cygnus configure options, so we can diagnose typos.
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
142 -build | --build | --buil | --bui | --bu)
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
147 -cache-file | --cache-file | --cache-fil | --cache-fi \
148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149 ac_prev=cache_file ;;
150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152 cache_file="$ac_optarg" ;;
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 datadir="$ac_optarg" ;;
160 -disable-* | --disable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
169 -enable-* | --enable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184 | --exec | --exe | --ex)
185 ac_prev=exec_prefix ;;
186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188 | --exec=* | --exe=* | --ex=*)
189 exec_prefix="$ac_optarg" ;;
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
195 -help | --help | --hel | --he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --version print the version of autoconf that created configure
207 Directory and file names:
208 --prefix=PREFIX install architecture-independent files in PREFIX
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 --bindir=DIR user executables in DIR [EPREFIX/bin]
213 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
214 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
215 --datadir=DIR read-only architecture-independent data in DIR
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
221 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
222 --includedir=DIR C header files in DIR [PREFIX/include]
223 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
224 --docdir=DIR doc documentation in DIR [PREFIX/doc]
225 --mandir=DIR man documentation in DIR [PREFIX/man]
226 --srcdir=DIR find the sources in DIR [configure dir or ..]
227 --program-prefix=PREFIX prepend PREFIX to installed program names
228 --program-suffix=SUFFIX append SUFFIX to installed program names
229 --program-transform-name=PROGRAM
230 run sed PROGRAM on installed program names
234 --build=BUILD configure for building on BUILD [BUILD=HOST]
235 --host=HOST configure for HOST [guessed]
236 --target=TARGET configure for TARGET [TARGET=HOST]
237 Features and packages:
238 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
239 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
240 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
241 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
242 --x-includes=DIR X include files are in DIR
243 --x-libraries=DIR X library files are in DIR
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
250 -host | --host | --hos | --ho)
252 -host=* | --host=* | --hos=* | --ho=*)
255 -includedir | --includedir | --includedi | --included | --include \
256 | --includ | --inclu | --incl | --inc)
257 ac_prev=includedir ;;
258 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
259 | --includ=* | --inclu=* | --incl=* | --inc=*)
260 includedir="$ac_optarg" ;;
262 -docdir | --docdir | --infodi | --infod | --doc | --inf)
264 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
265 docdir="$ac_optarg" ;;
267 -libdir | --libdir | --libdi | --libd)
269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
270 libdir="$ac_optarg" ;;
272 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
273 | --libexe | --libex | --libe)
274 ac_prev=libexecdir ;;
275 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
276 | --libexe=* | --libex=* | --libe=*)
277 libexecdir="$ac_optarg" ;;
279 -localstatedir | --localstatedir | --localstatedi | --localstated \
280 | --localstate | --localstat | --localsta | --localst \
281 | --locals | --local | --loca | --loc | --lo)
282 ac_prev=localstatedir ;;
283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
284 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
285 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
286 localstatedir="$ac_optarg" ;;
288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 mandir="$ac_optarg" ;;
294 # Obsolete; use --without-fp.
297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
305 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
306 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
307 | --oldin | --oldi | --old | --ol | --o)
308 ac_prev=oldincludedir ;;
309 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
310 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
311 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
312 oldincludedir="$ac_optarg" ;;
314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317 prefix="$ac_optarg" ;;
319 -program-prefix | --program-prefix | --program-prefi | --program-pref \
320 | --program-pre | --program-pr | --program-p)
321 ac_prev=program_prefix ;;
322 -program-prefix=* | --program-prefix=* | --program-prefi=* \
323 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
324 program_prefix="$ac_optarg" ;;
326 -program-suffix | --program-suffix | --program-suffi | --program-suff \
327 | --program-suf | --program-su | --program-s)
328 ac_prev=program_suffix ;;
329 -program-suffix=* | --program-suffix=* | --program-suffi=* \
330 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
331 program_suffix="$ac_optarg" ;;
333 -program-transform-name | --program-transform-name \
334 | --program-transform-nam | --program-transform-na \
335 | --program-transform-n | --program-transform- \
336 | --program-transform | --program-transfor \
337 | --program-transfo | --program-transf \
338 | --program-trans | --program-tran \
339 | --progr-tra | --program-tr | --program-t)
340 ac_prev=program_transform_name ;;
341 -program-transform-name=* | --program-transform-name=* \
342 | --program-transform-nam=* | --program-transform-na=* \
343 | --program-transform-n=* | --program-transform-=* \
344 | --program-transform=* | --program-transfor=* \
345 | --program-transfo=* | --program-transf=* \
346 | --program-trans=* | --program-tran=* \
347 | --progr-tra=* | --program-tr=* | --program-t=*)
348 program_transform_name="$ac_optarg" ;;
350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
351 | -silent | --silent | --silen | --sile | --sil)
354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 sbindir="$ac_optarg" ;;
360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362 | --sharedst | --shareds | --shared | --share | --shar \
364 ac_prev=sharedstatedir ;;
365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 sharedstatedir="$ac_optarg" ;;
371 -site | --site | --sit)
373 -site=* | --site=* | --sit=*)
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file=src/backend/access/common/heaptuple.c
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE; then
543 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548 for ac_site_file in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
559 echo "creating cache $cache_file"
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp='$CPP $CPPFLAGS'
566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling=$ac_cv_prog_cc_cross
572 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
581 ac_n= ac_c='\c' ac_t=
593 for ac_dir in config $srcdir/config; do
594 if test -f $ac_dir/install-sh; then
596 ac_install_sh="$ac_aux_dir/install-sh -c"
598 elif test -f $ac_dir/install.sh; then
600 ac_install_sh="$ac_aux_dir/install.sh -c"
604 if test -z "$ac_aux_dir"; then
605 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
607 ac_config_guess=$ac_aux_dir/config.guess
608 ac_config_sub=$ac_aux_dir/config.sub
609 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
614 cat >> confdefs.h <<EOF
615 #define PG_VERSION "$VERSION"
622 # Make sure we can run config.sub.
623 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
624 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
627 echo $ac_n "checking host system type""... $ac_c" 1>&6
628 echo "configure:629: checking host system type" >&5
631 case "$host_alias" in
635 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
636 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
638 *) host_alias=$nonopt ;;
642 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
643 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646 echo "$ac_t""$host" 1>&6
653 echo $ac_n "checking which template to use""... $ac_c" 1>&6
654 echo "configure:655: checking which template to use" >&5
656 # Check whether --with-template was given
657 if test x"${with_template+set}" = xset; then
658 case $with_template in
660 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
663 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
666 withval=$with_template
669 list) echo; ls "$srcdir/src/template"; exit;;
670 *) if test -f "$srcdir/src/template/$with_template" ; then
673 { echo "configure: error: '$withval' is not a valid template name. Use 'list' for a list." 1>&2; exit 1; }
678 esac # $with_template
681 # --with-template not given
684 aix*) template=aix ;;
685 beos*) template=beos ;;
686 bsdi*) template=bsdi ;;
687 cygwin*) template=win ;;
688 darwin*) template=darwin ;;
689 dgux*) template=dgux ;;
690 freebsd*) template=freebsd ;;
691 hpux*) template=hpux ;;
692 irix*) template=irix5 ;;
693 linux*) template=linux ;;
694 netbsd*) template=netbsd ;;
695 nextstep*) template=nextstep ;;
696 openbsd*) template=openbsd ;;
697 osf*) template=osf ;;
698 qnx*) template=qnx4 ;;
699 sco*) template=sco ;;
700 solaris*) template=solaris ;;
701 sunos*) template=sunos4 ;;
704 univel) template=univel ;;
706 sysv4*) template=svr4 ;;
707 sysv5uw*) template=unixware ;;
708 ultrix*) template=ultrix4 ;;
711 if test x"$template" = x"" ; then
712 { echo "configure: error:
713 *******************************************************************
714 PostgreSQL has apparently not been ported to your platform yet.
715 To try a manual configuration, look into the src/template directory
716 for a similar platform and use the '--with-template=' option.
718 Please also contact <pgsql-ports@postgresql.org> to see about
719 rectifying this. Include the above 'checking host system type...'
721 *******************************************************************
728 echo "$ac_t""$template" 1>&6
738 # Pick right test-and-set (TAS) code. Most platforms have inline
739 # assembler code in src/include/storage/s_lock.h, so we just use
742 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
743 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
744 i?86-*-solaris) need_tas=yes; tas_file=solaris_i386.s ;;
745 *) need_tas=no; tas_file=dummy.s ;;
749 if test "$need_tas" = yes ; then
757 ## Command line options
762 # Add non-standard directories to the include path
764 # Check whether --with-includes was given
765 if test x"${with_includes+set}" = xset; then
766 case $with_includes in
768 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
771 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
773 esac # $with_includes
778 # Add non-standard directories to the library search path
780 # Check whether --with-libraries was given
781 if test x"${with_libraries+set}" = xset; then
782 case $with_libraries in
784 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
787 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
790 withval=$with_libraries
791 LIBRARY_DIRS=$withval
793 esac # $with_libraries
796 # Check whether --with-libs was given
797 if test x"${with_libs+set}" = xset; then
800 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
803 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
807 LIBRARY_DIRS=$withval
814 # Locale (--enable-locale)
816 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
817 echo "configure:818: checking whether to build with locale support" >&5
818 # Check whether --enable-locale was given
819 if test x"${enable_locale+set}" = xset; then
820 case $enable_locale in
822 cat >> confdefs.h <<\EOF
831 enableval=$enable_locale
832 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
834 esac # $enable_locale
839 echo "$ac_t""$enable_locale" 1>&6
843 # Character set recode (--enable-recode)
845 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
846 echo "configure:847: checking whether to build with recode support" >&5
847 # Check whether --enable-recode was given
848 if test x"${enable_recode+set}" = xset; then
849 case $enable_recode in
851 cat >> confdefs.h <<\EOF
860 enableval=$enable_recode
861 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
863 esac # $enable_recode
868 echo "$ac_t""$enable_recode" 1>&6
875 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
876 echo "configure:877: checking whether to build with multibyte character support" >&5
878 # Check whether --enable-multibyte was given
879 if test x"${enable_multibyte+set}" = xset; then
880 case $enable_multibyte in
888 enableval=$enable_multibyte
892 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
893 MULTIBYTE=$enableval;;
895 { echo "configure: error: argument to --enable-multibyte must be one of:
896 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
897 UNICODE, MULE_INTERNAL,
898 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
900 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
904 esac # $enable_multibyte
909 if test "$enable_multibyte" = yes; then
911 cat >> confdefs.h <<\EOF
915 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
918 echo "$ac_t""no" 1>&6
925 # Unicode conversion (--enable-unicode-conversion)
927 echo $ac_n "checking whether to build with Unicode conversion support""... $ac_c" 1>&6
928 echo "configure:929: checking whether to build with Unicode conversion support" >&5
929 # Check whether --enable-unicode-conversion was given
930 if test x"${enable_unicode_conversion+set}" = xset; then
931 case $enable_unicode_conversion in
933 if test -z "$MULTIBYTE"; then
934 { echo "configure: error: --enable-unicode-conversion only works with --enable-multibyte" 1>&2; exit 1; }
936 cat >> confdefs.h <<\EOF
937 #define UNICODE_CONVERSION 1
945 enableval=$enable_unicode_conversion
946 { echo "configure: error: no argument expected for --enable-unicode-conversion option" 1>&2; exit 1; }
948 esac # $enable_unicode_conversion
950 enable_unicode_conversion=no
953 echo "$ac_t""$enable_unicode_conversion" 1>&6
956 # Default port number (--with-pgport), default 5432
958 echo $ac_n "checking for default port number""... $ac_c" 1>&6
959 echo "configure:960: checking for default port number" >&5
960 # Check whether --with-pgport was given
961 if test x"${with_pgport+set}" = xset; then
964 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
967 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
971 default_port=$withval
977 echo "$ac_t""$default_port" 1>&6
978 # Need both of these because some places want an integer and some a string
979 cat >> confdefs.h <<EOF
980 #define DEF_PGPORT ${default_port}
983 cat >> confdefs.h <<EOF
984 #define DEF_PGPORT_STR "${default_port}"
990 # Maximum number of allowed connections (--with-maxbackends), default 32
992 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
993 echo "configure:994: checking for default soft limit on number of connections" >&5
994 # Check whether --with-maxbackends was given
995 if test x"${with_maxbackends+set}" = xset; then
996 case $with_maxbackends in
998 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1001 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1003 esac # $with_maxbackends
1007 echo "$ac_t""$with_maxbackends" 1>&6
1008 cat >> confdefs.h <<EOF
1009 #define DEF_MAXBACKENDS $with_maxbackends
1015 # Option to disable shared libraries
1017 # Check whether --enable-shared was given
1018 if test x"${enable_shared+set}" = xset; then
1019 case $enable_shared in
1027 enableval=$enable_shared
1028 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
1030 esac # $enable_shared
1038 # '-rpath'-like feature can be disabled
1040 # Check whether --enable-rpath was given
1041 if test x"${enable_rpath+set}" = xset; then
1042 case $enable_rpath in
1050 enableval=$enable_rpath
1051 { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
1053 esac # $enable_rpath
1062 # --enable-debug adds -g to compiler flags
1064 # Check whether --enable-debug was given
1065 if test x"${enable_debug+set}" = xset; then
1066 case $enable_debug in
1074 enableval=$enable_debug
1075 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1077 esac # $enable_debug
1088 # For historical reasons you can also use --with-CC to specify the C compiler
1089 # to use, although the standard way to do this is to set the CC environment
1091 # Check whether --with-CC was given
1092 if test x"${with_CC+set}" = xset; then
1095 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1098 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1107 # On AIX, default compiler to xlc.
1108 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1110 # Save CFLAGS from the environment
1111 has_environ_CFLAGS="${CFLAGS+yes}"
1114 # Extract the first word of "gcc", so it can be a program name with args.
1115 set dummy gcc; ac_word=$2
1116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1117 echo "configure:1118: checking for $ac_word" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 if test -n "$CC"; then
1122 ac_cv_prog_CC="$CC" # Let the user override the test.
1124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1126 for ac_dir in $ac_dummy; do
1127 test -z "$ac_dir" && ac_dir=.
1128 if test -f $ac_dir/$ac_word; then
1137 if test -n "$CC"; then
1138 echo "$ac_t""$CC" 1>&6
1140 echo "$ac_t""no" 1>&6
1143 if test -z "$CC"; then
1144 # Extract the first word of "cc", so it can be a program name with args.
1145 set dummy cc; ac_word=$2
1146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1147 echo "configure:1148: checking for $ac_word" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 if test -n "$CC"; then
1152 ac_cv_prog_CC="$CC" # Let the user override the test.
1154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1160 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1161 ac_prog_rejected=yes
1169 if test $ac_prog_rejected = yes; then
1170 # We found a bogon in the path, so make sure we never use it.
1171 set dummy $ac_cv_prog_CC
1173 if test $# -gt 0; then
1174 # We chose a different compiler from the bogus one.
1175 # However, it has the same basename, so the bogon will be chosen
1176 # first if we set CC to just the basename; use the full file name.
1178 set dummy "$ac_dir/$ac_word" "$@"
1186 if test -n "$CC"; then
1187 echo "$ac_t""$CC" 1>&6
1189 echo "$ac_t""no" 1>&6
1192 if test -z "$CC"; then
1193 case "`uname -s`" in
1195 # Extract the first word of "cl", so it can be a program name with args.
1196 set dummy cl; ac_word=$2
1197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1198 echo "configure:1199: checking for $ac_word" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 if test -n "$CC"; then
1203 ac_cv_prog_CC="$CC" # Let the user override the test.
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1207 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word; then
1218 if test -n "$CC"; then
1219 echo "$ac_t""$CC" 1>&6
1221 echo "$ac_t""no" 1>&6
1226 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1229 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1230 echo "configure:1231: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1233 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1234 ac_cpp='$CPP $CPPFLAGS'
1235 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1236 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1237 cross_compiling=$ac_cv_prog_cc_cross
1239 cat > conftest.$ac_ext << EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1246 if { (eval echo configure:1247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1247 ac_cv_prog_cc_works=yes
1248 # If we can't run a trivial program, we are probably using a cross compiler.
1249 if (./conftest; exit) 2>/dev/null; then
1250 ac_cv_prog_cc_cross=no
1252 ac_cv_prog_cc_cross=yes
1255 echo "configure: failed program was:" >&5
1256 cat conftest.$ac_ext >&5
1257 ac_cv_prog_cc_works=no
1261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1262 ac_cpp='$CPP $CPPFLAGS'
1263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1265 cross_compiling=$ac_cv_prog_cc_cross
1267 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1268 if test $ac_cv_prog_cc_works = no; then
1269 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1271 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1272 echo "configure:1273: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1273 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1274 cross_compiling=$ac_cv_prog_cc_cross
1276 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1277 echo "configure:1278: checking whether we are using GNU C" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1281 cat > conftest.c <<EOF
1286 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1293 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1295 if test $ac_cv_prog_gcc = yes; then
1301 ac_test_CFLAGS="${CFLAGS+set}"
1302 ac_save_CFLAGS="$CFLAGS"
1304 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1305 echo "configure:1306: checking whether ${CC-cc} accepts -g" >&5
1306 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 echo 'void f(){}' > conftest.c
1310 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1319 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1320 if test "$ac_test_CFLAGS" = set; then
1321 CFLAGS="$ac_save_CFLAGS"
1322 elif test $ac_cv_prog_cc_g = yes; then
1323 if test "$GCC" = yes; then
1329 if test "$GCC" = yes; then
1337 . "$srcdir/src/template/$template" || exit
1339 if test "$has_environ_CFLAGS" = yes; then
1342 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
1345 echo "using CFLAGS=$CFLAGS"
1346 # Check if the compiler still works with the template settings
1347 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1348 echo "configure:1349: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1351 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1352 ac_cpp='$CPP $CPPFLAGS'
1353 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1354 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1355 cross_compiling=$ac_cv_prog_cc_cross
1357 cat > conftest.$ac_ext << EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1364 if { (eval echo configure:1365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1365 ac_cv_prog_cc_works=yes
1366 # If we can't run a trivial program, we are probably using a cross compiler.
1367 if (./conftest; exit) 2>/dev/null; then
1368 ac_cv_prog_cc_cross=no
1370 ac_cv_prog_cc_cross=yes
1373 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5
1375 ac_cv_prog_cc_works=no
1379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1380 ac_cpp='$CPP $CPPFLAGS'
1381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1383 cross_compiling=$ac_cv_prog_cc_cross
1385 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1386 if test $ac_cv_prog_cc_works = no; then
1387 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1389 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1390 echo "configure:1391: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1391 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1392 cross_compiling=$ac_cv_prog_cc_cross
1394 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1395 echo "configure:1396: checking for Cygwin environment" >&5
1396 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1406 #define __CYGWIN__ __CYGWIN32__
1411 if { (eval echo configure:1412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1424 echo "$ac_t""$ac_cv_cygwin" 1>&6
1426 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1427 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1428 echo "configure:1429: checking for mingw32 environment" >&5
1429 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1440 if { (eval echo configure:1441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1444 echo "configure: failed program was:" >&5
1445 cat conftest.$ac_ext >&5
1453 echo "$ac_t""$ac_cv_mingw32" 1>&6
1455 test "$ac_cv_mingw32" = yes && MINGW32=yes
1458 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1459 echo "configure:1460: checking for executable suffix" >&5
1460 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1467 echo 'int main () { return 0; }' > conftest.$ac_ext
1469 if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1470 for file in conftest.*; do
1472 *.c | *.o | *.obj) ;;
1473 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1477 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1480 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1485 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1486 echo "$ac_t""${ac_cv_exeext}" 1>&6
1489 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1490 echo "configure:1491: checking how to run the C preprocessor" >&5
1491 # On Suns, sometimes $CPP names a directory.
1492 if test -n "$CPP" && test -d "$CPP"; then
1495 if test -z "$CPP"; then
1496 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 # This must be in double quotes, not single quotes, because CPP may get
1500 # substituted into the Makefile and "${CC-cc}" will confuse make.
1502 # On the NeXT, cc -E runs the code through the compiler's parser,
1503 # not just through cpp.
1504 cat > conftest.$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1511 { (eval echo configure:1512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1513 if test -z "$ac_err"; then
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1520 CPP="${CC-cc} -E -traditional-cpp"
1521 cat > conftest.$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1528 { (eval echo configure:1529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1530 if test -z "$ac_err"; then
1534 echo "configure: failed program was:" >&5
1535 cat conftest.$ac_ext >&5
1537 CPP="${CC-cc} -nologo -E"
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1545 { (eval echo configure:1546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1547 if test -z "$ac_err"; then
1551 echo "configure: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1561 ac_cv_prog_CPP="$CPP"
1563 CPP="$ac_cv_prog_CPP"
1565 ac_cv_prog_CPP="$CPP"
1567 echo "$ac_t""$CPP" 1>&6
1569 if test $ac_cv_prog_gcc = yes; then
1570 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1571 echo "configure:1572: checking whether ${CC-cc} needs -traditional" >&5
1572 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1573 echo $ac_n "(cached) $ac_c" 1>&6
1575 ac_pattern="Autoconf.*'x'"
1576 cat > conftest.$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1583 egrep "$ac_pattern" >/dev/null 2>&1; then
1585 ac_cv_prog_gcc_traditional=yes
1588 ac_cv_prog_gcc_traditional=no
1593 if test $ac_cv_prog_gcc_traditional = no; then
1594 cat > conftest.$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1601 egrep "$ac_pattern" >/dev/null 2>&1; then
1603 ac_cv_prog_gcc_traditional=yes
1610 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1611 if test $ac_cv_prog_gcc_traditional = yes; then
1612 CC="$CC -traditional"
1618 # Create compiler version string
1619 if test x"$GCC" = x"yes" ; then
1620 cc_string="GCC `${CC} --version`"
1624 cat >> confdefs.h <<EOF
1625 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1631 # Automatic dependency tracking
1633 # Check whether --enable-depend was given
1634 if test x"${enable_depend+set}" = xset; then
1635 case $enable_depend in
1643 enableval=$enable_depend
1644 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1646 esac # $enable_depend
1655 # Enable assert checks
1657 # Check whether --enable-cassert was given
1658 if test x"${enable_cassert+set}" = xset; then
1659 case $enable_cassert in
1661 cat >> confdefs.h <<\EOF
1662 #define USE_ASSERT_CHECKING 1
1670 enableval=$enable_cassert
1671 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1673 esac # $enable_cassert
1681 # Include directories
1685 # SRCH_INC comes from the template file
1686 for dir in $with_includes $SRCH_INC; do
1687 if test -d "$dir"; then
1688 INCLUDES="$INCLUDES -I$dir"
1690 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1698 # Library directories
1702 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1703 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1704 if test -d "$dir"; then
1705 LIBDIRS="$LIBDIRS -L$dir"
1707 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1716 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1717 echo "configure:1718: checking whether to build with Tcl" >&5
1718 # Check whether --with-tcl was given
1719 if test x"${with_tcl+set}" = xset; then
1729 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1736 echo "$ac_t""$with_tcl" 1>&6
1739 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1740 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1741 echo "configure:1742: checking whether to build with Tk" >&5
1742 if test "$with_tcl" = yes; then
1743 # Check whether --with-tk was given
1744 if test x"${with_tk+set}" = xset; then
1754 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1764 echo "$ac_t""$with_tk" 1>&6
1768 # We see if the path to the TCL/TK configuration scripts is specified.
1769 # This will override the use of tclsh to find the paths to search.
1771 # Check whether --with-tclconfig was given
1772 if test x"${with_tclconfig+set}" = xset; then
1773 case $with_tclconfig in
1775 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1778 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1780 esac # $with_tclconfig
1783 # We see if the path to the TK configuration scripts is specified.
1784 # This will override the use of tclsh to find the paths to search.
1786 # Check whether --with-tkconfig was given
1787 if test x"${with_tkconfig+set}" = xset; then
1788 case $with_tkconfig in
1790 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1793 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1795 esac # $with_tkconfig
1800 # Optionally build Perl modules (Pg.pm and PL/Perl)
1802 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1803 echo "configure:1804: checking whether to build Perl modules" >&5
1804 # Check whether --with-perl was given
1805 if test x"${with_perl+set}" = xset; then
1815 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1822 echo "$ac_t""$with_perl" 1>&6
1827 # Optionally build Python interface module
1829 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1830 echo "configure:1831: checking whether to build Python modules" >&5
1831 # Check whether --with-python was given
1832 if test x"${with_python+set}" = xset; then
1833 case $with_python in
1835 echo "$ac_t""yes" 1>&6
1836 # Extract the first word of "python", so it can be a program name with args.
1837 set dummy python; ac_word=$2
1838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1839 echo "configure:1840: checking for $ac_word" >&5
1840 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 if test -n "$PYTHON"; then
1844 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1848 for ac_dir in $ac_dummy; do
1849 test -z "$ac_dir" && ac_dir=.
1850 if test -f $ac_dir/$ac_word; then
1851 ac_cv_prog_PYTHON="python"
1858 PYTHON="$ac_cv_prog_PYTHON"
1859 if test -n "$PYTHON"; then
1860 echo "$ac_t""$PYTHON" 1>&6
1862 echo "$ac_t""no" 1>&6
1866 if test "${PYTHON+set}" = set ; then
1867 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
1868 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
1869 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
1870 python_configdir="${python_execprefix}/lib/python${python_version}/config"
1871 python_moduledir="${python_prefix}/lib/python${python_version}"
1872 python_extmakefile="${python_configdir}/Makefile.pre.in"
1874 echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1875 echo "configure:1876: checking for Python extension makefile" >&5
1876 if test -f "${python_extmakefile}" ; then
1877 echo "$ac_t""found" 1>&6
1879 echo "$ac_t""no" 1>&6
1880 { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
1881 but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
1891 { echo "configure: error: Python not found" 1>&2; exit 1; }
1895 echo "$ac_t""no" 1>&6
1898 withval=$with_python
1899 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1904 echo "$ac_t""no" 1>&6
1909 # Optionally build the Java/JDBC tools
1911 echo $ac_n "checking whether to build Java/JDBC tools""... $ac_c" 1>&6
1912 echo "configure:1913: checking whether to build Java/JDBC tools" >&5
1913 # Check whether --with-java was given
1914 if test x"${with_java+set}" = xset; then
1917 echo "$ac_t""yes" 1>&6
1918 for ac_prog in ant ant.sh ant.bat
1920 # Extract the first word of "$ac_prog", so it can be a program name with args.
1921 set dummy $ac_prog; ac_word=$2
1922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1923 echo "configure:1924: checking for $ac_word" >&5
1924 if eval "test \"`echo '$''{'ac_cv_path_ANT'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1929 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
1932 ac_cv_path_ANT="$ANT" # Let the user override the test with a dos path.
1935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1937 for ac_dir in $ac_dummy; do
1938 test -z "$ac_dir" && ac_dir=.
1939 if test -f $ac_dir/$ac_word; then
1940 ac_cv_path_ANT="$ac_dir/$ac_word"
1948 ANT="$ac_cv_path_ANT"
1949 if test -n "$ANT"; then
1950 echo "$ac_t""$ANT" 1>&6
1952 echo "$ac_t""no" 1>&6
1955 test -n "$ANT" && break
1958 if test -z "$ANT"; then
1959 { echo "configure: error: Ant is required to build Java components" 1>&2; exit 1; }
1963 echo "$ac_t""no" 1>&6
1967 { echo "configure: error: no argument expected for --with-java option" 1>&2; exit 1; }
1972 echo "$ac_t""no" 1>&6
1980 # Check whether --with-krb4 was given
1981 if test x"${with_krb4+set}" = xset; then
1984 krb4_prefix=/usr/athena
1992 krb4_prefix=$withval
1999 if test "$with_krb4" = yes; then
2001 echo "$ac_t""building with Kerberos 4 support" 1>&6
2002 cat >> confdefs.h <<\EOF
2007 if test -d "$krb4_prefix/include"; then
2008 INCLUDES="$INCLUDES -I$krb4_prefix/include"
2010 if test -d "$krb4_prefix/lib"; then
2011 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
2014 krb_srvtab="/etc/srvtab"
2025 # Check whether --with-krb5 was given
2026 if test x"${with_krb5+set}" = xset; then
2029 krb5_prefix=/usr/athena
2037 krb5_prefix=$withval
2044 if test "$with_krb5" = yes; then
2046 echo "$ac_t""building with Kerberos 5 support" 1>&6
2047 cat >> confdefs.h <<\EOF
2052 if test -d "$krb5_prefix/include"; then
2053 INCLUDES="$INCLUDES -I$krb5_prefix/include"
2055 if test -d "$krb5_prefix/lib"; then
2056 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
2059 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
2067 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
2068 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
2069 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2076 # Kerberos configuration parameters
2078 # Check whether --with-krb-srvnam was given
2079 if test x"${with_krb_srvnam+set}" = xset; then
2080 case $with_krb_srvnam in
2082 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2085 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2087 esac # $with_krb_srvnam
2089 with_krb_srvnam="postgres"
2091 cat >> confdefs.h <<EOF
2092 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2101 # Check whether --with-openssl was given
2102 if test x"${with_openssl+set}" = xset; then
2103 case $with_openssl in
2105 openssl_prefix=/usr/local/ssl
2111 withval=$with_openssl
2113 openssl_prefix=$withval
2115 esac # $with_openssl
2120 if test "$with_openssl" = yes; then
2122 echo "$ac_t""building with OpenSSL support" 1>&6
2123 cat >> confdefs.h <<\EOF
2128 if test -d "${openssl_prefix}/include" ; then
2129 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2131 if test -d "${openssl_prefix}/lib" ; then
2132 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2143 # Optionally enable the building of the ODBC driver
2147 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2148 enable_odbc=$with_odbc
2151 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2152 echo "configure:2153: checking whether to build the ODBC driver" >&5
2153 # Check whether --enable-odbc was given
2154 if test x"${enable_odbc+set}" = xset; then
2155 case $enable_odbc in
2163 enableval=$enable_odbc
2164 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2171 echo "$ac_t""$enable_odbc" 1>&6
2175 # Allow for overriding the default location of the odbcinst.ini
2176 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2177 # Check whether --with-odbcinst was given
2178 if test x"${with_odbcinst+set}" = xset; then
2179 case $with_odbcinst in
2181 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2184 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2187 withval=$with_odbcinst
2188 odbcinst_ini_dir=$withval
2190 esac # $with_odbcinst
2192 odbcinst_ini_dir="\${sysconfdir}"
2198 # Assume system is ELF if it predefines __ELF__ as 1,
2199 # otherwise believe host_os based default.
2201 freebsd1*|freebsd2*) elf=yes;;
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2213 egrep "yes" >/dev/null 2>&1; then
2218 if test "X$elf" = "Xyes" ; then
2231 # Optionally build C++ code (i.e., libpq++)
2233 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2234 echo "configure:2235: checking whether to build C++ modules" >&5
2235 # Check whether --with-CXX was given
2236 if test x"${with_CXX+set}" = xset; then
2254 if test "$with_CXX" = yes; then
2256 echo "$ac_t""yes" 1>&6
2258 # If the user has specified CXXFLAGS in the environment, leave it
2259 # alone, else use a default.
2261 has_environ_CXXFLAGS="${CXXFLAGS+yes}"
2262 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2264 # Extract the first word of "$ac_prog", so it can be a program name with args.
2265 set dummy $ac_prog; ac_word=$2
2266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2267 echo "configure:2268: checking for $ac_word" >&5
2268 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 if test -n "$CXX"; then
2272 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2276 for ac_dir in $ac_dummy; do
2277 test -z "$ac_dir" && ac_dir=.
2278 if test -f $ac_dir/$ac_word; then
2279 ac_cv_prog_CXX="$ac_prog"
2286 CXX="$ac_cv_prog_CXX"
2287 if test -n "$CXX"; then
2288 echo "$ac_t""$CXX" 1>&6
2290 echo "$ac_t""no" 1>&6
2293 test -n "$CXX" && break
2295 test -n "$CXX" || CXX="gcc"
2298 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2299 echo "configure:2300: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2303 ac_cpp='$CXXCPP $CPPFLAGS'
2304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2306 cross_compiling=$ac_cv_prog_cxx_cross
2308 cat > conftest.$ac_ext << EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2313 int main(){return(0);}
2315 if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2316 ac_cv_prog_cxx_works=yes
2317 # If we can't run a trivial program, we are probably using a cross compiler.
2318 if (./conftest; exit) 2>/dev/null; then
2319 ac_cv_prog_cxx_cross=no
2321 ac_cv_prog_cxx_cross=yes
2324 echo "configure: failed program was:" >&5
2325 cat conftest.$ac_ext >&5
2326 ac_cv_prog_cxx_works=no
2330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2334 cross_compiling=$ac_cv_prog_cc_cross
2336 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2337 if test $ac_cv_prog_cxx_works = no; then
2338 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2340 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2341 echo "configure:2342: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2342 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2343 cross_compiling=$ac_cv_prog_cxx_cross
2345 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2346 echo "configure:2347: checking whether we are using GNU C++" >&5
2347 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 cat > conftest.C <<EOF
2355 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2362 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2364 if test $ac_cv_prog_gxx = yes; then
2370 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2371 ac_save_CXXFLAGS="$CXXFLAGS"
2373 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2374 echo "configure:2375: checking whether ${CXX-g++} accepts -g" >&5
2375 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2376 echo $ac_n "(cached) $ac_c" 1>&6
2378 echo 'void f(){}' > conftest.cc
2379 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2380 ac_cv_prog_cxx_g=yes
2388 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2389 if test "$ac_test_CXXFLAGS" = set; then
2390 CXXFLAGS="$ac_save_CXXFLAGS"
2391 elif test $ac_cv_prog_cxx_g = yes; then
2392 if test "$GXX" = yes; then
2398 if test "$GXX" = yes; then
2405 if test "$has_environ_CXXFLAGS" != yes; then
2406 if test "$GXX" = yes; then
2410 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
2411 unixware) CXXFLAGS='-O' ;;
2416 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
2417 CXXFLAGS="$CXXFLAGS -g"
2419 echo "using CXXFLAGS=$CXXFLAGS"
2421 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2422 echo "configure:2423: checking how to run the C++ preprocessor" >&5
2423 if test -z "$CXXCPP"; then
2424 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2429 ac_cpp='$CXXCPP $CPPFLAGS'
2430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2432 cross_compiling=$ac_cv_prog_cxx_cross
2433 CXXCPP="${CXX-g++} -E"
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2440 { (eval echo configure:2441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2442 if test -z "$ac_err"; then
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2452 ac_cv_prog_CXXCPP="$CXXCPP"
2454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2458 cross_compiling=$ac_cv_prog_cc_cross
2461 CXXCPP="$ac_cv_prog_CXXCPP"
2462 echo "$ac_t""$CXXCPP" 1>&6
2467 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2468 ac_cpp='$CXXCPP $CPPFLAGS'
2469 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2470 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2471 cross_compiling=$ac_cv_prog_cxx_cross
2473 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2474 echo $ac_n "checking for string""... $ac_c" 1>&6
2475 echo "configure:2476: checking for string" >&5
2476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2479 cat > conftest.$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2485 { (eval echo configure:2486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2487 if test -z "$ac_err"; then
2489 eval "ac_cv_header_$ac_safe=yes"
2492 echo "configure: failed program was:" >&5
2493 cat conftest.$ac_ext >&5
2495 eval "ac_cv_header_$ac_safe=no"
2499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2500 echo "$ac_t""yes" 1>&6
2501 cat >> confdefs.h <<\EOF
2502 #define HAVE_CXX_STRING_HEADER 1
2506 echo "$ac_t""no" 1>&6
2510 if test x"$ac_cv_header_string" != xyes ; then
2511 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2512 echo "configure:2513: checking for class string in <string.h>" >&5
2513 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2527 if { (eval echo configure:2528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2529 pgac_cv_class_string_in_string_h=yes
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2534 pgac_cv_class_string_in_string_h=no
2539 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2541 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2542 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2549 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2550 cross_compiling=$ac_cv_prog_cc_cross
2553 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2554 echo "configure:2555: checking for namespace std in C++" >&5
2555 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2562 ac_cpp='$CXXCPP $CPPFLAGS'
2563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2565 cross_compiling=$ac_cv_prog_cxx_cross
2567 cat > conftest.$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2572 #ifdef HAVE_CXX_STRING_HEADER
2575 using namespace std;
2581 if { (eval echo configure:2582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2583 pgac_cv_cxx_namespace_std=yes
2585 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2588 pgac_cv_cxx_namespace_std=no
2592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2593 ac_cpp='$CPP $CPPFLAGS'
2594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2596 cross_compiling=$ac_cv_prog_cc_cross
2600 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2602 if test $pgac_cv_cxx_namespace_std = yes ; then
2603 cat >> confdefs.h <<\EOF
2604 #define HAVE_NAMESPACE_STD 1
2610 echo "$ac_t""no" 1>&6
2615 CPPFLAGS="$CPPFLAGS $INCLUDES"
2616 LDFLAGS="$LDFLAGS $LIBDIRS"
2618 echo "using CPPFLAGS=$CPPFLAGS"
2619 echo "using LDFLAGS=$LDFLAGS"
2622 for ac_prog in mawk gawk nawk awk
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2627 echo "configure:2628: checking for $ac_word" >&5
2628 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 if test -n "$AWK"; then
2632 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2636 for ac_dir in $ac_dummy; do
2637 test -z "$ac_dir" && ac_dir=.
2638 if test -f $ac_dir/$ac_word; then
2639 ac_cv_prog_AWK="$ac_prog"
2646 AWK="$ac_cv_prog_AWK"
2647 if test -n "$AWK"; then
2648 echo "$ac_t""$AWK" 1>&6
2650 echo "$ac_t""no" 1>&6
2653 test -n "$AWK" && break
2656 echo $ac_n "checking for flex""... $ac_c" 1>&6
2657 echo "configure:2658: checking for flex" >&5
2658 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 # Let the user override the test
2662 if test -n "$FLEX"; then
2663 pgac_cv_path_flex=$FLEX
2667 for pgac_dir in $PATH; do
2668 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2671 for pgac_prog in flex lex; do
2672 pgac_candidate="$pgac_dir/$pgac_prog"
2673 if test -f "$pgac_candidate" \
2674 && $pgac_candidate --version </dev/null >/dev/null 2>&1
2676 echo '%%' > conftest.l
2677 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2678 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2679 pgac_broken_flex=$pgac_candidate
2683 pgac_cv_path_flex=$pgac_candidate
2691 : ${pgac_cv_path_flex=no}
2696 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2697 if test x"$pgac_cv_path_flex" = x"no"; then
2698 if test -n "$pgac_broken_flex"; then
2699 echo "configure: warning:
2700 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2701 *** should get version 2.5.4 or later." 1>&2
2704 echo "configure: warning:
2705 *** Without Flex you will not be able to build PostgreSQL from CVS or
2706 *** change any of the scanner definition files. You can obtain Flex from
2707 *** a GNU mirror site. (If you are using the official distribution of
2708 *** PostgreSQL then you do not need to worry about this because the Flex
2709 *** output is pre-generated.)" 1>&2
2712 if test x"$pgac_cv_path_flex" = x"no"; then
2715 FLEX=$pgac_cv_path_flex
2721 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2722 echo "configure:2723: checking whether ln -s works" >&5
2723 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2727 if ln -s X conftestdata 2>/dev/null
2730 ac_cv_prog_LN_S="ln -s"
2735 LN_S="$ac_cv_prog_LN_S"
2736 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2737 echo "$ac_t""yes" 1>&6
2739 echo "$ac_t""no" 1>&6
2742 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2743 if test "${with_gnu_ld+set}" = set; then
2744 withval="$with_gnu_ld"
2745 test "$withval" = no || with_gnu_ld=yes
2751 if test "$ac_cv_prog_gcc" = yes; then
2752 # Check if gcc -print-prog-name=ld gives a path.
2753 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2754 echo "configure:2755: checking for ld used by GCC" >&5
2757 # gcc leaves a trailing carriage return which upsets mingw
2758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2763 # Accept absolute paths.
2764 [\\/]* | [A-Za-z]:[\\/]*)
2765 re_direlt='/[^/][^/]*/\.\./'
2766 # Canonicalize the path of ld
2767 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2768 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2769 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2771 test -z "$LD" && LD="$ac_prog"
2774 # If it fails, then pretend we aren't using GCC.
2778 # If it is relative, then search for the first ld in PATH.
2782 elif test "$with_gnu_ld" = yes; then
2783 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2784 echo "configure:2785: checking for GNU ld" >&5
2786 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2787 echo "configure:2788: checking for non-GNU ld" >&5
2789 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 if test -z "$LD"; then
2793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2794 for ac_dir in $PATH; do
2795 test -z "$ac_dir" && ac_dir=.
2796 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2797 ac_cv_path_LD="$ac_dir/$ac_prog"
2798 # Check to see if the program is GNU ld. I'd rather use --version,
2799 # but apparently some GNU ld's only accept -v.
2800 # Break only if it was the GNU/non-GNU ld that we prefer.
2801 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2802 test "$with_gnu_ld" != no && break
2804 test "$with_gnu_ld" != yes && break
2810 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2815 if test -n "$LD"; then
2816 echo "$ac_t""$LD" 1>&6
2818 echo "$ac_t""no" 1>&6
2820 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2821 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2822 echo "configure:2823: checking if the linker ($LD) is GNU ld" >&5
2823 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2827 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2828 ac_cv_prog_gnu_ld=yes
2830 ac_cv_prog_gnu_ld=no
2834 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2835 with_gnu_ld=$ac_cv_prog_gnu_ld
2840 case $host_os in sysv5uw*)
2841 echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
2842 echo "configure:2843: checking whether ld -R works" >&5
2843 if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2847 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2856 if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2858 pgac_cv_prog_ld_R=yes
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2863 pgac_cv_prog_ld_R=no
2866 LDFLAGS=$pgac_save_LDFLAGS
2870 echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
2871 ld_R_works=$pgac_cv_prog_ld_R
2874 # Extract the first word of "ranlib", so it can be a program name with args.
2875 set dummy ranlib; ac_word=$2
2876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2877 echo "configure:2878: checking for $ac_word" >&5
2878 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 if test -n "$RANLIB"; then
2882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2886 for ac_dir in $ac_dummy; do
2887 test -z "$ac_dir" && ac_dir=.
2888 if test -f $ac_dir/$ac_word; then
2889 ac_cv_prog_RANLIB="ranlib"
2894 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2897 RANLIB="$ac_cv_prog_RANLIB"
2898 if test -n "$RANLIB"; then
2899 echo "$ac_t""$RANLIB" 1>&6
2901 echo "$ac_t""no" 1>&6
2904 for ac_prog in lorder
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907 set dummy $ac_prog; ac_word=$2
2908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2909 echo "configure:2910: checking for $ac_word" >&5
2910 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2913 if test -n "$LORDER"; then
2914 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
2916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2918 for ac_dir in $ac_dummy; do
2919 test -z "$ac_dir" && ac_dir=.
2920 if test -f $ac_dir/$ac_word; then
2921 ac_cv_prog_LORDER="$ac_prog"
2928 LORDER="$ac_cv_prog_LORDER"
2929 if test -n "$LORDER"; then
2930 echo "$ac_t""$LORDER" 1>&6
2932 echo "$ac_t""no" 1>&6
2935 test -n "$LORDER" && break
2938 # Extract the first word of "tar", so it can be a program name with args.
2939 set dummy tar; ac_word=$2
2940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2941 echo "configure:2942: checking for $ac_word" >&5
2942 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2947 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2950 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
2953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2955 for ac_dir in $ac_dummy; do
2956 test -z "$ac_dir" && ac_dir=.
2957 if test -f $ac_dir/$ac_word; then
2958 ac_cv_path_TAR="$ac_dir/$ac_word"
2966 TAR="$ac_cv_path_TAR"
2967 if test -n "$TAR"; then
2968 echo "$ac_t""$TAR" 1>&6
2970 echo "$ac_t""no" 1>&6
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy $ac_prog; ac_word=$2
2977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2978 echo "configure:2979: checking for $ac_word" >&5
2979 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2982 if test -n "$PERL"; then
2983 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2987 for ac_dir in $ac_dummy; do
2988 test -z "$ac_dir" && ac_dir=.
2989 if test -f $ac_dir/$ac_word; then
2990 ac_cv_prog_PERL="$ac_prog"
2997 PERL="$ac_cv_prog_PERL"
2998 if test -n "$PERL"; then
2999 echo "$ac_t""$PERL" 1>&6
3001 echo "$ac_t""no" 1>&6
3004 test -n "$PERL" && break
3008 for ac_prog in 'bison -y'
3010 # Extract the first word of "$ac_prog", so it can be a program name with args.
3011 set dummy $ac_prog; ac_word=$2
3012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3013 echo "configure:3014: checking for $ac_word" >&5
3014 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3017 if test -n "$YACC"; then
3018 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3022 for ac_dir in $ac_dummy; do
3023 test -z "$ac_dir" && ac_dir=.
3024 if test -f $ac_dir/$ac_word; then
3025 ac_cv_prog_YACC="$ac_prog"
3032 YACC="$ac_cv_prog_YACC"
3033 if test -n "$YACC"; then
3034 echo "$ac_t""$YACC" 1>&6
3036 echo "$ac_t""no" 1>&6
3039 test -n "$YACC" && break
3042 if test -z "$YACC"; then
3043 echo "configure: warning:
3044 *** Without Bison you will not be able to build PostgreSQL from CVS or
3045 *** change any of the parser definition files. You can obtain Bison from
3046 *** a GNU mirror site. (If you are using the official distribution of
3047 *** PostgreSQL then you do not need to worry about this because the Bison
3048 *** output is pre-generated.) To use a different yacc program (possible,
3049 *** but not recommended), set the environment variable YACC before running
3050 *** 'configure'." 1>&2
3054 if test "$with_tk" = yes; then
3055 # Extract the first word of "wish", so it can be a program name with args.
3056 set dummy wish; ac_word=$2
3057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3058 echo "configure:3059: checking for $ac_word" >&5
3059 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3064 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3067 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3072 for ac_dir in $ac_dummy; do
3073 test -z "$ac_dir" && ac_dir=.
3074 if test -f $ac_dir/$ac_word; then
3075 ac_cv_path_WISH="$ac_dir/$ac_word"
3083 WISH="$ac_cv_path_WISH"
3084 if test -n "$WISH"; then
3085 echo "$ac_t""$WISH" 1>&6
3087 echo "$ac_t""no" 1>&6
3090 test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
3098 echo $ac_n "checking for readline""... $ac_c" 1>&6
3099 echo "configure:3100: checking for readline" >&5
3101 if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 pgac_cv_check_readline=no
3105 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3106 for pgac_rllib in -lreadline -ledit ; do
3107 pgac_save_LIBS=$LIBS
3108 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 /* Override any gcc2 internal prototype to avoid an error. */
3113 /* We use char because int might match the return type of a gcc2
3114 builtin and then its argument prototype would still apply. */
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3123 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3129 LIBS=$pgac_save_LIBS
3132 LIBS=$pgac_save_LIBS
3136 if test "$pgac_cv_check_readline" != no ; then
3137 cat >> confdefs.h <<\EOF
3138 #define HAVE_LIBREADLINE 1
3141 LIBS="$pgac_cv_check_readline $LIBS"
3142 echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
3144 echo "$ac_t""no" 1>&6
3147 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3148 echo "configure:3149: checking for library containing using_history" >&5
3149 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3152 ac_func_search_save_LIBS="$LIBS"
3153 ac_cv_search_using_history="no"
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3157 /* Override any gcc2 internal prototype to avoid an error. */
3158 /* We use char because int might match the return type of a gcc2
3159 builtin and then its argument prototype would still apply. */
3160 char using_history();
3166 if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3168 ac_cv_search_using_history="none required"
3170 echo "configure: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3174 test "$ac_cv_search_using_history" = "no" && for i in history; do
3175 LIBS="-l$i $ac_func_search_save_LIBS"
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 /* Override any gcc2 internal prototype to avoid an error. */
3180 /* We use char because int might match the return type of a gcc2
3181 builtin and then its argument prototype would still apply. */
3182 char using_history();
3188 if { (eval echo configure:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3190 ac_cv_search_using_history="-l$i"
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3198 LIBS="$ac_func_search_save_LIBS"
3201 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3202 if test "$ac_cv_search_using_history" != "no"; then
3203 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3204 cat >> confdefs.h <<\EOF
3205 #define HAVE_HISTORY_FUNCTIONS 1
3212 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3214 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3215 echo "configure:3216: checking for main in -lbsd" >&5
3216 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 ac_save_LIBS="$LIBS"
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3230 if { (eval echo configure:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3232 eval "ac_cv_lib_$ac_lib_var=yes"
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3237 eval "ac_cv_lib_$ac_lib_var=no"
3240 LIBS="$ac_save_LIBS"
3243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3244 echo "$ac_t""yes" 1>&6
3245 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3246 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3247 cat >> confdefs.h <<EOF
3248 #define $ac_tr_lib 1
3254 echo "$ac_t""no" 1>&6
3258 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3259 echo "configure:3260: checking for setproctitle in -lutil" >&5
3260 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3264 ac_save_LIBS="$LIBS"
3266 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 /* Override any gcc2 internal prototype to avoid an error. */
3270 /* We use char because int might match the return type of a gcc2
3271 builtin and then its argument prototype would still apply. */
3272 char setproctitle();
3278 if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3280 eval "ac_cv_lib_$ac_lib_var=yes"
3282 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3285 eval "ac_cv_lib_$ac_lib_var=no"
3288 LIBS="$ac_save_LIBS"
3291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3292 echo "$ac_t""yes" 1>&6
3293 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3294 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3295 cat >> confdefs.h <<EOF
3296 #define $ac_tr_lib 1
3302 echo "$ac_t""no" 1>&6
3305 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3306 echo "configure:3307: checking for main in -lm" >&5
3307 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 ac_save_LIBS="$LIBS"
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3321 if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3323 eval "ac_cv_lib_$ac_lib_var=yes"
3325 echo "configure: failed program was:" >&5
3326 cat conftest.$ac_ext >&5
3328 eval "ac_cv_lib_$ac_lib_var=no"
3331 LIBS="$ac_save_LIBS"
3334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3336 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3337 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3338 cat >> confdefs.h <<EOF
3339 #define $ac_tr_lib 1
3345 echo "$ac_t""no" 1>&6
3348 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3349 echo "configure:3350: checking for main in -ldl" >&5
3350 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 ac_save_LIBS="$LIBS"
3356 cat > conftest.$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3364 if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3366 eval "ac_cv_lib_$ac_lib_var=yes"
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3371 eval "ac_cv_lib_$ac_lib_var=no"
3374 LIBS="$ac_save_LIBS"
3377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3378 echo "$ac_t""yes" 1>&6
3379 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3381 cat >> confdefs.h <<EOF
3382 #define $ac_tr_lib 1
3388 echo "$ac_t""no" 1>&6
3391 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3392 echo "configure:3393: checking for main in -lsocket" >&5
3393 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 ac_save_LIBS="$LIBS"
3398 LIBS="-lsocket $LIBS"
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3409 eval "ac_cv_lib_$ac_lib_var=yes"
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3414 eval "ac_cv_lib_$ac_lib_var=no"
3417 LIBS="$ac_save_LIBS"
3420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3421 echo "$ac_t""yes" 1>&6
3422 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3423 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3424 cat >> confdefs.h <<EOF
3425 #define $ac_tr_lib 1
3428 LIBS="-lsocket $LIBS"
3431 echo "$ac_t""no" 1>&6
3434 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3435 echo "configure:3436: checking for main in -lnsl" >&5
3436 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 ac_save_LIBS="$LIBS"
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3450 if { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3452 eval "ac_cv_lib_$ac_lib_var=yes"
3454 echo "configure: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3457 eval "ac_cv_lib_$ac_lib_var=no"
3460 LIBS="$ac_save_LIBS"
3463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3464 echo "$ac_t""yes" 1>&6
3465 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3466 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3467 cat >> confdefs.h <<EOF
3468 #define $ac_tr_lib 1
3474 echo "$ac_t""no" 1>&6
3477 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3478 echo "configure:3479: checking for main in -lipc" >&5
3479 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3483 ac_save_LIBS="$LIBS"
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3493 if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3495 eval "ac_cv_lib_$ac_lib_var=yes"
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3500 eval "ac_cv_lib_$ac_lib_var=no"
3503 LIBS="$ac_save_LIBS"
3506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3507 echo "$ac_t""yes" 1>&6
3508 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3509 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3510 cat >> confdefs.h <<EOF
3511 #define $ac_tr_lib 1
3517 echo "$ac_t""no" 1>&6
3520 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3521 echo "configure:3522: checking for main in -lIPC" >&5
3522 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3524 echo $ac_n "(cached) $ac_c" 1>&6
3526 ac_save_LIBS="$LIBS"
3528 cat > conftest.$ac_ext <<EOF
3529 #line 3530 "configure"
3530 #include "confdefs.h"
3536 if { (eval echo configure:3537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3538 eval "ac_cv_lib_$ac_lib_var=yes"
3540 echo "configure: failed program was:" >&5
3541 cat conftest.$ac_ext >&5
3543 eval "ac_cv_lib_$ac_lib_var=no"
3546 LIBS="$ac_save_LIBS"
3549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3550 echo "$ac_t""yes" 1>&6
3551 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3552 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3553 cat >> confdefs.h <<EOF
3554 #define $ac_tr_lib 1
3560 echo "$ac_t""no" 1>&6
3563 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3564 echo "configure:3565: checking for main in -llc" >&5
3565 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3569 ac_save_LIBS="$LIBS"
3571 cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3579 if { (eval echo configure:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3581 eval "ac_cv_lib_$ac_lib_var=yes"
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3586 eval "ac_cv_lib_$ac_lib_var=no"
3589 LIBS="$ac_save_LIBS"
3592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3593 echo "$ac_t""yes" 1>&6
3594 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3595 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3596 cat >> confdefs.h <<EOF
3597 #define $ac_tr_lib 1
3603 echo "$ac_t""no" 1>&6
3606 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3607 echo "configure:3608: checking for main in -ldld" >&5
3608 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 ac_save_LIBS="$LIBS"
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3622 if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3624 eval "ac_cv_lib_$ac_lib_var=yes"
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3629 eval "ac_cv_lib_$ac_lib_var=no"
3632 LIBS="$ac_save_LIBS"
3635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3636 echo "$ac_t""yes" 1>&6
3637 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3638 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3639 cat >> confdefs.h <<EOF
3640 #define $ac_tr_lib 1
3646 echo "$ac_t""no" 1>&6
3649 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3650 echo "configure:3651: checking for main in -lld" >&5
3651 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 ac_save_LIBS="$LIBS"
3657 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3667 eval "ac_cv_lib_$ac_lib_var=yes"
3669 echo "configure: failed program was:" >&5
3670 cat conftest.$ac_ext >&5
3672 eval "ac_cv_lib_$ac_lib_var=no"
3675 LIBS="$ac_save_LIBS"
3678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3679 echo "$ac_t""yes" 1>&6
3680 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3681 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3682 cat >> confdefs.h <<EOF
3683 #define $ac_tr_lib 1
3689 echo "$ac_t""no" 1>&6
3692 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3693 echo "configure:3694: checking for main in -lcompat" >&5
3694 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 ac_save_LIBS="$LIBS"
3699 LIBS="-lcompat $LIBS"
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3708 if { (eval echo configure:3709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3710 eval "ac_cv_lib_$ac_lib_var=yes"
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3715 eval "ac_cv_lib_$ac_lib_var=no"
3718 LIBS="$ac_save_LIBS"
3721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3722 echo "$ac_t""yes" 1>&6
3723 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3724 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3725 cat >> confdefs.h <<EOF
3726 #define $ac_tr_lib 1
3729 LIBS="-lcompat $LIBS"
3732 echo "$ac_t""no" 1>&6
3735 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3736 echo "configure:3737: checking for main in -lBSD" >&5
3737 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3741 ac_save_LIBS="$LIBS"
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3753 eval "ac_cv_lib_$ac_lib_var=yes"
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3758 eval "ac_cv_lib_$ac_lib_var=no"
3761 LIBS="$ac_save_LIBS"
3764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3765 echo "$ac_t""yes" 1>&6
3766 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3767 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3768 cat >> confdefs.h <<EOF
3769 #define $ac_tr_lib 1
3775 echo "$ac_t""no" 1>&6
3778 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3779 echo "configure:3780: checking for main in -lgen" >&5
3780 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3784 ac_save_LIBS="$LIBS"
3786 cat > conftest.$ac_ext <<EOF
3787 #line 3788 "configure"
3788 #include "confdefs.h"
3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3796 eval "ac_cv_lib_$ac_lib_var=yes"
3798 echo "configure: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3801 eval "ac_cv_lib_$ac_lib_var=no"
3804 LIBS="$ac_save_LIBS"
3807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3808 echo "$ac_t""yes" 1>&6
3809 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3810 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3811 cat >> confdefs.h <<EOF
3812 #define $ac_tr_lib 1
3818 echo "$ac_t""no" 1>&6
3821 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3822 echo "configure:3823: checking for main in -lPW" >&5
3823 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3825 echo $ac_n "(cached) $ac_c" 1>&6
3827 ac_save_LIBS="$LIBS"
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3837 if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3839 eval "ac_cv_lib_$ac_lib_var=yes"
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3844 eval "ac_cv_lib_$ac_lib_var=no"
3847 LIBS="$ac_save_LIBS"
3850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3851 echo "$ac_t""yes" 1>&6
3852 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3853 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3854 cat >> confdefs.h <<EOF
3855 #define $ac_tr_lib 1
3861 echo "$ac_t""no" 1>&6
3864 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
3865 echo "configure:3866: checking for main in -lresolv" >&5
3866 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
3867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3868 echo $ac_n "(cached) $ac_c" 1>&6
3870 ac_save_LIBS="$LIBS"
3871 LIBS="-lresolv $LIBS"
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3880 if { (eval echo configure:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3882 eval "ac_cv_lib_$ac_lib_var=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 eval "ac_cv_lib_$ac_lib_var=no"
3890 LIBS="$ac_save_LIBS"
3893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3896 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3897 cat >> confdefs.h <<EOF
3898 #define $ac_tr_lib 1
3901 LIBS="-lresolv $LIBS"
3904 echo "$ac_t""no" 1>&6
3907 echo $ac_n "checking for main in -lunix""... $ac_c" 1>&6
3908 echo "configure:3909: checking for main in -lunix" >&5
3909 ac_lib_var=`echo unix'_'main | 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"
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3923 if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3925 eval "ac_cv_lib_$ac_lib_var=yes"
3927 echo "configure: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3930 eval "ac_cv_lib_$ac_lib_var=no"
3933 LIBS="$ac_save_LIBS"
3936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3937 echo "$ac_t""yes" 1>&6
3938 ac_tr_lib=HAVE_LIB`echo [unix] | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3939 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3940 cat >> confdefs.h <<EOF
3941 #define $ac_tr_lib 1
3947 echo "$ac_t""no" 1>&6
3951 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
3952 echo "configure:3953: checking for library containing crypt" >&5
3953 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 ac_func_search_save_LIBS="$LIBS"
3957 ac_cv_search_crypt="no"
3958 cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3961 /* Override any gcc2 internal prototype to avoid an error. */
3962 /* We use char because int might match the return type of a gcc2
3963 builtin and then its argument prototype would still apply. */
3970 if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3972 ac_cv_search_crypt="none required"
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3978 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
3979 LIBS="-l$i $ac_func_search_save_LIBS"
3980 cat > conftest.$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3983 /* Override any gcc2 internal prototype to avoid an error. */
3984 /* We use char because int might match the return type of a gcc2
3985 builtin and then its argument prototype would still apply. */
3992 if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3994 ac_cv_search_crypt="-l$i"
3997 echo "configure: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
4002 LIBS="$ac_func_search_save_LIBS"
4005 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4006 if test "$ac_cv_search_crypt" != "no"; then
4007 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4012 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4013 echo "configure:4014: checking for __inet_ntoa in -lbind" >&5
4014 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4018 ac_save_LIBS="$LIBS"
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4023 /* Override any gcc2 internal prototype to avoid an error. */
4024 /* We use char because int might match the return type of a gcc2
4025 builtin and then its argument prototype would still apply. */
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4034 eval "ac_cv_lib_$ac_lib_var=yes"
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4039 eval "ac_cv_lib_$ac_lib_var=no"
4042 LIBS="$ac_save_LIBS"
4045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4046 echo "$ac_t""yes" 1>&6
4047 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4048 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4049 cat >> confdefs.h <<EOF
4050 #define $ac_tr_lib 1
4056 echo "$ac_t""no" 1>&6
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4065 egrep "z_streamp" >/dev/null 2>&1; then
4068 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4069 echo "configure:4070: checking for inflate in -lz" >&5
4070 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4072 echo $ac_n "(cached) $ac_c" 1>&6
4074 ac_save_LIBS="$LIBS"
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 /* Override any gcc2 internal prototype to avoid an error. */
4080 /* We use char because int might match the return type of a gcc2
4081 builtin and then its argument prototype would still apply. */
4088 if { (eval echo configure:4089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4090 eval "ac_cv_lib_$ac_lib_var=yes"
4092 echo "configure: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4095 eval "ac_cv_lib_$ac_lib_var=no"
4098 LIBS="$ac_save_LIBS"
4101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4102 echo "$ac_t""yes" 1>&6
4103 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4104 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4105 cat >> confdefs.h <<EOF
4106 #define $ac_tr_lib 1
4112 echo "$ac_t""no" 1>&6
4121 if test "$with_krb4" = yes ; then
4122 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4123 echo "configure:4124: checking for des_encrypt in -ldes" >&5
4124 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4128 ac_save_LIBS="$LIBS"
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 /* Override any gcc2 internal prototype to avoid an error. */
4134 /* We use char because int might match the return type of a gcc2
4135 builtin and then its argument prototype would still apply. */
4142 if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4144 eval "ac_cv_lib_$ac_lib_var=yes"
4146 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
4149 eval "ac_cv_lib_$ac_lib_var=no"
4152 LIBS="$ac_save_LIBS"
4155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4156 echo "$ac_t""yes" 1>&6
4157 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4158 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4159 cat >> confdefs.h <<EOF
4160 #define $ac_tr_lib 1
4166 echo "$ac_t""no" 1>&6
4167 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4170 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4171 echo "configure:4172: checking for krb_sendauth in -lkrb" >&5
4172 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4174 echo $ac_n "(cached) $ac_c" 1>&6
4176 ac_save_LIBS="$LIBS"
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 /* Override any gcc2 internal prototype to avoid an error. */
4182 /* We use char because int might match the return type of a gcc2
4183 builtin and then its argument prototype would still apply. */
4184 char krb_sendauth();
4190 if { (eval echo configure:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4192 eval "ac_cv_lib_$ac_lib_var=yes"
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4197 eval "ac_cv_lib_$ac_lib_var=no"
4200 LIBS="$ac_save_LIBS"
4203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4204 echo "$ac_t""yes" 1>&6
4205 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4206 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4207 cat >> confdefs.h <<EOF
4208 #define $ac_tr_lib 1
4214 echo "$ac_t""no" 1>&6
4215 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4220 if test "$with_krb5" = yes ; then
4221 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4222 echo "configure:4223: checking for com_err in -lcom_err" >&5
4223 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4227 ac_save_LIBS="$LIBS"
4228 LIBS="-lcom_err $LIBS"
4229 cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4232 /* Override any gcc2 internal prototype to avoid an error. */
4233 /* We use char because int might match the return type of a gcc2
4234 builtin and then its argument prototype would still apply. */
4241 if { (eval echo configure:4242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4243 eval "ac_cv_lib_$ac_lib_var=yes"
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4248 eval "ac_cv_lib_$ac_lib_var=no"
4251 LIBS="$ac_save_LIBS"
4254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4255 echo "$ac_t""yes" 1>&6
4256 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4257 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4258 cat >> confdefs.h <<EOF
4259 #define $ac_tr_lib 1
4262 LIBS="-lcom_err $LIBS"
4265 echo "$ac_t""no" 1>&6
4266 { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
4269 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4270 echo "configure:4271: checking for krb5_encrypt in -lcrypto" >&5
4271 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 ac_save_LIBS="$LIBS"
4276 LIBS="-lcrypto $LIBS"
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 /* Override any gcc2 internal prototype to avoid an error. */
4281 /* We use char because int might match the return type of a gcc2
4282 builtin and then its argument prototype would still apply. */
4283 char krb5_encrypt();
4289 if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4291 eval "ac_cv_lib_$ac_lib_var=yes"
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4296 eval "ac_cv_lib_$ac_lib_var=no"
4299 LIBS="$ac_save_LIBS"
4302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4303 echo "$ac_t""yes" 1>&6
4304 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4305 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4306 cat >> confdefs.h <<EOF
4307 #define $ac_tr_lib 1
4310 LIBS="-lcrypto $LIBS"
4313 echo "$ac_t""no" 1>&6
4314 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4315 echo "configure:4316: checking for krb5_encrypt in -lk5crypto" >&5
4316 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 ac_save_LIBS="$LIBS"
4321 LIBS="-lk5crypto $LIBS"
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 /* Override any gcc2 internal prototype to avoid an error. */
4326 /* We use char because int might match the return type of a gcc2
4327 builtin and then its argument prototype would still apply. */
4328 char krb5_encrypt();
4334 if { (eval echo configure:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4336 eval "ac_cv_lib_$ac_lib_var=yes"
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4341 eval "ac_cv_lib_$ac_lib_var=no"
4344 LIBS="$ac_save_LIBS"
4347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4349 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4351 cat >> confdefs.h <<EOF
4352 #define $ac_tr_lib 1
4355 LIBS="-lk5crypto $LIBS"
4358 echo "$ac_t""no" 1>&6
4359 { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
4364 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4365 echo "configure:4366: checking for krb5_sendauth in -lkrb5" >&5
4366 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 ac_save_LIBS="$LIBS"
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 /* Override any gcc2 internal prototype to avoid an error. */
4376 /* We use char because int might match the return type of a gcc2
4377 builtin and then its argument prototype would still apply. */
4378 char krb5_sendauth();
4384 if { (eval echo configure:4385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4386 eval "ac_cv_lib_$ac_lib_var=yes"
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4391 eval "ac_cv_lib_$ac_lib_var=no"
4394 LIBS="$ac_save_LIBS"
4397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4398 echo "$ac_t""yes" 1>&6
4399 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4401 cat >> confdefs.h <<EOF
4402 #define $ac_tr_lib 1
4408 echo "$ac_t""no" 1>&6
4409 { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
4414 if test "$with_openssl" = yes ; then
4415 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4416 echo "configure:4417: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4417 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4421 ac_save_LIBS="$LIBS"
4422 LIBS="-lcrypto $LIBS"
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4426 /* Override any gcc2 internal prototype to avoid an error. */
4427 /* We use char because int might match the return type of a gcc2
4428 builtin and then its argument prototype would still apply. */
4429 char CRYPTO_new_ex_data();
4432 CRYPTO_new_ex_data()
4435 if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4437 eval "ac_cv_lib_$ac_lib_var=yes"
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4442 eval "ac_cv_lib_$ac_lib_var=no"
4445 LIBS="$ac_save_LIBS"
4448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4450 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4452 cat >> confdefs.h <<EOF
4453 #define $ac_tr_lib 1
4456 LIBS="-lcrypto $LIBS"
4459 echo "$ac_t""no" 1>&6
4460 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4463 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4464 echo "configure:4465: checking for SSL_library_init in -lssl" >&5
4465 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 ac_save_LIBS="$LIBS"
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4474 /* Override any gcc2 internal prototype to avoid an error. */
4475 /* We use char because int might match the return type of a gcc2
4476 builtin and then its argument prototype would still apply. */
4477 char SSL_library_init();
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4485 eval "ac_cv_lib_$ac_lib_var=yes"
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4490 eval "ac_cv_lib_$ac_lib_var=no"
4493 LIBS="$ac_save_LIBS"
4496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4499 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4500 cat >> confdefs.h <<EOF
4501 #define $ac_tr_lib 1
4507 echo "$ac_t""no" 1>&6
4508 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4517 for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/types.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
4519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4521 echo "configure:4522: checking for $ac_hdr" >&5
4522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4531 { (eval echo configure:4532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4533 if test -z "$ac_err"; then
4535 eval "ac_cv_header_$ac_safe=yes"
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4541 eval "ac_cv_header_$ac_safe=no"
4545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4546 echo "$ac_t""yes" 1>&6
4547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4548 cat >> confdefs.h <<EOF
4549 #define $ac_tr_hdr 1
4553 echo "$ac_t""no" 1>&6
4558 for ac_hdr in netinet/in.h
4560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4562 echo "configure:4563: checking for $ac_hdr" >&5
4563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4572 { (eval echo configure:4573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4574 if test -z "$ac_err"; then
4576 eval "ac_cv_header_$ac_safe=yes"
4579 echo "configure: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4582 eval "ac_cv_header_$ac_safe=no"
4586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4587 echo "$ac_t""yes" 1>&6
4588 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4589 cat >> confdefs.h <<EOF
4590 #define $ac_tr_hdr 1
4594 echo "$ac_t""no" 1>&6
4598 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
4599 echo "configure:4600: checking for netinet/tcp.h" >&5
4600 cat > conftest.$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4604 #ifdef HAVE_NETINET_IN_H
4605 #include <netinet/in.h>
4607 #include <netinet/tcp.h>
4610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4611 { (eval echo configure:4612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4613 if test -z "$ac_err"; then
4615 cat >> confdefs.h <<\EOF
4616 #define HAVE_NETINET_TCP_H 1
4618 echo "$ac_t""yes" 1>&6
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4624 echo "$ac_t""no" 1>&6
4628 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
4629 echo "configure:4630: checking whether string.h and strings.h may both be included" >&5
4630 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4637 #include <strings.h>
4640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4641 { (eval echo configure:4642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4643 if test -z "$ac_err"; then
4645 cat > conftest.$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4649 #include <strings.h>
4652 int n = strcasecmp("a", "b");
4655 if { (eval echo configure:4656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4657 pgac_cv_header_strings_both=yes
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4662 pgac_cv_header_strings_both=no
4667 echo "configure: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4670 pgac_cv_header_strings_both=no
4675 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
4676 if test x"$pgac_cv_header_strings_both" = x"yes"; then
4677 cat >> confdefs.h <<\EOF
4678 #define STRING_H_WITH_STRINGS_H 1
4683 for ac_hdr in readline/readline.h readline.h
4685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4687 echo "configure:4688: checking for $ac_hdr" >&5
4688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4697 { (eval echo configure:4698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4699 if test -z "$ac_err"; then
4701 eval "ac_cv_header_$ac_safe=yes"
4704 echo "configure: failed program was:" >&5
4705 cat conftest.$ac_ext >&5
4707 eval "ac_cv_header_$ac_safe=no"
4711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4712 echo "$ac_t""yes" 1>&6
4713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4714 cat >> confdefs.h <<EOF
4715 #define $ac_tr_hdr 1
4719 echo "$ac_t""no" 1>&6
4723 for ac_hdr in readline/history.h history.h
4725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4727 echo "configure:4728: checking for $ac_hdr" >&5
4728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4737 { (eval echo configure:4738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4739 if test -z "$ac_err"; then
4741 eval "ac_cv_header_$ac_safe=yes"
4744 echo "configure: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4747 eval "ac_cv_header_$ac_safe=no"
4751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4752 echo "$ac_t""yes" 1>&6
4753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4754 cat >> confdefs.h <<EOF
4755 #define $ac_tr_hdr 1
4759 echo "$ac_t""no" 1>&6
4764 if test "$with_krb4" = yes ; then
4765 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4766 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4767 echo "configure:4768: checking for krb.h" >&5
4768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4771 cat > conftest.$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4777 { (eval echo configure:4778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4779 if test -z "$ac_err"; then
4781 eval "ac_cv_header_$ac_safe=yes"
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4787 eval "ac_cv_header_$ac_safe=no"
4791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4795 echo "$ac_t""no" 1>&6
4796 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4801 if test "$with_krb5" = yes ; then
4802 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4803 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4804 echo "configure:4805: checking for krb5.h" >&5
4805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 cat > conftest.$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4814 { (eval echo configure:4815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4816 if test -z "$ac_err"; then
4818 eval "ac_cv_header_$ac_safe=yes"
4821 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5
4824 eval "ac_cv_header_$ac_safe=no"
4828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4829 echo "$ac_t""yes" 1>&6
4832 echo "$ac_t""no" 1>&6
4833 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4836 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4837 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4838 echo "configure:4839: checking for com_err.h" >&5
4839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4840 echo $ac_n "(cached) $ac_c" 1>&6
4842 cat > conftest.$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4845 #include <com_err.h>
4847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4848 { (eval echo configure:4849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4850 if test -z "$ac_err"; then
4852 eval "ac_cv_header_$ac_safe=yes"
4855 echo "configure: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4858 eval "ac_cv_header_$ac_safe=no"
4862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4863 echo "$ac_t""yes" 1>&6
4866 echo "$ac_t""no" 1>&6
4867 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4872 if test "$with_openssl" = yes ; then
4873 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4874 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4875 echo "configure:4876: checking for openssl/ssl.h" >&5
4876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4882 #include <openssl/ssl.h>
4884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4885 { (eval echo configure:4886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4887 if test -z "$ac_err"; then
4889 eval "ac_cv_header_$ac_safe=yes"
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4895 eval "ac_cv_header_$ac_safe=no"
4899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4900 echo "$ac_t""yes" 1>&6
4903 echo "$ac_t""no" 1>&6
4904 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4907 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4908 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4909 echo "configure:4910: checking for openssl/err.h" >&5
4910 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 #include <openssl/err.h>
4918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4919 { (eval echo configure:4920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4921 if test -z "$ac_err"; then
4923 eval "ac_cv_header_$ac_safe=yes"
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4929 eval "ac_cv_header_$ac_safe=no"
4933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4937 echo "$ac_t""no" 1>&6
4938 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
4945 ## Types, structures, compiler characteristics
4947 echo $ac_n "checking for working const""... $ac_c" 1>&6
4948 echo "configure:4949: checking for working const" >&5
4949 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4952 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4958 /* Ultrix mips cc rejects this. */
4959 typedef int charset[2]; const charset x;
4960 /* SunOS 4.1.1 cc rejects this. */
4961 char const *const *ccp;
4963 /* NEC SVR4.0.2 mips cc rejects this. */
4964 struct point {int x, y;};
4965 static struct point const zero = {0,0};
4966 /* AIX XL C 1.02.0.0 rejects this.
4967 It does not let you subtract one const X* pointer from another in an arm
4968 of an if-expression whose if-part is not a constant expression */
4969 const char *g = "string";
4970 ccp = &g + (g ? g-g : 0);
4971 /* HPUX 7.0 cc rejects these. */
4974 ccp = (char const *const *) p;
4975 { /* SCO 3.2v4 cc rejects this. */
4977 char const *s = 0 ? (char *) 0 : (char const *) 0;
4981 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4983 const int *foo = &x[0];
4986 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4987 typedef const int *iptr;
4991 { /* AIX XL C 1.02.0.0 rejects this saying
4992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4993 struct s { int j; const int *ap[3]; };
4994 struct s *b; b->j = 5;
4996 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5002 if { (eval echo configure:5003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5014 echo "$ac_t""$ac_cv_c_const" 1>&6
5015 if test $ac_cv_c_const = no; then
5016 cat >> confdefs.h <<\EOF
5022 echo $ac_n "checking for inline""... $ac_c" 1>&6
5023 echo "configure:5024: checking for inline" >&5
5024 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5025 echo $ac_n "(cached) $ac_c" 1>&6
5028 for ac_kw in inline __inline__ __inline; do
5029 cat > conftest.$ac_ext <<EOF
5030 #line 5031 "configure"
5031 #include "confdefs.h"
5037 if { (eval echo configure:5038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5039 ac_cv_c_inline=$ac_kw; break
5041 echo "configure: failed program was:" >&5
5042 cat conftest.$ac_ext >&5
5049 echo "$ac_t""$ac_cv_c_inline" 1>&6
5050 case "$ac_cv_c_inline" in
5052 no) cat >> confdefs.h <<\EOF
5056 *) cat >> confdefs.h <<EOF
5057 #define inline $ac_cv_c_inline
5064 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5065 echo "configure:5066: checking for preprocessor stringizing operator" >&5
5066 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5069 cat > conftest.$ac_ext <<EOF
5070 #line 5071 "configure"
5071 #include "confdefs.h"
5075 char *s = x(teststring);
5078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5079 egrep "#teststring" >/dev/null 2>&1; then
5081 ac_cv_c_stringize=no
5084 ac_cv_c_stringize=yes
5090 if test "${ac_cv_c_stringize}" = yes
5092 cat >> confdefs.h <<\EOF
5093 #define HAVE_STRINGIZE 1
5097 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5099 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5100 echo "configure:5101: checking for signed types" >&5
5101 if eval "test \"`echo '$''{'pgac_cv_c_signed'+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"
5109 signed char c; signed short s; signed int i;
5112 if { (eval echo configure:5113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5114 pgac_cv_c_signed=yes
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5124 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5125 if test x"$pgac_cv_c_signed" = xno ; then
5126 cat >> confdefs.h <<\EOF
5131 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5132 echo "configure:5133: checking for volatile" >&5
5133 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5136 cat > conftest.$ac_ext <<EOF
5137 #line 5138 "configure"
5138 #include "confdefs.h"
5141 extern volatile int i;
5144 if { (eval echo configure:5145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5146 pgac_cv_c_volatile=yes
5148 echo "configure: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5151 pgac_cv_c_volatile=no
5156 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5157 if test x"$pgac_cv_c_volatile" = xno ; then
5158 cat >> confdefs.h <<\EOF
5163 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5164 echo "configure:5165: checking whether struct tm is in sys/time.h or time.h" >&5
5165 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5171 #include <sys/types.h>
5174 struct tm *tp; tp->tm_sec;
5177 if { (eval echo configure:5178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5179 ac_cv_struct_tm=time.h
5181 echo "configure: failed program was:" >&5
5182 cat conftest.$ac_ext >&5
5184 ac_cv_struct_tm=sys/time.h
5189 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5190 if test $ac_cv_struct_tm = sys/time.h; then
5191 cat >> confdefs.h <<\EOF
5192 #define TM_IN_SYS_TIME 1
5197 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5198 echo "configure:5199: checking for tm_zone in struct tm" >&5
5199 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5202 cat > conftest.$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5205 #include <sys/types.h>
5206 #include <$ac_cv_struct_tm>
5208 struct tm tm; tm.tm_zone;
5211 if { (eval echo configure:5212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5213 ac_cv_struct_tm_zone=yes
5215 echo "configure: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5218 ac_cv_struct_tm_zone=no
5223 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5224 if test "$ac_cv_struct_tm_zone" = yes; then
5225 cat >> confdefs.h <<\EOF
5226 #define HAVE_TM_ZONE 1
5230 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5231 echo "configure:5232: checking for tzname" >&5
5232 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5235 cat > conftest.$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5239 #ifndef tzname /* For SGI. */
5240 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5246 if { (eval echo configure:5247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5248 ac_cv_var_tzname=yes
5250 echo "configure: failed program was:" >&5
5251 cat conftest.$ac_ext >&5
5258 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5259 if test $ac_cv_var_tzname = yes; then
5260 cat >> confdefs.h <<\EOF
5261 #define HAVE_TZNAME 1
5267 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5268 echo "configure:5269: checking for union semun" >&5
5269 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5270 echo $ac_n "(cached) $ac_c" 1>&6
5272 cat > conftest.$ac_ext <<EOF
5273 #line 5274 "configure"
5274 #include "confdefs.h"
5275 #include <sys/types.h>
5276 #include <sys/ipc.h>
5277 #include <sys/sem.h>
5282 if { (eval echo configure:5283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5284 pgac_cv_union_semun=yes
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5289 pgac_cv_union_semun=no
5294 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5295 if test x"$pgac_cv_union_semun" = xyes ; then
5296 cat >> confdefs.h <<\EOF
5297 #define HAVE_UNION_SEMUN 1
5301 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5302 echo "configure:5303: checking for struct sockaddr_un" >&5
5303 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5304 echo $ac_n "(cached) $ac_c" 1>&6
5306 cat > conftest.$ac_ext <<EOF
5307 #line 5308 "configure"
5308 #include "confdefs.h"
5309 #include <sys/types.h>
5310 #ifdef HAVE_SYS_UN_H
5314 struct sockaddr_un un;
5317 if { (eval echo configure:5318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5319 pgac_cv_struct_sockaddr_un=yes
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5324 pgac_cv_struct_sockaddr_un=no
5329 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5330 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5331 cat >> confdefs.h <<\EOF
5332 #define HAVE_STRUCT_SOCKADDR_UN 1
5338 ## Functions, global variables
5340 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5341 echo "configure:5342: checking for int timezone" >&5
5342 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5351 res = timezone / 60;
5354 if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5356 pgac_cv_var_int_timezone=yes
5358 echo "configure: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5361 pgac_cv_var_int_timezone=no
5366 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5367 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5368 cat >> confdefs.h <<\EOF
5369 #define HAVE_INT_TIMEZONE
5373 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5374 echo "configure:5375: checking types of arguments for accept()" >&5
5375 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5376 echo $ac_n "(cached) $ac_c" 1>&6
5378 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5381 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5384 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5385 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5386 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
5387 cat > conftest.$ac_ext <<EOF
5388 #line 5389 "configure"
5389 #include "confdefs.h"
5390 #ifdef HAVE_SYS_TYPES_H
5391 #include <sys/types.h>
5393 #ifdef HAVE_SYS_SOCKET_H
5394 #include <sys/socket.h>
5396 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5401 if { (eval echo configure:5402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5403 ac_not_found=no; break 3
5405 echo "configure: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5414 if test "$ac_not_found" = yes; then
5415 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5417 if test "$ac_cv_func_accept_arg3" = "void"; then
5418 ac_cv_func_accept_arg3=int
5426 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5427 cat >> confdefs.h <<EOF
5428 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5431 cat >> confdefs.h <<EOF
5432 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5435 cat >> confdefs.h <<EOF
5436 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5440 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5441 echo "configure:5442: checking whether gettimeofday takes only one argument" >&5
5442 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5445 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure"
5447 #include "confdefs.h"
5448 #include <sys/time.h>
5451 struct timezone *tzp;
5452 gettimeofday(tp,tzp);
5455 if { (eval echo configure:5456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5457 pgac_cv_func_gettimeofday_1arg=no
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5462 pgac_cv_func_gettimeofday_1arg=yes
5467 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5468 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5469 cat >> confdefs.h <<\EOF
5470 #define GETTIMEOFDAY_1ARG
5475 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
5477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5478 echo "configure:5479: checking for $ac_func" >&5
5479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 /* System header to define __stub macros and hopefully few prototypes,
5486 which can conflict with char $ac_func(); below. */
5488 /* Override any gcc2 internal prototype to avoid an error. */
5489 /* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
5495 /* The GNU C library defines this for functions which it implements
5496 to always fail with ENOSYS. Some functions are actually named
5497 something starting with __ and the normal name is an alias. */
5498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5506 if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5508 eval "ac_cv_func_$ac_func=yes"
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5513 eval "ac_cv_func_$ac_func=no"
5518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5519 echo "$ac_t""yes" 1>&6
5520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5521 cat >> confdefs.h <<EOF
5522 #define $ac_tr_func 1
5526 echo "$ac_t""no" 1>&6
5531 cat > conftest.$ac_ext <<EOF
5532 #line 5533 "configure"
5533 #include "confdefs.h"
5536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5537 egrep "fdatasync" >/dev/null 2>&1; then
5539 cat >> confdefs.h <<\EOF
5540 #define HAVE_FDATASYNC_DECL 1
5547 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5548 echo "configure:5549: checking for PS_STRINGS" >&5
5549 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5550 echo $ac_n "(cached) $ac_c" 1>&6
5552 cat > conftest.$ac_ext <<EOF
5553 #line 5554 "configure"
5554 #include "confdefs.h"
5555 #include <machine/vmparam.h>
5556 #include <sys/exec.h>
5559 PS_STRINGS->ps_nargvstr = 1;
5560 PS_STRINGS->ps_argvstr = "foo";
5563 if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5565 pgac_cv_var_PS_STRINGS=yes
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5570 pgac_cv_var_PS_STRINGS=no
5575 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5576 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5577 cat >> confdefs.h <<\EOF
5578 #define HAVE_PS_STRINGS
5584 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5585 echo "configure:5586: checking for snprintf" >&5
5586 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5589 cat > conftest.$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5592 /* System header to define __stub macros and hopefully few prototypes,
5593 which can conflict with char snprintf(); below. */
5595 /* Override any gcc2 internal prototype to avoid an error. */
5596 /* We use char because int might match the return type of a gcc2
5597 builtin and then its argument prototype would still apply. */
5602 /* The GNU C library defines this for functions which it implements
5603 to always fail with ENOSYS. Some functions are actually named
5604 something starting with __ and the normal name is an alias. */
5605 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5613 if { (eval echo configure:5614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5615 eval "ac_cv_func_snprintf=yes"
5617 echo "configure: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5620 eval "ac_cv_func_snprintf=no"
5625 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5626 echo "$ac_t""yes" 1>&6
5627 cat >> confdefs.h <<\EOF
5628 #define HAVE_SNPRINTF 1
5632 echo "$ac_t""no" 1>&6
5633 SNPRINTF='snprintf.o'
5636 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5637 echo "configure:5638: checking for vsnprintf" >&5
5638 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5644 /* System header to define __stub macros and hopefully few prototypes,
5645 which can conflict with char vsnprintf(); below. */
5647 /* Override any gcc2 internal prototype to avoid an error. */
5648 /* We use char because int might match the return type of a gcc2
5649 builtin and then its argument prototype would still apply. */
5654 /* The GNU C library defines this for functions which it implements
5655 to always fail with ENOSYS. Some functions are actually named
5656 something starting with __ and the normal name is an alias. */
5657 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5665 if { (eval echo configure:5666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5667 eval "ac_cv_func_vsnprintf=yes"
5669 echo "configure: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5672 eval "ac_cv_func_vsnprintf=no"
5677 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5678 echo "$ac_t""yes" 1>&6
5679 cat >> confdefs.h <<\EOF
5680 #define HAVE_VSNPRINTF 1
5684 echo "$ac_t""no" 1>&6
5685 SNPRINTF='snprintf.o'
5689 cat > conftest.$ac_ext <<EOF
5690 #line 5691 "configure"
5691 #include "confdefs.h"
5694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5695 egrep "snprintf" >/dev/null 2>&1; then
5697 cat >> confdefs.h <<\EOF
5698 #define HAVE_SNPRINTF_DECL 1
5704 cat > conftest.$ac_ext <<EOF
5705 #line 5706 "configure"
5706 #include "confdefs.h"
5709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5710 egrep "vsnprintf" >/dev/null 2>&1; then
5712 cat >> confdefs.h <<\EOF
5713 #define HAVE_VSNPRINTF_DECL 1
5720 # do this one the hard way in case isinf() is a macro
5721 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5722 echo "configure:5723: checking for isinf" >&5
5723 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5724 echo $ac_n "(cached) $ac_c" 1>&6
5726 cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5732 double x = 0.0; int res = isinf(x);
5735 if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5737 ac_cv_func_isinf=yes
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5747 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5749 if test $ac_cv_func_isinf = yes ; then
5750 cat >> confdefs.h <<\EOF
5751 #define HAVE_ISINF 1
5757 # Look for a way to implement a substitute for isinf()
5758 for ac_func in fpclass fp_class fp_class_d class
5760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5761 echo "configure:5762: checking for $ac_func" >&5
5762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5763 echo $ac_n "(cached) $ac_c" 1>&6
5765 cat > conftest.$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5768 /* System header to define __stub macros and hopefully few prototypes,
5769 which can conflict with char $ac_func(); below. */
5771 /* Override any gcc2 internal prototype to avoid an error. */
5772 /* We use char because int might match the return type of a gcc2
5773 builtin and then its argument prototype would still apply. */
5778 /* The GNU C library defines this for functions which it implements
5779 to always fail with ENOSYS. Some functions are actually named
5780 something starting with __ and the normal name is an alias. */
5781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5789 if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5791 eval "ac_cv_func_$ac_func=yes"
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5796 eval "ac_cv_func_$ac_func=no"
5801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5802 echo "$ac_t""yes" 1>&6
5803 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5804 cat >> confdefs.h <<EOF
5805 #define $ac_tr_func 1
5809 echo "$ac_t""no" 1>&6
5816 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5817 echo "configure:5818: checking for getrusage" >&5
5818 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5819 echo $ac_n "(cached) $ac_c" 1>&6
5821 cat > conftest.$ac_ext <<EOF
5822 #line 5823 "configure"
5823 #include "confdefs.h"
5824 /* System header to define __stub macros and hopefully few prototypes,
5825 which can conflict with char getrusage(); below. */
5827 /* Override any gcc2 internal prototype to avoid an error. */
5828 /* We use char because int might match the return type of a gcc2
5829 builtin and then its argument prototype would still apply. */
5834 /* The GNU C library defines this for functions which it implements
5835 to always fail with ENOSYS. Some functions are actually named
5836 something starting with __ and the normal name is an alias. */
5837 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5845 if { (eval echo configure:5846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5847 eval "ac_cv_func_getrusage=yes"
5849 echo "configure: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5852 eval "ac_cv_func_getrusage=no"
5857 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5858 echo "$ac_t""yes" 1>&6
5859 cat >> confdefs.h <<\EOF
5860 #define HAVE_GETRUSAGE 1
5864 echo "$ac_t""no" 1>&6
5865 GETRUSAGE='getrusage.o'
5869 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5870 echo "configure:5871: checking for srandom" >&5
5871 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5872 echo $ac_n "(cached) $ac_c" 1>&6
5874 cat > conftest.$ac_ext <<EOF
5875 #line 5876 "configure"
5876 #include "confdefs.h"
5877 /* System header to define __stub macros and hopefully few prototypes,
5878 which can conflict with char srandom(); below. */
5880 /* Override any gcc2 internal prototype to avoid an error. */
5881 /* We use char because int might match the return type of a gcc2
5882 builtin and then its argument prototype would still apply. */
5887 /* The GNU C library defines this for functions which it implements
5888 to always fail with ENOSYS. Some functions are actually named
5889 something starting with __ and the normal name is an alias. */
5890 #if defined (__stub_srandom) || defined (__stub___srandom)
5898 if { (eval echo configure:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5900 eval "ac_cv_func_srandom=yes"
5902 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5905 eval "ac_cv_func_srandom=no"
5910 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5911 echo "$ac_t""yes" 1>&6
5912 cat >> confdefs.h <<\EOF
5913 #define HAVE_SRANDOM 1
5917 echo "$ac_t""no" 1>&6
5922 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5923 echo "configure:5924: checking for gethostname" >&5
5924 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5925 echo $ac_n "(cached) $ac_c" 1>&6
5927 cat > conftest.$ac_ext <<EOF
5928 #line 5929 "configure"
5929 #include "confdefs.h"
5930 /* System header to define __stub macros and hopefully few prototypes,
5931 which can conflict with char gethostname(); below. */
5933 /* Override any gcc2 internal prototype to avoid an error. */
5934 /* We use char because int might match the return type of a gcc2
5935 builtin and then its argument prototype would still apply. */
5940 /* The GNU C library defines this for functions which it implements
5941 to always fail with ENOSYS. Some functions are actually named
5942 something starting with __ and the normal name is an alias. */
5943 #if defined (__stub_gethostname) || defined (__stub___gethostname)
5951 if { (eval echo configure:5952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5953 eval "ac_cv_func_gethostname=yes"
5955 echo "configure: failed program was:" >&5
5956 cat conftest.$ac_ext >&5
5958 eval "ac_cv_func_gethostname=no"
5963 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
5964 echo "$ac_t""yes" 1>&6
5965 cat >> confdefs.h <<\EOF
5966 #define HAVE_GETHOSTNAME 1
5970 echo "$ac_t""no" 1>&6
5971 GETHOSTNAME='gethostname.o'
5975 echo $ac_n "checking for random""... $ac_c" 1>&6
5976 echo "configure:5977: checking for random" >&5
5977 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 /* System header to define __stub macros and hopefully few prototypes,
5984 which can conflict with char random(); below. */
5986 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5993 /* The GNU C library defines this for functions which it implements
5994 to always fail with ENOSYS. Some functions are actually named
5995 something starting with __ and the normal name is an alias. */
5996 #if defined (__stub_random) || defined (__stub___random)
6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6006 eval "ac_cv_func_random=yes"
6008 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6011 eval "ac_cv_func_random=no"
6016 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6017 echo "$ac_t""yes" 1>&6
6018 cat >> confdefs.h <<\EOF
6019 #define HAVE_RANDOM 1
6023 echo "$ac_t""no" 1>&6
6024 MISSING_RANDOM='random.o'
6028 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6029 echo "configure:6030: checking for inet_aton" >&5
6030 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6036 /* System header to define __stub macros and hopefully few prototypes,
6037 which can conflict with char inet_aton(); below. */
6039 /* Override any gcc2 internal prototype to avoid an error. */
6040 /* We use char because int might match the return type of a gcc2
6041 builtin and then its argument prototype would still apply. */
6046 /* The GNU C library defines this for functions which it implements
6047 to always fail with ENOSYS. Some functions are actually named
6048 something starting with __ and the normal name is an alias. */
6049 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6057 if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6059 eval "ac_cv_func_inet_aton=yes"
6061 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6064 eval "ac_cv_func_inet_aton=no"
6069 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6070 echo "$ac_t""yes" 1>&6
6071 cat >> confdefs.h <<\EOF
6072 #define HAVE_INET_ATON 1
6076 echo "$ac_t""no" 1>&6
6077 INET_ATON='inet_aton.o'
6081 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6082 echo "configure:6083: checking for strerror" >&5
6083 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6084 echo $ac_n "(cached) $ac_c" 1>&6
6086 cat > conftest.$ac_ext <<EOF
6087 #line 6088 "configure"
6088 #include "confdefs.h"
6089 /* System header to define __stub macros and hopefully few prototypes,
6090 which can conflict with char strerror(); below. */
6092 /* Override any gcc2 internal prototype to avoid an error. */
6093 /* We use char because int might match the return type of a gcc2
6094 builtin and then its argument prototype would still apply. */
6099 /* The GNU C library defines this for functions which it implements
6100 to always fail with ENOSYS. Some functions are actually named
6101 something starting with __ and the normal name is an alias. */
6102 #if defined (__stub_strerror) || defined (__stub___strerror)
6110 if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6112 eval "ac_cv_func_strerror=yes"
6114 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6117 eval "ac_cv_func_strerror=no"
6122 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6123 echo "$ac_t""yes" 1>&6
6124 cat >> confdefs.h <<\EOF
6125 #define HAVE_STRERROR 1
6129 echo "$ac_t""no" 1>&6
6130 STRERROR='strerror.o'
6134 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6135 echo "configure:6136: checking for strdup" >&5
6136 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6137 echo $ac_n "(cached) $ac_c" 1>&6
6139 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6142 /* System header to define __stub macros and hopefully few prototypes,
6143 which can conflict with char strdup(); below. */
6145 /* Override any gcc2 internal prototype to avoid an error. */
6146 /* We use char because int might match the return type of a gcc2
6147 builtin and then its argument prototype would still apply. */
6152 /* The GNU C library defines this for functions which it implements
6153 to always fail with ENOSYS. Some functions are actually named
6154 something starting with __ and the normal name is an alias. */
6155 #if defined (__stub_strdup) || defined (__stub___strdup)
6163 if { (eval echo configure:6164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6165 eval "ac_cv_func_strdup=yes"
6167 echo "configure: failed program was:" >&5
6168 cat conftest.$ac_ext >&5
6170 eval "ac_cv_func_strdup=no"
6175 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6176 echo "$ac_t""yes" 1>&6
6177 cat >> confdefs.h <<\EOF
6178 #define HAVE_STRDUP 1
6182 echo "$ac_t""no" 1>&6
6183 STRDUP='../../utils/strdup.o'
6187 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6188 echo "configure:6189: checking for strtol" >&5
6189 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6192 cat > conftest.$ac_ext <<EOF
6193 #line 6194 "configure"
6194 #include "confdefs.h"
6195 /* System header to define __stub macros and hopefully few prototypes,
6196 which can conflict with char strtol(); below. */
6198 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6205 /* The GNU C library defines this for functions which it implements
6206 to always fail with ENOSYS. Some functions are actually named
6207 something starting with __ and the normal name is an alias. */
6208 #if defined (__stub_strtol) || defined (__stub___strtol)
6216 if { (eval echo configure:6217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6218 eval "ac_cv_func_strtol=yes"
6220 echo "configure: failed program was:" >&5
6221 cat conftest.$ac_ext >&5
6223 eval "ac_cv_func_strtol=no"
6228 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6229 echo "$ac_t""yes" 1>&6
6230 cat >> confdefs.h <<\EOF
6231 #define HAVE_STRTOL 1
6235 echo "$ac_t""no" 1>&6
6240 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6241 echo "configure:6242: checking for strtoul" >&5
6242 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6243 echo $ac_n "(cached) $ac_c" 1>&6
6245 cat > conftest.$ac_ext <<EOF
6246 #line 6247 "configure"
6247 #include "confdefs.h"
6248 /* System header to define __stub macros and hopefully few prototypes,
6249 which can conflict with char strtoul(); below. */
6251 /* Override any gcc2 internal prototype to avoid an error. */
6252 /* We use char because int might match the return type of a gcc2
6253 builtin and then its argument prototype would still apply. */
6258 /* The GNU C library defines this for functions which it implements
6259 to always fail with ENOSYS. Some functions are actually named
6260 something starting with __ and the normal name is an alias. */
6261 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6269 if { (eval echo configure:6270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6271 eval "ac_cv_func_strtoul=yes"
6273 echo "configure: failed program was:" >&5
6274 cat conftest.$ac_ext >&5
6276 eval "ac_cv_func_strtoul=no"
6281 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6282 echo "$ac_t""yes" 1>&6
6283 cat >> confdefs.h <<\EOF
6284 #define HAVE_STRTOUL 1
6288 echo "$ac_t""no" 1>&6
6293 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6294 echo "configure:6295: checking for strcasecmp" >&5
6295 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6296 echo $ac_n "(cached) $ac_c" 1>&6
6298 cat > conftest.$ac_ext <<EOF
6299 #line 6300 "configure"
6300 #include "confdefs.h"
6301 /* System header to define __stub macros and hopefully few prototypes,
6302 which can conflict with char strcasecmp(); below. */
6304 /* Override any gcc2 internal prototype to avoid an error. */
6305 /* We use char because int might match the return type of a gcc2
6306 builtin and then its argument prototype would still apply. */
6311 /* The GNU C library defines this for functions which it implements
6312 to always fail with ENOSYS. Some functions are actually named
6313 something starting with __ and the normal name is an alias. */
6314 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6322 if { (eval echo configure:6323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6324 eval "ac_cv_func_strcasecmp=yes"
6326 echo "configure: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6329 eval "ac_cv_func_strcasecmp=no"
6334 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6335 echo "$ac_t""yes" 1>&6
6336 cat >> confdefs.h <<\EOF
6337 #define HAVE_STRCASECMP 1
6341 echo "$ac_t""no" 1>&6
6342 STRCASECMP='strcasecmp.o'
6346 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6347 echo "configure:6348: checking for cbrt" >&5
6348 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6354 /* System header to define __stub macros and hopefully few prototypes,
6355 which can conflict with char cbrt(); below. */
6357 /* Override any gcc2 internal prototype to avoid an error. */
6358 /* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */
6364 /* The GNU C library defines this for functions which it implements
6365 to always fail with ENOSYS. Some functions are actually named
6366 something starting with __ and the normal name is an alias. */
6367 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6377 eval "ac_cv_func_cbrt=yes"
6379 echo "configure: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6382 eval "ac_cv_func_cbrt=no"
6387 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6388 echo "$ac_t""yes" 1>&6
6389 cat >> confdefs.h <<\EOF
6394 echo "$ac_t""no" 1>&6
6395 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6396 echo "configure:6397: checking for cbrt in -lm" >&5
6397 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 ac_save_LIBS="$LIBS"
6403 cat > conftest.$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6406 /* Override any gcc2 internal prototype to avoid an error. */
6407 /* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */
6415 if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6417 eval "ac_cv_lib_$ac_lib_var=yes"
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6422 eval "ac_cv_lib_$ac_lib_var=no"
6425 LIBS="$ac_save_LIBS"
6428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6429 echo "$ac_t""yes" 1>&6
6430 cat >> confdefs.h <<\EOF
6435 echo "$ac_t""no" 1>&6
6441 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6442 # this hackery with HPUXMATHLIB allows us to cope.
6446 if [ -r /lib/pa1.1/libm.a ] ; then
6447 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6452 echo $ac_n "checking for rint""... $ac_c" 1>&6
6453 echo "configure:6454: checking for rint" >&5
6454 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6455 echo $ac_n "(cached) $ac_c" 1>&6
6457 cat > conftest.$ac_ext <<EOF
6458 #line 6459 "configure"
6459 #include "confdefs.h"
6460 /* System header to define __stub macros and hopefully few prototypes,
6461 which can conflict with char rint(); below. */
6463 /* Override any gcc2 internal prototype to avoid an error. */
6464 /* We use char because int might match the return type of a gcc2
6465 builtin and then its argument prototype would still apply. */
6470 /* The GNU C library defines this for functions which it implements
6471 to always fail with ENOSYS. Some functions are actually named
6472 something starting with __ and the normal name is an alias. */
6473 #if defined (__stub_rint) || defined (__stub___rint)
6481 if { (eval echo configure:6482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6483 eval "ac_cv_func_rint=yes"
6485 echo "configure: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6488 eval "ac_cv_func_rint=no"
6493 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6494 echo "$ac_t""yes" 1>&6
6495 cat >> confdefs.h <<\EOF
6500 echo "$ac_t""no" 1>&6
6501 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6502 echo "configure:6503: checking for rint in -lm" >&5
6503 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6507 ac_save_LIBS="$LIBS"
6508 LIBS="-lm $HPUXMATHLIB $LIBS"
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6512 /* Override any gcc2 internal prototype to avoid an error. */
6513 /* We use char because int might match the return type of a gcc2
6514 builtin and then its argument prototype would still apply. */
6521 if { (eval echo configure:6522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6523 eval "ac_cv_lib_$ac_lib_var=yes"
6525 echo "configure: failed program was:" >&5
6526 cat conftest.$ac_ext >&5
6528 eval "ac_cv_lib_$ac_lib_var=no"
6531 LIBS="$ac_save_LIBS"
6534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6535 echo "$ac_t""yes" 1>&6
6536 cat >> confdefs.h <<\EOF
6541 echo "$ac_t""no" 1>&6
6548 # Readline versions < 2.1 don't have rl_completion_append_character
6549 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
6550 echo "configure:6551: checking for rl_completion_append_character" >&5
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6555 #ifdef HAVE_READLINE_READLINE_H
6556 # include <readline/readline.h>
6557 #elif defined(HAVE_READLINE_H)
6558 # include <readline.h>
6562 rl_completion_append_character = 'x';
6565 if { (eval echo configure:6566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6567 echo "$ac_t""yes" 1>&6
6568 cat >> confdefs.h <<\EOF
6569 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6573 echo "configure: failed program was:" >&5
6574 cat conftest.$ac_ext >&5
6576 echo "$ac_t""no" 1>&6
6580 for ac_func in rl_completion_matches
6582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6583 echo "configure:6584: checking for $ac_func" >&5
6584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6585 echo $ac_n "(cached) $ac_c" 1>&6
6587 cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure"
6589 #include "confdefs.h"
6590 /* System header to define __stub macros and hopefully few prototypes,
6591 which can conflict with char $ac_func(); below. */
6593 /* Override any gcc2 internal prototype to avoid an error. */
6594 /* We use char because int might match the return type of a gcc2
6595 builtin and then its argument prototype would still apply. */
6600 /* The GNU C library defines this for functions which it implements
6601 to always fail with ENOSYS. Some functions are actually named
6602 something starting with __ and the normal name is an alias. */
6603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6611 if { (eval echo configure:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6613 eval "ac_cv_func_$ac_func=yes"
6615 echo "configure: failed program was:" >&5
6616 cat conftest.$ac_ext >&5
6618 eval "ac_cv_func_$ac_func=no"
6623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6624 echo "$ac_t""yes" 1>&6
6625 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6626 cat >> confdefs.h <<EOF
6627 #define $ac_tr_func 1
6631 echo "$ac_t""no" 1>&6
6637 echo $ac_n "checking for finite""... $ac_c" 1>&6
6638 echo "configure:6639: checking for finite" >&5
6639 cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6644 int dummy=finite(1.0);
6647 if { (eval echo configure:6648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6649 cat >> confdefs.h <<\EOF
6650 #define HAVE_FINITE 1
6652 echo "$ac_t""yes" 1>&6
6654 echo "configure: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6657 echo "$ac_t""no" 1>&6
6661 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6662 echo "configure:6663: checking for sigsetjmp" >&5
6663 cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6668 sigjmp_buf x; sigsetjmp(x, 1);
6671 if { (eval echo configure:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6673 cat >> confdefs.h <<\EOF
6674 #define HAVE_SIGSETJMP 1
6676 echo "$ac_t""yes" 1>&6
6678 echo "configure: failed program was:" >&5
6679 cat conftest.$ac_ext >&5
6681 echo "$ac_t""no" 1>&6
6686 # Check whether --enable-syslog was given
6687 if test x"${enable_syslog+set}" = xset; then
6688 case $enable_syslog in
6690 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6691 echo "configure:6692: checking for syslog" >&5
6692 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6693 echo $ac_n "(cached) $ac_c" 1>&6
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 /* System header to define __stub macros and hopefully few prototypes,
6699 which can conflict with char syslog(); below. */
6701 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6708 /* The GNU C library defines this for functions which it implements
6709 to always fail with ENOSYS. Some functions are actually named
6710 something starting with __ and the normal name is an alias. */
6711 #if defined (__stub_syslog) || defined (__stub___syslog)
6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721 eval "ac_cv_func_syslog=yes"
6723 echo "configure: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6726 eval "ac_cv_func_syslog=no"
6731 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6732 echo "$ac_t""yes" 1>&6
6733 cat >> confdefs.h <<\EOF
6734 #define ENABLE_SYSLOG 1
6738 echo "$ac_t""no" 1>&6
6739 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6747 enableval=$enable_syslog
6748 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6750 esac # $enable_syslog
6757 echo $ac_n "checking for optreset""... $ac_c" 1>&6
6758 echo "configure:6759: checking for optreset" >&5
6759 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
6760 echo $ac_n "(cached) $ac_c" 1>&6
6762 cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure"
6764 #include "confdefs.h"
6767 extern int optreset; optreset = 1;
6770 if { (eval echo configure:6771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6772 pgac_cv_var_int_optreset=yes
6774 echo "configure: failed program was:" >&5
6775 cat conftest.$ac_ext >&5
6777 pgac_cv_var_int_optreset=no
6782 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
6783 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
6784 cat >> confdefs.h <<\EOF
6785 #define HAVE_INT_OPTRESET 1
6791 # This test makes sure that run tests work at all. Sometimes a shared
6792 # library is found by the linker, but the runtime linker can't find it.
6793 # This check should come after all modifications of compiler or linker
6794 # variables, and before any other run tests.
6795 echo $ac_n "checking test program""... $ac_c" 1>&6
6796 echo "configure:6797: checking test program" >&5
6797 if test "$cross_compiling" = yes; then
6798 echo "$ac_t""cross-compiling" 1>&6
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 int main() { return 0; }
6805 if { (eval echo configure:6806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6807 echo "$ac_t""ok" 1>&6
6809 echo "configure: failed program was:" >&5
6810 cat conftest.$ac_ext >&5
6812 echo "$ac_t""failed" 1>&6
6813 { echo "configure: error:
6814 *** Could not execute a simple test program. This may be a problem
6815 *** related to locating shared libraries. Check the file 'config.log'
6816 *** for the exact reason." 1>&2; exit 1; }
6824 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6825 echo "configure:6826: checking whether long int is 64 bits" >&5
6826 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6829 if test "$cross_compiling" = yes; then
6830 pgac_cv_type_long_int_64=no
6831 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6833 cat > conftest.$ac_ext <<EOF
6834 #line 6835 "configure"
6835 #include "confdefs.h"
6836 typedef long int int64;
6839 * These are globals to discourage the compiler from folding all the
6840 * arithmetic tests down to compile-time constants.
6845 int does_int64_work()
6849 if (sizeof(int64) != 8)
6850 return 0; /* definitely not the right size */
6852 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6860 exit(! does_int64_work());
6863 if { (eval echo configure:6864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6865 pgac_cv_type_long_int_64=yes
6867 echo "configure: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6870 pgac_cv_type_long_int_64=no
6877 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6879 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6880 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6881 cat >> confdefs.h <<\EOF
6882 #define HAVE_LONG_INT_64
6888 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6889 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6890 echo "configure:6891: checking whether long long int is 64 bits" >&5
6891 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6892 echo $ac_n "(cached) $ac_c" 1>&6
6894 if test "$cross_compiling" = yes; then
6895 pgac_cv_type_long_long_int_64=no
6896 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6898 cat > conftest.$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6901 typedef long long int int64;
6904 * These are globals to discourage the compiler from folding all the
6905 * arithmetic tests down to compile-time constants.
6910 int does_int64_work()
6914 if (sizeof(int64) != 8)
6915 return 0; /* definitely not the right size */
6917 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6925 exit(! does_int64_work());
6928 if { (eval echo configure:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6930 pgac_cv_type_long_long_int_64=yes
6932 echo "configure: failed program was:" >&5
6933 cat conftest.$ac_ext >&5
6935 pgac_cv_type_long_long_int_64=no
6942 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
6944 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
6945 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
6946 cat >> confdefs.h <<\EOF
6947 #define HAVE_LONG_LONG_INT_64
6956 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6957 cat > conftest.$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6961 #define INT64CONST(x) x##LL
6962 long long int foo = INT64CONST(0x1234567890123456);
6968 if { (eval echo configure:6969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6970 cat >> confdefs.h <<\EOF
6971 #define HAVE_LL_CONSTANTS 1
6975 echo "configure: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6983 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6984 if [ x$SNPRINTF = x ] ; then
6985 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
6986 echo "configure:6987: checking whether snprintf handles 'long long int' as %lld" >&5
6987 if test "$cross_compiling" = yes; then
6988 echo "$ac_t""assuming not on target machine" 1>&6
6989 # Force usage of our own snprintf, since we cannot test foreign snprintf
6990 SNPRINTF='snprintf.o'
6991 INT64_FORMAT='"%lld"'
6994 cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
6998 typedef long long int int64;
6999 #define INT64_FORMAT "%lld"
7004 int does_int64_snprintf_work()
7009 if (sizeof(int64) != 8)
7010 return 0; /* doesn't look like the right size */
7013 snprintf(buf, 100, INT64_FORMAT, c);
7014 if (strcmp(buf, "800000140000005") != 0)
7015 return 0; /* either multiply or snprintf is busted */
7019 exit(! does_int64_snprintf_work());
7022 if { (eval echo configure:7023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7024 echo "$ac_t""yes" 1>&6
7025 INT64_FORMAT='"%lld"'
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7031 echo "$ac_t""no" 1>&6
7032 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7033 echo "configure:7034: checking whether snprintf handles 'long long int' as %qd" >&5
7034 if test "$cross_compiling" = yes; then
7035 echo "$ac_t""assuming not on target machine" 1>&6
7036 # Force usage of our own snprintf, since we cannot test foreign snprintf
7037 SNPRINTF='snprintf.o'
7038 INT64_FORMAT='"%lld"'
7041 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7045 typedef long long int int64;
7046 #define INT64_FORMAT "%qd"
7051 int does_int64_snprintf_work()
7056 if (sizeof(int64) != 8)
7057 return 0; /* doesn't look like the right size */
7060 snprintf(buf, 100, INT64_FORMAT, c);
7061 if (strcmp(buf, "800000140000005") != 0)
7062 return 0; /* either multiply or snprintf is busted */
7066 exit(! does_int64_snprintf_work());
7069 if { (eval echo configure:7070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7071 echo "$ac_t""yes" 1>&6
7072 INT64_FORMAT='"%qd"'
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 echo "$ac_t""no" 1>&6
7079 # Force usage of our own snprintf, since system snprintf is broken
7080 SNPRINTF='snprintf.o'
7081 INT64_FORMAT='"%lld"'
7092 # here if we previously decided we needed to use our own snprintf
7093 INT64_FORMAT='"%lld"'
7096 # Here if we are not using 'long long int' at all
7097 INT64_FORMAT='"%ld"'
7100 cat >> confdefs.h <<EOF
7101 #define INT64_FORMAT $INT64_FORMAT
7106 for ac_func in strtoll strtoq
7108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7109 echo "configure:7110: checking for $ac_func" >&5
7110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7111 echo $ac_n "(cached) $ac_c" 1>&6
7113 cat > conftest.$ac_ext <<EOF
7114 #line 7115 "configure"
7115 #include "confdefs.h"
7116 /* System header to define __stub macros and hopefully few prototypes,
7117 which can conflict with char $ac_func(); below. */
7119 /* Override any gcc2 internal prototype to avoid an error. */
7120 /* We use char because int might match the return type of a gcc2
7121 builtin and then its argument prototype would still apply. */
7126 /* The GNU C library defines this for functions which it implements
7127 to always fail with ENOSYS. Some functions are actually named
7128 something starting with __ and the normal name is an alias. */
7129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7137 if { (eval echo configure:7138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7139 eval "ac_cv_func_$ac_func=yes"
7141 echo "configure: failed program was:" >&5
7142 cat conftest.$ac_ext >&5
7144 eval "ac_cv_func_$ac_func=no"
7149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7150 echo "$ac_t""yes" 1>&6
7151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7152 cat >> confdefs.h <<EOF
7153 #define $ac_tr_func 1
7157 echo "$ac_t""no" 1>&6
7161 for ac_func in strtoull strtouq
7163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7164 echo "configure:7165: checking for $ac_func" >&5
7165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7166 echo $ac_n "(cached) $ac_c" 1>&6
7168 cat > conftest.$ac_ext <<EOF
7169 #line 7170 "configure"
7170 #include "confdefs.h"
7171 /* System header to define __stub macros and hopefully few prototypes,
7172 which can conflict with char $ac_func(); below. */
7174 /* Override any gcc2 internal prototype to avoid an error. */
7175 /* We use char because int might match the return type of a gcc2
7176 builtin and then its argument prototype would still apply. */
7181 /* The GNU C library defines this for functions which it implements
7182 to always fail with ENOSYS. Some functions are actually named
7183 something starting with __ and the normal name is an alias. */
7184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7192 if { (eval echo configure:7193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7194 eval "ac_cv_func_$ac_func=yes"
7196 echo "configure: failed program was:" >&5
7197 cat conftest.$ac_ext >&5
7199 eval "ac_cv_func_$ac_func=no"
7204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7205 echo "$ac_t""yes" 1>&6
7206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7207 cat >> confdefs.h <<EOF
7208 #define $ac_tr_func 1
7212 echo "$ac_t""no" 1>&6
7217 echo $ac_n "checking for atexit""... $ac_c" 1>&6
7218 echo "configure:7219: checking for atexit" >&5
7219 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
7220 echo $ac_n "(cached) $ac_c" 1>&6
7222 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7225 /* System header to define __stub macros and hopefully few prototypes,
7226 which can conflict with char atexit(); below. */
7228 /* Override any gcc2 internal prototype to avoid an error. */
7229 /* We use char because int might match the return type of a gcc2
7230 builtin and then its argument prototype would still apply. */
7235 /* The GNU C library defines this for functions which it implements
7236 to always fail with ENOSYS. Some functions are actually named
7237 something starting with __ and the normal name is an alias. */
7238 #if defined (__stub_atexit) || defined (__stub___atexit)
7246 if { (eval echo configure:7247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7248 eval "ac_cv_func_atexit=yes"
7250 echo "configure: failed program was:" >&5
7251 cat conftest.$ac_ext >&5
7253 eval "ac_cv_func_atexit=no"
7258 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
7259 echo "$ac_t""yes" 1>&6
7260 cat >> confdefs.h <<\EOF
7261 #define HAVE_ATEXIT 1
7265 echo "$ac_t""no" 1>&6
7266 for ac_func in on_exit
7268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7269 echo "configure:7270: checking for $ac_func" >&5
7270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7273 cat > conftest.$ac_ext <<EOF
7274 #line 7275 "configure"
7275 #include "confdefs.h"
7276 /* System header to define __stub macros and hopefully few prototypes,
7277 which can conflict with char $ac_func(); below. */
7279 /* Override any gcc2 internal prototype to avoid an error. */
7280 /* We use char because int might match the return type of a gcc2
7281 builtin and then its argument prototype would still apply. */
7286 /* The GNU C library defines this for functions which it implements
7287 to always fail with ENOSYS. Some functions are actually named
7288 something starting with __ and the normal name is an alias. */
7289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7297 if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7299 eval "ac_cv_func_$ac_func=yes"
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7304 eval "ac_cv_func_$ac_func=no"
7309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7310 echo "$ac_t""yes" 1>&6
7311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7312 cat >> confdefs.h <<EOF
7313 #define $ac_tr_func 1
7315 cat >> confdefs.h <<\EOF
7316 #define HAVE_ON_EXIT 1
7320 echo "$ac_t""no" 1>&6
7321 { echo "configure: error: atexi() nor on_exit() found" 1>&2; exit 1; }
7329 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
7330 echo "configure:7331: checking size of unsigned long" >&5
7331 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
7332 echo $ac_n "(cached) $ac_c" 1>&6
7334 if test "$cross_compiling" = yes; then
7335 ac_cv_sizeof_unsigned_long=4
7337 cat > conftest.$ac_ext <<EOF
7338 #line 7339 "configure"
7339 #include "confdefs.h"
7343 FILE *f=fopen("conftestval", "w");
7345 fprintf(f, "%d\n", sizeof(unsigned long));
7349 if { (eval echo configure:7350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7351 ac_cv_sizeof_unsigned_long=`cat conftestval`
7353 echo "configure: failed program was:" >&5
7354 cat conftest.$ac_ext >&5
7356 ac_cv_sizeof_unsigned_long=0
7362 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
7363 cat >> confdefs.h <<EOF
7364 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7368 cat >> confdefs.h <<EOF
7369 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
7374 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
7375 echo "configure:7376: checking alignment of short" >&5
7376 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
7377 echo $ac_n "(cached) $ac_c" 1>&6
7379 if test "$cross_compiling" = yes; then
7380 pgac_cv_alignof_short='sizeof(short)'
7382 cat > conftest.$ac_ext <<EOF
7383 #line 7384 "configure"
7384 #include "confdefs.h"
7386 struct { char filler; short field; } mystruct;
7389 FILE *f=fopen("conftestval", "w");
7391 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7395 if { (eval echo configure:7396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7397 pgac_cv_alignof_short=`cat conftestval`
7399 echo "configure: failed program was:" >&5
7400 cat conftest.$ac_ext >&5
7402 pgac_cv_alignof_short='sizeof(short)'
7408 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7409 cat >> confdefs.h <<EOF
7410 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7414 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7415 echo "configure:7416: checking alignment of int" >&5
7416 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7419 if test "$cross_compiling" = yes; then
7420 pgac_cv_alignof_int='sizeof(int)'
7422 cat > conftest.$ac_ext <<EOF
7423 #line 7424 "configure"
7424 #include "confdefs.h"
7426 struct { char filler; int field; } mystruct;
7429 FILE *f=fopen("conftestval", "w");
7431 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7435 if { (eval echo configure:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7437 pgac_cv_alignof_int=`cat conftestval`
7439 echo "configure: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7442 pgac_cv_alignof_int='sizeof(int)'
7448 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7449 cat >> confdefs.h <<EOF
7450 #define ALIGNOF_INT $pgac_cv_alignof_int
7454 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7455 echo "configure:7456: checking alignment of long" >&5
7456 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7457 echo $ac_n "(cached) $ac_c" 1>&6
7459 if test "$cross_compiling" = yes; then
7460 pgac_cv_alignof_long='sizeof(long)'
7462 cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7466 struct { char filler; long field; } mystruct;
7469 FILE *f=fopen("conftestval", "w");
7471 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7475 if { (eval echo configure:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7477 pgac_cv_alignof_long=`cat conftestval`
7479 echo "configure: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7482 pgac_cv_alignof_long='sizeof(long)'
7488 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7489 cat >> confdefs.h <<EOF
7490 #define ALIGNOF_LONG $pgac_cv_alignof_long
7494 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7495 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7496 echo "configure:7497: checking alignment of long long int" >&5
7497 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
7500 if test "$cross_compiling" = yes; then
7501 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7503 cat > conftest.$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7507 struct { char filler; long long int field; } mystruct;
7510 FILE *f=fopen("conftestval", "w");
7512 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7516 if { (eval echo configure:7517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7518 pgac_cv_alignof_long_long_int=`cat conftestval`
7520 echo "configure: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7523 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7529 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7530 cat >> confdefs.h <<EOF
7531 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7536 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7537 echo "configure:7538: checking alignment of double" >&5
7538 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7539 echo $ac_n "(cached) $ac_c" 1>&6
7541 if test "$cross_compiling" = yes; then
7542 pgac_cv_alignof_double='sizeof(double)'
7544 cat > conftest.$ac_ext <<EOF
7545 #line 7546 "configure"
7546 #include "confdefs.h"
7548 struct { char filler; double field; } mystruct;
7551 FILE *f=fopen("conftestval", "w");
7553 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7557 if { (eval echo configure:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7559 pgac_cv_alignof_double=`cat conftestval`
7561 echo "configure: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7564 pgac_cv_alignof_double='sizeof(double)'
7570 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7571 cat >> confdefs.h <<EOF
7572 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7578 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7579 MAX_ALIGNOF=$pgac_cv_alignof_long
7580 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7581 MAX_ALIGNOF=$pgac_cv_alignof_double
7583 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7584 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7587 MAX_ALIGNOF="$pgac_cv_alignof_double"
7589 cat >> confdefs.h <<EOF
7590 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7594 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7595 echo "configure:7596: checking for POSIX signal interface" >&5
7596 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7597 echo $ac_n "(cached) $ac_c" 1>&6
7599 cat > conftest.$ac_ext <<EOF
7600 #line 7601 "configure"
7601 #include "confdefs.h"
7605 struct sigaction act, oact;
7606 sigemptyset(&act.sa_mask);
7607 act.sa_flags = SA_RESTART;
7608 sigaction(0, &act, &oact);
7611 if { (eval echo configure:7612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7613 pgac_cv_func_posix_signals=yes
7615 echo "configure: failed program was:" >&5
7616 cat conftest.$ac_ext >&5
7618 pgac_cv_func_posix_signals=no
7623 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
7624 if test x"$pgac_cv_func_posix_signals" = xyes ; then
7625 cat >> confdefs.h <<\EOF
7626 #define HAVE_POSIX_SIGNALS
7630 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
7634 # Check for Tcl configuration script tclConfig.sh
7635 if test "$with_tcl" = yes; then
7636 for ac_prog in tclsh tcl
7638 # Extract the first word of "$ac_prog", so it can be a program name with args.
7639 set dummy $ac_prog; ac_word=$2
7640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7641 echo "configure:7642: checking for $ac_word" >&5
7642 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
7643 echo $ac_n "(cached) $ac_c" 1>&6
7647 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7650 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7655 for ac_dir in $ac_dummy; do
7656 test -z "$ac_dir" && ac_dir=.
7657 if test -f $ac_dir/$ac_word; then
7658 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7666 TCLSH="$ac_cv_path_TCLSH"
7667 if test -n "$TCLSH"; then
7668 echo "$ac_t""$TCLSH" 1>&6
7670 echo "$ac_t""no" 1>&6
7673 test -n "$TCLSH" && break
7676 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7677 echo "configure:7678: checking for tclConfig.sh" >&5
7678 # Let user override test
7679 if test -z "$TCL_CONFIG_SH"; then
7680 pgac_test_dirs="$with_tclconfig"
7682 set X $pgac_test_dirs; shift
7683 if test $# -eq 0; then
7684 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7685 set X `echo 'puts $auto_path' | $TCLSH`; shift
7689 if test -r "$pgac_dir/tclConfig.sh"; then
7690 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7696 if test -z "$TCL_CONFIG_SH"; then
7697 echo "$ac_t""no" 1>&6
7698 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7700 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7707 # Check for Tk configuration script tkConfig.sh
7708 if test "$with_tk" = yes; then
7709 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7710 echo "configure:7711: checking for tkConfig.sh" >&5
7711 # Let user override test
7712 if test -z "$TK_CONFIG_SH"; then
7713 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7715 set X $pgac_test_dirs; shift
7716 if test $# -eq 0; then
7717 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7718 set X `echo 'puts $auto_path' | $TCLSH`; shift
7722 if test -r "$pgac_dir/tkConfig.sh"; then
7723 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7729 if test -z "$TK_CONFIG_SH"; then
7730 echo "$ac_t""no" 1>&6
7731 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7733 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7742 # Check for DocBook and tools
7744 for ac_prog in onsgmls nsgmls
7746 # Extract the first word of "$ac_prog", so it can be a program name with args.
7747 set dummy $ac_prog; ac_word=$2
7748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7749 echo "configure:7750: checking for $ac_word" >&5
7750 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
7751 echo $ac_n "(cached) $ac_c" 1>&6
7753 if test -n "$NSGMLS"; then
7754 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
7756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7758 for ac_dir in $ac_dummy; do
7759 test -z "$ac_dir" && ac_dir=.
7760 if test -f $ac_dir/$ac_word; then
7761 ac_cv_prog_NSGMLS="$ac_prog"
7768 NSGMLS="$ac_cv_prog_NSGMLS"
7769 if test -n "$NSGMLS"; then
7770 echo "$ac_t""$NSGMLS" 1>&6
7772 echo "$ac_t""no" 1>&6
7775 test -n "$NSGMLS" && break
7778 # If you don't have nsgmls you won't get very far, so save the cycles.
7779 if test -n "$NSGMLS"; then
7780 for ac_prog in openjade jade
7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
7783 set dummy $ac_prog; ac_word=$2
7784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7785 echo "configure:7786: checking for $ac_word" >&5
7786 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7789 if test -n "$JADE"; then
7790 ac_cv_prog_JADE="$JADE" # Let the user override the test.
7792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7794 for ac_dir in $ac_dummy; do
7795 test -z "$ac_dir" && ac_dir=.
7796 if test -f $ac_dir/$ac_word; then
7797 ac_cv_prog_JADE="$ac_prog"
7804 JADE="$ac_cv_prog_JADE"
7805 if test -n "$JADE"; then
7806 echo "$ac_t""$JADE" 1>&6
7808 echo "$ac_t""no" 1>&6
7811 test -n "$JADE" && break
7815 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
7816 echo "configure:7817: checking for DocBook V3.1" >&5
7817 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
7818 echo $ac_n "(cached) $ac_c" 1>&6
7820 cat >conftest.sgml <<EOF
7821 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
7825 <title>random</title>
7827 <title>testsect</title>
7834 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
7835 if test $? -eq 0; then
7836 pgac_cv_check_docbook=yes
7838 pgac_cv_check_docbook=no
7843 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
7845 have_docbook=$pgac_cv_check_docbook
7848 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
7849 echo "configure:7850: checking for DocBook stylesheets" >&5
7850 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
7851 echo $ac_n "(cached) $ac_c" 1>&6
7853 if test -n "$DOCBOOKSTYLE"; then
7854 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
7856 for pgac_prefix in /usr /usr/local /opt; do
7857 for pgac_infix in share lib; do
7858 for pgac_postfix in \
7859 sgml/stylesheets/nwalsh-modular \
7860 sgml/stylesheets/docbook \
7861 sgml/docbook/dsssl/modular
7863 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
7864 if test -r "$pgac_candidate/html/docbook.dsl" \
7865 && test -r "$pgac_candidate/print/docbook.dsl"
7867 pgac_cv_path_stylesheets=$pgac_candidate
7876 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
7878 if test -n "$DOCBOOKSTYLE"; then
7879 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
7881 echo "$ac_t""no" 1>&6
7883 for ac_prog in sgmlspl
7885 # Extract the first word of "$ac_prog", so it can be a program name with args.
7886 set dummy $ac_prog; ac_word=$2
7887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7888 echo "configure:7889: checking for $ac_word" >&5
7889 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
7890 echo $ac_n "(cached) $ac_c" 1>&6
7892 if test -n "$SGMLSPL"; then
7893 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
7895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7897 for ac_dir in $ac_dummy; do
7898 test -z "$ac_dir" && ac_dir=.
7899 if test -f $ac_dir/$ac_word; then
7900 ac_cv_prog_SGMLSPL="$ac_prog"
7907 SGMLSPL="$ac_cv_prog_SGMLSPL"
7908 if test -n "$SGMLSPL"; then
7909 echo "$ac_t""$SGMLSPL" 1>&6
7911 echo "$ac_t""no" 1>&6
7914 test -n "$SGMLSPL" && break
7919 # check whether 'test -ef' works
7920 if (test "$srcdir" -ef "$srcdir") >/dev/null 2>&1 ; then
7929 if test "$test_ef_works" = yes ; then
7930 # prepare build tree if outside source tree
7931 if test "$srcdir" -ef . ; then : ; else
7932 abs_top_srcdir=`cd $srcdir && pwd`
7933 echo $ac_n "preparing build tree... $ac_c" 1>&6
7934 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "." \
7935 || { echo "configure: error: failed" 1>&2; exit 1; }
7936 echo "$ac_t""done" 1>&6
7941 cat > confcache <<\EOF
7942 # This file is a shell script that caches the results of configure
7943 # tests run on this system so they can be shared between configure
7944 # scripts and configure runs. It is not useful on other systems.
7945 # If it contains results you don't want to keep, you may remove or edit it.
7947 # By default, configure uses ./config.cache as the cache file,
7948 # creating it if it does not exist already. You can give configure
7949 # the --cache-file=FILE option to use a different cache file; that is
7950 # what configure does when it calls configure scripts in
7951 # subdirectories, so they share the cache.
7952 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7953 # config.status only pays attention to the cache file if you give it the
7954 # --recheck option to rerun configure.
7957 # The following way of writing the cache mishandles newlines in values,
7958 # but we know of no workaround that is simple, portable, and efficient.
7959 # So, don't put newlines in cache variables' values.
7960 # Ultrix sh set writes to stderr and can't be redirected directly,
7961 # and sets the high bit in the cache file unless we assign to the vars.
7963 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7965 # `set' does not quote correctly, so add quotes (double-quote substitution
7966 # turns \\\\ into \\, and sed turns \\ into \).
7968 -e "s/'/'\\\\''/g" \
7969 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7972 # `set' quotes correctly as required by POSIX, so do not add quotes.
7973 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7976 if cmp -s $cache_file confcache; then
7979 if test -w $cache_file; then
7980 echo "updating cache $cache_file"
7981 cat confcache > $cache_file
7983 echo "not updating unwritable cache $cache_file"
7988 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7990 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7991 # Let make expand exec_prefix.
7992 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7994 # Any assignment to VPATH causes Sun make to only execute
7995 # the first set of double-colon rules, so remove it if not needed.
7996 # If there is a colon in the path, we need to keep it.
7997 if test "x$srcdir" = x.; then
7998 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8001 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8003 DEFS=-DHAVE_CONFIG_H
8005 # Without the "./", some shells look in PATH for config.status.
8006 : ${CONFIG_STATUS=./config.status}
8008 echo creating $CONFIG_STATUS
8009 rm -f $CONFIG_STATUS
8010 cat > $CONFIG_STATUS <<EOF
8012 # Generated automatically by configure.
8013 # Run this file to recreate the current configuration.
8014 # This directory was configured as follows,
8015 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8017 # $0 $ac_configure_args
8019 # Compiler output produced by configure, useful for debugging
8020 # configure, is in ./config.log if it exists.
8022 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8025 case "\$ac_option" in
8026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8027 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8028 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8029 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8030 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8032 -help | --help | --hel | --he | --h)
8033 echo "\$ac_cs_usage"; exit 0 ;;
8034 *) echo "\$ac_cs_usage"; exit 1 ;;
8038 ac_given_srcdir=$srcdir
8040 trap 'rm -fr `echo "
8044 src/backend/port/Makefile
8045 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8047 cat >> $CONFIG_STATUS <<EOF
8049 # Protect against being on the right side of a sed subst in config.status.
8050 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8051 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8055 s%@CFLAGS@%$CFLAGS%g
8056 s%@CPPFLAGS@%$CPPFLAGS%g
8057 s%@CXXFLAGS@%$CXXFLAGS%g
8058 s%@FFLAGS@%$FFLAGS%g
8060 s%@LDFLAGS@%$LDFLAGS%g
8062 s%@exec_prefix@%$exec_prefix%g
8063 s%@prefix@%$prefix%g
8064 s%@program_transform_name@%$program_transform_name%g
8065 s%@bindir@%$bindir%g
8066 s%@sbindir@%$sbindir%g
8067 s%@libexecdir@%$libexecdir%g
8068 s%@datadir@%$datadir%g
8069 s%@sysconfdir@%$sysconfdir%g
8070 s%@sharedstatedir@%$sharedstatedir%g
8071 s%@localstatedir@%$localstatedir%g
8072 s%@libdir@%$libdir%g
8073 s%@includedir@%$includedir%g
8074 s%@oldincludedir@%$oldincludedir%g
8075 s%@docdir@%$docdir%g
8076 s%@mandir@%$mandir%g
8077 s%@VERSION@%$VERSION%g
8079 s%@host_alias@%$host_alias%g
8080 s%@host_cpu@%$host_cpu%g
8081 s%@host_vendor@%$host_vendor%g
8082 s%@host_os@%$host_os%g
8083 s%@PORTNAME@%$PORTNAME%g
8085 s%@MULTIBYTE@%$MULTIBYTE%g
8086 s%@default_port@%$default_port%g
8087 s%@enable_shared@%$enable_shared%g
8088 s%@enable_rpath@%$enable_rpath%g
8090 s%@EXEEXT@%$EXEEXT%g
8093 s%@autodepend@%$autodepend%g
8094 s%@INCLUDES@%$INCLUDES%g
8095 s%@with_tcl@%$with_tcl%g
8096 s%@with_tk@%$with_tk%g
8097 s%@with_perl@%$with_perl%g
8098 s%@PYTHON@%$PYTHON%g
8099 s%@python_version@%$python_version%g
8100 s%@python_prefix@%$python_prefix%g
8101 s%@python_execprefix@%$python_execprefix%g
8102 s%@python_configdir@%$python_configdir%g
8103 s%@python_moduledir@%$python_moduledir%g
8104 s%@python_extmakefile@%$python_extmakefile%g
8105 s%@with_python@%$with_python%g
8107 s%@with_java@%$with_java%g
8108 s%@with_krb4@%$with_krb4%g
8109 s%@with_krb5@%$with_krb5%g
8110 s%@krb_srvtab@%$krb_srvtab%g
8111 s%@with_openssl@%$with_openssl%g
8112 s%@enable_odbc@%$enable_odbc%g
8113 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
8114 s%@ELF_SYS@%$ELF_SYS%g
8116 s%@CXXCPP@%$CXXCPP%g
8118 s%@with_CXX@%$with_CXX%g
8121 s%@FLEXFLAGS@%$FLEXFLAGS%g
8124 s%@with_gnu_ld@%$with_gnu_ld%g
8125 s%@ld_R_works@%$ld_R_works%g
8126 s%@RANLIB@%$RANLIB%g
8127 s%@LORDER@%$LORDER%g
8131 s%@YFLAGS@%$YFLAGS%g
8133 s%@SNPRINTF@%$SNPRINTF%g
8135 s%@GETRUSAGE@%$GETRUSAGE%g
8136 s%@SRANDOM@%$SRANDOM%g
8137 s%@GETHOSTNAME@%$GETHOSTNAME%g
8138 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
8139 s%@INET_ATON@%$INET_ATON%g
8140 s%@STRERROR@%$STRERROR%g
8141 s%@STRDUP@%$STRDUP%g
8142 s%@STRTOL@%$STRTOL%g
8143 s%@STRTOUL@%$STRTOUL%g
8144 s%@STRCASECMP@%$STRCASECMP%g
8145 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
8146 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
8148 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
8149 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
8150 s%@NSGMLS@%$NSGMLS%g
8152 s%@have_docbook@%$have_docbook%g
8153 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
8154 s%@SGMLSPL@%$SGMLSPL%g
8155 s%@abs_top_srcdir@%$abs_top_srcdir%g
8160 cat >> $CONFIG_STATUS <<\EOF
8162 # Split the substitutions into bite-sized pieces for seds with
8163 # small command number limits, like on Digital OSF/1 and HP-UX.
8164 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8165 ac_file=1 # Number of current file.
8166 ac_beg=1 # First line for current file.
8167 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8170 while $ac_more_lines; do
8171 if test $ac_beg -gt 1; then
8172 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8174 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8176 if test ! -s conftest.s$ac_file; then
8178 rm -f conftest.s$ac_file
8180 if test -z "$ac_sed_cmds"; then
8181 ac_sed_cmds="sed -f conftest.s$ac_file"
8183 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8185 ac_file=`expr $ac_file + 1`
8187 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8190 if test -z "$ac_sed_cmds"; then
8195 cat >> $CONFIG_STATUS <<EOF
8197 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
8200 src/backend/port/Makefile
8203 cat >> $CONFIG_STATUS <<\EOF
8204 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8205 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8207 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8208 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8209 *) ac_file_in="${ac_file}.in" ;;
8212 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8214 # Remove last slash and all that follows it. Not all systems have dirname.
8215 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8216 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8217 # The file is in a subdirectory.
8218 test ! -d "$ac_dir" && mkdir "$ac_dir"
8219 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8220 # A "../" for each directory in $ac_dir_suffix.
8221 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8223 ac_dir_suffix= ac_dots=
8226 case "$ac_given_srcdir" in
8228 if test -z "$ac_dots"; then top_srcdir=.
8229 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8230 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8232 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8233 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8237 echo creating "$ac_file"
8239 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8241 *Makefile*) ac_comsub="1i\\
8242 # $configure_input" ;;
8246 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8248 s%@configure_input@%$configure_input%g
8249 s%@srcdir@%$srcdir%g
8250 s%@top_srcdir@%$top_srcdir%g
8251 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8255 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8256 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8258 # ac_d sets the value in "#define NAME VALUE" lines.
8259 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8260 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8263 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8264 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8265 ac_uB='\([ ]\)%\1#\2define\3'
8268 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8269 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8270 ac_eB='$%\1#\2define\3'
8274 if test "${CONFIG_HEADERS+set}" != set; then
8276 cat >> $CONFIG_STATUS <<EOF
8277 CONFIG_HEADERS="src/include/config.h"
8279 cat >> $CONFIG_STATUS <<\EOF
8281 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8282 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8284 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8285 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8286 *) ac_file_in="${ac_file}.in" ;;
8289 echo creating $ac_file
8291 rm -f conftest.frag conftest.in conftest.out
8292 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8293 cat $ac_file_inputs > conftest.in
8297 # Transform confdefs.h into a sed script conftest.vals that substitutes
8298 # the proper values into config.h.in to produce config.h. And first:
8299 # Protect against being on the right side of a sed subst in config.status.
8300 # Protect against being in an unquoted here document in config.status.
8302 cat > conftest.hdr <<\EOF
8305 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8309 sed -n -f conftest.hdr confdefs.h > conftest.vals
8312 # This sed command replaces #undef with comments. This is necessary, for
8313 # example, in the case of _POSIX_SOURCE, which is predefined and required
8314 # on some systems where configure will not decide to define it.
8315 cat >> conftest.vals <<\EOF
8316 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8319 # Break up conftest.vals because some shells have a limit on
8320 # the size of here documents, and old seds have small limits too.
8325 ac_lines=`grep -c . conftest.vals`
8326 # grep -c gives empty output for an empty file on some AIX systems.
8327 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8328 # Write a limited-size here document to conftest.frag.
8329 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8330 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8332 sed -f conftest.frag conftest.in > conftest.out
8334 mv conftest.out conftest.in
8336 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8338 mv conftest.tail conftest.vals
8342 cat >> $CONFIG_STATUS <<\EOF
8343 rm -f conftest.frag conftest.h
8344 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8345 cat conftest.in >> conftest.h
8347 if cmp -s $ac_file conftest.h 2>/dev/null; then
8348 echo "$ac_file is unchanged"
8351 # Remove last slash and all that follows it. Not all systems have dirname.
8352 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8353 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8354 # The file is in a subdirectory.
8355 test ! -d "$ac_dir" && mkdir "$ac_dir"
8358 mv conftest.h $ac_file
8364 cat >> $CONFIG_STATUS <<EOF
8365 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}"
8366 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
8369 cat >> $CONFIG_STATUS <<\EOF
8370 srcdir=$ac_given_srcdir
8371 while test -n "$ac_sources"; do
8372 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8373 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8375 echo "linking $srcdir/$ac_source to $ac_dest"
8377 if test ! -r $srcdir/$ac_source; then
8378 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8382 # Make relative symlinks.
8383 # Remove last slash and all that follows it. Not all systems have dirname.
8384 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8385 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8386 # The dest file is in a subdirectory.
8387 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8388 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8389 # A "../" for each directory in $ac_dest_dir_suffix.
8390 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8392 ac_dest_dir_suffix= ac_dots=
8396 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8397 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8400 # Make a symlink if possible; otherwise try a hard link.
8401 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8402 ln $srcdir/$ac_source $ac_dest; then :
8404 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8408 cat >> $CONFIG_STATUS <<EOF
8411 cat >> $CONFIG_STATUS <<\EOF
8413 # Update timestamp for config.h (see Makefile.global)
8414 test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
8418 chmod +x $CONFIG_STATUS
8419 rm -fr confdefs* $ac_clean_files
8420 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1