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 main in -lsfio""... $ac_c" 1>&6
3099 echo "configure:3100: checking for main in -lsfio" >&5
3100 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
3101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 ac_save_LIBS="$LIBS"
3106 cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3114 if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3116 eval "ac_cv_lib_$ac_lib_var=yes"
3118 echo "configure: failed program was:" >&5
3119 cat conftest.$ac_ext >&5
3121 eval "ac_cv_lib_$ac_lib_var=no"
3124 LIBS="$ac_save_LIBS"
3127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3128 echo "$ac_t""yes" 1>&6
3129 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3131 cat >> confdefs.h <<EOF
3132 #define $ac_tr_lib 1
3138 echo "$ac_t""no" 1>&6
3141 echo $ac_n "checking for readline""... $ac_c" 1>&6
3142 echo "configure:3143: checking for readline" >&5
3144 if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 pgac_cv_check_readline=no
3148 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3149 for pgac_rllib in -lreadline -ledit ; do
3150 pgac_save_LIBS=$LIBS
3151 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
3152 cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3155 /* Override any gcc2 internal prototype to avoid an error. */
3156 /* We use char because int might match the return type of a gcc2
3157 builtin and then its argument prototype would still apply. */
3164 if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3166 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3172 LIBS=$pgac_save_LIBS
3175 LIBS=$pgac_save_LIBS
3179 if test "$pgac_cv_check_readline" != no ; then
3180 cat >> confdefs.h <<\EOF
3181 #define HAVE_LIBREADLINE 1
3184 LIBS="$pgac_cv_check_readline $LIBS"
3185 echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
3187 echo "$ac_t""no" 1>&6
3190 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3191 echo "configure:3192: checking for library containing using_history" >&5
3192 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 ac_func_search_save_LIBS="$LIBS"
3196 ac_cv_search_using_history="no"
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200 /* Override any gcc2 internal prototype to avoid an error. */
3201 /* We use char because int might match the return type of a gcc2
3202 builtin and then its argument prototype would still apply. */
3203 char using_history();
3209 if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3211 ac_cv_search_using_history="none required"
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3217 test "$ac_cv_search_using_history" = "no" && for i in history; do
3218 LIBS="-l$i $ac_func_search_save_LIBS"
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 /* Override any gcc2 internal prototype to avoid an error. */
3223 /* We use char because int might match the return type of a gcc2
3224 builtin and then its argument prototype would still apply. */
3225 char using_history();
3231 if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3233 ac_cv_search_using_history="-l$i"
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3241 LIBS="$ac_func_search_save_LIBS"
3244 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3245 if test "$ac_cv_search_using_history" != "no"; then
3246 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3247 cat >> confdefs.h <<\EOF
3248 #define HAVE_HISTORY_FUNCTIONS 1
3255 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3257 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3258 echo "configure:3259: checking for main in -lbsd" >&5
3259 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 ac_save_LIBS="$LIBS"
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3275 eval "ac_cv_lib_$ac_lib_var=yes"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3280 eval "ac_cv_lib_$ac_lib_var=no"
3283 LIBS="$ac_save_LIBS"
3286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3287 echo "$ac_t""yes" 1>&6
3288 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3290 cat >> confdefs.h <<EOF
3291 #define $ac_tr_lib 1
3297 echo "$ac_t""no" 1>&6
3301 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3302 echo "configure:3303: checking for setproctitle in -lutil" >&5
3303 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 ac_save_LIBS="$LIBS"
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 /* Override any gcc2 internal prototype to avoid an error. */
3313 /* We use char because int might match the return type of a gcc2
3314 builtin and then its argument prototype would still apply. */
3315 char setproctitle();
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 util | 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 -lm""... $ac_c" 1>&6
3349 echo "configure:3350: checking for main in -lm" >&5
3350 ac_lib_var=`echo m'_'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 m | 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 -ldl""... $ac_c" 1>&6
3392 echo "configure:3393: checking for main in -ldl" >&5
3393 ac_lib_var=`echo dl'_'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"
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 dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3423 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3424 cat >> confdefs.h <<EOF
3425 #define $ac_tr_lib 1
3431 echo "$ac_t""no" 1>&6
3434 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3435 echo "configure:3436: checking for main in -lsocket" >&5
3436 ac_lib_var=`echo socket'_'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"
3441 LIBS="-lsocket $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 socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3466 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3467 cat >> confdefs.h <<EOF
3468 #define $ac_tr_lib 1
3471 LIBS="-lsocket $LIBS"
3474 echo "$ac_t""no" 1>&6
3477 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3478 echo "configure:3479: checking for main in -lnsl" >&5
3479 ac_lib_var=`echo nsl'_'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 nsl | 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 -lIPC""... $ac_c" 1>&6
3564 echo "configure:3565: checking for main in -lIPC" >&5
3565 ac_lib_var=`echo IPC'_'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 IPC | 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 -llc""... $ac_c" 1>&6
3607 echo "configure:3608: checking for main in -llc" >&5
3608 ac_lib_var=`echo lc'_'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 lc | 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 -ldld""... $ac_c" 1>&6
3650 echo "configure:3651: checking for main in -ldld" >&5
3651 ac_lib_var=`echo dld'_'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 dld | 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 -lld""... $ac_c" 1>&6
3693 echo "configure:3694: checking for main in -lld" >&5
3694 ac_lib_var=`echo ld'_'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"
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 ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3724 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3725 cat >> confdefs.h <<EOF
3726 #define $ac_tr_lib 1
3732 echo "$ac_t""no" 1>&6
3735 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3736 echo "configure:3737: checking for main in -lcompat" >&5
3737 ac_lib_var=`echo compat'_'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"
3742 LIBS="-lcompat $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 compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3767 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3768 cat >> confdefs.h <<EOF
3769 #define $ac_tr_lib 1
3772 LIBS="-lcompat $LIBS"
3775 echo "$ac_t""no" 1>&6
3778 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3779 echo "configure:3780: checking for main in -lBSD" >&5
3780 ac_lib_var=`echo BSD'_'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 BSD | 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 -lgen""... $ac_c" 1>&6
3822 echo "configure:3823: checking for main in -lgen" >&5
3823 ac_lib_var=`echo gen'_'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 gen | 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 -lPW""... $ac_c" 1>&6
3865 echo "configure:3866: checking for main in -lPW" >&5
3866 ac_lib_var=`echo PW'_'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"
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 PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3896 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3897 cat >> confdefs.h <<EOF
3898 #define $ac_tr_lib 1
3904 echo "$ac_t""no" 1>&6
3907 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
3908 echo "configure:3909: checking for main in -lresolv" >&5
3909 ac_lib_var=`echo resolv'_'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"
3914 LIBS="-lresolv $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 resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3939 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3940 cat >> confdefs.h <<EOF
3941 #define $ac_tr_lib 1
3944 LIBS="-lresolv $LIBS"
3947 echo "$ac_t""no" 1>&6
3950 echo $ac_n "checking for main in -lunix""... $ac_c" 1>&6
3951 echo "configure:3952: checking for main in -lunix" >&5
3952 ac_lib_var=`echo unix'_'main | sed 'y%./+-%__p_%'`
3953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 ac_save_LIBS="$LIBS"
3958 cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3968 eval "ac_cv_lib_$ac_lib_var=yes"
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3973 eval "ac_cv_lib_$ac_lib_var=no"
3976 LIBS="$ac_save_LIBS"
3979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3980 echo "$ac_t""yes" 1>&6
3981 ac_tr_lib=HAVE_LIB`echo [unix] | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3982 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3983 cat >> confdefs.h <<EOF
3984 #define $ac_tr_lib 1
3990 echo "$ac_t""no" 1>&6
3994 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
3995 echo "configure:3996: checking for library containing crypt" >&5
3996 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 ac_func_search_save_LIBS="$LIBS"
4000 ac_cv_search_crypt="no"
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 /* Override any gcc2 internal prototype to avoid an error. */
4005 /* We use char because int might match the return type of a gcc2
4006 builtin and then its argument prototype would still apply. */
4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4015 ac_cv_search_crypt="none required"
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4021 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4022 LIBS="-l$i $ac_func_search_save_LIBS"
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4026 /* Override any gcc2 internal prototype to avoid an error. */
4027 /* We use char because int might match the return type of a gcc2
4028 builtin and then its argument prototype would still apply. */
4035 if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4037 ac_cv_search_crypt="-l$i"
4040 echo "configure: failed program was:" >&5
4041 cat conftest.$ac_ext >&5
4045 LIBS="$ac_func_search_save_LIBS"
4048 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4049 if test "$ac_cv_search_crypt" != "no"; then
4050 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4055 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4056 echo "configure:4057: checking for __inet_ntoa in -lbind" >&5
4057 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4061 ac_save_LIBS="$LIBS"
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4066 /* Override any gcc2 internal prototype to avoid an error. */
4067 /* We use char because int might match the return type of a gcc2
4068 builtin and then its argument prototype would still apply. */
4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4077 eval "ac_cv_lib_$ac_lib_var=yes"
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4082 eval "ac_cv_lib_$ac_lib_var=no"
4085 LIBS="$ac_save_LIBS"
4088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4089 echo "$ac_t""yes" 1>&6
4090 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4091 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4092 cat >> confdefs.h <<EOF
4093 #define $ac_tr_lib 1
4099 echo "$ac_t""no" 1>&6
4102 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
4103 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
4104 echo "configure:4105: checking for zlib.h" >&5
4105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4108 cat > conftest.$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4114 { (eval echo configure:4115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4116 if test -z "$ac_err"; then
4118 eval "ac_cv_header_$ac_safe=yes"
4121 echo "configure: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4124 eval "ac_cv_header_$ac_safe=no"
4128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4131 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4132 echo "configure:4133: checking for inflate in -lz" >&5
4133 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 ac_save_LIBS="$LIBS"
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4142 /* Override any gcc2 internal prototype to avoid an error. */
4143 /* We use char because int might match the return type of a gcc2
4144 builtin and then its argument prototype would still apply. */
4151 if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4153 eval "ac_cv_lib_$ac_lib_var=yes"
4155 echo "configure: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4158 eval "ac_cv_lib_$ac_lib_var=no"
4161 LIBS="$ac_save_LIBS"
4164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4165 echo "$ac_t""yes" 1>&6
4166 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4168 cat >> confdefs.h <<EOF
4169 #define $ac_tr_lib 1
4175 echo "$ac_t""no" 1>&6
4180 echo "$ac_t""no" 1>&6
4185 if test "$with_krb4" = yes ; then
4186 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4187 echo "configure:4188: checking for des_encrypt in -ldes" >&5
4188 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 ac_save_LIBS="$LIBS"
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 /* Override any gcc2 internal prototype to avoid an error. */
4198 /* We use char because int might match the return type of a gcc2
4199 builtin and then its argument prototype would still apply. */
4206 if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4208 eval "ac_cv_lib_$ac_lib_var=yes"
4210 echo "configure: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4213 eval "ac_cv_lib_$ac_lib_var=no"
4216 LIBS="$ac_save_LIBS"
4219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4220 echo "$ac_t""yes" 1>&6
4221 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4222 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4223 cat >> confdefs.h <<EOF
4224 #define $ac_tr_lib 1
4230 echo "$ac_t""no" 1>&6
4231 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4234 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4235 echo "configure:4236: checking for krb_sendauth in -lkrb" >&5
4236 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 ac_save_LIBS="$LIBS"
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 /* Override any gcc2 internal prototype to avoid an error. */
4246 /* We use char because int might match the return type of a gcc2
4247 builtin and then its argument prototype would still apply. */
4248 char krb_sendauth();
4254 if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4256 eval "ac_cv_lib_$ac_lib_var=yes"
4258 echo "configure: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
4261 eval "ac_cv_lib_$ac_lib_var=no"
4264 LIBS="$ac_save_LIBS"
4267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4268 echo "$ac_t""yes" 1>&6
4269 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4270 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4271 cat >> confdefs.h <<EOF
4272 #define $ac_tr_lib 1
4278 echo "$ac_t""no" 1>&6
4279 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4284 if test "$with_krb5" = yes ; then
4285 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4286 echo "configure:4287: checking for com_err in -lcom_err" >&5
4287 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4291 ac_save_LIBS="$LIBS"
4292 LIBS="-lcom_err $LIBS"
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4307 eval "ac_cv_lib_$ac_lib_var=yes"
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4312 eval "ac_cv_lib_$ac_lib_var=no"
4315 LIBS="$ac_save_LIBS"
4318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4321 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4322 cat >> confdefs.h <<EOF
4323 #define $ac_tr_lib 1
4326 LIBS="-lcom_err $LIBS"
4329 echo "$ac_t""no" 1>&6
4330 { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
4333 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4334 echo "configure:4335: checking for krb5_encrypt in -lcrypto" >&5
4335 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 ac_save_LIBS="$LIBS"
4340 LIBS="-lcrypto $LIBS"
4341 cat > conftest.$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4344 /* Override any gcc2 internal prototype to avoid an error. */
4345 /* We use char because int might match the return type of a gcc2
4346 builtin and then its argument prototype would still apply. */
4347 char krb5_encrypt();
4353 if { (eval echo configure:4354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4355 eval "ac_cv_lib_$ac_lib_var=yes"
4357 echo "configure: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4360 eval "ac_cv_lib_$ac_lib_var=no"
4363 LIBS="$ac_save_LIBS"
4366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4367 echo "$ac_t""yes" 1>&6
4368 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4369 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4370 cat >> confdefs.h <<EOF
4371 #define $ac_tr_lib 1
4374 LIBS="-lcrypto $LIBS"
4377 echo "$ac_t""no" 1>&6
4378 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4379 echo "configure:4380: checking for krb5_encrypt in -lk5crypto" >&5
4380 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 ac_save_LIBS="$LIBS"
4385 LIBS="-lk5crypto $LIBS"
4386 cat > conftest.$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4389 /* Override any gcc2 internal prototype to avoid an error. */
4390 /* We use char because int might match the return type of a gcc2
4391 builtin and then its argument prototype would still apply. */
4392 char krb5_encrypt();
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4400 eval "ac_cv_lib_$ac_lib_var=yes"
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 eval "ac_cv_lib_$ac_lib_var=no"
4408 LIBS="$ac_save_LIBS"
4411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4412 echo "$ac_t""yes" 1>&6
4413 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4414 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4415 cat >> confdefs.h <<EOF
4416 #define $ac_tr_lib 1
4419 LIBS="-lk5crypto $LIBS"
4422 echo "$ac_t""no" 1>&6
4423 { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
4428 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4429 echo "configure:4430: checking for krb5_sendauth in -lkrb5" >&5
4430 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 ac_save_LIBS="$LIBS"
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4439 /* Override any gcc2 internal prototype to avoid an error. */
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4442 char krb5_sendauth();
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4450 eval "ac_cv_lib_$ac_lib_var=yes"
4452 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4455 eval "ac_cv_lib_$ac_lib_var=no"
4458 LIBS="$ac_save_LIBS"
4461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4464 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4465 cat >> confdefs.h <<EOF
4466 #define $ac_tr_lib 1
4472 echo "$ac_t""no" 1>&6
4473 { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
4478 if test "$with_openssl" = yes ; then
4479 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4480 echo "configure:4481: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4481 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 ac_save_LIBS="$LIBS"
4486 LIBS="-lcrypto $LIBS"
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4490 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4493 char CRYPTO_new_ex_data();
4496 CRYPTO_new_ex_data()
4499 if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501 eval "ac_cv_lib_$ac_lib_var=yes"
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 eval "ac_cv_lib_$ac_lib_var=no"
4509 LIBS="$ac_save_LIBS"
4512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4513 echo "$ac_t""yes" 1>&6
4514 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4516 cat >> confdefs.h <<EOF
4517 #define $ac_tr_lib 1
4520 LIBS="-lcrypto $LIBS"
4523 echo "$ac_t""no" 1>&6
4524 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4527 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4528 echo "configure:4529: checking for SSL_library_init in -lssl" >&5
4529 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 ac_save_LIBS="$LIBS"
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* Override any gcc2 internal prototype to avoid an error. */
4539 /* We use char because int might match the return type of a gcc2
4540 builtin and then its argument prototype would still apply. */
4541 char SSL_library_init();
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4549 eval "ac_cv_lib_$ac_lib_var=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 eval "ac_cv_lib_$ac_lib_var=no"
4557 LIBS="$ac_save_LIBS"
4560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4563 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4564 cat >> confdefs.h <<EOF
4565 #define $ac_tr_lib 1
4571 echo "$ac_t""no" 1>&6
4572 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4581 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
4583 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4585 echo "configure:4586: checking for $ac_hdr" >&5
4586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4589 cat > conftest.$ac_ext <<EOF
4590 #line 4591 "configure"
4591 #include "confdefs.h"
4594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4595 { (eval echo configure:4596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4597 if test -z "$ac_err"; then
4599 eval "ac_cv_header_$ac_safe=yes"
4602 echo "configure: failed program was:" >&5
4603 cat conftest.$ac_ext >&5
4605 eval "ac_cv_header_$ac_safe=no"
4609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4610 echo "$ac_t""yes" 1>&6
4611 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4612 cat >> confdefs.h <<EOF
4613 #define $ac_tr_hdr 1
4617 echo "$ac_t""no" 1>&6
4622 for ac_hdr in netinet/in.h
4624 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4625 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4626 echo "configure:4627: checking for $ac_hdr" >&5
4627 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4636 { (eval echo configure:4637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4638 if test -z "$ac_err"; then
4640 eval "ac_cv_header_$ac_safe=yes"
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4646 eval "ac_cv_header_$ac_safe=no"
4650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4651 echo "$ac_t""yes" 1>&6
4652 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4653 cat >> confdefs.h <<EOF
4654 #define $ac_tr_hdr 1
4658 echo "$ac_t""no" 1>&6
4662 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
4663 echo "configure:4664: checking for netinet/tcp.h" >&5
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4668 #ifdef HAVE_NETINET_IN_H
4669 #include <netinet/in.h>
4671 #include <netinet/tcp.h>
4674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4675 { (eval echo configure:4676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4677 if test -z "$ac_err"; then
4679 cat >> confdefs.h <<\EOF
4680 #define HAVE_NETINET_TCP_H 1
4682 echo "$ac_t""yes" 1>&6
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 echo "$ac_t""no" 1>&6
4692 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
4693 echo "configure:4694: checking whether string.h and strings.h may both be included" >&5
4694 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4701 #include <strings.h>
4704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4705 { (eval echo configure:4706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4707 if test -z "$ac_err"; then
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4713 #include <strings.h>
4716 int n = strcasecmp("a", "b");
4719 if { (eval echo configure:4720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4721 pgac_cv_header_strings_both=yes
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4726 pgac_cv_header_strings_both=no
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4734 pgac_cv_header_strings_both=no
4739 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
4740 if test x"$pgac_cv_header_strings_both" = x"yes"; then
4741 cat >> confdefs.h <<\EOF
4742 #define STRING_H_WITH_STRINGS_H 1
4747 for ac_hdr in readline/readline.h readline.h
4749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_hdr" >&5
4752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4761 { (eval echo configure:4762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4763 if test -z "$ac_err"; then
4765 eval "ac_cv_header_$ac_safe=yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 eval "ac_cv_header_$ac_safe=no"
4775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4778 cat >> confdefs.h <<EOF
4779 #define $ac_tr_hdr 1
4783 echo "$ac_t""no" 1>&6
4787 for ac_hdr in readline/history.h history.h
4789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4791 echo "configure:4792: checking for $ac_hdr" >&5
4792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4801 { (eval echo configure:4802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4803 if test -z "$ac_err"; then
4805 eval "ac_cv_header_$ac_safe=yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4811 eval "ac_cv_header_$ac_safe=no"
4815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4816 echo "$ac_t""yes" 1>&6
4817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4818 cat >> confdefs.h <<EOF
4819 #define $ac_tr_hdr 1
4823 echo "$ac_t""no" 1>&6
4828 if test "$with_krb4" = yes ; then
4829 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4830 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4831 echo "configure:4832: checking for krb.h" >&5
4832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4841 { (eval echo configure:4842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4843 if test -z "$ac_err"; then
4845 eval "ac_cv_header_$ac_safe=yes"
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4851 eval "ac_cv_header_$ac_safe=no"
4855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4859 echo "$ac_t""no" 1>&6
4860 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4865 if test "$with_krb5" = yes ; then
4866 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4867 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4868 echo "configure:4869: checking for krb5.h" >&5
4869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4878 { (eval echo configure:4879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4880 if test -z "$ac_err"; then
4882 eval "ac_cv_header_$ac_safe=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 eval "ac_cv_header_$ac_safe=no"
4892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4893 echo "$ac_t""yes" 1>&6
4896 echo "$ac_t""no" 1>&6
4897 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4900 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4901 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4902 echo "configure:4903: checking for com_err.h" >&5
4903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6
4906 cat > conftest.$ac_ext <<EOF
4907 #line 4908 "configure"
4908 #include "confdefs.h"
4909 #include <com_err.h>
4911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4912 { (eval echo configure:4913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4914 if test -z "$ac_err"; then
4916 eval "ac_cv_header_$ac_safe=yes"
4919 echo "configure: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4922 eval "ac_cv_header_$ac_safe=no"
4926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4927 echo "$ac_t""yes" 1>&6
4930 echo "$ac_t""no" 1>&6
4931 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4936 if test "$with_openssl" = yes ; then
4937 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4938 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4939 echo "configure:4940: checking for openssl/ssl.h" >&5
4940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 #include <openssl/ssl.h>
4948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4949 { (eval echo configure:4950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4951 if test -z "$ac_err"; then
4953 eval "ac_cv_header_$ac_safe=yes"
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4959 eval "ac_cv_header_$ac_safe=no"
4963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4964 echo "$ac_t""yes" 1>&6
4967 echo "$ac_t""no" 1>&6
4968 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4971 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4972 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4973 echo "configure:4974: checking for openssl/err.h" >&5
4974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4977 cat > conftest.$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4980 #include <openssl/err.h>
4982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4983 { (eval echo configure:4984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4985 if test -z "$ac_err"; then
4987 eval "ac_cv_header_$ac_safe=yes"
4990 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5
4993 eval "ac_cv_header_$ac_safe=no"
4997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4998 echo "$ac_t""yes" 1>&6
5001 echo "$ac_t""no" 1>&6
5002 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
5009 ## Types, structures, compiler characteristics
5011 echo $ac_n "checking for working const""... $ac_c" 1>&6
5012 echo "configure:5013: checking for working const" >&5
5013 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5022 /* Ultrix mips cc rejects this. */
5023 typedef int charset[2]; const charset x;
5024 /* SunOS 4.1.1 cc rejects this. */
5025 char const *const *ccp;
5027 /* NEC SVR4.0.2 mips cc rejects this. */
5028 struct point {int x, y;};
5029 static struct point const zero = {0,0};
5030 /* AIX XL C 1.02.0.0 rejects this.
5031 It does not let you subtract one const X* pointer from another in an arm
5032 of an if-expression whose if-part is not a constant expression */
5033 const char *g = "string";
5034 ccp = &g + (g ? g-g : 0);
5035 /* HPUX 7.0 cc rejects these. */
5038 ccp = (char const *const *) p;
5039 { /* SCO 3.2v4 cc rejects this. */
5041 char const *s = 0 ? (char *) 0 : (char const *) 0;
5045 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5047 const int *foo = &x[0];
5050 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5051 typedef const int *iptr;
5055 { /* AIX XL C 1.02.0.0 rejects this saying
5056 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5057 struct s { int j; const int *ap[3]; };
5058 struct s *b; b->j = 5;
5060 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5066 if { (eval echo configure:5067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5070 echo "configure: failed program was:" >&5
5071 cat conftest.$ac_ext >&5
5078 echo "$ac_t""$ac_cv_c_const" 1>&6
5079 if test $ac_cv_c_const = no; then
5080 cat >> confdefs.h <<\EOF
5086 echo $ac_n "checking for inline""... $ac_c" 1>&6
5087 echo "configure:5088: checking for inline" >&5
5088 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5092 for ac_kw in inline __inline__ __inline; do
5093 cat > conftest.$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5101 if { (eval echo configure:5102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5103 ac_cv_c_inline=$ac_kw; break
5105 echo "configure: failed program was:" >&5
5106 cat conftest.$ac_ext >&5
5113 echo "$ac_t""$ac_cv_c_inline" 1>&6
5114 case "$ac_cv_c_inline" in
5116 no) cat >> confdefs.h <<\EOF
5120 *) cat >> confdefs.h <<EOF
5121 #define inline $ac_cv_c_inline
5128 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5129 echo "configure:5130: checking for preprocessor stringizing operator" >&5
5130 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5139 char *s = x(teststring);
5142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5143 egrep "#teststring" >/dev/null 2>&1; then
5145 ac_cv_c_stringize=no
5148 ac_cv_c_stringize=yes
5154 if test "${ac_cv_c_stringize}" = yes
5156 cat >> confdefs.h <<\EOF
5157 #define HAVE_STRINGIZE 1
5161 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5163 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5164 echo "configure:5165: checking for signed types" >&5
5165 if eval "test \"`echo '$''{'pgac_cv_c_signed'+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"
5173 signed char c; signed short s; signed int i;
5176 if { (eval echo configure:5177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5178 pgac_cv_c_signed=yes
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5188 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5189 if test x"$pgac_cv_c_signed" = xno ; then
5190 cat >> confdefs.h <<\EOF
5195 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5196 echo "configure:5197: checking for volatile" >&5
5197 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5198 echo $ac_n "(cached) $ac_c" 1>&6
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5205 extern volatile int i;
5208 if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5210 pgac_cv_c_volatile=yes
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5215 pgac_cv_c_volatile=no
5220 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5221 if test x"$pgac_cv_c_volatile" = xno ; then
5222 cat >> confdefs.h <<\EOF
5227 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5228 echo "configure:5229: checking whether struct tm is in sys/time.h or time.h" >&5
5229 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5235 #include <sys/types.h>
5238 struct tm *tp; tp->tm_sec;
5241 if { (eval echo configure:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5243 ac_cv_struct_tm=time.h
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5248 ac_cv_struct_tm=sys/time.h
5253 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5254 if test $ac_cv_struct_tm = sys/time.h; then
5255 cat >> confdefs.h <<\EOF
5256 #define TM_IN_SYS_TIME 1
5261 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5262 echo "configure:5263: checking for tm_zone in struct tm" >&5
5263 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5264 echo $ac_n "(cached) $ac_c" 1>&6
5266 cat > conftest.$ac_ext <<EOF
5267 #line 5268 "configure"
5268 #include "confdefs.h"
5269 #include <sys/types.h>
5270 #include <$ac_cv_struct_tm>
5272 struct tm tm; tm.tm_zone;
5275 if { (eval echo configure:5276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5277 ac_cv_struct_tm_zone=yes
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5282 ac_cv_struct_tm_zone=no
5287 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5288 if test "$ac_cv_struct_tm_zone" = yes; then
5289 cat >> confdefs.h <<\EOF
5290 #define HAVE_TM_ZONE 1
5294 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5295 echo "configure:5296: checking for tzname" >&5
5296 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5303 #ifndef tzname /* For SGI. */
5304 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5310 if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5312 ac_cv_var_tzname=yes
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5322 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5323 if test $ac_cv_var_tzname = yes; then
5324 cat >> confdefs.h <<\EOF
5325 #define HAVE_TZNAME 1
5331 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5332 echo "configure:5333: checking for union semun" >&5
5333 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5336 cat > conftest.$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 #include <sys/types.h>
5340 #include <sys/ipc.h>
5341 #include <sys/sem.h>
5346 if { (eval echo configure:5347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5348 pgac_cv_union_semun=yes
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5353 pgac_cv_union_semun=no
5358 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5359 if test x"$pgac_cv_union_semun" = xyes ; then
5360 cat >> confdefs.h <<\EOF
5361 #define HAVE_UNION_SEMUN 1
5365 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5366 echo "configure:5367: checking for struct sockaddr_un" >&5
5367 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5370 cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5373 #include <sys/types.h>
5374 #ifdef HAVE_SYS_UN_H
5378 struct sockaddr_un un;
5381 if { (eval echo configure:5382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5383 pgac_cv_struct_sockaddr_un=yes
5385 echo "configure: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5388 pgac_cv_struct_sockaddr_un=no
5393 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5394 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5395 cat >> confdefs.h <<\EOF
5396 #define HAVE_STRUCT_SOCKADDR_UN 1
5402 ## Functions, global variables
5404 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5405 echo "configure:5406: checking for int timezone" >&5
5406 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5415 res = timezone / 60;
5418 if { (eval echo configure:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5420 pgac_cv_var_int_timezone=yes
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5425 pgac_cv_var_int_timezone=no
5430 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5431 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5432 cat >> confdefs.h <<\EOF
5433 #define HAVE_INT_TIMEZONE
5437 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5438 echo "configure:5439: checking types of arguments for accept()" >&5
5439 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5442 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5445 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5446 echo $ac_n "(cached) $ac_c" 1>&6
5448 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5449 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5450 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
5451 cat > conftest.$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5454 #ifdef HAVE_SYS_TYPES_H
5455 #include <sys/types.h>
5457 #ifdef HAVE_SYS_SOCKET_H
5458 #include <sys/socket.h>
5460 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5465 if { (eval echo configure:5466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5467 ac_not_found=no; break 3
5469 echo "configure: failed program was:" >&5
5470 cat conftest.$ac_ext >&5
5478 if test "$ac_not_found" = yes; then
5479 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5481 if test "$ac_cv_func_accept_arg3" = "void"; then
5482 ac_cv_func_accept_arg3=int
5490 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5491 cat >> confdefs.h <<EOF
5492 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5495 cat >> confdefs.h <<EOF
5496 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5499 cat >> confdefs.h <<EOF
5500 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5504 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5505 echo "configure:5506: checking whether gettimeofday takes only one argument" >&5
5506 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5507 echo $ac_n "(cached) $ac_c" 1>&6
5509 cat > conftest.$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5512 #include <sys/time.h>
5515 struct timezone *tzp;
5516 gettimeofday(tp,tzp);
5519 if { (eval echo configure:5520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5521 pgac_cv_func_gettimeofday_1arg=no
5523 echo "configure: failed program was:" >&5
5524 cat conftest.$ac_ext >&5
5526 pgac_cv_func_gettimeofday_1arg=yes
5531 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5532 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5533 cat >> confdefs.h <<\EOF
5534 #define GETTIMEOFDAY_1ARG
5539 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
5541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5542 echo "configure:5543: checking for $ac_func" >&5
5543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5544 echo $ac_n "(cached) $ac_c" 1>&6
5546 cat > conftest.$ac_ext <<EOF
5547 #line 5548 "configure"
5548 #include "confdefs.h"
5549 /* System header to define __stub macros and hopefully few prototypes,
5550 which can conflict with char $ac_func(); below. */
5552 /* Override any gcc2 internal prototype to avoid an error. */
5553 /* We use char because int might match the return type of a gcc2
5554 builtin and then its argument prototype would still apply. */
5559 /* The GNU C library defines this for functions which it implements
5560 to always fail with ENOSYS. Some functions are actually named
5561 something starting with __ and the normal name is an alias. */
5562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5570 if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5572 eval "ac_cv_func_$ac_func=yes"
5574 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5577 eval "ac_cv_func_$ac_func=no"
5582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5583 echo "$ac_t""yes" 1>&6
5584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5585 cat >> confdefs.h <<EOF
5586 #define $ac_tr_func 1
5590 echo "$ac_t""no" 1>&6
5595 cat > conftest.$ac_ext <<EOF
5596 #line 5597 "configure"
5597 #include "confdefs.h"
5600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5601 egrep "fdatasync" >/dev/null 2>&1; then
5603 cat >> confdefs.h <<\EOF
5604 #define HAVE_FDATASYNC_DECL 1
5611 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5612 echo "configure:5613: checking for PS_STRINGS" >&5
5613 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5619 #include <machine/vmparam.h>
5620 #include <sys/exec.h>
5623 PS_STRINGS->ps_nargvstr = 1;
5624 PS_STRINGS->ps_argvstr = "foo";
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5629 pgac_cv_var_PS_STRINGS=yes
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 pgac_cv_var_PS_STRINGS=no
5639 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5640 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5641 cat >> confdefs.h <<\EOF
5642 #define HAVE_PS_STRINGS
5648 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5649 echo "configure:5650: checking for snprintf" >&5
5650 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5656 /* System header to define __stub macros and hopefully few prototypes,
5657 which can conflict with char snprintf(); below. */
5659 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5666 /* The GNU C library defines this for functions which it implements
5667 to always fail with ENOSYS. Some functions are actually named
5668 something starting with __ and the normal name is an alias. */
5669 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5677 if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5679 eval "ac_cv_func_snprintf=yes"
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5684 eval "ac_cv_func_snprintf=no"
5689 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5690 echo "$ac_t""yes" 1>&6
5691 cat >> confdefs.h <<\EOF
5692 #define HAVE_SNPRINTF 1
5696 echo "$ac_t""no" 1>&6
5697 SNPRINTF='snprintf.o'
5700 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5701 echo "configure:5702: checking for vsnprintf" >&5
5702 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5708 /* System header to define __stub macros and hopefully few prototypes,
5709 which can conflict with char vsnprintf(); below. */
5711 /* Override any gcc2 internal prototype to avoid an error. */
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5718 /* The GNU C library defines this for functions which it implements
5719 to always fail with ENOSYS. Some functions are actually named
5720 something starting with __ and the normal name is an alias. */
5721 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5729 if { (eval echo configure:5730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5731 eval "ac_cv_func_vsnprintf=yes"
5733 echo "configure: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5736 eval "ac_cv_func_vsnprintf=no"
5741 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5742 echo "$ac_t""yes" 1>&6
5743 cat >> confdefs.h <<\EOF
5744 #define HAVE_VSNPRINTF 1
5748 echo "$ac_t""no" 1>&6
5749 SNPRINTF='snprintf.o'
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5759 egrep "snprintf" >/dev/null 2>&1; then
5761 cat >> confdefs.h <<\EOF
5762 #define HAVE_SNPRINTF_DECL 1
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5774 egrep "vsnprintf" >/dev/null 2>&1; then
5776 cat >> confdefs.h <<\EOF
5777 #define HAVE_VSNPRINTF_DECL 1
5784 # do this one the hard way in case isinf() is a macro
5785 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5786 echo "configure:5787: checking for isinf" >&5
5787 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5788 echo $ac_n "(cached) $ac_c" 1>&6
5790 cat > conftest.$ac_ext <<EOF
5791 #line 5792 "configure"
5792 #include "confdefs.h"
5796 double x = 0.0; int res = isinf(x);
5799 if { (eval echo configure:5800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5801 ac_cv_func_isinf=yes
5803 echo "configure: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5811 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5813 if test $ac_cv_func_isinf = yes ; then
5814 cat >> confdefs.h <<\EOF
5815 #define HAVE_ISINF 1
5821 # Look for a way to implement a substitute for isinf()
5822 for ac_func in fpclass fp_class fp_class_d class
5824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5825 echo "configure:5826: checking for $ac_func" >&5
5826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5827 echo $ac_n "(cached) $ac_c" 1>&6
5829 cat > conftest.$ac_ext <<EOF
5830 #line 5831 "configure"
5831 #include "confdefs.h"
5832 /* System header to define __stub macros and hopefully few prototypes,
5833 which can conflict with char $ac_func(); below. */
5835 /* Override any gcc2 internal prototype to avoid an error. */
5836 /* We use char because int might match the return type of a gcc2
5837 builtin and then its argument prototype would still apply. */
5842 /* The GNU C library defines this for functions which it implements
5843 to always fail with ENOSYS. Some functions are actually named
5844 something starting with __ and the normal name is an alias. */
5845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5853 if { (eval echo configure:5854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5855 eval "ac_cv_func_$ac_func=yes"
5857 echo "configure: failed program was:" >&5
5858 cat conftest.$ac_ext >&5
5860 eval "ac_cv_func_$ac_func=no"
5865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5866 echo "$ac_t""yes" 1>&6
5867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5868 cat >> confdefs.h <<EOF
5869 #define $ac_tr_func 1
5873 echo "$ac_t""no" 1>&6
5880 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5881 echo "configure:5882: checking for getrusage" >&5
5882 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
5885 cat > conftest.$ac_ext <<EOF
5886 #line 5887 "configure"
5887 #include "confdefs.h"
5888 /* System header to define __stub macros and hopefully few prototypes,
5889 which can conflict with char getrusage(); below. */
5891 /* Override any gcc2 internal prototype to avoid an error. */
5892 /* We use char because int might match the return type of a gcc2
5893 builtin and then its argument prototype would still apply. */
5898 /* The GNU C library defines this for functions which it implements
5899 to always fail with ENOSYS. Some functions are actually named
5900 something starting with __ and the normal name is an alias. */
5901 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5911 eval "ac_cv_func_getrusage=yes"
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5916 eval "ac_cv_func_getrusage=no"
5921 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5922 echo "$ac_t""yes" 1>&6
5923 cat >> confdefs.h <<\EOF
5924 #define HAVE_GETRUSAGE 1
5928 echo "$ac_t""no" 1>&6
5929 GETRUSAGE='getrusage.o'
5933 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5934 echo "configure:5935: checking for srandom" >&5
5935 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 cat > conftest.$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5941 /* System header to define __stub macros and hopefully few prototypes,
5942 which can conflict with char srandom(); below. */
5944 /* Override any gcc2 internal prototype to avoid an error. */
5945 /* We use char because int might match the return type of a gcc2
5946 builtin and then its argument prototype would still apply. */
5951 /* The GNU C library defines this for functions which it implements
5952 to always fail with ENOSYS. Some functions are actually named
5953 something starting with __ and the normal name is an alias. */
5954 #if defined (__stub_srandom) || defined (__stub___srandom)
5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5964 eval "ac_cv_func_srandom=yes"
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5969 eval "ac_cv_func_srandom=no"
5974 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5975 echo "$ac_t""yes" 1>&6
5976 cat >> confdefs.h <<\EOF
5977 #define HAVE_SRANDOM 1
5981 echo "$ac_t""no" 1>&6
5986 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5987 echo "configure:5988: checking for gethostname" >&5
5988 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5991 cat > conftest.$ac_ext <<EOF
5992 #line 5993 "configure"
5993 #include "confdefs.h"
5994 /* System header to define __stub macros and hopefully few prototypes,
5995 which can conflict with char gethostname(); below. */
5997 /* Override any gcc2 internal prototype to avoid an error. */
5998 /* We use char because int might match the return type of a gcc2
5999 builtin and then its argument prototype would still apply. */
6004 /* The GNU C library defines this for functions which it implements
6005 to always fail with ENOSYS. Some functions are actually named
6006 something starting with __ and the normal name is an alias. */
6007 #if defined (__stub_gethostname) || defined (__stub___gethostname)
6015 if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6017 eval "ac_cv_func_gethostname=yes"
6019 echo "configure: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6022 eval "ac_cv_func_gethostname=no"
6027 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6028 echo "$ac_t""yes" 1>&6
6029 cat >> confdefs.h <<\EOF
6030 #define HAVE_GETHOSTNAME 1
6034 echo "$ac_t""no" 1>&6
6035 GETHOSTNAME='gethostname.o'
6039 echo $ac_n "checking for random""... $ac_c" 1>&6
6040 echo "configure:6041: checking for random" >&5
6041 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 /* System header to define __stub macros and hopefully few prototypes,
6048 which can conflict with char random(); below. */
6050 /* Override any gcc2 internal prototype to avoid an error. */
6051 /* We use char because int might match the return type of a gcc2
6052 builtin and then its argument prototype would still apply. */
6057 /* The GNU C library defines this for functions which it implements
6058 to always fail with ENOSYS. Some functions are actually named
6059 something starting with __ and the normal name is an alias. */
6060 #if defined (__stub_random) || defined (__stub___random)
6068 if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6070 eval "ac_cv_func_random=yes"
6072 echo "configure: failed program was:" >&5
6073 cat conftest.$ac_ext >&5
6075 eval "ac_cv_func_random=no"
6080 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6081 echo "$ac_t""yes" 1>&6
6082 cat >> confdefs.h <<\EOF
6083 #define HAVE_RANDOM 1
6087 echo "$ac_t""no" 1>&6
6088 MISSING_RANDOM='random.o'
6092 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6093 echo "configure:6094: checking for inet_aton" >&5
6094 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6095 echo $ac_n "(cached) $ac_c" 1>&6
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 /* System header to define __stub macros and hopefully few prototypes,
6101 which can conflict with char inet_aton(); below. */
6103 /* Override any gcc2 internal prototype to avoid an error. */
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6110 /* The GNU C library defines this for functions which it implements
6111 to always fail with ENOSYS. Some functions are actually named
6112 something starting with __ and the normal name is an alias. */
6113 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6121 if { (eval echo configure:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6123 eval "ac_cv_func_inet_aton=yes"
6125 echo "configure: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6128 eval "ac_cv_func_inet_aton=no"
6133 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6134 echo "$ac_t""yes" 1>&6
6135 cat >> confdefs.h <<\EOF
6136 #define HAVE_INET_ATON 1
6140 echo "$ac_t""no" 1>&6
6141 INET_ATON='inet_aton.o'
6145 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6146 echo "configure:6147: checking for strerror" >&5
6147 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6148 echo $ac_n "(cached) $ac_c" 1>&6
6150 cat > conftest.$ac_ext <<EOF
6151 #line 6152 "configure"
6152 #include "confdefs.h"
6153 /* System header to define __stub macros and hopefully few prototypes,
6154 which can conflict with char strerror(); below. */
6156 /* Override any gcc2 internal prototype to avoid an error. */
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6163 /* The GNU C library defines this for functions which it implements
6164 to always fail with ENOSYS. Some functions are actually named
6165 something starting with __ and the normal name is an alias. */
6166 #if defined (__stub_strerror) || defined (__stub___strerror)
6174 if { (eval echo configure:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6176 eval "ac_cv_func_strerror=yes"
6178 echo "configure: failed program was:" >&5
6179 cat conftest.$ac_ext >&5
6181 eval "ac_cv_func_strerror=no"
6186 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6187 echo "$ac_t""yes" 1>&6
6188 cat >> confdefs.h <<\EOF
6189 #define HAVE_STRERROR 1
6193 echo "$ac_t""no" 1>&6
6194 STRERROR='strerror.o'
6198 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6199 echo "configure:6200: checking for strdup" >&5
6200 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 /* System header to define __stub macros and hopefully few prototypes,
6207 which can conflict with char strdup(); below. */
6209 /* Override any gcc2 internal prototype to avoid an error. */
6210 /* We use char because int might match the return type of a gcc2
6211 builtin and then its argument prototype would still apply. */
6216 /* The GNU C library defines this for functions which it implements
6217 to always fail with ENOSYS. Some functions are actually named
6218 something starting with __ and the normal name is an alias. */
6219 #if defined (__stub_strdup) || defined (__stub___strdup)
6227 if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6229 eval "ac_cv_func_strdup=yes"
6231 echo "configure: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6234 eval "ac_cv_func_strdup=no"
6239 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6240 echo "$ac_t""yes" 1>&6
6241 cat >> confdefs.h <<\EOF
6242 #define HAVE_STRDUP 1
6246 echo "$ac_t""no" 1>&6
6247 STRDUP='../../utils/strdup.o'
6251 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6252 echo "configure:6253: checking for strtol" >&5
6253 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6254 echo $ac_n "(cached) $ac_c" 1>&6
6256 cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6259 /* System header to define __stub macros and hopefully few prototypes,
6260 which can conflict with char strtol(); below. */
6262 /* Override any gcc2 internal prototype to avoid an error. */
6263 /* We use char because int might match the return type of a gcc2
6264 builtin and then its argument prototype would still apply. */
6269 /* The GNU C library defines this for functions which it implements
6270 to always fail with ENOSYS. Some functions are actually named
6271 something starting with __ and the normal name is an alias. */
6272 #if defined (__stub_strtol) || defined (__stub___strtol)
6280 if { (eval echo configure:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6282 eval "ac_cv_func_strtol=yes"
6284 echo "configure: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6287 eval "ac_cv_func_strtol=no"
6292 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6293 echo "$ac_t""yes" 1>&6
6294 cat >> confdefs.h <<\EOF
6295 #define HAVE_STRTOL 1
6299 echo "$ac_t""no" 1>&6
6304 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6305 echo "configure:6306: checking for strtoul" >&5
6306 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6307 echo $ac_n "(cached) $ac_c" 1>&6
6309 cat > conftest.$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6312 /* System header to define __stub macros and hopefully few prototypes,
6313 which can conflict with char strtoul(); below. */
6315 /* Override any gcc2 internal prototype to avoid an error. */
6316 /* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6322 /* The GNU C library defines this for functions which it implements
6323 to always fail with ENOSYS. Some functions are actually named
6324 something starting with __ and the normal name is an alias. */
6325 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6333 if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6335 eval "ac_cv_func_strtoul=yes"
6337 echo "configure: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6340 eval "ac_cv_func_strtoul=no"
6345 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6346 echo "$ac_t""yes" 1>&6
6347 cat >> confdefs.h <<\EOF
6348 #define HAVE_STRTOUL 1
6352 echo "$ac_t""no" 1>&6
6357 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6358 echo "configure:6359: checking for strcasecmp" >&5
6359 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6360 echo $ac_n "(cached) $ac_c" 1>&6
6362 cat > conftest.$ac_ext <<EOF
6363 #line 6364 "configure"
6364 #include "confdefs.h"
6365 /* System header to define __stub macros and hopefully few prototypes,
6366 which can conflict with char strcasecmp(); below. */
6368 /* Override any gcc2 internal prototype to avoid an error. */
6369 /* We use char because int might match the return type of a gcc2
6370 builtin and then its argument prototype would still apply. */
6375 /* The GNU C library defines this for functions which it implements
6376 to always fail with ENOSYS. Some functions are actually named
6377 something starting with __ and the normal name is an alias. */
6378 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6386 if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6388 eval "ac_cv_func_strcasecmp=yes"
6390 echo "configure: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6393 eval "ac_cv_func_strcasecmp=no"
6398 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6399 echo "$ac_t""yes" 1>&6
6400 cat >> confdefs.h <<\EOF
6401 #define HAVE_STRCASECMP 1
6405 echo "$ac_t""no" 1>&6
6406 STRCASECMP='strcasecmp.o'
6410 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6411 echo "configure:6412: checking for cbrt" >&5
6412 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6413 echo $ac_n "(cached) $ac_c" 1>&6
6415 cat > conftest.$ac_ext <<EOF
6416 #line 6417 "configure"
6417 #include "confdefs.h"
6418 /* System header to define __stub macros and hopefully few prototypes,
6419 which can conflict with char cbrt(); below. */
6421 /* Override any gcc2 internal prototype to avoid an error. */
6422 /* We use char because int might match the return type of a gcc2
6423 builtin and then its argument prototype would still apply. */
6428 /* The GNU C library defines this for functions which it implements
6429 to always fail with ENOSYS. Some functions are actually named
6430 something starting with __ and the normal name is an alias. */
6431 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6439 if { (eval echo configure:6440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6441 eval "ac_cv_func_cbrt=yes"
6443 echo "configure: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6446 eval "ac_cv_func_cbrt=no"
6451 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6452 echo "$ac_t""yes" 1>&6
6453 cat >> confdefs.h <<\EOF
6458 echo "$ac_t""no" 1>&6
6459 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6460 echo "configure:6461: checking for cbrt in -lm" >&5
6461 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6463 echo $ac_n "(cached) $ac_c" 1>&6
6465 ac_save_LIBS="$LIBS"
6467 cat > conftest.$ac_ext <<EOF
6468 #line 6469 "configure"
6469 #include "confdefs.h"
6470 /* Override any gcc2 internal prototype to avoid an error. */
6471 /* We use char because int might match the return type of a gcc2
6472 builtin and then its argument prototype would still apply. */
6479 if { (eval echo configure:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6481 eval "ac_cv_lib_$ac_lib_var=yes"
6483 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6486 eval "ac_cv_lib_$ac_lib_var=no"
6489 LIBS="$ac_save_LIBS"
6492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6493 echo "$ac_t""yes" 1>&6
6494 cat >> confdefs.h <<\EOF
6499 echo "$ac_t""no" 1>&6
6505 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6506 # this hackery with HPUXMATHLIB allows us to cope.
6510 if [ -r /lib/pa1.1/libm.a ] ; then
6511 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6516 echo $ac_n "checking for rint""... $ac_c" 1>&6
6517 echo "configure:6518: checking for rint" >&5
6518 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6519 echo $ac_n "(cached) $ac_c" 1>&6
6521 cat > conftest.$ac_ext <<EOF
6522 #line 6523 "configure"
6523 #include "confdefs.h"
6524 /* System header to define __stub macros and hopefully few prototypes,
6525 which can conflict with char rint(); below. */
6527 /* Override any gcc2 internal prototype to avoid an error. */
6528 /* We use char because int might match the return type of a gcc2
6529 builtin and then its argument prototype would still apply. */
6534 /* The GNU C library defines this for functions which it implements
6535 to always fail with ENOSYS. Some functions are actually named
6536 something starting with __ and the normal name is an alias. */
6537 #if defined (__stub_rint) || defined (__stub___rint)
6545 if { (eval echo configure:6546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6547 eval "ac_cv_func_rint=yes"
6549 echo "configure: failed program was:" >&5
6550 cat conftest.$ac_ext >&5
6552 eval "ac_cv_func_rint=no"
6557 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6558 echo "$ac_t""yes" 1>&6
6559 cat >> confdefs.h <<\EOF
6564 echo "$ac_t""no" 1>&6
6565 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6566 echo "configure:6567: checking for rint in -lm" >&5
6567 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6571 ac_save_LIBS="$LIBS"
6572 LIBS="-lm $HPUXMATHLIB $LIBS"
6573 cat > conftest.$ac_ext <<EOF
6574 #line 6575 "configure"
6575 #include "confdefs.h"
6576 /* Override any gcc2 internal prototype to avoid an error. */
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6585 if { (eval echo configure:6586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6587 eval "ac_cv_lib_$ac_lib_var=yes"
6589 echo "configure: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6592 eval "ac_cv_lib_$ac_lib_var=no"
6595 LIBS="$ac_save_LIBS"
6598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6599 echo "$ac_t""yes" 1>&6
6600 cat >> confdefs.h <<\EOF
6605 echo "$ac_t""no" 1>&6
6612 # Readline versions < 2.1 don't have rl_completion_append_character
6613 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
6614 echo "configure:6615: checking for rl_completion_append_character" >&5
6615 cat > conftest.$ac_ext <<EOF
6616 #line 6617 "configure"
6617 #include "confdefs.h"
6619 #ifdef HAVE_READLINE_H
6620 # include <readline.h>
6622 #ifdef HAVE_READLINE_READLINE_H
6623 # include <readline/readline.h>
6626 rl_completion_append_character = 'x';
6629 if { (eval echo configure:6630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6631 echo "$ac_t""yes" 1>&6
6632 cat >> confdefs.h <<\EOF
6633 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6640 echo "$ac_t""no" 1>&6
6645 # Check whether readline's filename_completion_function is declared.
6646 # Some prehistoric versions of readline, in particular those shipped
6647 # with earlier Cygwins don't have this declared, although it's in the
6649 echo $ac_n "checking whether filename_completion_function is declared""... $ac_c" 1>&6
6650 echo "configure:6651: checking whether filename_completion_function is declared" >&5
6651 if test "$ac_cv_header_readline_h" = yes; then
6652 _readline_header='readline.h'
6653 elif test "$ac_cv_header_readline_readline_h" = yes; then
6654 _readline_header='readline/readline.h'
6656 _readline_header='xxx'
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 #include <$_readline_header>
6663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6664 egrep "filename_completion_function" >/dev/null 2>&1; then
6666 cat >> confdefs.h <<\EOF
6667 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6670 echo "$ac_t""yes" 1>&6
6673 echo "$ac_t""no" 1>&6
6680 echo $ac_n "checking for finite""... $ac_c" 1>&6
6681 echo "configure:6682: checking for finite" >&5
6682 cat > conftest.$ac_ext <<EOF
6683 #line 6684 "configure"
6684 #include "confdefs.h"
6687 int dummy=finite(1.0);
6690 if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6692 cat >> confdefs.h <<\EOF
6693 #define HAVE_FINITE 1
6695 echo "$ac_t""yes" 1>&6
6697 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6700 echo "$ac_t""no" 1>&6
6704 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6705 echo "configure:6706: checking for sigsetjmp" >&5
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6711 sigjmp_buf x; sigsetjmp(x, 1);
6714 if { (eval echo configure:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6716 cat >> confdefs.h <<\EOF
6717 #define HAVE_SIGSETJMP 1
6719 echo "$ac_t""yes" 1>&6
6721 echo "configure: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6724 echo "$ac_t""no" 1>&6
6729 # Check whether --enable-syslog was given
6730 if test x"${enable_syslog+set}" = xset; then
6731 case $enable_syslog in
6733 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6734 echo "configure:6735: checking for syslog" >&5
6735 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6736 echo $ac_n "(cached) $ac_c" 1>&6
6738 cat > conftest.$ac_ext <<EOF
6739 #line 6740 "configure"
6740 #include "confdefs.h"
6741 /* System header to define __stub macros and hopefully few prototypes,
6742 which can conflict with char syslog(); below. */
6744 /* Override any gcc2 internal prototype to avoid an error. */
6745 /* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6751 /* The GNU C library defines this for functions which it implements
6752 to always fail with ENOSYS. Some functions are actually named
6753 something starting with __ and the normal name is an alias. */
6754 #if defined (__stub_syslog) || defined (__stub___syslog)
6762 if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6764 eval "ac_cv_func_syslog=yes"
6766 echo "configure: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6769 eval "ac_cv_func_syslog=no"
6774 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6775 echo "$ac_t""yes" 1>&6
6776 cat >> confdefs.h <<\EOF
6777 #define ENABLE_SYSLOG 1
6781 echo "$ac_t""no" 1>&6
6782 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6790 enableval=$enable_syslog
6791 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6793 esac # $enable_syslog
6800 echo $ac_n "checking for optreset""... $ac_c" 1>&6
6801 echo "configure:6802: checking for optreset" >&5
6802 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
6803 echo $ac_n "(cached) $ac_c" 1>&6
6805 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6810 extern int optreset; optreset = 1;
6813 if { (eval echo configure:6814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6815 pgac_cv_var_int_optreset=yes
6817 echo "configure: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
6820 pgac_cv_var_int_optreset=no
6825 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
6826 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
6827 cat >> confdefs.h <<\EOF
6828 #define HAVE_INT_OPTRESET 1
6834 # This test makes sure that run tests work at all. Sometimes a shared
6835 # library is found by the linker, but the runtime linker can't find it.
6836 # This check should come after all modifications of compiler or linker
6837 # variables, and before any other run tests.
6838 echo $ac_n "checking test program""... $ac_c" 1>&6
6839 echo "configure:6840: checking test program" >&5
6840 if test "$cross_compiling" = yes; then
6841 echo "$ac_t""cross-compiling" 1>&6
6843 cat > conftest.$ac_ext <<EOF
6844 #line 6845 "configure"
6845 #include "confdefs.h"
6846 int main() { return 0; }
6848 if { (eval echo configure:6849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6850 echo "$ac_t""ok" 1>&6
6852 echo "configure: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6855 echo "$ac_t""failed" 1>&6
6856 { echo "configure: error:
6857 *** Could not execute a simple test program. This may be a problem
6858 *** related to locating shared libraries. Check the file 'config.log'
6859 *** for the exact reason." 1>&2; exit 1; }
6867 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6868 echo "configure:6869: checking whether long int is 64 bits" >&5
6869 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6870 echo $ac_n "(cached) $ac_c" 1>&6
6872 if test "$cross_compiling" = yes; then
6873 pgac_cv_type_long_int_64=no
6874 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6876 cat > conftest.$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6879 typedef long int int64;
6882 * These are globals to discourage the compiler from folding all the
6883 * arithmetic tests down to compile-time constants.
6888 int does_int64_work()
6892 if (sizeof(int64) != 8)
6893 return 0; /* definitely not the right size */
6895 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6903 exit(! does_int64_work());
6906 if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6908 pgac_cv_type_long_int_64=yes
6910 echo "configure: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6913 pgac_cv_type_long_int_64=no
6920 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6922 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6923 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6924 cat >> confdefs.h <<\EOF
6925 #define HAVE_LONG_INT_64
6931 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6932 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6933 echo "configure:6934: checking whether long long int is 64 bits" >&5
6934 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6935 echo $ac_n "(cached) $ac_c" 1>&6
6937 if test "$cross_compiling" = yes; then
6938 pgac_cv_type_long_long_int_64=no
6939 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6941 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6944 typedef long long int int64;
6947 * These are globals to discourage the compiler from folding all the
6948 * arithmetic tests down to compile-time constants.
6953 int does_int64_work()
6957 if (sizeof(int64) != 8)
6958 return 0; /* definitely not the right size */
6960 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6968 exit(! does_int64_work());
6971 if { (eval echo configure:6972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6973 pgac_cv_type_long_long_int_64=yes
6975 echo "configure: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6978 pgac_cv_type_long_long_int_64=no
6985 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
6987 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
6988 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
6989 cat >> confdefs.h <<\EOF
6990 #define HAVE_LONG_LONG_INT_64
6999 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7000 if [ x$SNPRINTF = x ] ; then
7001 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
7002 echo "configure:7003: checking whether snprintf handles 'long long int' as %lld" >&5
7003 if test "$cross_compiling" = yes; then
7004 echo "$ac_t""assuming not on target machine" 1>&6
7005 # Force usage of our own snprintf, since we cannot test foreign snprintf
7006 SNPRINTF='snprintf.o'
7007 INT64_FORMAT='"%lld"'
7010 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7014 typedef long long int int64;
7015 #define INT64_FORMAT "%lld"
7020 int does_int64_snprintf_work()
7025 if (sizeof(int64) != 8)
7026 return 0; /* doesn't look like the right size */
7029 snprintf(buf, 100, INT64_FORMAT, c);
7030 if (strcmp(buf, "800000140000005") != 0)
7031 return 0; /* either multiply or snprintf is busted */
7035 exit(! does_int64_snprintf_work());
7038 if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7040 echo "$ac_t""yes" 1>&6
7041 INT64_FORMAT='"%lld"'
7044 echo "configure: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7047 echo "$ac_t""no" 1>&6
7048 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7049 echo "configure:7050: checking whether snprintf handles 'long long int' as %qd" >&5
7050 if test "$cross_compiling" = yes; then
7051 echo "$ac_t""assuming not on target machine" 1>&6
7052 # Force usage of our own snprintf, since we cannot test foreign snprintf
7053 SNPRINTF='snprintf.o'
7054 INT64_FORMAT='"%lld"'
7057 cat > conftest.$ac_ext <<EOF
7058 #line 7059 "configure"
7059 #include "confdefs.h"
7061 typedef long long int int64;
7062 #define INT64_FORMAT "%qd"
7067 int does_int64_snprintf_work()
7072 if (sizeof(int64) != 8)
7073 return 0; /* doesn't look like the right size */
7076 snprintf(buf, 100, INT64_FORMAT, c);
7077 if (strcmp(buf, "800000140000005") != 0)
7078 return 0; /* either multiply or snprintf is busted */
7082 exit(! does_int64_snprintf_work());
7085 if { (eval echo configure:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7087 echo "$ac_t""yes" 1>&6
7088 INT64_FORMAT='"%qd"'
7091 echo "configure: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7094 echo "$ac_t""no" 1>&6
7095 # Force usage of our own snprintf, since system snprintf is broken
7096 SNPRINTF='snprintf.o'
7097 INT64_FORMAT='"%lld"'
7108 # here if we previously decided we needed to use our own snprintf
7109 INT64_FORMAT='"%lld"'
7112 # Here if we are not using 'long long int' at all
7113 INT64_FORMAT='"%ld"'
7116 cat >> confdefs.h <<EOF
7117 #define INT64_FORMAT $INT64_FORMAT
7122 for ac_func in strtoll strtoq
7124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7125 echo "configure:7126: checking for $ac_func" >&5
7126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7127 echo $ac_n "(cached) $ac_c" 1>&6
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7132 /* System header to define __stub macros and hopefully few prototypes,
7133 which can conflict with char $ac_func(); below. */
7135 /* Override any gcc2 internal prototype to avoid an error. */
7136 /* We use char because int might match the return type of a gcc2
7137 builtin and then its argument prototype would still apply. */
7142 /* The GNU C library defines this for functions which it implements
7143 to always fail with ENOSYS. Some functions are actually named
7144 something starting with __ and the normal name is an alias. */
7145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7153 if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7155 eval "ac_cv_func_$ac_func=yes"
7157 echo "configure: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7160 eval "ac_cv_func_$ac_func=no"
7165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7166 echo "$ac_t""yes" 1>&6
7167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7168 cat >> confdefs.h <<EOF
7169 #define $ac_tr_func 1
7173 echo "$ac_t""no" 1>&6
7177 for ac_func in strtoull strtouq
7179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7180 echo "configure:7181: checking for $ac_func" >&5
7181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7182 echo $ac_n "(cached) $ac_c" 1>&6
7184 cat > conftest.$ac_ext <<EOF
7185 #line 7186 "configure"
7186 #include "confdefs.h"
7187 /* System header to define __stub macros and hopefully few prototypes,
7188 which can conflict with char $ac_func(); below. */
7190 /* Override any gcc2 internal prototype to avoid an error. */
7191 /* We use char because int might match the return type of a gcc2
7192 builtin and then its argument prototype would still apply. */
7197 /* The GNU C library defines this for functions which it implements
7198 to always fail with ENOSYS. Some functions are actually named
7199 something starting with __ and the normal name is an alias. */
7200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7208 if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7210 eval "ac_cv_func_$ac_func=yes"
7212 echo "configure: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7215 eval "ac_cv_func_$ac_func=no"
7220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7221 echo "$ac_t""yes" 1>&6
7222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7223 cat >> confdefs.h <<EOF
7224 #define $ac_tr_func 1
7228 echo "$ac_t""no" 1>&6
7233 echo $ac_n "checking for atexit""... $ac_c" 1>&6
7234 echo "configure:7235: checking for atexit" >&5
7235 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
7238 cat > conftest.$ac_ext <<EOF
7239 #line 7240 "configure"
7240 #include "confdefs.h"
7241 /* System header to define __stub macros and hopefully few prototypes,
7242 which can conflict with char atexit(); below. */
7244 /* Override any gcc2 internal prototype to avoid an error. */
7245 /* We use char because int might match the return type of a gcc2
7246 builtin and then its argument prototype would still apply. */
7251 /* The GNU C library defines this for functions which it implements
7252 to always fail with ENOSYS. Some functions are actually named
7253 something starting with __ and the normal name is an alias. */
7254 #if defined (__stub_atexit) || defined (__stub___atexit)
7262 if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7264 eval "ac_cv_func_atexit=yes"
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7269 eval "ac_cv_func_atexit=no"
7274 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
7275 echo "$ac_t""yes" 1>&6
7276 cat >> confdefs.h <<\EOF
7277 #define HAVE_ATEXIT 1
7281 echo "$ac_t""no" 1>&6
7282 for ac_func in on_exit
7284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7285 echo "configure:7286: checking for $ac_func" >&5
7286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7287 echo $ac_n "(cached) $ac_c" 1>&6
7289 cat > conftest.$ac_ext <<EOF
7290 #line 7291 "configure"
7291 #include "confdefs.h"
7292 /* System header to define __stub macros and hopefully few prototypes,
7293 which can conflict with char $ac_func(); below. */
7295 /* Override any gcc2 internal prototype to avoid an error. */
7296 /* We use char because int might match the return type of a gcc2
7297 builtin and then its argument prototype would still apply. */
7302 /* The GNU C library defines this for functions which it implements
7303 to always fail with ENOSYS. Some functions are actually named
7304 something starting with __ and the normal name is an alias. */
7305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7313 if { (eval echo configure:7314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7315 eval "ac_cv_func_$ac_func=yes"
7317 echo "configure: failed program was:" >&5
7318 cat conftest.$ac_ext >&5
7320 eval "ac_cv_func_$ac_func=no"
7325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7326 echo "$ac_t""yes" 1>&6
7327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7328 cat >> confdefs.h <<EOF
7329 #define $ac_tr_func 1
7331 cat >> confdefs.h <<\EOF
7332 #define HAVE_ON_EXIT 1
7336 echo "$ac_t""no" 1>&6
7337 { echo "configure: error: atexi() nor on_exit() found" 1>&2; exit 1; }
7345 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
7346 echo "configure:7347: checking size of unsigned long" >&5
7347 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7350 if test "$cross_compiling" = yes; then
7351 ac_cv_sizeof_unsigned_long=4
7353 cat > conftest.$ac_ext <<EOF
7354 #line 7355 "configure"
7355 #include "confdefs.h"
7359 FILE *f=fopen("conftestval", "w");
7361 fprintf(f, "%d\n", sizeof(unsigned long));
7365 if { (eval echo configure:7366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7367 ac_cv_sizeof_unsigned_long=`cat conftestval`
7369 echo "configure: failed program was:" >&5
7370 cat conftest.$ac_ext >&5
7372 ac_cv_sizeof_unsigned_long=0
7378 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
7379 cat >> confdefs.h <<EOF
7380 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7384 cat >> confdefs.h <<EOF
7385 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
7390 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
7391 echo "configure:7392: checking alignment of short" >&5
7392 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
7393 echo $ac_n "(cached) $ac_c" 1>&6
7395 if test "$cross_compiling" = yes; then
7396 pgac_cv_alignof_short='sizeof(short)'
7398 cat > conftest.$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7402 struct { char filler; short field; } mystruct;
7405 FILE *f=fopen("conftestval", "w");
7407 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7411 if { (eval echo configure:7412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7413 pgac_cv_alignof_short=`cat conftestval`
7415 echo "configure: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7418 pgac_cv_alignof_short='sizeof(short)'
7424 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7425 cat >> confdefs.h <<EOF
7426 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7430 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7431 echo "configure:7432: checking alignment of int" >&5
7432 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7433 echo $ac_n "(cached) $ac_c" 1>&6
7435 if test "$cross_compiling" = yes; then
7436 pgac_cv_alignof_int='sizeof(int)'
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7442 struct { char filler; int field; } mystruct;
7445 FILE *f=fopen("conftestval", "w");
7447 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7451 if { (eval echo configure:7452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7453 pgac_cv_alignof_int=`cat conftestval`
7455 echo "configure: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7458 pgac_cv_alignof_int='sizeof(int)'
7464 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7465 cat >> confdefs.h <<EOF
7466 #define ALIGNOF_INT $pgac_cv_alignof_int
7470 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7471 echo "configure:7472: checking alignment of long" >&5
7472 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7473 echo $ac_n "(cached) $ac_c" 1>&6
7475 if test "$cross_compiling" = yes; then
7476 pgac_cv_alignof_long='sizeof(long)'
7478 cat > conftest.$ac_ext <<EOF
7479 #line 7480 "configure"
7480 #include "confdefs.h"
7482 struct { char filler; long field; } mystruct;
7485 FILE *f=fopen("conftestval", "w");
7487 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7491 if { (eval echo configure:7492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7493 pgac_cv_alignof_long=`cat conftestval`
7495 echo "configure: failed program was:" >&5
7496 cat conftest.$ac_ext >&5
7498 pgac_cv_alignof_long='sizeof(long)'
7504 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7505 cat >> confdefs.h <<EOF
7506 #define ALIGNOF_LONG $pgac_cv_alignof_long
7510 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7511 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7512 echo "configure:7513: checking alignment of long long int" >&5
7513 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7514 echo $ac_n "(cached) $ac_c" 1>&6
7516 if test "$cross_compiling" = yes; then
7517 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7519 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7523 struct { char filler; long long int field; } mystruct;
7526 FILE *f=fopen("conftestval", "w");
7528 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7532 if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7534 pgac_cv_alignof_long_long_int=`cat conftestval`
7536 echo "configure: failed program was:" >&5
7537 cat conftest.$ac_ext >&5
7539 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7545 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7546 cat >> confdefs.h <<EOF
7547 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7552 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7553 echo "configure:7554: checking alignment of double" >&5
7554 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7555 echo $ac_n "(cached) $ac_c" 1>&6
7557 if test "$cross_compiling" = yes; then
7558 pgac_cv_alignof_double='sizeof(double)'
7560 cat > conftest.$ac_ext <<EOF
7561 #line 7562 "configure"
7562 #include "confdefs.h"
7564 struct { char filler; double field; } mystruct;
7567 FILE *f=fopen("conftestval", "w");
7569 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7573 if { (eval echo configure:7574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7575 pgac_cv_alignof_double=`cat conftestval`
7577 echo "configure: failed program was:" >&5
7578 cat conftest.$ac_ext >&5
7580 pgac_cv_alignof_double='sizeof(double)'
7586 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7587 cat >> confdefs.h <<EOF
7588 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7594 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7595 MAX_ALIGNOF=$pgac_cv_alignof_long
7596 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7597 MAX_ALIGNOF=$pgac_cv_alignof_double
7599 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7600 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7603 MAX_ALIGNOF="$pgac_cv_alignof_double"
7605 cat >> confdefs.h <<EOF
7606 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7610 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7611 echo "configure:7612: checking for POSIX signal interface" >&5
7612 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7613 echo $ac_n "(cached) $ac_c" 1>&6
7615 cat > conftest.$ac_ext <<EOF
7616 #line 7617 "configure"
7617 #include "confdefs.h"
7621 struct sigaction act, oact;
7622 sigemptyset(&act.sa_mask);
7623 act.sa_flags = SA_RESTART;
7624 sigaction(0, &act, &oact);
7627 if { (eval echo configure:7628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7629 pgac_cv_func_posix_signals=yes
7631 echo "configure: failed program was:" >&5
7632 cat conftest.$ac_ext >&5
7634 pgac_cv_func_posix_signals=no
7639 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
7640 if test x"$pgac_cv_func_posix_signals" = xyes ; then
7641 cat >> confdefs.h <<\EOF
7642 #define HAVE_POSIX_SIGNALS
7646 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
7650 # Check for Tcl configuration script tclConfig.sh
7651 if test "$with_tcl" = yes; then
7652 for ac_prog in tclsh tcl
7654 # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7657 echo "configure:7658: checking for $ac_word" >&5
7658 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
7659 echo $ac_n "(cached) $ac_c" 1>&6
7663 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7666 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7671 for ac_dir in $ac_dummy; do
7672 test -z "$ac_dir" && ac_dir=.
7673 if test -f $ac_dir/$ac_word; then
7674 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7682 TCLSH="$ac_cv_path_TCLSH"
7683 if test -n "$TCLSH"; then
7684 echo "$ac_t""$TCLSH" 1>&6
7686 echo "$ac_t""no" 1>&6
7689 test -n "$TCLSH" && break
7692 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7693 echo "configure:7694: checking for tclConfig.sh" >&5
7694 # Let user override test
7695 if test -z "$TCL_CONFIG_SH"; then
7696 pgac_test_dirs="$with_tclconfig"
7698 set X $pgac_test_dirs; shift
7699 if test $# -eq 0; then
7700 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7701 set X `echo 'puts $auto_path' | $TCLSH`; shift
7705 if test -r "$pgac_dir/tclConfig.sh"; then
7706 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7712 if test -z "$TCL_CONFIG_SH"; then
7713 echo "$ac_t""no" 1>&6
7714 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7716 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7723 # Check for Tk configuration script tkConfig.sh
7724 if test "$with_tk" = yes; then
7725 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7726 echo "configure:7727: checking for tkConfig.sh" >&5
7727 # Let user override test
7728 if test -z "$TK_CONFIG_SH"; then
7729 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7731 set X $pgac_test_dirs; shift
7732 if test $# -eq 0; then
7733 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7734 set X `echo 'puts $auto_path' | $TCLSH`; shift
7738 if test -r "$pgac_dir/tkConfig.sh"; then
7739 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7745 if test -z "$TK_CONFIG_SH"; then
7746 echo "$ac_t""no" 1>&6
7747 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7749 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7758 # Check for DocBook and tools
7760 for ac_prog in onsgmls nsgmls
7762 # Extract the first word of "$ac_prog", so it can be a program name with args.
7763 set dummy $ac_prog; ac_word=$2
7764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7765 echo "configure:7766: checking for $ac_word" >&5
7766 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
7767 echo $ac_n "(cached) $ac_c" 1>&6
7769 if test -n "$NSGMLS"; then
7770 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
7772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7774 for ac_dir in $ac_dummy; do
7775 test -z "$ac_dir" && ac_dir=.
7776 if test -f $ac_dir/$ac_word; then
7777 ac_cv_prog_NSGMLS="$ac_prog"
7784 NSGMLS="$ac_cv_prog_NSGMLS"
7785 if test -n "$NSGMLS"; then
7786 echo "$ac_t""$NSGMLS" 1>&6
7788 echo "$ac_t""no" 1>&6
7791 test -n "$NSGMLS" && break
7794 # If you don't have nsgmls you won't get very far, so save the cycles.
7795 if test -n "$NSGMLS"; then
7796 for ac_prog in openjade jade
7798 # Extract the first word of "$ac_prog", so it can be a program name with args.
7799 set dummy $ac_prog; ac_word=$2
7800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7801 echo "configure:7802: checking for $ac_word" >&5
7802 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
7803 echo $ac_n "(cached) $ac_c" 1>&6
7805 if test -n "$JADE"; then
7806 ac_cv_prog_JADE="$JADE" # Let the user override the test.
7808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7810 for ac_dir in $ac_dummy; do
7811 test -z "$ac_dir" && ac_dir=.
7812 if test -f $ac_dir/$ac_word; then
7813 ac_cv_prog_JADE="$ac_prog"
7820 JADE="$ac_cv_prog_JADE"
7821 if test -n "$JADE"; then
7822 echo "$ac_t""$JADE" 1>&6
7824 echo "$ac_t""no" 1>&6
7827 test -n "$JADE" && break
7831 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
7832 echo "configure:7833: checking for DocBook V3.1" >&5
7833 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7836 cat >conftest.sgml <<EOF
7837 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
7841 <title>random</title>
7843 <title>testsect</title>
7850 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
7851 if test $? -eq 0; then
7852 pgac_cv_check_docbook=yes
7854 pgac_cv_check_docbook=no
7859 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
7861 have_docbook=$pgac_cv_check_docbook
7864 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
7865 echo "configure:7866: checking for DocBook stylesheets" >&5
7866 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7869 if test -n "$DOCBOOKSTYLE"; then
7870 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
7872 for pgac_prefix in /usr /usr/local /opt; do
7873 for pgac_infix in share lib; do
7874 for pgac_postfix in \
7875 sgml/stylesheets/nwalsh-modular \
7876 sgml/stylesheets/docbook \
7877 sgml/docbook/dsssl/modular
7879 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
7880 if test -r "$pgac_candidate/html/docbook.dsl" \
7881 && test -r "$pgac_candidate/print/docbook.dsl"
7883 pgac_cv_path_stylesheets=$pgac_candidate
7892 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
7894 if test -n "$DOCBOOKSTYLE"; then
7895 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
7897 echo "$ac_t""no" 1>&6
7899 for ac_prog in sgmlspl
7901 # Extract the first word of "$ac_prog", so it can be a program name with args.
7902 set dummy $ac_prog; ac_word=$2
7903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7904 echo "configure:7905: checking for $ac_word" >&5
7905 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7908 if test -n "$SGMLSPL"; then
7909 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
7911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7913 for ac_dir in $ac_dummy; do
7914 test -z "$ac_dir" && ac_dir=.
7915 if test -f $ac_dir/$ac_word; then
7916 ac_cv_prog_SGMLSPL="$ac_prog"
7923 SGMLSPL="$ac_cv_prog_SGMLSPL"
7924 if test -n "$SGMLSPL"; then
7925 echo "$ac_t""$SGMLSPL" 1>&6
7927 echo "$ac_t""no" 1>&6
7930 test -n "$SGMLSPL" && break
7935 # check whether 'test -ef' works
7936 if (test "$srcdir" -ef "$srcdir") >/dev/null 2>&1 ; then
7945 if test "$test_ef_works" = yes ; then
7946 # prepare build tree if outside source tree
7947 if test "$srcdir" -ef . ; then : ; else
7948 abs_top_srcdir=`cd $srcdir && pwd`
7949 echo $ac_n "preparing build tree... $ac_c" 1>&6
7950 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "." \
7951 || { echo "configure: error: failed" 1>&2; exit 1; }
7952 echo "$ac_t""done" 1>&6
7957 cat > confcache <<\EOF
7958 # This file is a shell script that caches the results of configure
7959 # tests run on this system so they can be shared between configure
7960 # scripts and configure runs. It is not useful on other systems.
7961 # If it contains results you don't want to keep, you may remove or edit it.
7963 # By default, configure uses ./config.cache as the cache file,
7964 # creating it if it does not exist already. You can give configure
7965 # the --cache-file=FILE option to use a different cache file; that is
7966 # what configure does when it calls configure scripts in
7967 # subdirectories, so they share the cache.
7968 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7969 # config.status only pays attention to the cache file if you give it the
7970 # --recheck option to rerun configure.
7973 # The following way of writing the cache mishandles newlines in values,
7974 # but we know of no workaround that is simple, portable, and efficient.
7975 # So, don't put newlines in cache variables' values.
7976 # Ultrix sh set writes to stderr and can't be redirected directly,
7977 # and sets the high bit in the cache file unless we assign to the vars.
7979 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7981 # `set' does not quote correctly, so add quotes (double-quote substitution
7982 # turns \\\\ into \\, and sed turns \\ into \).
7984 -e "s/'/'\\\\''/g" \
7985 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7988 # `set' quotes correctly as required by POSIX, so do not add quotes.
7989 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7992 if cmp -s $cache_file confcache; then
7995 if test -w $cache_file; then
7996 echo "updating cache $cache_file"
7997 cat confcache > $cache_file
7999 echo "not updating unwritable cache $cache_file"
8004 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8006 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8007 # Let make expand exec_prefix.
8008 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8010 # Any assignment to VPATH causes Sun make to only execute
8011 # the first set of double-colon rules, so remove it if not needed.
8012 # If there is a colon in the path, we need to keep it.
8013 if test "x$srcdir" = x.; then
8014 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8017 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8019 DEFS=-DHAVE_CONFIG_H
8021 # Without the "./", some shells look in PATH for config.status.
8022 : ${CONFIG_STATUS=./config.status}
8024 echo creating $CONFIG_STATUS
8025 rm -f $CONFIG_STATUS
8026 cat > $CONFIG_STATUS <<EOF
8028 # Generated automatically by configure.
8029 # Run this file to recreate the current configuration.
8030 # This directory was configured as follows,
8031 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8033 # $0 $ac_configure_args
8035 # Compiler output produced by configure, useful for debugging
8036 # configure, is in ./config.log if it exists.
8038 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8041 case "\$ac_option" in
8042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8043 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8044 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8045 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8046 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8048 -help | --help | --hel | --he | --h)
8049 echo "\$ac_cs_usage"; exit 0 ;;
8050 *) echo "\$ac_cs_usage"; exit 1 ;;
8054 ac_given_srcdir=$srcdir
8056 trap 'rm -fr `echo "
8060 src/backend/port/Makefile
8061 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8063 cat >> $CONFIG_STATUS <<EOF
8065 # Protect against being on the right side of a sed subst in config.status.
8066 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8067 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8071 s%@CFLAGS@%$CFLAGS%g
8072 s%@CPPFLAGS@%$CPPFLAGS%g
8073 s%@CXXFLAGS@%$CXXFLAGS%g
8074 s%@FFLAGS@%$FFLAGS%g
8076 s%@LDFLAGS@%$LDFLAGS%g
8078 s%@exec_prefix@%$exec_prefix%g
8079 s%@prefix@%$prefix%g
8080 s%@program_transform_name@%$program_transform_name%g
8081 s%@bindir@%$bindir%g
8082 s%@sbindir@%$sbindir%g
8083 s%@libexecdir@%$libexecdir%g
8084 s%@datadir@%$datadir%g
8085 s%@sysconfdir@%$sysconfdir%g
8086 s%@sharedstatedir@%$sharedstatedir%g
8087 s%@localstatedir@%$localstatedir%g
8088 s%@libdir@%$libdir%g
8089 s%@includedir@%$includedir%g
8090 s%@oldincludedir@%$oldincludedir%g
8091 s%@docdir@%$docdir%g
8092 s%@mandir@%$mandir%g
8093 s%@VERSION@%$VERSION%g
8095 s%@host_alias@%$host_alias%g
8096 s%@host_cpu@%$host_cpu%g
8097 s%@host_vendor@%$host_vendor%g
8098 s%@host_os@%$host_os%g
8099 s%@PORTNAME@%$PORTNAME%g
8101 s%@MULTIBYTE@%$MULTIBYTE%g
8102 s%@default_port@%$default_port%g
8103 s%@enable_shared@%$enable_shared%g
8104 s%@enable_rpath@%$enable_rpath%g
8106 s%@EXEEXT@%$EXEEXT%g
8109 s%@autodepend@%$autodepend%g
8110 s%@INCLUDES@%$INCLUDES%g
8111 s%@with_tcl@%$with_tcl%g
8112 s%@with_tk@%$with_tk%g
8113 s%@with_perl@%$with_perl%g
8114 s%@PYTHON@%$PYTHON%g
8115 s%@python_version@%$python_version%g
8116 s%@python_prefix@%$python_prefix%g
8117 s%@python_execprefix@%$python_execprefix%g
8118 s%@python_configdir@%$python_configdir%g
8119 s%@python_moduledir@%$python_moduledir%g
8120 s%@python_extmakefile@%$python_extmakefile%g
8121 s%@with_python@%$with_python%g
8123 s%@with_java@%$with_java%g
8124 s%@with_krb4@%$with_krb4%g
8125 s%@with_krb5@%$with_krb5%g
8126 s%@krb_srvtab@%$krb_srvtab%g
8127 s%@with_openssl@%$with_openssl%g
8128 s%@enable_odbc@%$enable_odbc%g
8129 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
8130 s%@ELF_SYS@%$ELF_SYS%g
8132 s%@CXXCPP@%$CXXCPP%g
8134 s%@with_CXX@%$with_CXX%g
8137 s%@FLEXFLAGS@%$FLEXFLAGS%g
8140 s%@with_gnu_ld@%$with_gnu_ld%g
8141 s%@ld_R_works@%$ld_R_works%g
8142 s%@RANLIB@%$RANLIB%g
8143 s%@LORDER@%$LORDER%g
8147 s%@YFLAGS@%$YFLAGS%g
8149 s%@SNPRINTF@%$SNPRINTF%g
8151 s%@GETRUSAGE@%$GETRUSAGE%g
8152 s%@SRANDOM@%$SRANDOM%g
8153 s%@GETHOSTNAME@%$GETHOSTNAME%g
8154 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
8155 s%@INET_ATON@%$INET_ATON%g
8156 s%@STRERROR@%$STRERROR%g
8157 s%@STRDUP@%$STRDUP%g
8158 s%@STRTOL@%$STRTOL%g
8159 s%@STRTOUL@%$STRTOUL%g
8160 s%@STRCASECMP@%$STRCASECMP%g
8161 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
8162 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
8164 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
8165 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
8166 s%@NSGMLS@%$NSGMLS%g
8168 s%@have_docbook@%$have_docbook%g
8169 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
8170 s%@SGMLSPL@%$SGMLSPL%g
8171 s%@abs_top_srcdir@%$abs_top_srcdir%g
8176 cat >> $CONFIG_STATUS <<\EOF
8178 # Split the substitutions into bite-sized pieces for seds with
8179 # small command number limits, like on Digital OSF/1 and HP-UX.
8180 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8181 ac_file=1 # Number of current file.
8182 ac_beg=1 # First line for current file.
8183 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8186 while $ac_more_lines; do
8187 if test $ac_beg -gt 1; then
8188 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8190 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8192 if test ! -s conftest.s$ac_file; then
8194 rm -f conftest.s$ac_file
8196 if test -z "$ac_sed_cmds"; then
8197 ac_sed_cmds="sed -f conftest.s$ac_file"
8199 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8201 ac_file=`expr $ac_file + 1`
8203 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8206 if test -z "$ac_sed_cmds"; then
8211 cat >> $CONFIG_STATUS <<EOF
8213 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
8216 src/backend/port/Makefile
8219 cat >> $CONFIG_STATUS <<\EOF
8220 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8221 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8223 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8224 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8225 *) ac_file_in="${ac_file}.in" ;;
8228 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8230 # Remove last slash and all that follows it. Not all systems have dirname.
8231 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8232 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8233 # The file is in a subdirectory.
8234 test ! -d "$ac_dir" && mkdir "$ac_dir"
8235 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8236 # A "../" for each directory in $ac_dir_suffix.
8237 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8239 ac_dir_suffix= ac_dots=
8242 case "$ac_given_srcdir" in
8244 if test -z "$ac_dots"; then top_srcdir=.
8245 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8246 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8248 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8249 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8253 echo creating "$ac_file"
8255 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8257 *Makefile*) ac_comsub="1i\\
8258 # $configure_input" ;;
8262 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8264 s%@configure_input@%$configure_input%g
8265 s%@srcdir@%$srcdir%g
8266 s%@top_srcdir@%$top_srcdir%g
8267 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8271 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8272 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8274 # ac_d sets the value in "#define NAME VALUE" lines.
8275 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8276 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8279 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8280 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8281 ac_uB='\([ ]\)%\1#\2define\3'
8284 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8285 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8286 ac_eB='$%\1#\2define\3'
8290 if test "${CONFIG_HEADERS+set}" != set; then
8292 cat >> $CONFIG_STATUS <<EOF
8293 CONFIG_HEADERS="src/include/config.h"
8295 cat >> $CONFIG_STATUS <<\EOF
8297 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8300 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8301 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8302 *) ac_file_in="${ac_file}.in" ;;
8305 echo creating $ac_file
8307 rm -f conftest.frag conftest.in conftest.out
8308 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8309 cat $ac_file_inputs > conftest.in
8313 # Transform confdefs.h into a sed script conftest.vals that substitutes
8314 # the proper values into config.h.in to produce config.h. And first:
8315 # Protect against being on the right side of a sed subst in config.status.
8316 # Protect against being in an unquoted here document in config.status.
8318 cat > conftest.hdr <<\EOF
8321 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8325 sed -n -f conftest.hdr confdefs.h > conftest.vals
8328 # This sed command replaces #undef with comments. This is necessary, for
8329 # example, in the case of _POSIX_SOURCE, which is predefined and required
8330 # on some systems where configure will not decide to define it.
8331 cat >> conftest.vals <<\EOF
8332 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8335 # Break up conftest.vals because some shells have a limit on
8336 # the size of here documents, and old seds have small limits too.
8341 ac_lines=`grep -c . conftest.vals`
8342 # grep -c gives empty output for an empty file on some AIX systems.
8343 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8344 # Write a limited-size here document to conftest.frag.
8345 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8346 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8348 sed -f conftest.frag conftest.in > conftest.out
8350 mv conftest.out conftest.in
8352 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8354 mv conftest.tail conftest.vals
8358 cat >> $CONFIG_STATUS <<\EOF
8359 rm -f conftest.frag conftest.h
8360 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8361 cat conftest.in >> conftest.h
8363 if cmp -s $ac_file conftest.h 2>/dev/null; then
8364 echo "$ac_file is unchanged"
8367 # Remove last slash and all that follows it. Not all systems have dirname.
8368 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8369 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8370 # The file is in a subdirectory.
8371 test ! -d "$ac_dir" && mkdir "$ac_dir"
8374 mv conftest.h $ac_file
8380 cat >> $CONFIG_STATUS <<EOF
8381 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}"
8382 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
8385 cat >> $CONFIG_STATUS <<\EOF
8386 srcdir=$ac_given_srcdir
8387 while test -n "$ac_sources"; do
8388 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8389 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8391 echo "linking $srcdir/$ac_source to $ac_dest"
8393 if test ! -r $srcdir/$ac_source; then
8394 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8398 # Make relative symlinks.
8399 # Remove last slash and all that follows it. Not all systems have dirname.
8400 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8401 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8402 # The dest file is in a subdirectory.
8403 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8404 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8405 # A "../" for each directory in $ac_dest_dir_suffix.
8406 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8408 ac_dest_dir_suffix= ac_dots=
8412 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8413 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8416 # Make a symlink if possible; otherwise try a hard link.
8417 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8418 ln $srcdir/$ac_source $ac_dest; then :
8420 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8424 cat >> $CONFIG_STATUS <<EOF
8427 cat >> $CONFIG_STATUS <<\EOF
8429 # Update timestamp for config.h (see Makefile.global)
8430 test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
8434 chmod +x $CONFIG_STATUS
8435 rm -fr confdefs* $ac_clean_files
8436 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1