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 build with PAM support"
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|JOHAB|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|LATIN6|LATIN7|LATIN8|LATIN9|LATIN10|WIN1256|TCVN|WIN874|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, JOHAB,
903 UNICODE, MULE_INTERNAL,
904 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
905 LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
906 WIN1256, TCVN, WIN874,
908 ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
909 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
913 esac # $enable_multibyte
918 if test "$enable_multibyte" = yes; then
920 cat >> confdefs.h <<\EOF
924 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
927 echo "$ac_t""no" 1>&6
936 echo $ac_n "checking whether NLS is wanted""... $ac_c" 1>&6
937 echo "configure:937: checking whether NLS is wanted" >&5
938 # Check whether --enable-nls was given
939 if test x"${enable_nls+set}" = xset; then
948 enableval=$enable_nls
950 WANTED_LANGUAGES=$enableval
957 if test "$enable_nls" = yes; then
958 cat >> confdefs.h <<\EOF
964 echo "$ac_t""$enable_nls" 1>&6
969 # Default port number (--with-pgport), default 5432
971 echo $ac_n "checking for default port number""... $ac_c" 1>&6
972 echo "configure:972: checking for default port number" >&5
973 # Check whether --with-pgport was given
974 if test x"${with_pgport+set}" = xset; then
977 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
980 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
984 default_port=$withval
990 echo "$ac_t""$default_port" 1>&6
991 # Need both of these because some places want an integer and some a string
992 cat >> confdefs.h <<EOF
993 #define DEF_PGPORT ${default_port}
996 cat >> confdefs.h <<EOF
997 #define DEF_PGPORT_STR "${default_port}"
1003 # Maximum number of allowed connections (--with-maxbackends), default 32
1005 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
1006 echo "configure:1006: checking for default soft limit on number of connections" >&5
1007 # Check whether --with-maxbackends was given
1008 if test x"${with_maxbackends+set}" = xset; then
1009 case $with_maxbackends in
1011 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1014 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1016 esac # $with_maxbackends
1020 echo "$ac_t""$with_maxbackends" 1>&6
1021 cat >> confdefs.h <<EOF
1022 #define DEF_MAXBACKENDS $with_maxbackends
1028 # Option to disable shared libraries
1030 # Check whether --enable-shared was given
1031 if test x"${enable_shared+set}" = xset; then
1032 case $enable_shared in
1040 enableval=$enable_shared
1041 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
1043 esac # $enable_shared
1051 # '-rpath'-like feature can be disabled
1053 # Check whether --enable-rpath was given
1054 if test x"${enable_rpath+set}" = xset; then
1055 case $enable_rpath in
1063 enableval=$enable_rpath
1064 { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
1066 esac # $enable_rpath
1075 # --enable-debug adds -g to compiler flags
1077 # Check whether --enable-debug was given
1078 if test x"${enable_debug+set}" = xset; then
1079 case $enable_debug in
1087 enableval=$enable_debug
1088 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1090 esac # $enable_debug
1101 # For historical reasons you can also use --with-CC to specify the C compiler
1102 # to use, although the standard way to do this is to set the CC environment
1104 # Check whether --with-CC was given
1105 if test x"${with_CC+set}" = xset; then
1108 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1111 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1120 # On AIX, default compiler to xlc.
1121 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1123 # Save CFLAGS from the environment
1124 has_environ_CFLAGS="${CFLAGS+yes}"
1127 # Extract the first word of "gcc", so it can be a program name with args.
1128 set dummy gcc; ac_word=$2
1129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1130 echo "configure:1130: checking for $ac_word" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 if test -n "$CC"; then
1135 ac_cv_prog_CC="$CC" # Let the user override the test.
1137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1139 for ac_dir in $ac_dummy; do
1140 test -z "$ac_dir" && ac_dir=.
1141 if test -f $ac_dir/$ac_word; then
1150 if test -n "$CC"; then
1151 echo "$ac_t""$CC" 1>&6
1153 echo "$ac_t""no" 1>&6
1156 if test -z "$CC"; then
1157 # Extract the first word of "cc", so it can be a program name with args.
1158 set dummy cc; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1160: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$CC"; then
1165 ac_cv_prog_CC="$CC" # Let the user override the test.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1170 for ac_dir in $ac_dummy; do
1171 test -z "$ac_dir" && ac_dir=.
1172 if test -f $ac_dir/$ac_word; then
1173 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1174 ac_prog_rejected=yes
1182 if test $ac_prog_rejected = yes; then
1183 # We found a bogon in the path, so make sure we never use it.
1184 set dummy $ac_cv_prog_CC
1186 if test $# -gt 0; then
1187 # We chose a different compiler from the bogus one.
1188 # However, it has the same basename, so the bogon will be chosen
1189 # first if we set CC to just the basename; use the full file name.
1191 set dummy "$ac_dir/$ac_word" "$@"
1199 if test -n "$CC"; then
1200 echo "$ac_t""$CC" 1>&6
1202 echo "$ac_t""no" 1>&6
1205 if test -z "$CC"; then
1206 case "`uname -s`" in
1208 # Extract the first word of "cl", so it can be a program name with args.
1209 set dummy cl; ac_word=$2
1210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1211 echo "configure:1211: checking for $ac_word" >&5
1212 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 if test -n "$CC"; then
1216 ac_cv_prog_CC="$CC" # Let the user override the test.
1218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1220 for ac_dir in $ac_dummy; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f $ac_dir/$ac_word; then
1231 if test -n "$CC"; then
1232 echo "$ac_t""$CC" 1>&6
1234 echo "$ac_t""no" 1>&6
1239 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1242 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1243 echo "configure:1243: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1247 ac_cpp='$CPP $CPPFLAGS'
1248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1250 cross_compiling=$ac_cv_prog_cc_cross
1252 cat > conftest.$ac_ext << EOF
1254 #line 1254 "configure"
1255 #include "confdefs.h"
1259 if { (eval echo configure:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1260 ac_cv_prog_cc_works=yes
1261 # If we can't run a trivial program, we are probably using a cross compiler.
1262 if (./conftest; exit) 2>/dev/null; then
1263 ac_cv_prog_cc_cross=no
1265 ac_cv_prog_cc_cross=yes
1268 echo "configure: failed program was:" >&5
1269 cat conftest.$ac_ext >&5
1270 ac_cv_prog_cc_works=no
1274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1275 ac_cpp='$CPP $CPPFLAGS'
1276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1278 cross_compiling=$ac_cv_prog_cc_cross
1280 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1281 if test $ac_cv_prog_cc_works = no; then
1282 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1284 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1285 echo "configure:1285: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1286 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1287 cross_compiling=$ac_cv_prog_cc_cross
1289 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1290 echo "configure:1290: checking whether we are using GNU C" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 cat > conftest.c <<EOF
1299 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
1306 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1308 if test $ac_cv_prog_gcc = yes; then
1314 ac_test_CFLAGS="${CFLAGS+set}"
1315 ac_save_CFLAGS="$CFLAGS"
1317 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1318 echo "configure:1318: checking whether ${CC-cc} accepts -g" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 echo 'void f(){}' > conftest.c
1323 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1332 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1333 if test "$ac_test_CFLAGS" = set; then
1334 CFLAGS="$ac_save_CFLAGS"
1335 elif test $ac_cv_prog_cc_g = yes; then
1336 if test "$GCC" = yes; then
1342 if test "$GCC" = yes; then
1350 . "$srcdir/src/template/$template" || exit
1352 if test "$has_environ_CFLAGS" = yes; then
1355 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
1358 echo "using CFLAGS=$CFLAGS"
1359 # Check if the compiler still works with the template settings
1360 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1361 echo "configure:1361: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1365 ac_cpp='$CPP $CPPFLAGS'
1366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1368 cross_compiling=$ac_cv_prog_cc_cross
1370 cat > conftest.$ac_ext << EOF
1372 #line 1372 "configure"
1373 #include "confdefs.h"
1377 if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1378 ac_cv_prog_cc_works=yes
1379 # If we can't run a trivial program, we are probably using a cross compiler.
1380 if (./conftest; exit) 2>/dev/null; then
1381 ac_cv_prog_cc_cross=no
1383 ac_cv_prog_cc_cross=yes
1386 echo "configure: failed program was:" >&5
1387 cat conftest.$ac_ext >&5
1388 ac_cv_prog_cc_works=no
1392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1393 ac_cpp='$CPP $CPPFLAGS'
1394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1396 cross_compiling=$ac_cv_prog_cc_cross
1398 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1399 if test $ac_cv_prog_cc_works = no; then
1400 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1402 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1403 echo "configure:1403: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1404 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1405 cross_compiling=$ac_cv_prog_cc_cross
1407 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1408 echo "configure:1408: checking for Cygwin environment" >&5
1409 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1412 cat > conftest.$ac_ext <<EOF
1413 #line 1413 "configure"
1414 #include "confdefs.h"
1419 #define __CYGWIN__ __CYGWIN32__
1424 if { (eval echo configure:1424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1428 echo "configure: failed program was:" >&5
1429 cat conftest.$ac_ext >&5
1437 echo "$ac_t""$ac_cv_cygwin" 1>&6
1439 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1440 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1441 echo "configure:1441: checking for mingw32 environment" >&5
1442 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1446 "configure"
1447 #include "confdefs.h"
1453 if { (eval echo configure:1453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1457 echo "configure: failed program was:" >&5
1458 cat conftest.$ac_ext >&5
1466 echo "$ac_t""$ac_cv_mingw32" 1>&6
1468 test "$ac_cv_mingw32" = yes && MINGW32=yes
1471 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1472 echo "configure:1472: checking for executable suffix" >&5
1473 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1480 echo 'int main () { return 0; }' > conftest.$ac_ext
1482 if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1483 for file in conftest.*; do
1485 *.c | *.o | *.obj) ;;
1486 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1490 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1493 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1498 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1499 echo "$ac_t""${ac_cv_exeext}" 1>&6
1502 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1503 echo "configure:1503: checking how to run the C preprocessor" >&5
1504 # On Suns, sometimes $CPP names a directory.
1505 if test -n "$CPP" && test -d "$CPP"; then
1508 if test -z "$CPP"; then
1509 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 # This must be in double quotes, not single quotes, because CPP may get
1513 # substituted into the Makefile and "${CC-cc}" will confuse make.
1515 # On the NeXT, cc -E runs the code through the compiler's parser,
1516 # not just through cpp.
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1518 "configure"
1519 #include "confdefs.h"
1523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1524 { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1526 if test -z "$ac_err"; then
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1533 CPP="${CC-cc} -E -traditional-cpp"
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1535 "configure"
1536 #include "confdefs.h"
1540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1541 { (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1543 if test -z "$ac_err"; then
1547 echo "configure: failed program was:" >&5
1548 cat conftest.$ac_ext >&5
1550 CPP="${CC-cc} -nologo -E"
1551 cat > conftest.$ac_ext <<EOF
1552 #line 1552 "configure"
1553 #include "confdefs.h"
1557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1558 { (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1560 if test -z "$ac_err"; then
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1574 ac_cv_prog_CPP="$CPP"
1576 CPP="$ac_cv_prog_CPP"
1578 ac_cv_prog_CPP="$CPP"
1580 echo "$ac_t""$CPP" 1>&6
1582 if test $ac_cv_prog_gcc = yes; then
1583 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1584 echo "configure:1584: checking whether ${CC-cc} needs -traditional" >&5
1585 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 ac_pattern="Autoconf.*'x'"
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1590 "configure"
1591 #include "confdefs.h"
1595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1596 egrep "$ac_pattern" >/dev/null 2>&1; then
1598 ac_cv_prog_gcc_traditional=yes
1601 ac_cv_prog_gcc_traditional=no
1606 if test $ac_cv_prog_gcc_traditional = no; then
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1608 "configure"
1609 #include "confdefs.h"
1613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1614 egrep "$ac_pattern" >/dev/null 2>&1; then
1616 ac_cv_prog_gcc_traditional=yes
1623 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1624 if test $ac_cv_prog_gcc_traditional = yes; then
1625 CC="$CC -traditional"
1631 # Create compiler version string
1632 if test x"$GCC" = x"yes" ; then
1633 cc_string="GCC `${CC} --version | head -1`"
1637 cat >> confdefs.h <<EOF
1638 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1644 # Automatic dependency tracking
1646 # Check whether --enable-depend was given
1647 if test x"${enable_depend+set}" = xset; then
1648 case $enable_depend in
1656 enableval=$enable_depend
1657 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1659 esac # $enable_depend
1668 # Enable assert checks
1670 # Check whether --enable-cassert was given
1671 if test x"${enable_cassert+set}" = xset; then
1672 case $enable_cassert in
1674 cat >> confdefs.h <<\EOF
1675 #define USE_ASSERT_CHECKING 1
1683 enableval=$enable_cassert
1684 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1686 esac # $enable_cassert
1694 # Include directories
1698 # SRCH_INC comes from the template file
1699 for dir in $with_includes $SRCH_INC; do
1700 if test -d "$dir"; then
1701 INCLUDES="$INCLUDES -I$dir"
1703 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1711 # Library directories
1715 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1716 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1717 if test -d "$dir"; then
1718 LIBDIRS="$LIBDIRS -L$dir"
1720 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1729 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1730 echo "configure:1730: checking whether to build with Tcl" >&5
1731 # Check whether --with-tcl was given
1732 if test x"${with_tcl+set}" = xset; then
1742 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1749 echo "$ac_t""$with_tcl" 1>&6
1752 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1753 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1754 echo "configure:1754: checking whether to build with Tk" >&5
1755 if test "$with_tcl" = yes; then
1756 # Check whether --with-tk was given
1757 if test x"${with_tk+set}" = xset; then
1767 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1777 echo "$ac_t""$with_tk" 1>&6
1781 # We see if the path to the TCL/TK configuration scripts is specified.
1782 # This will override the use of tclsh to find the paths to search.
1784 # Check whether --with-tclconfig was given
1785 if test x"${with_tclconfig+set}" = xset; then
1786 case $with_tclconfig in
1788 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1791 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1793 esac # $with_tclconfig
1796 # We see if the path to the TK configuration scripts is specified.
1797 # This will override the use of tclsh to find the paths to search.
1799 # Check whether --with-tkconfig was given
1800 if test x"${with_tkconfig+set}" = xset; then
1801 case $with_tkconfig in
1803 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1806 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1808 esac # $with_tkconfig
1812 # Optionally build Perl modules (Pg.pm and PL/Perl)
1814 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1815 echo "configure:1815: checking whether to build Perl modules" >&5
1816 # Check whether --with-perl was given
1817 if test x"${with_perl+set}" = xset; then
1827 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1834 echo "$ac_t""$with_perl" 1>&6
1838 # Optionally build Python interface module
1840 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1841 echo "configure:1841: checking whether to build Python modules" >&5
1842 # Check whether --with-python was given
1843 if test x"${with_python+set}" = xset; then
1844 case $with_python in
1852 withval=$with_python
1853 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1860 echo "$ac_t""$with_python" 1>&6
1864 # Optionally build the Java/JDBC tools
1866 echo $ac_n "checking whether to build Java/JDBC tools""... $ac_c" 1>&6
1867 echo "configure:1867: checking whether to build Java/JDBC tools" >&5
1868 # Check whether --with-java was given
1869 if test x"${with_java+set}" = xset; then
1872 echo "$ac_t""yes" 1>&6
1874 for ac_prog in jakarta-ant ant ant.sh ant.bat
1876 # Extract the first word of "$ac_prog", so it can be a program name with args.
1877 set dummy $ac_prog; ac_word=$2
1878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1879 echo "configure:1879: checking for $ac_word" >&5
1880 if eval "test \"`echo '$''{'ac_cv_path_ANT'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1885 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
1888 ac_cv_path_ANT="$ANT" # Let the user override the test with a dos path.
1891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1893 for ac_dir in $ac_dummy; do
1894 test -z "$ac_dir" && ac_dir=.
1895 if test -f $ac_dir/$ac_word; then
1896 ac_cv_path_ANT="$ac_dir/$ac_word"
1904 ANT="$ac_cv_path_ANT"
1905 if test -n "$ANT"; then
1906 echo "$ac_t""$ANT" 1>&6
1908 echo "$ac_t""no" 1>&6
1911 test -n "$ANT" && break
1915 echo $ac_n "checking whether $ANT works""... $ac_c" 1>&6
1916 echo "configure:1916: checking whether $ANT works" >&5
1917 if eval "test \"`echo '$''{'pgac_cv_prog_ant_works'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1921 cat > conftest.java << EOF
1922 public class conftest {
1923 int testmethod(int a, int b) {
1929 cat > conftest.xml << EOF
1930 <project name="conftest" default="conftest">
1931 <target name="conftest">
1932 <javac srcdir="." includes="conftest.java">
1938 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
1939 { (eval echo configure:1939: \"$pgac_cmd\") 1>&5; (eval $pgac_cmd) 2>&5; }
1941 if test $? = 0 && test -f ./conftest.class ; then
1942 pgac_cv_prog_ant_works=yes
1944 echo "configure: failed java program was:" >&5
1945 cat conftest.java >&5
1946 echo "configure: failed build file was:" >&5
1947 cat conftest.xml >&5
1948 pgac_cv_prog_ant_works=no
1951 rm -f conftest* core core.* *.core
1955 echo "$ac_t""$pgac_cv_prog_ant_works" 1>&6
1957 if test "$pgac_cv_prog_ant_works" != yes; then
1958 { echo "configure: error: ant does not work" 1>&2; exit 1; }
1962 if test -z "$ANT"; then
1963 { echo "configure: error: Ant is required to build Java components" 1>&2; exit 1; }
1967 echo "$ac_t""no" 1>&6
1971 { echo "configure: error: no argument expected for --with-java option" 1>&2; exit 1; }
1976 echo "$ac_t""no" 1>&6
1984 # Check whether --with-krb4 was given
1985 if test x"${with_krb4+set}" = xset; then
1988 krb4_prefix=/usr/athena
1996 krb4_prefix=$withval
2003 if test "$with_krb4" = yes; then
2005 echo "$ac_t""building with Kerberos 4 support" 1>&6
2006 cat >> confdefs.h <<\EOF
2011 if test -d "$krb4_prefix/include"; then
2012 INCLUDES="$INCLUDES -I$krb4_prefix/include"
2014 if test -d "$krb4_prefix/lib"; then
2015 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
2018 krb_srvtab="/etc/srvtab"
2029 # Check whether --with-krb5 was given
2030 if test x"${with_krb5+set}" = xset; then
2033 krb5_prefix=/usr/athena
2041 krb5_prefix=$withval
2048 if test "$with_krb5" = yes; then
2050 echo "$ac_t""building with Kerberos 5 support" 1>&6
2051 cat >> confdefs.h <<\EOF
2056 if test -d "$krb5_prefix/include"; then
2057 INCLUDES="$INCLUDES -I$krb5_prefix/include"
2059 if test -d "$krb5_prefix/lib"; then
2060 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
2063 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
2071 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
2072 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
2073 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2080 # Kerberos configuration parameters
2082 # Check whether --with-krb-srvnam was given
2083 if test x"${with_krb_srvnam+set}" = xset; then
2084 case $with_krb_srvnam in
2086 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2089 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2091 esac # $with_krb_srvnam
2093 with_krb_srvnam="postgres"
2095 cat >> confdefs.h <<EOF
2096 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2104 echo $ac_n "checking whether to build with PAM support""... $ac_c" 1>&6
2105 echo "configure:2105: checking whether to build with PAM support" >&5
2106 # Check whether --with-pam was given
2107 if test x"${with_pam+set}" = xset; then
2110 cat >> confdefs.h <<\EOF
2120 { echo "configure: error: no argument expected for --with-pam option" 1>&2; exit 1; }
2127 echo "$ac_t""$with_pam" 1>&6
2134 # Check whether --with-openssl was given
2135 if test x"${with_openssl+set}" = xset; then
2136 case $with_openssl in
2138 openssl_prefix=/usr/local/ssl
2144 withval=$with_openssl
2146 openssl_prefix=$withval
2148 esac # $with_openssl
2153 if test "$with_openssl" = yes; then
2155 echo "$ac_t""building with OpenSSL support" 1>&6
2156 cat >> confdefs.h <<\EOF
2161 if test -d "${openssl_prefix}/include" ; then
2162 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2164 if test -d "${openssl_prefix}/lib" ; then
2165 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2176 # Optionally enable the building of the ODBC driver
2180 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2181 enable_odbc=$with_odbc
2184 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2185 echo "configure:2185: checking whether to build the ODBC driver" >&5
2186 # Check whether --enable-odbc was given
2187 if test x"${enable_odbc+set}" = xset; then
2188 case $enable_odbc in
2196 enableval=$enable_odbc
2197 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2204 # Check whether --with-unixodbc was given
2205 if test x"${with_unixodbc+set}" = xset; then
2206 case $with_unixodbc in
2214 withval=$with_unixodbc
2215 { echo "configure: error: no argument expected for --with-unixodbc option" 1>&2; exit 1; }
2217 esac # $with_unixodbc
2222 # Check whether --with-iodbc was given
2223 if test x"${with_iodbc+set}" = xset; then
2233 { echo "configure: error: no argument expected for --with-iodbc option" 1>&2; exit 1; }
2240 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
2241 { echo "configure: error: ODBC driver cannot be built for both unixODBC and iODBC" 1>&2; exit 1; }
2243 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
2246 case $enable_odbc:$with_unixodbc:$with_iodbc in
2247 yes:no:no) echo "$ac_t""yes (stand-alone)" 1>&6;;
2248 yes:yes:no) echo "$ac_t""yes (unixODBC)" 1>&6; cat >> confdefs.h <<\EOF
2249 #define WITH_UNIXODBC 1
2252 yes:no:yes) echo "$ac_t""yes (iODBC)" 1>&6; cat >> confdefs.h <<\EOF
2253 #define WITH_IODBC 1
2256 no:*) echo "$ac_t""no" 1>&6;;
2263 # Allow for overriding the default location of the odbcinst.ini
2264 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2265 # Check whether --with-odbcinst was given
2266 if test x"${with_odbcinst+set}" = xset; then
2267 case $with_odbcinst in
2269 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2272 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2275 withval=$with_odbcinst
2276 odbcinst_ini_dir=$withval
2278 esac # $with_odbcinst
2280 odbcinst_ini_dir="\${sysconfdir}"
2286 # Assume system is ELF if it predefines __ELF__ as 1,
2287 # otherwise believe host_os based default.
2289 freebsd1*|freebsd2*) elf=no;;
2290 freebsd3*|freebsd4*) elf=yes;;
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2294 "configure"
2295 #include "confdefs.h"
2301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2302 egrep "yes" >/dev/null 2>&1; then
2307 if test "X$elf" = "Xyes" ; then
2320 # Optionally build C++ code (i.e., libpq++)
2322 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2323 echo "configure:2323: checking whether to build C++ modules" >&5
2324 # Check whether --with-CXX was given
2325 if test x"${with_CXX+set}" = xset; then
2343 if test "$with_CXX" = yes; then
2345 echo "$ac_t""yes" 1>&6
2347 # If the user has specified CXXFLAGS in the environment, leave it
2348 # alone, else use a default.
2350 has_environ_CXXFLAGS="${CXXFLAGS+yes}"
2351 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2353 # Extract the first word of "$ac_prog", so it can be a program name with args.
2354 set dummy $ac_prog; ac_word=$2
2355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2356 echo "configure:2356: checking for $ac_word" >&5
2357 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 if test -n "$CXX"; then
2361 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2365 for ac_dir in $ac_dummy; do
2366 test -z "$ac_dir" && ac_dir=.
2367 if test -f $ac_dir/$ac_word; then
2368 ac_cv_prog_CXX="$ac_prog"
2375 CXX="$ac_cv_prog_CXX"
2376 if test -n "$CXX"; then
2377 echo "$ac_t""$CXX" 1>&6
2379 echo "$ac_t""no" 1>&6
2382 test -n "$CXX" && break
2384 test -n "$CXX" || CXX="gcc"
2387 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2388 echo "configure:2388: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2391 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2392 ac_cpp='$CXXCPP $CPPFLAGS'
2393 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2394 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2395 cross_compiling=$ac_cv_prog_cxx_cross
2397 cat > conftest.$ac_ext << EOF
2399 #line 2399 "configure"
2400 #include "confdefs.h"
2402 int main(){return(0);}
2404 if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2405 ac_cv_prog_cxx_works=yes
2406 # If we can't run a trivial program, we are probably using a cross compiler.
2407 if (./conftest; exit) 2>/dev/null; then
2408 ac_cv_prog_cxx_cross=no
2410 ac_cv_prog_cxx_cross=yes
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2415 ac_cv_prog_cxx_works=no
2419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2420 ac_cpp='$CPP $CPPFLAGS'
2421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2423 cross_compiling=$ac_cv_prog_cc_cross
2425 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2426 if test $ac_cv_prog_cxx_works = no; then
2427 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2429 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2430 echo "configure:2430: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2431 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2432 cross_compiling=$ac_cv_prog_cxx_cross
2434 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2435 echo "configure:2435: checking whether we are using GNU C++" >&5
2436 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 cat > conftest.C <<EOF
2444 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2451 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2453 if test $ac_cv_prog_gxx = yes; then
2459 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2460 ac_save_CXXFLAGS="$CXXFLAGS"
2462 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2463 echo "configure:2463: checking whether ${CXX-g++} accepts -g" >&5
2464 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 echo 'void f(){}' > conftest.cc
2468 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2469 ac_cv_prog_cxx_g=yes
2477 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2478 if test "$ac_test_CXXFLAGS" = set; then
2479 CXXFLAGS="$ac_save_CXXFLAGS"
2480 elif test $ac_cv_prog_cxx_g = yes; then
2481 if test "$GXX" = yes; then
2487 if test "$GXX" = yes; then
2494 if test "$has_environ_CXXFLAGS" != yes; then
2495 if test "$GXX" = yes; then
2499 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
2500 unixware) CXXFLAGS='-O' ;;
2505 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
2506 CXXFLAGS="$CXXFLAGS -g"
2508 echo "using CXXFLAGS=$CXXFLAGS"
2510 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2511 echo "configure:2511: checking how to run the C++ preprocessor" >&5
2512 if test -z "$CXXCPP"; then
2513 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2518 ac_cpp='$CXXCPP $CPPFLAGS'
2519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2521 cross_compiling=$ac_cv_prog_cxx_cross
2522 CXXCPP="${CXX-g++} -E"
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2524 "configure"
2525 #include "confdefs.h"
2528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2529 { (eval echo configure:2529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2531 if test -z "$ac_err"; then
2535 echo "configure: failed program was:" >&5
2536 cat conftest.$ac_ext >&5
2541 ac_cv_prog_CXXCPP="$CXXCPP"
2543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2544 ac_cpp='$CPP $CPPFLAGS'
2545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2547 cross_compiling=$ac_cv_prog_cc_cross
2550 CXXCPP="$ac_cv_prog_CXXCPP"
2551 echo "$ac_t""$CXXCPP" 1>&6
2556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2557 ac_cpp='$CXXCPP $CPPFLAGS'
2558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2560 cross_compiling=$ac_cv_prog_cxx_cross
2562 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2563 echo $ac_n "checking for string""... $ac_c" 1>&6
2564 echo "configure:2564: checking for string" >&5
2565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 cat > conftest.$ac_ext <<EOF
2569 #line 2569 "configure"
2570 #include "confdefs.h"
2573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2574 { (eval echo configure:2574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2576 if test -z "$ac_err"; then
2578 eval "ac_cv_header_$ac_safe=yes"
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2584 eval "ac_cv_header_$ac_safe=no"
2588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2589 echo "$ac_t""yes" 1>&6
2590 cat >> confdefs.h <<\EOF
2591 #define HAVE_CXX_STRING_HEADER 1
2595 echo "$ac_t""no" 1>&6
2599 if test x"$ac_cv_header_string" != xyes ; then
2600 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2601 echo "configure:2601: checking for class string in <string.h>" >&5
2602 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2605 cat > conftest.$ac_ext <<EOF
2606 #line 2606 "configure"
2607 #include "confdefs.h"
2616 if { (eval echo configure:2616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2618 pgac_cv_class_string_in_string_h=yes
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2623 pgac_cv_class_string_in_string_h=no
2628 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2630 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2631 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2636 ac_cpp='$CPP $CPPFLAGS'
2637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2639 cross_compiling=$ac_cv_prog_cc_cross
2642 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2643 echo "configure:2643: checking for namespace std in C++" >&5
2644 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2650 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2651 ac_cpp='$CXXCPP $CPPFLAGS'
2652 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2653 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2654 cross_compiling=$ac_cv_prog_cxx_cross
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2657 "configure"
2658 #include "confdefs.h"
2661 #ifdef HAVE_CXX_STRING_HEADER
2664 using namespace std;
2670 if { (eval echo configure:2670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2672 pgac_cv_cxx_namespace_std=yes
2674 echo "configure: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2677 pgac_cv_cxx_namespace_std=no
2681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2682 ac_cpp='$CPP $CPPFLAGS'
2683 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2684 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2685 cross_compiling=$ac_cv_prog_cc_cross
2689 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2691 if test $pgac_cv_cxx_namespace_std = yes ; then
2692 cat >> confdefs.h <<\EOF
2693 #define HAVE_NAMESPACE_STD 1
2699 echo "$ac_t""no" 1>&6
2704 CPPFLAGS="$CPPFLAGS $INCLUDES"
2705 LDFLAGS="$LDFLAGS $LIBDIRS"
2707 echo "using CPPFLAGS=$CPPFLAGS"
2708 echo "using LDFLAGS=$LDFLAGS"
2711 for ac_prog in mawk gawk nawk awk
2713 # Extract the first word of "$ac_prog", so it can be a program name with args.
2714 set dummy $ac_prog; ac_word=$2
2715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2716 echo "configure:2716: checking for $ac_word" >&5
2717 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2720 if test -n "$AWK"; then
2721 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2725 for ac_dir in $ac_dummy; do
2726 test -z "$ac_dir" && ac_dir=.
2727 if test -f $ac_dir/$ac_word; then
2728 ac_cv_prog_AWK="$ac_prog"
2735 AWK="$ac_cv_prog_AWK"
2736 if test -n "$AWK"; then
2737 echo "$ac_t""$AWK" 1>&6
2739 echo "$ac_t""no" 1>&6
2742 test -n "$AWK" && break
2745 echo $ac_n "checking for flex""... $ac_c" 1>&6
2746 echo "configure:2746: checking for flex" >&5
2747 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 # Let the user override the test
2751 if test -n "$FLEX"; then
2752 pgac_cv_path_flex=$FLEX
2756 for pgac_dir in $PATH; do
2757 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2760 for pgac_prog in flex lex; do
2761 pgac_candidate="$pgac_dir/$pgac_prog"
2762 if test -f "$pgac_candidate" \
2763 && $pgac_candidate --version </dev/null >/dev/null 2>&1
2765 echo '%%' > conftest.l
2766 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2767 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2768 pgac_broken_flex=$pgac_candidate
2772 pgac_cv_path_flex=$pgac_candidate
2780 : ${pgac_cv_path_flex=no}
2785 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2786 if test x"$pgac_cv_path_flex" = x"no"; then
2787 if test -n "$pgac_broken_flex"; then
2788 echo "configure: warning:
2789 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2790 *** should get version 2.5.4 or later." 1>&2
2793 echo "configure: warning:
2794 *** Without Flex you will not be able to build PostgreSQL from CVS or
2795 *** change any of the scanner definition files. You can obtain Flex from
2796 *** a GNU mirror site. (If you are using the official distribution of
2797 *** PostgreSQL then you do not need to worry about this because the Flex
2798 *** output is pre-generated.)" 1>&2
2801 if test x"$pgac_cv_path_flex" = x"no"; then
2804 FLEX=$pgac_cv_path_flex
2810 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2811 echo "configure:2811: checking whether ln -s works" >&5
2812 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2816 if ln -s X conftestdata 2>/dev/null
2819 ac_cv_prog_LN_S="ln -s"
2824 LN_S="$ac_cv_prog_LN_S"
2825 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2826 echo "$ac_t""yes" 1>&6
2828 echo "$ac_t""no" 1>&6
2831 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2832 if test "${with_gnu_ld+set}" = set; then
2833 withval="$with_gnu_ld"
2834 test "$withval" = no || with_gnu_ld=yes
2840 if test "$ac_cv_prog_gcc" = yes; then
2841 # Check if gcc -print-prog-name=ld gives a path.
2842 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2843 echo "configure:2843: checking for ld used by GCC" >&5
2846 # gcc leaves a trailing carriage return which upsets mingw
2847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2852 # Accept absolute paths.
2853 [\\/]* | [A-Za-z]:[\\/]*)
2854 re_direlt='/[^/][^/]*/\.\./'
2855 # Canonicalize the path of ld
2856 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2857 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2858 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2860 test -z "$LD" && LD="$ac_prog"
2863 # If it fails, then pretend we aren't using GCC.
2867 # If it is relative, then search for the first ld in PATH.
2871 elif test "$with_gnu_ld" = yes; then
2872 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2873 echo "configure:2873: checking for GNU ld" >&5
2875 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2876 echo "configure:2876: checking for non-GNU ld" >&5
2878 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 if test -z "$LD"; then
2882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2883 for ac_dir in $PATH; do
2884 test -z "$ac_dir" && ac_dir=.
2885 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2886 ac_cv_path_LD="$ac_dir/$ac_prog"
2887 # Check to see if the program is GNU ld. I'd rather use --version,
2888 # but apparently some GNU ld's only accept -v.
2889 # Break only if it was the GNU/non-GNU ld that we prefer.
2890 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2891 test "$with_gnu_ld" != no && break
2893 test "$with_gnu_ld" != yes && break
2899 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2904 if test -n "$LD"; then
2905 echo "$ac_t""$LD" 1>&6
2907 echo "$ac_t""no" 1>&6
2909 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2910 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2911 echo "configure:2911: checking if the linker ($LD) is GNU ld" >&5
2912 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2916 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2917 ac_cv_prog_gnu_ld=yes
2919 ac_cv_prog_gnu_ld=no
2923 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2924 with_gnu_ld=$ac_cv_prog_gnu_ld
2929 case $host_os in sysv5*)
2930 echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
2931 echo "configure:2931: checking whether ld -R works" >&5
2932 if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2936 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
2937 cat > conftest.$ac_ext <<EOF
2938 #line 2938 "configure"
2939 #include "confdefs.h"
2945 if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2947 pgac_cv_prog_ld_R=yes
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2952 pgac_cv_prog_ld_R=no
2955 LDFLAGS=$pgac_save_LDFLAGS
2959 echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
2960 ld_R_works=$pgac_cv_prog_ld_R
2963 # Extract the first word of "ranlib", so it can be a program name with args.
2964 set dummy ranlib; ac_word=$2
2965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2966 echo "configure:2966: checking for $ac_word" >&5
2967 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2970 if test -n "$RANLIB"; then
2971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2975 for ac_dir in $ac_dummy; do
2976 test -z "$ac_dir" && ac_dir=.
2977 if test -f $ac_dir/$ac_word; then
2978 ac_cv_prog_RANLIB="ranlib"
2983 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2986 RANLIB="$ac_cv_prog_RANLIB"
2987 if test -n "$RANLIB"; then
2988 echo "$ac_t""$RANLIB" 1>&6
2990 echo "$ac_t""no" 1>&6
2993 for ac_prog in lorder
2995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2998 echo "configure:2998: checking for $ac_word" >&5
2999 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3002 if test -n "$LORDER"; then
3003 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3007 for ac_dir in $ac_dummy; do
3008 test -z "$ac_dir" && ac_dir=.
3009 if test -f $ac_dir/$ac_word; then
3010 ac_cv_prog_LORDER="$ac_prog"
3017 LORDER="$ac_cv_prog_LORDER"
3018 if test -n "$LORDER"; then
3019 echo "$ac_t""$LORDER" 1>&6
3021 echo "$ac_t""no" 1>&6
3024 test -n "$LORDER" && break
3027 # Extract the first word of "tar", so it can be a program name with args.
3028 set dummy tar; ac_word=$2
3029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3030 echo "configure:3030: checking for $ac_word" >&5
3031 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3036 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3039 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
3042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3044 for ac_dir in $ac_dummy; do
3045 test -z "$ac_dir" && ac_dir=.
3046 if test -f $ac_dir/$ac_word; then
3047 ac_cv_path_TAR="$ac_dir/$ac_word"
3055 TAR="$ac_cv_path_TAR"
3056 if test -n "$TAR"; then
3057 echo "$ac_t""$TAR" 1>&6
3059 echo "$ac_t""no" 1>&6
3063 for ac_prog in 'bison -y'
3065 # Extract the first word of "$ac_prog", so it can be a program name with args.
3066 set dummy $ac_prog; ac_word=$2
3067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3068 echo "configure:3068: checking for $ac_word" >&5
3069 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3072 if test -n "$YACC"; then
3073 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3077 for ac_dir in $ac_dummy; do
3078 test -z "$ac_dir" && ac_dir=.
3079 if test -f $ac_dir/$ac_word; then
3080 ac_cv_prog_YACC="$ac_prog"
3087 YACC="$ac_cv_prog_YACC"
3088 if test -n "$YACC"; then
3089 echo "$ac_t""$YACC" 1>&6
3091 echo "$ac_t""no" 1>&6
3094 test -n "$YACC" && break
3097 if test -z "$YACC"; then
3098 echo "configure: warning:
3099 *** Without Bison you will not be able to build PostgreSQL from CVS or
3100 *** change any of the parser definition files. You can obtain Bison from
3101 *** a GNU mirror site. (If you are using the official distribution of
3102 *** PostgreSQL then you do not need to worry about this because the Bison
3103 *** output is pre-generated.) To use a different yacc program (possible,
3104 *** but not recommended), set the environment variable YACC before running
3105 *** 'configure'." 1>&2
3109 if test "$with_tk" = yes; then
3110 # Extract the first word of "wish", so it can be a program name with args.
3111 set dummy wish; ac_word=$2
3112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3113 echo "configure:3113: checking for $ac_word" >&5
3114 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3119 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3122 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3127 for ac_dir in $ac_dummy; do
3128 test -z "$ac_dir" && ac_dir=.
3129 if test -f $ac_dir/$ac_word; then
3130 ac_cv_path_WISH="$ac_dir/$ac_word"
3138 WISH="$ac_cv_path_WISH"
3139 if test -n "$WISH"; then
3140 echo "$ac_t""$WISH" 1>&6
3142 echo "$ac_t""no" 1>&6
3145 test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
3148 # Extract the first word of "perl", so it can be a program name with args.
3149 set dummy perl; ac_word=$2
3150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3151 echo "configure:3151: checking for $ac_word" >&5
3152 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3157 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3160 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3165 for ac_dir in $ac_dummy; do
3166 test -z "$ac_dir" && ac_dir=.
3167 if test -f $ac_dir/$ac_word; then
3168 ac_cv_path_PERL="$ac_dir/$ac_word"
3176 PERL="$ac_cv_path_PERL"
3177 if test -n "$PERL"; then
3178 echo "$ac_t""$PERL" 1>&6
3180 echo "$ac_t""no" 1>&6
3183 if test "$with_perl" = yes; then
3186 echo $ac_n "checking Perl installation directories""... $ac_c" 1>&6
3187 echo "configure:3187: checking Perl installation directories" >&5
3189 # These are the ones we currently need. Others can be added easily.
3190 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
3191 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
3192 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
3195 echo "$ac_t""done" 1>&6
3199 if test "$with_python" = yes; then
3200 # Extract the first word of "python", so it can be a program name with args.
3201 set dummy python; ac_word=$2
3202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3203 echo "configure:3203: checking for $ac_word" >&5
3204 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3209 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3212 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
3215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3217 for ac_dir in $ac_dummy; do
3218 test -z "$ac_dir" && ac_dir=.
3219 if test -f $ac_dir/$ac_word; then
3220 ac_cv_path_PYTHON="$ac_dir/$ac_word"
3228 PYTHON="$ac_cv_path_PYTHON"
3229 if test -n "$PYTHON"; then
3230 echo "$ac_t""$PYTHON" 1>&6
3232 echo "$ac_t""no" 1>&6
3235 if test x"$PYTHON" = x""; then
3236 { echo "configure: error: Python not found" 1>&2; exit 1; }
3240 echo $ac_n "checking Python installation directories""... $ac_c" 1>&6
3241 echo "configure:3241: checking Python installation directories" >&5
3242 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
3243 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
3244 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
3245 python_configdir="${python_execprefix}/lib/python${python_version}/config"
3246 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
3247 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
3248 python_includespec="-I${python_prefix}/include/python${python_version}"
3249 if test "$python_prefix" != "$python_execprefix"; then
3250 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
3253 # This should be enough of a message.
3254 if test "$python_prefix" != "$python_execprefix"; then
3255 echo "$ac_t""$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" 1>&6
3257 echo "$ac_t""$python_prefix/lib/python${python_version}" 1>&6
3264 echo $ac_n "checking how to link an embedded Python application""... $ac_c" 1>&6
3265 echo "configure:3265: checking how to link an embedded Python application" >&5
3267 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3268 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
3269 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
3270 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3271 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3273 pgac_tab=" " # tab character
3274 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"`
3276 echo "$ac_t""${python_libspec}" 1>&6
3287 echo $ac_n "checking for readline""... $ac_c" 1>&6
3288 echo "configure:3288: checking for readline" >&5
3290 if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 pgac_cv_check_readline=no
3294 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3295 for pgac_rllib in -lreadline -ledit ; do
3296 pgac_save_LIBS=$LIBS
3297 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3299 "configure"
3300 #include "confdefs.h"
3301 /* Override any gcc2 internal prototype to avoid an error. */
3302 /* We use char because int might match the return type of a gcc2
3303 builtin and then its argument prototype would still apply. */
3310 if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3313 # NetBSD and OpenBSD have a broken linker that does not
3314 # recognize dependent libraries
3315 case $host_os in netbsd* | openbsd* )
3318 *) pgac_lib=" -lcurses" ;;
3322 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3330 LIBS=$pgac_save_LIBS
3333 LIBS=$pgac_save_LIBS
3337 if test "$pgac_cv_check_readline" != no ; then
3338 cat >> confdefs.h <<\EOF
3339 #define HAVE_LIBREADLINE 1
3342 LIBS="$pgac_cv_check_readline $LIBS"
3343 echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
3345 echo "$ac_t""no" 1>&6
3348 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3349 echo "configure:3349: checking for library containing using_history" >&5
3350 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 ac_func_search_save_LIBS="$LIBS"
3354 ac_cv_search_using_history="no"
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3356 "configure"
3357 #include "confdefs.h"
3358 /* Override any gcc2 internal prototype to avoid an error. */
3359 /* We use char because int might match the return type of a gcc2
3360 builtin and then its argument prototype would still apply. */
3361 char using_history();
3367 if { (eval echo configure:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3369 ac_cv_search_using_history="none required"
3371 echo "configure: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3375 test "$ac_cv_search_using_history" = "no" && for i in history; do
3376 LIBS="-l$i $ac_func_search_save_LIBS"
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3378 "configure"
3379 #include "confdefs.h"
3380 /* Override any gcc2 internal prototype to avoid an error. */
3381 /* We use char because int might match the return type of a gcc2
3382 builtin and then its argument prototype would still apply. */
3383 char using_history();
3389 if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3391 ac_cv_search_using_history="-l$i"
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3399 LIBS="$ac_func_search_save_LIBS"
3402 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3403 if test "$ac_cv_search_using_history" != "no"; then
3404 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3405 cat >> confdefs.h <<\EOF
3406 #define HAVE_HISTORY_FUNCTIONS 1
3413 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3415 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3416 echo "configure:3416: checking for main in -lbsd" >&5
3417 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 ac_save_LIBS="$LIBS"
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3424 "configure"
3425 #include "confdefs.h"
3431 if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3433 eval "ac_cv_lib_$ac_lib_var=yes"
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3438 eval "ac_cv_lib_$ac_lib_var=no"
3441 LIBS="$ac_save_LIBS"
3444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3445 echo "$ac_t""yes" 1>&6
3446 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3447 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3448 cat >> confdefs.h <<EOF
3449 #define $ac_tr_lib 1
3455 echo "$ac_t""no" 1>&6
3459 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3460 echo "configure:3460: checking for setproctitle in -lutil" >&5
3461 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 ac_save_LIBS="$LIBS"
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3468 "configure"
3469 #include "confdefs.h"
3470 /* Override any gcc2 internal prototype to avoid an error. */
3471 /* We use char because int might match the return type of a gcc2
3472 builtin and then its argument prototype would still apply. */
3473 char setproctitle();
3479 if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3481 eval "ac_cv_lib_$ac_lib_var=yes"
3483 echo "configure: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3486 eval "ac_cv_lib_$ac_lib_var=no"
3489 LIBS="$ac_save_LIBS"
3492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3493 echo "$ac_t""yes" 1>&6
3494 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3495 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3496 cat >> confdefs.h <<EOF
3497 #define $ac_tr_lib 1
3503 echo "$ac_t""no" 1>&6
3506 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3507 echo "configure:3507: checking for main in -lm" >&5
3508 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 ac_save_LIBS="$LIBS"
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3515 "configure"
3516 #include "confdefs.h"
3522 if { (eval echo configure:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3524 eval "ac_cv_lib_$ac_lib_var=yes"
3526 echo "configure: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3529 eval "ac_cv_lib_$ac_lib_var=no"
3532 LIBS="$ac_save_LIBS"
3535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3537 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3538 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3539 cat >> confdefs.h <<EOF
3540 #define $ac_tr_lib 1
3546 echo "$ac_t""no" 1>&6
3549 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3550 echo "configure:3550: checking for main in -ldl" >&5
3551 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 ac_save_LIBS="$LIBS"
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3558 "configure"
3559 #include "confdefs.h"
3565 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3567 eval "ac_cv_lib_$ac_lib_var=yes"
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3572 eval "ac_cv_lib_$ac_lib_var=no"
3575 LIBS="$ac_save_LIBS"
3578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3579 echo "$ac_t""yes" 1>&6
3580 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3581 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3582 cat >> confdefs.h <<EOF
3583 #define $ac_tr_lib 1
3589 echo "$ac_t""no" 1>&6
3592 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3593 echo "configure:3593: checking for main in -lsocket" >&5
3594 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3598 ac_save_LIBS="$LIBS"
3599 LIBS="-lsocket $LIBS"
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3601 "configure"
3602 #include "confdefs.h"
3608 if { (eval echo configure:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3610 eval "ac_cv_lib_$ac_lib_var=yes"
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3615 eval "ac_cv_lib_$ac_lib_var=no"
3618 LIBS="$ac_save_LIBS"
3621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3622 echo "$ac_t""yes" 1>&6
3623 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3624 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3625 cat >> confdefs.h <<EOF
3626 #define $ac_tr_lib 1
3629 LIBS="-lsocket $LIBS"
3632 echo "$ac_t""no" 1>&6
3635 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3636 echo "configure:3636: checking for main in -lnsl" >&5
3637 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3641 ac_save_LIBS="$LIBS"
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3644 "configure"
3645 #include "confdefs.h"
3651 if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3653 eval "ac_cv_lib_$ac_lib_var=yes"
3655 echo "configure: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3658 eval "ac_cv_lib_$ac_lib_var=no"
3661 LIBS="$ac_save_LIBS"
3664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3665 echo "$ac_t""yes" 1>&6
3666 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3667 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3668 cat >> confdefs.h <<EOF
3669 #define $ac_tr_lib 1
3675 echo "$ac_t""no" 1>&6
3678 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3679 echo "configure:3679: checking for main in -lipc" >&5
3680 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 ac_save_LIBS="$LIBS"
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3687 "configure"
3688 #include "confdefs.h"
3694 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3696 eval "ac_cv_lib_$ac_lib_var=yes"
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3701 eval "ac_cv_lib_$ac_lib_var=no"
3704 LIBS="$ac_save_LIBS"
3707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3708 echo "$ac_t""yes" 1>&6
3709 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3710 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3711 cat >> confdefs.h <<EOF
3712 #define $ac_tr_lib 1
3718 echo "$ac_t""no" 1>&6
3721 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3722 echo "configure:3722: checking for main in -lIPC" >&5
3723 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 ac_save_LIBS="$LIBS"
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3730 "configure"
3731 #include "confdefs.h"
3737 if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3739 eval "ac_cv_lib_$ac_lib_var=yes"
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3744 eval "ac_cv_lib_$ac_lib_var=no"
3747 LIBS="$ac_save_LIBS"
3750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3751 echo "$ac_t""yes" 1>&6
3752 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3753 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3754 cat >> confdefs.h <<EOF
3755 #define $ac_tr_lib 1
3761 echo "$ac_t""no" 1>&6
3764 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3765 echo "configure:3765: checking for main in -llc" >&5
3766 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3770 ac_save_LIBS="$LIBS"
3772 cat > conftest.$ac_ext <<EOF
3773 #line 3773 "configure"
3774 #include "confdefs.h"
3780 if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3782 eval "ac_cv_lib_$ac_lib_var=yes"
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3787 eval "ac_cv_lib_$ac_lib_var=no"
3790 LIBS="$ac_save_LIBS"
3793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3794 echo "$ac_t""yes" 1>&6
3795 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3796 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3797 cat >> confdefs.h <<EOF
3798 #define $ac_tr_lib 1
3804 echo "$ac_t""no" 1>&6
3807 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3808 echo "configure:3808: checking for main in -ldld" >&5
3809 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3813 ac_save_LIBS="$LIBS"
3815 cat > conftest.$ac_ext <<EOF
3816 #line 3816 "configure"
3817 #include "confdefs.h"
3823 if { (eval echo configure:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3825 eval "ac_cv_lib_$ac_lib_var=yes"
3827 echo "configure: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3830 eval "ac_cv_lib_$ac_lib_var=no"
3833 LIBS="$ac_save_LIBS"
3836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3837 echo "$ac_t""yes" 1>&6
3838 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3839 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3840 cat >> confdefs.h <<EOF
3841 #define $ac_tr_lib 1
3847 echo "$ac_t""no" 1>&6
3850 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3851 echo "configure:3851: checking for main in -lld" >&5
3852 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3856 ac_save_LIBS="$LIBS"
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3859 "configure"
3860 #include "confdefs.h"
3866 if { (eval echo configure:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3868 eval "ac_cv_lib_$ac_lib_var=yes"
3870 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3873 eval "ac_cv_lib_$ac_lib_var=no"
3876 LIBS="$ac_save_LIBS"
3879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3880 echo "$ac_t""yes" 1>&6
3881 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3882 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3883 cat >> confdefs.h <<EOF
3884 #define $ac_tr_lib 1
3890 echo "$ac_t""no" 1>&6
3893 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3894 echo "configure:3894: checking for main in -lcompat" >&5
3895 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 ac_save_LIBS="$LIBS"
3900 LIBS="-lcompat $LIBS"
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3902 "configure"
3903 #include "confdefs.h"
3909 if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 eval "ac_cv_lib_$ac_lib_var=yes"
3913 echo "configure: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3916 eval "ac_cv_lib_$ac_lib_var=no"
3919 LIBS="$ac_save_LIBS"
3922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3924 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3925 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3926 cat >> confdefs.h <<EOF
3927 #define $ac_tr_lib 1
3930 LIBS="-lcompat $LIBS"
3933 echo "$ac_t""no" 1>&6
3936 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3937 echo "configure:3937: checking for main in -lBSD" >&5
3938 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3942 ac_save_LIBS="$LIBS"
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3945 "configure"
3946 #include "confdefs.h"
3952 if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3954 eval "ac_cv_lib_$ac_lib_var=yes"
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3959 eval "ac_cv_lib_$ac_lib_var=no"
3962 LIBS="$ac_save_LIBS"
3965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3966 echo "$ac_t""yes" 1>&6
3967 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3969 cat >> confdefs.h <<EOF
3970 #define $ac_tr_lib 1
3976 echo "$ac_t""no" 1>&6
3979 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3980 echo "configure:3980: checking for main in -lgen" >&5
3981 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3985 ac_save_LIBS="$LIBS"
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3988 "configure"
3989 #include "confdefs.h"
3995 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3997 eval "ac_cv_lib_$ac_lib_var=yes"
3999 echo "configure: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4002 eval "ac_cv_lib_$ac_lib_var=no"
4005 LIBS="$ac_save_LIBS"
4008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4009 echo "$ac_t""yes" 1>&6
4010 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4011 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4012 cat >> confdefs.h <<EOF
4013 #define $ac_tr_lib 1
4019 echo "$ac_t""no" 1>&6
4022 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
4023 echo "configure:4023: checking for main in -lPW" >&5
4024 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
4025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4028 ac_save_LIBS="$LIBS"
4030 cat > conftest.$ac_ext <<EOF
4031 #line 4031 "configure"
4032 #include "confdefs.h"
4038 if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4040 eval "ac_cv_lib_$ac_lib_var=yes"
4042 echo "configure: failed program was:" >&5
4043 cat conftest.$ac_ext >&5
4045 eval "ac_cv_lib_$ac_lib_var=no"
4048 LIBS="$ac_save_LIBS"
4051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4052 echo "$ac_t""yes" 1>&6
4053 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4054 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4055 cat >> confdefs.h <<EOF
4056 #define $ac_tr_lib 1
4062 echo "$ac_t""no" 1>&6
4065 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
4066 echo "configure:4066: checking for main in -lresolv" >&5
4067 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
4068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4071 ac_save_LIBS="$LIBS"
4072 LIBS="-lresolv $LIBS"
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4074 "configure"
4075 #include "confdefs.h"
4081 if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4083 eval "ac_cv_lib_$ac_lib_var=yes"
4085 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4088 eval "ac_cv_lib_$ac_lib_var=no"
4091 LIBS="$ac_save_LIBS"
4094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4095 echo "$ac_t""yes" 1>&6
4096 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4097 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4098 cat >> confdefs.h <<EOF
4099 #define $ac_tr_lib 1
4102 LIBS="-lresolv $LIBS"
4105 echo "$ac_t""no" 1>&6
4109 echo $ac_n "checking for main in -lunix""... $ac_c" 1>&6
4110 echo "configure:4110: checking for main in -lunix" >&5
4111 ac_lib_var=`echo unix'_'main | sed 'y%./+-%__p_%'`
4112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4115 ac_save_LIBS="$LIBS"
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4118 "configure"
4119 #include "confdefs.h"
4125 if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4127 eval "ac_cv_lib_$ac_lib_var=yes"
4129 echo "configure: failed program was:" >&5
4130 cat conftest.$ac_ext >&5
4132 eval "ac_cv_lib_$ac_lib_var=no"
4135 LIBS="$ac_save_LIBS"
4138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4139 echo "$ac_t""yes" 1>&6
4140 ac_tr_lib=HAVE_LIB`echo [unix] | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4141 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4142 cat >> confdefs.h <<EOF
4143 #define $ac_tr_lib 1
4149 echo "$ac_t""no" 1>&6
4153 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4154 echo "configure:4154: checking for library containing crypt" >&5
4155 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 ac_func_search_save_LIBS="$LIBS"
4159 ac_cv_search_crypt="no"
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4161 "configure"
4162 #include "confdefs.h"
4163 /* Override any gcc2 internal prototype to avoid an error. */
4164 /* We use char because int might match the return type of a gcc2
4165 builtin and then its argument prototype would still apply. */
4172 if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4174 ac_cv_search_crypt="none required"
4176 echo "configure: failed program was:" >&5
4177 cat conftest.$ac_ext >&5
4180 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4181 LIBS="-l$i $ac_func_search_save_LIBS"
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4183 "configure"
4184 #include "confdefs.h"
4185 /* Override any gcc2 internal prototype to avoid an error. */
4186 /* We use char because int might match the return type of a gcc2
4187 builtin and then its argument prototype would still apply. */
4194 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4196 ac_cv_search_crypt="-l$i"
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4204 LIBS="$ac_func_search_save_LIBS"
4207 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4208 if test "$ac_cv_search_crypt" != "no"; then
4209 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4215 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4216 echo "configure:4216: checking for __inet_ntoa in -lbind" >&5
4217 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4221 ac_save_LIBS="$LIBS"
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4224 "configure"
4225 #include "confdefs.h"
4226 /* Override any gcc2 internal prototype to avoid an error. */
4227 /* We use char because int might match the return type of a gcc2
4228 builtin and then its argument prototype would still apply. */
4235 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4237 eval "ac_cv_lib_$ac_lib_var=yes"
4239 echo "configure: failed program was:" >&5
4240 cat conftest.$ac_ext >&5
4242 eval "ac_cv_lib_$ac_lib_var=no"
4245 LIBS="$ac_save_LIBS"
4248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4249 echo "$ac_t""yes" 1>&6
4250 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4252 cat >> confdefs.h <<EOF
4253 #define $ac_tr_lib 1
4259 echo "$ac_t""no" 1>&6
4262 # Only consider libz to be present if we find <zlib.h> as well;
4263 # furthermore, check that <zlib.h> defines z_streamp (versions before
4264 # about 1.0.4 did not). While we could work around the lack of z_streamp,
4265 # it seems unwise to encourage people to use such old zlib versions...
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4267 "configure"
4268 #include "confdefs.h"
4271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4272 egrep "z_streamp" >/dev/null 2>&1; then
4275 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4276 echo "configure:4276: checking for inflate in -lz" >&5
4277 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4281 ac_save_LIBS="$LIBS"
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4284 "configure"
4285 #include "confdefs.h"
4286 /* Override any gcc2 internal prototype to avoid an error. */
4287 /* We use char because int might match the return type of a gcc2
4288 builtin and then its argument prototype would still apply. */
4295 if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4297 eval "ac_cv_lib_$ac_lib_var=yes"
4299 echo "configure: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4302 eval "ac_cv_lib_$ac_lib_var=no"
4305 LIBS="$ac_save_LIBS"
4308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4309 echo "$ac_t""yes" 1>&6
4310 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4311 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4312 cat >> confdefs.h <<EOF
4313 #define $ac_tr_lib 1
4319 echo "$ac_t""no" 1>&6
4328 echo $ac_n "checking for library containing fdatasync""... $ac_c" 1>&6
4329 echo "configure:4329: checking for library containing fdatasync" >&5
4330 if eval "test \"`echo '$''{'ac_cv_search_fdatasync'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4333 ac_func_search_save_LIBS="$LIBS"
4334 ac_cv_search_fdatasync="no"
4335 cat > conftest.$ac_ext <<EOF
4336 #line 4336 "configure"
4337 #include "confdefs.h"
4338 /* Override any gcc2 internal prototype to avoid an error. */
4339 /* We use char because int might match the return type of a gcc2
4340 builtin and then its argument prototype would still apply. */
4347 if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4349 ac_cv_search_fdatasync="none required"
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4355 test "$ac_cv_search_fdatasync" = "no" && for i in rt posix4; do
4356 LIBS="-l$i $ac_func_search_save_LIBS"
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4358 "configure"
4359 #include "confdefs.h"
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4369 if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4371 ac_cv_search_fdatasync="-l$i"
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4379 LIBS="$ac_func_search_save_LIBS"
4382 echo "$ac_t""$ac_cv_search_fdatasync" 1>&6
4383 if test "$ac_cv_search_fdatasync" != "no"; then
4384 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
4390 if test "$with_krb4" = yes ; then
4391 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4392 echo "configure:4392: checking for des_encrypt in -ldes" >&5
4393 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4397 ac_save_LIBS="$LIBS"
4399 cat > conftest.$ac_ext <<EOF
4400 #line 4400 "configure"
4401 #include "confdefs.h"
4402 /* Override any gcc2 internal prototype to avoid an error. */
4403 /* We use char because int might match the return type of a gcc2
4404 builtin and then its argument prototype would still apply. */
4411 if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4413 eval "ac_cv_lib_$ac_lib_var=yes"
4415 echo "configure: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4418 eval "ac_cv_lib_$ac_lib_var=no"
4421 LIBS="$ac_save_LIBS"
4424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4425 echo "$ac_t""yes" 1>&6
4426 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4427 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4428 cat >> confdefs.h <<EOF
4429 #define $ac_tr_lib 1
4435 echo "$ac_t""no" 1>&6
4436 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4439 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4440 echo "configure:4440: checking for krb_sendauth in -lkrb" >&5
4441 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4445 ac_save_LIBS="$LIBS"
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4448 "configure"
4449 #include "confdefs.h"
4450 /* Override any gcc2 internal prototype to avoid an error. */
4451 /* We use char because int might match the return type of a gcc2
4452 builtin and then its argument prototype would still apply. */
4453 char krb_sendauth();
4459 if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4461 eval "ac_cv_lib_$ac_lib_var=yes"
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 eval "ac_cv_lib_$ac_lib_var=no"
4469 LIBS="$ac_save_LIBS"
4472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4473 echo "$ac_t""yes" 1>&6
4474 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4475 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4476 cat >> confdefs.h <<EOF
4477 #define $ac_tr_lib 1
4483 echo "$ac_t""no" 1>&6
4484 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4489 if test "$with_krb5" = yes ; then
4491 echo $ac_n "checking for library containing com_err""... $ac_c" 1>&6
4492 echo "configure:4492: checking for library containing com_err" >&5
4493 if eval "test \"`echo '$''{'ac_cv_search_com_err'+set}'`\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4496 ac_func_search_save_LIBS="$LIBS"
4497 ac_cv_search_com_err="no"
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4499 "configure"
4500 #include "confdefs.h"
4501 /* Override any gcc2 internal prototype to avoid an error. */
4502 /* We use char because int might match the return type of a gcc2
4503 builtin and then its argument prototype would still apply. */
4510 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4512 ac_cv_search_com_err="none required"
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4518 test "$ac_cv_search_com_err" = "no" && for i in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
4519 LIBS="-l$i $ac_func_search_save_LIBS"
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4521 "configure"
4522 #include "confdefs.h"
4523 /* Override any gcc2 internal prototype to avoid an error. */
4524 /* We use char because int might match the return type of a gcc2
4525 builtin and then its argument prototype would still apply. */
4532 if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4534 ac_cv_search_com_err="-l$i"
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4542 LIBS="$ac_func_search_save_LIBS"
4545 echo "$ac_t""$ac_cv_search_com_err" 1>&6
4546 if test "$ac_cv_search_com_err" != "no"; then
4547 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
4550 { echo "configure: error: could not find function 'com_err' required for Kerberos 5" 1>&2; exit 1; }
4553 echo $ac_n "checking for library containing krb5_encrypt""... $ac_c" 1>&6
4554 echo "configure:4554: checking for library containing krb5_encrypt" >&5
4555 if eval "test \"`echo '$''{'ac_cv_search_krb5_encrypt'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 ac_func_search_save_LIBS="$LIBS"
4559 ac_cv_search_krb5_encrypt="no"
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4561 "configure"
4562 #include "confdefs.h"
4563 /* Override any gcc2 internal prototype to avoid an error. */
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4566 char krb5_encrypt();
4572 if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4574 ac_cv_search_krb5_encrypt="none required"
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4580 test "$ac_cv_search_krb5_encrypt" = "no" && for i in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
4581 LIBS="-l$i $ac_func_search_save_LIBS"
4582 cat > conftest.$ac_ext <<EOF
4583 #line 4583 "configure"
4584 #include "confdefs.h"
4585 /* Override any gcc2 internal prototype to avoid an error. */
4586 /* We use char because int might match the return type of a gcc2
4587 builtin and then its argument prototype would still apply. */
4588 char krb5_encrypt();
4594 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4596 ac_cv_search_krb5_encrypt="-l$i"
4599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4604 LIBS="$ac_func_search_save_LIBS"
4607 echo "$ac_t""$ac_cv_search_krb5_encrypt" 1>&6
4608 if test "$ac_cv_search_krb5_encrypt" != "no"; then
4609 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
4612 { echo "configure: error: could not find function 'krb5_encrypt' required for Kerberos 5" 1>&2; exit 1; }
4615 echo $ac_n "checking for library containing krb5_sendauth""... $ac_c" 1>&6
4616 echo "configure:4616: checking for library containing krb5_sendauth" >&5
4617 if eval "test \"`echo '$''{'ac_cv_search_krb5_sendauth'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 ac_func_search_save_LIBS="$LIBS"
4621 ac_cv_search_krb5_sendauth="no"
4622 cat > conftest.$ac_ext <<EOF
4623 #line 4623 "configure"
4624 #include "confdefs.h"
4625 /* Override any gcc2 internal prototype to avoid an error. */
4626 /* We use char because int might match the return type of a gcc2
4627 builtin and then its argument prototype would still apply. */
4628 char krb5_sendauth();
4634 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4636 ac_cv_search_krb5_sendauth="none required"
4638 echo "configure: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4642 test "$ac_cv_search_krb5_sendauth" = "no" && for i in krb5 'krb5 -ldes -lasn1 -lroken'; do
4643 LIBS="-l$i $ac_func_search_save_LIBS"
4644 cat > conftest.$ac_ext <<EOF
4645 #line 4645 "configure"
4646 #include "confdefs.h"
4647 /* Override any gcc2 internal prototype to avoid an error. */
4648 /* We use char because int might match the return type of a gcc2
4649 builtin and then its argument prototype would still apply. */
4650 char krb5_sendauth();
4656 if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4658 ac_cv_search_krb5_sendauth="-l$i"
4661 echo "configure: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4666 LIBS="$ac_func_search_save_LIBS"
4669 echo "$ac_t""$ac_cv_search_krb5_sendauth" 1>&6
4670 if test "$ac_cv_search_krb5_sendauth" != "no"; then
4671 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
4674 { echo "configure: error: could not find function 'krb5_sendauth' required for Kerberos 5" 1>&2; exit 1; }
4678 if test "$with_openssl" = yes ; then
4679 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4680 echo "configure:4680: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4681 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4685 ac_save_LIBS="$LIBS"
4686 LIBS="-lcrypto $LIBS"
4687 cat > conftest.$ac_ext <<EOF
4688 #line 4688 "configure"
4689 #include "confdefs.h"
4690 /* Override any gcc2 internal prototype to avoid an error. */
4691 /* We use char because int might match the return type of a gcc2
4692 builtin and then its argument prototype would still apply. */
4693 char CRYPTO_new_ex_data();
4696 CRYPTO_new_ex_data()
4699 if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4701 eval "ac_cv_lib_$ac_lib_var=yes"
4703 echo "configure: failed program was:" >&5
4704 cat conftest.$ac_ext >&5
4706 eval "ac_cv_lib_$ac_lib_var=no"
4709 LIBS="$ac_save_LIBS"
4712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4713 echo "$ac_t""yes" 1>&6
4714 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4715 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4716 cat >> confdefs.h <<EOF
4717 #define $ac_tr_lib 1
4720 LIBS="-lcrypto $LIBS"
4723 echo "$ac_t""no" 1>&6
4724 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4727 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4728 echo "configure:4728: checking for SSL_library_init in -lssl" >&5
4729 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4733 ac_save_LIBS="$LIBS"
4735 cat > conftest.$ac_ext <<EOF
4736 #line 4736 "configure"
4737 #include "confdefs.h"
4738 /* Override any gcc2 internal prototype to avoid an error. */
4739 /* We use char because int might match the return type of a gcc2
4740 builtin and then its argument prototype would still apply. */
4741 char SSL_library_init();
4747 if { (eval echo configure:4747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4749 eval "ac_cv_lib_$ac_lib_var=yes"
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4754 eval "ac_cv_lib_$ac_lib_var=no"
4757 LIBS="$ac_save_LIBS"
4760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4761 echo "$ac_t""yes" 1>&6
4762 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4763 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4764 cat >> confdefs.h <<EOF
4765 #define $ac_tr_lib 1
4771 echo "$ac_t""no" 1>&6
4772 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4777 if test "$with_pam" = yes ; then
4778 echo $ac_n "checking for pam_start in -lpam""... $ac_c" 1>&6
4779 echo "configure:4779: checking for pam_start in -lpam" >&5
4780 ac_lib_var=`echo pam'_'pam_start | sed 'y%./+-%__p_%'`
4781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 ac_save_LIBS="$LIBS"
4786 cat > conftest.$ac_ext <<EOF
4787 #line 4787 "configure"
4788 #include "confdefs.h"
4789 /* Override any gcc2 internal prototype to avoid an error. */
4790 /* We use char because int might match the return type of a gcc2
4791 builtin and then its argument prototype would still apply. */
4798 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4800 eval "ac_cv_lib_$ac_lib_var=yes"
4802 echo "configure: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4805 eval "ac_cv_lib_$ac_lib_var=no"
4808 LIBS="$ac_save_LIBS"
4811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4812 echo "$ac_t""yes" 1>&6
4813 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4814 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4815 cat >> confdefs.h <<EOF
4816 #define $ac_tr_lib 1
4822 echo "$ac_t""no" 1>&6
4823 { echo "configure: error: library 'pam' is required for PAM" 1>&2; exit 1; }
4828 if test "$enable_nls" = yes ; then
4831 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
4832 echo "configure:4832: checking for library containing gettext" >&5
4833 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4836 ac_func_search_save_LIBS="$LIBS"
4837 ac_cv_search_gettext="no"
4838 cat > conftest.$ac_ext <<EOF
4839 #line 4839 "configure"
4840 #include "confdefs.h"
4841 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */
4850 if { (eval echo configure:4850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4852 ac_cv_search_gettext="none required"
4854 echo "configure: failed program was:" >&5
4855 cat conftest.$ac_ext >&5
4858 test "$ac_cv_search_gettext" = "no" && for i in intl; do
4859 LIBS="-l$i $ac_func_search_save_LIBS"
4860 cat > conftest.$ac_ext <<EOF
4861 #line 4861 "configure"
4862 #include "confdefs.h"
4863 /* Override any gcc2 internal prototype to avoid an error. */
4864 /* We use char because int might match the return type of a gcc2
4865 builtin and then its argument prototype would still apply. */
4872 if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4874 ac_cv_search_gettext="-l$i"
4877 echo "configure: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4882 LIBS="$ac_func_search_save_LIBS"
4885 echo "$ac_t""$ac_cv_search_gettext" 1>&6
4886 if test "$ac_cv_search_gettext" != "no"; then
4887 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
4890 { echo "configure: error: a gettext implementation is required for NLS" 1>&2; exit 1; }
4892 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4893 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4894 echo "configure:4894: checking for libintl.h" >&5
4895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4899 "configure"
4900 #include "confdefs.h"
4901 #include <libintl.h>
4903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4904 { (eval echo configure:4904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4906 if test -z "$ac_err"; then
4908 eval "ac_cv_header_$ac_safe=yes"
4911 echo "configure: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4914 eval "ac_cv_header_$ac_safe=no"
4918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4919 echo "$ac_t""yes" 1>&6
4922 echo "$ac_t""no" 1>&6
4923 { echo "configure: error: header file <libintl.h> is required for NLS" 1>&2; exit 1; }
4926 for ac_prog in msgfmt
4928 # Extract the first word of "$ac_prog", so it can be a program name with args.
4929 set dummy $ac_prog; ac_word=$2
4930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4931 echo "configure:4931: checking for $ac_word" >&5
4932 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6
4935 if test -n "$MSGFMT"; then
4936 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4940 for ac_dir in $ac_dummy; do
4941 test -z "$ac_dir" && ac_dir=.
4942 if test -f $ac_dir/$ac_word; then
4943 ac_cv_prog_MSGFMT="$ac_prog"
4950 MSGFMT="$ac_cv_prog_MSGFMT"
4951 if test -n "$MSGFMT"; then
4952 echo "$ac_t""$MSGFMT" 1>&6
4954 echo "$ac_t""no" 1>&6
4957 test -n "$MSGFMT" && break
4960 if test -z "$MSGFMT"; then
4961 { echo "configure: error: msgfmt is required for NLS" 1>&2; exit 1; }
4963 for ac_prog in msgmerge
4965 # Extract the first word of "$ac_prog", so it can be a program name with args.
4966 set dummy $ac_prog; ac_word=$2
4967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4968 echo "configure:4968: checking for $ac_word" >&5
4969 if eval "test \"`echo '$''{'ac_cv_prog_MSGMERGE'+set}'`\" = set"; then
4970 echo $ac_n "(cached) $ac_c" 1>&6
4972 if test -n "$MSGMERGE"; then
4973 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
4975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4977 for ac_dir in $ac_dummy; do
4978 test -z "$ac_dir" && ac_dir=.
4979 if test -f $ac_dir/$ac_word; then
4980 ac_cv_prog_MSGMERGE="$ac_prog"
4987 MSGMERGE="$ac_cv_prog_MSGMERGE"
4988 if test -n "$MSGMERGE"; then
4989 echo "$ac_t""$MSGMERGE" 1>&6
4991 echo "$ac_t""no" 1>&6
4994 test -n "$MSGMERGE" && break
4997 for ac_prog in xgettext
4999 # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy $ac_prog; ac_word=$2
5001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5002 echo "configure:5002: checking for $ac_word" >&5
5003 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5006 if test -n "$XGETTEXT"; then
5007 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
5009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5011 for ac_dir in $ac_dummy; do
5012 test -z "$ac_dir" && ac_dir=.
5013 if test -f $ac_dir/$ac_word; then
5014 ac_cv_prog_XGETTEXT="$ac_prog"
5021 XGETTEXT="$ac_cv_prog_XGETTEXT"
5022 if test -n "$XGETTEXT"; then
5023 echo "$ac_t""$XGETTEXT" 1>&6
5025 echo "$ac_t""no" 1>&6
5028 test -n "$XGETTEXT" && break
5032 # Note: share/locale is always the default, independent of $datadir
5033 localedir='${prefix}/share/locale'
5034 if test x"$prefix" = x"NONE"; then
5035 exp_localedir="$ac_default_prefix/share/locale"
5037 exp_localedir="$prefix/share/locale"
5041 cat >> confdefs.h <<EOF
5042 #define LOCALEDIR "$exp_localedir"
5051 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
5053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5055 echo "configure:5055: checking for $ac_hdr" >&5
5056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5059 cat > conftest.$ac_ext <<EOF
5060 #line 5060 "configure"
5061 #include "confdefs.h"
5064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5065 { (eval echo configure:5065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5067 if test -z "$ac_err"; then
5069 eval "ac_cv_header_$ac_safe=yes"
5072 echo "configure: failed program was:" >&5
5073 cat conftest.$ac_ext >&5
5075 eval "ac_cv_header_$ac_safe=no"
5079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5080 echo "$ac_t""yes" 1>&6
5081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5082 cat >> confdefs.h <<EOF
5083 #define $ac_tr_hdr 1
5087 echo "$ac_t""no" 1>&6
5092 for ac_hdr in netinet/in.h
5094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5096 echo "configure:5096: checking for $ac_hdr" >&5
5097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5101 "configure"
5102 #include "confdefs.h"
5105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5106 { (eval echo configure:5106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5108 if test -z "$ac_err"; then
5110 eval "ac_cv_header_$ac_safe=yes"
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5116 eval "ac_cv_header_$ac_safe=no"
5120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5121 echo "$ac_t""yes" 1>&6
5122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5123 cat >> confdefs.h <<EOF
5124 #define $ac_tr_hdr 1
5128 echo "$ac_t""no" 1>&6
5132 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
5133 echo "configure:5133: checking for netinet/tcp.h" >&5
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5135 "configure"
5136 #include "confdefs.h"
5138 #ifdef HAVE_NETINET_IN_H
5139 #include <netinet/in.h>
5141 #include <netinet/tcp.h>
5144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5145 { (eval echo configure:5145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5147 if test -z "$ac_err"; then
5149 cat >> confdefs.h <<\EOF
5150 #define HAVE_NETINET_TCP_H 1
5152 echo "$ac_t""yes" 1>&6
5155 echo "configure: failed program was:" >&5
5156 cat conftest.$ac_ext >&5
5158 echo "$ac_t""no" 1>&6
5162 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
5163 echo "configure:5163: checking whether string.h and strings.h may both be included" >&5
5164 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5168 "configure"
5169 #include "confdefs.h"
5171 #include <strings.h>
5174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5175 { (eval echo configure:5175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5177 if test -z "$ac_err"; then
5179 cat > conftest.$ac_ext <<EOF
5180 #line 5180 "configure"
5181 #include "confdefs.h"
5183 #include <strings.h>
5186 int n = strcasecmp("a", "b");
5189 if { (eval echo configure:5189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5191 pgac_cv_header_strings_both=yes
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5196 pgac_cv_header_strings_both=no
5201 echo "configure: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5204 pgac_cv_header_strings_both=no
5209 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
5210 if test x"$pgac_cv_header_strings_both" = x"yes"; then
5211 cat >> confdefs.h <<\EOF
5212 #define STRING_H_WITH_STRINGS_H 1
5217 for ac_hdr in readline/readline.h readline.h
5219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5221 echo "configure:5221: checking for $ac_hdr" >&5
5222 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5225 cat > conftest.$ac_ext <<EOF
5226 #line 5226 "configure"
5227 #include "confdefs.h"
5230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5231 { (eval echo configure:5231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5233 if test -z "$ac_err"; then
5235 eval "ac_cv_header_$ac_safe=yes"
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5241 eval "ac_cv_header_$ac_safe=no"
5245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5246 echo "$ac_t""yes" 1>&6
5247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5248 cat >> confdefs.h <<EOF
5249 #define $ac_tr_hdr 1
5253 echo "$ac_t""no" 1>&6
5257 for ac_hdr in readline/history.h history.h
5259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5261 echo "configure:5261: checking for $ac_hdr" >&5
5262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5263 echo $ac_n "(cached) $ac_c" 1>&6
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5266 "configure"
5267 #include "confdefs.h"
5270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5271 { (eval echo configure:5271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5273 if test -z "$ac_err"; then
5275 eval "ac_cv_header_$ac_safe=yes"
5278 echo "configure: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5281 eval "ac_cv_header_$ac_safe=no"
5285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5286 echo "$ac_t""yes" 1>&6
5287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5288 cat >> confdefs.h <<EOF
5289 #define $ac_tr_hdr 1
5293 echo "$ac_t""no" 1>&6
5298 if test "$with_krb4" = yes ; then
5299 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
5300 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
5301 echo "configure:5301: checking for krb.h" >&5
5302 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
5305 cat > conftest.$ac_ext <<EOF
5306 #line 5306 "configure"
5307 #include "confdefs.h"
5310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5311 { (eval echo configure:5311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5313 if test -z "$ac_err"; then
5315 eval "ac_cv_header_$ac_safe=yes"
5318 echo "configure: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5321 eval "ac_cv_header_$ac_safe=no"
5325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5326 echo "$ac_t""yes" 1>&6
5329 echo "$ac_t""no" 1>&6
5330 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
5335 if test "$with_krb5" = yes ; then
5336 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
5337 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
5338 echo "configure:5338: checking for krb5.h" >&5
5339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5343 "configure"
5344 #include "confdefs.h"
5347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5348 { (eval echo configure:5348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5350 if test -z "$ac_err"; then
5352 eval "ac_cv_header_$ac_safe=yes"
5355 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5358 eval "ac_cv_header_$ac_safe=no"
5362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5363 echo "$ac_t""yes" 1>&6
5366 echo "$ac_t""no" 1>&6
5367 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
5370 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
5371 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
5372 echo "configure:5372: checking for com_err.h" >&5
5373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5374 echo $ac_n "(cached) $ac_c" 1>&6
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5377 "configure"
5378 #include "confdefs.h"
5379 #include <com_err.h>
5381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5382 { (eval echo configure:5382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5384 if test -z "$ac_err"; then
5386 eval "ac_cv_header_$ac_safe=yes"
5389 echo "configure: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5392 eval "ac_cv_header_$ac_safe=no"
5396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5397 echo "$ac_t""yes" 1>&6
5400 echo "$ac_t""no" 1>&6
5401 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
5406 if test "$with_openssl" = yes ; then
5407 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
5408 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
5409 echo "configure:5409: checking for openssl/ssl.h" >&5
5410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5411 echo $ac_n "(cached) $ac_c" 1>&6
5413 cat > conftest.$ac_ext <<EOF
5414 #line 5414 "configure"
5415 #include "confdefs.h"
5416 #include <openssl/ssl.h>
5418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5419 { (eval echo configure:5419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5421 if test -z "$ac_err"; then
5423 eval "ac_cv_header_$ac_safe=yes"
5426 echo "configure: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5429 eval "ac_cv_header_$ac_safe=no"
5433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5434 echo "$ac_t""yes" 1>&6
5437 echo "$ac_t""no" 1>&6
5438 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
5441 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
5442 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
5443 echo "configure:5443: checking for openssl/err.h" >&5
5444 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5447 cat > conftest.$ac_ext <<EOF
5448 #line 5448 "configure"
5449 #include "confdefs.h"
5450 #include <openssl/err.h>
5452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5453 { (eval echo configure:5453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5455 if test -z "$ac_err"; then
5457 eval "ac_cv_header_$ac_safe=yes"
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5463 eval "ac_cv_header_$ac_safe=no"
5467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5468 echo "$ac_t""yes" 1>&6
5471 echo "$ac_t""no" 1>&6
5472 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
5477 if test "$with_pam" = yes ; then
5478 ac_safe=`echo "security/pam_appl.h" | sed 'y%./+-%__p_%'`
5479 echo $ac_n "checking for security/pam_appl.h""... $ac_c" 1>&6
5480 echo "configure:5480: checking for security/pam_appl.h" >&5
5481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5482 echo $ac_n "(cached) $ac_c" 1>&6
5484 cat > conftest.$ac_ext <<EOF
5485 #line 5485 "configure"
5486 #include "confdefs.h"
5487 #include <security/pam_appl.h>
5489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5490 { (eval echo configure:5490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5492 if test -z "$ac_err"; then
5494 eval "ac_cv_header_$ac_safe=yes"
5497 echo "configure: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5500 eval "ac_cv_header_$ac_safe=no"
5504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5505 echo "$ac_t""yes" 1>&6
5508 echo "$ac_t""no" 1>&6
5509 { echo "configure: error: header file <security/pam_appl.h> is required for PAM" 1>&2; exit 1; }
5516 ## Types, structures, compiler characteristics
5518 echo $ac_n "checking for working const""... $ac_c" 1>&6
5519 echo "configure:5519: checking for working const" >&5
5520 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5523 cat > conftest.$ac_ext <<EOF
5524 #line 5524 "configure"
5525 #include "confdefs.h"
5529 /* Ultrix mips cc rejects this. */
5530 typedef int charset[2]; const charset x;
5531 /* SunOS 4.1.1 cc rejects this. */
5532 char const *const *ccp;
5534 /* NEC SVR4.0.2 mips cc rejects this. */
5535 struct point {int x, y;};
5536 static struct point const zero = {0,0};
5537 /* AIX XL C 1.02.0.0 rejects this.
5538 It does not let you subtract one const X* pointer from another in an arm
5539 of an if-expression whose if-part is not a constant expression */
5540 const char *g = "string";
5541 ccp = &g + (g ? g-g : 0);
5542 /* HPUX 7.0 cc rejects these. */
5545 ccp = (char const *const *) p;
5546 { /* SCO 3.2v4 cc rejects this. */
5548 char const *s = 0 ? (char *) 0 : (char const *) 0;
5552 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5554 const int *foo = &x[0];
5557 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5558 typedef const int *iptr;
5562 { /* AIX XL C 1.02.0.0 rejects this saying
5563 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5564 struct s { int j; const int *ap[3]; };
5565 struct s *b; b->j = 5;
5567 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5573 if { (eval echo configure:5573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5577 echo "configure: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5585 echo "$ac_t""$ac_cv_c_const" 1>&6
5586 if test $ac_cv_c_const = no; then
5587 cat >> confdefs.h <<\EOF
5593 echo $ac_n "checking for inline""... $ac_c" 1>&6
5594 echo "configure:5594: checking for inline" >&5
5595 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5599 for ac_kw in inline __inline__ __inline; do
5600 cat > conftest.$ac_ext <<EOF
5601 #line 5601 "configure"
5602 #include "confdefs.h"
5608 if { (eval echo configure:5608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5610 ac_cv_c_inline=$ac_kw; break
5612 echo "configure: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5620 echo "$ac_t""$ac_cv_c_inline" 1>&6
5621 case "$ac_cv_c_inline" in
5623 no) cat >> confdefs.h <<\EOF
5627 *) cat >> confdefs.h <<EOF
5628 #define inline $ac_cv_c_inline
5635 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5636 echo "configure:5636: checking for preprocessor stringizing operator" >&5
5637 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5641 "configure"
5642 #include "confdefs.h"
5646 char *s = x(teststring);
5649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5650 egrep "#teststring" >/dev/null 2>&1; then
5652 ac_cv_c_stringize=no
5655 ac_cv_c_stringize=yes
5661 if test "${ac_cv_c_stringize}" = yes
5663 cat >> confdefs.h <<\EOF
5664 #define HAVE_STRINGIZE 1
5668 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5670 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5671 echo "configure:5671: checking for signed types" >&5
5672 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5676 "configure"
5677 #include "confdefs.h"
5680 signed char c; signed short s; signed int i;
5683 if { (eval echo configure:5683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5685 pgac_cv_c_signed=yes
5687 echo "configure: failed program was:" >&5
5688 cat conftest.$ac_ext >&5
5695 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5696 if test x"$pgac_cv_c_signed" = xno ; then
5697 cat >> confdefs.h <<\EOF
5702 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5703 echo "configure:5703: checking for volatile" >&5
5704 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5708 "configure"
5709 #include "confdefs.h"
5712 extern volatile int i;
5715 if { (eval echo configure:5715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5717 pgac_cv_c_volatile=yes
5719 echo "configure: failed program was:" >&5
5720 cat conftest.$ac_ext >&5
5722 pgac_cv_c_volatile=no
5727 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5728 if test x"$pgac_cv_c_volatile" = xno ; then
5729 cat >> confdefs.h <<\EOF
5734 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5735 echo "configure:5735: checking whether struct tm is in sys/time.h or time.h" >&5
5736 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5739 cat > conftest.$ac_ext <<EOF
5740 #line 5740 "configure"
5741 #include "confdefs.h"
5742 #include <sys/types.h>
5745 struct tm *tp; tp->tm_sec;
5748 if { (eval echo configure:5748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5750 ac_cv_struct_tm=time.h
5752 echo "configure: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5755 ac_cv_struct_tm=sys/time.h
5760 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5761 if test $ac_cv_struct_tm = sys/time.h; then
5762 cat >> confdefs.h <<\EOF
5763 #define TM_IN_SYS_TIME 1
5768 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5769 echo "configure:5769: checking for tm_zone in struct tm" >&5
5770 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5773 cat > conftest.$ac_ext <<EOF
5774 #line 5774 "configure"
5775 #include "confdefs.h"
5776 #include <sys/types.h>
5777 #include <$ac_cv_struct_tm>
5779 struct tm tm; tm.tm_zone;
5782 if { (eval echo configure:5782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5784 ac_cv_struct_tm_zone=yes
5786 echo "configure: failed program was:" >&5
5787 cat conftest.$ac_ext >&5
5789 ac_cv_struct_tm_zone=no
5794 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5795 if test "$ac_cv_struct_tm_zone" = yes; then
5796 cat >> confdefs.h <<\EOF
5797 #define HAVE_TM_ZONE 1
5801 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5802 echo "configure:5802: checking for tzname" >&5
5803 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5804 echo $ac_n "(cached) $ac_c" 1>&6
5806 cat > conftest.$ac_ext <<EOF
5807 #line 5807 "configure"
5808 #include "confdefs.h"
5810 #ifndef tzname /* For SGI. */
5811 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5817 if { (eval echo configure:5817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5819 ac_cv_var_tzname=yes
5821 echo "configure: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5829 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5830 if test $ac_cv_var_tzname = yes; then
5831 cat >> confdefs.h <<\EOF
5832 #define HAVE_TZNAME 1
5838 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5839 echo "configure:5839: checking for union semun" >&5
5840 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5841 echo $ac_n "(cached) $ac_c" 1>&6
5843 cat > conftest.$ac_ext <<EOF
5844 #line 5844 "configure"
5845 #include "confdefs.h"
5846 #include <sys/types.h>
5847 #include <sys/ipc.h>
5848 #include <sys/sem.h>
5853 if { (eval echo configure:5853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5855 pgac_cv_union_semun=yes
5857 echo "configure: failed program was:" >&5
5858 cat conftest.$ac_ext >&5
5860 pgac_cv_union_semun=no
5865 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5866 if test x"$pgac_cv_union_semun" = xyes ; then
5867 cat >> confdefs.h <<\EOF
5868 #define HAVE_UNION_SEMUN 1
5872 echo $ac_n "checking for struct cmsgcred""... $ac_c" 1>&6
5873 echo "configure:5873: checking for struct cmsgcred" >&5
5874 if eval "test \"`echo '$''{'pgac_cv_struct_cmsgcred'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5878 "configure"
5879 #include "confdefs.h"
5880 #include <sys/param.h>
5881 #include <sys/socket.h>
5882 #include <sys/ucred.h>
5884 struct cmsgcred sockcred;
5887 if { (eval echo configure:5887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5889 pgac_cv_struct_cmsgcred=yes
5891 echo "configure: failed program was:" >&5
5892 cat conftest.$ac_ext >&5
5894 pgac_cv_struct_cmsgcred=no
5899 echo "$ac_t""$pgac_cv_struct_cmsgcred" 1>&6
5900 if test x"$pgac_cv_struct_cmsgcred" = xyes ; then
5901 cat >> confdefs.h <<\EOF
5902 #define HAVE_STRUCT_CMSGCRED 1
5906 echo $ac_n "checking for struct fcred""... $ac_c" 1>&6
5907 echo "configure:5907: checking for struct fcred" >&5
5908 if eval "test \"`echo '$''{'pgac_cv_struct_fcred'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5912 "configure"
5913 #include "confdefs.h"
5914 #include <sys/param.h>
5915 #include <sys/socket.h>
5916 #include <sys/ucred.h>
5918 struct fcred sockcred;
5921 if { (eval echo configure:5921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5923 pgac_cv_struct_fcred=yes
5925 echo "configure: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5928 pgac_cv_struct_fcred=no
5933 echo "$ac_t""$pgac_cv_struct_fcred" 1>&6
5934 if test x"$pgac_cv_struct_fcred" = xyes ; then
5935 cat >> confdefs.h <<\EOF
5936 #define HAVE_STRUCT_FCRED 1
5940 echo $ac_n "checking for struct sockcred""... $ac_c" 1>&6
5941 echo "configure:5941: checking for struct sockcred" >&5
5942 if eval "test \"`echo '$''{'pgac_cv_struct_sockcred'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5946 "configure"
5947 #include "confdefs.h"
5948 #include <sys/param.h>
5949 #include <sys/socket.h>
5950 #include <sys/ucred.h>
5952 struct sockcred sockcred;
5955 if { (eval echo configure:5955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5957 pgac_cv_struct_sockcred=yes
5959 echo "configure: failed program was:" >&5
5960 cat conftest.$ac_ext >&5
5962 pgac_cv_struct_sockcred=no
5967 echo "$ac_t""$pgac_cv_struct_sockcred" 1>&6
5968 if test x"$pgac_cv_struct_sockcred" = xyes ; then
5969 cat >> confdefs.h <<\EOF
5970 #define HAVE_STRUCT_SOCKCRED 1
5974 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5975 echo "configure:5975: checking for struct sockaddr_un" >&5
5976 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5979 cat > conftest.$ac_ext <<EOF
5980 #line 5980 "configure"
5981 #include "confdefs.h"
5982 #include <sys/types.h>
5983 #ifdef HAVE_SYS_UN_H
5987 struct sockaddr_un un;
5990 if { (eval echo configure:5990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5992 pgac_cv_struct_sockaddr_un=yes
5994 echo "configure: failed program was:" >&5
5995 cat conftest.$ac_ext >&5
5997 pgac_cv_struct_sockaddr_un=no
6002 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
6003 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
6004 cat >> confdefs.h <<\EOF
6005 #define HAVE_STRUCT_SOCKADDR_UN 1
6010 if test "$with_krb5" = yes; then
6011 # Check for differences between MIT and Heimdal (KTH) releases
6012 echo $ac_n "checking for krb5_ticket.enc_part2""... $ac_c" 1>&6
6013 echo "configure:6013: checking for krb5_ticket.enc_part2" >&5
6014 if eval "test \"`echo '$''{'pgac_cv_member_krb5_ticket_enc_part2'+set}'`\" = set"; then
6015 echo $ac_n "(cached) $ac_c" 1>&6
6017 cat > conftest.$ac_ext <<EOF
6018 #line 6018 "configure"
6019 #include "confdefs.h"
6022 static krb5_ticket pgac_var;
6023 if (pgac_var.enc_part2)
6027 if { (eval echo configure:6027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6029 pgac_cv_member_krb5_ticket_enc_part2=yes
6031 echo "configure: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6034 pgac_cv_member_krb5_ticket_enc_part2=no
6039 echo "$ac_t""$pgac_cv_member_krb5_ticket_enc_part2" 1>&6
6041 if test x"$pgac_cv_member_krb5_ticket_enc_part2" = x"yes"; then
6042 cat >> confdefs.h <<EOF
6043 #define HAVE_KRB5_TICKET_ENC_PART2 1
6048 echo $ac_n "checking for krb5_ticket.client""... $ac_c" 1>&6
6049 echo "configure:6049: checking for krb5_ticket.client" >&5
6050 if eval "test \"`echo '$''{'pgac_cv_member_krb5_ticket_client'+set}'`\" = set"; then
6051 echo $ac_n "(cached) $ac_c" 1>&6
6053 cat > conftest.$ac_ext <<EOF
6054 #line 6054 "configure"
6055 #include "confdefs.h"
6058 static krb5_ticket pgac_var;
6059 if (pgac_var.client)
6063 if { (eval echo configure:6063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6065 pgac_cv_member_krb5_ticket_client=yes
6067 echo "configure: failed program was:" >&5
6068 cat conftest.$ac_ext >&5
6070 pgac_cv_member_krb5_ticket_client=no
6075 echo "$ac_t""$pgac_cv_member_krb5_ticket_client" 1>&6
6077 if test x"$pgac_cv_member_krb5_ticket_client" = x"yes"; then
6078 cat >> confdefs.h <<EOF
6079 #define HAVE_KRB5_TICKET_CLIENT 1
6084 { echo "configure: error: could not determine how to get client name from Kerberos 5 ticket" 1>&2; exit 1; }
6089 echo $ac_n "checking for krb5_error.text.data""... $ac_c" 1>&6
6090 echo "configure:6090: checking for krb5_error.text.data" >&5
6091 if eval "test \"`echo '$''{'pgac_cv_member_krb5_error_text_data'+set}'`\" = set"; then
6092 echo $ac_n "(cached) $ac_c" 1>&6
6094 cat > conftest.$ac_ext <<EOF
6095 #line 6095 "configure"
6096 #include "confdefs.h"
6099 static krb5_error pgac_var;
6100 if (pgac_var.text.data)
6104 if { (eval echo configure:6104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6106 pgac_cv_member_krb5_error_text_data=yes
6108 echo "configure: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6111 pgac_cv_member_krb5_error_text_data=no
6116 echo "$ac_t""$pgac_cv_member_krb5_error_text_data" 1>&6
6118 if test x"$pgac_cv_member_krb5_error_text_data" = x"yes"; then
6119 cat >> confdefs.h <<EOF
6120 #define HAVE_KRB5_ERROR_TEXT_DATA 1
6125 echo $ac_n "checking for krb5_error.e_data""... $ac_c" 1>&6
6126 echo "configure:6126: checking for krb5_error.e_data" >&5
6127 if eval "test \"`echo '$''{'pgac_cv_member_krb5_error_e_data'+set}'`\" = set"; then
6128 echo $ac_n "(cached) $ac_c" 1>&6
6130 cat > conftest.$ac_ext <<EOF
6131 #line 6131 "configure"
6132 #include "confdefs.h"
6135 static krb5_error pgac_var;
6136 if (pgac_var.e_data)
6140 if { (eval echo configure:6140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6142 pgac_cv_member_krb5_error_e_data=yes
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6147 pgac_cv_member_krb5_error_e_data=no
6152 echo "$ac_t""$pgac_cv_member_krb5_error_e_data" 1>&6
6154 if test x"$pgac_cv_member_krb5_error_e_data" = x"yes"; then
6155 cat >> confdefs.h <<EOF
6156 #define HAVE_KRB5_ERROR_E_DATA 1
6161 { echo "configure: error: could not determine how to extract Kerberos 5 error messages" 1>&2; exit 1; }
6170 ## Functions, global variables
6172 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
6173 echo "configure:6173: checking for int timezone" >&5
6174 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6
6177 cat > conftest.$ac_ext <<EOF
6178 #line 6178 "configure"
6179 #include "confdefs.h"
6183 res = timezone / 60;
6186 if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6188 pgac_cv_var_int_timezone=yes
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6193 pgac_cv_var_int_timezone=no
6198 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
6199 if test x"$pgac_cv_var_int_timezone" = xyes ; then
6200 cat >> confdefs.h <<\EOF
6201 #define HAVE_INT_TIMEZONE
6205 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
6206 echo "configure:6206: checking types of arguments for accept()" >&5
6207 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6210 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
6211 echo $ac_n "(cached) $ac_c" 1>&6
6213 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6216 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
6217 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
6218 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6220 "configure"
6221 #include "confdefs.h"
6222 #ifdef HAVE_SYS_TYPES_H
6223 #include <sys/types.h>
6225 #ifdef HAVE_SYS_SOCKET_H
6226 #include <sys/socket.h>
6228 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
6233 if { (eval echo configure:6233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6235 ac_not_found=no; break 3
6237 echo "configure: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6246 if test "$ac_not_found" = yes; then
6247 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
6249 if test "$ac_cv_func_accept_arg3" = "void"; then
6250 ac_cv_func_accept_arg3=int
6258 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
6259 cat >> confdefs.h <<EOF
6260 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
6263 cat >> confdefs.h <<EOF
6264 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
6267 cat >> confdefs.h <<EOF
6268 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
6272 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
6273 echo "configure:6273: checking whether gettimeofday takes only one argument" >&5
6274 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6277 cat > conftest.$ac_ext <<EOF
6278 #line 6278 "configure"
6279 #include "confdefs.h"
6280 #include <sys/time.h>
6283 struct timezone *tzp;
6284 gettimeofday(tp,tzp);
6287 if { (eval echo configure:6287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6289 pgac_cv_func_gettimeofday_1arg=no
6291 echo "configure: failed program was:" >&5
6292 cat conftest.$ac_ext >&5
6294 pgac_cv_func_gettimeofday_1arg=yes
6299 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
6300 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
6301 cat >> confdefs.h <<\EOF
6302 #define GETTIMEOFDAY_1ARG
6307 # SunOS doesn't handle negative byte comparisons properly with +/- return
6308 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
6309 echo "configure:6309: checking for 8-bit clean memcmp" >&5
6310 if eval "test \"`echo '$''{'pgac_cv_func_memcmp_clean'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6313 if test "$cross_compiling" = yes; then
6314 pgac_cv_func_memcmp_clean=no
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6317 "configure"
6318 #include "confdefs.h"
6322 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6323 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
6327 if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6329 pgac_cv_func_memcmp_clean=yes
6331 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6334 pgac_cv_func_memcmp_clean=no
6341 echo "$ac_t""$pgac_cv_func_memcmp_clean" 1>&6
6342 if test $pgac_cv_func_memcmp_clean = no ; then
6349 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
6351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6352 echo "configure:6352: checking for $ac_func" >&5
6353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6357 "configure"
6358 #include "confdefs.h"
6359 /* System header to define __stub macros and hopefully few prototypes,
6360 which can conflict with char $ac_func(); below. */
6362 /* Override any gcc2 internal prototype to avoid an error. */
6363 /* We use char because int might match the return type of a gcc2
6364 builtin and then its argument prototype would still apply. */
6369 /* The GNU C library defines this for functions which it implements
6370 to always fail with ENOSYS. Some functions are actually named
6371 something starting with __ and the normal name is an alias. */
6372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6380 if { (eval echo configure:6380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6382 eval "ac_cv_func_$ac_func=yes"
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6387 eval "ac_cv_func_$ac_func=no"
6392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6393 echo "$ac_t""yes" 1>&6
6394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6395 cat >> confdefs.h <<EOF
6396 #define $ac_tr_func 1
6400 echo "$ac_t""no" 1>&6
6405 cat > conftest.$ac_ext <<EOF
6406 #line 6406 "configure"
6407 #include "confdefs.h"
6410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6411 egrep "fdatasync" >/dev/null 2>&1; then
6413 cat >> confdefs.h <<\EOF
6414 #define HAVE_FDATASYNC_DECL 1
6421 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
6422 echo "configure:6422: checking for PS_STRINGS" >&5
6423 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
6424 echo $ac_n "(cached) $ac_c" 1>&6
6426 cat > conftest.$ac_ext <<EOF
6427 #line 6427 "configure"
6428 #include "confdefs.h"
6429 #include <machine/vmparam.h>
6430 #include <sys/exec.h>
6433 PS_STRINGS->ps_nargvstr = 1;
6434 PS_STRINGS->ps_argvstr = "foo";
6437 if { (eval echo configure:6437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6439 pgac_cv_var_PS_STRINGS=yes
6441 echo "configure: failed program was:" >&5
6442 cat conftest.$ac_ext >&5
6444 pgac_cv_var_PS_STRINGS=no
6449 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
6450 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
6451 cat >> confdefs.h <<\EOF
6452 #define HAVE_PS_STRINGS
6458 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
6459 echo "configure:6459: checking for snprintf" >&5
6460 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
6461 echo $ac_n "(cached) $ac_c" 1>&6
6463 cat > conftest.$ac_ext <<EOF
6464 #line 6464 "configure"
6465 #include "confdefs.h"
6466 /* System header to define __stub macros and hopefully few prototypes,
6467 which can conflict with char snprintf(); below. */
6469 /* Override any gcc2 internal prototype to avoid an error. */
6470 /* We use char because int might match the return type of a gcc2
6471 builtin and then its argument prototype would still apply. */
6476 /* The GNU C library defines this for functions which it implements
6477 to always fail with ENOSYS. Some functions are actually named
6478 something starting with __ and the normal name is an alias. */
6479 #if defined (__stub_snprintf) || defined (__stub___snprintf)
6487 if { (eval echo configure:6487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6489 eval "ac_cv_func_snprintf=yes"
6491 echo "configure: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6494 eval "ac_cv_func_snprintf=no"
6499 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
6500 echo "$ac_t""yes" 1>&6
6501 cat >> confdefs.h <<\EOF
6502 #define HAVE_SNPRINTF 1
6506 echo "$ac_t""no" 1>&6
6507 SNPRINTF='snprintf.o'
6510 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
6511 echo "configure:6511: checking for vsnprintf" >&5
6512 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
6513 echo $ac_n "(cached) $ac_c" 1>&6
6515 cat > conftest.$ac_ext <<EOF
6516 #line 6516 "configure"
6517 #include "confdefs.h"
6518 /* System header to define __stub macros and hopefully few prototypes,
6519 which can conflict with char vsnprintf(); below. */
6521 /* Override any gcc2 internal prototype to avoid an error. */
6522 /* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */
6528 /* The GNU C library defines this for functions which it implements
6529 to always fail with ENOSYS. Some functions are actually named
6530 something starting with __ and the normal name is an alias. */
6531 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
6539 if { (eval echo configure:6539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6541 eval "ac_cv_func_vsnprintf=yes"
6543 echo "configure: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6546 eval "ac_cv_func_vsnprintf=no"
6551 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
6552 echo "$ac_t""yes" 1>&6
6553 cat >> confdefs.h <<\EOF
6554 #define HAVE_VSNPRINTF 1
6558 echo "$ac_t""no" 1>&6
6559 SNPRINTF='snprintf.o'
6563 cat > conftest.$ac_ext <<EOF
6564 #line 6564 "configure"
6565 #include "confdefs.h"
6568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 egrep "snprintf" >/dev/null 2>&1; then
6571 cat >> confdefs.h <<\EOF
6572 #define HAVE_SNPRINTF_DECL 1
6578 cat > conftest.$ac_ext <<EOF
6579 #line 6579 "configure"
6580 #include "confdefs.h"
6583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6584 egrep "vsnprintf" >/dev/null 2>&1; then
6586 cat >> confdefs.h <<\EOF
6587 #define HAVE_VSNPRINTF_DECL 1
6594 # do this one the hard way in case isinf() is a macro
6595 echo $ac_n "checking for isinf""... $ac_c" 1>&6
6596 echo "configure:6596: checking for isinf" >&5
6597 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
6598 echo $ac_n "(cached) $ac_c" 1>&6
6600 cat > conftest.$ac_ext <<EOF
6601 #line 6601 "configure"
6602 #include "confdefs.h"
6606 double x = 0.0; int res = isinf(x);
6609 if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 ac_cv_func_isinf=yes
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6621 echo "$ac_t""$ac_cv_func_isinf" 1>&6
6623 if test $ac_cv_func_isinf = yes ; then
6624 cat >> confdefs.h <<\EOF
6625 #define HAVE_ISINF 1
6631 # Look for a way to implement a substitute for isinf()
6632 for ac_func in fpclass fp_class fp_class_d class
6634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6635 echo "configure:6635: checking for $ac_func" >&5
6636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6637 echo $ac_n "(cached) $ac_c" 1>&6
6639 cat > conftest.$ac_ext <<EOF
6640 #line 6640 "configure"
6641 #include "confdefs.h"
6642 /* System header to define __stub macros and hopefully few prototypes,
6643 which can conflict with char $ac_func(); below. */
6645 /* Override any gcc2 internal prototype to avoid an error. */
6646 /* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6652 /* The GNU C library defines this for functions which it implements
6653 to always fail with ENOSYS. Some functions are actually named
6654 something starting with __ and the normal name is an alias. */
6655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6663 if { (eval echo configure:6663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6665 eval "ac_cv_func_$ac_func=yes"
6667 echo "configure: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6670 eval "ac_cv_func_$ac_func=no"
6675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6678 cat >> confdefs.h <<EOF
6679 #define $ac_tr_func 1
6683 echo "$ac_t""no" 1>&6
6690 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
6691 echo "configure:6691: checking for getrusage" >&5
6692 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
6693 echo $ac_n "(cached) $ac_c" 1>&6
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6696 "configure"
6697 #include "confdefs.h"
6698 /* System header to define __stub macros and hopefully few prototypes,
6699 which can conflict with char getrusage(); below. */
6701 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6708 /* The GNU C library defines this for functions which it implements
6709 to always fail with ENOSYS. Some functions are actually named
6710 something starting with __ and the normal name is an alias. */
6711 #if defined (__stub_getrusage) || defined (__stub___getrusage)
6719 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721 eval "ac_cv_func_getrusage=yes"
6723 echo "configure: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6726 eval "ac_cv_func_getrusage=no"
6731 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
6732 echo "$ac_t""yes" 1>&6
6733 cat >> confdefs.h <<\EOF
6734 #define HAVE_GETRUSAGE 1
6738 echo "$ac_t""no" 1>&6
6739 GETRUSAGE='getrusage.o'
6743 echo $ac_n "checking for srandom""... $ac_c" 1>&6
6744 echo "configure:6744: checking for srandom" >&5
6745 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
6746 echo $ac_n "(cached) $ac_c" 1>&6
6748 cat > conftest.$ac_ext <<EOF
6749 #line 6749 "configure"
6750 #include "confdefs.h"
6751 /* System header to define __stub macros and hopefully few prototypes,
6752 which can conflict with char srandom(); below. */
6754 /* Override any gcc2 internal prototype to avoid an error. */
6755 /* We use char because int might match the return type of a gcc2
6756 builtin and then its argument prototype would still apply. */
6761 /* The GNU C library defines this for functions which it implements
6762 to always fail with ENOSYS. Some functions are actually named
6763 something starting with __ and the normal name is an alias. */
6764 #if defined (__stub_srandom) || defined (__stub___srandom)
6772 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6774 eval "ac_cv_func_srandom=yes"
6776 echo "configure: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6779 eval "ac_cv_func_srandom=no"
6784 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 cat >> confdefs.h <<\EOF
6787 #define HAVE_SRANDOM 1
6791 echo "$ac_t""no" 1>&6
6796 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
6797 echo "configure:6797: checking for gethostname" >&5
6798 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
6799 echo $ac_n "(cached) $ac_c" 1>&6
6801 cat > conftest.$ac_ext <<EOF
6802 #line 6802 "configure"
6803 #include "confdefs.h"
6804 /* System header to define __stub macros and hopefully few prototypes,
6805 which can conflict with char gethostname(); below. */
6807 /* Override any gcc2 internal prototype to avoid an error. */
6808 /* We use char because int might match the return type of a gcc2
6809 builtin and then its argument prototype would still apply. */
6814 /* The GNU C library defines this for functions which it implements
6815 to always fail with ENOSYS. Some functions are actually named
6816 something starting with __ and the normal name is an alias. */
6817 #if defined (__stub_gethostname) || defined (__stub___gethostname)
6825 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6827 eval "ac_cv_func_gethostname=yes"
6829 echo "configure: failed program was:" >&5
6830 cat conftest.$ac_ext >&5
6832 eval "ac_cv_func_gethostname=no"
6837 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6838 echo "$ac_t""yes" 1>&6
6839 cat >> confdefs.h <<\EOF
6840 #define HAVE_GETHOSTNAME 1
6844 echo "$ac_t""no" 1>&6
6845 GETHOSTNAME='gethostname.o'
6849 echo $ac_n "checking for random""... $ac_c" 1>&6
6850 echo "configure:6850: checking for random" >&5
6851 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6852 echo $ac_n "(cached) $ac_c" 1>&6
6854 cat > conftest.$ac_ext <<EOF
6855 #line 6855 "configure"
6856 #include "confdefs.h"
6857 /* System header to define __stub macros and hopefully few prototypes,
6858 which can conflict with char random(); below. */
6860 /* Override any gcc2 internal prototype to avoid an error. */
6861 /* We use char because int might match the return type of a gcc2
6862 builtin and then its argument prototype would still apply. */
6867 /* The GNU C library defines this for functions which it implements
6868 to always fail with ENOSYS. Some functions are actually named
6869 something starting with __ and the normal name is an alias. */
6870 #if defined (__stub_random) || defined (__stub___random)
6878 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6880 eval "ac_cv_func_random=yes"
6882 echo "configure: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6885 eval "ac_cv_func_random=no"
6890 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6891 echo "$ac_t""yes" 1>&6
6892 cat >> confdefs.h <<\EOF
6893 #define HAVE_RANDOM 1
6897 echo "$ac_t""no" 1>&6
6898 MISSING_RANDOM='random.o'
6902 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6903 echo "configure:6903: checking for inet_aton" >&5
6904 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6905 echo $ac_n "(cached) $ac_c" 1>&6
6907 cat > conftest.$ac_ext <<EOF
6908 #line 6908 "configure"
6909 #include "confdefs.h"
6910 /* System header to define __stub macros and hopefully few prototypes,
6911 which can conflict with char inet_aton(); below. */
6913 /* Override any gcc2 internal prototype to avoid an error. */
6914 /* We use char because int might match the return type of a gcc2
6915 builtin and then its argument prototype would still apply. */
6920 /* The GNU C library defines this for functions which it implements
6921 to always fail with ENOSYS. Some functions are actually named
6922 something starting with __ and the normal name is an alias. */
6923 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6931 if { (eval echo configure:6931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6933 eval "ac_cv_func_inet_aton=yes"
6935 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6938 eval "ac_cv_func_inet_aton=no"
6943 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6944 echo "$ac_t""yes" 1>&6
6945 cat >> confdefs.h <<\EOF
6946 #define HAVE_INET_ATON 1
6950 echo "$ac_t""no" 1>&6
6951 INET_ATON='inet_aton.o'
6955 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6956 echo "configure:6956: checking for strerror" >&5
6957 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6958 echo $ac_n "(cached) $ac_c" 1>&6
6960 cat > conftest.$ac_ext <<EOF
6961 #line 6961 "configure"
6962 #include "confdefs.h"
6963 /* System header to define __stub macros and hopefully few prototypes,
6964 which can conflict with char strerror(); below. */
6966 /* Override any gcc2 internal prototype to avoid an error. */
6967 /* We use char because int might match the return type of a gcc2
6968 builtin and then its argument prototype would still apply. */
6973 /* The GNU C library defines this for functions which it implements
6974 to always fail with ENOSYS. Some functions are actually named
6975 something starting with __ and the normal name is an alias. */
6976 #if defined (__stub_strerror) || defined (__stub___strerror)
6984 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6986 eval "ac_cv_func_strerror=yes"
6988 echo "configure: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6991 eval "ac_cv_func_strerror=no"
6996 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6997 echo "$ac_t""yes" 1>&6
6998 cat >> confdefs.h <<\EOF
6999 #define HAVE_STRERROR 1
7003 echo "$ac_t""no" 1>&6
7004 STRERROR='strerror.o'
7008 echo $ac_n "checking for strdup""... $ac_c" 1>&6
7009 echo "configure:7009: checking for strdup" >&5
7010 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
7011 echo $ac_n "(cached) $ac_c" 1>&6
7013 cat > conftest.$ac_ext <<EOF
7014 #line 7014 "configure"
7015 #include "confdefs.h"
7016 /* System header to define __stub macros and hopefully few prototypes,
7017 which can conflict with char strdup(); below. */
7019 /* Override any gcc2 internal prototype to avoid an error. */
7020 /* We use char because int might match the return type of a gcc2
7021 builtin and then its argument prototype would still apply. */
7026 /* The GNU C library defines this for functions which it implements
7027 to always fail with ENOSYS. Some functions are actually named
7028 something starting with __ and the normal name is an alias. */
7029 #if defined (__stub_strdup) || defined (__stub___strdup)
7037 if { (eval echo configure:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7039 eval "ac_cv_func_strdup=yes"
7041 echo "configure: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7044 eval "ac_cv_func_strdup=no"
7049 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
7050 echo "$ac_t""yes" 1>&6
7051 cat >> confdefs.h <<\EOF
7052 #define HAVE_STRDUP 1
7056 echo "$ac_t""no" 1>&6
7057 STRDUP='../../utils/strdup.o'
7061 echo $ac_n "checking for strtol""... $ac_c" 1>&6
7062 echo "configure:7062: checking for strtol" >&5
7063 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
7064 echo $ac_n "(cached) $ac_c" 1>&6
7066 cat > conftest.$ac_ext <<EOF
7067 #line 7067 "configure"
7068 #include "confdefs.h"
7069 /* System header to define __stub macros and hopefully few prototypes,
7070 which can conflict with char strtol(); below. */
7072 /* Override any gcc2 internal prototype to avoid an error. */
7073 /* We use char because int might match the return type of a gcc2
7074 builtin and then its argument prototype would still apply. */
7079 /* The GNU C library defines this for functions which it implements
7080 to always fail with ENOSYS. Some functions are actually named
7081 something starting with __ and the normal name is an alias. */
7082 #if defined (__stub_strtol) || defined (__stub___strtol)
7090 if { (eval echo configure:7090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7092 eval "ac_cv_func_strtol=yes"
7094 echo "configure: failed program was:" >&5
7095 cat conftest.$ac_ext >&5
7097 eval "ac_cv_func_strtol=no"
7102 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
7103 echo "$ac_t""yes" 1>&6
7104 cat >> confdefs.h <<\EOF
7105 #define HAVE_STRTOL 1
7109 echo "$ac_t""no" 1>&6
7114 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
7115 echo "configure:7115: checking for strtoul" >&5
7116 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
7117 echo $ac_n "(cached) $ac_c" 1>&6
7119 cat > conftest.$ac_ext <<EOF
7120 #line 7120 "configure"
7121 #include "confdefs.h"
7122 /* System header to define __stub macros and hopefully few prototypes,
7123 which can conflict with char strtoul(); below. */
7125 /* Override any gcc2 internal prototype to avoid an error. */
7126 /* We use char because int might match the return type of a gcc2
7127 builtin and then its argument prototype would still apply. */
7132 /* The GNU C library defines this for functions which it implements
7133 to always fail with ENOSYS. Some functions are actually named
7134 something starting with __ and the normal name is an alias. */
7135 #if defined (__stub_strtoul) || defined (__stub___strtoul)
7143 if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7145 eval "ac_cv_func_strtoul=yes"
7147 echo "configure: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7150 eval "ac_cv_func_strtoul=no"
7155 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
7156 echo "$ac_t""yes" 1>&6
7157 cat >> confdefs.h <<\EOF
7158 #define HAVE_STRTOUL 1
7162 echo "$ac_t""no" 1>&6
7167 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
7168 echo "configure:7168: checking for strcasecmp" >&5
7169 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
7170 echo $ac_n "(cached) $ac_c" 1>&6
7172 cat > conftest.$ac_ext <<EOF
7173 #line 7173 "configure"
7174 #include "confdefs.h"
7175 /* System header to define __stub macros and hopefully few prototypes,
7176 which can conflict with char strcasecmp(); below. */
7178 /* Override any gcc2 internal prototype to avoid an error. */
7179 /* We use char because int might match the return type of a gcc2
7180 builtin and then its argument prototype would still apply. */
7185 /* The GNU C library defines this for functions which it implements
7186 to always fail with ENOSYS. Some functions are actually named
7187 something starting with __ and the normal name is an alias. */
7188 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
7196 if { (eval echo configure:7196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7198 eval "ac_cv_func_strcasecmp=yes"
7200 echo "configure: failed program was:" >&5
7201 cat conftest.$ac_ext >&5
7203 eval "ac_cv_func_strcasecmp=no"
7208 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
7209 echo "$ac_t""yes" 1>&6
7210 cat >> confdefs.h <<\EOF
7211 #define HAVE_STRCASECMP 1
7215 echo "$ac_t""no" 1>&6
7216 STRCASECMP='strcasecmp.o'
7220 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
7221 echo "configure:7221: checking for cbrt" >&5
7222 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
7223 echo $ac_n "(cached) $ac_c" 1>&6
7225 cat > conftest.$ac_ext <<EOF
7226 #line 7226 "configure"
7227 #include "confdefs.h"
7228 /* System header to define __stub macros and hopefully few prototypes,
7229 which can conflict with char cbrt(); below. */
7231 /* Override any gcc2 internal prototype to avoid an error. */
7232 /* We use char because int might match the return type of a gcc2
7233 builtin and then its argument prototype would still apply. */
7238 /* The GNU C library defines this for functions which it implements
7239 to always fail with ENOSYS. Some functions are actually named
7240 something starting with __ and the normal name is an alias. */
7241 #if defined (__stub_cbrt) || defined (__stub___cbrt)
7249 if { (eval echo configure:7249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7251 eval "ac_cv_func_cbrt=yes"
7253 echo "configure: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7256 eval "ac_cv_func_cbrt=no"
7261 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
7262 echo "$ac_t""yes" 1>&6
7263 cat >> confdefs.h <<\EOF
7268 echo "$ac_t""no" 1>&6
7269 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
7270 echo "configure:7270: checking for cbrt in -lm" >&5
7271 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
7272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7273 echo $ac_n "(cached) $ac_c" 1>&6
7275 ac_save_LIBS="$LIBS"
7277 cat > conftest.$ac_ext <<EOF
7278 #line 7278 "configure"
7279 #include "confdefs.h"
7280 /* Override any gcc2 internal prototype to avoid an error. */
7281 /* We use char because int might match the return type of a gcc2
7282 builtin and then its argument prototype would still apply. */
7289 if { (eval echo configure:7289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7291 eval "ac_cv_lib_$ac_lib_var=yes"
7293 echo "configure: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7296 eval "ac_cv_lib_$ac_lib_var=no"
7299 LIBS="$ac_save_LIBS"
7302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7303 echo "$ac_t""yes" 1>&6
7304 cat >> confdefs.h <<\EOF
7309 echo "$ac_t""no" 1>&6
7315 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
7316 # this hackery with HPUXMATHLIB allows us to cope.
7320 if [ -r /lib/pa1.1/libm.a ] ; then
7321 HPUXMATHLIB="-L /lib/pa1.1 -lm"
7326 echo $ac_n "checking for rint""... $ac_c" 1>&6
7327 echo "configure:7327: checking for rint" >&5
7328 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
7329 echo $ac_n "(cached) $ac_c" 1>&6
7331 cat > conftest.$ac_ext <<EOF
7332 #line 7332 "configure"
7333 #include "confdefs.h"
7334 /* System header to define __stub macros and hopefully few prototypes,
7335 which can conflict with char rint(); below. */
7337 /* Override any gcc2 internal prototype to avoid an error. */
7338 /* We use char because int might match the return type of a gcc2
7339 builtin and then its argument prototype would still apply. */
7344 /* The GNU C library defines this for functions which it implements
7345 to always fail with ENOSYS. Some functions are actually named
7346 something starting with __ and the normal name is an alias. */
7347 #if defined (__stub_rint) || defined (__stub___rint)
7355 if { (eval echo configure:7355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7357 eval "ac_cv_func_rint=yes"
7359 echo "configure: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7362 eval "ac_cv_func_rint=no"
7367 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
7368 echo "$ac_t""yes" 1>&6
7369 cat >> confdefs.h <<\EOF
7374 echo "$ac_t""no" 1>&6
7375 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
7376 echo "configure:7376: checking for rint in -lm" >&5
7377 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
7378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7379 echo $ac_n "(cached) $ac_c" 1>&6
7381 ac_save_LIBS="$LIBS"
7382 LIBS="-lm $HPUXMATHLIB $LIBS"
7383 cat > conftest.$ac_ext <<EOF
7384 #line 7384 "configure"
7385 #include "confdefs.h"
7386 /* Override any gcc2 internal prototype to avoid an error. */
7387 /* We use char because int might match the return type of a gcc2
7388 builtin and then its argument prototype would still apply. */
7395 if { (eval echo configure:7395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7397 eval "ac_cv_lib_$ac_lib_var=yes"
7399 echo "configure: failed program was:" >&5
7400 cat conftest.$ac_ext >&5
7402 eval "ac_cv_lib_$ac_lib_var=no"
7405 LIBS="$ac_save_LIBS"
7408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7409 echo "$ac_t""yes" 1>&6
7410 cat >> confdefs.h <<\EOF
7415 echo "$ac_t""no" 1>&6
7422 # Readline versions < 2.1 don't have rl_completion_append_character
7423 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
7424 echo "configure:7424: checking for rl_completion_append_character" >&5
7425 cat > conftest.$ac_ext <<EOF
7426 #line 7426 "configure"
7427 #include "confdefs.h"
7429 #ifdef HAVE_READLINE_READLINE_H
7430 # include <readline/readline.h>
7431 #elif defined(HAVE_READLINE_H)
7432 # include <readline.h>
7436 rl_completion_append_character = 'x';
7439 if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7441 echo "$ac_t""yes" 1>&6
7442 cat >> confdefs.h <<\EOF
7443 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
7447 echo "configure: failed program was:" >&5
7448 cat conftest.$ac_ext >&5
7450 echo "$ac_t""no" 1>&6
7454 for ac_func in rl_completion_matches rl_filename_completion_function
7456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7457 echo "configure:7457: checking for $ac_func" >&5
7458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7459 echo $ac_n "(cached) $ac_c" 1>&6
7461 cat > conftest.$ac_ext <<EOF
7462 #line 7462 "configure"
7463 #include "confdefs.h"
7464 /* System header to define __stub macros and hopefully few prototypes,
7465 which can conflict with char $ac_func(); below. */
7467 /* Override any gcc2 internal prototype to avoid an error. */
7468 /* We use char because int might match the return type of a gcc2
7469 builtin and then its argument prototype would still apply. */
7474 /* The GNU C library defines this for functions which it implements
7475 to always fail with ENOSYS. Some functions are actually named
7476 something starting with __ and the normal name is an alias. */
7477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7485 if { (eval echo configure:7485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7487 eval "ac_cv_func_$ac_func=yes"
7489 echo "configure: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7492 eval "ac_cv_func_$ac_func=no"
7497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7498 echo "$ac_t""yes" 1>&6
7499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7500 cat >> confdefs.h <<EOF
7501 #define $ac_tr_func 1
7505 echo "$ac_t""no" 1>&6
7511 echo $ac_n "checking for finite""... $ac_c" 1>&6
7512 echo "configure:7512: checking for finite" >&5
7513 cat > conftest.$ac_ext <<EOF
7514 #line 7514 "configure"
7515 #include "confdefs.h"
7518 int dummy=finite(1.0);
7521 if { (eval echo configure:7521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7523 cat >> confdefs.h <<\EOF
7524 #define HAVE_FINITE 1
7526 echo "$ac_t""yes" 1>&6
7528 echo "configure: failed program was:" >&5
7529 cat conftest.$ac_ext >&5
7531 echo "$ac_t""no" 1>&6
7535 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7536 echo "configure:7536: checking for sigsetjmp" >&5
7537 cat > conftest.$ac_ext <<EOF
7538 #line 7538 "configure"
7539 #include "confdefs.h"
7542 sigjmp_buf x; sigsetjmp(x, 1);
7545 if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7547 cat >> confdefs.h <<\EOF
7548 #define HAVE_SIGSETJMP 1
7550 echo "$ac_t""yes" 1>&6
7552 echo "configure: failed program was:" >&5
7553 cat conftest.$ac_ext >&5
7555 echo "$ac_t""no" 1>&6
7560 # Check whether --enable-syslog was given
7561 if test x"${enable_syslog+set}" = xset; then
7562 case $enable_syslog in
7564 echo $ac_n "checking for syslog""... $ac_c" 1>&6
7565 echo "configure:7565: checking for syslog" >&5
7566 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
7567 echo $ac_n "(cached) $ac_c" 1>&6
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7570 "configure"
7571 #include "confdefs.h"
7572 /* System header to define __stub macros and hopefully few prototypes,
7573 which can conflict with char syslog(); below. */
7575 /* Override any gcc2 internal prototype to avoid an error. */
7576 /* We use char because int might match the return type of a gcc2
7577 builtin and then its argument prototype would still apply. */
7582 /* The GNU C library defines this for functions which it implements
7583 to always fail with ENOSYS. Some functions are actually named
7584 something starting with __ and the normal name is an alias. */
7585 #if defined (__stub_syslog) || defined (__stub___syslog)
7593 if { (eval echo configure:7593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7595 eval "ac_cv_func_syslog=yes"
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7600 eval "ac_cv_func_syslog=no"
7605 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
7606 echo "$ac_t""yes" 1>&6
7607 cat >> confdefs.h <<\EOF
7608 #define ENABLE_SYSLOG 1
7612 echo "$ac_t""no" 1>&6
7613 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
7621 enableval=$enable_syslog
7622 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
7624 esac # $enable_syslog
7631 echo $ac_n "checking for optreset""... $ac_c" 1>&6
7632 echo "configure:7632: checking for optreset" >&5
7633 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
7634 echo $ac_n "(cached) $ac_c" 1>&6
7636 cat > conftest.$ac_ext <<EOF
7637 #line 7637 "configure"
7638 #include "confdefs.h"
7641 extern int optreset; optreset = 1;
7644 if { (eval echo configure:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7646 pgac_cv_var_int_optreset=yes
7648 echo "configure: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7651 pgac_cv_var_int_optreset=no
7656 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
7657 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
7658 cat >> confdefs.h <<\EOF
7659 #define HAVE_INT_OPTRESET 1
7665 # This test makes sure that run tests work at all. Sometimes a shared
7666 # library is found by the linker, but the runtime linker can't find it.
7667 # This check should come after all modifications of compiler or linker
7668 # variables, and before any other run tests.
7669 echo $ac_n "checking test program""... $ac_c" 1>&6
7670 echo "configure:7670: checking test program" >&5
7671 if test "$cross_compiling" = yes; then
7672 echo "$ac_t""cross-compiling" 1>&6
7674 cat > conftest.$ac_ext <<EOF
7675 #line 7675 "configure"
7676 #include "confdefs.h"
7677 int main() { return 0; }
7679 if { (eval echo configure:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7681 echo "$ac_t""ok" 1>&6
7683 echo "configure: failed program was:" >&5
7684 cat conftest.$ac_ext >&5
7686 echo "$ac_t""failed" 1>&6
7687 { echo "configure: error:
7688 *** Could not execute a simple test program. This may be a problem
7689 *** related to locating shared libraries. Check the file 'config.log'
7690 *** for the exact reason." 1>&2; exit 1; }
7698 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
7699 echo "configure:7699: checking whether long int is 64 bits" >&5
7700 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7703 if test "$cross_compiling" = yes; then
7704 pgac_cv_type_long_int_64=no
7705 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7707 cat > conftest.$ac_ext <<EOF
7708 #line 7708 "configure"
7709 #include "confdefs.h"
7710 typedef long int int64;
7713 * These are globals to discourage the compiler from folding all the
7714 * arithmetic tests down to compile-time constants.
7719 int does_int64_work()
7723 if (sizeof(int64) != 8)
7724 return 0; /* definitely not the right size */
7726 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7734 exit(! does_int64_work());
7737 if { (eval echo configure:7737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7739 pgac_cv_type_long_int_64=yes
7741 echo "configure: failed program was:" >&5
7742 cat conftest.$ac_ext >&5
7744 pgac_cv_type_long_int_64=no
7751 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
7753 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
7754 if test x"$pgac_cv_type_long_int_64" = xyes ; then
7755 cat >> confdefs.h <<\EOF
7756 #define HAVE_LONG_INT_64
7762 if test x"$HAVE_LONG_INT_64" = x"no" ; then
7763 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
7764 echo "configure:7764: checking whether long long int is 64 bits" >&5
7765 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7768 if test "$cross_compiling" = yes; then
7769 pgac_cv_type_long_long_int_64=no
7770 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7772 cat > conftest.$ac_ext <<EOF
7773 #line 7773 "configure"
7774 #include "confdefs.h"
7775 typedef long long int int64;
7778 * These are globals to discourage the compiler from folding all the
7779 * arithmetic tests down to compile-time constants.
7784 int does_int64_work()
7788 if (sizeof(int64) != 8)
7789 return 0; /* definitely not the right size */
7791 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7799 exit(! does_int64_work());
7802 if { (eval echo configure:7802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7804 pgac_cv_type_long_long_int_64=yes
7806 echo "configure: failed program was:" >&5
7807 cat conftest.$ac_ext >&5
7809 pgac_cv_type_long_long_int_64=no
7816 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
7818 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
7819 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
7820 cat >> confdefs.h <<\EOF
7821 #define HAVE_LONG_LONG_INT_64
7830 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7831 cat > conftest.$ac_ext <<EOF
7832 #line 7832 "configure"
7833 #include "confdefs.h"
7835 #define INT64CONST(x) x##LL
7836 long long int foo = INT64CONST(0x1234567890123456);
7842 if { (eval echo configure:7842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7844 cat >> confdefs.h <<\EOF
7845 #define HAVE_LL_CONSTANTS 1
7849 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7857 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7858 if [ x$SNPRINTF = x ] ; then
7859 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
7860 echo "configure:7860: checking whether snprintf handles 'long long int' as %lld" >&5
7861 if test "$cross_compiling" = yes; then
7862 echo "$ac_t""assuming not on target machine" 1>&6
7863 # Force usage of our own snprintf, since we cannot test foreign snprintf
7864 SNPRINTF='snprintf.o'
7865 INT64_FORMAT='"%lld"'
7868 cat > conftest.$ac_ext <<EOF
7869 #line 7869 "configure"
7870 #include "confdefs.h"
7872 typedef long long int int64;
7873 #define INT64_FORMAT "%lld"
7878 int does_int64_snprintf_work()
7883 if (sizeof(int64) != 8)
7884 return 0; /* doesn't look like the right size */
7887 snprintf(buf, 100, INT64_FORMAT, c);
7888 if (strcmp(buf, "800000140000005") != 0)
7889 return 0; /* either multiply or snprintf is busted */
7893 exit(! does_int64_snprintf_work());
7896 if { (eval echo configure:7896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7898 echo "$ac_t""yes" 1>&6
7899 INT64_FORMAT='"%lld"'
7902 echo "configure: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7905 echo "$ac_t""no" 1>&6
7906 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7907 echo "configure:7907: checking whether snprintf handles 'long long int' as %qd" >&5
7908 if test "$cross_compiling" = yes; then
7909 echo "$ac_t""assuming not on target machine" 1>&6
7910 # Force usage of our own snprintf, since we cannot test foreign snprintf
7911 SNPRINTF='snprintf.o'
7912 INT64_FORMAT='"%lld"'
7915 cat > conftest.$ac_ext <<EOF
7916 #line 7916 "configure"
7917 #include "confdefs.h"
7919 typedef long long int int64;
7920 #define INT64_FORMAT "%qd"
7925 int does_int64_snprintf_work()
7930 if (sizeof(int64) != 8)
7931 return 0; /* doesn't look like the right size */
7934 snprintf(buf, 100, INT64_FORMAT, c);
7935 if (strcmp(buf, "800000140000005") != 0)
7936 return 0; /* either multiply or snprintf is busted */
7940 exit(! does_int64_snprintf_work());
7943 if { (eval echo configure:7943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7945 echo "$ac_t""yes" 1>&6
7946 INT64_FORMAT='"%qd"'
7949 echo "configure: failed program was:" >&5
7950 cat conftest.$ac_ext >&5
7952 echo "$ac_t""no" 1>&6
7953 # Force usage of our own snprintf, since system snprintf is broken
7954 SNPRINTF='snprintf.o'
7955 INT64_FORMAT='"%lld"'
7966 # here if we previously decided we needed to use our own snprintf
7967 INT64_FORMAT='"%lld"'
7970 # Here if we are not using 'long long int' at all
7971 INT64_FORMAT='"%ld"'
7974 cat >> confdefs.h <<EOF
7975 #define INT64_FORMAT $INT64_FORMAT
7980 for ac_func in strtoll strtoq
7982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7983 echo "configure:7983: checking for $ac_func" >&5
7984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7985 echo $ac_n "(cached) $ac_c" 1>&6
7987 cat > conftest.$ac_ext <<EOF
7988 #line 7988 "configure"
7989 #include "confdefs.h"
7990 /* System header to define __stub macros and hopefully few prototypes,
7991 which can conflict with char $ac_func(); below. */
7993 /* Override any gcc2 internal prototype to avoid an error. */
7994 /* We use char because int might match the return type of a gcc2
7995 builtin and then its argument prototype would still apply. */
8000 /* The GNU C library defines this for functions which it implements
8001 to always fail with ENOSYS. Some functions are actually named
8002 something starting with __ and the normal name is an alias. */
8003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8011 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8013 eval "ac_cv_func_$ac_func=yes"
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8018 eval "ac_cv_func_$ac_func=no"
8023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8024 echo "$ac_t""yes" 1>&6
8025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8026 cat >> confdefs.h <<EOF
8027 #define $ac_tr_func 1
8031 echo "$ac_t""no" 1>&6
8035 for ac_func in strtoull strtouq
8037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8038 echo "configure:8038: checking for $ac_func" >&5
8039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8042 cat > conftest.$ac_ext <<EOF
8043 #line 8043 "configure"
8044 #include "confdefs.h"
8045 /* System header to define __stub macros and hopefully few prototypes,
8046 which can conflict with char $ac_func(); below. */
8048 /* Override any gcc2 internal prototype to avoid an error. */
8049 /* We use char because int might match the return type of a gcc2
8050 builtin and then its argument prototype would still apply. */
8055 /* The GNU C library defines this for functions which it implements
8056 to always fail with ENOSYS. Some functions are actually named
8057 something starting with __ and the normal name is an alias. */
8058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8066 if { (eval echo configure:8066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8068 eval "ac_cv_func_$ac_func=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 eval "ac_cv_func_$ac_func=no"
8078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8079 echo "$ac_t""yes" 1>&6
8080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8081 cat >> confdefs.h <<EOF
8082 #define $ac_tr_func 1
8086 echo "$ac_t""no" 1>&6
8091 echo $ac_n "checking for atexit""... $ac_c" 1>&6
8092 echo "configure:8092: checking for atexit" >&5
8093 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8096 cat > conftest.$ac_ext <<EOF
8097 #line 8097 "configure"
8098 #include "confdefs.h"
8099 /* System header to define __stub macros and hopefully few prototypes,
8100 which can conflict with char atexit(); below. */
8102 /* Override any gcc2 internal prototype to avoid an error. */
8103 /* We use char because int might match the return type of a gcc2
8104 builtin and then its argument prototype would still apply. */
8109 /* The GNU C library defines this for functions which it implements
8110 to always fail with ENOSYS. Some functions are actually named
8111 something starting with __ and the normal name is an alias. */
8112 #if defined (__stub_atexit) || defined (__stub___atexit)
8120 if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8122 eval "ac_cv_func_atexit=yes"
8124 echo "configure: failed program was:" >&5
8125 cat conftest.$ac_ext >&5
8127 eval "ac_cv_func_atexit=no"
8132 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
8133 echo "$ac_t""yes" 1>&6
8134 cat >> confdefs.h <<\EOF
8135 #define HAVE_ATEXIT 1
8139 echo "$ac_t""no" 1>&6
8140 for ac_func in on_exit
8142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8143 echo "configure:8143: checking for $ac_func" >&5
8144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8145 echo $ac_n "(cached) $ac_c" 1>&6
8147 cat > conftest.$ac_ext <<EOF
8148 #line 8148 "configure"
8149 #include "confdefs.h"
8150 /* System header to define __stub macros and hopefully few prototypes,
8151 which can conflict with char $ac_func(); below. */
8153 /* Override any gcc2 internal prototype to avoid an error. */
8154 /* We use char because int might match the return type of a gcc2
8155 builtin and then its argument prototype would still apply. */
8160 /* The GNU C library defines this for functions which it implements
8161 to always fail with ENOSYS. Some functions are actually named
8162 something starting with __ and the normal name is an alias. */
8163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8171 if { (eval echo configure:8171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8173 eval "ac_cv_func_$ac_func=yes"
8175 echo "configure: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8178 eval "ac_cv_func_$ac_func=no"
8183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8184 echo "$ac_t""yes" 1>&6
8185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8186 cat >> confdefs.h <<EOF
8187 #define $ac_tr_func 1
8189 cat >> confdefs.h <<\EOF
8190 #define HAVE_ON_EXIT 1
8194 echo "$ac_t""no" 1>&6
8195 { echo "configure: error: neither atexit() nor on_exit() found" 1>&2; exit 1; }
8203 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
8204 echo "configure:8204: checking size of unsigned long" >&5
8205 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8208 if test "$cross_compiling" = yes; then
8209 ac_cv_sizeof_unsigned_long=4
8211 cat > conftest.$ac_ext <<EOF
8212 #line 8212 "configure"
8213 #include "confdefs.h"
8217 FILE *f=fopen("conftestval", "w");
8219 fprintf(f, "%d\n", sizeof(unsigned long));
8223 if { (eval echo configure:8223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8225 ac_cv_sizeof_unsigned_long=`cat conftestval`
8227 echo "configure: failed program was:" >&5
8228 cat conftest.$ac_ext >&5
8230 ac_cv_sizeof_unsigned_long=0
8236 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
8237 cat >> confdefs.h <<EOF
8238 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8242 cat >> confdefs.h <<EOF
8243 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
8248 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
8249 echo "configure:8249: checking alignment of short" >&5
8250 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
8251 echo $ac_n "(cached) $ac_c" 1>&6
8253 if test "$cross_compiling" = yes; then
8254 pgac_cv_alignof_short='sizeof(short)'
8256 cat > conftest.$ac_ext <<EOF
8257 #line 8257 "configure"
8258 #include "confdefs.h"
8260 struct { char filler; short field; } mystruct;
8263 FILE *f=fopen("conftestval", "w");
8265 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8269 if { (eval echo configure:8269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8271 pgac_cv_alignof_short=`cat conftestval`
8273 echo "configure: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8276 pgac_cv_alignof_short='sizeof(short)'
8282 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
8283 cat >> confdefs.h <<EOF
8284 #define ALIGNOF_SHORT $pgac_cv_alignof_short
8288 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
8289 echo "configure:8289: checking alignment of int" >&5
8290 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
8291 echo $ac_n "(cached) $ac_c" 1>&6
8293 if test "$cross_compiling" = yes; then
8294 pgac_cv_alignof_int='sizeof(int)'
8296 cat > conftest.$ac_ext <<EOF
8297 #line 8297 "configure"
8298 #include "confdefs.h"
8300 struct { char filler; int field; } mystruct;
8303 FILE *f=fopen("conftestval", "w");
8305 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8309 if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8311 pgac_cv_alignof_int=`cat conftestval`
8313 echo "configure: failed program was:" >&5
8314 cat conftest.$ac_ext >&5
8316 pgac_cv_alignof_int='sizeof(int)'
8322 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
8323 cat >> confdefs.h <<EOF
8324 #define ALIGNOF_INT $pgac_cv_alignof_int
8328 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
8329 echo "configure:8329: checking alignment of long" >&5
8330 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8333 if test "$cross_compiling" = yes; then
8334 pgac_cv_alignof_long='sizeof(long)'
8336 cat > conftest.$ac_ext <<EOF
8337 #line 8337 "configure"
8338 #include "confdefs.h"
8340 struct { char filler; long field; } mystruct;
8343 FILE *f=fopen("conftestval", "w");
8345 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8349 if { (eval echo configure:8349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8351 pgac_cv_alignof_long=`cat conftestval`
8353 echo "configure: failed program was:" >&5
8354 cat conftest.$ac_ext >&5
8356 pgac_cv_alignof_long='sizeof(long)'
8362 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
8363 cat >> confdefs.h <<EOF
8364 #define ALIGNOF_LONG $pgac_cv_alignof_long
8368 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
8369 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
8370 echo "configure:8370: checking alignment of long long int" >&5
8371 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
8372 echo $ac_n "(cached) $ac_c" 1>&6
8374 if test "$cross_compiling" = yes; then
8375 pgac_cv_alignof_long_long_int='sizeof(long long int)'
8377 cat > conftest.$ac_ext <<EOF
8378 #line 8378 "configure"
8379 #include "confdefs.h"
8381 struct { char filler; long long int field; } mystruct;
8384 FILE *f=fopen("conftestval", "w");
8386 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8390 if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8392 pgac_cv_alignof_long_long_int=`cat conftestval`
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8397 pgac_cv_alignof_long_long_int='sizeof(long long int)'
8403 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
8404 cat >> confdefs.h <<EOF
8405 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
8410 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
8411 echo "configure:8411: checking alignment of double" >&5
8412 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8415 if test "$cross_compiling" = yes; then
8416 pgac_cv_alignof_double='sizeof(double)'
8418 cat > conftest.$ac_ext <<EOF
8419 #line 8419 "configure"
8420 #include "confdefs.h"
8422 struct { char filler; double field; } mystruct;
8425 FILE *f=fopen("conftestval", "w");
8427 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8431 if { (eval echo configure:8431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8433 pgac_cv_alignof_double=`cat conftestval`
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8438 pgac_cv_alignof_double='sizeof(double)'
8444 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
8445 cat >> confdefs.h <<EOF
8446 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
8452 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
8453 MAX_ALIGNOF=$pgac_cv_alignof_long
8454 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
8455 MAX_ALIGNOF=$pgac_cv_alignof_double
8457 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
8458 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
8461 MAX_ALIGNOF="$pgac_cv_alignof_double"
8463 cat >> confdefs.h <<EOF
8464 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
8469 # Some platforms predefine the types int8, int16, etc. Only check
8470 # a (hopefully) representative subset. We also check for sig_atomic_t,
8471 # which *should* be defined per ANSI C, but is missing on some old platforms.
8473 pgac_type_includes="\
8476 #ifdef HAVE_SUPPORTDEFS_H
8477 #include <SupportDefs.h>
8480 echo $ac_n "checking for int8""... $ac_c" 1>&6
8481 echo "configure:8481: checking for int8" >&5
8482 if eval "test \"`echo '$''{'pgac_cv_have_int8'+set}'`\" = set"; then
8483 echo $ac_n "(cached) $ac_c" 1>&6
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8486 "configure"
8487 #include "confdefs.h"
8496 if { (eval echo configure:8496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8498 pgac_cv_have_int8=yes
8500 echo "configure: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8503 pgac_cv_have_int8=no
8508 echo "$ac_t""$pgac_cv_have_int8" 1>&6
8509 if test "$pgac_cv_have_int8" = yes; then
8510 cat >> confdefs.h <<\EOF
8516 echo $ac_n "checking for uint8""... $ac_c" 1>&6
8517 echo "configure:8517: checking for uint8" >&5
8518 if eval "test \"`echo '$''{'pgac_cv_have_uint8'+set}'`\" = set"; then
8519 echo $ac_n "(cached) $ac_c" 1>&6
8521 cat > conftest.$ac_ext <<EOF
8522 #line 8522 "configure"
8523 #include "confdefs.h"
8532 if { (eval echo configure:8532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8534 pgac_cv_have_uint8=yes
8536 echo "configure: failed program was:" >&5
8537 cat conftest.$ac_ext >&5
8539 pgac_cv_have_uint8=no
8544 echo "$ac_t""$pgac_cv_have_uint8" 1>&6
8545 if test "$pgac_cv_have_uint8" = yes; then
8546 cat >> confdefs.h <<\EOF
8547 #define HAVE_UINT8 1
8552 echo $ac_n "checking for int64""... $ac_c" 1>&6
8553 echo "configure:8553: checking for int64" >&5
8554 if eval "test \"`echo '$''{'pgac_cv_have_int64'+set}'`\" = set"; then
8555 echo $ac_n "(cached) $ac_c" 1>&6
8557 cat > conftest.$ac_ext <<EOF
8558 #line 8558 "configure"
8559 #include "confdefs.h"
8568 if { (eval echo configure:8568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8570 pgac_cv_have_int64=yes
8572 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8575 pgac_cv_have_int64=no
8580 echo "$ac_t""$pgac_cv_have_int64" 1>&6
8581 if test "$pgac_cv_have_int64" = yes; then
8582 cat >> confdefs.h <<\EOF
8583 #define HAVE_INT64 1
8588 echo $ac_n "checking for uint64""... $ac_c" 1>&6
8589 echo "configure:8589: checking for uint64" >&5
8590 if eval "test \"`echo '$''{'pgac_cv_have_uint64'+set}'`\" = set"; then
8591 echo $ac_n "(cached) $ac_c" 1>&6
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8594 "configure"
8595 #include "confdefs.h"
8600 if (sizeof (uint64))
8604 if { (eval echo configure:8604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8606 pgac_cv_have_uint64=yes
8608 echo "configure: failed program was:" >&5
8609 cat conftest.$ac_ext >&5
8611 pgac_cv_have_uint64=no
8616 echo "$ac_t""$pgac_cv_have_uint64" 1>&6
8617 if test "$pgac_cv_have_uint64" = yes; then
8618 cat >> confdefs.h <<\EOF
8619 #define HAVE_UINT64 1
8624 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
8625 echo "configure:8625: checking for sig_atomic_t" >&5
8626 if eval "test \"`echo '$''{'pgac_cv_have_sig_atomic_t'+set}'`\" = set"; then
8627 echo $ac_n "(cached) $ac_c" 1>&6
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8630 "configure"
8631 #include "confdefs.h"
8634 if ((sig_atomic_t *) 0)
8636 if (sizeof (sig_atomic_t))
8640 if { (eval echo configure:8640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8642 pgac_cv_have_sig_atomic_t=yes
8644 echo "configure: failed program was:" >&5
8645 cat conftest.$ac_ext >&5
8647 pgac_cv_have_sig_atomic_t=no
8652 echo "$ac_t""$pgac_cv_have_sig_atomic_t" 1>&6
8653 if test "$pgac_cv_have_sig_atomic_t" = yes; then
8654 cat >> confdefs.h <<\EOF
8655 #define HAVE_SIG_ATOMIC_T 1
8662 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
8663 echo "configure:8663: checking for POSIX signal interface" >&5
8664 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
8665 echo $ac_n "(cached) $ac_c" 1>&6
8667 cat > conftest.$ac_ext <<EOF
8668 #line 8668 "configure"
8669 #include "confdefs.h"
8673 struct sigaction act, oact;
8674 sigemptyset(&act.sa_mask);
8675 act.sa_flags = SA_RESTART;
8676 sigaction(0, &act, &oact);
8679 if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8681 pgac_cv_func_posix_signals=yes
8683 echo "configure: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8686 pgac_cv_func_posix_signals=no
8691 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
8692 if test x"$pgac_cv_func_posix_signals" = xyes ; then
8693 cat >> confdefs.h <<\EOF
8694 #define HAVE_POSIX_SIGNALS
8698 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
8702 # Check for Tcl configuration script tclConfig.sh
8703 if test "$with_tcl" = yes; then
8704 for ac_prog in tclsh tcl
8706 # Extract the first word of "$ac_prog", so it can be a program name with args.
8707 set dummy $ac_prog; ac_word=$2
8708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8709 echo "configure:8709: checking for $ac_word" >&5
8710 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
8711 echo $ac_n "(cached) $ac_c" 1>&6
8715 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8718 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
8721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8723 for ac_dir in $ac_dummy; do
8724 test -z "$ac_dir" && ac_dir=.
8725 if test -f $ac_dir/$ac_word; then
8726 ac_cv_path_TCLSH="$ac_dir/$ac_word"
8734 TCLSH="$ac_cv_path_TCLSH"
8735 if test -n "$TCLSH"; then
8736 echo "$ac_t""$TCLSH" 1>&6
8738 echo "$ac_t""no" 1>&6
8741 test -n "$TCLSH" && break
8744 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
8745 echo "configure:8745: checking for tclConfig.sh" >&5
8746 # Let user override test
8747 if test -z "$TCL_CONFIG_SH"; then
8748 pgac_test_dirs="$with_tclconfig"
8750 set X $pgac_test_dirs; shift
8751 if test $# -eq 0; then
8752 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
8753 set X `echo 'puts $auto_path' | $TCLSH`; shift
8757 if test -r "$pgac_dir/tclConfig.sh"; then
8758 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
8764 if test -z "$TCL_CONFIG_SH"; then
8765 echo "$ac_t""no" 1>&6
8766 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
8768 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
8775 # Check for Tk configuration script tkConfig.sh
8776 if test "$with_tk" = yes; then
8777 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
8778 echo "configure:8778: checking for tkConfig.sh" >&5
8779 # Let user override test
8780 if test -z "$TK_CONFIG_SH"; then
8781 pgac_test_dirs="$with_tkconfig $with_tclconfig"
8783 set X $pgac_test_dirs; shift
8784 if test $# -eq 0; then
8785 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
8786 set X `echo 'puts $auto_path' | $TCLSH`; shift
8790 if test -r "$pgac_dir/tkConfig.sh"; then
8791 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
8797 if test -z "$TK_CONFIG_SH"; then
8798 echo "$ac_t""no" 1>&6
8799 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
8801 echo "$ac_t""$TK_CONFIG_SH" 1>&6
8810 # Check for DocBook and tools
8812 for ac_prog in onsgmls nsgmls
8814 # Extract the first word of "$ac_prog", so it can be a program name with args.
8815 set dummy $ac_prog; ac_word=$2
8816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8817 echo "configure:8817: checking for $ac_word" >&5
8818 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
8819 echo $ac_n "(cached) $ac_c" 1>&6
8821 if test -n "$NSGMLS"; then
8822 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
8824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8826 for ac_dir in $ac_dummy; do
8827 test -z "$ac_dir" && ac_dir=.
8828 if test -f $ac_dir/$ac_word; then
8829 ac_cv_prog_NSGMLS="$ac_prog"
8836 NSGMLS="$ac_cv_prog_NSGMLS"
8837 if test -n "$NSGMLS"; then
8838 echo "$ac_t""$NSGMLS" 1>&6
8840 echo "$ac_t""no" 1>&6
8843 test -n "$NSGMLS" && break
8846 # If you don't have nsgmls you won't get very far, so save the cycles.
8847 if test -n "$NSGMLS"; then
8848 for ac_prog in openjade jade
8850 # Extract the first word of "$ac_prog", so it can be a program name with args.
8851 set dummy $ac_prog; ac_word=$2
8852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8853 echo "configure:8853: checking for $ac_word" >&5
8854 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
8855 echo $ac_n "(cached) $ac_c" 1>&6
8857 if test -n "$JADE"; then
8858 ac_cv_prog_JADE="$JADE" # Let the user override the test.
8860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8862 for ac_dir in $ac_dummy; do
8863 test -z "$ac_dir" && ac_dir=.
8864 if test -f $ac_dir/$ac_word; then
8865 ac_cv_prog_JADE="$ac_prog"
8872 JADE="$ac_cv_prog_JADE"
8873 if test -n "$JADE"; then
8874 echo "$ac_t""$JADE" 1>&6
8876 echo "$ac_t""no" 1>&6
8879 test -n "$JADE" && break
8883 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
8884 echo "configure:8884: checking for DocBook V3.1" >&5
8885 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
8886 echo $ac_n "(cached) $ac_c" 1>&6
8888 cat >conftest.sgml <<EOF
8889 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
8893 <title>random</title>
8895 <title>testsect</title>
8902 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
8903 if test $? -eq 0; then
8904 pgac_cv_check_docbook=yes
8906 pgac_cv_check_docbook=no
8911 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
8913 have_docbook=$pgac_cv_check_docbook
8916 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
8917 echo "configure:8917: checking for DocBook stylesheets" >&5
8918 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
8919 echo $ac_n "(cached) $ac_c" 1>&6
8921 if test -n "$DOCBOOKSTYLE"; then
8922 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
8924 for pgac_prefix in /usr /usr/local /opt; do
8925 for pgac_infix in share lib; do
8926 for pgac_postfix in \
8927 sgml/stylesheets/nwalsh-modular \
8928 sgml/stylesheets/docbook \
8929 sgml/docbook/dsssl/modular
8931 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
8932 if test -r "$pgac_candidate/html/docbook.dsl" \
8933 && test -r "$pgac_candidate/print/docbook.dsl"
8935 pgac_cv_path_stylesheets=$pgac_candidate
8944 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
8946 if test -n "$DOCBOOKSTYLE"; then
8947 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
8949 echo "$ac_t""no" 1>&6
8951 for ac_prog in sgmlspl
8953 # Extract the first word of "$ac_prog", so it can be a program name with args.
8954 set dummy $ac_prog; ac_word=$2
8955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8956 echo "configure:8956: checking for $ac_word" >&5
8957 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
8960 if test -n "$SGMLSPL"; then
8961 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
8963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8965 for ac_dir in $ac_dummy; do
8966 test -z "$ac_dir" && ac_dir=.
8967 if test -f $ac_dir/$ac_word; then
8968 ac_cv_prog_SGMLSPL="$ac_prog"
8975 SGMLSPL="$ac_cv_prog_SGMLSPL"
8976 if test -n "$SGMLSPL"; then
8977 echo "$ac_t""$SGMLSPL" 1>&6
8979 echo "$ac_t""no" 1>&6
8982 test -n "$SGMLSPL" && break
8990 # prepare build tree if outside source tree
8991 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
8992 # Note 2: /bin/pwd might be better than shell's built-in at getting
8993 # a symlink-free name.
8994 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
8997 abs_top_srcdir=`cd $srcdir && pwd`
8998 echo $ac_n "preparing build tree... $ac_c" 1>&6
8999 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "." \
9000 || { echo "configure: error: failed" 1>&2; exit 1; }
9001 echo "$ac_t""done" 1>&6
9005 cat > confcache <<\EOF
9006 # This file is a shell script that caches the results of configure
9007 # tests run on this system so they can be shared between configure
9008 # scripts and configure runs. It is not useful on other systems.
9009 # If it contains results you don't want to keep, you may remove or edit it.
9011 # By default, configure uses ./config.cache as the cache file,
9012 # creating it if it does not exist already. You can give configure
9013 # the --cache-file=FILE option to use a different cache file; that is
9014 # what configure does when it calls configure scripts in
9015 # subdirectories, so they share the cache.
9016 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9017 # config.status only pays attention to the cache file if you give it the
9018 # --recheck option to rerun configure.
9021 # The following way of writing the cache mishandles newlines in values,
9022 # but we know of no workaround that is simple, portable, and efficient.
9023 # So, don't put newlines in cache variables' values.
9024 # Ultrix sh set writes to stderr and can't be redirected directly,
9025 # and sets the high bit in the cache file unless we assign to the vars.
9027 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9029 # `set' does not quote correctly, so add quotes (double-quote substitution
9030 # turns \\\\ into \\, and sed turns \\ into \).
9032 -e "s/'/'\\\\''/g" \
9033 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9036 # `set' quotes correctly as required by POSIX, so do not add quotes.
9037 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9040 if cmp -s $cache_file confcache; then
9043 if test -w $cache_file; then
9044 echo "updating cache $cache_file"
9045 cat confcache > $cache_file
9047 echo "not updating unwritable cache $cache_file"
9052 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9055 # Let make expand exec_prefix.
9056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9058 # Any assignment to VPATH causes Sun make to only execute
9059 # the first set of double-colon rules, so remove it if not needed.
9060 # If there is a colon in the path, we need to keep it.
9061 if test "x$srcdir" = x.; then
9062 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9065 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9067 DEFS=-DHAVE_CONFIG_H
9069 # Without the "./", some shells look in PATH for config.status.
9070 : ${CONFIG_STATUS=./config.status}
9072 echo creating $CONFIG_STATUS
9073 rm -f $CONFIG_STATUS
9074 cat > $CONFIG_STATUS <<EOF
9076 # Generated automatically by configure.
9077 # Run this file to recreate the current configuration.
9078 # This directory was configured as follows,
9079 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9081 # $0 $ac_configure_args
9083 # Compiler output produced by configure, useful for debugging
9084 # configure, is in ./config.log if it exists.
9086 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9089 case "\$ac_option" in
9090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9091 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9092 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9093 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9094 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9096 -help | --help | --hel | --he | --h)
9097 echo "\$ac_cs_usage"; exit 0 ;;
9098 *) echo "\$ac_cs_usage"; exit 1 ;;
9102 ac_given_srcdir=$srcdir
9104 trap 'rm -fr `echo "
9108 src/backend/port/Makefile
9109 src/include/pg_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9111 cat >> $CONFIG_STATUS <<EOF
9113 # Protect against being on the right side of a sed subst in config.status.
9114 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9115 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9119 s%@CFLAGS@%$CFLAGS%g
9120 s%@CPPFLAGS@%$CPPFLAGS%g
9121 s%@CXXFLAGS@%$CXXFLAGS%g
9122 s%@FFLAGS@%$FFLAGS%g
9124 s%@LDFLAGS@%$LDFLAGS%g
9126 s%@exec_prefix@%$exec_prefix%g
9127 s%@prefix@%$prefix%g
9128 s%@program_transform_name@%$program_transform_name%g
9129 s%@bindir@%$bindir%g
9130 s%@sbindir@%$sbindir%g
9131 s%@libexecdir@%$libexecdir%g
9132 s%@datadir@%$datadir%g
9133 s%@sysconfdir@%$sysconfdir%g
9134 s%@sharedstatedir@%$sharedstatedir%g
9135 s%@localstatedir@%$localstatedir%g
9136 s%@libdir@%$libdir%g
9137 s%@includedir@%$includedir%g
9138 s%@oldincludedir@%$oldincludedir%g
9139 s%@docdir@%$docdir%g
9140 s%@mandir@%$mandir%g
9141 s%@VERSION@%$VERSION%g
9143 s%@host_alias@%$host_alias%g
9144 s%@host_cpu@%$host_cpu%g
9145 s%@host_vendor@%$host_vendor%g
9146 s%@host_os@%$host_os%g
9147 s%@PORTNAME@%$PORTNAME%g
9149 s%@MULTIBYTE@%$MULTIBYTE%g
9150 s%@enable_nls@%$enable_nls%g
9151 s%@WANTED_LANGUAGES@%$WANTED_LANGUAGES%g
9152 s%@default_port@%$default_port%g
9153 s%@enable_shared@%$enable_shared%g
9154 s%@enable_rpath@%$enable_rpath%g
9156 s%@EXEEXT@%$EXEEXT%g
9159 s%@autodepend@%$autodepend%g
9160 s%@INCLUDES@%$INCLUDES%g
9161 s%@with_tcl@%$with_tcl%g
9162 s%@with_tk@%$with_tk%g
9163 s%@with_perl@%$with_perl%g
9164 s%@with_python@%$with_python%g
9166 s%@with_java@%$with_java%g
9167 s%@with_krb4@%$with_krb4%g
9168 s%@with_krb5@%$with_krb5%g
9169 s%@krb_srvtab@%$krb_srvtab%g
9170 s%@with_pam@%$with_pam%g
9171 s%@with_openssl@%$with_openssl%g
9172 s%@enable_odbc@%$enable_odbc%g
9173 s%@with_unixodbc@%$with_unixodbc%g
9174 s%@with_iodbc@%$with_iodbc%g
9175 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
9176 s%@ELF_SYS@%$ELF_SYS%g
9178 s%@CXXCPP@%$CXXCPP%g
9180 s%@with_CXX@%$with_CXX%g
9183 s%@FLEXFLAGS@%$FLEXFLAGS%g
9186 s%@with_gnu_ld@%$with_gnu_ld%g
9187 s%@ld_R_works@%$ld_R_works%g
9188 s%@RANLIB@%$RANLIB%g
9189 s%@LORDER@%$LORDER%g
9192 s%@YFLAGS@%$YFLAGS%g
9195 s%@perl_installsitearch@%$perl_installsitearch%g
9196 s%@perl_installsitelib@%$perl_installsitelib%g
9197 s%@perl_installman3dir@%$perl_installman3dir%g
9198 s%@PYTHON@%$PYTHON%g
9199 s%@python_version@%$python_version%g
9200 s%@python_prefix@%$python_prefix%g
9201 s%@python_execprefix@%$python_execprefix%g
9202 s%@python_configdir@%$python_configdir%g
9203 s%@python_moduledir@%$python_moduledir%g
9204 s%@python_moduleexecdir@%$python_moduleexecdir%g
9205 s%@python_includespec@%$python_includespec%g
9206 s%@python_libspec@%$python_libspec%g
9207 s%@MSGFMT@%$MSGFMT%g
9208 s%@MSGMERGE@%$MSGMERGE%g
9209 s%@XGETTEXT@%$XGETTEXT%g
9210 s%@localedir@%$localedir%g
9211 s%@MEMCMP@%$MEMCMP%g
9212 s%@SNPRINTF@%$SNPRINTF%g
9214 s%@GETRUSAGE@%$GETRUSAGE%g
9215 s%@SRANDOM@%$SRANDOM%g
9216 s%@GETHOSTNAME@%$GETHOSTNAME%g
9217 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
9218 s%@INET_ATON@%$INET_ATON%g
9219 s%@STRERROR@%$STRERROR%g
9220 s%@STRDUP@%$STRDUP%g
9221 s%@STRTOL@%$STRTOL%g
9222 s%@STRTOUL@%$STRTOUL%g
9223 s%@STRCASECMP@%$STRCASECMP%g
9224 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
9225 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
9227 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
9228 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
9229 s%@NSGMLS@%$NSGMLS%g
9231 s%@have_docbook@%$have_docbook%g
9232 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
9233 s%@SGMLSPL@%$SGMLSPL%g
9234 s%@abs_top_srcdir@%$abs_top_srcdir%g
9239 cat >> $CONFIG_STATUS <<\EOF
9241 # Split the substitutions into bite-sized pieces for seds with
9242 # small command number limits, like on Digital OSF/1 and HP-UX.
9243 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9244 ac_file=1 # Number of current file.
9245 ac_beg=1 # First line for current file.
9246 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9249 while $ac_more_lines; do
9250 if test $ac_beg -gt 1; then
9251 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9253 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9255 if test ! -s conftest.s$ac_file; then
9257 rm -f conftest.s$ac_file
9259 if test -z "$ac_sed_cmds"; then
9260 ac_sed_cmds="sed -f conftest.s$ac_file"
9262 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9264 ac_file=`expr $ac_file + 1`
9266 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9269 if test -z "$ac_sed_cmds"; then
9274 cat >> $CONFIG_STATUS <<EOF
9276 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
9279 src/backend/port/Makefile
9282 cat >> $CONFIG_STATUS <<\EOF
9283 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9284 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9286 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9287 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9288 *) ac_file_in="${ac_file}.in" ;;
9291 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9293 # Remove last slash and all that follows it. Not all systems have dirname.
9294 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9295 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9296 # The file is in a subdirectory.
9297 test ! -d "$ac_dir" && mkdir "$ac_dir"
9298 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9299 # A "../" for each directory in $ac_dir_suffix.
9300 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9302 ac_dir_suffix= ac_dots=
9305 case "$ac_given_srcdir" in
9307 if test -z "$ac_dots"; then top_srcdir=.
9308 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9309 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9311 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9312 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9316 echo creating "$ac_file"
9318 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9320 *Makefile*) ac_comsub="1i\\
9321 # $configure_input" ;;
9325 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9327 s%@configure_input@%$configure_input%g
9328 s%@srcdir@%$srcdir%g
9329 s%@top_srcdir@%$top_srcdir%g
9330 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9334 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9335 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9337 # ac_d sets the value in "#define NAME VALUE" lines.
9338 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9339 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9342 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9343 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9344 ac_uB='\([ ]\)%\1#\2define\3'
9347 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9348 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9349 ac_eB='$%\1#\2define\3'
9353 if test "${CONFIG_HEADERS+set}" != set; then
9355 cat >> $CONFIG_STATUS <<EOF
9356 CONFIG_HEADERS="src/include/pg_config.h"
9358 cat >> $CONFIG_STATUS <<\EOF
9360 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9361 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9363 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9364 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9365 *) ac_file_in="${ac_file}.in" ;;
9368 echo creating $ac_file
9370 rm -f conftest.frag conftest.in conftest.out
9371 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9372 cat $ac_file_inputs > conftest.in
9376 # Transform confdefs.h into a sed script conftest.vals that substitutes
9377 # the proper values into config.h.in to produce config.h. And first:
9378 # Protect against being on the right side of a sed subst in config.status.
9379 # Protect against being in an unquoted here document in config.status.
9381 cat > conftest.hdr <<\EOF
9384 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9388 sed -n -f conftest.hdr confdefs.h > conftest.vals
9391 # This sed command replaces #undef with comments. This is necessary, for
9392 # example, in the case of _POSIX_SOURCE, which is predefined and required
9393 # on some systems where configure will not decide to define it.
9394 cat >> conftest.vals <<\EOF
9395 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9398 # Break up conftest.vals because some shells have a limit on
9399 # the size of here documents, and old seds have small limits too.
9404 ac_lines=`grep -c . conftest.vals`
9405 # grep -c gives empty output for an empty file on some AIX systems.
9406 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9407 # Write a limited-size here document to conftest.frag.
9408 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9409 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9411 sed -f conftest.frag conftest.in > conftest.out
9413 mv conftest.out conftest.in
9415 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9417 mv conftest.tail conftest.vals
9421 cat >> $CONFIG_STATUS <<\EOF
9422 rm -f conftest.frag conftest.h
9423 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9424 cat conftest.in >> conftest.h
9426 if cmp -s $ac_file conftest.h 2>/dev/null; then
9427 echo "$ac_file is unchanged"
9430 # Remove last slash and all that follows it. Not all systems have dirname.
9431 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9432 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9433 # The file is in a subdirectory.
9434 test ! -d "$ac_dir" && mkdir "$ac_dir"
9437 mv conftest.h $ac_file
9443 cat >> $CONFIG_STATUS <<EOF
9444 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}"
9445 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"
9448 cat >> $CONFIG_STATUS <<\EOF
9449 srcdir=$ac_given_srcdir
9450 while test -n "$ac_sources"; do
9451 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9452 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9454 echo "linking $srcdir/$ac_source to $ac_dest"
9456 if test ! -r $srcdir/$ac_source; then
9457 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9461 # Make relative symlinks.
9462 # Remove last slash and all that follows it. Not all systems have dirname.
9463 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9464 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9465 # The dest file is in a subdirectory.
9466 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9467 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9468 # A "../" for each directory in $ac_dest_dir_suffix.
9469 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9471 ac_dest_dir_suffix= ac_dots=
9475 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9476 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9479 # Make a symlink if possible; otherwise try a hard link.
9480 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9481 ln $srcdir/$ac_source $ac_dest; then :
9483 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9487 cat >> $CONFIG_STATUS <<EOF
9490 cat >> $CONFIG_STATUS <<\EOF
9492 # Update timestamp for pg_config.h (see Makefile.global)
9493 test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
9497 chmod +x $CONFIG_STATUS
9498 rm -fr confdefs* $ac_clean_files
9499 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1