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-nls[=LANGUAGES] enable Native Language 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-pam[=DIR] build with PAM support [/usr]"
66 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
68 --enable-odbc build the ODBC driver package"
70 --with-unixodbc build ODBC driver for unixODBC"
72 --with-iodbc build ODBC driver for iODBC"
74 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
76 --with-CXX build C++ modules (libpq++)"
78 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
80 --enable-syslog enable logging to syslog"
82 # Initialize some variables set by options.
83 # The variables have the same names as the options, with
84 # dashes changed to underlines.
86 cache_file=./config.cache
95 program_transform_name=s,x,x,
103 bindir='${exec_prefix}/bin'
104 sbindir='${exec_prefix}/sbin'
105 libexecdir='${exec_prefix}/libexec'
106 datadir='${prefix}/share'
107 sysconfdir='${prefix}/etc'
108 sharedstatedir='${prefix}/com'
109 localstatedir='${prefix}/var'
110 libdir='${exec_prefix}/lib'
111 includedir='${prefix}/include'
112 oldincludedir='/usr/include'
113 docdir='${prefix}/doc'
114 mandir='${prefix}/man'
116 # Initialize some other variables.
119 SHELL=${CONFIG_SHELL-/bin/sh}
120 # Maximum number of lines to put in a shell here document.
127 # If the previous option needs an argument, assign it.
128 if test -n "$ac_prev"; then
129 eval "$ac_prev=\$ac_option"
135 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
139 # Accept the important Cygnus configure options, so we can diagnose typos.
143 -bindir | --bindir | --bindi | --bind | --bin | --bi)
145 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
146 bindir="$ac_optarg" ;;
148 -build | --build | --buil | --bui | --bu)
150 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
151 build="$ac_optarg" ;;
153 -cache-file | --cache-file | --cache-fil | --cache-fi \
154 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
155 ac_prev=cache_file ;;
156 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
157 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
158 cache_file="$ac_optarg" ;;
160 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
162 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
164 datadir="$ac_optarg" ;;
166 -disable-* | --disable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}=no" ;;
175 -enable-* | --enable-*)
176 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
186 eval "enable_${ac_feature}='$ac_optarg'" ;;
188 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
189 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
190 | --exec | --exe | --ex)
191 ac_prev=exec_prefix ;;
192 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
193 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
194 | --exec=* | --exe=* | --ex=*)
195 exec_prefix="$ac_optarg" ;;
197 -gas | --gas | --ga | --g)
198 # Obsolete; use --with-gas.
201 -help | --help | --hel | --he)
202 # Omit some internal or obsolete options to make the list less imposing.
203 # This message is too long to be a string in the A/UX 3.1 sh.
205 Usage: configure [options] [host]
206 Options: [defaults in brackets after descriptions]
208 --cache-file=FILE cache test results in FILE
209 --help print this message
210 --no-create do not create output files
211 --quiet, --silent do not print \`checking...' messages
212 --version print the version of autoconf that created configure
213 Directory and file names:
214 --prefix=PREFIX install architecture-independent files in PREFIX
216 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
218 --bindir=DIR user executables in DIR [EPREFIX/bin]
219 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
220 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
221 --datadir=DIR read-only architecture-independent data in DIR
223 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
224 --sharedstatedir=DIR modifiable architecture-independent data in DIR
226 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
227 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
228 --includedir=DIR C header files in DIR [PREFIX/include]
229 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
230 --docdir=DIR doc documentation in DIR [PREFIX/doc]
231 --mandir=DIR man documentation in DIR [PREFIX/man]
232 --srcdir=DIR find the sources in DIR [configure dir or ..]
233 --program-prefix=PREFIX prepend PREFIX to installed program names
234 --program-suffix=SUFFIX append SUFFIX to installed program names
235 --program-transform-name=PROGRAM
236 run sed PROGRAM on installed program names
240 --build=BUILD configure for building on BUILD [BUILD=HOST]
241 --host=HOST configure for HOST [guessed]
242 --target=TARGET configure for TARGET [TARGET=HOST]
243 Features and packages:
244 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
245 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
246 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
247 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
248 --x-includes=DIR X include files are in DIR
249 --x-libraries=DIR X library files are in DIR
251 if test -n "$ac_help"; then
252 echo "--enable and --with options recognized:$ac_help"
256 -host | --host | --hos | --ho)
258 -host=* | --host=* | --hos=* | --ho=*)
261 -includedir | --includedir | --includedi | --included | --include \
262 | --includ | --inclu | --incl | --inc)
263 ac_prev=includedir ;;
264 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
265 | --includ=* | --inclu=* | --incl=* | --inc=*)
266 includedir="$ac_optarg" ;;
268 -docdir | --docdir | --infodi | --infod | --doc | --inf)
270 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
271 docdir="$ac_optarg" ;;
273 -libdir | --libdir | --libdi | --libd)
275 -libdir=* | --libdir=* | --libdi=* | --libd=*)
276 libdir="$ac_optarg" ;;
278 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
279 | --libexe | --libex | --libe)
280 ac_prev=libexecdir ;;
281 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
282 | --libexe=* | --libex=* | --libe=*)
283 libexecdir="$ac_optarg" ;;
285 -localstatedir | --localstatedir | --localstatedi | --localstated \
286 | --localstate | --localstat | --localsta | --localst \
287 | --locals | --local | --loca | --loc | --lo)
288 ac_prev=localstatedir ;;
289 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
290 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
291 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
292 localstatedir="$ac_optarg" ;;
294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
297 mandir="$ac_optarg" ;;
300 # Obsolete; use --without-fp.
303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
313 | --oldin | --oldi | --old | --ol | --o)
314 ac_prev=oldincludedir ;;
315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
318 oldincludedir="$ac_optarg" ;;
320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
323 prefix="$ac_optarg" ;;
325 -program-prefix | --program-prefix | --program-prefi | --program-pref \
326 | --program-pre | --program-pr | --program-p)
327 ac_prev=program_prefix ;;
328 -program-prefix=* | --program-prefix=* | --program-prefi=* \
329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
330 program_prefix="$ac_optarg" ;;
332 -program-suffix | --program-suffix | --program-suffi | --program-suff \
333 | --program-suf | --program-su | --program-s)
334 ac_prev=program_suffix ;;
335 -program-suffix=* | --program-suffix=* | --program-suffi=* \
336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
337 program_suffix="$ac_optarg" ;;
339 -program-transform-name | --program-transform-name \
340 | --program-transform-nam | --program-transform-na \
341 | --program-transform-n | --program-transform- \
342 | --program-transform | --program-transfor \
343 | --program-transfo | --program-transf \
344 | --program-trans | --program-tran \
345 | --progr-tra | --program-tr | --program-t)
346 ac_prev=program_transform_name ;;
347 -program-transform-name=* | --program-transform-name=* \
348 | --program-transform-nam=* | --program-transform-na=* \
349 | --program-transform-n=* | --program-transform-=* \
350 | --program-transform=* | --program-transfor=* \
351 | --program-transfo=* | --program-transf=* \
352 | --program-trans=* | --program-tran=* \
353 | --progr-tra=* | --program-tr=* | --program-t=*)
354 program_transform_name="$ac_optarg" ;;
356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
357 | -silent | --silent | --silen | --sile | --sil)
360 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364 sbindir="$ac_optarg" ;;
366 -sharedstatedir | --sharedstatedir | --sharedstatedi \
367 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
368 | --sharedst | --shareds | --shared | --share | --shar \
370 ac_prev=sharedstatedir ;;
371 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
372 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
373 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375 sharedstatedir="$ac_optarg" ;;
377 -site | --site | --sit)
379 -site=* | --site=* | --sit=*)
382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
385 srcdir="$ac_optarg" ;;
387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
388 | --syscon | --sysco | --sysc | --sys | --sy)
389 ac_prev=sysconfdir ;;
390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
392 sysconfdir="$ac_optarg" ;;
394 -target | --target | --targe | --targ | --tar | --ta | --t)
396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
397 target="$ac_optarg" ;;
399 -v | -verbose | --verbose | --verbos | --verbo | --verb)
402 -version | --version | --versio | --versi | --vers)
403 echo "configure generated by autoconf version 2.13"
407 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}='$ac_optarg'" ;;
419 -without-* | --without-*)
420 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
423 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425 ac_package=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}=no" ;;
429 # Obsolete; use --with-x.
432 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
433 | --x-incl | --x-inc | --x-in | --x-i)
434 ac_prev=x_includes ;;
435 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
436 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
437 x_includes="$ac_optarg" ;;
439 -x-libraries | --x-libraries | --x-librarie | --x-librari \
440 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
441 ac_prev=x_libraries ;;
442 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
443 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
444 x_libraries="$ac_optarg" ;;
446 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
450 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
451 echo "configure: warning: $ac_option: invalid host type" 1>&2
453 if test "x$nonopt" != xNONE; then
454 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 if test -n "$ac_prev"; then
463 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
466 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468 # File descriptor usage:
471 # 2 errors and warnings
472 # 3 some systems may open it to /dev/tty
473 # 4 used on the Kubota Titan
474 # 6 checking for... messages and results
475 # 5 compiler messages saved in config.log
476 if test "$silent" = yes; then
484 This file contains any messages produced by compilers while
485 running configure, to aid debugging if configure makes a mistake.
488 # Strip out --no-create and --no-recursion so they do not pile up.
489 # Also quote any args containing shell metacharacters.
494 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
495 | --no-cr | --no-c) ;;
496 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
497 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
499 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
500 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
505 # Only set these to C if already set. These must not be set unconditionally
506 # because not all systems understand e.g. LANG=C (notably SCO).
507 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
508 # Non-C LC_CTYPE values break the ctype check.
509 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
510 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
511 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
512 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
514 # confdefs.h avoids OS command line length limits that DEFS can exceed.
515 rm -rf conftest* confdefs.h
516 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
519 # A filename unique to this package, relative to the directory that
520 # configure is in, which we can look for to find out if srcdir is correct.
521 ac_unique_file=src/backend/access/common/heaptuple.c
523 # Find the source files, if location was not specified.
524 if test -z "$srcdir"; then
525 ac_srcdir_defaulted=yes
526 # Try the directory containing this script, then its parent.
528 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
529 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
531 if test ! -r $srcdir/$ac_unique_file; then
535 ac_srcdir_defaulted=no
537 if test ! -r $srcdir/$ac_unique_file; then
538 if test "$ac_srcdir_defaulted" = yes; then
539 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
544 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
546 # Prefer explicitly selected file to automatically selected ones.
547 if test -z "$CONFIG_SITE"; then
548 if test "x$prefix" != xNONE; then
549 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
551 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
554 for ac_site_file in $CONFIG_SITE; do
555 if test -r "$ac_site_file"; then
556 echo "loading site script $ac_site_file"
561 if test -r "$cache_file"; then
562 echo "loading cache $cache_file"
565 echo "creating cache $cache_file"
570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
571 ac_cpp='$CPP $CPPFLAGS'
572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
574 cross_compiling=$ac_cv_prog_cc_cross
578 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
579 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
580 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
587 ac_n= ac_c='\c' ac_t=
599 for ac_dir in config $srcdir/config; do
600 if test -f $ac_dir/install-sh; then
602 ac_install_sh="$ac_aux_dir/install-sh -c"
604 elif test -f $ac_dir/install.sh; then
606 ac_install_sh="$ac_aux_dir/install.sh -c"
610 if test -z "$ac_aux_dir"; then
611 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
613 ac_config_guess=$ac_aux_dir/config.guess
614 ac_config_sub=$ac_aux_dir/config.sub
615 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
620 cat >> confdefs.h <<EOF
621 #define PG_VERSION "$VERSION"
628 # Make sure we can run config.sub.
629 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
630 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
633 echo $ac_n "checking host system type""... $ac_c" 1>&6
634 echo "configure:635: checking host system type" >&5
637 case "$host_alias" in
641 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
642 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644 *) host_alias=$nonopt ;;
648 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
649 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652 echo "$ac_t""$host" 1>&6
659 echo $ac_n "checking which template to use""... $ac_c" 1>&6
660 echo "configure:661: checking which template to use" >&5
662 # Check whether --with-template was given
663 if test x"${with_template+set}" = xset; then
664 case $with_template in
666 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
669 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
672 withval=$with_template
675 list) echo; ls "$srcdir/src/template"; exit;;
676 *) if test -f "$srcdir/src/template/$with_template" ; then
679 { echo "configure: error: '$withval' is not a valid template name. Use 'list' for a list." 1>&2; exit 1; }
684 esac # $with_template
687 # --with-template not given
690 aix*) template=aix ;;
691 beos*) template=beos ;;
692 bsdi*) template=bsdi ;;
693 cygwin*) template=win ;;
694 darwin*) template=darwin ;;
695 dgux*) template=dgux ;;
696 freebsd*) template=freebsd ;;
697 hpux*) template=hpux ;;
698 irix*) template=irix5 ;;
699 linux*) template=linux ;;
700 netbsd*) template=netbsd ;;
701 nextstep*) template=nextstep ;;
702 openbsd*) template=openbsd ;;
703 osf*) template=osf ;;
704 qnx*) template=qnx4 ;;
705 sco*) template=sco ;;
706 solaris*) template=solaris ;;
707 sunos*) template=sunos4 ;;
710 univel) template=univel ;;
712 sysv4*) template=svr4 ;;
713 sysv5*) template=unixware ;;
714 ultrix*) template=ultrix4 ;;
717 if test x"$template" = x"" ; then
718 { echo "configure: error:
719 *******************************************************************
720 PostgreSQL has apparently not been ported to your platform yet.
721 To try a manual configuration, look into the src/template directory
722 for a similar platform and use the '--with-template=' option.
724 Please also contact <pgsql-ports@postgresql.org> to see about
725 rectifying this. Include the above 'checking host system type...'
727 *******************************************************************
734 echo "$ac_t""$template" 1>&6
744 # Pick right test-and-set (TAS) code. Most platforms have inline
745 # assembler code in src/include/storage/s_lock.h, so we just use
748 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
749 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
750 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
751 *) need_tas=no; tas_file=dummy.s ;;
755 if test "$need_tas" = yes ; then
763 ## Command line options
768 # Add non-standard directories to the include path
770 # Check whether --with-includes was given
771 if test x"${with_includes+set}" = xset; then
772 case $with_includes in
774 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
777 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
779 esac # $with_includes
784 # Add non-standard directories to the library search path
786 # Check whether --with-libraries was given
787 if test x"${with_libraries+set}" = xset; then
788 case $with_libraries in
790 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
793 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
796 withval=$with_libraries
797 LIBRARY_DIRS=$withval
799 esac # $with_libraries
802 # Check whether --with-libs was given
803 if test x"${with_libs+set}" = xset; then
806 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
809 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
813 LIBRARY_DIRS=$withval
820 # Locale (--enable-locale)
822 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
823 echo "configure:824: checking whether to build with locale support" >&5
824 # Check whether --enable-locale was given
825 if test x"${enable_locale+set}" = xset; then
826 case $enable_locale in
828 cat >> confdefs.h <<\EOF
837 enableval=$enable_locale
838 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
840 esac # $enable_locale
845 echo "$ac_t""$enable_locale" 1>&6
849 # Character set recode (--enable-recode)
851 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
852 echo "configure:853: checking whether to build with recode support" >&5
853 # Check whether --enable-recode was given
854 if test x"${enable_recode+set}" = xset; then
855 case $enable_recode in
857 cat >> confdefs.h <<\EOF
866 enableval=$enable_recode
867 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
869 esac # $enable_recode
874 echo "$ac_t""$enable_recode" 1>&6
881 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
882 echo "configure:883: checking whether to build with multibyte character support" >&5
884 # Check whether --enable-multibyte was given
885 if test x"${enable_multibyte+set}" = xset; then
886 case $enable_multibyte in
894 enableval=$enable_multibyte
898 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|LATIN6|LATIN7|LATIN8|LATIN9|LATIN10|KOI8|WIN|ALT|ISO_8859_5|ISO_8859_6|ISO_8859_7|ISO_8859_8)
899 MULTIBYTE=$enableval;;
901 { echo "configure: error: argument to --enable-multibyte must be one of:
902 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
903 UNICODE, MULE_INTERNAL,
904 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
905 LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
907 ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
908 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
912 esac # $enable_multibyte
917 if test "$enable_multibyte" = yes; then
919 cat >> confdefs.h <<\EOF
923 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
926 echo "$ac_t""no" 1>&6
935 echo $ac_n "checking whether NLS is wanted""... $ac_c" 1>&6
936 echo "configure:937: checking whether NLS is wanted" >&5
937 # Check whether --enable-nls was given
938 if test x"${enable_nls+set}" = xset; then
947 enableval=$enable_nls
949 WANTED_LANGUAGES=$enableval
956 if test "$enable_nls" = yes; then
957 cat >> confdefs.h <<\EOF
963 echo "$ac_t""$enable_nls" 1>&6
968 # Default port number (--with-pgport), default 5432
970 echo $ac_n "checking for default port number""... $ac_c" 1>&6
971 echo "configure:972: checking for default port number" >&5
972 # Check whether --with-pgport was given
973 if test x"${with_pgport+set}" = xset; then
976 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
979 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
983 default_port=$withval
989 echo "$ac_t""$default_port" 1>&6
990 # Need both of these because some places want an integer and some a string
991 cat >> confdefs.h <<EOF
992 #define DEF_PGPORT ${default_port}
995 cat >> confdefs.h <<EOF
996 #define DEF_PGPORT_STR "${default_port}"
1002 # Maximum number of allowed connections (--with-maxbackends), default 32
1004 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
1005 echo "configure:1006: checking for default soft limit on number of connections" >&5
1006 # Check whether --with-maxbackends was given
1007 if test x"${with_maxbackends+set}" = xset; then
1008 case $with_maxbackends in
1010 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1013 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1015 esac # $with_maxbackends
1019 echo "$ac_t""$with_maxbackends" 1>&6
1020 cat >> confdefs.h <<EOF
1021 #define DEF_MAXBACKENDS $with_maxbackends
1027 # Option to disable shared libraries
1029 # Check whether --enable-shared was given
1030 if test x"${enable_shared+set}" = xset; then
1031 case $enable_shared in
1039 enableval=$enable_shared
1040 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
1042 esac # $enable_shared
1050 # '-rpath'-like feature can be disabled
1052 # Check whether --enable-rpath was given
1053 if test x"${enable_rpath+set}" = xset; then
1054 case $enable_rpath in
1062 enableval=$enable_rpath
1063 { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
1065 esac # $enable_rpath
1074 # --enable-debug adds -g to compiler flags
1076 # Check whether --enable-debug was given
1077 if test x"${enable_debug+set}" = xset; then
1078 case $enable_debug in
1086 enableval=$enable_debug
1087 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1089 esac # $enable_debug
1100 # For historical reasons you can also use --with-CC to specify the C compiler
1101 # to use, although the standard way to do this is to set the CC environment
1103 # Check whether --with-CC was given
1104 if test x"${with_CC+set}" = xset; then
1107 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1110 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1119 # On AIX, default compiler to xlc.
1120 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1122 # Save CFLAGS from the environment
1123 has_environ_CFLAGS="${CFLAGS+yes}"
1126 # Extract the first word of "gcc", so it can be a program name with args.
1127 set dummy gcc; ac_word=$2
1128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1129 echo "configure:1130: checking for $ac_word" >&5
1130 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 if test -n "$CC"; then
1134 ac_cv_prog_CC="$CC" # Let the user override the test.
1136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1138 for ac_dir in $ac_dummy; do
1139 test -z "$ac_dir" && ac_dir=.
1140 if test -f $ac_dir/$ac_word; then
1149 if test -n "$CC"; then
1150 echo "$ac_t""$CC" 1>&6
1152 echo "$ac_t""no" 1>&6
1155 if test -z "$CC"; then
1156 # Extract the first word of "cc", so it can be a program name with args.
1157 set dummy cc; ac_word=$2
1158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1159 echo "configure:1160: checking for $ac_word" >&5
1160 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 if test -n "$CC"; then
1164 ac_cv_prog_CC="$CC" # Let the user override the test.
1166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1169 for ac_dir in $ac_dummy; do
1170 test -z "$ac_dir" && ac_dir=.
1171 if test -f $ac_dir/$ac_word; then
1172 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1173 ac_prog_rejected=yes
1181 if test $ac_prog_rejected = yes; then
1182 # We found a bogon in the path, so make sure we never use it.
1183 set dummy $ac_cv_prog_CC
1185 if test $# -gt 0; then
1186 # We chose a different compiler from the bogus one.
1187 # However, it has the same basename, so the bogon will be chosen
1188 # first if we set CC to just the basename; use the full file name.
1190 set dummy "$ac_dir/$ac_word" "$@"
1198 if test -n "$CC"; then
1199 echo "$ac_t""$CC" 1>&6
1201 echo "$ac_t""no" 1>&6
1204 if test -z "$CC"; then
1205 case "`uname -s`" in
1207 # Extract the first word of "cl", so it can be a program name with args.
1208 set dummy cl; ac_word=$2
1209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1210 echo "configure:1211: checking for $ac_word" >&5
1211 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 if test -n "$CC"; then
1215 ac_cv_prog_CC="$CC" # Let the user override the test.
1217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1219 for ac_dir in $ac_dummy; do
1220 test -z "$ac_dir" && ac_dir=.
1221 if test -f $ac_dir/$ac_word; then
1230 if test -n "$CC"; then
1231 echo "$ac_t""$CC" 1>&6
1233 echo "$ac_t""no" 1>&6
1238 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1241 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1242 echo "configure:1243: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1246 ac_cpp='$CPP $CPPFLAGS'
1247 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1248 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1249 cross_compiling=$ac_cv_prog_cc_cross
1251 cat > conftest.$ac_ext << EOF
1253 #line 1254 "configure"
1254 #include "confdefs.h"
1258 if { (eval echo configure:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1259 ac_cv_prog_cc_works=yes
1260 # If we can't run a trivial program, we are probably using a cross compiler.
1261 if (./conftest; exit) 2>/dev/null; then
1262 ac_cv_prog_cc_cross=no
1264 ac_cv_prog_cc_cross=yes
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1269 ac_cv_prog_cc_works=no
1273 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1274 ac_cpp='$CPP $CPPFLAGS'
1275 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1276 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1277 cross_compiling=$ac_cv_prog_cc_cross
1279 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1280 if test $ac_cv_prog_cc_works = no; then
1281 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1283 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1284 echo "configure:1285: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1285 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1286 cross_compiling=$ac_cv_prog_cc_cross
1288 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1289 echo "configure:1290: checking whether we are using GNU C" >&5
1290 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 cat > conftest.c <<EOF
1298 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1305 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1307 if test $ac_cv_prog_gcc = yes; then
1313 ac_test_CFLAGS="${CFLAGS+set}"
1314 ac_save_CFLAGS="$CFLAGS"
1316 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1317 echo "configure:1318: checking whether ${CC-cc} accepts -g" >&5
1318 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 echo 'void f(){}' > conftest.c
1322 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1331 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1332 if test "$ac_test_CFLAGS" = set; then
1333 CFLAGS="$ac_save_CFLAGS"
1334 elif test $ac_cv_prog_cc_g = yes; then
1335 if test "$GCC" = yes; then
1341 if test "$GCC" = yes; then
1349 . "$srcdir/src/template/$template" || exit
1351 if test "$has_environ_CFLAGS" = yes; then
1354 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
1357 echo "using CFLAGS=$CFLAGS"
1358 # Check if the compiler still works with the template settings
1359 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1360 echo "configure:1361: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1367 cross_compiling=$ac_cv_prog_cc_cross
1369 cat > conftest.$ac_ext << EOF
1371 #line 1372 "configure"
1372 #include "confdefs.h"
1376 if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1377 ac_cv_prog_cc_works=yes
1378 # If we can't run a trivial program, we are probably using a cross compiler.
1379 if (./conftest; exit) 2>/dev/null; then
1380 ac_cv_prog_cc_cross=no
1382 ac_cv_prog_cc_cross=yes
1385 echo "configure: failed program was:" >&5
1386 cat conftest.$ac_ext >&5
1387 ac_cv_prog_cc_works=no
1391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1392 ac_cpp='$CPP $CPPFLAGS'
1393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1394 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1395 cross_compiling=$ac_cv_prog_cc_cross
1397 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1398 if test $ac_cv_prog_cc_works = no; then
1399 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1401 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1402 echo "configure:1403: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1403 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1404 cross_compiling=$ac_cv_prog_cc_cross
1406 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1407 echo "configure:1408: checking for Cygwin environment" >&5
1408 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1418 #define __CYGWIN__ __CYGWIN32__
1423 if { (eval echo configure:1424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1427 echo "configure: failed program was:" >&5
1428 cat conftest.$ac_ext >&5
1436 echo "$ac_t""$ac_cv_cygwin" 1>&6
1438 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1439 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1440 echo "configure:1441: checking for mingw32 environment" >&5
1441 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 cat > conftest.$ac_ext <<EOF
1445 #line 1446 "configure"
1446 #include "confdefs.h"
1452 if { (eval echo configure:1453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1456 echo "configure: failed program was:" >&5
1457 cat conftest.$ac_ext >&5
1465 echo "$ac_t""$ac_cv_mingw32" 1>&6
1467 test "$ac_cv_mingw32" = yes && MINGW32=yes
1470 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1471 echo "configure:1472: checking for executable suffix" >&5
1472 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1479 echo 'int main () { return 0; }' > conftest.$ac_ext
1481 if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1482 for file in conftest.*; do
1484 *.c | *.C | *.o | *.obj) ;;
1485 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1489 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1492 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1497 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1498 echo "$ac_t""${ac_cv_exeext}" 1>&6
1501 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1502 echo "configure:1503: checking how to run the C preprocessor" >&5
1503 # On Suns, sometimes $CPP names a directory.
1504 if test -n "$CPP" && test -d "$CPP"; then
1507 if test -z "$CPP"; then
1508 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 # This must be in double quotes, not single quotes, because CPP may get
1512 # substituted into the Makefile and "${CC-cc}" will confuse make.
1514 # On the NeXT, cc -E runs the code through the compiler's parser,
1515 # not just through cpp.
1516 cat > conftest.$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1523 { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1525 if test -z "$ac_err"; then
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1532 CPP="${CC-cc} -E -traditional-cpp"
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1540 { (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1542 if test -z "$ac_err"; then
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1549 CPP="${CC-cc} -nologo -E"
1550 cat > conftest.$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1557 { (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1559 if test -z "$ac_err"; then
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1573 ac_cv_prog_CPP="$CPP"
1575 CPP="$ac_cv_prog_CPP"
1577 ac_cv_prog_CPP="$CPP"
1579 echo "$ac_t""$CPP" 1>&6
1581 if test $ac_cv_prog_gcc = yes; then
1582 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1583 echo "configure:1584: checking whether ${CC-cc} needs -traditional" >&5
1584 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 ac_pattern="Autoconf.*'x'"
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1595 egrep "$ac_pattern" >/dev/null 2>&1; then
1597 ac_cv_prog_gcc_traditional=yes
1600 ac_cv_prog_gcc_traditional=no
1605 if test $ac_cv_prog_gcc_traditional = no; then
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1613 egrep "$ac_pattern" >/dev/null 2>&1; then
1615 ac_cv_prog_gcc_traditional=yes
1622 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1623 if test $ac_cv_prog_gcc_traditional = yes; then
1624 CC="$CC -traditional"
1630 # Create compiler version string
1631 if test x"$GCC" = x"yes" ; then
1632 cc_string="GCC `${CC} --version`"
1636 cat >> confdefs.h <<EOF
1637 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1643 # Automatic dependency tracking
1645 # Check whether --enable-depend was given
1646 if test x"${enable_depend+set}" = xset; then
1647 case $enable_depend in
1655 enableval=$enable_depend
1656 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1658 esac # $enable_depend
1667 # Enable assert checks
1669 # Check whether --enable-cassert was given
1670 if test x"${enable_cassert+set}" = xset; then
1671 case $enable_cassert in
1673 cat >> confdefs.h <<\EOF
1674 #define USE_ASSERT_CHECKING 1
1682 enableval=$enable_cassert
1683 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1685 esac # $enable_cassert
1693 # Include directories
1697 # SRCH_INC comes from the template file
1698 for dir in $with_includes $SRCH_INC; do
1699 if test -d "$dir"; then
1700 INCLUDES="$INCLUDES -I$dir"
1702 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1710 # Library directories
1714 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1715 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1716 if test -d "$dir"; then
1717 LIBDIRS="$LIBDIRS -L$dir"
1719 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1728 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1729 echo "configure:1730: checking whether to build with Tcl" >&5
1730 # Check whether --with-tcl was given
1731 if test x"${with_tcl+set}" = xset; then
1741 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1748 echo "$ac_t""$with_tcl" 1>&6
1751 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1752 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1753 echo "configure:1754: checking whether to build with Tk" >&5
1754 if test "$with_tcl" = yes; then
1755 # Check whether --with-tk was given
1756 if test x"${with_tk+set}" = xset; then
1766 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1776 echo "$ac_t""$with_tk" 1>&6
1780 # We see if the path to the TCL/TK configuration scripts is specified.
1781 # This will override the use of tclsh to find the paths to search.
1783 # Check whether --with-tclconfig was given
1784 if test x"${with_tclconfig+set}" = xset; then
1785 case $with_tclconfig in
1787 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1790 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1792 esac # $with_tclconfig
1795 # We see if the path to the TK configuration scripts is specified.
1796 # This will override the use of tclsh to find the paths to search.
1798 # Check whether --with-tkconfig was given
1799 if test x"${with_tkconfig+set}" = xset; then
1800 case $with_tkconfig in
1802 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1805 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1807 esac # $with_tkconfig
1811 # Optionally build Perl modules (Pg.pm and PL/Perl)
1813 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1814 echo "configure:1815: checking whether to build Perl modules" >&5
1815 # Check whether --with-perl was given
1816 if test x"${with_perl+set}" = xset; then
1826 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1833 echo "$ac_t""$with_perl" 1>&6
1837 # Optionally build Python interface module
1839 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1840 echo "configure:1841: checking whether to build Python modules" >&5
1841 # Check whether --with-python was given
1842 if test x"${with_python+set}" = xset; then
1843 case $with_python in
1851 withval=$with_python
1852 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1859 echo "$ac_t""$with_python" 1>&6
1863 # Optionally build the Java/JDBC tools
1865 echo $ac_n "checking whether to build Java/JDBC tools""... $ac_c" 1>&6
1866 echo "configure:1867: checking whether to build Java/JDBC tools" >&5
1867 # Check whether --with-java was given
1868 if test x"${with_java+set}" = xset; then
1871 echo "$ac_t""yes" 1>&6
1873 for ac_prog in jakarta-ant ant ant.sh ant.bat
1875 # Extract the first word of "$ac_prog", so it can be a program name with args.
1876 set dummy $ac_prog; ac_word=$2
1877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1878 echo "configure:1879: checking for $ac_word" >&5
1879 if eval "test \"`echo '$''{'ac_cv_path_ANT'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1884 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
1887 ac_cv_path_ANT="$ANT" # Let the user override the test with a dos path.
1890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1892 for ac_dir in $ac_dummy; do
1893 test -z "$ac_dir" && ac_dir=.
1894 if test -f $ac_dir/$ac_word; then
1895 ac_cv_path_ANT="$ac_dir/$ac_word"
1903 ANT="$ac_cv_path_ANT"
1904 if test -n "$ANT"; then
1905 echo "$ac_t""$ANT" 1>&6
1907 echo "$ac_t""no" 1>&6
1910 test -n "$ANT" && break
1914 echo $ac_n "checking whether $ANT works""... $ac_c" 1>&6
1915 echo "configure:1916: checking whether $ANT works" >&5
1916 if eval "test \"`echo '$''{'pgac_cv_prog_ant_works'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1920 cat > conftest.java << EOF
1921 public class conftest {
1922 int testmethod(int a, int b) {
1928 cat > conftest.xml << EOF
1929 <project name="conftest" default="conftest">
1930 <target name="conftest">
1931 <javac srcdir="." includes="conftest.java">
1937 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
1938 { (eval echo configure:1939: \"$pgac_cmd\") 1>&5; (eval $pgac_cmd) 2>&5; }
1940 if test $? = 0 && test -f ./conftest.class ; then
1941 pgac_cv_prog_ant_works=yes
1943 echo "configure: failed java program was:" >&5
1944 cat conftest.java >&5
1945 echo "configure: failed build file was:" >&5
1946 cat conftest.xml >&5
1947 pgac_cv_prog_ant_works=no
1950 rm -f conftest* core core.* *.core
1954 echo "$ac_t""$pgac_cv_prog_ant_works" 1>&6
1956 if test "$pgac_cv_prog_ant_works" != yes; then
1957 { echo "configure: error: ant does not work" 1>&2; exit 1; }
1961 if test -z "$ANT"; then
1962 { echo "configure: error: Ant is required to build Java components" 1>&2; exit 1; }
1966 echo "$ac_t""no" 1>&6
1970 { echo "configure: error: no argument expected for --with-java option" 1>&2; exit 1; }
1975 echo "$ac_t""no" 1>&6
1983 # Check whether --with-krb4 was given
1984 if test x"${with_krb4+set}" = xset; then
1987 krb4_prefix=/usr/athena
1995 krb4_prefix=$withval
2002 if test "$with_krb4" = yes; then
2004 echo "$ac_t""building with Kerberos 4 support" 1>&6
2005 cat >> confdefs.h <<\EOF
2010 if test -d "$krb4_prefix/include"; then
2011 INCLUDES="$INCLUDES -I$krb4_prefix/include"
2013 if test -d "$krb4_prefix/lib"; then
2014 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
2017 krb_srvtab="/etc/srvtab"
2028 # Check whether --with-krb5 was given
2029 if test x"${with_krb5+set}" = xset; then
2032 krb5_prefix=/usr/athena
2040 krb5_prefix=$withval
2047 if test "$with_krb5" = yes; then
2049 echo "$ac_t""building with Kerberos 5 support" 1>&6
2050 cat >> confdefs.h <<\EOF
2055 if test -d "$krb5_prefix/include"; then
2056 INCLUDES="$INCLUDES -I$krb5_prefix/include"
2058 if test -d "$krb5_prefix/lib"; then
2059 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
2062 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
2070 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
2071 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
2072 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2079 # Kerberos configuration parameters
2081 # Check whether --with-krb-srvnam was given
2082 if test x"${with_krb_srvnam+set}" = xset; then
2083 case $with_krb_srvnam in
2085 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2088 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2090 esac # $with_krb_srvnam
2092 with_krb_srvnam="postgres"
2094 cat >> confdefs.h <<EOF
2095 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2103 echo $ac_n "checking whether to build with PAM support""... $ac_c" 1>&6
2104 echo "configure:2105: checking whether to build with PAM support" >&5
2105 # Check whether --with-pam was given
2106 if test x"${with_pam+set}" = xset; then
2124 if test "$with_pam" = yes; then
2126 echo "$ac_t""yes" 1>&6
2127 cat >> confdefs.h <<\EOF
2134 echo "$ac_t""no" 1>&6
2144 # Check whether --with-openssl was given
2145 if test x"${with_openssl+set}" = xset; then
2146 case $with_openssl in
2148 openssl_prefix=/usr/local/ssl
2154 withval=$with_openssl
2156 openssl_prefix=$withval
2158 esac # $with_openssl
2163 if test "$with_openssl" = yes; then
2165 echo "$ac_t""building with OpenSSL support" 1>&6
2166 cat >> confdefs.h <<\EOF
2171 if test -d "${openssl_prefix}/include" ; then
2172 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2174 if test -d "${openssl_prefix}/lib" ; then
2175 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2186 # Optionally enable the building of the ODBC driver
2190 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2191 enable_odbc=$with_odbc
2194 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2195 echo "configure:2196: checking whether to build the ODBC driver" >&5
2196 # Check whether --enable-odbc was given
2197 if test x"${enable_odbc+set}" = xset; then
2198 case $enable_odbc in
2206 enableval=$enable_odbc
2207 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2214 # Check whether --with-unixodbc was given
2215 if test x"${with_unixodbc+set}" = xset; then
2216 case $with_unixodbc in
2224 withval=$with_unixodbc
2225 { echo "configure: error: no argument expected for --with-unixodbc option" 1>&2; exit 1; }
2227 esac # $with_unixodbc
2232 # Check whether --with-iodbc was given
2233 if test x"${with_iodbc+set}" = xset; then
2243 { echo "configure: error: no argument expected for --with-iodbc option" 1>&2; exit 1; }
2250 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
2251 { echo "configure: error: ODBC driver cannot be built for both unixODBC and iODBC" 1>&2; exit 1; }
2253 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
2256 case $enable_odbc:$with_unixodbc:$with_iodbc in
2257 yes:no:no) echo "$ac_t""yes (stand-alone)" 1>&6;;
2258 yes:yes:no) echo "$ac_t""yes (unixODBC)" 1>&6; cat >> confdefs.h <<\EOF
2259 #define WITH_UNIXODBC 1
2262 yes:no:yes) echo "$ac_t""yes (iODBC)" 1>&6; cat >> confdefs.h <<\EOF
2263 #define WITH_IODBC 1
2266 no:*) echo "$ac_t""no" 1>&6;;
2273 # Allow for overriding the default location of the odbcinst.ini
2274 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2275 # Check whether --with-odbcinst was given
2276 if test x"${with_odbcinst+set}" = xset; then
2277 case $with_odbcinst in
2279 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2282 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2285 withval=$with_odbcinst
2286 odbcinst_ini_dir=$withval
2288 esac # $with_odbcinst
2290 odbcinst_ini_dir="\${sysconfdir}"
2296 # Assume system is ELF if it predefines __ELF__ as 1,
2297 # otherwise believe host_os based default.
2299 freebsd1*|freebsd2*) elf=no;;
2300 freebsd3*|freebsd4*) elf=yes;;
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2312 egrep "yes" >/dev/null 2>&1; then
2317 if test "X$elf" = "Xyes" ; then
2330 # Optionally build C++ code (i.e., libpq++)
2332 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2333 echo "configure:2334: checking whether to build C++ modules" >&5
2334 # Check whether --with-CXX was given
2335 if test x"${with_CXX+set}" = xset; then
2353 if test "$with_CXX" = yes; then
2355 echo "$ac_t""yes" 1>&6
2357 # If the user has specified CXXFLAGS in the environment, leave it
2358 # alone, else use a default.
2360 has_environ_CXXFLAGS="${CXXFLAGS+yes}"
2361 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2363 # Extract the first word of "$ac_prog", so it can be a program name with args.
2364 set dummy $ac_prog; ac_word=$2
2365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_word" >&5
2367 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 if test -n "$CXX"; then
2371 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2375 for ac_dir in $ac_dummy; do
2376 test -z "$ac_dir" && ac_dir=.
2377 if test -f $ac_dir/$ac_word; then
2378 ac_cv_prog_CXX="$ac_prog"
2385 CXX="$ac_cv_prog_CXX"
2386 if test -n "$CXX"; then
2387 echo "$ac_t""$CXX" 1>&6
2389 echo "$ac_t""no" 1>&6
2392 test -n "$CXX" && break
2394 test -n "$CXX" || CXX="gcc"
2397 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2398 echo "configure:2399: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2401 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2402 ac_cpp='$CXXCPP $CPPFLAGS'
2403 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2404 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2405 cross_compiling=$ac_cv_prog_cxx_cross
2407 cat > conftest.$ac_ext << EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2412 int main(){return(0);}
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2415 ac_cv_prog_cxx_works=yes
2416 # If we can't run a trivial program, we are probably using a cross compiler.
2417 if (./conftest; exit) 2>/dev/null; then
2418 ac_cv_prog_cxx_cross=no
2420 ac_cv_prog_cxx_cross=yes
2423 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 ac_cv_prog_cxx_works=no
2429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2433 cross_compiling=$ac_cv_prog_cc_cross
2435 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2436 if test $ac_cv_prog_cxx_works = no; then
2437 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2439 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2440 echo "configure:2441: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2441 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2442 cross_compiling=$ac_cv_prog_cxx_cross
2444 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2445 echo "configure:2446: checking whether we are using GNU C++" >&5
2446 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 cat > conftest.C <<EOF
2454 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2461 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2463 if test $ac_cv_prog_gxx = yes; then
2469 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2470 ac_save_CXXFLAGS="$CXXFLAGS"
2472 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2473 echo "configure:2474: checking whether ${CXX-g++} accepts -g" >&5
2474 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 echo 'void f(){}' > conftest.cc
2478 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2479 ac_cv_prog_cxx_g=yes
2487 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2488 if test "$ac_test_CXXFLAGS" = set; then
2489 CXXFLAGS="$ac_save_CXXFLAGS"
2490 elif test $ac_cv_prog_cxx_g = yes; then
2491 if test "$GXX" = yes; then
2497 if test "$GXX" = yes; then
2504 if test "$has_environ_CXXFLAGS" != yes; then
2505 if test "$GXX" = yes; then
2509 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
2510 unixware) CXXFLAGS='-O' ;;
2515 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
2516 CXXFLAGS="$CXXFLAGS -g"
2518 echo "using CXXFLAGS=$CXXFLAGS"
2520 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2521 echo "configure:2522: checking how to run the C++ preprocessor" >&5
2522 if test -z "$CXXCPP"; then
2523 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2528 ac_cpp='$CXXCPP $CPPFLAGS'
2529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2531 cross_compiling=$ac_cv_prog_cxx_cross
2532 CXXCPP="${CXX-g++} -E"
2533 cat > conftest.$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2539 { (eval echo configure:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2541 if test -z "$ac_err"; then
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2551 ac_cv_prog_CXXCPP="$CXXCPP"
2553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2557 cross_compiling=$ac_cv_prog_cc_cross
2560 CXXCPP="$ac_cv_prog_CXXCPP"
2561 echo "$ac_t""$CXXCPP" 1>&6
2566 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2567 ac_cpp='$CXXCPP $CPPFLAGS'
2568 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2569 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2570 cross_compiling=$ac_cv_prog_cxx_cross
2572 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2573 echo $ac_n "checking for string""... $ac_c" 1>&6
2574 echo "configure:2575: checking for string" >&5
2575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2584 { (eval echo configure:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2586 if test -z "$ac_err"; then
2588 eval "ac_cv_header_$ac_safe=yes"
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2594 eval "ac_cv_header_$ac_safe=no"
2598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2599 echo "$ac_t""yes" 1>&6
2600 cat >> confdefs.h <<\EOF
2601 #define HAVE_CXX_STRING_HEADER 1
2605 echo "$ac_t""no" 1>&6
2609 if test x"$ac_cv_header_string" != xyes ; then
2610 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2611 echo "configure:2612: checking for class string in <string.h>" >&5
2612 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2615 cat > conftest.$ac_ext <<EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2626 if { (eval echo configure:2627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2628 pgac_cv_class_string_in_string_h=yes
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2633 pgac_cv_class_string_in_string_h=no
2638 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2640 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2641 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2645 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2648 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2649 cross_compiling=$ac_cv_prog_cc_cross
2652 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2653 echo "configure:2654: checking for namespace std in C++" >&5
2654 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2660 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2661 ac_cpp='$CXXCPP $CPPFLAGS'
2662 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2663 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2664 cross_compiling=$ac_cv_prog_cxx_cross
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2671 #ifdef HAVE_CXX_STRING_HEADER
2674 using namespace std;
2680 if { (eval echo configure:2681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2682 pgac_cv_cxx_namespace_std=yes
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2687 pgac_cv_cxx_namespace_std=no
2691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2695 cross_compiling=$ac_cv_prog_cc_cross
2699 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2701 if test $pgac_cv_cxx_namespace_std = yes ; then
2702 cat >> confdefs.h <<\EOF
2703 #define HAVE_NAMESPACE_STD 1
2709 echo "$ac_t""no" 1>&6
2714 CPPFLAGS="$CPPFLAGS $INCLUDES"
2715 LDFLAGS="$LDFLAGS $LIBDIRS"
2717 echo "using CPPFLAGS=$CPPFLAGS"
2718 echo "using LDFLAGS=$LDFLAGS"
2721 for ac_prog in mawk gawk nawk awk
2723 # Extract the first word of "$ac_prog", so it can be a program name with args.
2724 set dummy $ac_prog; ac_word=$2
2725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2726 echo "configure:2727: checking for $ac_word" >&5
2727 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 if test -n "$AWK"; then
2731 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2735 for ac_dir in $ac_dummy; do
2736 test -z "$ac_dir" && ac_dir=.
2737 if test -f $ac_dir/$ac_word; then
2738 ac_cv_prog_AWK="$ac_prog"
2745 AWK="$ac_cv_prog_AWK"
2746 if test -n "$AWK"; then
2747 echo "$ac_t""$AWK" 1>&6
2749 echo "$ac_t""no" 1>&6
2752 test -n "$AWK" && break
2755 echo $ac_n "checking for flex""... $ac_c" 1>&6
2756 echo "configure:2757: checking for flex" >&5
2757 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 # Let the user override the test
2761 if test -n "$FLEX"; then
2762 pgac_cv_path_flex=$FLEX
2766 for pgac_dir in $PATH; do
2767 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2770 for pgac_prog in flex lex; do
2771 pgac_candidate="$pgac_dir/$pgac_prog"
2772 if test -f "$pgac_candidate" \
2773 && $pgac_candidate --version </dev/null >/dev/null 2>&1
2775 echo '%%' > conftest.l
2776 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2777 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2778 pgac_broken_flex=$pgac_candidate
2782 pgac_cv_path_flex=$pgac_candidate
2790 : ${pgac_cv_path_flex=no}
2795 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2796 if test x"$pgac_cv_path_flex" = x"no"; then
2797 if test -n "$pgac_broken_flex"; then
2798 echo "configure: warning:
2799 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2800 *** should get version 2.5.4 or later." 1>&2
2803 echo "configure: warning:
2804 *** Without Flex you will not be able to build PostgreSQL from CVS or
2805 *** change any of the scanner definition files. You can obtain Flex from
2806 *** a GNU mirror site. (If you are using the official distribution of
2807 *** PostgreSQL then you do not need to worry about this because the Flex
2808 *** output is pre-generated.)" 1>&2
2811 if test x"$pgac_cv_path_flex" = x"no"; then
2814 FLEX=$pgac_cv_path_flex
2820 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2821 echo "configure:2822: checking whether ln -s works" >&5
2822 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2826 if ln -s X conftestdata 2>/dev/null
2829 ac_cv_prog_LN_S="ln -s"
2834 LN_S="$ac_cv_prog_LN_S"
2835 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2836 echo "$ac_t""yes" 1>&6
2838 echo "$ac_t""no" 1>&6
2841 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2842 if test "${with_gnu_ld+set}" = set; then
2843 withval="$with_gnu_ld"
2844 test "$withval" = no || with_gnu_ld=yes
2850 if test "$ac_cv_prog_gcc" = yes; then
2851 # Check if gcc -print-prog-name=ld gives a path.
2852 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2853 echo "configure:2854: checking for ld used by GCC" >&5
2856 # gcc leaves a trailing carriage return which upsets mingw
2857 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2859 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2862 # Accept absolute paths.
2863 [\\/]* | [A-Za-z]:[\\/]*)
2864 re_direlt='/[^/][^/]*/\.\./'
2865 # Canonicalize the path of ld
2866 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2867 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2868 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2870 test -z "$LD" && LD="$ac_prog"
2873 # If it fails, then pretend we aren't using GCC.
2877 # If it is relative, then search for the first ld in PATH.
2881 elif test "$with_gnu_ld" = yes; then
2882 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2883 echo "configure:2884: checking for GNU ld" >&5
2885 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2886 echo "configure:2887: checking for non-GNU ld" >&5
2888 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 if test -z "$LD"; then
2892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2893 for ac_dir in $PATH; do
2894 test -z "$ac_dir" && ac_dir=.
2895 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2896 ac_cv_path_LD="$ac_dir/$ac_prog"
2897 # Check to see if the program is GNU ld. I'd rather use --version,
2898 # but apparently some GNU ld's only accept -v.
2899 # Break only if it was the GNU/non-GNU ld that we prefer.
2900 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2901 test "$with_gnu_ld" != no && break
2903 test "$with_gnu_ld" != yes && break
2909 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2914 if test -n "$LD"; then
2915 echo "$ac_t""$LD" 1>&6
2917 echo "$ac_t""no" 1>&6
2919 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2920 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2921 echo "configure:2922: checking if the linker ($LD) is GNU ld" >&5
2922 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2925 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2926 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2927 ac_cv_prog_gnu_ld=yes
2929 ac_cv_prog_gnu_ld=no
2933 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2934 with_gnu_ld=$ac_cv_prog_gnu_ld
2939 case $host_os in sysv5*)
2940 echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
2941 echo "configure:2942: checking whether ld -R works" >&5
2942 if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2946 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2955 if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2957 pgac_cv_prog_ld_R=yes
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2962 pgac_cv_prog_ld_R=no
2965 LDFLAGS=$pgac_save_LDFLAGS
2969 echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
2970 ld_R_works=$pgac_cv_prog_ld_R
2973 # Extract the first word of "ranlib", so it can be a program name with args.
2974 set dummy ranlib; ac_word=$2
2975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2976 echo "configure:2977: checking for $ac_word" >&5
2977 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 if test -n "$RANLIB"; then
2981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2985 for ac_dir in $ac_dummy; do
2986 test -z "$ac_dir" && ac_dir=.
2987 if test -f $ac_dir/$ac_word; then
2988 ac_cv_prog_RANLIB="ranlib"
2993 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2996 RANLIB="$ac_cv_prog_RANLIB"
2997 if test -n "$RANLIB"; then
2998 echo "$ac_t""$RANLIB" 1>&6
3000 echo "$ac_t""no" 1>&6
3003 for ac_prog in lorder
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3008 echo "configure:3009: checking for $ac_word" >&5
3009 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
3010 echo $ac_n "(cached) $ac_c" 1>&6
3012 if test -n "$LORDER"; then
3013 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3017 for ac_dir in $ac_dummy; do
3018 test -z "$ac_dir" && ac_dir=.
3019 if test -f $ac_dir/$ac_word; then
3020 ac_cv_prog_LORDER="$ac_prog"
3027 LORDER="$ac_cv_prog_LORDER"
3028 if test -n "$LORDER"; then
3029 echo "$ac_t""$LORDER" 1>&6
3031 echo "$ac_t""no" 1>&6
3034 test -n "$LORDER" && break
3037 # Extract the first word of "tar", so it can be a program name with args.
3038 set dummy tar; ac_word=$2
3039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3040 echo "configure:3041: checking for $ac_word" >&5
3041 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3046 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3049 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
3052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3054 for ac_dir in $ac_dummy; do
3055 test -z "$ac_dir" && ac_dir=.
3056 if test -f $ac_dir/$ac_word; then
3057 ac_cv_path_TAR="$ac_dir/$ac_word"
3065 TAR="$ac_cv_path_TAR"
3066 if test -n "$TAR"; then
3067 echo "$ac_t""$TAR" 1>&6
3069 echo "$ac_t""no" 1>&6
3073 for ac_prog in 'bison -y'
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_word" >&5
3079 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 if test -n "$YACC"; then
3083 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3087 for ac_dir in $ac_dummy; do
3088 test -z "$ac_dir" && ac_dir=.
3089 if test -f $ac_dir/$ac_word; then
3090 ac_cv_prog_YACC="$ac_prog"
3097 YACC="$ac_cv_prog_YACC"
3098 if test -n "$YACC"; then
3099 echo "$ac_t""$YACC" 1>&6
3101 echo "$ac_t""no" 1>&6
3104 test -n "$YACC" && break
3107 if test -z "$YACC"; then
3108 echo "configure: warning:
3109 *** Without Bison you will not be able to build PostgreSQL from CVS or
3110 *** change any of the parser definition files. You can obtain Bison from
3111 *** a GNU mirror site. (If you are using the official distribution of
3112 *** PostgreSQL then you do not need to worry about this because the Bison
3113 *** output is pre-generated.) To use a different yacc program (possible,
3114 *** but not recommended), set the environment variable YACC before running
3115 *** 'configure'." 1>&2
3119 if test "$with_tk" = yes; then
3120 # Extract the first word of "wish", so it can be a program name with args.
3121 set dummy wish; ac_word=$2
3122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3123 echo "configure:3124: checking for $ac_word" >&5
3124 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3125 echo $ac_n "(cached) $ac_c" 1>&6
3129 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3132 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3137 for ac_dir in $ac_dummy; do
3138 test -z "$ac_dir" && ac_dir=.
3139 if test -f $ac_dir/$ac_word; then
3140 ac_cv_path_WISH="$ac_dir/$ac_word"
3148 WISH="$ac_cv_path_WISH"
3149 if test -n "$WISH"; then
3150 echo "$ac_t""$WISH" 1>&6
3152 echo "$ac_t""no" 1>&6
3155 test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
3158 # Extract the first word of "perl", so it can be a program name with args.
3159 set dummy perl; ac_word=$2
3160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3161 echo "configure:3162: checking for $ac_word" >&5
3162 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3167 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3170 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3175 for ac_dir in $ac_dummy; do
3176 test -z "$ac_dir" && ac_dir=.
3177 if test -f $ac_dir/$ac_word; then
3178 ac_cv_path_PERL="$ac_dir/$ac_word"
3186 PERL="$ac_cv_path_PERL"
3187 if test -n "$PERL"; then
3188 echo "$ac_t""$PERL" 1>&6
3190 echo "$ac_t""no" 1>&6
3193 if test "$with_perl" = yes; then
3196 echo $ac_n "checking Perl installation directories""... $ac_c" 1>&6
3197 echo "configure:3198: checking Perl installation directories" >&5
3199 # These are the ones we currently need. Others can be added easily.
3200 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
3201 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
3202 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
3205 echo "$ac_t""done" 1>&6
3209 if test "$with_python" = yes; then
3210 # Extract the first word of "python", so it can be a program name with args.
3211 set dummy python; ac_word=$2
3212 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3213 echo "configure:3214: checking for $ac_word" >&5
3214 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3219 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3222 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
3225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3227 for ac_dir in $ac_dummy; do
3228 test -z "$ac_dir" && ac_dir=.
3229 if test -f $ac_dir/$ac_word; then
3230 ac_cv_path_PYTHON="$ac_dir/$ac_word"
3238 PYTHON="$ac_cv_path_PYTHON"
3239 if test -n "$PYTHON"; then
3240 echo "$ac_t""$PYTHON" 1>&6
3242 echo "$ac_t""no" 1>&6
3245 if test x"$PYTHON" = x""; then
3246 { echo "configure: error: Python not found" 1>&2; exit 1; }
3250 echo $ac_n "checking Python installation directories""... $ac_c" 1>&6
3251 echo "configure:3252: checking Python installation directories" >&5
3252 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
3253 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
3254 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
3255 python_configdir="${python_execprefix}/lib/python${python_version}/config"
3256 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
3257 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
3258 python_includespec="-I${python_prefix}/include/python${python_version}"
3259 if test "$python_prefix" != "$python_execprefix"; then
3260 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
3263 # This should be enough of a message.
3264 if test "$python_prefix" != "$python_execprefix"; then
3265 echo "$ac_t""$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" 1>&6
3267 echo "$ac_t""$python_prefix/lib/python${python_version}" 1>&6
3274 echo $ac_n "checking how to link an embedded Python application""... $ac_c" 1>&6
3275 echo "configure:3276: checking how to link an embedded Python application" >&5
3277 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3278 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
3279 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
3280 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3281 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3283 pgac_tab=" " # tab character
3284 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
3286 echo "$ac_t""${python_libspec}" 1>&6
3297 echo $ac_n "checking for readline""... $ac_c" 1>&6
3298 echo "configure:3299: checking for readline" >&5
3300 if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 pgac_cv_check_readline=no
3304 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3305 for pgac_rllib in -lreadline -ledit ; do
3306 pgac_save_LIBS=$LIBS
3307 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 /* Override any gcc2 internal prototype to avoid an error. */
3312 /* We use char because int might match the return type of a gcc2
3313 builtin and then its argument prototype would still apply. */
3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3323 # NetBSD and OpenBSD have a broken linker that does not
3324 # recognize dependent libraries
3325 case $host_os in netbsd* | openbsd* )
3328 *) pgac_lib=" -lcurses" ;;
3332 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
3336 echo "configure: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3340 LIBS=$pgac_save_LIBS
3343 LIBS=$pgac_save_LIBS
3347 if test "$pgac_cv_check_readline" != no ; then
3348 cat >> confdefs.h <<\EOF
3349 #define HAVE_LIBREADLINE 1
3352 LIBS="$pgac_cv_check_readline $LIBS"
3353 echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
3355 echo "$ac_t""no" 1>&6
3358 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3359 echo "configure:3360: checking for library containing using_history" >&5
3360 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 ac_func_search_save_LIBS="$LIBS"
3364 ac_cv_search_using_history="no"
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 /* Override any gcc2 internal prototype to avoid an error. */
3369 /* We use char because int might match the return type of a gcc2
3370 builtin and then its argument prototype would still apply. */
3371 char using_history();
3377 if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3379 ac_cv_search_using_history="none required"
3381 echo "configure: failed program was:" >&5
3382 cat conftest.$ac_ext >&5
3385 test "$ac_cv_search_using_history" = "no" && for i in history; do
3386 LIBS="-l$i $ac_func_search_save_LIBS"
3387 cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 /* Override any gcc2 internal prototype to avoid an error. */
3391 /* We use char because int might match the return type of a gcc2
3392 builtin and then its argument prototype would still apply. */
3393 char using_history();
3399 if { (eval echo configure:3400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3401 ac_cv_search_using_history="-l$i"
3404 echo "configure: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3409 LIBS="$ac_func_search_save_LIBS"
3412 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3413 if test "$ac_cv_search_using_history" != "no"; then
3414 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3415 cat >> confdefs.h <<\EOF
3416 #define HAVE_HISTORY_FUNCTIONS 1
3423 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3425 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3426 echo "configure:3427: checking for main in -lbsd" >&5
3427 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3431 ac_save_LIBS="$LIBS"
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3441 if { (eval echo configure:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3443 eval "ac_cv_lib_$ac_lib_var=yes"
3445 echo "configure: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3448 eval "ac_cv_lib_$ac_lib_var=no"
3451 LIBS="$ac_save_LIBS"
3454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3455 echo "$ac_t""yes" 1>&6
3456 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3457 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3458 cat >> confdefs.h <<EOF
3459 #define $ac_tr_lib 1
3465 echo "$ac_t""no" 1>&6
3469 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3470 echo "configure:3471: checking for setproctitle in -lutil" >&5
3471 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3475 ac_save_LIBS="$LIBS"
3477 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 /* Override any gcc2 internal prototype to avoid an error. */
3481 /* We use char because int might match the return type of a gcc2
3482 builtin and then its argument prototype would still apply. */
3483 char setproctitle();
3489 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3491 eval "ac_cv_lib_$ac_lib_var=yes"
3493 echo "configure: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3496 eval "ac_cv_lib_$ac_lib_var=no"
3499 LIBS="$ac_save_LIBS"
3502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3503 echo "$ac_t""yes" 1>&6
3504 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3505 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3506 cat >> confdefs.h <<EOF
3507 #define $ac_tr_lib 1
3513 echo "$ac_t""no" 1>&6
3516 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3517 echo "configure:3518: checking for main in -lm" >&5
3518 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 ac_save_LIBS="$LIBS"
3524 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3532 if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3534 eval "ac_cv_lib_$ac_lib_var=yes"
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3539 eval "ac_cv_lib_$ac_lib_var=no"
3542 LIBS="$ac_save_LIBS"
3545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3547 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3549 cat >> confdefs.h <<EOF
3550 #define $ac_tr_lib 1
3556 echo "$ac_t""no" 1>&6
3559 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3560 echo "configure:3561: checking for main in -ldl" >&5
3561 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 ac_save_LIBS="$LIBS"
3567 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3575 if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3577 eval "ac_cv_lib_$ac_lib_var=yes"
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3582 eval "ac_cv_lib_$ac_lib_var=no"
3585 LIBS="$ac_save_LIBS"
3588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3589 echo "$ac_t""yes" 1>&6
3590 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3591 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3592 cat >> confdefs.h <<EOF
3593 #define $ac_tr_lib 1
3599 echo "$ac_t""no" 1>&6
3602 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3603 echo "configure:3604: checking for main in -lsocket" >&5
3604 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3608 ac_save_LIBS="$LIBS"
3609 LIBS="-lsocket $LIBS"
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3618 if { (eval echo configure:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3620 eval "ac_cv_lib_$ac_lib_var=yes"
3622 echo "configure: failed program was:" >&5
3623 cat conftest.$ac_ext >&5
3625 eval "ac_cv_lib_$ac_lib_var=no"
3628 LIBS="$ac_save_LIBS"
3631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3632 echo "$ac_t""yes" 1>&6
3633 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3634 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3635 cat >> confdefs.h <<EOF
3636 #define $ac_tr_lib 1
3639 LIBS="-lsocket $LIBS"
3642 echo "$ac_t""no" 1>&6
3645 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3646 echo "configure:3647: checking for main in -lnsl" >&5
3647 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3651 ac_save_LIBS="$LIBS"
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3663 eval "ac_cv_lib_$ac_lib_var=yes"
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3668 eval "ac_cv_lib_$ac_lib_var=no"
3671 LIBS="$ac_save_LIBS"
3674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3675 echo "$ac_t""yes" 1>&6
3676 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3677 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3678 cat >> confdefs.h <<EOF
3679 #define $ac_tr_lib 1
3685 echo "$ac_t""no" 1>&6
3688 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3689 echo "configure:3690: checking for main in -lipc" >&5
3690 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3694 ac_save_LIBS="$LIBS"
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3704 if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3706 eval "ac_cv_lib_$ac_lib_var=yes"
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3711 eval "ac_cv_lib_$ac_lib_var=no"
3714 LIBS="$ac_save_LIBS"
3717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3718 echo "$ac_t""yes" 1>&6
3719 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3720 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3721 cat >> confdefs.h <<EOF
3722 #define $ac_tr_lib 1
3728 echo "$ac_t""no" 1>&6
3731 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3732 echo "configure:3733: checking for main in -lIPC" >&5
3733 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3737 ac_save_LIBS="$LIBS"
3739 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3747 if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3749 eval "ac_cv_lib_$ac_lib_var=yes"
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3754 eval "ac_cv_lib_$ac_lib_var=no"
3757 LIBS="$ac_save_LIBS"
3760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3761 echo "$ac_t""yes" 1>&6
3762 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3763 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3764 cat >> confdefs.h <<EOF
3765 #define $ac_tr_lib 1
3771 echo "$ac_t""no" 1>&6
3774 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3775 echo "configure:3776: checking for main in -llc" >&5
3776 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 ac_save_LIBS="$LIBS"
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3792 eval "ac_cv_lib_$ac_lib_var=yes"
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3797 eval "ac_cv_lib_$ac_lib_var=no"
3800 LIBS="$ac_save_LIBS"
3803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3804 echo "$ac_t""yes" 1>&6
3805 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3806 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3807 cat >> confdefs.h <<EOF
3808 #define $ac_tr_lib 1
3814 echo "$ac_t""no" 1>&6
3817 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3818 echo "configure:3819: checking for main in -ldld" >&5
3819 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3820 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3823 ac_save_LIBS="$LIBS"
3825 cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3833 if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3835 eval "ac_cv_lib_$ac_lib_var=yes"
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3840 eval "ac_cv_lib_$ac_lib_var=no"
3843 LIBS="$ac_save_LIBS"
3846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3847 echo "$ac_t""yes" 1>&6
3848 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3849 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3850 cat >> confdefs.h <<EOF
3851 #define $ac_tr_lib 1
3857 echo "$ac_t""no" 1>&6
3860 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3861 echo "configure:3862: checking for main in -lld" >&5
3862 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 ac_save_LIBS="$LIBS"
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3878 eval "ac_cv_lib_$ac_lib_var=yes"
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3883 eval "ac_cv_lib_$ac_lib_var=no"
3886 LIBS="$ac_save_LIBS"
3889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3891 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3892 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3893 cat >> confdefs.h <<EOF
3894 #define $ac_tr_lib 1
3900 echo "$ac_t""no" 1>&6
3903 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3904 echo "configure:3905: checking for main in -lcompat" >&5
3905 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 ac_save_LIBS="$LIBS"
3910 LIBS="-lcompat $LIBS"
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3921 eval "ac_cv_lib_$ac_lib_var=yes"
3923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
3926 eval "ac_cv_lib_$ac_lib_var=no"
3929 LIBS="$ac_save_LIBS"
3932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3933 echo "$ac_t""yes" 1>&6
3934 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3935 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3936 cat >> confdefs.h <<EOF
3937 #define $ac_tr_lib 1
3940 LIBS="-lcompat $LIBS"
3943 echo "$ac_t""no" 1>&6
3946 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3947 echo "configure:3948: checking for main in -lBSD" >&5
3948 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 ac_save_LIBS="$LIBS"
3954 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3962 if { (eval echo configure:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3964 eval "ac_cv_lib_$ac_lib_var=yes"
3966 echo "configure: failed program was:" >&5
3967 cat conftest.$ac_ext >&5
3969 eval "ac_cv_lib_$ac_lib_var=no"
3972 LIBS="$ac_save_LIBS"
3975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3976 echo "$ac_t""yes" 1>&6
3977 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3978 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3979 cat >> confdefs.h <<EOF
3980 #define $ac_tr_lib 1
3986 echo "$ac_t""no" 1>&6
3989 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3990 echo "configure:3991: checking for main in -lgen" >&5
3991 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3995 ac_save_LIBS="$LIBS"
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4005 if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4007 eval "ac_cv_lib_$ac_lib_var=yes"
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4012 eval "ac_cv_lib_$ac_lib_var=no"
4015 LIBS="$ac_save_LIBS"
4018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4019 echo "$ac_t""yes" 1>&6
4020 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4021 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4022 cat >> confdefs.h <<EOF
4023 #define $ac_tr_lib 1
4029 echo "$ac_t""no" 1>&6
4032 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
4033 echo "configure:4034: checking for main in -lPW" >&5
4034 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
4035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4038 ac_save_LIBS="$LIBS"
4040 cat > conftest.$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4048 if { (eval echo configure:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4050 eval "ac_cv_lib_$ac_lib_var=yes"
4052 echo "configure: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4055 eval "ac_cv_lib_$ac_lib_var=no"
4058 LIBS="$ac_save_LIBS"
4061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4062 echo "$ac_t""yes" 1>&6
4063 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4064 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4065 cat >> confdefs.h <<EOF
4066 #define $ac_tr_lib 1
4072 echo "$ac_t""no" 1>&6
4075 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
4076 echo "configure:4077: checking for main in -lresolv" >&5
4077 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
4078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4079 echo $ac_n "(cached) $ac_c" 1>&6
4081 ac_save_LIBS="$LIBS"
4082 LIBS="-lresolv $LIBS"
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 eval "ac_cv_lib_$ac_lib_var=yes"
4095 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4098 eval "ac_cv_lib_$ac_lib_var=no"
4101 LIBS="$ac_save_LIBS"
4104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4107 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4108 cat >> confdefs.h <<EOF
4109 #define $ac_tr_lib 1
4112 LIBS="-lresolv $LIBS"
4115 echo "$ac_t""no" 1>&6
4119 echo $ac_n "checking for main in -lunix""... $ac_c" 1>&6
4120 echo "configure:4121: checking for main in -lunix" >&5
4121 ac_lib_var=`echo unix'_'main | sed 'y%./+-%__p_%'`
4122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4123 echo $ac_n "(cached) $ac_c" 1>&6
4125 ac_save_LIBS="$LIBS"
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4135 if { (eval echo configure:4136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4137 eval "ac_cv_lib_$ac_lib_var=yes"
4139 echo "configure: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4142 eval "ac_cv_lib_$ac_lib_var=no"
4145 LIBS="$ac_save_LIBS"
4148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4149 echo "$ac_t""yes" 1>&6
4150 ac_tr_lib=HAVE_LIB`echo [unix] | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4151 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4152 cat >> confdefs.h <<EOF
4153 #define $ac_tr_lib 1
4159 echo "$ac_t""no" 1>&6
4163 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4164 echo "configure:4165: checking for library containing crypt" >&5
4165 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4168 ac_func_search_save_LIBS="$LIBS"
4169 ac_cv_search_crypt="no"
4170 cat > conftest.$ac_ext <<EOF
4171 #line 4172 "configure"
4172 #include "confdefs.h"
4173 /* Override any gcc2 internal prototype to avoid an error. */
4174 /* We use char because int might match the return type of a gcc2
4175 builtin and then its argument prototype would still apply. */
4182 if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4184 ac_cv_search_crypt="none required"
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4190 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4191 LIBS="-l$i $ac_func_search_save_LIBS"
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4195 /* Override any gcc2 internal prototype to avoid an error. */
4196 /* We use char because int might match the return type of a gcc2
4197 builtin and then its argument prototype would still apply. */
4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4206 ac_cv_search_crypt="-l$i"
4209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4214 LIBS="$ac_func_search_save_LIBS"
4217 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4218 if test "$ac_cv_search_crypt" != "no"; then
4219 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4225 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4226 echo "configure:4227: checking for __inet_ntoa in -lbind" >&5
4227 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 ac_save_LIBS="$LIBS"
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4236 /* Override any gcc2 internal prototype to avoid an error. */
4237 /* We use char because int might match the return type of a gcc2
4238 builtin and then its argument prototype would still apply. */
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4247 eval "ac_cv_lib_$ac_lib_var=yes"
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 eval "ac_cv_lib_$ac_lib_var=no"
4255 LIBS="$ac_save_LIBS"
4258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4259 echo "$ac_t""yes" 1>&6
4260 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4262 cat >> confdefs.h <<EOF
4263 #define $ac_tr_lib 1
4269 echo "$ac_t""no" 1>&6
4272 # Only consider libz to be present if we find <zlib.h> as well;
4273 # furthermore, check that <zlib.h> defines z_streamp (versions before
4274 # about 1.0.4 did not). While we could work around the lack of z_streamp,
4275 # it seems unwise to encourage people to use such old zlib versions...
4276 cat > conftest.$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4282 egrep "z_streamp" >/dev/null 2>&1; then
4285 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4286 echo "configure:4287: checking for inflate in -lz" >&5
4287 ac_lib_var=`echo z'_'inflate | 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"
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 z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4321 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4322 cat >> confdefs.h <<EOF
4323 #define $ac_tr_lib 1
4329 echo "$ac_t""no" 1>&6
4338 echo $ac_n "checking for library containing fdatasync""... $ac_c" 1>&6
4339 echo "configure:4340: checking for library containing fdatasync" >&5
4340 if eval "test \"`echo '$''{'ac_cv_search_fdatasync'+set}'`\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4343 ac_func_search_save_LIBS="$LIBS"
4344 ac_cv_search_fdatasync="no"
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 /* Override any gcc2 internal prototype to avoid an error. */
4349 /* We use char because int might match the return type of a gcc2
4350 builtin and then its argument prototype would still apply. */
4357 if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4359 ac_cv_search_fdatasync="none required"
4361 echo "configure: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4365 test "$ac_cv_search_fdatasync" = "no" && for i in rt posix4; do
4366 LIBS="-l$i $ac_func_search_save_LIBS"
4367 cat > conftest.$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4370 /* Override any gcc2 internal prototype to avoid an error. */
4371 /* We use char because int might match the return type of a gcc2
4372 builtin and then its argument prototype would still apply. */
4379 if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4381 ac_cv_search_fdatasync="-l$i"
4384 echo "configure: failed program was:" >&5
4385 cat conftest.$ac_ext >&5
4389 LIBS="$ac_func_search_save_LIBS"
4392 echo "$ac_t""$ac_cv_search_fdatasync" 1>&6
4393 if test "$ac_cv_search_fdatasync" != "no"; then
4394 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
4400 if test "$with_krb4" = yes ; then
4401 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4402 echo "configure:4403: checking for des_encrypt in -ldes" >&5
4403 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 ac_save_LIBS="$LIBS"
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* Override any gcc2 internal prototype to avoid an error. */
4413 /* We use char because int might match the return type of a gcc2
4414 builtin and then its argument prototype would still apply. */
4421 if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4423 eval "ac_cv_lib_$ac_lib_var=yes"
4425 echo "configure: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4428 eval "ac_cv_lib_$ac_lib_var=no"
4431 LIBS="$ac_save_LIBS"
4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4436 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4437 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4438 cat >> confdefs.h <<EOF
4439 #define $ac_tr_lib 1
4445 echo "$ac_t""no" 1>&6
4446 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4449 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4450 echo "configure:4451: checking for krb_sendauth in -lkrb" >&5
4451 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4453 echo $ac_n "(cached) $ac_c" 1>&6
4455 ac_save_LIBS="$LIBS"
4457 cat > conftest.$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4460 /* Override any gcc2 internal prototype to avoid an error. */
4461 /* We use char because int might match the return type of a gcc2
4462 builtin and then its argument prototype would still apply. */
4463 char krb_sendauth();
4469 if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4471 eval "ac_cv_lib_$ac_lib_var=yes"
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4476 eval "ac_cv_lib_$ac_lib_var=no"
4479 LIBS="$ac_save_LIBS"
4482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4483 echo "$ac_t""yes" 1>&6
4484 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4485 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4486 cat >> confdefs.h <<EOF
4487 #define $ac_tr_lib 1
4493 echo "$ac_t""no" 1>&6
4494 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4499 if test "$with_krb5" = yes ; then
4500 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4501 echo "configure:4502: checking for com_err in -lcom_err" >&5
4502 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 ac_save_LIBS="$LIBS"
4507 LIBS="-lcom_err $LIBS"
4508 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4511 /* Override any gcc2 internal prototype to avoid an error. */
4512 /* We use char because int might match the return type of a gcc2
4513 builtin and then its argument prototype would still apply. */
4520 if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4522 eval "ac_cv_lib_$ac_lib_var=yes"
4524 echo "configure: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4527 eval "ac_cv_lib_$ac_lib_var=no"
4530 LIBS="$ac_save_LIBS"
4533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4534 echo "$ac_t""yes" 1>&6
4535 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4536 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4537 cat >> confdefs.h <<EOF
4538 #define $ac_tr_lib 1
4541 LIBS="-lcom_err $LIBS"
4544 echo "$ac_t""no" 1>&6
4545 { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
4548 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4549 echo "configure:4550: checking for krb5_encrypt in -lcrypto" >&5
4550 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 ac_save_LIBS="$LIBS"
4555 LIBS="-lcrypto $LIBS"
4556 cat > conftest.$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4559 /* Override any gcc2 internal prototype to avoid an error. */
4560 /* We use char because int might match the return type of a gcc2
4561 builtin and then its argument prototype would still apply. */
4562 char krb5_encrypt();
4568 if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4570 eval "ac_cv_lib_$ac_lib_var=yes"
4572 echo "configure: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4575 eval "ac_cv_lib_$ac_lib_var=no"
4578 LIBS="$ac_save_LIBS"
4581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4583 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4584 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4585 cat >> confdefs.h <<EOF
4586 #define $ac_tr_lib 1
4589 LIBS="-lcrypto $LIBS"
4592 echo "$ac_t""no" 1>&6
4593 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4594 echo "configure:4595: checking for krb5_encrypt in -lk5crypto" >&5
4595 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 ac_save_LIBS="$LIBS"
4600 LIBS="-lk5crypto $LIBS"
4601 cat > conftest.$ac_ext <<EOF
4602 #line 4603 "configure"
4603 #include "confdefs.h"
4604 /* Override any gcc2 internal prototype to avoid an error. */
4605 /* We use char because int might match the return type of a gcc2
4606 builtin and then its argument prototype would still apply. */
4607 char krb5_encrypt();
4613 if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4615 eval "ac_cv_lib_$ac_lib_var=yes"
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4620 eval "ac_cv_lib_$ac_lib_var=no"
4623 LIBS="$ac_save_LIBS"
4626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4627 echo "$ac_t""yes" 1>&6
4628 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4629 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4630 cat >> confdefs.h <<EOF
4631 #define $ac_tr_lib 1
4634 LIBS="-lk5crypto $LIBS"
4637 echo "$ac_t""no" 1>&6
4638 { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
4643 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4644 echo "configure:4645: checking for krb5_sendauth in -lkrb5" >&5
4645 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4649 ac_save_LIBS="$LIBS"
4651 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 /* Override any gcc2 internal prototype to avoid an error. */
4655 /* We use char because int might match the return type of a gcc2
4656 builtin and then its argument prototype would still apply. */
4657 char krb5_sendauth();
4663 if { (eval echo configure:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4665 eval "ac_cv_lib_$ac_lib_var=yes"
4667 echo "configure: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4670 eval "ac_cv_lib_$ac_lib_var=no"
4673 LIBS="$ac_save_LIBS"
4676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4677 echo "$ac_t""yes" 1>&6
4678 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4679 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4680 cat >> confdefs.h <<EOF
4681 #define $ac_tr_lib 1
4687 echo "$ac_t""no" 1>&6
4688 { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
4693 if test "$with_openssl" = yes ; then
4694 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4695 echo "configure:4696: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4696 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 ac_save_LIBS="$LIBS"
4701 LIBS="-lcrypto $LIBS"
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 /* Override any gcc2 internal prototype to avoid an error. */
4706 /* We use char because int might match the return type of a gcc2
4707 builtin and then its argument prototype would still apply. */
4708 char CRYPTO_new_ex_data();
4711 CRYPTO_new_ex_data()
4714 if { (eval echo configure:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4716 eval "ac_cv_lib_$ac_lib_var=yes"
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4721 eval "ac_cv_lib_$ac_lib_var=no"
4724 LIBS="$ac_save_LIBS"
4727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4728 echo "$ac_t""yes" 1>&6
4729 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4731 cat >> confdefs.h <<EOF
4732 #define $ac_tr_lib 1
4735 LIBS="-lcrypto $LIBS"
4738 echo "$ac_t""no" 1>&6
4739 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4742 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4743 echo "configure:4744: checking for SSL_library_init in -lssl" >&5
4744 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4746 echo $ac_n "(cached) $ac_c" 1>&6
4748 ac_save_LIBS="$LIBS"
4750 cat > conftest.$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 /* Override any gcc2 internal prototype to avoid an error. */
4754 /* We use char because int might match the return type of a gcc2
4755 builtin and then its argument prototype would still apply. */
4756 char SSL_library_init();
4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4764 eval "ac_cv_lib_$ac_lib_var=yes"
4766 echo "configure: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4769 eval "ac_cv_lib_$ac_lib_var=no"
4772 LIBS="$ac_save_LIBS"
4775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4777 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4778 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4779 cat >> confdefs.h <<EOF
4780 #define $ac_tr_lib 1
4786 echo "$ac_t""no" 1>&6
4787 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4792 if test "$with_pam" = yes ; then
4793 echo $ac_n "checking for pam_start in -lpam""... $ac_c" 1>&6
4794 echo "configure:4795: checking for pam_start in -lpam" >&5
4795 ac_lib_var=`echo pam'_'pam_start | sed 'y%./+-%__p_%'`
4796 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4799 ac_save_LIBS="$LIBS"
4801 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4804 /* Override any gcc2 internal prototype to avoid an error. */
4805 /* We use char because int might match the return type of a gcc2
4806 builtin and then its argument prototype would still apply. */
4813 if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4815 eval "ac_cv_lib_$ac_lib_var=yes"
4817 echo "configure: failed program was:" >&5
4818 cat conftest.$ac_ext >&5
4820 eval "ac_cv_lib_$ac_lib_var=no"
4823 LIBS="$ac_save_LIBS"
4826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4827 echo "$ac_t""yes" 1>&6
4828 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4829 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4830 cat >> confdefs.h <<EOF
4831 #define $ac_tr_lib 1
4837 echo "$ac_t""no" 1>&6
4838 { echo "configure: error: library 'pam' is required for PAM" 1>&2; exit 1; }
4843 if test "$enable_nls" = yes ; then
4846 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
4847 echo "configure:4848: checking for library containing gettext" >&5
4848 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4851 ac_func_search_save_LIBS="$LIBS"
4852 ac_cv_search_gettext="no"
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4856 /* Override any gcc2 internal prototype to avoid an error. */
4857 /* We use char because int might match the return type of a gcc2
4858 builtin and then its argument prototype would still apply. */
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867 ac_cv_search_gettext="none required"
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4873 test "$ac_cv_search_gettext" = "no" && for i in intl; do
4874 LIBS="-l$i $ac_func_search_save_LIBS"
4875 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4878 /* Override any gcc2 internal prototype to avoid an error. */
4879 /* We use char because int might match the return type of a gcc2
4880 builtin and then its argument prototype would still apply. */
4887 if { (eval echo configure:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4889 ac_cv_search_gettext="-l$i"
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4897 LIBS="$ac_func_search_save_LIBS"
4900 echo "$ac_t""$ac_cv_search_gettext" 1>&6
4901 if test "$ac_cv_search_gettext" != "no"; then
4902 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
4905 { echo "configure: error: a gettext implementation is required for NLS" 1>&2; exit 1; }
4907 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4908 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4909 echo "configure:4910: checking for libintl.h" >&5
4910 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 #include <libintl.h>
4918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4919 { (eval echo configure:4920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4921 if test -z "$ac_err"; then
4923 eval "ac_cv_header_$ac_safe=yes"
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4929 eval "ac_cv_header_$ac_safe=no"
4933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4937 echo "$ac_t""no" 1>&6
4938 { echo "configure: error: header file <libintl.h> is required for NLS" 1>&2; exit 1; }
4941 for ac_prog in msgfmt
4943 # Extract the first word of "$ac_prog", so it can be a program name with args.
4944 set dummy $ac_prog; ac_word=$2
4945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4946 echo "configure:4947: checking for $ac_word" >&5
4947 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4950 if test -n "$MSGFMT"; then
4951 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4955 for ac_dir in $ac_dummy; do
4956 test -z "$ac_dir" && ac_dir=.
4957 if test -f $ac_dir/$ac_word; then
4958 ac_cv_prog_MSGFMT="$ac_prog"
4965 MSGFMT="$ac_cv_prog_MSGFMT"
4966 if test -n "$MSGFMT"; then
4967 echo "$ac_t""$MSGFMT" 1>&6
4969 echo "$ac_t""no" 1>&6
4972 test -n "$MSGFMT" && break
4975 if test -z "$MSGFMT"; then
4976 { echo "configure: error: msgfmt is required for NLS" 1>&2; exit 1; }
4978 for ac_prog in msgmerge
4980 # Extract the first word of "$ac_prog", so it can be a program name with args.
4981 set dummy $ac_prog; ac_word=$2
4982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4983 echo "configure:4984: checking for $ac_word" >&5
4984 if eval "test \"`echo '$''{'ac_cv_prog_MSGMERGE'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4987 if test -n "$MSGMERGE"; then
4988 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
4990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4992 for ac_dir in $ac_dummy; do
4993 test -z "$ac_dir" && ac_dir=.
4994 if test -f $ac_dir/$ac_word; then
4995 ac_cv_prog_MSGMERGE="$ac_prog"
5002 MSGMERGE="$ac_cv_prog_MSGMERGE"
5003 if test -n "$MSGMERGE"; then
5004 echo "$ac_t""$MSGMERGE" 1>&6
5006 echo "$ac_t""no" 1>&6
5009 test -n "$MSGMERGE" && break
5012 for ac_prog in xgettext
5014 # Extract the first word of "$ac_prog", so it can be a program name with args.
5015 set dummy $ac_prog; ac_word=$2
5016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5017 echo "configure:5018: checking for $ac_word" >&5
5018 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5021 if test -n "$XGETTEXT"; then
5022 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
5024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5026 for ac_dir in $ac_dummy; do
5027 test -z "$ac_dir" && ac_dir=.
5028 if test -f $ac_dir/$ac_word; then
5029 ac_cv_prog_XGETTEXT="$ac_prog"
5036 XGETTEXT="$ac_cv_prog_XGETTEXT"
5037 if test -n "$XGETTEXT"; then
5038 echo "$ac_t""$XGETTEXT" 1>&6
5040 echo "$ac_t""no" 1>&6
5043 test -n "$XGETTEXT" && break
5047 # Note: share/locale is always the default, independent of $datadir
5048 localedir='${prefix}/share/locale'
5049 if test x"$prefix" = x"NONE"; then
5050 exp_localedir="$ac_default_prefix/share/locale"
5052 exp_localedir="$prefix/share/locale"
5056 cat >> confdefs.h <<EOF
5057 #define LOCALEDIR "$exp_localedir"
5066 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
5068 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5070 echo "configure:5071: checking for $ac_hdr" >&5
5071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 cat > conftest.$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5080 { (eval echo configure:5081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5082 if test -z "$ac_err"; then
5084 eval "ac_cv_header_$ac_safe=yes"
5087 echo "configure: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5090 eval "ac_cv_header_$ac_safe=no"
5094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5095 echo "$ac_t""yes" 1>&6
5096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5097 cat >> confdefs.h <<EOF
5098 #define $ac_tr_hdr 1
5102 echo "$ac_t""no" 1>&6
5107 for ac_hdr in netinet/in.h
5109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5111 echo "configure:5112: checking for $ac_hdr" >&5
5112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5115 cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5121 { (eval echo configure:5122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5123 if test -z "$ac_err"; then
5125 eval "ac_cv_header_$ac_safe=yes"
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5131 eval "ac_cv_header_$ac_safe=no"
5135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5136 echo "$ac_t""yes" 1>&6
5137 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5138 cat >> confdefs.h <<EOF
5139 #define $ac_tr_hdr 1
5143 echo "$ac_t""no" 1>&6
5147 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
5148 echo "configure:5149: checking for netinet/tcp.h" >&5
5149 cat > conftest.$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5153 #ifdef HAVE_NETINET_IN_H
5154 #include <netinet/in.h>
5156 #include <netinet/tcp.h>
5159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5160 { (eval echo configure:5161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5162 if test -z "$ac_err"; then
5164 cat >> confdefs.h <<\EOF
5165 #define HAVE_NETINET_TCP_H 1
5167 echo "$ac_t""yes" 1>&6
5170 echo "configure: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5173 echo "$ac_t""no" 1>&6
5177 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
5178 echo "configure:5179: checking whether string.h and strings.h may both be included" >&5
5179 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5182 cat > conftest.$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5186 #include <strings.h>
5189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5190 { (eval echo configure:5191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5192 if test -z "$ac_err"; then
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5198 #include <strings.h>
5201 int n = strcasecmp("a", "b");
5204 if { (eval echo configure:5205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5206 pgac_cv_header_strings_both=yes
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5211 pgac_cv_header_strings_both=no
5216 echo "configure: failed program was:" >&5
5217 cat conftest.$ac_ext >&5
5219 pgac_cv_header_strings_both=no
5224 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
5225 if test x"$pgac_cv_header_strings_both" = x"yes"; then
5226 cat >> confdefs.h <<\EOF
5227 #define STRING_H_WITH_STRINGS_H 1
5232 for ac_hdr in readline/readline.h readline.h
5234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5236 echo "configure:5237: checking for $ac_hdr" >&5
5237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5246 { (eval echo configure:5247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5248 if test -z "$ac_err"; then
5250 eval "ac_cv_header_$ac_safe=yes"
5253 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5256 eval "ac_cv_header_$ac_safe=no"
5260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5261 echo "$ac_t""yes" 1>&6
5262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5263 cat >> confdefs.h <<EOF
5264 #define $ac_tr_hdr 1
5268 echo "$ac_t""no" 1>&6
5272 for ac_hdr in readline/history.h history.h
5274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5276 echo "configure:5277: checking for $ac_hdr" >&5
5277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5280 cat > conftest.$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5286 { (eval echo configure:5287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5288 if test -z "$ac_err"; then
5290 eval "ac_cv_header_$ac_safe=yes"
5293 echo "configure: failed program was:" >&5
5294 cat conftest.$ac_ext >&5
5296 eval "ac_cv_header_$ac_safe=no"
5300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5303 cat >> confdefs.h <<EOF
5304 #define $ac_tr_hdr 1
5308 echo "$ac_t""no" 1>&6
5313 if test "$with_krb4" = yes ; then
5314 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
5315 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
5316 echo "configure:5317: checking for krb.h" >&5
5317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5320 cat > conftest.$ac_ext <<EOF
5321 #line 5322 "configure"
5322 #include "confdefs.h"
5325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5326 { (eval echo configure:5327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5328 if test -z "$ac_err"; then
5330 eval "ac_cv_header_$ac_safe=yes"
5333 echo "configure: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5336 eval "ac_cv_header_$ac_safe=no"
5340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5341 echo "$ac_t""yes" 1>&6
5344 echo "$ac_t""no" 1>&6
5345 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
5350 if test "$with_krb5" = yes ; then
5351 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
5352 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
5353 echo "configure:5354: checking for krb5.h" >&5
5354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5363 { (eval echo configure:5364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5365 if test -z "$ac_err"; then
5367 eval "ac_cv_header_$ac_safe=yes"
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5373 eval "ac_cv_header_$ac_safe=no"
5377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5378 echo "$ac_t""yes" 1>&6
5381 echo "$ac_t""no" 1>&6
5382 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
5385 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
5386 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
5387 echo "configure:5388: checking for com_err.h" >&5
5388 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5389 echo $ac_n "(cached) $ac_c" 1>&6
5391 cat > conftest.$ac_ext <<EOF
5392 #line 5393 "configure"
5393 #include "confdefs.h"
5394 #include <com_err.h>
5396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5397 { (eval echo configure:5398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5399 if test -z "$ac_err"; then
5401 eval "ac_cv_header_$ac_safe=yes"
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5407 eval "ac_cv_header_$ac_safe=no"
5411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5412 echo "$ac_t""yes" 1>&6
5415 echo "$ac_t""no" 1>&6
5416 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
5421 if test "$with_openssl" = yes ; then
5422 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
5423 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
5424 echo "configure:5425: checking for openssl/ssl.h" >&5
5425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5428 cat > conftest.$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5431 #include <openssl/ssl.h>
5433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5434 { (eval echo configure:5435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5436 if test -z "$ac_err"; then
5438 eval "ac_cv_header_$ac_safe=yes"
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5444 eval "ac_cv_header_$ac_safe=no"
5448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5449 echo "$ac_t""yes" 1>&6
5452 echo "$ac_t""no" 1>&6
5453 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
5456 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
5457 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
5458 echo "configure:5459: checking for openssl/err.h" >&5
5459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5460 echo $ac_n "(cached) $ac_c" 1>&6
5462 cat > conftest.$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5465 #include <openssl/err.h>
5467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5468 { (eval echo configure:5469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5470 if test -z "$ac_err"; then
5472 eval "ac_cv_header_$ac_safe=yes"
5475 echo "configure: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5478 eval "ac_cv_header_$ac_safe=no"
5482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5483 echo "$ac_t""yes" 1>&6
5486 echo "$ac_t""no" 1>&6
5487 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
5492 if test "$with_pam" = yes ; then
5493 ac_safe=`echo "security/pam_appl.h" | sed 'y%./+-%__p_%'`
5494 echo $ac_n "checking for security/pam_appl.h""... $ac_c" 1>&6
5495 echo "configure:5496: checking for security/pam_appl.h" >&5
5496 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5499 cat > conftest.$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5502 #include <security/pam_appl.h>
5504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5505 { (eval echo configure:5506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5507 if test -z "$ac_err"; then
5509 eval "ac_cv_header_$ac_safe=yes"
5512 echo "configure: failed program was:" >&5
5513 cat conftest.$ac_ext >&5
5515 eval "ac_cv_header_$ac_safe=no"
5519 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5520 echo "$ac_t""yes" 1>&6
5523 echo "$ac_t""no" 1>&6
5524 { echo "configure: error: header file <security/pam_appl.h> is required for PAM" 1>&2; exit 1; }
5531 ## Types, structures, compiler characteristics
5533 echo $ac_n "checking for working const""... $ac_c" 1>&6
5534 echo "configure:5535: checking for working const" >&5
5535 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5536 echo $ac_n "(cached) $ac_c" 1>&6
5538 cat > conftest.$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5544 /* Ultrix mips cc rejects this. */
5545 typedef int charset[2]; const charset x;
5546 /* SunOS 4.1.1 cc rejects this. */
5547 char const *const *ccp;
5549 /* NEC SVR4.0.2 mips cc rejects this. */
5550 struct point {int x, y;};
5551 static struct point const zero = {0,0};
5552 /* AIX XL C 1.02.0.0 rejects this.
5553 It does not let you subtract one const X* pointer from another in an arm
5554 of an if-expression whose if-part is not a constant expression */
5555 const char *g = "string";
5556 ccp = &g + (g ? g-g : 0);
5557 /* HPUX 7.0 cc rejects these. */
5560 ccp = (char const *const *) p;
5561 { /* SCO 3.2v4 cc rejects this. */
5563 char const *s = 0 ? (char *) 0 : (char const *) 0;
5567 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5569 const int *foo = &x[0];
5572 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5573 typedef const int *iptr;
5577 { /* AIX XL C 1.02.0.0 rejects this saying
5578 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5579 struct s { int j; const int *ap[3]; };
5580 struct s *b; b->j = 5;
5582 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5588 if { (eval echo configure:5589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5600 echo "$ac_t""$ac_cv_c_const" 1>&6
5601 if test $ac_cv_c_const = no; then
5602 cat >> confdefs.h <<\EOF
5608 echo $ac_n "checking for inline""... $ac_c" 1>&6
5609 echo "configure:5610: checking for inline" >&5
5610 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5614 for ac_kw in inline __inline__ __inline; do
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5623 if { (eval echo configure:5624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5625 ac_cv_c_inline=$ac_kw; break
5627 echo "configure: failed program was:" >&5
5628 cat conftest.$ac_ext >&5
5635 echo "$ac_t""$ac_cv_c_inline" 1>&6
5636 case "$ac_cv_c_inline" in
5638 no) cat >> confdefs.h <<\EOF
5642 *) cat >> confdefs.h <<EOF
5643 #define inline $ac_cv_c_inline
5650 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5651 echo "configure:5652: checking for preprocessor stringizing operator" >&5
5652 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5655 cat > conftest.$ac_ext <<EOF
5656 #line 5657 "configure"
5657 #include "confdefs.h"
5661 char *s = x(teststring);
5664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665 egrep "#teststring" >/dev/null 2>&1; then
5667 ac_cv_c_stringize=no
5670 ac_cv_c_stringize=yes
5676 if test "${ac_cv_c_stringize}" = yes
5678 cat >> confdefs.h <<\EOF
5679 #define HAVE_STRINGIZE 1
5683 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5685 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5686 echo "configure:5687: checking for signed types" >&5
5687 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5695 signed char c; signed short s; signed int i;
5698 if { (eval echo configure:5699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5700 pgac_cv_c_signed=yes
5702 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5710 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5711 if test x"$pgac_cv_c_signed" = xno ; then
5712 cat >> confdefs.h <<\EOF
5717 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5718 echo "configure:5719: checking for volatile" >&5
5719 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5727 extern volatile int i;
5730 if { (eval echo configure:5731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5732 pgac_cv_c_volatile=yes
5734 echo "configure: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5737 pgac_cv_c_volatile=no
5742 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5743 if test x"$pgac_cv_c_volatile" = xno ; then
5744 cat >> confdefs.h <<\EOF
5749 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5750 echo "configure:5751: checking whether struct tm is in sys/time.h or time.h" >&5
5751 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5752 echo $ac_n "(cached) $ac_c" 1>&6
5754 cat > conftest.$ac_ext <<EOF
5755 #line 5756 "configure"
5756 #include "confdefs.h"
5757 #include <sys/types.h>
5760 struct tm *tp; tp->tm_sec;
5763 if { (eval echo configure:5764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5765 ac_cv_struct_tm=time.h
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5770 ac_cv_struct_tm=sys/time.h
5775 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5776 if test $ac_cv_struct_tm = sys/time.h; then
5777 cat >> confdefs.h <<\EOF
5778 #define TM_IN_SYS_TIME 1
5783 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5784 echo "configure:5785: checking for tm_zone in struct tm" >&5
5785 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5786 echo $ac_n "(cached) $ac_c" 1>&6
5788 cat > conftest.$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5791 #include <sys/types.h>
5792 #include <$ac_cv_struct_tm>
5794 struct tm tm; tm.tm_zone;
5797 if { (eval echo configure:5798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5799 ac_cv_struct_tm_zone=yes
5801 echo "configure: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5804 ac_cv_struct_tm_zone=no
5809 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5810 if test "$ac_cv_struct_tm_zone" = yes; then
5811 cat >> confdefs.h <<\EOF
5812 #define HAVE_TM_ZONE 1
5816 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5817 echo "configure:5818: checking for tzname" >&5
5818 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5819 echo $ac_n "(cached) $ac_c" 1>&6
5821 cat > conftest.$ac_ext <<EOF
5822 #line 5823 "configure"
5823 #include "confdefs.h"
5825 #ifndef tzname /* For SGI. */
5826 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5832 if { (eval echo configure:5833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5834 ac_cv_var_tzname=yes
5836 echo "configure: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5844 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5845 if test $ac_cv_var_tzname = yes; then
5846 cat >> confdefs.h <<\EOF
5847 #define HAVE_TZNAME 1
5853 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5854 echo "configure:5855: checking for union semun" >&5
5855 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5856 echo $ac_n "(cached) $ac_c" 1>&6
5858 cat > conftest.$ac_ext <<EOF
5859 #line 5860 "configure"
5860 #include "confdefs.h"
5861 #include <sys/types.h>
5862 #include <sys/ipc.h>
5863 #include <sys/sem.h>
5868 if { (eval echo configure:5869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5870 pgac_cv_union_semun=yes
5872 echo "configure: failed program was:" >&5
5873 cat conftest.$ac_ext >&5
5875 pgac_cv_union_semun=no
5880 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5881 if test x"$pgac_cv_union_semun" = xyes ; then
5882 cat >> confdefs.h <<\EOF
5883 #define HAVE_UNION_SEMUN 1
5887 echo $ac_n "checking for struct cmsgcred""... $ac_c" 1>&6
5888 echo "configure:5889: checking for struct cmsgcred" >&5
5889 if eval "test \"`echo '$''{'pgac_cv_struct_cmsgcred'+set}'`\" = set"; then
5890 echo $ac_n "(cached) $ac_c" 1>&6
5892 cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5895 #include <sys/param.h>
5896 #include <sys/socket.h>
5897 #include <sys/ucred.h>
5899 struct cmsgcred sockcred;
5902 if { (eval echo configure:5903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5904 pgac_cv_struct_cmsgcred=yes
5906 echo "configure: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5909 pgac_cv_struct_cmsgcred=no
5914 echo "$ac_t""$pgac_cv_struct_cmsgcred" 1>&6
5915 if test x"$pgac_cv_struct_cmsgcred" = xyes ; then
5916 cat >> confdefs.h <<\EOF
5917 #define HAVE_STRUCT_CMSGCRED 1
5921 echo $ac_n "checking for struct fcred""... $ac_c" 1>&6
5922 echo "configure:5923: checking for struct fcred" >&5
5923 if eval "test \"`echo '$''{'pgac_cv_struct_fcred'+set}'`\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5926 cat > conftest.$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5929 #include <sys/param.h>
5930 #include <sys/socket.h>
5931 #include <sys/ucred.h>
5933 struct fcred sockcred;
5936 if { (eval echo configure:5937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5938 pgac_cv_struct_fcred=yes
5940 echo "configure: failed program was:" >&5
5941 cat conftest.$ac_ext >&5
5943 pgac_cv_struct_fcred=no
5948 echo "$ac_t""$pgac_cv_struct_fcred" 1>&6
5949 if test x"$pgac_cv_struct_fcred" = xyes ; then
5950 cat >> confdefs.h <<\EOF
5951 #define HAVE_STRUCT_FCRED 1
5955 echo $ac_n "checking for struct sockcred""... $ac_c" 1>&6
5956 echo "configure:5957: checking for struct sockcred" >&5
5957 if eval "test \"`echo '$''{'pgac_cv_struct_sockcred'+set}'`\" = set"; then
5958 echo $ac_n "(cached) $ac_c" 1>&6
5960 cat > conftest.$ac_ext <<EOF
5961 #line 5962 "configure"
5962 #include "confdefs.h"
5963 #include <sys/param.h>
5964 #include <sys/socket.h>
5965 #include <sys/ucred.h>
5967 struct sockcred sockcred;
5970 if { (eval echo configure:5971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5972 pgac_cv_struct_sockcred=yes
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5977 pgac_cv_struct_sockcred=no
5982 echo "$ac_t""$pgac_cv_struct_sockcred" 1>&6
5983 if test x"$pgac_cv_struct_sockcred" = xyes ; then
5984 cat >> confdefs.h <<\EOF
5985 #define HAVE_STRUCT_SOCKCRED 1
5989 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5990 echo "configure:5991: checking for struct sockaddr_un" >&5
5991 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5997 #include <sys/types.h>
5998 #ifdef HAVE_SYS_UN_H
6002 struct sockaddr_un un;
6005 if { (eval echo configure:6006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6007 pgac_cv_struct_sockaddr_un=yes
6009 echo "configure: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6012 pgac_cv_struct_sockaddr_un=no
6017 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
6018 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
6019 cat >> confdefs.h <<\EOF
6020 #define HAVE_STRUCT_SOCKADDR_UN 1
6026 ## Functions, global variables
6028 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
6029 echo "configure:6030: checking for int timezone" >&5
6030 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6039 res = timezone / 60;
6042 if { (eval echo configure:6043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6044 pgac_cv_var_int_timezone=yes
6046 echo "configure: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6049 pgac_cv_var_int_timezone=no
6054 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
6055 if test x"$pgac_cv_var_int_timezone" = xyes ; then
6056 cat >> confdefs.h <<\EOF
6057 #define HAVE_INT_TIMEZONE
6061 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
6062 echo "configure:6063: checking types of arguments for accept()" >&5
6063 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
6064 echo $ac_n "(cached) $ac_c" 1>&6
6066 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6069 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
6070 echo $ac_n "(cached) $ac_c" 1>&6
6072 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
6073 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
6074 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
6075 cat > conftest.$ac_ext <<EOF
6076 #line 6077 "configure"
6077 #include "confdefs.h"
6078 #ifdef HAVE_SYS_TYPES_H
6079 #include <sys/types.h>
6081 #ifdef HAVE_SYS_SOCKET_H
6082 #include <sys/socket.h>
6084 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
6089 if { (eval echo configure:6090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6091 ac_not_found=no; break 3
6093 echo "configure: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6102 if test "$ac_not_found" = yes; then
6103 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
6105 if test "$ac_cv_func_accept_arg3" = "void"; then
6106 ac_cv_func_accept_arg3=int
6114 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
6115 cat >> confdefs.h <<EOF
6116 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
6119 cat >> confdefs.h <<EOF
6120 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
6123 cat >> confdefs.h <<EOF
6124 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
6128 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
6129 echo "configure:6130: checking whether gettimeofday takes only one argument" >&5
6130 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6133 cat > conftest.$ac_ext <<EOF
6134 #line 6135 "configure"
6135 #include "confdefs.h"
6136 #include <sys/time.h>
6139 struct timezone *tzp;
6140 gettimeofday(tp,tzp);
6143 if { (eval echo configure:6144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6145 pgac_cv_func_gettimeofday_1arg=no
6147 echo "configure: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6150 pgac_cv_func_gettimeofday_1arg=yes
6155 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
6156 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
6157 cat >> confdefs.h <<\EOF
6158 #define GETTIMEOFDAY_1ARG
6163 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
6165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6166 echo "configure:6167: checking for $ac_func" >&5
6167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6168 echo $ac_n "(cached) $ac_c" 1>&6
6170 cat > conftest.$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6173 /* System header to define __stub macros and hopefully few prototypes,
6174 which can conflict with char $ac_func(); below. */
6176 /* Override any gcc2 internal prototype to avoid an error. */
6177 /* We use char because int might match the return type of a gcc2
6178 builtin and then its argument prototype would still apply. */
6183 /* The GNU C library defines this for functions which it implements
6184 to always fail with ENOSYS. Some functions are actually named
6185 something starting with __ and the normal name is an alias. */
6186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6194 if { (eval echo configure:6195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6196 eval "ac_cv_func_$ac_func=yes"
6198 echo "configure: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6201 eval "ac_cv_func_$ac_func=no"
6206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6207 echo "$ac_t""yes" 1>&6
6208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6209 cat >> confdefs.h <<EOF
6210 #define $ac_tr_func 1
6214 echo "$ac_t""no" 1>&6
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6225 egrep "fdatasync" >/dev/null 2>&1; then
6227 cat >> confdefs.h <<\EOF
6228 #define HAVE_FDATASYNC_DECL 1
6235 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
6236 echo "configure:6237: checking for PS_STRINGS" >&5
6237 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
6238 echo $ac_n "(cached) $ac_c" 1>&6
6240 cat > conftest.$ac_ext <<EOF
6241 #line 6242 "configure"
6242 #include "confdefs.h"
6243 #include <machine/vmparam.h>
6244 #include <sys/exec.h>
6247 PS_STRINGS->ps_nargvstr = 1;
6248 PS_STRINGS->ps_argvstr = "foo";
6251 if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6253 pgac_cv_var_PS_STRINGS=yes
6255 echo "configure: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6258 pgac_cv_var_PS_STRINGS=no
6263 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
6264 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
6265 cat >> confdefs.h <<\EOF
6266 #define HAVE_PS_STRINGS
6272 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
6273 echo "configure:6274: checking for snprintf" >&5
6274 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6277 cat > conftest.$ac_ext <<EOF
6278 #line 6279 "configure"
6279 #include "confdefs.h"
6280 /* System header to define __stub macros and hopefully few prototypes,
6281 which can conflict with char snprintf(); below. */
6283 /* Override any gcc2 internal prototype to avoid an error. */
6284 /* We use char because int might match the return type of a gcc2
6285 builtin and then its argument prototype would still apply. */
6290 /* The GNU C library defines this for functions which it implements
6291 to always fail with ENOSYS. Some functions are actually named
6292 something starting with __ and the normal name is an alias. */
6293 #if defined (__stub_snprintf) || defined (__stub___snprintf)
6301 if { (eval echo configure:6302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6303 eval "ac_cv_func_snprintf=yes"
6305 echo "configure: failed program was:" >&5
6306 cat conftest.$ac_ext >&5
6308 eval "ac_cv_func_snprintf=no"
6313 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
6314 echo "$ac_t""yes" 1>&6
6315 cat >> confdefs.h <<\EOF
6316 #define HAVE_SNPRINTF 1
6320 echo "$ac_t""no" 1>&6
6321 SNPRINTF='snprintf.o'
6324 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
6325 echo "configure:6326: checking for vsnprintf" >&5
6326 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
6327 echo $ac_n "(cached) $ac_c" 1>&6
6329 cat > conftest.$ac_ext <<EOF
6330 #line 6331 "configure"
6331 #include "confdefs.h"
6332 /* System header to define __stub macros and hopefully few prototypes,
6333 which can conflict with char vsnprintf(); below. */
6335 /* Override any gcc2 internal prototype to avoid an error. */
6336 /* We use char because int might match the return type of a gcc2
6337 builtin and then its argument prototype would still apply. */
6342 /* The GNU C library defines this for functions which it implements
6343 to always fail with ENOSYS. Some functions are actually named
6344 something starting with __ and the normal name is an alias. */
6345 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
6353 if { (eval echo configure:6354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6355 eval "ac_cv_func_vsnprintf=yes"
6357 echo "configure: failed program was:" >&5
6358 cat conftest.$ac_ext >&5
6360 eval "ac_cv_func_vsnprintf=no"
6365 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
6366 echo "$ac_t""yes" 1>&6
6367 cat >> confdefs.h <<\EOF
6368 #define HAVE_VSNPRINTF 1
6372 echo "$ac_t""no" 1>&6
6373 SNPRINTF='snprintf.o'
6377 cat > conftest.$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6383 egrep "snprintf" >/dev/null 2>&1; then
6385 cat >> confdefs.h <<\EOF
6386 #define HAVE_SNPRINTF_DECL 1
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6398 egrep "vsnprintf" >/dev/null 2>&1; then
6400 cat >> confdefs.h <<\EOF
6401 #define HAVE_VSNPRINTF_DECL 1
6408 # do this one the hard way in case isinf() is a macro
6409 echo $ac_n "checking for isinf""... $ac_c" 1>&6
6410 echo "configure:6411: checking for isinf" >&5
6411 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
6412 echo $ac_n "(cached) $ac_c" 1>&6
6414 cat > conftest.$ac_ext <<EOF
6415 #line 6416 "configure"
6416 #include "confdefs.h"
6420 double x = 0.0; int res = isinf(x);
6423 if { (eval echo configure:6424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6425 ac_cv_func_isinf=yes
6427 echo "configure: failed program was:" >&5
6428 cat conftest.$ac_ext >&5
6435 echo "$ac_t""$ac_cv_func_isinf" 1>&6
6437 if test $ac_cv_func_isinf = yes ; then
6438 cat >> confdefs.h <<\EOF
6439 #define HAVE_ISINF 1
6445 # Look for a way to implement a substitute for isinf()
6446 for ac_func in fpclass fp_class fp_class_d class
6448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6449 echo "configure:6450: checking for $ac_func" >&5
6450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6451 echo $ac_n "(cached) $ac_c" 1>&6
6453 cat > conftest.$ac_ext <<EOF
6454 #line 6455 "configure"
6455 #include "confdefs.h"
6456 /* System header to define __stub macros and hopefully few prototypes,
6457 which can conflict with char $ac_func(); below. */
6459 /* Override any gcc2 internal prototype to avoid an error. */
6460 /* We use char because int might match the return type of a gcc2
6461 builtin and then its argument prototype would still apply. */
6466 /* The GNU C library defines this for functions which it implements
6467 to always fail with ENOSYS. Some functions are actually named
6468 something starting with __ and the normal name is an alias. */
6469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6477 if { (eval echo configure:6478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6479 eval "ac_cv_func_$ac_func=yes"
6481 echo "configure: failed program was:" >&5
6482 cat conftest.$ac_ext >&5
6484 eval "ac_cv_func_$ac_func=no"
6489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6490 echo "$ac_t""yes" 1>&6
6491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6492 cat >> confdefs.h <<EOF
6493 #define $ac_tr_func 1
6497 echo "$ac_t""no" 1>&6
6504 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
6505 echo "configure:6506: checking for getrusage" >&5
6506 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
6507 echo $ac_n "(cached) $ac_c" 1>&6
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6512 /* System header to define __stub macros and hopefully few prototypes,
6513 which can conflict with char getrusage(); below. */
6515 /* Override any gcc2 internal prototype to avoid an error. */
6516 /* We use char because int might match the return type of a gcc2
6517 builtin and then its argument prototype would still apply. */
6522 /* The GNU C library defines this for functions which it implements
6523 to always fail with ENOSYS. Some functions are actually named
6524 something starting with __ and the normal name is an alias. */
6525 #if defined (__stub_getrusage) || defined (__stub___getrusage)
6533 if { (eval echo configure:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6535 eval "ac_cv_func_getrusage=yes"
6537 echo "configure: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6540 eval "ac_cv_func_getrusage=no"
6545 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
6546 echo "$ac_t""yes" 1>&6
6547 cat >> confdefs.h <<\EOF
6548 #define HAVE_GETRUSAGE 1
6552 echo "$ac_t""no" 1>&6
6553 GETRUSAGE='getrusage.o'
6557 echo $ac_n "checking for srandom""... $ac_c" 1>&6
6558 echo "configure:6559: checking for srandom" >&5
6559 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
6560 echo $ac_n "(cached) $ac_c" 1>&6
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6565 /* System header to define __stub macros and hopefully few prototypes,
6566 which can conflict with char srandom(); below. */
6568 /* Override any gcc2 internal prototype to avoid an error. */
6569 /* We use char because int might match the return type of a gcc2
6570 builtin and then its argument prototype would still apply. */
6575 /* The GNU C library defines this for functions which it implements
6576 to always fail with ENOSYS. Some functions are actually named
6577 something starting with __ and the normal name is an alias. */
6578 #if defined (__stub_srandom) || defined (__stub___srandom)
6586 if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6588 eval "ac_cv_func_srandom=yes"
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6593 eval "ac_cv_func_srandom=no"
6598 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
6599 echo "$ac_t""yes" 1>&6
6600 cat >> confdefs.h <<\EOF
6601 #define HAVE_SRANDOM 1
6605 echo "$ac_t""no" 1>&6
6610 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
6611 echo "configure:6612: checking for gethostname" >&5
6612 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
6613 echo $ac_n "(cached) $ac_c" 1>&6
6615 cat > conftest.$ac_ext <<EOF
6616 #line 6617 "configure"
6617 #include "confdefs.h"
6618 /* System header to define __stub macros and hopefully few prototypes,
6619 which can conflict with char gethostname(); below. */
6621 /* Override any gcc2 internal prototype to avoid an error. */
6622 /* We use char because int might match the return type of a gcc2
6623 builtin and then its argument prototype would still apply. */
6628 /* The GNU C library defines this for functions which it implements
6629 to always fail with ENOSYS. Some functions are actually named
6630 something starting with __ and the normal name is an alias. */
6631 #if defined (__stub_gethostname) || defined (__stub___gethostname)
6639 if { (eval echo configure:6640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6641 eval "ac_cv_func_gethostname=yes"
6643 echo "configure: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6646 eval "ac_cv_func_gethostname=no"
6651 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6652 echo "$ac_t""yes" 1>&6
6653 cat >> confdefs.h <<\EOF
6654 #define HAVE_GETHOSTNAME 1
6658 echo "$ac_t""no" 1>&6
6659 GETHOSTNAME='gethostname.o'
6663 echo $ac_n "checking for random""... $ac_c" 1>&6
6664 echo "configure:6665: checking for random" >&5
6665 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6666 echo $ac_n "(cached) $ac_c" 1>&6
6668 cat > conftest.$ac_ext <<EOF
6669 #line 6670 "configure"
6670 #include "confdefs.h"
6671 /* System header to define __stub macros and hopefully few prototypes,
6672 which can conflict with char random(); below. */
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6681 /* The GNU C library defines this for functions which it implements
6682 to always fail with ENOSYS. Some functions are actually named
6683 something starting with __ and the normal name is an alias. */
6684 #if defined (__stub_random) || defined (__stub___random)
6692 if { (eval echo configure:6693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6694 eval "ac_cv_func_random=yes"
6696 echo "configure: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6699 eval "ac_cv_func_random=no"
6704 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6705 echo "$ac_t""yes" 1>&6
6706 cat >> confdefs.h <<\EOF
6707 #define HAVE_RANDOM 1
6711 echo "$ac_t""no" 1>&6
6712 MISSING_RANDOM='random.o'
6716 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6717 echo "configure:6718: checking for inet_aton" >&5
6718 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6719 echo $ac_n "(cached) $ac_c" 1>&6
6721 cat > conftest.$ac_ext <<EOF
6722 #line 6723 "configure"
6723 #include "confdefs.h"
6724 /* System header to define __stub macros and hopefully few prototypes,
6725 which can conflict with char inet_aton(); below. */
6727 /* Override any gcc2 internal prototype to avoid an error. */
6728 /* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */
6734 /* The GNU C library defines this for functions which it implements
6735 to always fail with ENOSYS. Some functions are actually named
6736 something starting with __ and the normal name is an alias. */
6737 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6745 if { (eval echo configure:6746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6747 eval "ac_cv_func_inet_aton=yes"
6749 echo "configure: failed program was:" >&5
6750 cat conftest.$ac_ext >&5
6752 eval "ac_cv_func_inet_aton=no"
6757 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6758 echo "$ac_t""yes" 1>&6
6759 cat >> confdefs.h <<\EOF
6760 #define HAVE_INET_ATON 1
6764 echo "$ac_t""no" 1>&6
6765 INET_ATON='inet_aton.o'
6769 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6770 echo "configure:6771: checking for strerror" >&5
6771 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 /* System header to define __stub macros and hopefully few prototypes,
6778 which can conflict with char strerror(); below. */
6780 /* Override any gcc2 internal prototype to avoid an error. */
6781 /* We use char because int might match the return type of a gcc2
6782 builtin and then its argument prototype would still apply. */
6787 /* The GNU C library defines this for functions which it implements
6788 to always fail with ENOSYS. Some functions are actually named
6789 something starting with __ and the normal name is an alias. */
6790 #if defined (__stub_strerror) || defined (__stub___strerror)
6798 if { (eval echo configure:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6800 eval "ac_cv_func_strerror=yes"
6802 echo "configure: failed program was:" >&5
6803 cat conftest.$ac_ext >&5
6805 eval "ac_cv_func_strerror=no"
6810 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 cat >> confdefs.h <<\EOF
6813 #define HAVE_STRERROR 1
6817 echo "$ac_t""no" 1>&6
6818 STRERROR='strerror.o'
6822 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6823 echo "configure:6824: checking for strdup" >&5
6824 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6827 cat > conftest.$ac_ext <<EOF
6828 #line 6829 "configure"
6829 #include "confdefs.h"
6830 /* System header to define __stub macros and hopefully few prototypes,
6831 which can conflict with char strdup(); below. */
6833 /* Override any gcc2 internal prototype to avoid an error. */
6834 /* We use char because int might match the return type of a gcc2
6835 builtin and then its argument prototype would still apply. */
6840 /* The GNU C library defines this for functions which it implements
6841 to always fail with ENOSYS. Some functions are actually named
6842 something starting with __ and the normal name is an alias. */
6843 #if defined (__stub_strdup) || defined (__stub___strdup)
6851 if { (eval echo configure:6852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6853 eval "ac_cv_func_strdup=yes"
6855 echo "configure: failed program was:" >&5
6856 cat conftest.$ac_ext >&5
6858 eval "ac_cv_func_strdup=no"
6863 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6864 echo "$ac_t""yes" 1>&6
6865 cat >> confdefs.h <<\EOF
6866 #define HAVE_STRDUP 1
6870 echo "$ac_t""no" 1>&6
6871 STRDUP='../../utils/strdup.o'
6875 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6876 echo "configure:6877: checking for strtol" >&5
6877 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6878 echo $ac_n "(cached) $ac_c" 1>&6
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 /* System header to define __stub macros and hopefully few prototypes,
6884 which can conflict with char strtol(); below. */
6886 /* Override any gcc2 internal prototype to avoid an error. */
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6893 /* The GNU C library defines this for functions which it implements
6894 to always fail with ENOSYS. Some functions are actually named
6895 something starting with __ and the normal name is an alias. */
6896 #if defined (__stub_strtol) || defined (__stub___strtol)
6904 if { (eval echo configure:6905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6906 eval "ac_cv_func_strtol=yes"
6908 echo "configure: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6911 eval "ac_cv_func_strtol=no"
6916 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6917 echo "$ac_t""yes" 1>&6
6918 cat >> confdefs.h <<\EOF
6919 #define HAVE_STRTOL 1
6923 echo "$ac_t""no" 1>&6
6928 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6929 echo "configure:6930: checking for strtoul" >&5
6930 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6931 echo $ac_n "(cached) $ac_c" 1>&6
6933 cat > conftest.$ac_ext <<EOF
6934 #line 6935 "configure"
6935 #include "confdefs.h"
6936 /* System header to define __stub macros and hopefully few prototypes,
6937 which can conflict with char strtoul(); below. */
6939 /* Override any gcc2 internal prototype to avoid an error. */
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6946 /* The GNU C library defines this for functions which it implements
6947 to always fail with ENOSYS. Some functions are actually named
6948 something starting with __ and the normal name is an alias. */
6949 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6957 if { (eval echo configure:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6959 eval "ac_cv_func_strtoul=yes"
6961 echo "configure: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6964 eval "ac_cv_func_strtoul=no"
6969 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6970 echo "$ac_t""yes" 1>&6
6971 cat >> confdefs.h <<\EOF
6972 #define HAVE_STRTOUL 1
6976 echo "$ac_t""no" 1>&6
6981 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6982 echo "configure:6983: checking for strcasecmp" >&5
6983 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6984 echo $ac_n "(cached) $ac_c" 1>&6
6986 cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6989 /* System header to define __stub macros and hopefully few prototypes,
6990 which can conflict with char strcasecmp(); below. */
6992 /* Override any gcc2 internal prototype to avoid an error. */
6993 /* We use char because int might match the return type of a gcc2
6994 builtin and then its argument prototype would still apply. */
6999 /* The GNU C library defines this for functions which it implements
7000 to always fail with ENOSYS. Some functions are actually named
7001 something starting with __ and the normal name is an alias. */
7002 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7012 eval "ac_cv_func_strcasecmp=yes"
7014 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7017 eval "ac_cv_func_strcasecmp=no"
7022 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
7023 echo "$ac_t""yes" 1>&6
7024 cat >> confdefs.h <<\EOF
7025 #define HAVE_STRCASECMP 1
7029 echo "$ac_t""no" 1>&6
7030 STRCASECMP='strcasecmp.o'
7034 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
7035 echo "configure:7036: checking for cbrt" >&5
7036 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7039 cat > conftest.$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7042 /* System header to define __stub macros and hopefully few prototypes,
7043 which can conflict with char cbrt(); below. */
7045 /* Override any gcc2 internal prototype to avoid an error. */
7046 /* We use char because int might match the return type of a gcc2
7047 builtin and then its argument prototype would still apply. */
7052 /* The GNU C library defines this for functions which it implements
7053 to always fail with ENOSYS. Some functions are actually named
7054 something starting with __ and the normal name is an alias. */
7055 #if defined (__stub_cbrt) || defined (__stub___cbrt)
7063 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7065 eval "ac_cv_func_cbrt=yes"
7067 echo "configure: failed program was:" >&5
7068 cat conftest.$ac_ext >&5
7070 eval "ac_cv_func_cbrt=no"
7075 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
7076 echo "$ac_t""yes" 1>&6
7077 cat >> confdefs.h <<\EOF
7082 echo "$ac_t""no" 1>&6
7083 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
7084 echo "configure:7085: checking for cbrt in -lm" >&5
7085 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
7086 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7089 ac_save_LIBS="$LIBS"
7091 cat > conftest.$ac_ext <<EOF
7092 #line 7093 "configure"
7093 #include "confdefs.h"
7094 /* Override any gcc2 internal prototype to avoid an error. */
7095 /* We use char because int might match the return type of a gcc2
7096 builtin and then its argument prototype would still apply. */
7103 if { (eval echo configure:7104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7105 eval "ac_cv_lib_$ac_lib_var=yes"
7107 echo "configure: failed program was:" >&5
7108 cat conftest.$ac_ext >&5
7110 eval "ac_cv_lib_$ac_lib_var=no"
7113 LIBS="$ac_save_LIBS"
7116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7117 echo "$ac_t""yes" 1>&6
7118 cat >> confdefs.h <<\EOF
7123 echo "$ac_t""no" 1>&6
7129 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
7130 # this hackery with HPUXMATHLIB allows us to cope.
7134 if [ -r /lib/pa1.1/libm.a ] ; then
7135 HPUXMATHLIB="-L /lib/pa1.1 -lm"
7140 echo $ac_n "checking for rint""... $ac_c" 1>&6
7141 echo "configure:7142: checking for rint" >&5
7142 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
7143 echo $ac_n "(cached) $ac_c" 1>&6
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7148 /* System header to define __stub macros and hopefully few prototypes,
7149 which can conflict with char rint(); below. */
7151 /* Override any gcc2 internal prototype to avoid an error. */
7152 /* We use char because int might match the return type of a gcc2
7153 builtin and then its argument prototype would still apply. */
7158 /* The GNU C library defines this for functions which it implements
7159 to always fail with ENOSYS. Some functions are actually named
7160 something starting with __ and the normal name is an alias. */
7161 #if defined (__stub_rint) || defined (__stub___rint)
7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7171 eval "ac_cv_func_rint=yes"
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7176 eval "ac_cv_func_rint=no"
7181 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
7182 echo "$ac_t""yes" 1>&6
7183 cat >> confdefs.h <<\EOF
7188 echo "$ac_t""no" 1>&6
7189 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
7190 echo "configure:7191: checking for rint in -lm" >&5
7191 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
7192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7195 ac_save_LIBS="$LIBS"
7196 LIBS="-lm $HPUXMATHLIB $LIBS"
7197 cat > conftest.$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7200 /* Override any gcc2 internal prototype to avoid an error. */
7201 /* We use char because int might match the return type of a gcc2
7202 builtin and then its argument prototype would still apply. */
7209 if { (eval echo configure:7210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7211 eval "ac_cv_lib_$ac_lib_var=yes"
7213 echo "configure: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7216 eval "ac_cv_lib_$ac_lib_var=no"
7219 LIBS="$ac_save_LIBS"
7222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7223 echo "$ac_t""yes" 1>&6
7224 cat >> confdefs.h <<\EOF
7229 echo "$ac_t""no" 1>&6
7236 # Readline versions < 2.1 don't have rl_completion_append_character
7237 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
7238 echo "configure:7239: checking for rl_completion_append_character" >&5
7239 cat > conftest.$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7243 #ifdef HAVE_READLINE_READLINE_H
7244 # include <readline/readline.h>
7245 #elif defined(HAVE_READLINE_H)
7246 # include <readline.h>
7250 rl_completion_append_character = 'x';
7253 if { (eval echo configure:7254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7255 echo "$ac_t""yes" 1>&6
7256 cat >> confdefs.h <<\EOF
7257 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
7261 echo "configure: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7264 echo "$ac_t""no" 1>&6
7268 for ac_func in rl_completion_matches rl_filename_completion_function
7270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7271 echo "configure:7272: checking for $ac_func" >&5
7272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7273 echo $ac_n "(cached) $ac_c" 1>&6
7275 cat > conftest.$ac_ext <<EOF
7276 #line 7277 "configure"
7277 #include "confdefs.h"
7278 /* System header to define __stub macros and hopefully few prototypes,
7279 which can conflict with char $ac_func(); below. */
7281 /* Override any gcc2 internal prototype to avoid an error. */
7282 /* We use char because int might match the return type of a gcc2
7283 builtin and then its argument prototype would still apply. */
7288 /* The GNU C library defines this for functions which it implements
7289 to always fail with ENOSYS. Some functions are actually named
7290 something starting with __ and the normal name is an alias. */
7291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7299 if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7301 eval "ac_cv_func_$ac_func=yes"
7303 echo "configure: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7306 eval "ac_cv_func_$ac_func=no"
7311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7312 echo "$ac_t""yes" 1>&6
7313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7314 cat >> confdefs.h <<EOF
7315 #define $ac_tr_func 1
7319 echo "$ac_t""no" 1>&6
7325 echo $ac_n "checking for finite""... $ac_c" 1>&6
7326 echo "configure:7327: checking for finite" >&5
7327 cat > conftest.$ac_ext <<EOF
7328 #line 7329 "configure"
7329 #include "confdefs.h"
7332 int dummy=finite(1.0);
7335 if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7337 cat >> confdefs.h <<\EOF
7338 #define HAVE_FINITE 1
7340 echo "$ac_t""yes" 1>&6
7342 echo "configure: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7345 echo "$ac_t""no" 1>&6
7349 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7350 echo "configure:7351: checking for sigsetjmp" >&5
7351 cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure"
7353 #include "confdefs.h"
7356 sigjmp_buf x; sigsetjmp(x, 1);
7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7361 cat >> confdefs.h <<\EOF
7362 #define HAVE_SIGSETJMP 1
7364 echo "$ac_t""yes" 1>&6
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 echo "$ac_t""no" 1>&6
7374 # Check whether --enable-syslog was given
7375 if test x"${enable_syslog+set}" = xset; then
7376 case $enable_syslog in
7378 echo $ac_n "checking for syslog""... $ac_c" 1>&6
7379 echo "configure:7380: checking for syslog" >&5
7380 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
7381 echo $ac_n "(cached) $ac_c" 1>&6
7383 cat > conftest.$ac_ext <<EOF
7384 #line 7385 "configure"
7385 #include "confdefs.h"
7386 /* System header to define __stub macros and hopefully few prototypes,
7387 which can conflict with char syslog(); below. */
7389 /* Override any gcc2 internal prototype to avoid an error. */
7390 /* We use char because int might match the return type of a gcc2
7391 builtin and then its argument prototype would still apply. */
7396 /* The GNU C library defines this for functions which it implements
7397 to always fail with ENOSYS. Some functions are actually named
7398 something starting with __ and the normal name is an alias. */
7399 #if defined (__stub_syslog) || defined (__stub___syslog)
7407 if { (eval echo configure:7408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7409 eval "ac_cv_func_syslog=yes"
7411 echo "configure: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7414 eval "ac_cv_func_syslog=no"
7419 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
7420 echo "$ac_t""yes" 1>&6
7421 cat >> confdefs.h <<\EOF
7422 #define ENABLE_SYSLOG 1
7426 echo "$ac_t""no" 1>&6
7427 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
7435 enableval=$enable_syslog
7436 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
7438 esac # $enable_syslog
7445 echo $ac_n "checking for optreset""... $ac_c" 1>&6
7446 echo "configure:7447: checking for optreset" >&5
7447 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
7448 echo $ac_n "(cached) $ac_c" 1>&6
7450 cat > conftest.$ac_ext <<EOF
7451 #line 7452 "configure"
7452 #include "confdefs.h"
7455 extern int optreset; optreset = 1;
7458 if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7460 pgac_cv_var_int_optreset=yes
7462 echo "configure: failed program was:" >&5
7463 cat conftest.$ac_ext >&5
7465 pgac_cv_var_int_optreset=no
7470 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
7471 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
7472 cat >> confdefs.h <<\EOF
7473 #define HAVE_INT_OPTRESET 1
7479 # This test makes sure that run tests work at all. Sometimes a shared
7480 # library is found by the linker, but the runtime linker can't find it.
7481 # This check should come after all modifications of compiler or linker
7482 # variables, and before any other run tests.
7483 echo $ac_n "checking test program""... $ac_c" 1>&6
7484 echo "configure:7485: checking test program" >&5
7485 if test "$cross_compiling" = yes; then
7486 echo "$ac_t""cross-compiling" 1>&6
7488 cat > conftest.$ac_ext <<EOF
7489 #line 7490 "configure"
7490 #include "confdefs.h"
7491 int main() { return 0; }
7493 if { (eval echo configure:7494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7495 echo "$ac_t""ok" 1>&6
7497 echo "configure: failed program was:" >&5
7498 cat conftest.$ac_ext >&5
7500 echo "$ac_t""failed" 1>&6
7501 { echo "configure: error:
7502 *** Could not execute a simple test program. This may be a problem
7503 *** related to locating shared libraries. Check the file 'config.log'
7504 *** for the exact reason." 1>&2; exit 1; }
7512 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
7513 echo "configure:7514: checking whether long int is 64 bits" >&5
7514 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
7515 echo $ac_n "(cached) $ac_c" 1>&6
7517 if test "$cross_compiling" = yes; then
7518 pgac_cv_type_long_int_64=no
7519 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7521 cat > conftest.$ac_ext <<EOF
7522 #line 7523 "configure"
7523 #include "confdefs.h"
7524 typedef long int int64;
7527 * These are globals to discourage the compiler from folding all the
7528 * arithmetic tests down to compile-time constants.
7533 int does_int64_work()
7537 if (sizeof(int64) != 8)
7538 return 0; /* definitely not the right size */
7540 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7548 exit(! does_int64_work());
7551 if { (eval echo configure:7552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7553 pgac_cv_type_long_int_64=yes
7555 echo "configure: failed program was:" >&5
7556 cat conftest.$ac_ext >&5
7558 pgac_cv_type_long_int_64=no
7565 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
7567 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
7568 if test x"$pgac_cv_type_long_int_64" = xyes ; then
7569 cat >> confdefs.h <<\EOF
7570 #define HAVE_LONG_INT_64
7576 if test x"$HAVE_LONG_INT_64" = x"no" ; then
7577 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
7578 echo "configure:7579: checking whether long long int is 64 bits" >&5
7579 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
7580 echo $ac_n "(cached) $ac_c" 1>&6
7582 if test "$cross_compiling" = yes; then
7583 pgac_cv_type_long_long_int_64=no
7584 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7586 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7589 typedef long long int int64;
7592 * These are globals to discourage the compiler from folding all the
7593 * arithmetic tests down to compile-time constants.
7598 int does_int64_work()
7602 if (sizeof(int64) != 8)
7603 return 0; /* definitely not the right size */
7605 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7613 exit(! does_int64_work());
7616 if { (eval echo configure:7617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7618 pgac_cv_type_long_long_int_64=yes
7620 echo "configure: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7623 pgac_cv_type_long_long_int_64=no
7630 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
7632 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
7633 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
7634 cat >> confdefs.h <<\EOF
7635 #define HAVE_LONG_LONG_INT_64
7644 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7645 cat > conftest.$ac_ext <<EOF
7646 #line 7647 "configure"
7647 #include "confdefs.h"
7649 #define INT64CONST(x) x##LL
7650 long long int foo = INT64CONST(0x1234567890123456);
7656 if { (eval echo configure:7657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7658 cat >> confdefs.h <<\EOF
7659 #define HAVE_LL_CONSTANTS 1
7663 echo "configure: failed program was:" >&5
7664 cat conftest.$ac_ext >&5
7671 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7672 if [ x$SNPRINTF = x ] ; then
7673 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
7674 echo "configure:7675: checking whether snprintf handles 'long long int' as %lld" >&5
7675 if test "$cross_compiling" = yes; then
7676 echo "$ac_t""assuming not on target machine" 1>&6
7677 # Force usage of our own snprintf, since we cannot test foreign snprintf
7678 SNPRINTF='snprintf.o'
7679 INT64_FORMAT='"%lld"'
7682 cat > conftest.$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7686 typedef long long int int64;
7687 #define INT64_FORMAT "%lld"
7692 int does_int64_snprintf_work()
7697 if (sizeof(int64) != 8)
7698 return 0; /* doesn't look like the right size */
7701 snprintf(buf, 100, INT64_FORMAT, c);
7702 if (strcmp(buf, "800000140000005") != 0)
7703 return 0; /* either multiply or snprintf is busted */
7707 exit(! does_int64_snprintf_work());
7710 if { (eval echo configure:7711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7712 echo "$ac_t""yes" 1>&6
7713 INT64_FORMAT='"%lld"'
7716 echo "configure: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7719 echo "$ac_t""no" 1>&6
7720 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7721 echo "configure:7722: checking whether snprintf handles 'long long int' as %qd" >&5
7722 if test "$cross_compiling" = yes; then
7723 echo "$ac_t""assuming not on target machine" 1>&6
7724 # Force usage of our own snprintf, since we cannot test foreign snprintf
7725 SNPRINTF='snprintf.o'
7726 INT64_FORMAT='"%lld"'
7729 cat > conftest.$ac_ext <<EOF
7730 #line 7731 "configure"
7731 #include "confdefs.h"
7733 typedef long long int int64;
7734 #define INT64_FORMAT "%qd"
7739 int does_int64_snprintf_work()
7744 if (sizeof(int64) != 8)
7745 return 0; /* doesn't look like the right size */
7748 snprintf(buf, 100, INT64_FORMAT, c);
7749 if (strcmp(buf, "800000140000005") != 0)
7750 return 0; /* either multiply or snprintf is busted */
7754 exit(! does_int64_snprintf_work());
7757 if { (eval echo configure:7758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7759 echo "$ac_t""yes" 1>&6
7760 INT64_FORMAT='"%qd"'
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7766 echo "$ac_t""no" 1>&6
7767 # Force usage of our own snprintf, since system snprintf is broken
7768 SNPRINTF='snprintf.o'
7769 INT64_FORMAT='"%lld"'
7780 # here if we previously decided we needed to use our own snprintf
7781 INT64_FORMAT='"%lld"'
7784 # Here if we are not using 'long long int' at all
7785 INT64_FORMAT='"%ld"'
7788 cat >> confdefs.h <<EOF
7789 #define INT64_FORMAT $INT64_FORMAT
7794 for ac_func in strtoll strtoq
7796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7797 echo "configure:7798: checking for $ac_func" >&5
7798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7799 echo $ac_n "(cached) $ac_c" 1>&6
7801 cat > conftest.$ac_ext <<EOF
7802 #line 7803 "configure"
7803 #include "confdefs.h"
7804 /* System header to define __stub macros and hopefully few prototypes,
7805 which can conflict with char $ac_func(); below. */
7807 /* Override any gcc2 internal prototype to avoid an error. */
7808 /* We use char because int might match the return type of a gcc2
7809 builtin and then its argument prototype would still apply. */
7814 /* The GNU C library defines this for functions which it implements
7815 to always fail with ENOSYS. Some functions are actually named
7816 something starting with __ and the normal name is an alias. */
7817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7825 if { (eval echo configure:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7827 eval "ac_cv_func_$ac_func=yes"
7829 echo "configure: failed program was:" >&5
7830 cat conftest.$ac_ext >&5
7832 eval "ac_cv_func_$ac_func=no"
7837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7838 echo "$ac_t""yes" 1>&6
7839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7840 cat >> confdefs.h <<EOF
7841 #define $ac_tr_func 1
7845 echo "$ac_t""no" 1>&6
7849 for ac_func in strtoull strtouq
7851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7852 echo "configure:7853: checking for $ac_func" >&5
7853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7854 echo $ac_n "(cached) $ac_c" 1>&6
7856 cat > conftest.$ac_ext <<EOF
7857 #line 7858 "configure"
7858 #include "confdefs.h"
7859 /* System header to define __stub macros and hopefully few prototypes,
7860 which can conflict with char $ac_func(); below. */
7862 /* Override any gcc2 internal prototype to avoid an error. */
7863 /* We use char because int might match the return type of a gcc2
7864 builtin and then its argument prototype would still apply. */
7869 /* The GNU C library defines this for functions which it implements
7870 to always fail with ENOSYS. Some functions are actually named
7871 something starting with __ and the normal name is an alias. */
7872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7880 if { (eval echo configure:7881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7882 eval "ac_cv_func_$ac_func=yes"
7884 echo "configure: failed program was:" >&5
7885 cat conftest.$ac_ext >&5
7887 eval "ac_cv_func_$ac_func=no"
7892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7893 echo "$ac_t""yes" 1>&6
7894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7895 cat >> confdefs.h <<EOF
7896 #define $ac_tr_func 1
7900 echo "$ac_t""no" 1>&6
7905 echo $ac_n "checking for atexit""... $ac_c" 1>&6
7906 echo "configure:7907: checking for atexit" >&5
7907 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
7908 echo $ac_n "(cached) $ac_c" 1>&6
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 /* System header to define __stub macros and hopefully few prototypes,
7914 which can conflict with char atexit(); below. */
7916 /* Override any gcc2 internal prototype to avoid an error. */
7917 /* We use char because int might match the return type of a gcc2
7918 builtin and then its argument prototype would still apply. */
7923 /* The GNU C library defines this for functions which it implements
7924 to always fail with ENOSYS. Some functions are actually named
7925 something starting with __ and the normal name is an alias. */
7926 #if defined (__stub_atexit) || defined (__stub___atexit)
7934 if { (eval echo configure:7935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7936 eval "ac_cv_func_atexit=yes"
7938 echo "configure: failed program was:" >&5
7939 cat conftest.$ac_ext >&5
7941 eval "ac_cv_func_atexit=no"
7946 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
7947 echo "$ac_t""yes" 1>&6
7948 cat >> confdefs.h <<\EOF
7949 #define HAVE_ATEXIT 1
7953 echo "$ac_t""no" 1>&6
7954 for ac_func in on_exit
7956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7957 echo "configure:7958: checking for $ac_func" >&5
7958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7959 echo $ac_n "(cached) $ac_c" 1>&6
7961 cat > conftest.$ac_ext <<EOF
7962 #line 7963 "configure"
7963 #include "confdefs.h"
7964 /* System header to define __stub macros and hopefully few prototypes,
7965 which can conflict with char $ac_func(); below. */
7967 /* Override any gcc2 internal prototype to avoid an error. */
7968 /* We use char because int might match the return type of a gcc2
7969 builtin and then its argument prototype would still apply. */
7974 /* The GNU C library defines this for functions which it implements
7975 to always fail with ENOSYS. Some functions are actually named
7976 something starting with __ and the normal name is an alias. */
7977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7985 if { (eval echo configure:7986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7987 eval "ac_cv_func_$ac_func=yes"
7989 echo "configure: failed program was:" >&5
7990 cat conftest.$ac_ext >&5
7992 eval "ac_cv_func_$ac_func=no"
7997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7998 echo "$ac_t""yes" 1>&6
7999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8000 cat >> confdefs.h <<EOF
8001 #define $ac_tr_func 1
8003 cat >> confdefs.h <<\EOF
8004 #define HAVE_ON_EXIT 1
8008 echo "$ac_t""no" 1>&6
8009 { echo "configure: error: neither atexit() nor on_exit() found" 1>&2; exit 1; }
8017 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
8018 echo "configure:8019: checking size of unsigned long" >&5
8019 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
8020 echo $ac_n "(cached) $ac_c" 1>&6
8022 if test "$cross_compiling" = yes; then
8023 ac_cv_sizeof_unsigned_long=4
8025 cat > conftest.$ac_ext <<EOF
8026 #line 8027 "configure"
8027 #include "confdefs.h"
8031 FILE *f=fopen("conftestval", "w");
8033 fprintf(f, "%d\n", sizeof(unsigned long));
8037 if { (eval echo configure:8038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8039 ac_cv_sizeof_unsigned_long=`cat conftestval`
8041 echo "configure: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8044 ac_cv_sizeof_unsigned_long=0
8050 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
8051 cat >> confdefs.h <<EOF
8052 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8056 cat >> confdefs.h <<EOF
8057 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
8062 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
8063 echo "configure:8064: checking alignment of short" >&5
8064 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
8065 echo $ac_n "(cached) $ac_c" 1>&6
8067 if test "$cross_compiling" = yes; then
8068 pgac_cv_alignof_short='sizeof(short)'
8070 cat > conftest.$ac_ext <<EOF
8071 #line 8072 "configure"
8072 #include "confdefs.h"
8074 struct { char filler; short field; } mystruct;
8077 FILE *f=fopen("conftestval", "w");
8079 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8083 if { (eval echo configure:8084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8085 pgac_cv_alignof_short=`cat conftestval`
8087 echo "configure: failed program was:" >&5
8088 cat conftest.$ac_ext >&5
8090 pgac_cv_alignof_short='sizeof(short)'
8096 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
8097 cat >> confdefs.h <<EOF
8098 #define ALIGNOF_SHORT $pgac_cv_alignof_short
8102 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
8103 echo "configure:8104: checking alignment of int" >&5
8104 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8107 if test "$cross_compiling" = yes; then
8108 pgac_cv_alignof_int='sizeof(int)'
8110 cat > conftest.$ac_ext <<EOF
8111 #line 8112 "configure"
8112 #include "confdefs.h"
8114 struct { char filler; int field; } mystruct;
8117 FILE *f=fopen("conftestval", "w");
8119 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8123 if { (eval echo configure:8124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8125 pgac_cv_alignof_int=`cat conftestval`
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8130 pgac_cv_alignof_int='sizeof(int)'
8136 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
8137 cat >> confdefs.h <<EOF
8138 #define ALIGNOF_INT $pgac_cv_alignof_int
8142 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
8143 echo "configure:8144: checking alignment of long" >&5
8144 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
8145 echo $ac_n "(cached) $ac_c" 1>&6
8147 if test "$cross_compiling" = yes; then
8148 pgac_cv_alignof_long='sizeof(long)'
8150 cat > conftest.$ac_ext <<EOF
8151 #line 8152 "configure"
8152 #include "confdefs.h"
8154 struct { char filler; long field; } mystruct;
8157 FILE *f=fopen("conftestval", "w");
8159 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8163 if { (eval echo configure:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8165 pgac_cv_alignof_long=`cat conftestval`
8167 echo "configure: failed program was:" >&5
8168 cat conftest.$ac_ext >&5
8170 pgac_cv_alignof_long='sizeof(long)'
8176 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
8177 cat >> confdefs.h <<EOF
8178 #define ALIGNOF_LONG $pgac_cv_alignof_long
8182 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
8183 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
8184 echo "configure:8185: checking alignment of long long int" >&5
8185 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
8186 echo $ac_n "(cached) $ac_c" 1>&6
8188 if test "$cross_compiling" = yes; then
8189 pgac_cv_alignof_long_long_int='sizeof(long long int)'
8191 cat > conftest.$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8195 struct { char filler; long long int field; } mystruct;
8198 FILE *f=fopen("conftestval", "w");
8200 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8204 if { (eval echo configure:8205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8206 pgac_cv_alignof_long_long_int=`cat conftestval`
8208 echo "configure: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8211 pgac_cv_alignof_long_long_int='sizeof(long long int)'
8217 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
8218 cat >> confdefs.h <<EOF
8219 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
8224 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
8225 echo "configure:8226: checking alignment of double" >&5
8226 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8229 if test "$cross_compiling" = yes; then
8230 pgac_cv_alignof_double='sizeof(double)'
8232 cat > conftest.$ac_ext <<EOF
8233 #line 8234 "configure"
8234 #include "confdefs.h"
8236 struct { char filler; double field; } mystruct;
8239 FILE *f=fopen("conftestval", "w");
8241 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8245 if { (eval echo configure:8246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8247 pgac_cv_alignof_double=`cat conftestval`
8249 echo "configure: failed program was:" >&5
8250 cat conftest.$ac_ext >&5
8252 pgac_cv_alignof_double='sizeof(double)'
8258 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
8259 cat >> confdefs.h <<EOF
8260 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
8266 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
8267 MAX_ALIGNOF=$pgac_cv_alignof_long
8268 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
8269 MAX_ALIGNOF=$pgac_cv_alignof_double
8271 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
8272 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
8275 MAX_ALIGNOF="$pgac_cv_alignof_double"
8277 cat >> confdefs.h <<EOF
8278 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
8282 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
8283 echo "configure:8284: checking for POSIX signal interface" >&5
8284 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
8285 echo $ac_n "(cached) $ac_c" 1>&6
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8293 struct sigaction act, oact;
8294 sigemptyset(&act.sa_mask);
8295 act.sa_flags = SA_RESTART;
8296 sigaction(0, &act, &oact);
8299 if { (eval echo configure:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8301 pgac_cv_func_posix_signals=yes
8303 echo "configure: failed program was:" >&5
8304 cat conftest.$ac_ext >&5
8306 pgac_cv_func_posix_signals=no
8311 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
8312 if test x"$pgac_cv_func_posix_signals" = xyes ; then
8313 cat >> confdefs.h <<\EOF
8314 #define HAVE_POSIX_SIGNALS
8318 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
8322 # Check for Tcl configuration script tclConfig.sh
8323 if test "$with_tcl" = yes; then
8324 for ac_prog in tclsh tcl
8326 # Extract the first word of "$ac_prog", so it can be a program name with args.
8327 set dummy $ac_prog; ac_word=$2
8328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8329 echo "configure:8330: checking for $ac_word" >&5
8330 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8335 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8338 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
8341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8343 for ac_dir in $ac_dummy; do
8344 test -z "$ac_dir" && ac_dir=.
8345 if test -f $ac_dir/$ac_word; then
8346 ac_cv_path_TCLSH="$ac_dir/$ac_word"
8354 TCLSH="$ac_cv_path_TCLSH"
8355 if test -n "$TCLSH"; then
8356 echo "$ac_t""$TCLSH" 1>&6
8358 echo "$ac_t""no" 1>&6
8361 test -n "$TCLSH" && break
8364 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
8365 echo "configure:8366: checking for tclConfig.sh" >&5
8366 # Let user override test
8367 if test -z "$TCL_CONFIG_SH"; then
8368 pgac_test_dirs="$with_tclconfig"
8370 set X $pgac_test_dirs; shift
8371 if test $# -eq 0; then
8372 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
8373 set X `echo 'puts $auto_path' | $TCLSH`; shift
8377 if test -r "$pgac_dir/tclConfig.sh"; then
8378 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
8384 if test -z "$TCL_CONFIG_SH"; then
8385 echo "$ac_t""no" 1>&6
8386 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
8388 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
8395 # Check for Tk configuration script tkConfig.sh
8396 if test "$with_tk" = yes; then
8397 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
8398 echo "configure:8399: checking for tkConfig.sh" >&5
8399 # Let user override test
8400 if test -z "$TK_CONFIG_SH"; then
8401 pgac_test_dirs="$with_tkconfig $with_tclconfig"
8403 set X $pgac_test_dirs; shift
8404 if test $# -eq 0; then
8405 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
8406 set X `echo 'puts $auto_path' | $TCLSH`; shift
8410 if test -r "$pgac_dir/tkConfig.sh"; then
8411 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
8417 if test -z "$TK_CONFIG_SH"; then
8418 echo "$ac_t""no" 1>&6
8419 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
8421 echo "$ac_t""$TK_CONFIG_SH" 1>&6
8430 # Check for DocBook and tools
8432 for ac_prog in onsgmls nsgmls
8434 # Extract the first word of "$ac_prog", so it can be a program name with args.
8435 set dummy $ac_prog; ac_word=$2
8436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8437 echo "configure:8438: checking for $ac_word" >&5
8438 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
8439 echo $ac_n "(cached) $ac_c" 1>&6
8441 if test -n "$NSGMLS"; then
8442 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
8444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8446 for ac_dir in $ac_dummy; do
8447 test -z "$ac_dir" && ac_dir=.
8448 if test -f $ac_dir/$ac_word; then
8449 ac_cv_prog_NSGMLS="$ac_prog"
8456 NSGMLS="$ac_cv_prog_NSGMLS"
8457 if test -n "$NSGMLS"; then
8458 echo "$ac_t""$NSGMLS" 1>&6
8460 echo "$ac_t""no" 1>&6
8463 test -n "$NSGMLS" && break
8466 # If you don't have nsgmls you won't get very far, so save the cycles.
8467 if test -n "$NSGMLS"; then
8468 for ac_prog in openjade jade
8470 # Extract the first word of "$ac_prog", so it can be a program name with args.
8471 set dummy $ac_prog; ac_word=$2
8472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8473 echo "configure:8474: checking for $ac_word" >&5
8474 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
8475 echo $ac_n "(cached) $ac_c" 1>&6
8477 if test -n "$JADE"; then
8478 ac_cv_prog_JADE="$JADE" # Let the user override the test.
8480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8482 for ac_dir in $ac_dummy; do
8483 test -z "$ac_dir" && ac_dir=.
8484 if test -f $ac_dir/$ac_word; then
8485 ac_cv_prog_JADE="$ac_prog"
8492 JADE="$ac_cv_prog_JADE"
8493 if test -n "$JADE"; then
8494 echo "$ac_t""$JADE" 1>&6
8496 echo "$ac_t""no" 1>&6
8499 test -n "$JADE" && break
8503 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
8504 echo "configure:8505: checking for DocBook V3.1" >&5
8505 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
8506 echo $ac_n "(cached) $ac_c" 1>&6
8508 cat >conftest.sgml <<EOF
8509 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
8513 <title>random</title>
8515 <title>testsect</title>
8522 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
8523 if test $? -eq 0; then
8524 pgac_cv_check_docbook=yes
8526 pgac_cv_check_docbook=no
8531 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
8533 have_docbook=$pgac_cv_check_docbook
8536 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
8537 echo "configure:8538: checking for DocBook stylesheets" >&5
8538 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
8539 echo $ac_n "(cached) $ac_c" 1>&6
8541 if test -n "$DOCBOOKSTYLE"; then
8542 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
8544 for pgac_prefix in /usr /usr/local /opt; do
8545 for pgac_infix in share lib; do
8546 for pgac_postfix in \
8547 sgml/stylesheets/nwalsh-modular \
8548 sgml/stylesheets/docbook \
8549 sgml/docbook/dsssl/modular
8551 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
8552 if test -r "$pgac_candidate/html/docbook.dsl" \
8553 && test -r "$pgac_candidate/print/docbook.dsl"
8555 pgac_cv_path_stylesheets=$pgac_candidate
8564 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
8566 if test -n "$DOCBOOKSTYLE"; then
8567 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
8569 echo "$ac_t""no" 1>&6
8571 for ac_prog in sgmlspl
8573 # Extract the first word of "$ac_prog", so it can be a program name with args.
8574 set dummy $ac_prog; ac_word=$2
8575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8576 echo "configure:8577: checking for $ac_word" >&5
8577 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
8578 echo $ac_n "(cached) $ac_c" 1>&6
8580 if test -n "$SGMLSPL"; then
8581 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
8583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8585 for ac_dir in $ac_dummy; do
8586 test -z "$ac_dir" && ac_dir=.
8587 if test -f $ac_dir/$ac_word; then
8588 ac_cv_prog_SGMLSPL="$ac_prog"
8595 SGMLSPL="$ac_cv_prog_SGMLSPL"
8596 if test -n "$SGMLSPL"; then
8597 echo "$ac_t""$SGMLSPL" 1>&6
8599 echo "$ac_t""no" 1>&6
8602 test -n "$SGMLSPL" && break
8610 # prepare build tree if outside source tree
8611 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
8612 # Note 2: /bin/pwd might be better than shell's built-in at getting
8613 # a symlink-free name.
8614 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
8617 abs_top_srcdir=`cd $srcdir && pwd`
8618 echo $ac_n "preparing build tree... $ac_c" 1>&6
8619 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "." \
8620 || { echo "configure: error: failed" 1>&2; exit 1; }
8621 echo "$ac_t""done" 1>&6
8625 cat > confcache <<\EOF
8626 # This file is a shell script that caches the results of configure
8627 # tests run on this system so they can be shared between configure
8628 # scripts and configure runs. It is not useful on other systems.
8629 # If it contains results you don't want to keep, you may remove or edit it.
8631 # By default, configure uses ./config.cache as the cache file,
8632 # creating it if it does not exist already. You can give configure
8633 # the --cache-file=FILE option to use a different cache file; that is
8634 # what configure does when it calls configure scripts in
8635 # subdirectories, so they share the cache.
8636 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8637 # config.status only pays attention to the cache file if you give it the
8638 # --recheck option to rerun configure.
8641 # The following way of writing the cache mishandles newlines in values,
8642 # but we know of no workaround that is simple, portable, and efficient.
8643 # So, don't put newlines in cache variables' values.
8644 # Ultrix sh set writes to stderr and can't be redirected directly,
8645 # and sets the high bit in the cache file unless we assign to the vars.
8647 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8649 # `set' does not quote correctly, so add quotes (double-quote substitution
8650 # turns \\\\ into \\, and sed turns \\ into \).
8652 -e "s/'/'\\\\''/g" \
8653 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8656 # `set' quotes correctly as required by POSIX, so do not add quotes.
8657 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8660 if cmp -s $cache_file confcache; then
8663 if test -w $cache_file; then
8664 echo "updating cache $cache_file"
8665 cat confcache > $cache_file
8667 echo "not updating unwritable cache $cache_file"
8672 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8674 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8675 # Let make expand exec_prefix.
8676 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8678 # Any assignment to VPATH causes Sun make to only execute
8679 # the first set of double-colon rules, so remove it if not needed.
8680 # If there is a colon in the path, we need to keep it.
8681 if test "x$srcdir" = x.; then
8682 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8685 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8687 DEFS=-DHAVE_CONFIG_H
8689 # Without the "./", some shells look in PATH for config.status.
8690 : ${CONFIG_STATUS=./config.status}
8692 echo creating $CONFIG_STATUS
8693 rm -f $CONFIG_STATUS
8694 cat > $CONFIG_STATUS <<EOF
8696 # Generated automatically by configure.
8697 # Run this file to recreate the current configuration.
8698 # This directory was configured as follows,
8699 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8701 # $0 $ac_configure_args
8703 # Compiler output produced by configure, useful for debugging
8704 # configure, is in ./config.log if it exists.
8706 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8709 case "\$ac_option" in
8710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8711 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8712 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8713 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8714 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8716 -help | --help | --hel | --he | --h)
8717 echo "\$ac_cs_usage"; exit 0 ;;
8718 *) echo "\$ac_cs_usage"; exit 1 ;;
8722 ac_given_srcdir=$srcdir
8724 trap 'rm -fr `echo "
8728 src/backend/port/Makefile
8729 src/include/pg_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8731 cat >> $CONFIG_STATUS <<EOF
8733 # Protect against being on the right side of a sed subst in config.status.
8734 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8735 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8739 s%@CFLAGS@%$CFLAGS%g
8740 s%@CPPFLAGS@%$CPPFLAGS%g
8741 s%@CXXFLAGS@%$CXXFLAGS%g
8742 s%@FFLAGS@%$FFLAGS%g
8744 s%@LDFLAGS@%$LDFLAGS%g
8746 s%@exec_prefix@%$exec_prefix%g
8747 s%@prefix@%$prefix%g
8748 s%@program_transform_name@%$program_transform_name%g
8749 s%@bindir@%$bindir%g
8750 s%@sbindir@%$sbindir%g
8751 s%@libexecdir@%$libexecdir%g
8752 s%@datadir@%$datadir%g
8753 s%@sysconfdir@%$sysconfdir%g
8754 s%@sharedstatedir@%$sharedstatedir%g
8755 s%@localstatedir@%$localstatedir%g
8756 s%@libdir@%$libdir%g
8757 s%@includedir@%$includedir%g
8758 s%@oldincludedir@%$oldincludedir%g
8759 s%@docdir@%$docdir%g
8760 s%@mandir@%$mandir%g
8761 s%@VERSION@%$VERSION%g
8763 s%@host_alias@%$host_alias%g
8764 s%@host_cpu@%$host_cpu%g
8765 s%@host_vendor@%$host_vendor%g
8766 s%@host_os@%$host_os%g
8767 s%@PORTNAME@%$PORTNAME%g
8769 s%@MULTIBYTE@%$MULTIBYTE%g
8770 s%@enable_nls@%$enable_nls%g
8771 s%@WANTED_LANGUAGES@%$WANTED_LANGUAGES%g
8772 s%@default_port@%$default_port%g
8773 s%@enable_shared@%$enable_shared%g
8774 s%@enable_rpath@%$enable_rpath%g
8776 s%@EXEEXT@%$EXEEXT%g
8779 s%@autodepend@%$autodepend%g
8780 s%@INCLUDES@%$INCLUDES%g
8781 s%@with_tcl@%$with_tcl%g
8782 s%@with_tk@%$with_tk%g
8783 s%@with_perl@%$with_perl%g
8784 s%@with_python@%$with_python%g
8786 s%@with_java@%$with_java%g
8787 s%@with_krb4@%$with_krb4%g
8788 s%@with_krb5@%$with_krb5%g
8789 s%@krb_srvtab@%$krb_srvtab%g
8790 s%@with_pam@%$with_pam%g
8791 s%@with_openssl@%$with_openssl%g
8792 s%@enable_odbc@%$enable_odbc%g
8793 s%@with_unixodbc@%$with_unixodbc%g
8794 s%@with_iodbc@%$with_iodbc%g
8795 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
8796 s%@ELF_SYS@%$ELF_SYS%g
8798 s%@CXXCPP@%$CXXCPP%g
8800 s%@with_CXX@%$with_CXX%g
8803 s%@FLEXFLAGS@%$FLEXFLAGS%g
8806 s%@with_gnu_ld@%$with_gnu_ld%g
8807 s%@ld_R_works@%$ld_R_works%g
8808 s%@RANLIB@%$RANLIB%g
8809 s%@LORDER@%$LORDER%g
8812 s%@YFLAGS@%$YFLAGS%g
8815 s%@perl_installsitearch@%$perl_installsitearch%g
8816 s%@perl_installsitelib@%$perl_installsitelib%g
8817 s%@perl_installman3dir@%$perl_installman3dir%g
8818 s%@PYTHON@%$PYTHON%g
8819 s%@python_version@%$python_version%g
8820 s%@python_prefix@%$python_prefix%g
8821 s%@python_execprefix@%$python_execprefix%g
8822 s%@python_configdir@%$python_configdir%g
8823 s%@python_moduledir@%$python_moduledir%g
8824 s%@python_moduleexecdir@%$python_moduleexecdir%g
8825 s%@python_includespec@%$python_includespec%g
8826 s%@python_libspec@%$python_libspec%g
8827 s%@MSGFMT@%$MSGFMT%g
8828 s%@MSGMERGE@%$MSGMERGE%g
8829 s%@XGETTEXT@%$XGETTEXT%g
8830 s%@localedir@%$localedir%g
8831 s%@SNPRINTF@%$SNPRINTF%g
8833 s%@GETRUSAGE@%$GETRUSAGE%g
8834 s%@SRANDOM@%$SRANDOM%g
8835 s%@GETHOSTNAME@%$GETHOSTNAME%g
8836 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
8837 s%@INET_ATON@%$INET_ATON%g
8838 s%@STRERROR@%$STRERROR%g
8839 s%@STRDUP@%$STRDUP%g
8840 s%@STRTOL@%$STRTOL%g
8841 s%@STRTOUL@%$STRTOUL%g
8842 s%@STRCASECMP@%$STRCASECMP%g
8843 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
8844 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
8846 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
8847 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
8848 s%@NSGMLS@%$NSGMLS%g
8850 s%@have_docbook@%$have_docbook%g
8851 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
8852 s%@SGMLSPL@%$SGMLSPL%g
8853 s%@abs_top_srcdir@%$abs_top_srcdir%g
8858 cat >> $CONFIG_STATUS <<\EOF
8860 # Split the substitutions into bite-sized pieces for seds with
8861 # small command number limits, like on Digital OSF/1 and HP-UX.
8862 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8863 ac_file=1 # Number of current file.
8864 ac_beg=1 # First line for current file.
8865 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8868 while $ac_more_lines; do
8869 if test $ac_beg -gt 1; then
8870 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8872 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8874 if test ! -s conftest.s$ac_file; then
8876 rm -f conftest.s$ac_file
8878 if test -z "$ac_sed_cmds"; then
8879 ac_sed_cmds="sed -f conftest.s$ac_file"
8881 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8883 ac_file=`expr $ac_file + 1`
8885 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8888 if test -z "$ac_sed_cmds"; then
8893 cat >> $CONFIG_STATUS <<EOF
8895 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
8898 src/backend/port/Makefile
8901 cat >> $CONFIG_STATUS <<\EOF
8902 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8903 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8905 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8906 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8907 *) ac_file_in="${ac_file}.in" ;;
8910 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8912 # Remove last slash and all that follows it. Not all systems have dirname.
8913 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8914 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8915 # The file is in a subdirectory.
8916 test ! -d "$ac_dir" && mkdir "$ac_dir"
8917 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8918 # A "../" for each directory in $ac_dir_suffix.
8919 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8921 ac_dir_suffix= ac_dots=
8924 case "$ac_given_srcdir" in
8926 if test -z "$ac_dots"; then top_srcdir=.
8927 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8928 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8930 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8931 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8935 echo creating "$ac_file"
8937 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8939 *Makefile*) ac_comsub="1i\\
8940 # $configure_input" ;;
8944 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8946 s%@configure_input@%$configure_input%g
8947 s%@srcdir@%$srcdir%g
8948 s%@top_srcdir@%$top_srcdir%g
8949 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8953 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8954 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8956 # ac_d sets the value in "#define NAME VALUE" lines.
8957 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8958 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8961 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8962 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8963 ac_uB='\([ ]\)%\1#\2define\3'
8966 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8967 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8968 ac_eB='$%\1#\2define\3'
8972 if test "${CONFIG_HEADERS+set}" != set; then
8974 cat >> $CONFIG_STATUS <<EOF
8975 CONFIG_HEADERS="src/include/pg_config.h"
8977 cat >> $CONFIG_STATUS <<\EOF
8979 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8982 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8983 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8984 *) ac_file_in="${ac_file}.in" ;;
8987 echo creating $ac_file
8989 rm -f conftest.frag conftest.in conftest.out
8990 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8991 cat $ac_file_inputs > conftest.in
8995 # Transform confdefs.h into a sed script conftest.vals that substitutes
8996 # the proper values into config.h.in to produce config.h. And first:
8997 # Protect against being on the right side of a sed subst in config.status.
8998 # Protect against being in an unquoted here document in config.status.
9000 cat > conftest.hdr <<\EOF
9003 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9007 sed -n -f conftest.hdr confdefs.h > conftest.vals
9010 # This sed command replaces #undef with comments. This is necessary, for
9011 # example, in the case of _POSIX_SOURCE, which is predefined and required
9012 # on some systems where configure will not decide to define it.
9013 cat >> conftest.vals <<\EOF
9014 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9017 # Break up conftest.vals because some shells have a limit on
9018 # the size of here documents, and old seds have small limits too.
9023 ac_lines=`grep -c . conftest.vals`
9024 # grep -c gives empty output for an empty file on some AIX systems.
9025 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9026 # Write a limited-size here document to conftest.frag.
9027 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9028 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9030 sed -f conftest.frag conftest.in > conftest.out
9032 mv conftest.out conftest.in
9034 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9036 mv conftest.tail conftest.vals
9040 cat >> $CONFIG_STATUS <<\EOF
9041 rm -f conftest.frag conftest.h
9042 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9043 cat conftest.in >> conftest.h
9045 if cmp -s $ac_file conftest.h 2>/dev/null; then
9046 echo "$ac_file is unchanged"
9049 # Remove last slash and all that follows it. Not all systems have dirname.
9050 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9051 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9052 # The file is in a subdirectory.
9053 test ! -d "$ac_dir" && mkdir "$ac_dir"
9056 mv conftest.h $ac_file
9062 cat >> $CONFIG_STATUS <<EOF
9063 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}"
9064 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/pg_config_os.h src/Makefile.port src/backend/port/tas.s"
9067 cat >> $CONFIG_STATUS <<\EOF
9068 srcdir=$ac_given_srcdir
9069 while test -n "$ac_sources"; do
9070 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9071 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9073 echo "linking $srcdir/$ac_source to $ac_dest"
9075 if test ! -r $srcdir/$ac_source; then
9076 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9080 # Make relative symlinks.
9081 # Remove last slash and all that follows it. Not all systems have dirname.
9082 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9083 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9084 # The dest file is in a subdirectory.
9085 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9086 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9087 # A "../" for each directory in $ac_dest_dir_suffix.
9088 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9090 ac_dest_dir_suffix= ac_dots=
9094 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9095 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9098 # Make a symlink if possible; otherwise try a hard link.
9099 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9100 ln $srcdir/$ac_source $ac_dest; then :
9102 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9106 cat >> $CONFIG_STATUS <<EOF
9109 cat >> $CONFIG_STATUS <<\EOF
9111 # Update timestamp for pg_config.h (see Makefile.global)
9112 test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
9116 chmod +x $CONFIG_STATUS
9117 rm -fr confdefs* $ac_clean_files
9118 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1