2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.3devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright 2002 PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.3devel'
262 PACKAGE_STRING='PostgreSQL 7.3devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -docdir | --docdir | --infodi | --infod | --doc | --inf)
441 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir docdir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_CXX_set=${CXX+set}
761 ac_env_CXX_value=$CXX
762 ac_cv_env_CXX_set=${CXX+set}
763 ac_cv_env_CXX_value=$CXX
764 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
765 ac_env_CXXFLAGS_value=$CXXFLAGS
766 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
767 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
768 ac_env_CXXCPP_set=${CXXCPP+set}
769 ac_env_CXXCPP_value=$CXXCPP
770 ac_cv_env_CXXCPP_set=${CXXCPP+set}
771 ac_cv_env_CXXCPP_value=$CXXCPP
772 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
773 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
774 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
775 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures PostgreSQL 7.3devel to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of PostgreSQL 7.3devel:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-integer-datetimes enable 64-bit integer date/time support
853 --enable-recode enable character set recode support
854 --enable-nls[=LANGUAGES] enable Native Language Support
855 --disable-shared do not build shared libraries
856 --disable-rpath do not embed shared library search path in executables
857 --enable-debug build with debugging symbols (-g)
858 --enable-depend turn on automatic dependency tracking
859 --enable-cassert enable assertion checks (for debugging)
860 --enable-odbc build the ODBC driver package
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --with-includes=DIRS look for additional header files in DIRS
867 --with-libraries=DIRS look for additional libraries in DIRS
868 --with-libs=DIRS alternative spelling of --with-libraries
869 --with-pgport=PORTNUM change default port number 5432
870 --with-maxbackends=N set default maximum number of connections 32
871 --with-tcl build Tcl and Tk interfaces
872 --without-tk do not build Tk interfaces if Tcl is enabled
873 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
874 --with-tkconfig=DIR tkConfig.sh is in DIR
875 --with-perl build Perl interface and PL/Perl
876 --with-python build Python interface module
877 --with-java build JDBC interface and Java tools
878 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
879 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
880 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
881 --with-pam build with PAM support
882 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
883 --without-readline do not use Readline
884 --without-zlib do not use Zlib
885 --with-unixodbc build ODBC driver for unixODBC
886 --with-iodbc build ODBC driver for iODBC
887 --with-odbcinst=DIR default directory for odbcinst.ini sysconfdir
888 --with-CXX build C++ modules (libpq++)
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
899 CXX C++ compiler command
900 CXXFLAGS C++ compiler flags
901 CXXCPP C++ preprocessor
903 location of DocBook stylesheets
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
908 Report bugs to <pgsql-bugs@postgresql.org>.
912 if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
919 if test "$ac_dir" != .; then
920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 ac_dir_suffix= ac_top_builddir=
928 .) # No --srcdir option. We are building in place.
930 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 [\\/]* | ?:[\\/]* ) # Absolute path.
936 ac_srcdir=$srcdir$ac_dir_suffix;
937 ac_top_srcdir=$srcdir ;;
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
971 PostgreSQL configure 7.3devel
972 generated by GNU Autoconf 2.53
974 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
979 Copyright 2002 PostgreSQL Global Development Group
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by PostgreSQL $as_me 7.3devel, which was
989 generated by GNU Autoconf 2.53. Invocation command line was
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Also quote any args containing shell meta-characters.
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n ) continue ;;
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055 case " $ac_configure_args " in
1056 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1057 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1060 # Get rid of the leading space.
1063 # When interrupted or exit'd, cleanup temporary files, and complete
1064 # config.log. We remove comments because anyway the quotes in there
1065 # would cause problems or look ugly.
1066 # WARNING: Be sure not to use single quotes in there, as some shells,
1067 # such as our DU 5.0 friend, will then `close' the trap.
1068 trap 'exit_status=$?
1069 # Save into config.log some information that might help in debugging.
1073 ## ---------------- ##
1074 ## Cache variables. ##
1075 ## ---------------- ##
1078 # The following way of writing the cache mishandles newlines in values,
1081 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1084 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1094 if test -s confdefs.h; then
1101 sed "/^$/d" confdefs.h
1104 test "$ac_signal" != 0 &&
1105 echo "$as_me: caught signal $ac_signal"
1106 echo "$as_me: exit $exit_status"
1108 rm -f core core.* *.core &&
1109 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1112 for ac_signal in 1 2 13 15; do
1113 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1118 rm -rf conftest* confdefs.h
1119 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1122 # Predefined preprocessor variables.
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_NAME "$PACKAGE_NAME"
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_STRING "$PACKAGE_STRING"
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1149 # Let the site file select an alternate cache file if it wants to.
1150 # Prefer explicitly selected file to automatically selected ones.
1151 if test -z "$CONFIG_SITE"; then
1152 if test "x$prefix" != xNONE; then
1153 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1155 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1158 for ac_site_file in $CONFIG_SITE; do
1159 if test -r "$ac_site_file"; then
1160 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1161 echo "$as_me: loading site script $ac_site_file" >&6;}
1162 sed 's/^/| /' "$ac_site_file" >&5
1167 if test -r "$cache_file"; then
1168 # Some versions of bash will fail to source /dev/null (special
1169 # files actually), so we avoid doing that.
1170 if test -f "$cache_file"; then
1171 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1172 echo "$as_me: loading cache $cache_file" >&6;}
1174 [\\/]* | ?:[\\/]* ) . $cache_file;;
1175 *) . ./$cache_file;;
1179 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180 echo "$as_me: creating cache $cache_file" >&6;}
1184 # Check that the precious variables saved in the cache have kept the same
1186 ac_cache_corrupted=false
1187 for ac_var in `(set) 2>&1 |
1188 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1190 eval ac_new_set=\$ac_env_${ac_var}_set
1191 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1192 eval ac_new_val="\$ac_env_${ac_var}_value"
1193 case $ac_old_set,$ac_new_set in
1195 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1196 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1197 ac_cache_corrupted=: ;;
1199 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1200 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1201 ac_cache_corrupted=: ;;
1204 if test "x$ac_old_val" != "x$ac_new_val"; then
1205 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1206 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1208 echo "$as_me: former value: $ac_old_val" >&2;}
1209 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1210 echo "$as_me: current value: $ac_new_val" >&2;}
1211 ac_cache_corrupted=:
1214 # Pass precious variables to config.status.
1215 if test "$ac_new_set" = set; then
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 *) ac_arg=$ac_var=$ac_new_val ;;
1221 case " $ac_configure_args " in
1222 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1223 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1227 if $ac_cache_corrupted; then
1228 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1230 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1231 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232 { (exit 1); exit 1; }; }
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274 for ac_dir in config $srcdir/config; do
1275 if test -f $ac_dir/install-sh; then
1277 ac_install_sh="$ac_aux_dir/install-sh -c"
1279 elif test -f $ac_dir/install.sh; then
1281 ac_install_sh="$ac_aux_dir/install.sh -c"
1283 elif test -f $ac_dir/shtool; then
1285 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 if test -z "$ac_aux_dir"; then
1290 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1291 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1292 { (exit 1); exit 1; }; }
1294 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1299 configure_args=$ac_configure_args
1303 cat >>confdefs.h <<_ACEOF
1304 #define PG_VERSION "$PACKAGE_VERSION"
1308 # Make sure we can run config.sub.
1309 $ac_config_sub sun4 >/dev/null 2>&1 ||
1310 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1311 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1312 { (exit 1); exit 1; }; }
1314 echo "$as_me:$LINENO: checking build system type" >&5
1315 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1316 if test "${ac_cv_build+set}" = set; then
1317 echo $ECHO_N "(cached) $ECHO_C" >&6
1319 ac_cv_build_alias=$build_alias
1320 test -z "$ac_cv_build_alias" &&
1321 ac_cv_build_alias=`$ac_config_guess`
1322 test -z "$ac_cv_build_alias" &&
1323 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1324 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1325 { (exit 1); exit 1; }; }
1326 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1327 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1328 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1329 { (exit 1); exit 1; }; }
1332 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1333 echo "${ECHO_T}$ac_cv_build" >&6
1335 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1340 echo "$as_me:$LINENO: checking host system type" >&5
1341 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1342 if test "${ac_cv_host+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 ac_cv_host_alias=$host_alias
1346 test -z "$ac_cv_host_alias" &&
1347 ac_cv_host_alias=$ac_cv_build_alias
1348 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1349 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1351 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1355 echo "${ECHO_T}$ac_cv_host" >&6
1357 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1364 echo "$as_me:$LINENO: checking which template to use" >&5
1365 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1370 # Check whether --with-template or --without-template was given.
1371 if test "${with_template+set}" = set; then
1372 withval="$with_template"
1376 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1377 echo "$as_me: error: argument required for --with-template option" >&2;}
1378 { (exit 1); exit 1; }; }
1381 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1382 echo "$as_me: error: argument required for --with-template option" >&2;}
1383 { (exit 1); exit 1; }; }
1388 list) echo; ls "$srcdir/src/template"; exit;;
1389 *) if test -f "$srcdir/src/template/$with_template" ; then
1392 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1393 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1394 { (exit 1); exit 1; }; }
1403 # --with-template not given
1406 aix*) template=aix ;;
1407 beos*) template=beos ;;
1408 bsdi*) template=bsdi ;;
1409 cygwin*) template=win ;;
1410 darwin*) template=darwin ;;
1411 dgux*) template=dgux ;;
1412 freebsd*) template=freebsd ;;
1413 hpux*) template=hpux ;;
1414 irix*) template=irix5 ;;
1415 linux*) template=linux ;;
1416 netbsd*) template=netbsd ;;
1417 nextstep*) template=nextstep ;;
1418 openbsd*) template=openbsd ;;
1419 osf*) template=osf ;;
1420 qnx*) template=qnx4 ;;
1421 sco*) template=sco ;;
1422 solaris*) template=solaris ;;
1423 sunos*) template=sunos4 ;;
1425 case $host_vendor in
1426 univel) template=univel ;;
1428 sysv4*) template=svr4 ;;
1429 sysv5*) template=unixware ;;
1430 ultrix*) template=ultrix4 ;;
1433 if test x"$template" = x"" ; then
1434 { { echo "$as_me:$LINENO: error:
1435 *******************************************************************
1436 PostgreSQL has apparently not been ported to your platform yet.
1437 To try a manual configuration, look into the src/template directory
1438 for a similar platform and use the '--with-template=' option.
1440 Please also contact <pgsql-ports@postgresql.org> to see about
1441 rectifying this. Include the above 'checking host system type...'
1443 *******************************************************************
1445 echo "$as_me: error:
1446 *******************************************************************
1447 PostgreSQL has apparently not been ported to your platform yet.
1448 To try a manual configuration, look into the src/template directory
1449 for a similar platform and use the '--with-template=' option.
1451 Please also contact <pgsql-ports@postgresql.org> to see about
1452 rectifying this. Include the above 'checking host system type...'
1454 *******************************************************************
1456 { (exit 1); exit 1; }; }
1463 echo "$as_me:$LINENO: result: $template" >&5
1464 echo "${ECHO_T}$template" >&6
1469 # Pick right test-and-set (TAS) code. Most platforms have inline
1470 # assembler code in src/include/storage/s_lock.h, so we just use
1471 # a dummy file here.
1473 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1474 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1475 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1476 *) need_tas=no; tas_file=dummy.s ;;
1478 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1481 if test "$need_tas" = yes ; then
1489 ## Command line options
1494 # Add non-standard directories to the include path
1499 # Check whether --with-includes or --without-includes was given.
1500 if test "${with_includes+set}" = set; then
1501 withval="$with_includes"
1505 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1506 echo "$as_me: error: argument required for --with-includes option" >&2;}
1507 { (exit 1); exit 1; }; }
1510 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512 { (exit 1); exit 1; }; }
1524 # Add non-standard directories to the library search path
1529 # Check whether --with-libraries or --without-libraries was given.
1530 if test "${with_libraries+set}" = set; then
1531 withval="$with_libraries"
1535 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1536 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1537 { (exit 1); exit 1; }; }
1540 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542 { (exit 1); exit 1; }; }
1545 LIBRARY_DIRS=$withval
1555 # Check whether --with-libs or --without-libs was given.
1556 if test "${with_libs+set}" = set; then
1557 withval="$with_libs"
1561 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1562 echo "$as_me: error: argument required for --with-libs option" >&2;}
1563 { (exit 1); exit 1; }; }
1566 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568 { (exit 1); exit 1; }; }
1571 LIBRARY_DIRS=$withval
1580 # 64-bit integer date/time storage (--enable-integer-datetimes)
1582 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1583 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1586 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1587 if test "${enable_integer_datetimes+set}" = set; then
1588 enableval="$enable_integer_datetimes"
1593 cat >>confdefs.h <<\_ACEOF
1594 #define USE_INTEGER_DATETIMES 1
1602 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1603 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1604 { (exit 1); exit 1; }; }
1609 enable_integer_datetimes=no
1613 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1614 echo "${ECHO_T}$enable_integer_datetimes" >&6
1617 # Character set recode (--enable-recode)
1619 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1620 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1623 # Check whether --enable-recode or --disable-recode was given.
1624 if test "${enable_recode+set}" = set; then
1625 enableval="$enable_recode"
1630 cat >>confdefs.h <<\_ACEOF
1631 #define CYR_RECODE 1
1639 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1640 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1641 { (exit 1); exit 1; }; }
1650 echo "$as_me:$LINENO: result: $enable_recode" >&5
1651 echo "${ECHO_T}$enable_recode" >&6
1659 cat >>confdefs.h <<\_ACEOF
1668 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1669 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1672 # Check whether --enable-nls or --disable-nls was given.
1673 if test "${enable_nls+set}" = set; then
1674 enableval="$enable_nls"
1685 WANTED_LANGUAGES=$enableval
1694 if test "$enable_nls" = yes; then
1696 cat >>confdefs.h <<\_ACEOF
1697 #define ENABLE_NLS 1
1702 echo "$as_me:$LINENO: result: $enable_nls" >&5
1703 echo "${ECHO_T}$enable_nls" >&6
1708 # Default port number (--with-pgport), default 5432
1710 echo "$as_me:$LINENO: checking for default port number" >&5
1711 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1715 # Check whether --with-pgport or --without-pgport was given.
1716 if test "${with_pgport+set}" = set; then
1717 withval="$with_pgport"
1721 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1722 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1723 { (exit 1); exit 1; }; }
1726 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1727 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1728 { (exit 1); exit 1; }; }
1731 default_port=$withval
1739 echo "$as_me:$LINENO: result: $default_port" >&5
1740 echo "${ECHO_T}$default_port" >&6
1741 # Need both of these because some places want an integer and some a string
1743 cat >>confdefs.h <<_ACEOF
1744 #define DEF_PGPORT ${default_port}
1748 cat >>confdefs.h <<_ACEOF
1749 #define DEF_PGPORT_STR "${default_port}"
1755 # Maximum number of allowed connections (--with-maxbackends), default 32
1757 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1758 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1762 # Check whether --with-maxbackends or --without-maxbackends was given.
1763 if test "${with_maxbackends+set}" = set; then
1764 withval="$with_maxbackends"
1768 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1769 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1770 { (exit 1); exit 1; }; }
1773 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1774 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1775 { (exit 1); exit 1; }; }
1786 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1787 echo "${ECHO_T}$with_maxbackends" >&6
1789 cat >>confdefs.h <<_ACEOF
1790 #define DEF_MAXBACKENDS $with_maxbackends
1796 # Option to disable shared libraries
1800 # Check whether --enable-shared or --disable-shared was given.
1801 if test "${enable_shared+set}" = set; then
1802 enableval="$enable_shared"
1812 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1813 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1814 { (exit 1); exit 1; }; }
1826 # '-rpath'-like feature can be disabled
1830 # Check whether --enable-rpath or --disable-rpath was given.
1831 if test "${enable_rpath+set}" = set; then
1832 enableval="$enable_rpath"
1842 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1843 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1844 { (exit 1); exit 1; }; }
1857 # --enable-debug adds -g to compiler flags
1861 # Check whether --enable-debug or --disable-debug was given.
1862 if test "${enable_debug+set}" = set; then
1863 enableval="$enable_debug"
1873 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1874 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1875 { (exit 1); exit 1; }; }
1890 # For historical reasons you can also use --with-CC to specify the C compiler
1891 # to use, although the standard way to do this is to set the CC environment
1896 # Check whether --with-CC or --without-CC was given.
1897 if test "${with_CC+set}" = set; then
1902 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1903 echo "$as_me: error: argument required for --with-CC option" >&2;}
1904 { (exit 1); exit 1; }; }
1907 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1908 echo "$as_me: error: argument required for --with-CC option" >&2;}
1909 { (exit 1); exit 1; }; }
1919 # Set here so it can be over-ridden in the template file
1924 aix) pgac_cc_list="gcc xlc";;
1925 irix) pgac_cc_list="cc";; # no gcc
1926 *) pgac_cc_list="gcc cc";;
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 if test -n "$ac_tool_prefix"; then
1935 for ac_prog in $pgac_cc_list
1937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC="$CC" # Let the user override the test.
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 test -z "$as_dir" && as_dir=.
1952 for ac_exec_ext in '' $ac_executable_extensions; do
1953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 if test -n "$CC"; then
1965 echo "$as_me:$LINENO: result: $CC" >&5
1966 echo "${ECHO_T}$CC" >&6
1968 echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1972 test -n "$CC" && break
1975 if test -z "$CC"; then
1977 for ac_prog in $pgac_cc_list
1979 # Extract the first word of "$ac_prog", so it can be a program name with args.
1980 set dummy $ac_prog; ac_word=$2
1981 echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 if test -n "$ac_ct_CC"; then
1987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 ac_cv_prog_ac_ct_CC="$ac_prog"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006 if test -n "$ac_ct_CC"; then
2007 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008 echo "${ECHO_T}$ac_ct_CC" >&6
2010 echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6
2014 test -n "$ac_ct_CC" && break
2021 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2022 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2023 { (exit 1); exit 1; }; }
2025 # Provide some information about the compiler.
2026 echo "$as_me:$LINENO:" \
2027 "checking for C compiler version" >&5
2028 ac_compiler=`set X $ac_compile; echo $2`
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2030 (eval $ac_compiler --version </dev/null >&5) 2>&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }
2034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2035 (eval $ac_compiler -v </dev/null >&5) 2>&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2040 (eval $ac_compiler -V </dev/null >&5) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }
2045 cat >conftest.$ac_ext <<_ACEOF
2046 #line $LINENO "configure"
2047 #include "confdefs.h"
2049 #ifdef F77_DUMMY_MAIN
2053 int F77_DUMMY_MAIN() { return 1; }
2063 ac_clean_files_save=$ac_clean_files
2064 ac_clean_files="$ac_clean_files a.out a.exe"
2065 # Try to create an executable without -o first, disregard a.out.
2066 # It will help us diagnose broken compilers, and finding out an intuition
2068 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2069 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2070 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2071 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2072 (eval $ac_link_default) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; then
2076 # Find the output, starting from the most likely. This scheme is
2077 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2080 # Be careful to initialize this variable, since it used to be cached.
2081 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2083 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2084 ls a.out conftest 2>/dev/null;
2085 ls a.* conftest.* 2>/dev/null`; do
2087 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2088 a.out ) # We found the default executable, but exeext='' is most
2091 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2092 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2099 echo "$as_me: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2102 echo "$as_me: error: C compiler cannot create executables" >&2;}
2103 { (exit 77); exit 77; }; }
2106 ac_exeext=$ac_cv_exeext
2107 echo "$as_me:$LINENO: result: $ac_file" >&5
2108 echo "${ECHO_T}$ac_file" >&6
2110 # Check the compiler produces executables we can run. If not, either
2111 # the compiler is broken, or we cross compile.
2112 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2113 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2114 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2115 # If not cross compiling, check that we can run a simple program.
2116 if test "$cross_compiling" != yes; then
2117 if { ac_try='./$ac_file'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2125 if test "$cross_compiling" = maybe; then
2128 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2129 If you meant to cross compile, use \`--host'." >&5
2130 echo "$as_me: error: cannot run C compiled programs.
2131 If you meant to cross compile, use \`--host'." >&2;}
2132 { (exit 1); exit 1; }; }
2136 echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6
2139 rm -f a.out a.exe conftest$ac_cv_exeext
2140 ac_clean_files=$ac_clean_files_save
2141 # Check the compiler produces executables we can run. If not, either
2142 # the compiler is broken, or we cross compile.
2143 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2144 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2145 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2146 echo "${ECHO_T}$cross_compiling" >&6
2148 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2149 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2151 (eval $ac_link) 2>&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; then
2155 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2156 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2157 # work properly (i.e., refer to `conftest.exe'), while it won't with
2159 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2161 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2169 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2170 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2171 { (exit 1); exit 1; }; }
2174 rm -f conftest$ac_cv_exeext
2175 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2176 echo "${ECHO_T}$ac_cv_exeext" >&6
2178 rm -f conftest.$ac_ext
2179 EXEEXT=$ac_cv_exeext
2181 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2182 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2183 if test "${ac_cv_objext+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 cat >conftest.$ac_ext <<_ACEOF
2187 #line $LINENO "configure"
2188 #include "confdefs.h"
2190 #ifdef F77_DUMMY_MAIN
2194 int F77_DUMMY_MAIN() { return 1; }
2204 rm -f conftest.o conftest.obj
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206 (eval $ac_compile) 2>&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; then
2210 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2213 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2218 echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2221 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2222 { (exit 1); exit 1; }; }
2225 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2227 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2228 echo "${ECHO_T}$ac_cv_objext" >&6
2229 OBJEXT=$ac_cv_objext
2231 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2232 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2233 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 cat >conftest.$ac_ext <<_ACEOF
2237 #line $LINENO "configure"
2238 #include "confdefs.h"
2240 #ifdef F77_DUMMY_MAIN
2244 int F77_DUMMY_MAIN() { return 1; }
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2271 echo "$as_me: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2275 rm -f conftest.$ac_objext conftest.$ac_ext
2276 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2279 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2280 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2281 GCC=`test $ac_compiler_gnu = yes && echo yes`
2282 ac_test_CFLAGS=${CFLAGS+set}
2283 ac_save_CFLAGS=$CFLAGS
2285 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2286 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2287 if test "${ac_cv_prog_cc_g+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 cat >conftest.$ac_ext <<_ACEOF
2291 #line $LINENO "configure"
2292 #include "confdefs.h"
2294 #ifdef F77_DUMMY_MAIN
2298 int F77_DUMMY_MAIN() { return 1; }
2308 rm -f conftest.$ac_objext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 echo "$as_me: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2326 rm -f conftest.$ac_objext conftest.$ac_ext
2328 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2329 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2330 if test "$ac_test_CFLAGS" = set; then
2331 CFLAGS=$ac_save_CFLAGS
2332 elif test $ac_cv_prog_cc_g = yes; then
2333 if test "$GCC" = yes; then
2339 if test "$GCC" = yes; then
2345 # Some people use a C++ compiler to compile C. Since we use `exit',
2346 # in C++ we need to declare it. In case someone uses the same compiler
2347 # for both compiling C and C++ we need to have the C++ compiler decide
2348 # the declaration of exit, since it's the most demanding environment.
2349 cat >conftest.$ac_ext <<_ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 for ac_declaration in \
2368 '#include <stdlib.h>' \
2369 'extern "C" void std::exit (int) throw (); using std::exit;' \
2370 'extern "C" void std::exit (int); using std::exit;' \
2371 'extern "C" void exit (int) throw ();' \
2372 'extern "C" void exit (int);' \
2375 cat >conftest.$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 #include "confdefs.h"
2380 #ifdef F77_DUMMY_MAIN
2384 int F77_DUMMY_MAIN() { return 1; }
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2408 echo "$as_me: failed program was:" >&5
2409 cat conftest.$ac_ext >&5
2412 rm -f conftest.$ac_objext conftest.$ac_ext
2413 cat >conftest.$ac_ext <<_ACEOF
2414 #line $LINENO "configure"
2415 #include "confdefs.h"
2417 #ifdef F77_DUMMY_MAIN
2421 int F77_DUMMY_MAIN() { return 1; }
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 echo "$as_me: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2448 rm -f conftest.$ac_objext conftest.$ac_ext
2451 if test -n "$ac_declaration"; then
2452 echo '#ifdef __cplusplus' >>confdefs.h
2453 echo $ac_declaration >>confdefs.h
2454 echo '#endif' >>confdefs.h
2458 echo "$as_me: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2461 rm -f conftest.$ac_objext conftest.$ac_ext
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469 . "$srcdir/src/template/$template" || exit
2471 if test "$ac_env_CFLAGS_set" = set; then
2472 CFLAGS=$ac_env_CFLAGS_value
2474 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2477 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2478 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2479 # Check if the compiler still works with the template settings
2480 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2481 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2483 cat >conftest.$ac_ext <<_ACEOF
2484 #line $LINENO "configure"
2485 #include "confdefs.h"
2487 #ifdef F77_DUMMY_MAIN
2491 int F77_DUMMY_MAIN() { return 1; }
2501 rm -f conftest.$ac_objext conftest$ac_exeext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2503 (eval $ac_link) 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -s conftest$ac_exeext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 echo "$as_me:$LINENO: result: yes" >&5
2514 echo "${ECHO_T}yes" >&6
2516 echo "$as_me: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2518 echo "$as_me:$LINENO: result: no" >&5
2519 echo "${ECHO_T}no" >&6
2520 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2521 echo "$as_me: error: cannot proceed" >&2;}
2522 { (exit 1); exit 1; }; }
2524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2531 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2532 # On Suns, sometimes $CPP names a directory.
2533 if test -n "$CPP" && test -d "$CPP"; then
2536 if test -z "$CPP"; then
2537 if test "${ac_cv_prog_CPP+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 # Double quotes because CPP needs to be expanded
2541 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2544 for ac_c_preproc_warn_flag in '' yes
2546 # Use a header file that comes with gcc, so configuring glibc
2547 # with a fresh cross-compiler works.
2548 # On the NeXT, cc -E runs the code through the compiler's parser,
2549 # not just through cpp. "Syntax error" is here to catch this case.
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2559 egrep -v '^ *\+' conftest.er1 >conftest.err
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } >/dev/null; then
2564 if test -s conftest.err; then
2565 ac_cpp_err=$ac_c_preproc_warn_flag
2572 if test -z "$ac_cpp_err"; then
2575 echo "$as_me: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2577 # Broken: fails on valid input.
2580 rm -f conftest.err conftest.$ac_ext
2582 # OK, works on sane cases. Now check whether non-existent headers
2583 # can be detected and how.
2584 cat >conftest.$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2586 #include "confdefs.h"
2587 #include <ac_nonexistent.h>
2589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2592 egrep -v '^ *\+' conftest.er1 >conftest.err
2594 cat conftest.err >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } >/dev/null; then
2597 if test -s conftest.err; then
2598 ac_cpp_err=$ac_c_preproc_warn_flag
2605 if test -z "$ac_cpp_err"; then
2606 # Broken: success on invalid input.
2609 echo "$as_me: failed program was:" >&5
2610 cat conftest.$ac_ext >&5
2611 # Passes both tests.
2615 rm -f conftest.err conftest.$ac_ext
2618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2619 rm -f conftest.err conftest.$ac_ext
2620 if $ac_preproc_ok; then
2632 echo "$as_me:$LINENO: result: $CPP" >&5
2633 echo "${ECHO_T}$CPP" >&6
2635 for ac_c_preproc_warn_flag in '' yes
2637 # Use a header file that comes with gcc, so configuring glibc
2638 # with a fresh cross-compiler works.
2639 # On the NeXT, cc -E runs the code through the compiler's parser,
2640 # not just through cpp. "Syntax error" is here to catch this case.
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2650 egrep -v '^ *\+' conftest.er1 >conftest.err
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } >/dev/null; then
2655 if test -s conftest.err; then
2656 ac_cpp_err=$ac_c_preproc_warn_flag
2663 if test -z "$ac_cpp_err"; then
2666 echo "$as_me: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2668 # Broken: fails on valid input.
2671 rm -f conftest.err conftest.$ac_ext
2673 # OK, works on sane cases. Now check whether non-existent headers
2674 # can be detected and how.
2675 cat >conftest.$ac_ext <<_ACEOF
2676 #line $LINENO "configure"
2677 #include "confdefs.h"
2678 #include <ac_nonexistent.h>
2680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2683 egrep -v '^ *\+' conftest.er1 >conftest.err
2685 cat conftest.err >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } >/dev/null; then
2688 if test -s conftest.err; then
2689 ac_cpp_err=$ac_c_preproc_warn_flag
2696 if test -z "$ac_cpp_err"; then
2697 # Broken: success on invalid input.
2700 echo "$as_me: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2702 # Passes both tests.
2706 rm -f conftest.err conftest.$ac_ext
2709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2710 rm -f conftest.err conftest.$ac_ext
2711 if $ac_preproc_ok; then
2714 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2715 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2716 { (exit 1); exit 1; }; }
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 # Create compiler version string
2728 if test x"$GCC" = x"yes" ; then
2729 cc_string="GCC `${CC} --version | sed q`"
2734 cat >>confdefs.h <<_ACEOF
2735 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2741 # Automatic dependency tracking
2745 # Check whether --enable-depend or --disable-depend was given.
2746 if test "${enable_depend+set}" = set; then
2747 enableval="$enable_depend"
2757 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2758 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2759 { (exit 1); exit 1; }; }
2772 # Enable assert checks
2776 # Check whether --enable-cassert or --disable-cassert was given.
2777 if test "${enable_cassert+set}" = set; then
2778 enableval="$enable_cassert"
2783 cat >>confdefs.h <<\_ACEOF
2784 #define USE_ASSERT_CHECKING 1
2792 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2793 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2794 { (exit 1); exit 1; }; }
2806 # Include directories
2810 # SRCH_INC comes from the template file
2811 for dir in $with_includes $SRCH_INC; do
2812 if test -d "$dir"; then
2813 INCLUDES="$INCLUDES -I$dir"
2815 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2816 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2824 # Library directories
2828 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2829 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2830 if test -d "$dir"; then
2831 LIBDIRS="$LIBDIRS -L$dir"
2833 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2834 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2843 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2844 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2848 # Check whether --with-tcl or --without-tcl was given.
2849 if test "${with_tcl+set}" = set; then
2860 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2861 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2862 { (exit 1); exit 1; }; }
2871 echo "$as_me:$LINENO: result: $with_tcl" >&5
2872 echo "${ECHO_T}$with_tcl" >&6
2875 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2876 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2877 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2878 if test "$with_tcl" = yes; then
2882 # Check whether --with-tk or --without-tk was given.
2883 if test "${with_tk+set}" = set; then
2894 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2895 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2896 { (exit 1); exit 1; }; }
2908 echo "$as_me:$LINENO: result: $with_tk" >&5
2909 echo "${ECHO_T}$with_tk" >&6
2913 # We see if the path to the Tcl/Tk configuration scripts is specified.
2914 # This will override the use of tclsh to find the paths to search.
2919 # Check whether --with-tclconfig or --without-tclconfig was given.
2920 if test "${with_tclconfig+set}" = set; then
2921 withval="$with_tclconfig"
2925 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2926 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2927 { (exit 1); exit 1; }; }
2930 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2931 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2932 { (exit 1); exit 1; }; }
2942 # We see if the path to the Tk configuration scripts is specified.
2943 # This will override the use of tclsh to find the paths to search.
2948 # Check whether --with-tkconfig or --without-tkconfig was given.
2949 if test "${with_tkconfig+set}" = set; then
2950 withval="$with_tkconfig"
2954 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2955 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2956 { (exit 1); exit 1; }; }
2959 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2960 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2961 { (exit 1); exit 1; }; }
2972 # Optionally build Perl modules (Pg.pm and PL/Perl)
2974 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2975 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2979 # Check whether --with-perl or --without-perl was given.
2980 if test "${with_perl+set}" = set; then
2981 withval="$with_perl"
2991 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2992 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2993 { (exit 1); exit 1; }; }
3002 echo "$as_me:$LINENO: result: $with_perl" >&5
3003 echo "${ECHO_T}$with_perl" >&6
3007 # Optionally build Python interface module
3009 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3010 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3014 # Check whether --with-python or --without-python was given.
3015 if test "${with_python+set}" = set; then
3016 withval="$with_python"
3026 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3027 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3028 { (exit 1); exit 1; }; }
3037 echo "$as_me:$LINENO: result: $with_python" >&5
3038 echo "${ECHO_T}$with_python" >&6
3042 # Optionally build the Java/JDBC tools
3044 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3045 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3049 # Check whether --with-java or --without-java was given.
3050 if test "${with_java+set}" = set; then
3051 withval="$with_java"
3055 echo "$as_me:$LINENO: result: yes" >&5
3056 echo "${ECHO_T}yes" >&6
3058 for ac_prog in jakarta-ant ant ant.sh ant.bat
3060 # Extract the first word of "$ac_prog", so it can be a program name with args.
3061 set dummy $ac_prog; ac_word=$2
3062 echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064 if test "${ac_cv_path_ANT+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test -n "$ANT"; then
3092 echo "$as_me:$LINENO: result: $ANT" >&5
3093 echo "${ECHO_T}$ANT" >&6
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3099 test -n "$ANT" && break
3103 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3104 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3105 if test "${pgac_cv_prog_ant_works+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 cat > conftest.java << EOF
3110 public class conftest {
3111 int testmethod(int a, int b) {
3117 cat > conftest.xml << EOF
3118 <project name="conftest" default="conftest">
3119 <target name="conftest">
3120 <javac srcdir="." includes="conftest.java">
3126 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3127 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3128 (eval $pgac_cmd) 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }
3133 if test $? = 0 && test -f ./conftest.class ; then
3134 pgac_cv_prog_ant_works=yes
3136 echo "configure: failed java program was:" >&5
3137 cat conftest.java >&5
3138 echo "configure: failed build file was:" >&5
3139 cat conftest.xml >&5
3140 pgac_cv_prog_ant_works=no
3143 rm -f conftest* core core.* *.core
3146 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3147 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3149 if test "$pgac_cv_prog_ant_works" != yes; then
3150 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3151 echo "$as_me: error: ant does not work" >&2;}
3152 { (exit 1); exit 1; }; }
3156 if test -z "$ANT"; then
3157 { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3158 echo "$as_me: error: Ant is required to build Java components" >&2;}
3159 { (exit 1); exit 1; }; }
3163 echo "$as_me:$LINENO: result: no" >&5
3164 echo "${ECHO_T}no" >&6
3167 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3168 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3169 { (exit 1); exit 1; }; }
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3185 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3186 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3190 # Check whether --with-krb4 or --without-krb4 was given.
3191 if test "${with_krb4+set}" = set; then
3192 withval="$with_krb4"
3196 krb4_prefix=/usr/athena
3203 krb4_prefix=$withval
3212 if test "$with_krb4" = yes; then
3214 echo "$as_me:$LINENO: result: yes" >&5
3215 echo "${ECHO_T}yes" >&6
3217 cat >>confdefs.h <<\_ACEOF
3222 if test -d "$krb4_prefix/include"; then
3223 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3225 if test -d "$krb4_prefix/lib"; then
3226 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3229 krb_srvtab="/etc/srvtab"
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3243 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3244 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3248 # Check whether --with-krb5 or --without-krb5 was given.
3249 if test "${with_krb5+set}" = set; then
3250 withval="$with_krb5"
3254 krb5_prefix=/usr/athena
3261 krb5_prefix=$withval
3270 if test "$with_krb5" = yes; then
3272 echo "$as_me:$LINENO: result: yes" >&5
3273 echo "${ECHO_T}yes" >&6
3275 cat >>confdefs.h <<\_ACEOF
3280 if test -d "$krb5_prefix/include"; then
3281 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3283 if test -d "$krb5_prefix/lib"; then
3284 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3287 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3290 echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3298 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3299 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3300 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3301 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3302 { (exit 1); exit 1; }; }
3309 # Kerberos configuration parameters
3314 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3315 if test "${with_krb_srvnam+set}" = set; then
3316 withval="$with_krb_srvnam"
3320 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3321 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3322 { (exit 1); exit 1; }; }
3325 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3326 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3327 { (exit 1); exit 1; }; }
3335 with_krb_srvnam="postgres"
3339 cat >>confdefs.h <<_ACEOF
3340 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3348 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3349 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3353 # Check whether --with-pam or --without-pam was given.
3354 if test "${with_pam+set}" = set; then
3360 cat >>confdefs.h <<\_ACEOF
3369 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3370 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3371 { (exit 1); exit 1; }; }
3380 echo "$as_me:$LINENO: result: $with_pam" >&5
3381 echo "${ECHO_T}$with_pam" >&6
3391 # Check whether --with-openssl or --without-openssl was given.
3392 if test "${with_openssl+set}" = set; then
3393 withval="$with_openssl"
3397 openssl_prefix=/usr/local/ssl
3404 openssl_prefix=$withval
3413 if test "$with_openssl" = yes; then
3415 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3416 echo "${ECHO_T}building with OpenSSL support" >&6
3418 cat >>confdefs.h <<\_ACEOF
3423 if test -d "${openssl_prefix}/include" ; then
3424 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3426 if test -d "${openssl_prefix}/lib" ; then
3427 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3442 # Check whether --with-readline or --without-readline was given.
3443 if test "${with_readline+set}" = set; then
3444 withval="$with_readline"
3454 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3455 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3456 { (exit 1); exit 1; }; }
3472 # Check whether --with-zlib or --without-zlib was given.
3473 if test "${with_zlib+set}" = set; then
3474 withval="$with_zlib"
3484 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3485 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3486 { (exit 1); exit 1; }; }
3499 # Optionally enable the building of the ODBC driver
3503 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3504 enable_odbc=$with_odbc
3507 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3508 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3511 # Check whether --enable-odbc or --disable-odbc was given.
3512 if test "${enable_odbc+set}" = set; then
3513 enableval="$enable_odbc"
3523 { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3524 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3525 { (exit 1); exit 1; }; }
3537 # Check whether --with-unixodbc or --without-unixodbc was given.
3538 if test "${with_unixodbc+set}" = set; then
3539 withval="$with_unixodbc"
3549 { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3550 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3551 { (exit 1); exit 1; }; }
3563 # Check whether --with-iodbc or --without-iodbc was given.
3564 if test "${with_iodbc+set}" = set; then
3565 withval="$with_iodbc"
3575 { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3576 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3577 { (exit 1); exit 1; }; }
3586 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3587 { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3588 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3589 { (exit 1); exit 1; }; }
3591 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3594 case $enable_odbc:$with_unixodbc:$with_iodbc in
3595 yes:no:no) echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3596 echo "${ECHO_T}yes (stand-alone)" >&6;;
3597 yes:yes:no) echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3598 echo "${ECHO_T}yes (unixODBC)" >&6
3600 cat >>confdefs.h <<\_ACEOF
3601 #define WITH_UNIXODBC 1
3605 yes:no:yes) echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3606 echo "${ECHO_T}yes (iODBC)" >&6
3608 cat >>confdefs.h <<\_ACEOF
3609 #define WITH_IODBC 1
3613 no:*) echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6;;
3621 # Allow for overriding the default location of the odbcinst.ini
3622 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3626 # Check whether --with-odbcinst or --without-odbcinst was given.
3627 if test "${with_odbcinst+set}" = set; then
3628 withval="$with_odbcinst"
3632 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3633 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3634 { (exit 1); exit 1; }; }
3637 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3638 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3639 { (exit 1); exit 1; }; }
3642 odbcinst_ini_dir=$withval
3647 odbcinst_ini_dir="\${sysconfdir}"
3654 # Assume system is ELF if it predefines __ELF__ as 1,
3655 # otherwise believe host_os based default.
3657 freebsd1*|freebsd2*) elf=no;;
3658 freebsd3*|freebsd4*) elf=yes;;
3662 cat >conftest.$ac_ext <<_ACEOF
3663 #line $LINENO "configure"
3664 #include "confdefs.h"
3670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3671 egrep "yes" >/dev/null 2>&1; then
3674 if test "X$elf" = "Xyes" ; then
3687 # Optionally build C++ code (i.e., libpq++)
3689 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3690 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3694 # Check whether --with-CXX or --without-CXX was given.
3695 if test "${with_CXX+set}" = set; then
3716 if test "$with_CXX" = yes; then
3718 echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6
3721 # If the user has specified CXXFLAGS in the environment, leave it
3722 # alone, else use a default.
3725 ac_cpp='$CXXCPP $CPPFLAGS'
3726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3729 if test -n "$ac_tool_prefix"; then
3730 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3734 echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_prog_CXX+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 if test -n "$CXX"; then
3740 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 if test -n "$CXX"; then
3760 echo "$as_me:$LINENO: result: $CXX" >&5
3761 echo "${ECHO_T}$CXX" >&6
3763 echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3767 test -n "$CXX" && break
3770 if test -z "$CXX"; then
3772 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3774 # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3778 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 if test -n "$ac_ct_CXX"; then
3782 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791 ac_cv_prog_ac_ct_CXX="$ac_prog"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3801 if test -n "$ac_ct_CXX"; then
3802 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3803 echo "${ECHO_T}$ac_ct_CXX" >&6
3805 echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3809 test -n "$ac_ct_CXX" && break
3811 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3817 # Provide some information about the compiler.
3818 echo "$as_me:$LINENO:" \
3819 "checking for C++ compiler version" >&5
3820 ac_compiler=`set X $ac_compile; echo $2`
3821 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3822 (eval $ac_compiler --version </dev/null >&5) 2>&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }
3826 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3827 (eval $ac_compiler -v </dev/null >&5) 2>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }
3831 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3832 (eval $ac_compiler -V </dev/null >&5) 2>&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }
3837 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3838 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3839 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3844 #include "confdefs.h"
3846 #ifdef F77_DUMMY_MAIN
3850 int F77_DUMMY_MAIN() { return 1; }
3863 rm -f conftest.$ac_objext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865 (eval $ac_compile) 2>&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -s conftest.$ac_objext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3877 echo "$as_me: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3881 rm -f conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3885 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3886 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3887 GXX=`test $ac_compiler_gnu = yes && echo yes`
3888 ac_test_CXXFLAGS=${CXXFLAGS+set}
3889 ac_save_CXXFLAGS=$CXXFLAGS
3891 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3892 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3893 if test "${ac_cv_prog_cxx_g+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 cat >conftest.$ac_ext <<_ACEOF
3897 #line $LINENO "configure"
3898 #include "confdefs.h"
3900 #ifdef F77_DUMMY_MAIN
3904 int F77_DUMMY_MAIN() { return 1; }
3914 rm -f conftest.$ac_objext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916 (eval $ac_compile) 2>&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -s conftest.$ac_objext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 ac_cv_prog_cxx_g=yes
3928 echo "$as_me: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3932 rm -f conftest.$ac_objext conftest.$ac_ext
3934 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3935 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3936 if test "$ac_test_CXXFLAGS" = set; then
3937 CXXFLAGS=$ac_save_CXXFLAGS
3938 elif test $ac_cv_prog_cxx_g = yes; then
3939 if test "$GXX" = yes; then
3945 if test "$GXX" = yes; then
3951 for ac_declaration in \
3953 '#include <stdlib.h>' \
3954 'extern "C" void std::exit (int) throw (); using std::exit;' \
3955 'extern "C" void std::exit (int); using std::exit;' \
3956 'extern "C" void exit (int) throw ();' \
3957 'extern "C" void exit (int);' \
3960 cat >conftest.$ac_ext <<_ACEOF
3961 #line $LINENO "configure"
3962 #include "confdefs.h"
3965 #ifdef F77_DUMMY_MAIN
3969 int F77_DUMMY_MAIN() { return 1; }
3979 rm -f conftest.$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -s conftest.$ac_objext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3993 echo "$as_me: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3997 rm -f conftest.$ac_objext conftest.$ac_ext
3998 cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4000 #include "confdefs.h"
4002 #ifdef F77_DUMMY_MAIN
4006 int F77_DUMMY_MAIN() { return 1; }
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4030 echo "$as_me: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4033 rm -f conftest.$ac_objext conftest.$ac_ext
4036 if test -n "$ac_declaration"; then
4037 echo '#ifdef __cplusplus' >>confdefs.h
4038 echo $ac_declaration >>confdefs.h
4039 echo '#endif' >>confdefs.h
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048 if test "$ac_env_CXXFLAGS" != set; then
4049 if test "$GXX" = yes; then
4050 CXXFLAGS="$GCC_CXXFLAGS"
4052 CXXFLAGS="$VENDOR_CXXFLAGS"
4055 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4056 CXXFLAGS="$CXXFLAGS -g"
4058 { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4059 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4062 ac_cpp='$CXXCPP $CPPFLAGS'
4063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4066 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4067 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4068 if test -z "$CXXCPP"; then
4069 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 # Double quotes because CXXCPP needs to be expanded
4073 for CXXCPP in "$CXX -E" "/lib/cpp"
4076 for ac_cxx_preproc_warn_flag in '' yes
4078 # Use a header file that comes with gcc, so configuring glibc
4079 # with a fresh cross-compiler works.
4080 # On the NeXT, cc -E runs the code through the compiler's parser,
4081 # not just through cpp. "Syntax error" is here to catch this case.
4082 cat >conftest.$ac_ext <<_ACEOF
4083 #line $LINENO "configure"
4084 #include "confdefs.h"
4088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4091 egrep -v '^ *\+' conftest.er1 >conftest.err
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } >/dev/null; then
4096 if test -s conftest.err; then
4097 ac_cpp_err=$ac_cxx_preproc_warn_flag
4104 if test -z "$ac_cpp_err"; then
4107 echo "$as_me: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4109 # Broken: fails on valid input.
4112 rm -f conftest.err conftest.$ac_ext
4114 # OK, works on sane cases. Now check whether non-existent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 #line $LINENO "configure"
4118 #include "confdefs.h"
4119 #include <ac_nonexistent.h>
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4124 egrep -v '^ *\+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } >/dev/null; then
4129 if test -s conftest.err; then
4130 ac_cpp_err=$ac_cxx_preproc_warn_flag
4137 if test -z "$ac_cpp_err"; then
4138 # Broken: success on invalid input.
4141 echo "$as_me: failed program was:" >&5
4142 cat conftest.$ac_ext >&5
4143 # Passes both tests.
4147 rm -f conftest.err conftest.$ac_ext
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then
4157 ac_cv_prog_CXXCPP=$CXXCPP
4160 CXXCPP=$ac_cv_prog_CXXCPP
4162 ac_cv_prog_CXXCPP=$CXXCPP
4164 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4165 echo "${ECHO_T}$CXXCPP" >&6
4167 for ac_cxx_preproc_warn_flag in '' yes
4169 # Use a header file that comes with gcc, so configuring glibc
4170 # with a fresh cross-compiler works.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
4173 cat >conftest.$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 #include "confdefs.h"
4179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4182 egrep -v '^ *\+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev/null; then
4187 if test -s conftest.err; then
4188 ac_cpp_err=$ac_cxx_preproc_warn_flag
4195 if test -z "$ac_cpp_err"; then
4198 echo "$as_me: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4200 # Broken: fails on valid input.
4203 rm -f conftest.err conftest.$ac_ext
4205 # OK, works on sane cases. Now check whether non-existent headers
4206 # can be detected and how.
4207 cat >conftest.$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4209 #include "confdefs.h"
4210 #include <ac_nonexistent.h>
4212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4215 egrep -v '^ *\+' conftest.er1 >conftest.err
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } >/dev/null; then
4220 if test -s conftest.err; then
4221 ac_cpp_err=$ac_cxx_preproc_warn_flag
4228 if test -z "$ac_cpp_err"; then
4229 # Broken: success on invalid input.
4232 echo "$as_me: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 # Passes both tests.
4238 rm -f conftest.err conftest.$ac_ext
4241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242 rm -f conftest.err conftest.$ac_ext
4243 if $ac_preproc_ok; then
4246 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4247 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4248 { (exit 1); exit 1; }; }
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4266 CPPFLAGS="$CPPFLAGS $INCLUDES"
4267 LDFLAGS="$LDFLAGS $LIBDIRS"
4269 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4270 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4271 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4272 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4275 for ac_prog in gawk mawk nawk awk
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_AWK+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 if test -n "$AWK"; then
4285 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_AWK="$ac_prog"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 if test -n "$AWK"; then
4305 echo "$as_me:$LINENO: result: $AWK" >&5
4306 echo "${ECHO_T}$AWK" >&6
4308 echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4312 test -n "$AWK" && break
4315 echo "$as_me:$LINENO: checking for flex" >&5
4316 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4317 if test "${pgac_cv_path_flex+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 # Let the user override the test
4321 if test -n "$FLEX"; then
4322 pgac_cv_path_flex=$FLEX
4326 for pgac_dir in $PATH; do
4327 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4330 for pgac_prog in flex lex; do
4331 pgac_candidate="$pgac_dir/$pgac_prog"
4332 if test -f "$pgac_candidate" \
4333 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4335 echo '%%' > conftest.l
4336 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4337 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4338 pgac_broken_flex=$pgac_candidate
4342 pgac_cv_path_flex=$pgac_candidate
4350 : ${pgac_cv_path_flex=no}
4354 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4355 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4356 if test x"$pgac_cv_path_flex" = x"no"; then
4357 if test -n "$pgac_broken_flex"; then
4358 { echo "$as_me:$LINENO: WARNING:
4359 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4360 *** should get version 2.5.4 or later." >&5
4361 echo "$as_me: WARNING:
4362 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4363 *** should get version 2.5.4 or later." >&2;}
4366 { echo "$as_me:$LINENO: WARNING:
4367 *** Without Flex you will not be able to build PostgreSQL from CVS or
4368 *** change any of the scanner definition files. You can obtain Flex from
4369 *** a GNU mirror site. (If you are using the official distribution of
4370 *** PostgreSQL then you do not need to worry about this because the Flex
4371 *** output is pre-generated.)" >&5
4372 echo "$as_me: WARNING:
4373 *** Without Flex you will not be able to build PostgreSQL from CVS or
4374 *** change any of the scanner definition files. You can obtain Flex from
4375 *** a GNU mirror site. (If you are using the official distribution of
4376 *** PostgreSQL then you do not need to worry about this because the Flex
4377 *** output is pre-generated.)" >&2;}
4380 if test x"$pgac_cv_path_flex" = x"no"; then
4383 FLEX=$pgac_cv_path_flex
4389 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4390 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4392 if test "$LN_S" = "ln -s"; then
4393 echo "$as_me:$LINENO: result: yes" >&5
4394 echo "${ECHO_T}yes" >&6
4396 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4397 echo "${ECHO_T}no, using $LN_S" >&6
4401 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4402 if test "${with_gnu_ld+set}" = set; then
4403 withval="$with_gnu_ld"
4404 test "$withval" = no || with_gnu_ld=yes
4409 if test "$GCC" = yes; then
4410 # Check if gcc -print-prog-name=ld gives a path.
4411 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4412 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4415 # gcc leaves a trailing carriage return which upsets mingw
4416 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4418 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4421 # Accept absolute paths.
4422 [\\/]* | [A-Za-z]:[\\/]*)
4423 re_direlt='/[^/][^/]*/\.\./'
4424 # Canonicalize the path of ld
4425 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4426 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4427 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4429 test -z "$LD" && LD="$ac_prog"
4432 # If it fails, then pretend we aren't using GCC.
4436 # If it is relative, then search for the first ld in PATH.
4440 elif test "$with_gnu_ld" = yes; then
4441 echo "$as_me:$LINENO: checking for GNU ld" >&5
4442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4444 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4447 if test "${ac_cv_path_LD+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 if test -z "$LD"; then
4451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4452 for ac_dir in $PATH; do
4453 test -z "$ac_dir" && ac_dir=.
4454 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4455 ac_cv_path_LD="$ac_dir/$ac_prog"
4456 # Check to see if the program is GNU ld. I'd rather use --version,
4457 # but apparently some GNU ld's only accept -v.
4458 # Break only if it was the GNU/non-GNU ld that we prefer.
4459 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4460 test "$with_gnu_ld" != no && break
4462 test "$with_gnu_ld" != yes && break
4468 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4473 if test -n "$LD"; then
4474 echo "$as_me:$LINENO: result: $LD" >&5
4475 echo "${ECHO_T}$LD" >&6
4477 echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4480 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4481 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4482 { (exit 1); exit 1; }; }
4483 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4484 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4485 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4489 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4490 ac_cv_prog_gnu_ld=yes
4492 ac_cv_prog_gnu_ld=no
4495 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4496 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4497 with_gnu_ld=$ac_cv_prog_gnu_ld
4502 case $host_os in sysv5*)
4503 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4504 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4505 if test "${pgac_cv_prog_ld_R+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4510 cat >conftest.$ac_ext <<_ACEOF
4511 #line $LINENO "configure"
4512 #include "confdefs.h"
4514 #ifdef F77_DUMMY_MAIN
4518 int F77_DUMMY_MAIN() { return 1; }
4528 rm -f conftest.$ac_objext conftest$ac_exeext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530 (eval $ac_link) 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -s conftest$ac_exeext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 pgac_cv_prog_ld_R=yes
4542 echo "$as_me: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4544 pgac_cv_prog_ld_R=no
4546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4547 LDFLAGS=$pgac_save_LDFLAGS
4550 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4551 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4552 ld_R_works=$pgac_cv_prog_ld_R
4555 if test -n "$ac_tool_prefix"; then
4556 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_RANLIB+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 if test -n "$RANLIB"; then
4564 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 RANLIB=$ac_cv_prog_RANLIB
4583 if test -n "$RANLIB"; then
4584 echo "$as_me:$LINENO: result: $RANLIB" >&5
4585 echo "${ECHO_T}$RANLIB" >&6
4587 echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4592 if test -z "$ac_cv_prog_RANLIB"; then
4593 ac_ct_RANLIB=$RANLIB
4594 # Extract the first word of "ranlib", so it can be a program name with args.
4595 set dummy ranlib; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 if test -n "$ac_ct_RANLIB"; then
4602 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_ac_ct_RANLIB="ranlib"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4622 if test -n "$ac_ct_RANLIB"; then
4623 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4624 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4626 echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4630 RANLIB=$ac_ct_RANLIB
4632 RANLIB="$ac_cv_prog_RANLIB"
4635 for ac_prog in lorder
4637 # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641 if test "${ac_cv_prog_LORDER+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 if test -n "$LORDER"; then
4645 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_LORDER="$ac_prog"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 LORDER=$ac_cv_prog_LORDER
4664 if test -n "$LORDER"; then
4665 echo "$as_me:$LINENO: result: $LORDER" >&5
4666 echo "${ECHO_T}$LORDER" >&6
4668 echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4672 test -n "$LORDER" && break
4675 # Extract the first word of "tar", so it can be a program name with args.
4676 set dummy tar; ac_word=$2
4677 echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4679 if test "${ac_cv_path_TAR+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 if test -n "$TAR"; then
4707 echo "$as_me:$LINENO: result: $TAR" >&5
4708 echo "${ECHO_T}$TAR" >&6
4710 echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}strip; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_STRIP+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 if test -n "$STRIP"; then
4724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 STRIP=$ac_cv_prog_STRIP
4743 if test -n "$STRIP"; then
4744 echo "$as_me:$LINENO: result: $STRIP" >&5
4745 echo "${ECHO_T}$STRIP" >&6
4747 echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4752 if test -z "$ac_cv_prog_STRIP"; then
4754 # Extract the first word of "strip", so it can be a program name with args.
4755 set dummy strip; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 if test -n "$ac_ct_STRIP"; then
4762 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_ac_ct_STRIP="strip"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4782 if test -n "$ac_ct_STRIP"; then
4783 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4784 echo "${ECHO_T}$ac_ct_STRIP" >&6
4786 echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4792 STRIP="$ac_cv_prog_STRIP"
4796 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4797 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4798 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4799 STRIP_STATIC_LIB="$STRIP -x"
4800 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4801 echo "$as_me:$LINENO: result: yes" >&5
4802 echo "${ECHO_T}yes" >&6
4806 echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6
4813 for ac_prog in 'bison -y'
4815 # Extract the first word of "$ac_prog", so it can be a program name with args.
4816 set dummy $ac_prog; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_YACC+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$YACC"; then
4823 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_YACC="$ac_prog"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 YACC=$ac_cv_prog_YACC
4842 if test -n "$YACC"; then
4843 echo "$as_me:$LINENO: result: $YACC" >&5
4844 echo "${ECHO_T}$YACC" >&6
4846 echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4850 test -n "$YACC" && break
4853 if test -z "$YACC"; then
4854 { echo "$as_me:$LINENO: WARNING:
4855 *** Without Bison you will not be able to build PostgreSQL from CVS or
4856 *** change any of the parser definition files. You can obtain Bison from
4857 *** a GNU mirror site. (If you are using the official distribution of
4858 *** PostgreSQL then you do not need to worry about this because the Bison
4859 *** output is pre-generated.) To use a different yacc program (possible,
4860 *** but not recommended), set the environment variable YACC before running
4861 *** 'configure'." >&5
4862 echo "$as_me: WARNING:
4863 *** Without Bison you will not be able to build PostgreSQL from CVS or
4864 *** change any of the parser definition files. You can obtain Bison from
4865 *** a GNU mirror site. (If you are using the official distribution of
4866 *** PostgreSQL then you do not need to worry about this because the Bison
4867 *** output is pre-generated.) To use a different yacc program (possible,
4868 *** but not recommended), set the environment variable YACC before running
4869 *** 'configure'." >&2;}
4873 if test "$with_tk" = yes; then
4874 # Extract the first word of "wish", so it can be a program name with args.
4875 set dummy wish; ac_word=$2
4876 echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_path_WISH+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 WISH=$ac_cv_path_WISH
4905 if test -n "$WISH"; then
4906 echo "$as_me:$LINENO: result: $WISH" >&5
4907 echo "${ECHO_T}$WISH" >&6
4909 echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4913 test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4914 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4915 { (exit 1); exit 1; }; }
4918 # Extract the first word of "perl", so it can be a program name with args.
4919 set dummy perl; ac_word=$2
4920 echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922 if test "${ac_cv_path_PERL+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 PERL=$ac_cv_path_PERL
4949 if test -n "$PERL"; then
4950 echo "$as_me:$LINENO: result: $PERL" >&5
4951 echo "${ECHO_T}$PERL" >&6
4953 echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4957 if test "$with_perl" = yes; then
4959 echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
4960 echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
4961 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4962 echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
4963 echo "${ECHO_T}$perl_installsitearch" >&6
4964 echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
4965 echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
4966 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4967 echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
4968 echo "${ECHO_T}$perl_installman3dir" >&6
4969 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4970 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4971 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4972 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4973 echo "${ECHO_T}$perl_archlibexp" >&6
4974 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4975 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4976 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4977 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4978 echo "${ECHO_T}$perl_privlibexp" >&6
4979 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4980 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4981 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4982 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4983 echo "${ECHO_T}$perl_useshrplib" >&6
4984 echo "$as_me:$LINENO: checking for Perl man3ext" >&5
4985 echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
4986 perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
4987 echo "$as_me:$LINENO: result: $perl_man3ext" >&5
4988 echo "${ECHO_T}$perl_man3ext" >&6
4990 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4991 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4992 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4993 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4994 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4995 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4996 echo "${ECHO_T}$perl_embed_ldflags" >&6
4999 if test "$with_python" = yes; then
5000 # Extract the first word of "python", so it can be a program name with args.
5001 set dummy python; ac_word=$2
5002 echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004 if test "${ac_cv_path_PYTHON+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 PYTHON=$ac_cv_path_PYTHON
5031 if test -n "$PYTHON"; then
5032 echo "$as_me:$LINENO: result: $PYTHON" >&5
5033 echo "${ECHO_T}$PYTHON" >&6
5035 echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5039 if test x"$PYTHON" = x""; then
5040 { { echo "$as_me:$LINENO: error: Python not found" >&5
5041 echo "$as_me: error: Python not found" >&2;}
5042 { (exit 1); exit 1; }; }
5046 echo "$as_me:$LINENO: checking Python installation directories" >&5
5047 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5048 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5049 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5050 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5051 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5052 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5053 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5054 python_includespec="-I${python_prefix}/include/python${python_version}"
5055 if test "$python_prefix" != "$python_execprefix"; then
5056 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5059 # This should be enough of a message.
5060 if test "$python_prefix" != "$python_execprefix"; then
5061 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5062 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5064 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5065 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5072 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5073 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5075 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5076 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5077 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5078 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5079 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5081 pgac_tab=" " # tab character
5082 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"`
5084 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5085 echo "${ECHO_T}${python_libspec}" >&6
5095 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5098 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5099 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5100 if test "${ac_cv_lib_bsd_main+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 ac_check_lib_save_LIBS=$LIBS
5105 cat >conftest.$ac_ext <<_ACEOF
5106 #line $LINENO "configure"
5107 #include "confdefs.h"
5110 #ifdef F77_DUMMY_MAIN
5114 int F77_DUMMY_MAIN() { return 1; }
5124 rm -f conftest.$ac_objext conftest$ac_exeext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126 (eval $ac_link) 2>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try='test -s conftest$ac_exeext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 ac_cv_lib_bsd_main=yes
5138 echo "$as_me: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 ac_cv_lib_bsd_main=no
5142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5143 LIBS=$ac_check_lib_save_LIBS
5145 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5146 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5147 if test $ac_cv_lib_bsd_main = yes; then
5148 cat >>confdefs.h <<_ACEOF
5149 #define HAVE_LIBBSD 1
5158 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5159 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5160 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 ac_check_lib_save_LIBS=$LIBS
5165 cat >conftest.$ac_ext <<_ACEOF
5166 #line $LINENO "configure"
5167 #include "confdefs.h"
5169 /* Override any gcc2 internal prototype to avoid an error. */
5173 /* We use char because int might match the return type of a gcc2
5174 builtin and then its argument prototype would still apply. */
5175 char setproctitle ();
5176 #ifdef F77_DUMMY_MAIN
5180 int F77_DUMMY_MAIN() { return 1; }
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192 (eval $ac_link) 2>&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -s conftest$ac_exeext'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5202 ac_cv_lib_util_setproctitle=yes
5204 echo "$as_me: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5206 ac_cv_lib_util_setproctitle=no
5208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5209 LIBS=$ac_check_lib_save_LIBS
5211 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5212 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5213 if test $ac_cv_lib_util_setproctitle = yes; then
5214 cat >>confdefs.h <<_ACEOF
5215 #define HAVE_LIBUTIL 1
5223 echo "$as_me:$LINENO: checking for main in -lm" >&5
5224 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5225 if test "${ac_cv_lib_m_main+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 ac_check_lib_save_LIBS=$LIBS
5230 cat >conftest.$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5232 #include "confdefs.h"
5235 #ifdef F77_DUMMY_MAIN
5239 int F77_DUMMY_MAIN() { return 1; }
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5251 (eval $ac_link) 2>&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -s conftest$ac_exeext'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 ac_cv_lib_m_main=yes
5263 echo "$as_me: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 LIBS=$ac_check_lib_save_LIBS
5270 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5271 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5272 if test $ac_cv_lib_m_main = yes; then
5273 cat >>confdefs.h <<_ACEOF
5282 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5283 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5284 if test "${ac_cv_lib_dl_main+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 ac_check_lib_save_LIBS=$LIBS
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line $LINENO "configure"
5291 #include "confdefs.h"
5294 #ifdef F77_DUMMY_MAIN
5298 int F77_DUMMY_MAIN() { return 1; }
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest$ac_exeext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_lib_dl_main=yes
5322 echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5324 ac_cv_lib_dl_main=no
5326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5330 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5331 if test $ac_cv_lib_dl_main = yes; then
5332 cat >>confdefs.h <<_ACEOF
5333 #define HAVE_LIBDL 1
5341 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5342 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5343 if test "${ac_cv_lib_nsl_main+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 ac_check_lib_save_LIBS=$LIBS
5348 cat >conftest.$ac_ext <<_ACEOF
5349 #line $LINENO "configure"
5350 #include "confdefs.h"
5353 #ifdef F77_DUMMY_MAIN
5357 int F77_DUMMY_MAIN() { return 1; }
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369 (eval $ac_link) 2>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -s conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_lib_nsl_main=yes
5381 echo "$as_me: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 ac_cv_lib_nsl_main=no
5385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5386 LIBS=$ac_check_lib_save_LIBS
5388 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5389 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5390 if test $ac_cv_lib_nsl_main = yes; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define HAVE_LIBNSL 1
5400 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5401 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5402 if test "${ac_cv_lib_socket_main+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 ac_check_lib_save_LIBS=$LIBS
5406 LIBS="-lsocket $LIBS"
5407 cat >conftest.$ac_ext <<_ACEOF
5408 #line $LINENO "configure"
5409 #include "confdefs.h"
5412 #ifdef F77_DUMMY_MAIN
5416 int F77_DUMMY_MAIN() { return 1; }
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428 (eval $ac_link) 2>&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -s conftest$ac_exeext'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 ac_cv_lib_socket_main=yes
5440 echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_cv_lib_socket_main=no
5444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5445 LIBS=$ac_check_lib_save_LIBS
5447 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5448 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5449 if test $ac_cv_lib_socket_main = yes; then
5450 cat >>confdefs.h <<_ACEOF
5451 #define HAVE_LIBSOCKET 1
5454 LIBS="-lsocket $LIBS"
5459 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5460 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5461 if test "${ac_cv_lib_ipc_main+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 ac_check_lib_save_LIBS=$LIBS
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 #include "confdefs.h"
5471 #ifdef F77_DUMMY_MAIN
5475 int F77_DUMMY_MAIN() { return 1; }
5485 rm -f conftest.$ac_objext conftest$ac_exeext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487 (eval $ac_link) 2>&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try='test -s conftest$ac_exeext'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5497 ac_cv_lib_ipc_main=yes
5499 echo "$as_me: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5501 ac_cv_lib_ipc_main=no
5503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5504 LIBS=$ac_check_lib_save_LIBS
5506 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5507 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5508 if test $ac_cv_lib_ipc_main = yes; then
5509 cat >>confdefs.h <<_ACEOF
5510 #define HAVE_LIBIPC 1
5518 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5519 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5520 if test "${ac_cv_lib_IPC_main+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 ac_check_lib_save_LIBS=$LIBS
5525 cat >conftest.$ac_ext <<_ACEOF
5526 #line $LINENO "configure"
5527 #include "confdefs.h"
5530 #ifdef F77_DUMMY_MAIN
5534 int F77_DUMMY_MAIN() { return 1; }
5544 rm -f conftest.$ac_objext conftest$ac_exeext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5546 (eval $ac_link) 2>&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -s conftest$ac_exeext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_lib_IPC_main=yes
5558 echo "$as_me: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5560 ac_cv_lib_IPC_main=no
5562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_check_lib_save_LIBS
5565 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5566 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5567 if test $ac_cv_lib_IPC_main = yes; then
5568 cat >>confdefs.h <<_ACEOF
5569 #define HAVE_LIBIPC 1
5577 echo "$as_me:$LINENO: checking for main in -llc" >&5
5578 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5579 if test "${ac_cv_lib_lc_main+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 ac_check_lib_save_LIBS=$LIBS
5584 cat >conftest.$ac_ext <<_ACEOF
5585 #line $LINENO "configure"
5586 #include "confdefs.h"
5589 #ifdef F77_DUMMY_MAIN
5593 int F77_DUMMY_MAIN() { return 1; }
5603 rm -f conftest.$ac_objext conftest$ac_exeext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605 (eval $ac_link) 2>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -s conftest$ac_exeext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_lib_lc_main=yes
5617 echo "$as_me: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 ac_cv_lib_lc_main=no
5621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5622 LIBS=$ac_check_lib_save_LIBS
5624 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5625 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5626 if test $ac_cv_lib_lc_main = yes; then
5627 cat >>confdefs.h <<_ACEOF
5628 #define HAVE_LIBLC 1
5636 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5637 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5638 if test "${ac_cv_lib_dld_main+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 ac_check_lib_save_LIBS=$LIBS
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5645 #include "confdefs.h"
5648 #ifdef F77_DUMMY_MAIN
5652 int F77_DUMMY_MAIN() { return 1; }
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664 (eval $ac_link) 2>&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try='test -s conftest$ac_exeext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_lib_dld_main=yes
5676 echo "$as_me: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 ac_cv_lib_dld_main=no
5680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5681 LIBS=$ac_check_lib_save_LIBS
5683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5684 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5685 if test $ac_cv_lib_dld_main = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687 #define HAVE_LIBDLD 1
5695 echo "$as_me:$LINENO: checking for main in -lld" >&5
5696 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5697 if test "${ac_cv_lib_ld_main+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 ac_check_lib_save_LIBS=$LIBS
5702 cat >conftest.$ac_ext <<_ACEOF
5703 #line $LINENO "configure"
5704 #include "confdefs.h"
5707 #ifdef F77_DUMMY_MAIN
5711 int F77_DUMMY_MAIN() { return 1; }
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try='test -s conftest$ac_exeext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_lib_ld_main=yes
5735 echo "$as_me: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 ac_cv_lib_ld_main=no
5739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5740 LIBS=$ac_check_lib_save_LIBS
5742 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5743 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5744 if test $ac_cv_lib_ld_main = yes; then
5745 cat >>confdefs.h <<_ACEOF
5746 #define HAVE_LIBLD 1
5754 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5755 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5756 if test "${ac_cv_lib_compat_main+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 ac_check_lib_save_LIBS=$LIBS
5760 LIBS="-lcompat $LIBS"
5761 cat >conftest.$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5763 #include "confdefs.h"
5766 #ifdef F77_DUMMY_MAIN
5770 int F77_DUMMY_MAIN() { return 1; }
5780 rm -f conftest.$ac_objext conftest$ac_exeext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782 (eval $ac_link) 2>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -s conftest$ac_exeext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 ac_cv_lib_compat_main=yes
5794 echo "$as_me: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5796 ac_cv_lib_compat_main=no
5798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5799 LIBS=$ac_check_lib_save_LIBS
5801 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5802 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5803 if test $ac_cv_lib_compat_main = yes; then
5804 cat >>confdefs.h <<_ACEOF
5805 #define HAVE_LIBCOMPAT 1
5808 LIBS="-lcompat $LIBS"
5813 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5814 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5815 if test "${ac_cv_lib_BSD_main+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 ac_check_lib_save_LIBS=$LIBS
5820 cat >conftest.$ac_ext <<_ACEOF
5821 #line $LINENO "configure"
5822 #include "confdefs.h"
5825 #ifdef F77_DUMMY_MAIN
5829 int F77_DUMMY_MAIN() { return 1; }
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841 (eval $ac_link) 2>&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -s conftest$ac_exeext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_lib_BSD_main=yes
5853 echo "$as_me: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5855 ac_cv_lib_BSD_main=no
5857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5858 LIBS=$ac_check_lib_save_LIBS
5860 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5861 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5862 if test $ac_cv_lib_BSD_main = yes; then
5863 cat >>confdefs.h <<_ACEOF
5864 #define HAVE_LIBBSD 1
5872 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5873 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5874 if test "${ac_cv_lib_gen_main+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 ac_check_lib_save_LIBS=$LIBS
5879 cat >conftest.$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5881 #include "confdefs.h"
5884 #ifdef F77_DUMMY_MAIN
5888 int F77_DUMMY_MAIN() { return 1; }
5898 rm -f conftest.$ac_objext conftest$ac_exeext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900 (eval $ac_link) 2>&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -s conftest$ac_exeext'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5910 ac_cv_lib_gen_main=yes
5912 echo "$as_me: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5914 ac_cv_lib_gen_main=no
5916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5917 LIBS=$ac_check_lib_save_LIBS
5919 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5920 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5921 if test $ac_cv_lib_gen_main = yes; then
5922 cat >>confdefs.h <<_ACEOF
5923 #define HAVE_LIBGEN 1
5931 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5932 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5933 if test "${ac_cv_lib_PW_main+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 ac_check_lib_save_LIBS=$LIBS
5938 cat >conftest.$ac_ext <<_ACEOF
5939 #line $LINENO "configure"
5940 #include "confdefs.h"
5943 #ifdef F77_DUMMY_MAIN
5947 int F77_DUMMY_MAIN() { return 1; }
5957 rm -f conftest.$ac_objext conftest$ac_exeext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959 (eval $ac_link) 2>&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try='test -s conftest$ac_exeext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_cv_lib_PW_main=yes
5971 echo "$as_me: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5973 ac_cv_lib_PW_main=no
5975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5976 LIBS=$ac_check_lib_save_LIBS
5978 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5979 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5980 if test $ac_cv_lib_PW_main = yes; then
5981 cat >>confdefs.h <<_ACEOF
5982 #define HAVE_LIBPW 1
5990 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5991 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5992 if test "${ac_cv_lib_resolv_main+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 ac_check_lib_save_LIBS=$LIBS
5996 LIBS="-lresolv $LIBS"
5997 cat >conftest.$ac_ext <<_ACEOF
5998 #line $LINENO "configure"
5999 #include "confdefs.h"
6002 #ifdef F77_DUMMY_MAIN
6006 int F77_DUMMY_MAIN() { return 1; }
6016 rm -f conftest.$ac_objext conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -s conftest$ac_exeext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 ac_cv_lib_resolv_main=yes
6030 echo "$as_me: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6032 ac_cv_lib_resolv_main=no
6034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6035 LIBS=$ac_check_lib_save_LIBS
6037 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6038 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6039 if test $ac_cv_lib_resolv_main = yes; then
6040 cat >>confdefs.h <<_ACEOF
6041 #define HAVE_LIBRESOLV 1
6044 LIBS="-lresolv $LIBS"
6049 echo "$as_me:$LINENO: checking for main in -lgetopt" >&5
6050 echo $ECHO_N "checking for main in -lgetopt... $ECHO_C" >&6
6051 if test "${ac_cv_lib_getopt_main+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 ac_check_lib_save_LIBS=$LIBS
6055 LIBS="-lgetopt $LIBS"
6056 cat >conftest.$ac_ext <<_ACEOF
6057 #line $LINENO "configure"
6058 #include "confdefs.h"
6061 #ifdef F77_DUMMY_MAIN
6065 int F77_DUMMY_MAIN() { return 1; }
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -s conftest$ac_exeext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_lib_getopt_main=yes
6089 echo "$as_me: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6091 ac_cv_lib_getopt_main=no
6093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6094 LIBS=$ac_check_lib_save_LIBS
6096 echo "$as_me:$LINENO: result: $ac_cv_lib_getopt_main" >&5
6097 echo "${ECHO_T}$ac_cv_lib_getopt_main" >&6
6098 if test $ac_cv_lib_getopt_main = yes; then
6099 cat >>confdefs.h <<_ACEOF
6100 #define HAVE_LIBGETOPT 1
6103 LIBS="-lgetopt $LIBS"
6109 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6110 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6111 if test "${ac_cv_lib_unix_main+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 ac_check_lib_save_LIBS=$LIBS
6116 cat >conftest.$ac_ext <<_ACEOF
6117 #line $LINENO "configure"
6118 #include "confdefs.h"
6121 #ifdef F77_DUMMY_MAIN
6125 int F77_DUMMY_MAIN() { return 1; }
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137 (eval $ac_link) 2>&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -s conftest$ac_exeext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_cv_lib_unix_main=yes
6149 echo "$as_me: failed program was:" >&5
6150 cat conftest.$ac_ext >&5
6151 ac_cv_lib_unix_main=no
6153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6154 LIBS=$ac_check_lib_save_LIBS
6156 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6157 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6158 if test $ac_cv_lib_unix_main = yes; then
6159 cat >>confdefs.h <<_ACEOF
6160 #define HAVE_LIBUNIX 1
6167 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6168 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6169 if test "${ac_cv_search_crypt+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 ac_func_search_save_LIBS=$LIBS
6173 ac_cv_search_crypt=no
6174 cat >conftest.$ac_ext <<_ACEOF
6175 #line $LINENO "configure"
6176 #include "confdefs.h"
6178 /* Override any gcc2 internal prototype to avoid an error. */
6182 /* We use char because int might match the return type of a gcc2
6183 builtin and then its argument prototype would still apply. */
6185 #ifdef F77_DUMMY_MAIN
6189 int F77_DUMMY_MAIN() { return 1; }
6199 rm -f conftest.$ac_objext conftest$ac_exeext
6200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6201 (eval $ac_link) 2>&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try='test -s conftest$ac_exeext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_cv_search_crypt="none required"
6213 echo "$as_me: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6217 if test "$ac_cv_search_crypt" = no; then
6218 for ac_lib in crypt; do
6219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6220 cat >conftest.$ac_ext <<_ACEOF
6221 #line $LINENO "configure"
6222 #include "confdefs.h"
6224 /* Override any gcc2 internal prototype to avoid an error. */
6228 /* We use char because int might match the return type of a gcc2
6229 builtin and then its argument prototype would still apply. */
6231 #ifdef F77_DUMMY_MAIN
6235 int F77_DUMMY_MAIN() { return 1; }
6245 rm -f conftest.$ac_objext conftest$ac_exeext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247 (eval $ac_link) 2>&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -s conftest$ac_exeext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_search_crypt="-l$ac_lib"
6260 echo "$as_me: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6266 LIBS=$ac_func_search_save_LIBS
6268 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6269 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6270 if test "$ac_cv_search_crypt" != no; then
6271 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6277 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6278 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6279 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 ac_check_lib_save_LIBS=$LIBS
6284 cat >conftest.$ac_ext <<_ACEOF
6285 #line $LINENO "configure"
6286 #include "confdefs.h"
6288 /* Override any gcc2 internal prototype to avoid an error. */
6292 /* We use char because int might match the return type of a gcc2
6293 builtin and then its argument prototype would still apply. */
6294 char __inet_ntoa ();
6295 #ifdef F77_DUMMY_MAIN
6299 int F77_DUMMY_MAIN() { return 1; }
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311 (eval $ac_link) 2>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
6315 { ac_try='test -s conftest$ac_exeext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_lib_bind___inet_ntoa=yes
6323 echo "$as_me: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6325 ac_cv_lib_bind___inet_ntoa=no
6327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6328 LIBS=$ac_check_lib_save_LIBS
6330 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6331 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6332 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6333 cat >>confdefs.h <<_ACEOF
6334 #define HAVE_LIBBIND 1
6342 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6343 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6344 if test "${ac_cv_search_fdatasync+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 ac_func_search_save_LIBS=$LIBS
6348 ac_cv_search_fdatasync=no
6349 cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 #include "confdefs.h"
6353 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6360 #ifdef F77_DUMMY_MAIN
6364 int F77_DUMMY_MAIN() { return 1; }
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376 (eval $ac_link) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest$ac_exeext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_cv_search_fdatasync="none required"
6388 echo "$as_me: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6392 if test "$ac_cv_search_fdatasync" = no; then
6393 for ac_lib in rt posix4; do
6394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6395 cat >conftest.$ac_ext <<_ACEOF
6396 #line $LINENO "configure"
6397 #include "confdefs.h"
6399 /* Override any gcc2 internal prototype to avoid an error. */
6403 /* We use char because int might match the return type of a gcc2
6404 builtin and then its argument prototype would still apply. */
6406 #ifdef F77_DUMMY_MAIN
6410 int F77_DUMMY_MAIN() { return 1; }
6420 rm -f conftest.$ac_objext conftest$ac_exeext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6422 (eval $ac_link) 2>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -s conftest$ac_exeext'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 ac_cv_search_fdatasync="-l$ac_lib"
6435 echo "$as_me: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6441 LIBS=$ac_func_search_save_LIBS
6443 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6444 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6445 if test "$ac_cv_search_fdatasync" != no; then
6446 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6451 if test "$with_readline" = yes; then
6453 echo "$as_me:$LINENO: checking for readline" >&5
6454 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6456 if test "${pgac_cv_check_readline+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 pgac_cv_check_readline=no
6460 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6461 for pgac_rllib in -lreadline -ledit ; do
6462 pgac_save_LIBS=$LIBS
6463 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6466 #include "confdefs.h"
6468 /* Override any gcc2 internal prototype to avoid an error. */
6472 /* We use char because int might match the return type of a gcc2
6473 builtin and then its argument prototype would still apply. */
6475 #ifdef F77_DUMMY_MAIN
6479 int F77_DUMMY_MAIN() { return 1; }
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491 (eval $ac_link) 2>&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -s conftest$ac_exeext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6502 # NetBSD and OpenBSD have a broken linker that does not
6503 # recognize dependent libraries
6504 case $host_os in netbsd* | openbsd* )
6507 *) pgac_lib=" -lcurses" ;;
6511 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6515 echo "$as_me: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6519 LIBS=$pgac_save_LIBS
6522 LIBS=$pgac_save_LIBS
6526 if test "$pgac_cv_check_readline" != no ; then
6528 cat >>confdefs.h <<\_ACEOF
6529 #define HAVE_LIBREADLINE 1
6532 LIBS="$pgac_cv_check_readline $LIBS"
6533 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6534 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6536 echo "$as_me:$LINENO: result: no" >&5
6537 echo "${ECHO_T}no" >&6
6539 if test x"$pgac_cv_check_readline" = x"no"; then
6540 { { echo "$as_me:$LINENO: error: readline library not found
6541 Use --without-readline to disable readline support." >&5
6542 echo "$as_me: error: readline library not found
6543 Use --without-readline to disable readline support." >&2;}
6544 { (exit 1); exit 1; }; }
6548 if test "$with_zlib" = yes; then
6550 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6551 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6552 if test "${ac_cv_lib_z_inflate+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 ac_check_lib_save_LIBS=$LIBS
6557 cat >conftest.$ac_ext <<_ACEOF
6558 #line $LINENO "configure"
6559 #include "confdefs.h"
6561 /* Override any gcc2 internal prototype to avoid an error. */
6565 /* We use char because int might match the return type of a gcc2
6566 builtin and then its argument prototype would still apply. */
6568 #ifdef F77_DUMMY_MAIN
6572 int F77_DUMMY_MAIN() { return 1; }
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6584 (eval $ac_link) 2>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -s conftest$ac_exeext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_lib_z_inflate=yes
6596 echo "$as_me: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6598 ac_cv_lib_z_inflate=no
6600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6601 LIBS=$ac_check_lib_save_LIBS
6603 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6604 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6605 if test $ac_cv_lib_z_inflate = yes; then
6606 cat >>confdefs.h <<_ACEOF
6613 { { echo "$as_me:$LINENO: error: zlib library not found
6614 Use --without-zlib to disable zlib support." >&5
6615 echo "$as_me: error: zlib library not found
6616 Use --without-zlib to disable zlib support." >&2;}
6617 { (exit 1); exit 1; }; }
6622 if test "$with_krb4" = yes ; then
6624 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6625 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6626 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 ac_check_lib_save_LIBS=$LIBS
6631 cat >conftest.$ac_ext <<_ACEOF
6632 #line $LINENO "configure"
6633 #include "confdefs.h"
6635 /* Override any gcc2 internal prototype to avoid an error. */
6639 /* We use char because int might match the return type of a gcc2
6640 builtin and then its argument prototype would still apply. */
6641 char des_encrypt ();
6642 #ifdef F77_DUMMY_MAIN
6646 int F77_DUMMY_MAIN() { return 1; }
6656 rm -f conftest.$ac_objext conftest$ac_exeext
6657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6658 (eval $ac_link) 2>&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -s conftest$ac_exeext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 ac_cv_lib_des_des_encrypt=yes
6670 echo "$as_me: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6672 ac_cv_lib_des_des_encrypt=no
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6675 LIBS=$ac_check_lib_save_LIBS
6677 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6678 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6679 if test $ac_cv_lib_des_des_encrypt = yes; then
6680 cat >>confdefs.h <<_ACEOF
6681 #define HAVE_LIBDES 1
6687 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6688 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6689 { (exit 1); exit 1; }; }
6693 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6694 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6695 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 ac_check_lib_save_LIBS=$LIBS
6700 cat >conftest.$ac_ext <<_ACEOF
6701 #line $LINENO "configure"
6702 #include "confdefs.h"
6704 /* Override any gcc2 internal prototype to avoid an error. */
6708 /* We use char because int might match the return type of a gcc2
6709 builtin and then its argument prototype would still apply. */
6710 char krb_sendauth ();
6711 #ifdef F77_DUMMY_MAIN
6715 int F77_DUMMY_MAIN() { return 1; }
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } &&
6731 { ac_try='test -s conftest$ac_exeext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6737 ac_cv_lib_krb_krb_sendauth=yes
6739 echo "$as_me: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6741 ac_cv_lib_krb_krb_sendauth=no
6743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6744 LIBS=$ac_check_lib_save_LIBS
6746 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6747 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6748 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6749 cat >>confdefs.h <<_ACEOF
6750 #define HAVE_LIBKRB 1
6756 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6757 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6758 { (exit 1); exit 1; }; }
6763 if test "$with_krb5" = yes ; then
6764 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6765 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6766 if test "${ac_cv_search_com_err+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 ac_func_search_save_LIBS=$LIBS
6770 ac_cv_search_com_err=no
6771 cat >conftest.$ac_ext <<_ACEOF
6772 #line $LINENO "configure"
6773 #include "confdefs.h"
6775 /* Override any gcc2 internal prototype to avoid an error. */
6779 /* We use char because int might match the return type of a gcc2
6780 builtin and then its argument prototype would still apply. */
6782 #ifdef F77_DUMMY_MAIN
6786 int F77_DUMMY_MAIN() { return 1; }
6796 rm -f conftest.$ac_objext conftest$ac_exeext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6798 (eval $ac_link) 2>&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -s conftest$ac_exeext'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 ac_cv_search_com_err="none required"
6810 echo "$as_me: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6814 if test "$ac_cv_search_com_err" = no; then
6815 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6817 cat >conftest.$ac_ext <<_ACEOF
6818 #line $LINENO "configure"
6819 #include "confdefs.h"
6821 /* Override any gcc2 internal prototype to avoid an error. */
6825 /* We use char because int might match the return type of a gcc2
6826 builtin and then its argument prototype would still apply. */
6828 #ifdef F77_DUMMY_MAIN
6832 int F77_DUMMY_MAIN() { return 1; }
6842 rm -f conftest.$ac_objext conftest$ac_exeext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6844 (eval $ac_link) 2>&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } &&
6848 { ac_try='test -s conftest$ac_exeext'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 ac_cv_search_com_err="-l$ac_lib"
6857 echo "$as_me: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6863 LIBS=$ac_func_search_save_LIBS
6865 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6866 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6867 if test "$ac_cv_search_com_err" != no; then
6868 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6871 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6872 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6873 { (exit 1); exit 1; }; }
6876 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6877 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6878 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 ac_func_search_save_LIBS=$LIBS
6882 ac_cv_search_krb5_encrypt=no
6883 cat >conftest.$ac_ext <<_ACEOF
6884 #line $LINENO "configure"
6885 #include "confdefs.h"
6887 /* Override any gcc2 internal prototype to avoid an error. */
6891 /* We use char because int might match the return type of a gcc2
6892 builtin and then its argument prototype would still apply. */
6893 char krb5_encrypt ();
6894 #ifdef F77_DUMMY_MAIN
6898 int F77_DUMMY_MAIN() { return 1; }
6908 rm -f conftest.$ac_objext conftest$ac_exeext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910 (eval $ac_link) 2>&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } &&
6914 { ac_try='test -s conftest$ac_exeext'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
6920 ac_cv_search_krb5_encrypt="none required"
6922 echo "$as_me: failed program was:" >&5
6923 cat conftest.$ac_ext >&5
6925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6926 if test "$ac_cv_search_krb5_encrypt" = no; then
6927 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6929 cat >conftest.$ac_ext <<_ACEOF
6930 #line $LINENO "configure"
6931 #include "confdefs.h"
6933 /* Override any gcc2 internal prototype to avoid an error. */
6937 /* We use char because int might match the return type of a gcc2
6938 builtin and then its argument prototype would still apply. */
6939 char krb5_encrypt ();
6940 #ifdef F77_DUMMY_MAIN
6944 int F77_DUMMY_MAIN() { return 1; }
6954 rm -f conftest.$ac_objext conftest$ac_exeext
6955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6956 (eval $ac_link) 2>&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -s conftest$ac_exeext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 ac_cv_search_krb5_encrypt="-l$ac_lib"
6969 echo "$as_me: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 LIBS=$ac_func_search_save_LIBS
6977 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6978 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6979 if test "$ac_cv_search_krb5_encrypt" != no; then
6980 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6983 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6984 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6985 { (exit 1); exit 1; }; }
6988 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6989 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6990 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 ac_func_search_save_LIBS=$LIBS
6994 ac_cv_search_krb5_sendauth=no
6995 cat >conftest.$ac_ext <<_ACEOF
6996 #line $LINENO "configure"
6997 #include "confdefs.h"
6999 /* Override any gcc2 internal prototype to avoid an error. */
7003 /* We use char because int might match the return type of a gcc2
7004 builtin and then its argument prototype would still apply. */
7005 char krb5_sendauth ();
7006 #ifdef F77_DUMMY_MAIN
7010 int F77_DUMMY_MAIN() { return 1; }
7020 rm -f conftest.$ac_objext conftest$ac_exeext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7022 (eval $ac_link) 2>&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } &&
7026 { ac_try='test -s conftest$ac_exeext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 ac_cv_search_krb5_sendauth="none required"
7034 echo "$as_me: failed program was:" >&5
7035 cat conftest.$ac_ext >&5
7037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7038 if test "$ac_cv_search_krb5_sendauth" = no; then
7039 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
7040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7041 cat >conftest.$ac_ext <<_ACEOF
7042 #line $LINENO "configure"
7043 #include "confdefs.h"
7045 /* Override any gcc2 internal prototype to avoid an error. */
7049 /* We use char because int might match the return type of a gcc2
7050 builtin and then its argument prototype would still apply. */
7051 char krb5_sendauth ();
7052 #ifdef F77_DUMMY_MAIN
7056 int F77_DUMMY_MAIN() { return 1; }
7066 rm -f conftest.$ac_objext conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try='test -s conftest$ac_exeext'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7078 ac_cv_search_krb5_sendauth="-l$ac_lib"
7081 echo "$as_me: failed program was:" >&5
7082 cat conftest.$ac_ext >&5
7084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7087 LIBS=$ac_func_search_save_LIBS
7089 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7090 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7091 if test "$ac_cv_search_krb5_sendauth" != no; then
7092 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7095 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7096 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7097 { (exit 1); exit 1; }; }
7102 if test "$with_openssl" = yes ; then
7104 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7105 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7106 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 ac_check_lib_save_LIBS=$LIBS
7110 LIBS="-lcrypto $LIBS"
7111 cat >conftest.$ac_ext <<_ACEOF
7112 #line $LINENO "configure"
7113 #include "confdefs.h"
7115 /* Override any gcc2 internal prototype to avoid an error. */
7119 /* We use char because int might match the return type of a gcc2
7120 builtin and then its argument prototype would still apply. */
7121 char CRYPTO_new_ex_data ();
7122 #ifdef F77_DUMMY_MAIN
7126 int F77_DUMMY_MAIN() { return 1; }
7131 CRYPTO_new_ex_data ();
7136 rm -f conftest.$ac_objext conftest$ac_exeext
7137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7138 (eval $ac_link) 2>&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } &&
7142 { ac_try='test -s conftest$ac_exeext'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; }; then
7148 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7150 echo "$as_me: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7152 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7155 LIBS=$ac_check_lib_save_LIBS
7157 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7158 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7159 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7160 cat >>confdefs.h <<_ACEOF
7161 #define HAVE_LIBCRYPTO 1
7164 LIBS="-lcrypto $LIBS"
7167 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7168 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7169 { (exit 1); exit 1; }; }
7173 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7174 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7175 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 ac_check_lib_save_LIBS=$LIBS
7180 cat >conftest.$ac_ext <<_ACEOF
7181 #line $LINENO "configure"
7182 #include "confdefs.h"
7184 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7190 char SSL_library_init ();
7191 #ifdef F77_DUMMY_MAIN
7195 int F77_DUMMY_MAIN() { return 1; }
7200 SSL_library_init ();
7205 rm -f conftest.$ac_objext conftest$ac_exeext
7206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7207 (eval $ac_link) 2>&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } &&
7211 { ac_try='test -s conftest$ac_exeext'
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; }; then
7217 ac_cv_lib_ssl_SSL_library_init=yes
7219 echo "$as_me: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7221 ac_cv_lib_ssl_SSL_library_init=no
7223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7224 LIBS=$ac_check_lib_save_LIBS
7226 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7227 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7228 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7229 cat >>confdefs.h <<_ACEOF
7230 #define HAVE_LIBSSL 1
7236 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7237 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7238 { (exit 1); exit 1; }; }
7243 if test "$with_pam" = yes ; then
7245 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7246 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7247 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 ac_check_lib_save_LIBS=$LIBS
7252 cat >conftest.$ac_ext <<_ACEOF
7253 #line $LINENO "configure"
7254 #include "confdefs.h"
7256 /* Override any gcc2 internal prototype to avoid an error. */
7260 /* We use char because int might match the return type of a gcc2
7261 builtin and then its argument prototype would still apply. */
7263 #ifdef F77_DUMMY_MAIN
7267 int F77_DUMMY_MAIN() { return 1; }
7277 rm -f conftest.$ac_objext conftest$ac_exeext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7279 (eval $ac_link) 2>&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } &&
7283 { ac_try='test -s conftest$ac_exeext'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7289 ac_cv_lib_pam_pam_start=yes
7291 echo "$as_me: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7293 ac_cv_lib_pam_pam_start=no
7295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7296 LIBS=$ac_check_lib_save_LIBS
7298 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7299 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7300 if test $ac_cv_lib_pam_pam_start = yes; then
7301 cat >>confdefs.h <<_ACEOF
7302 #define HAVE_LIBPAM 1
7308 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7309 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7310 { (exit 1); exit 1; }; }
7319 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7321 if test "${ac_cv_header_stdc+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 cat >conftest.$ac_ext <<_ACEOF
7325 #line $LINENO "configure"
7326 #include "confdefs.h"
7333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7336 egrep -v '^ *\+' conftest.er1 >conftest.err
7338 cat conftest.err >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } >/dev/null; then
7341 if test -s conftest.err; then
7342 ac_cpp_err=$ac_c_preproc_warn_flag
7349 if test -z "$ac_cpp_err"; then
7350 ac_cv_header_stdc=yes
7352 echo "$as_me: failed program was:" >&5
7353 cat conftest.$ac_ext >&5
7354 ac_cv_header_stdc=no
7356 rm -f conftest.err conftest.$ac_ext
7358 if test $ac_cv_header_stdc = yes; then
7359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7360 cat >conftest.$ac_ext <<_ACEOF
7361 #line $LINENO "configure"
7362 #include "confdefs.h"
7366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7367 egrep "memchr" >/dev/null 2>&1; then
7370 ac_cv_header_stdc=no
7376 if test $ac_cv_header_stdc = yes; then
7377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7378 cat >conftest.$ac_ext <<_ACEOF
7379 #line $LINENO "configure"
7380 #include "confdefs.h"
7384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7385 egrep "free" >/dev/null 2>&1; then
7388 ac_cv_header_stdc=no
7394 if test $ac_cv_header_stdc = yes; then
7395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7396 if test "$cross_compiling" = yes; then
7399 cat >conftest.$ac_ext <<_ACEOF
7400 #line $LINENO "configure"
7401 #include "confdefs.h"
7403 #if ((' ' & 0x0FF) == 0x020)
7404 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7405 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7407 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7408 || ('j' <= (c) && (c) <= 'r') \
7409 || ('s' <= (c) && (c) <= 'z'))
7410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7418 for (i = 0; i < 256; i++)
7419 if (XOR (islower (i), ISLOWER (i))
7420 || toupper (i) != TOUPPER (i))
7425 rm -f conftest$ac_exeext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7427 (eval $ac_link) 2>&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7438 echo "$as_me: program exited with status $ac_status" >&5
7439 echo "$as_me: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7442 ac_cv_header_stdc=no
7444 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7448 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7449 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7450 if test $ac_cv_header_stdc = yes; then
7452 cat >>confdefs.h <<\_ACEOF
7453 #define STDC_HEADERS 1
7458 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7468 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7469 inttypes.h stdint.h unistd.h
7471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7472 echo "$as_me:$LINENO: checking for $ac_header" >&5
7473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 cat >conftest.$ac_ext <<_ACEOF
7478 #line $LINENO "configure"
7479 #include "confdefs.h"
7480 $ac_includes_default
7482 #include <$ac_header>
7484 rm -f conftest.$ac_objext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7486 (eval $ac_compile) 2>&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 eval "$as_ac_Header=yes"
7498 echo "$as_me: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7500 eval "$as_ac_Header=no"
7502 rm -f conftest.$ac_objext conftest.$ac_ext
7504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7507 cat >>confdefs.h <<_ACEOF
7508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7534 for ac_header 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/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
7536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7538 echo "$as_me:$LINENO: checking for $ac_header" >&5
7539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7546 # Is the header compilable?
7547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7549 cat >conftest.$ac_ext <<_ACEOF
7550 #line $LINENO "configure"
7551 #include "confdefs.h"
7552 $ac_includes_default
7553 #include <$ac_header>
7555 rm -f conftest.$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557 (eval $ac_compile) 2>&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } &&
7561 { ac_try='test -s conftest.$ac_objext'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 ac_header_compiler=yes
7569 echo "$as_me: failed program was:" >&5
7570 cat conftest.$ac_ext >&5
7571 ac_header_compiler=no
7573 rm -f conftest.$ac_objext conftest.$ac_ext
7574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7575 echo "${ECHO_T}$ac_header_compiler" >&6
7577 # Is the header present?
7578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7580 cat >conftest.$ac_ext <<_ACEOF
7581 #line $LINENO "configure"
7582 #include "confdefs.h"
7583 #include <$ac_header>
7585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7588 egrep -v '^ *\+' conftest.er1 >conftest.err
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } >/dev/null; then
7593 if test -s conftest.err; then
7594 ac_cpp_err=$ac_c_preproc_warn_flag
7601 if test -z "$ac_cpp_err"; then
7602 ac_header_preproc=yes
7604 echo "$as_me: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7606 ac_header_preproc=no
7608 rm -f conftest.err conftest.$ac_ext
7609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7610 echo "${ECHO_T}$ac_header_preproc" >&6
7612 # So? What about this header?
7613 case $ac_header_compiler:$ac_header_preproc in
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7627 echo "$as_me:$LINENO: checking for $ac_header" >&5
7628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 eval "$as_ac_Header=$ac_header_preproc"
7634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7639 cat >>confdefs.h <<_ACEOF
7640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7648 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7649 # netinet/in.h is included first.
7651 for ac_header in netinet/in.h
7653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655 echo "$as_me:$LINENO: checking for $ac_header" >&5
7656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7663 # Is the header compilable?
7664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7666 cat >conftest.$ac_ext <<_ACEOF
7667 #line $LINENO "configure"
7668 #include "confdefs.h"
7669 $ac_includes_default
7670 #include <$ac_header>
7672 rm -f conftest.$ac_objext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674 (eval $ac_compile) 2>&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } &&
7678 { ac_try='test -s conftest.$ac_objext'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; }; then
7684 ac_header_compiler=yes
7686 echo "$as_me: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7688 ac_header_compiler=no
7690 rm -f conftest.$ac_objext conftest.$ac_ext
7691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7692 echo "${ECHO_T}$ac_header_compiler" >&6
7694 # Is the header present?
7695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7697 cat >conftest.$ac_ext <<_ACEOF
7698 #line $LINENO "configure"
7699 #include "confdefs.h"
7700 #include <$ac_header>
7702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7705 egrep -v '^ *\+' conftest.er1 >conftest.err
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } >/dev/null; then
7710 if test -s conftest.err; then
7711 ac_cpp_err=$ac_c_preproc_warn_flag
7718 if test -z "$ac_cpp_err"; then
7719 ac_header_preproc=yes
7721 echo "$as_me: failed program was:" >&5
7722 cat conftest.$ac_ext >&5
7723 ac_header_preproc=no
7725 rm -f conftest.err conftest.$ac_ext
7726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7727 echo "${ECHO_T}$ac_header_preproc" >&6
7729 # So? What about this header?
7730 case $ac_header_compiler:$ac_header_preproc in
7732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7744 echo "$as_me:$LINENO: checking for $ac_header" >&5
7745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 eval "$as_ac_Header=$ac_header_preproc"
7751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7756 cat >>confdefs.h <<_ACEOF
7757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7765 for ac_header in netinet/tcp.h
7767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7768 echo "$as_me:$LINENO: checking for $ac_header" >&5
7769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 cat >conftest.$ac_ext <<_ACEOF
7774 #line $LINENO "configure"
7775 #include "confdefs.h"
7776 $ac_includes_default
7777 #ifdef HAVE_NETINET_IN_H
7778 #include <netinet/in.h>
7782 #include <$ac_header>
7784 rm -f conftest.$ac_objext
7785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7786 (eval $ac_compile) 2>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try='test -s conftest.$ac_objext'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; }; then
7796 eval "$as_ac_Header=yes"
7798 echo "$as_me: failed program was:" >&5
7799 cat conftest.$ac_ext >&5
7800 eval "$as_ac_Header=no"
7802 rm -f conftest.$ac_objext conftest.$ac_ext
7804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7807 cat >>confdefs.h <<_ACEOF
7808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7816 if test "$with_readline" = yes; then
7818 for ac_header in readline/readline.h
7820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7822 echo "$as_me:$LINENO: checking for $ac_header" >&5
7823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7830 # Is the header compilable?
7831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7834 #line $LINENO "configure"
7835 #include "confdefs.h"
7836 $ac_includes_default
7837 #include <$ac_header>
7839 rm -f conftest.$ac_objext
7840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7841 (eval $ac_compile) 2>&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -s conftest.$ac_objext'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 ac_header_compiler=yes
7853 echo "$as_me: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7855 ac_header_compiler=no
7857 rm -f conftest.$ac_objext conftest.$ac_ext
7858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7859 echo "${ECHO_T}$ac_header_compiler" >&6
7861 # Is the header present?
7862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7864 cat >conftest.$ac_ext <<_ACEOF
7865 #line $LINENO "configure"
7866 #include "confdefs.h"
7867 #include <$ac_header>
7869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7872 egrep -v '^ *\+' conftest.er1 >conftest.err
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } >/dev/null; then
7877 if test -s conftest.err; then
7878 ac_cpp_err=$ac_c_preproc_warn_flag
7885 if test -z "$ac_cpp_err"; then
7886 ac_header_preproc=yes
7888 echo "$as_me: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7890 ac_header_preproc=no
7892 rm -f conftest.err conftest.$ac_ext
7893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7894 echo "${ECHO_T}$ac_header_preproc" >&6
7896 # So? What about this header?
7897 case $ac_header_compiler:$ac_header_preproc in
7899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7911 echo "$as_me:$LINENO: checking for $ac_header" >&5
7912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 eval "$as_ac_Header=$ac_header_preproc"
7918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7923 cat >>confdefs.h <<_ACEOF
7924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7929 for ac_header in readline.h
7931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7933 echo "$as_me:$LINENO: checking for $ac_header" >&5
7934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7941 # Is the header compilable?
7942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7944 cat >conftest.$ac_ext <<_ACEOF
7945 #line $LINENO "configure"
7946 #include "confdefs.h"
7947 $ac_includes_default
7948 #include <$ac_header>
7950 rm -f conftest.$ac_objext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7952 (eval $ac_compile) 2>&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try='test -s conftest.$ac_objext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 ac_header_compiler=yes
7964 echo "$as_me: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7966 ac_header_compiler=no
7968 rm -f conftest.$ac_objext conftest.$ac_ext
7969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7970 echo "${ECHO_T}$ac_header_compiler" >&6
7972 # Is the header present?
7973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7975 cat >conftest.$ac_ext <<_ACEOF
7976 #line $LINENO "configure"
7977 #include "confdefs.h"
7978 #include <$ac_header>
7980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7983 egrep -v '^ *\+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } >/dev/null; then
7988 if test -s conftest.err; then
7989 ac_cpp_err=$ac_c_preproc_warn_flag
7996 if test -z "$ac_cpp_err"; then
7997 ac_header_preproc=yes
7999 echo "$as_me: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8001 ac_header_preproc=no
8003 rm -f conftest.err conftest.$ac_ext
8004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8005 echo "${ECHO_T}$ac_header_preproc" >&6
8007 # So? What about this header?
8008 case $ac_header_compiler:$ac_header_preproc in
8010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8022 echo "$as_me:$LINENO: checking for $ac_header" >&5
8023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 eval "$as_ac_Header=$ac_header_preproc"
8029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8034 cat >>confdefs.h <<_ACEOF
8035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8039 { { echo "$as_me:$LINENO: error: readline header not found
8040 Use --without-readline to disable readline support." >&5
8041 echo "$as_me: error: readline header not found
8042 Use --without-readline to disable readline support." >&2;}
8043 { (exit 1); exit 1; }; }
8053 for ac_header in readline/history.h
8055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8057 echo "$as_me:$LINENO: checking for $ac_header" >&5
8058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8065 # Is the header compilable?
8066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8068 cat >conftest.$ac_ext <<_ACEOF
8069 #line $LINENO "configure"
8070 #include "confdefs.h"
8071 $ac_includes_default
8072 #include <$ac_header>
8074 rm -f conftest.$ac_objext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8076 (eval $ac_compile) 2>&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } &&
8080 { ac_try='test -s conftest.$ac_objext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 ac_header_compiler=yes
8088 echo "$as_me: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8090 ac_header_compiler=no
8092 rm -f conftest.$ac_objext conftest.$ac_ext
8093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8094 echo "${ECHO_T}$ac_header_compiler" >&6
8096 # Is the header present?
8097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8099 cat >conftest.$ac_ext <<_ACEOF
8100 #line $LINENO "configure"
8101 #include "confdefs.h"
8102 #include <$ac_header>
8104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8107 egrep -v '^ *\+' conftest.er1 >conftest.err
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } >/dev/null; then
8112 if test -s conftest.err; then
8113 ac_cpp_err=$ac_c_preproc_warn_flag
8120 if test -z "$ac_cpp_err"; then
8121 ac_header_preproc=yes
8123 echo "$as_me: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8125 ac_header_preproc=no
8127 rm -f conftest.err conftest.$ac_ext
8128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8129 echo "${ECHO_T}$ac_header_preproc" >&6
8131 # So? What about this header?
8132 case $ac_header_compiler:$ac_header_preproc in
8134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8146 echo "$as_me:$LINENO: checking for $ac_header" >&5
8147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 eval "$as_ac_Header=$ac_header_preproc"
8153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8158 cat >>confdefs.h <<_ACEOF
8159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8164 for ac_header in history.h
8166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8168 echo "$as_me:$LINENO: checking for $ac_header" >&5
8169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8176 # Is the header compilable?
8177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8179 cat >conftest.$ac_ext <<_ACEOF
8180 #line $LINENO "configure"
8181 #include "confdefs.h"
8182 $ac_includes_default
8183 #include <$ac_header>
8185 rm -f conftest.$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187 (eval $ac_compile) 2>&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } &&
8191 { ac_try='test -s conftest.$ac_objext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 ac_header_compiler=yes
8199 echo "$as_me: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8201 ac_header_compiler=no
8203 rm -f conftest.$ac_objext conftest.$ac_ext
8204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8205 echo "${ECHO_T}$ac_header_compiler" >&6
8207 # Is the header present?
8208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8210 cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8212 #include "confdefs.h"
8213 #include <$ac_header>
8215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8218 egrep -v '^ *\+' conftest.er1 >conftest.err
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } >/dev/null; then
8223 if test -s conftest.err; then
8224 ac_cpp_err=$ac_c_preproc_warn_flag
8231 if test -z "$ac_cpp_err"; then
8232 ac_header_preproc=yes
8234 echo "$as_me: failed program was:" >&5
8235 cat conftest.$ac_ext >&5
8236 ac_header_preproc=no
8238 rm -f conftest.err conftest.$ac_ext
8239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8240 echo "${ECHO_T}$ac_header_preproc" >&6
8242 # So? What about this header?
8243 case $ac_header_compiler:$ac_header_preproc in
8245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8257 echo "$as_me:$LINENO: checking for $ac_header" >&5
8258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 eval "$as_ac_Header=$ac_header_preproc"
8264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8269 cat >>confdefs.h <<_ACEOF
8270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8274 { { echo "$as_me:$LINENO: error: history header not found
8275 Use --without-readline to disable readline support." >&5
8276 echo "$as_me: error: history header not found
8277 Use --without-readline to disable readline support." >&2;}
8278 { (exit 1); exit 1; }; }
8289 if test "$with_zlib" = yes; then
8290 if test "${ac_cv_header_zlib_h+set}" = set; then
8291 echo "$as_me:$LINENO: checking for zlib.h" >&5
8292 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8293 if test "${ac_cv_header_zlib_h+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8297 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8299 # Is the header compilable?
8300 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8301 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8302 cat >conftest.$ac_ext <<_ACEOF
8303 #line $LINENO "configure"
8304 #include "confdefs.h"
8305 $ac_includes_default
8308 rm -f conftest.$ac_objext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8310 (eval $ac_compile) 2>&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } &&
8314 { ac_try='test -s conftest.$ac_objext'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_header_compiler=yes
8322 echo "$as_me: failed program was:" >&5
8323 cat conftest.$ac_ext >&5
8324 ac_header_compiler=no
8326 rm -f conftest.$ac_objext conftest.$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8328 echo "${ECHO_T}$ac_header_compiler" >&6
8330 # Is the header present?
8331 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8332 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8333 cat >conftest.$ac_ext <<_ACEOF
8334 #line $LINENO "configure"
8335 #include "confdefs.h"
8338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8341 egrep -v '^ *\+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } >/dev/null; then
8346 if test -s conftest.err; then
8347 ac_cpp_err=$ac_c_preproc_warn_flag
8354 if test -z "$ac_cpp_err"; then
8355 ac_header_preproc=yes
8357 echo "$as_me: failed program was:" >&5
8358 cat conftest.$ac_ext >&5
8359 ac_header_preproc=no
8361 rm -f conftest.err conftest.$ac_ext
8362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8363 echo "${ECHO_T}$ac_header_preproc" >&6
8365 # So? What about this header?
8366 case $ac_header_compiler:$ac_header_preproc in
8368 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8369 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8371 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8373 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8374 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8375 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8376 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8377 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8378 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8380 echo "$as_me:$LINENO: checking for zlib.h" >&5
8381 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8382 if test "${ac_cv_header_zlib_h+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 ac_cv_header_zlib_h=$ac_header_preproc
8387 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8388 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8391 if test $ac_cv_header_zlib_h = yes; then
8394 { { echo "$as_me:$LINENO: error: zlib header not found
8395 Use --without-zlib to disable zlib support." >&5
8396 echo "$as_me: error: zlib header not found
8397 Use --without-zlib to disable zlib support." >&2;}
8398 { (exit 1); exit 1; }; }
8404 if test "$with_krb4" = yes ; then
8405 if test "${ac_cv_header_krb_h+set}" = set; then
8406 echo "$as_me:$LINENO: checking for krb.h" >&5
8407 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8408 if test "${ac_cv_header_krb_h+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8412 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8414 # Is the header compilable?
8415 echo "$as_me:$LINENO: checking krb.h usability" >&5
8416 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8417 cat >conftest.$ac_ext <<_ACEOF
8418 #line $LINENO "configure"
8419 #include "confdefs.h"
8420 $ac_includes_default
8423 rm -f conftest.$ac_objext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425 (eval $ac_compile) 2>&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try='test -s conftest.$ac_objext'
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8435 ac_header_compiler=yes
8437 echo "$as_me: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8439 ac_header_compiler=no
8441 rm -f conftest.$ac_objext conftest.$ac_ext
8442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8443 echo "${ECHO_T}$ac_header_compiler" >&6
8445 # Is the header present?
8446 echo "$as_me:$LINENO: checking krb.h presence" >&5
8447 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8448 cat >conftest.$ac_ext <<_ACEOF
8449 #line $LINENO "configure"
8450 #include "confdefs.h"
8453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8456 egrep -v '^ *\+' conftest.er1 >conftest.err
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } >/dev/null; then
8461 if test -s conftest.err; then
8462 ac_cpp_err=$ac_c_preproc_warn_flag
8469 if test -z "$ac_cpp_err"; then
8470 ac_header_preproc=yes
8472 echo "$as_me: failed program was:" >&5
8473 cat conftest.$ac_ext >&5
8474 ac_header_preproc=no
8476 rm -f conftest.err conftest.$ac_ext
8477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8478 echo "${ECHO_T}$ac_header_preproc" >&6
8480 # So? What about this header?
8481 case $ac_header_compiler:$ac_header_preproc in
8483 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8484 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8486 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8488 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8489 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8491 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8493 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8495 echo "$as_me:$LINENO: checking for krb.h" >&5
8496 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8497 if test "${ac_cv_header_krb_h+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 ac_cv_header_krb_h=$ac_header_preproc
8502 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8503 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8506 if test $ac_cv_header_krb_h = yes; then
8509 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8510 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8511 { (exit 1); exit 1; }; }
8517 if test "$with_krb5" = yes ; then
8518 if test "${ac_cv_header_krb5_h+set}" = set; then
8519 echo "$as_me:$LINENO: checking for krb5.h" >&5
8520 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8521 if test "${ac_cv_header_krb5_h+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8525 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8527 # Is the header compilable?
8528 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8529 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8530 cat >conftest.$ac_ext <<_ACEOF
8531 #line $LINENO "configure"
8532 #include "confdefs.h"
8533 $ac_includes_default
8536 rm -f conftest.$ac_objext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538 (eval $ac_compile) 2>&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -s conftest.$ac_objext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_header_compiler=yes
8550 echo "$as_me: failed program was:" >&5
8551 cat conftest.$ac_ext >&5
8552 ac_header_compiler=no
8554 rm -f conftest.$ac_objext conftest.$ac_ext
8555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8556 echo "${ECHO_T}$ac_header_compiler" >&6
8558 # Is the header present?
8559 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8560 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8561 cat >conftest.$ac_ext <<_ACEOF
8562 #line $LINENO "configure"
8563 #include "confdefs.h"
8566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8569 egrep -v '^ *\+' conftest.er1 >conftest.err
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } >/dev/null; then
8574 if test -s conftest.err; then
8575 ac_cpp_err=$ac_c_preproc_warn_flag
8582 if test -z "$ac_cpp_err"; then
8583 ac_header_preproc=yes
8585 echo "$as_me: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8587 ac_header_preproc=no
8589 rm -f conftest.err conftest.$ac_ext
8590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8591 echo "${ECHO_T}$ac_header_preproc" >&6
8593 # So? What about this header?
8594 case $ac_header_compiler:$ac_header_preproc in
8596 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8597 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8599 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8601 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8602 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8604 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8606 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8608 echo "$as_me:$LINENO: checking for krb5.h" >&5
8609 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8610 if test "${ac_cv_header_krb5_h+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 ac_cv_header_krb5_h=$ac_header_preproc
8615 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8616 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8619 if test $ac_cv_header_krb5_h = yes; then
8622 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8623 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8624 { (exit 1); exit 1; }; }
8628 if test "${ac_cv_header_com_err_h+set}" = set; then
8629 echo "$as_me:$LINENO: checking for com_err.h" >&5
8630 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8631 if test "${ac_cv_header_com_err_h+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8635 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8637 # Is the header compilable?
8638 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8639 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8640 cat >conftest.$ac_ext <<_ACEOF
8641 #line $LINENO "configure"
8642 #include "confdefs.h"
8643 $ac_includes_default
8644 #include <com_err.h>
8646 rm -f conftest.$ac_objext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8648 (eval $ac_compile) 2>&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -s conftest.$ac_objext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_header_compiler=yes
8660 echo "$as_me: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8662 ac_header_compiler=no
8664 rm -f conftest.$ac_objext conftest.$ac_ext
8665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8666 echo "${ECHO_T}$ac_header_compiler" >&6
8668 # Is the header present?
8669 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8670 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8672 #line $LINENO "configure"
8673 #include "confdefs.h"
8674 #include <com_err.h>
8676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8679 egrep -v '^ *\+' conftest.er1 >conftest.err
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } >/dev/null; then
8684 if test -s conftest.err; then
8685 ac_cpp_err=$ac_c_preproc_warn_flag
8692 if test -z "$ac_cpp_err"; then
8693 ac_header_preproc=yes
8695 echo "$as_me: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8697 ac_header_preproc=no
8699 rm -f conftest.err conftest.$ac_ext
8700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8701 echo "${ECHO_T}$ac_header_preproc" >&6
8703 # So? What about this header?
8704 case $ac_header_compiler:$ac_header_preproc in
8706 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8707 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8709 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8711 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8712 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8714 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8716 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8718 echo "$as_me:$LINENO: checking for com_err.h" >&5
8719 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8720 if test "${ac_cv_header_com_err_h+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 ac_cv_header_com_err_h=$ac_header_preproc
8725 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8726 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8729 if test $ac_cv_header_com_err_h = yes; then
8732 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8733 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8734 { (exit 1); exit 1; }; }
8740 if test "$with_openssl" = yes ; then
8741 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8742 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8743 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8744 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8748 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8750 # Is the header compilable?
8751 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8752 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line $LINENO "configure"
8755 #include "confdefs.h"
8756 $ac_includes_default
8757 #include <openssl/ssl.h>
8759 rm -f conftest.$ac_objext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761 (eval $ac_compile) 2>&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -s conftest.$ac_objext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8771 ac_header_compiler=yes
8773 echo "$as_me: failed program was:" >&5
8774 cat conftest.$ac_ext >&5
8775 ac_header_compiler=no
8777 rm -f conftest.$ac_objext conftest.$ac_ext
8778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8779 echo "${ECHO_T}$ac_header_compiler" >&6
8781 # Is the header present?
8782 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8783 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8784 cat >conftest.$ac_ext <<_ACEOF
8785 #line $LINENO "configure"
8786 #include "confdefs.h"
8787 #include <openssl/ssl.h>
8789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8792 egrep -v '^ *\+' conftest.er1 >conftest.err
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } >/dev/null; then
8797 if test -s conftest.err; then
8798 ac_cpp_err=$ac_c_preproc_warn_flag
8805 if test -z "$ac_cpp_err"; then
8806 ac_header_preproc=yes
8808 echo "$as_me: failed program was:" >&5
8809 cat conftest.$ac_ext >&5
8810 ac_header_preproc=no
8812 rm -f conftest.err conftest.$ac_ext
8813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8814 echo "${ECHO_T}$ac_header_preproc" >&6
8816 # So? What about this header?
8817 case $ac_header_compiler:$ac_header_preproc in
8819 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8820 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8821 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8822 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8824 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8825 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8826 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8827 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8828 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8829 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8831 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8832 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8833 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8838 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8839 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8842 if test $ac_cv_header_openssl_ssl_h = yes; then
8845 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8846 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8847 { (exit 1); exit 1; }; }
8851 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8852 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8853 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8854 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8858 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8860 # Is the header compilable?
8861 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8862 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8863 cat >conftest.$ac_ext <<_ACEOF
8864 #line $LINENO "configure"
8865 #include "confdefs.h"
8866 $ac_includes_default
8867 #include <openssl/err.h>
8869 rm -f conftest.$ac_objext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871 (eval $ac_compile) 2>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -s conftest.$ac_objext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_header_compiler=yes
8883 echo "$as_me: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 ac_header_compiler=no
8887 rm -f conftest.$ac_objext conftest.$ac_ext
8888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8889 echo "${ECHO_T}$ac_header_compiler" >&6
8891 # Is the header present?
8892 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8893 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8894 cat >conftest.$ac_ext <<_ACEOF
8895 #line $LINENO "configure"
8896 #include "confdefs.h"
8897 #include <openssl/err.h>
8899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8902 egrep -v '^ *\+' conftest.er1 >conftest.err
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } >/dev/null; then
8907 if test -s conftest.err; then
8908 ac_cpp_err=$ac_c_preproc_warn_flag
8915 if test -z "$ac_cpp_err"; then
8916 ac_header_preproc=yes
8918 echo "$as_me: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8920 ac_header_preproc=no
8922 rm -f conftest.err conftest.$ac_ext
8923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8924 echo "${ECHO_T}$ac_header_preproc" >&6
8926 # So? What about this header?
8927 case $ac_header_compiler:$ac_header_preproc in
8929 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8930 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8931 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8932 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8934 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8935 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8936 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8937 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8938 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8939 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8941 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8942 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8943 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 ac_cv_header_openssl_err_h=$ac_header_preproc
8948 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8949 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8952 if test $ac_cv_header_openssl_err_h = yes; then
8955 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8956 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8957 { (exit 1); exit 1; }; }
8963 if test "$with_pam" = yes ; then
8964 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8965 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8966 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8967 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8971 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8973 # Is the header compilable?
8974 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8975 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8976 cat >conftest.$ac_ext <<_ACEOF
8977 #line $LINENO "configure"
8978 #include "confdefs.h"
8979 $ac_includes_default
8980 #include <security/pam_appl.h>
8982 rm -f conftest.$ac_objext
8983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8984 (eval $ac_compile) 2>&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
8988 { ac_try='test -s conftest.$ac_objext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_header_compiler=yes
8996 echo "$as_me: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8998 ac_header_compiler=no
9000 rm -f conftest.$ac_objext conftest.$ac_ext
9001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9002 echo "${ECHO_T}$ac_header_compiler" >&6
9004 # Is the header present?
9005 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
9006 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
9007 cat >conftest.$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9009 #include "confdefs.h"
9010 #include <security/pam_appl.h>
9012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9015 egrep -v '^ *\+' conftest.er1 >conftest.err
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } >/dev/null; then
9020 if test -s conftest.err; then
9021 ac_cpp_err=$ac_c_preproc_warn_flag
9028 if test -z "$ac_cpp_err"; then
9029 ac_header_preproc=yes
9031 echo "$as_me: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9033 ac_header_preproc=no
9035 rm -f conftest.err conftest.$ac_ext
9036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9037 echo "${ECHO_T}$ac_header_preproc" >&6
9039 # So? What about this header?
9040 case $ac_header_compiler:$ac_header_preproc in
9042 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9043 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9045 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9047 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
9048 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
9050 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9052 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9054 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9055 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9056 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 ac_cv_header_security_pam_appl_h=$ac_header_preproc
9061 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9062 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9065 if test $ac_cv_header_security_pam_appl_h = yes; then
9068 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9069 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9070 { (exit 1); exit 1; }; }
9078 ## Types, structures, compiler characteristics
9081 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9082 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9083 if test "${ac_cv_c_const+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 cat >conftest.$ac_ext <<_ACEOF
9087 #line $LINENO "configure"
9088 #include "confdefs.h"
9090 #ifdef F77_DUMMY_MAIN
9094 int F77_DUMMY_MAIN() { return 1; }
9099 /* FIXME: Include the comments suggested by Paul. */
9101 /* Ultrix mips cc rejects this. */
9102 typedef int charset[2];
9104 /* SunOS 4.1.1 cc rejects this. */
9105 char const *const *ccp;
9107 /* NEC SVR4.0.2 mips cc rejects this. */
9108 struct point {int x, y;};
9109 static struct point const zero = {0,0};
9110 /* AIX XL C 1.02.0.0 rejects this.
9111 It does not let you subtract one const X* pointer from another in
9112 an arm of an if-expression whose if-part is not a constant
9114 const char *g = "string";
9115 ccp = &g + (g ? g-g : 0);
9116 /* HPUX 7.0 cc rejects these. */
9119 ccp = (char const *const *) p;
9120 { /* SCO 3.2v4 cc rejects this. */
9122 char const *s = 0 ? (char *) 0 : (char const *) 0;
9126 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9128 const int *foo = &x[0];
9131 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9132 typedef const int *iptr;
9136 { /* AIX XL C 1.02.0.0 rejects this saying
9137 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9138 struct s { int j; const int *ap[3]; };
9139 struct s *b; b->j = 5;
9141 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9150 rm -f conftest.$ac_objext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9152 (eval $ac_compile) 2>&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -s conftest.$ac_objext'
9157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; }; then
9164 echo "$as_me: failed program was:" >&5
9165 cat conftest.$ac_ext >&5
9168 rm -f conftest.$ac_objext conftest.$ac_ext
9170 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9171 echo "${ECHO_T}$ac_cv_c_const" >&6
9172 if test $ac_cv_c_const = no; then
9174 cat >>confdefs.h <<\_ACEOF
9180 echo "$as_me:$LINENO: checking for inline" >&5
9181 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9182 if test "${ac_cv_c_inline+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 for ac_kw in inline __inline__ __inline; do
9187 cat >conftest.$ac_ext <<_ACEOF
9188 #line $LINENO "configure"
9189 #include "confdefs.h"
9191 static $ac_kw int static_foo () {return 0; }
9192 $ac_kw int foo () {return 0; }
9196 rm -f conftest.$ac_objext
9197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9198 (eval $ac_compile) 2>&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -s conftest.$ac_objext'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_cv_c_inline=$ac_kw; break
9210 echo "$as_me: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9213 rm -f conftest.$ac_objext conftest.$ac_ext
9217 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9218 echo "${ECHO_T}$ac_cv_c_inline" >&6
9219 case $ac_cv_c_inline in
9222 cat >>confdefs.h <<\_ACEOF
9226 *) cat >>confdefs.h <<_ACEOF
9227 #define inline $ac_cv_c_inline
9232 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9233 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9234 if test "${ac_cv_c_stringize+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 cat >conftest.$ac_ext <<_ACEOF
9238 #line $LINENO "configure"
9239 #include "confdefs.h"
9242 char *s = x(teststring);
9244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9245 egrep "#teststring" >/dev/null 2>&1; then
9246 ac_cv_c_stringize=no
9248 ac_cv_c_stringize=yes
9253 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9254 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9255 if test $ac_cv_c_stringize = yes; then
9257 cat >>confdefs.h <<\_ACEOF
9258 #define HAVE_STRINGIZE 1
9263 echo "$as_me:$LINENO: checking for signed types" >&5
9264 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9265 if test "${pgac_cv_c_signed+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9268 cat >conftest.$ac_ext <<_ACEOF
9269 #line $LINENO "configure"
9270 #include "confdefs.h"
9272 #ifdef F77_DUMMY_MAIN
9276 int F77_DUMMY_MAIN() { return 1; }
9281 signed char c; signed short s; signed int i;
9286 rm -f conftest.$ac_objext
9287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9288 (eval $ac_compile) 2>&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } &&
9292 { ac_try='test -s conftest.$ac_objext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 pgac_cv_c_signed=yes
9300 echo "$as_me: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9304 rm -f conftest.$ac_objext conftest.$ac_ext
9306 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9307 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9308 if test x"$pgac_cv_c_signed" = xno ; then
9310 cat >>confdefs.h <<\_ACEOF
9315 echo "$as_me:$LINENO: checking for working volatile" >&5
9316 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9317 if test "${ac_cv_c_volatile+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 cat >conftest.$ac_ext <<_ACEOF
9321 #line $LINENO "configure"
9322 #include "confdefs.h"
9324 #ifdef F77_DUMMY_MAIN
9328 int F77_DUMMY_MAIN() { return 1; }
9340 rm -f conftest.$ac_objext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9342 (eval $ac_compile) 2>&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } &&
9346 { ac_try='test -s conftest.$ac_objext'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; }; then
9352 ac_cv_c_volatile=yes
9354 echo "$as_me: failed program was:" >&5
9355 cat conftest.$ac_ext >&5
9358 rm -f conftest.$ac_objext conftest.$ac_ext
9360 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9361 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9362 if test $ac_cv_c_volatile = no; then
9364 cat >>confdefs.h <<\_ACEOF
9370 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9371 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9372 if test "${ac_cv_struct_tm+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9377 #include "confdefs.h"
9378 #include <sys/types.h>
9381 #ifdef F77_DUMMY_MAIN
9385 int F77_DUMMY_MAIN() { return 1; }
9390 struct tm *tp; tp->tm_sec;
9395 rm -f conftest.$ac_objext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397 (eval $ac_compile) 2>&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -s conftest.$ac_objext'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
9407 ac_cv_struct_tm=time.h
9409 echo "$as_me: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9411 ac_cv_struct_tm=sys/time.h
9413 rm -f conftest.$ac_objext conftest.$ac_ext
9415 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9416 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9417 if test $ac_cv_struct_tm = sys/time.h; then
9419 cat >>confdefs.h <<\_ACEOF
9420 #define TM_IN_SYS_TIME 1
9425 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9426 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9427 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9432 #include "confdefs.h"
9433 #include <sys/types.h>
9434 #include <$ac_cv_struct_tm>
9437 #ifdef F77_DUMMY_MAIN
9441 int F77_DUMMY_MAIN() { return 1; }
9446 static struct tm ac_aggr;
9447 if (ac_aggr.tm_zone)
9453 rm -f conftest.$ac_objext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9455 (eval $ac_compile) 2>&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_member_struct_tm_tm_zone=yes
9467 echo "$as_me: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 ac_cv_member_struct_tm_tm_zone=no
9471 rm -f conftest.$ac_objext conftest.$ac_ext
9473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9474 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9475 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9477 cat >>confdefs.h <<_ACEOF
9478 #define HAVE_STRUCT_TM_TM_ZONE 1
9484 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9486 cat >>confdefs.h <<\_ACEOF
9487 #define HAVE_TM_ZONE 1
9491 echo "$as_me:$LINENO: checking for tzname" >&5
9492 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9493 if test "${ac_cv_var_tzname+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 cat >conftest.$ac_ext <<_ACEOF
9497 #line $LINENO "configure"
9498 #include "confdefs.h"
9500 #ifndef tzname /* For SGI. */
9501 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9504 #ifdef F77_DUMMY_MAIN
9508 int F77_DUMMY_MAIN() { return 1; }
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9520 (eval $ac_link) 2>&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -s conftest$ac_exeext'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 ac_cv_var_tzname=yes
9532 echo "$as_me: failed program was:" >&5
9533 cat conftest.$ac_ext >&5
9536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9538 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9539 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9540 if test $ac_cv_var_tzname = yes; then
9542 cat >>confdefs.h <<\_ACEOF
9543 #define HAVE_TZNAME 1
9549 echo "$as_me:$LINENO: checking for union semun" >&5
9550 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9551 if test "${ac_cv_type_union_semun+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 cat >conftest.$ac_ext <<_ACEOF
9555 #line $LINENO "configure"
9556 #include "confdefs.h"
9557 #include <sys/types.h>
9558 #include <sys/ipc.h>
9559 #include <sys/sem.h>
9561 #ifdef F77_DUMMY_MAIN
9565 int F77_DUMMY_MAIN() { return 1; }
9570 if ((union semun *) 0)
9572 if (sizeof (union semun))
9578 rm -f conftest.$ac_objext
9579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9580 (eval $ac_compile) 2>&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } &&
9584 { ac_try='test -s conftest.$ac_objext'
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; }; then
9590 ac_cv_type_union_semun=yes
9592 echo "$as_me: failed program was:" >&5
9593 cat conftest.$ac_ext >&5
9594 ac_cv_type_union_semun=no
9596 rm -f conftest.$ac_objext conftest.$ac_ext
9598 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9599 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9600 if test $ac_cv_type_union_semun = yes; then
9602 cat >>confdefs.h <<_ACEOF
9603 #define HAVE_UNION_SEMUN 1
9609 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9610 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9611 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 cat >conftest.$ac_ext <<_ACEOF
9615 #line $LINENO "configure"
9616 #include "confdefs.h"
9617 #include <sys/types.h>
9618 #ifdef HAVE_SYS_UN_H
9623 #ifdef F77_DUMMY_MAIN
9627 int F77_DUMMY_MAIN() { return 1; }
9632 if ((struct sockaddr_un *) 0)
9634 if (sizeof (struct sockaddr_un))
9640 rm -f conftest.$ac_objext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9642 (eval $ac_compile) 2>&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
9646 { ac_try='test -s conftest.$ac_objext'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 ac_cv_type_struct_sockaddr_un=yes
9654 echo "$as_me: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9656 ac_cv_type_struct_sockaddr_un=no
9658 rm -f conftest.$ac_objext conftest.$ac_ext
9660 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9661 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9662 if test $ac_cv_type_struct_sockaddr_un = yes; then
9664 cat >>confdefs.h <<_ACEOF
9665 #define HAVE_STRUCT_SOCKADDR_UN 1
9672 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9673 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9674 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 cat >conftest.$ac_ext <<_ACEOF
9678 #line $LINENO "configure"
9679 #include "confdefs.h"
9680 #include <sys/param.h>
9681 #include <sys/socket.h>
9682 #include <sys/ucred.h>
9684 #ifdef F77_DUMMY_MAIN
9688 int F77_DUMMY_MAIN() { return 1; }
9693 if ((struct cmsgcred *) 0)
9695 if (sizeof (struct cmsgcred))
9701 rm -f conftest.$ac_objext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9703 (eval $ac_compile) 2>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -s conftest.$ac_objext'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; }; then
9713 ac_cv_type_struct_cmsgcred=yes
9715 echo "$as_me: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 ac_cv_type_struct_cmsgcred=no
9719 rm -f conftest.$ac_objext conftest.$ac_ext
9721 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9722 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9723 if test $ac_cv_type_struct_cmsgcred = yes; then
9725 cat >>confdefs.h <<_ACEOF
9726 #define HAVE_STRUCT_CMSGCRED 1
9731 echo "$as_me:$LINENO: checking for struct fcred" >&5
9732 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9733 if test "${ac_cv_type_struct_fcred+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9737 #line $LINENO "configure"
9738 #include "confdefs.h"
9739 #include <sys/param.h>
9740 #include <sys/socket.h>
9741 #include <sys/ucred.h>
9743 #ifdef F77_DUMMY_MAIN
9747 int F77_DUMMY_MAIN() { return 1; }
9752 if ((struct fcred *) 0)
9754 if (sizeof (struct fcred))
9760 rm -f conftest.$ac_objext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762 (eval $ac_compile) 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -s conftest.$ac_objext'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_cv_type_struct_fcred=yes
9774 echo "$as_me: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 ac_cv_type_struct_fcred=no
9778 rm -f conftest.$ac_objext conftest.$ac_ext
9780 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9781 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9782 if test $ac_cv_type_struct_fcred = yes; then
9784 cat >>confdefs.h <<_ACEOF
9785 #define HAVE_STRUCT_FCRED 1
9790 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9791 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9792 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 cat >conftest.$ac_ext <<_ACEOF
9796 #line $LINENO "configure"
9797 #include "confdefs.h"
9798 #include <sys/param.h>
9799 #include <sys/socket.h>
9800 #include <sys/ucred.h>
9802 #ifdef F77_DUMMY_MAIN
9806 int F77_DUMMY_MAIN() { return 1; }
9811 if ((struct sockcred *) 0)
9813 if (sizeof (struct sockcred))
9819 rm -f conftest.$ac_objext
9820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9821 (eval $ac_compile) 2>&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -s conftest.$ac_objext'
9826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; }; then
9831 ac_cv_type_struct_sockcred=yes
9833 echo "$as_me: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9835 ac_cv_type_struct_sockcred=no
9837 rm -f conftest.$ac_objext conftest.$ac_ext
9839 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9840 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9841 if test $ac_cv_type_struct_sockcred = yes; then
9843 cat >>confdefs.h <<_ACEOF
9844 #define HAVE_STRUCT_SOCKCRED 1
9851 if test "$with_zlib" = yes; then
9852 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9853 # did not). While we could work around the lack of z_streamp, it
9854 # seems unwise to encourage people to use such old zlib versions...
9855 echo "$as_me:$LINENO: checking for z_streamp" >&5
9856 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9857 if test "${ac_cv_type_z_streamp+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 cat >conftest.$ac_ext <<_ACEOF
9861 #line $LINENO "configure"
9862 #include "confdefs.h"
9865 #ifdef F77_DUMMY_MAIN
9869 int F77_DUMMY_MAIN() { return 1; }
9874 if ((z_streamp *) 0)
9876 if (sizeof (z_streamp))
9882 rm -f conftest.$ac_objext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9884 (eval $ac_compile) 2>&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
9888 { ac_try='test -s conftest.$ac_objext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_cv_type_z_streamp=yes
9896 echo "$as_me: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9898 ac_cv_type_z_streamp=no
9900 rm -f conftest.$ac_objext conftest.$ac_ext
9902 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9903 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9904 if test $ac_cv_type_z_streamp = yes; then
9907 { { echo "$as_me:$LINENO: error: zlib version is too old
9908 Use --without-zlib to disable zlib support." >&5
9909 echo "$as_me: error: zlib version is too old
9910 Use --without-zlib to disable zlib support." >&2;}
9911 { (exit 1); exit 1; }; }
9916 if test "$with_krb5" = yes; then
9917 # Check for differences between MIT and Heimdal (KTH) releases
9918 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9919 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9920 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 cat >conftest.$ac_ext <<_ACEOF
9924 #line $LINENO "configure"
9925 #include "confdefs.h"
9928 #ifdef F77_DUMMY_MAIN
9932 int F77_DUMMY_MAIN() { return 1; }
9937 static krb5_ticket ac_aggr;
9938 if (ac_aggr.enc_part2)
9944 rm -f conftest.$ac_objext
9945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9946 (eval $ac_compile) 2>&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try='test -s conftest.$ac_objext'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; }; then
9956 ac_cv_member_krb5_ticket_enc_part2=yes
9958 echo "$as_me: failed program was:" >&5
9959 cat conftest.$ac_ext >&5
9960 ac_cv_member_krb5_ticket_enc_part2=no
9962 rm -f conftest.$ac_objext conftest.$ac_ext
9964 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9965 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9966 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9968 cat >>confdefs.h <<_ACEOF
9969 #define HAVE_KRB5_TICKET_ENC_PART2 1
9974 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9975 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9976 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 cat >conftest.$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9981 #include "confdefs.h"
9984 #ifdef F77_DUMMY_MAIN
9988 int F77_DUMMY_MAIN() { return 1; }
9993 static krb5_ticket ac_aggr;
10000 rm -f conftest.$ac_objext
10001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10002 (eval $ac_compile) 2>&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } &&
10006 { ac_try='test -s conftest.$ac_objext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_cv_member_krb5_ticket_client=yes
10014 echo "$as_me: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10016 ac_cv_member_krb5_ticket_client=no
10018 rm -f conftest.$ac_objext conftest.$ac_ext
10020 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10021 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10022 if test $ac_cv_member_krb5_ticket_client = yes; then
10024 cat >>confdefs.h <<_ACEOF
10025 #define HAVE_KRB5_TICKET_CLIENT 1
10030 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10031 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10032 { (exit 1); exit 1; }; }
10037 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10038 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10039 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 cat >conftest.$ac_ext <<_ACEOF
10043 #line $LINENO "configure"
10044 #include "confdefs.h"
10047 #ifdef F77_DUMMY_MAIN
10048 # ifdef __cplusplus
10051 int F77_DUMMY_MAIN() { return 1; }
10056 static krb5_error ac_aggr;
10057 if (ac_aggr.text.data)
10063 rm -f conftest.$ac_objext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10065 (eval $ac_compile) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try='test -s conftest.$ac_objext'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; }; then
10075 ac_cv_member_krb5_error_text_data=yes
10077 echo "$as_me: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10079 ac_cv_member_krb5_error_text_data=no
10081 rm -f conftest.$ac_objext conftest.$ac_ext
10083 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10084 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10085 if test $ac_cv_member_krb5_error_text_data = yes; then
10087 cat >>confdefs.h <<_ACEOF
10088 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10093 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10094 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10095 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 cat >conftest.$ac_ext <<_ACEOF
10099 #line $LINENO "configure"
10100 #include "confdefs.h"
10103 #ifdef F77_DUMMY_MAIN
10104 # ifdef __cplusplus
10107 int F77_DUMMY_MAIN() { return 1; }
10112 static krb5_error ac_aggr;
10113 if (ac_aggr.e_data)
10119 rm -f conftest.$ac_objext
10120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10121 (eval $ac_compile) 2>&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -s conftest.$ac_objext'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 ac_cv_member_krb5_error_e_data=yes
10133 echo "$as_me: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10135 ac_cv_member_krb5_error_e_data=no
10137 rm -f conftest.$ac_objext conftest.$ac_ext
10139 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10140 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10141 if test $ac_cv_member_krb5_error_e_data = yes; then
10144 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10145 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10146 { (exit 1); exit 1; }; }
10155 ## Functions, global variables
10157 echo "$as_me:$LINENO: checking for int timezone" >&5
10158 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10159 if test "${pgac_cv_var_int_timezone+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 cat >conftest.$ac_ext <<_ACEOF
10163 #line $LINENO "configure"
10164 #include "confdefs.h"
10167 #ifdef F77_DUMMY_MAIN
10168 # ifdef __cplusplus
10171 int F77_DUMMY_MAIN() { return 1; }
10176 res = timezone / 60;
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10183 (eval $ac_link) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } &&
10187 { ac_try='test -s conftest$ac_exeext'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; }; then
10193 pgac_cv_var_int_timezone=yes
10195 echo "$as_me: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10197 pgac_cv_var_int_timezone=no
10199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10201 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10202 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10203 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10205 cat >>confdefs.h <<\_ACEOF
10206 #define HAVE_INT_TIMEZONE
10210 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10211 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10212 if test "${ac_cv_func_accept_arg1+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 if test "${ac_cv_func_accept_arg2+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 if test "${ac_cv_func_accept_arg3+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10222 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10223 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10224 cat >conftest.$ac_ext <<_ACEOF
10225 #line $LINENO "configure"
10226 #include "confdefs.h"
10227 #ifdef HAVE_SYS_TYPES_H
10228 #include <sys/types.h>
10230 #ifdef HAVE_SYS_SOCKET_H
10231 #include <sys/socket.h>
10233 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10234 #ifdef F77_DUMMY_MAIN
10235 # ifdef __cplusplus
10238 int F77_DUMMY_MAIN() { return 1; }
10248 rm -f conftest.$ac_objext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250 (eval $ac_compile) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -s conftest.$ac_objext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_not_found=no; break 3
10262 echo "$as_me: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10266 rm -f conftest.$ac_objext conftest.$ac_ext
10270 if test "$ac_not_found" = yes; then
10271 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10272 echo "$as_me: error: could not determine argument types" >&2;}
10273 { (exit 1); exit 1; }; }
10275 if test "$ac_cv_func_accept_arg3" = "void"; then
10276 ac_cv_func_accept_arg3=int
10284 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10285 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10287 cat >>confdefs.h <<_ACEOF
10288 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10292 cat >>confdefs.h <<_ACEOF
10293 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10297 cat >>confdefs.h <<_ACEOF
10298 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10302 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10303 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10304 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 cat >conftest.$ac_ext <<_ACEOF
10308 #line $LINENO "configure"
10309 #include "confdefs.h"
10310 #include <sys/time.h>
10311 #ifdef F77_DUMMY_MAIN
10312 # ifdef __cplusplus
10315 int F77_DUMMY_MAIN() { return 1; }
10320 struct timeval *tp;
10321 struct timezone *tzp;
10322 gettimeofday(tp,tzp);
10327 rm -f conftest.$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 pgac_cv_func_gettimeofday_1arg=no
10341 echo "$as_me: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10343 pgac_cv_func_gettimeofday_1arg=yes
10345 rm -f conftest.$ac_objext conftest.$ac_ext
10347 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10348 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10349 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10351 cat >>confdefs.h <<\_ACEOF
10352 #define GETTIMEOFDAY_1ARG
10357 # SunOS doesn't handle negative byte comparisons properly with +/- return
10358 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10359 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10360 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 if test "$cross_compiling" = yes; then
10364 pgac_cv_func_memcmp_clean=no
10366 cat >conftest.$ac_ext <<_ACEOF
10367 #line $LINENO "configure"
10368 #include "confdefs.h"
10372 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10373 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10377 rm -f conftest$ac_exeext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10379 (eval $ac_link) 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; }; then
10388 pgac_cv_func_memcmp_clean=yes
10390 echo "$as_me: program exited with status $ac_status" >&5
10391 echo "$as_me: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10393 ( exit $ac_status )
10394 pgac_cv_func_memcmp_clean=no
10396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10399 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10400 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10401 if test $pgac_cv_func_memcmp_clean = no ; then
10420 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10423 echo "$as_me:$LINENO: checking for $ac_func" >&5
10424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10425 if eval "test \"\${$as_ac_var+set}\" = set"; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 cat >conftest.$ac_ext <<_ACEOF
10429 #line $LINENO "configure"
10430 #include "confdefs.h"
10431 /* System header to define __stub macros and hopefully few prototypes,
10432 which can conflict with char $ac_func (); below. */
10433 #include <assert.h>
10434 /* Override any gcc2 internal prototype to avoid an error. */
10438 /* We use char because int might match the return type of a gcc2
10439 builtin and then its argument prototype would still apply. */
10443 #ifdef F77_DUMMY_MAIN
10444 # ifdef __cplusplus
10447 int F77_DUMMY_MAIN() { return 1; }
10452 /* The GNU C library defines this for functions which it implements
10453 to always fail with ENOSYS. Some functions are actually named
10454 something starting with __ and the normal name is an alias. */
10455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10467 (eval $ac_link) 2>&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -s conftest$ac_exeext'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 eval "$as_ac_var=yes"
10479 echo "$as_me: failed program was:" >&5
10480 cat conftest.$ac_ext >&5
10481 eval "$as_ac_var=no"
10483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10487 if test `eval echo '${'$as_ac_var'}'` = yes; then
10488 cat >>confdefs.h <<_ACEOF
10489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10496 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10497 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10498 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 cat >conftest.$ac_ext <<_ACEOF
10502 #line $LINENO "configure"
10503 #include "confdefs.h"
10504 #include <unistd.h>
10506 #ifdef F77_DUMMY_MAIN
10507 # ifdef __cplusplus
10510 int F77_DUMMY_MAIN() { return 1; }
10516 char *p = (char *) fdatasync;
10523 rm -f conftest.$ac_objext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525 (eval $ac_compile) 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -s conftest.$ac_objext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_cv_have_decl_fdatasync=yes
10537 echo "$as_me: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10539 ac_cv_have_decl_fdatasync=no
10541 rm -f conftest.$ac_objext conftest.$ac_ext
10543 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10544 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10545 if test $ac_cv_have_decl_fdatasync = yes; then
10547 cat >>confdefs.h <<_ACEOF
10548 #define HAVE_DECL_FDATASYNC 1
10553 cat >>confdefs.h <<_ACEOF
10554 #define HAVE_DECL_FDATASYNC 0
10562 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10563 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10564 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 cat >conftest.$ac_ext <<_ACEOF
10568 #line $LINENO "configure"
10569 #include "confdefs.h"
10570 #include <machine/vmparam.h>
10571 #include <sys/exec.h>
10573 #ifdef F77_DUMMY_MAIN
10574 # ifdef __cplusplus
10577 int F77_DUMMY_MAIN() { return 1; }
10582 PS_STRINGS->ps_nargvstr = 1;
10583 PS_STRINGS->ps_argvstr = "foo";
10588 rm -f conftest.$ac_objext conftest$ac_exeext
10589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590 (eval $ac_link) 2>&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } &&
10594 { ac_try='test -s conftest$ac_exeext'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 pgac_cv_var_PS_STRINGS=yes
10602 echo "$as_me: failed program was:" >&5
10603 cat conftest.$ac_ext >&5
10604 pgac_cv_var_PS_STRINGS=no
10606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10608 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10609 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10610 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10612 cat >>confdefs.h <<\_ACEOF
10613 #define HAVE_PS_STRINGS
10619 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10620 # is missing. Yes, there are machines that have only one. We may
10621 # also decide to use snprintf.c if snprintf() is present but does not
10622 # have working "long long int" support -- see below.
10626 for ac_func in snprintf
10628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10629 echo "$as_me:$LINENO: checking for $ac_func" >&5
10630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10631 if eval "test \"\${$as_ac_var+set}\" = set"; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 cat >conftest.$ac_ext <<_ACEOF
10635 #line $LINENO "configure"
10636 #include "confdefs.h"
10637 /* System header to define __stub macros and hopefully few prototypes,
10638 which can conflict with char $ac_func (); below. */
10639 #include <assert.h>
10640 /* Override any gcc2 internal prototype to avoid an error. */
10644 /* We use char because int might match the return type of a gcc2
10645 builtin and then its argument prototype would still apply. */
10649 #ifdef F77_DUMMY_MAIN
10650 # ifdef __cplusplus
10653 int F77_DUMMY_MAIN() { return 1; }
10658 /* The GNU C library defines this for functions which it implements
10659 to always fail with ENOSYS. Some functions are actually named
10660 something starting with __ and the normal name is an alias. */
10661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10671 rm -f conftest.$ac_objext conftest$ac_exeext
10672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673 (eval $ac_link) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } &&
10677 { ac_try='test -s conftest$ac_exeext'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 eval "$as_ac_var=yes"
10685 echo "$as_me: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10687 eval "$as_ac_var=no"
10689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10693 if test `eval echo '${'$as_ac_var'}'` = yes; then
10694 cat >>confdefs.h <<_ACEOF
10695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10699 SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
10704 for ac_func in vsnprintf
10706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10707 echo "$as_me:$LINENO: checking for $ac_func" >&5
10708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10709 if eval "test \"\${$as_ac_var+set}\" = set"; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 cat >conftest.$ac_ext <<_ACEOF
10713 #line $LINENO "configure"
10714 #include "confdefs.h"
10715 /* System header to define __stub macros and hopefully few prototypes,
10716 which can conflict with char $ac_func (); below. */
10717 #include <assert.h>
10718 /* Override any gcc2 internal prototype to avoid an error. */
10722 /* We use char because int might match the return type of a gcc2
10723 builtin and then its argument prototype would still apply. */
10727 #ifdef F77_DUMMY_MAIN
10728 # ifdef __cplusplus
10731 int F77_DUMMY_MAIN() { return 1; }
10736 /* The GNU C library defines this for functions which it implements
10737 to always fail with ENOSYS. Some functions are actually named
10738 something starting with __ and the normal name is an alias. */
10739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10749 rm -f conftest.$ac_objext conftest$ac_exeext
10750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10751 (eval $ac_link) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -s conftest$ac_exeext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 eval "$as_ac_var=yes"
10763 echo "$as_me: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10765 eval "$as_ac_var=no"
10767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10771 if test `eval echo '${'$as_ac_var'}'` = yes; then
10772 cat >>confdefs.h <<_ACEOF
10773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10777 SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
10784 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10785 # include/c.h will provide declarations. Note this is a separate test
10786 # from whether the functions exist in the C library --- there are
10787 # systems that have the functions but don't bother to declare them :-(
10789 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10790 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10791 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 cat >conftest.$ac_ext <<_ACEOF
10795 #line $LINENO "configure"
10796 #include "confdefs.h"
10797 $ac_includes_default
10798 #ifdef F77_DUMMY_MAIN
10799 # ifdef __cplusplus
10802 int F77_DUMMY_MAIN() { return 1; }
10808 char *p = (char *) snprintf;
10815 rm -f conftest.$ac_objext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10817 (eval $ac_compile) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -s conftest.$ac_objext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 ac_cv_have_decl_snprintf=yes
10829 echo "$as_me: failed program was:" >&5
10830 cat conftest.$ac_ext >&5
10831 ac_cv_have_decl_snprintf=no
10833 rm -f conftest.$ac_objext conftest.$ac_ext
10835 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10836 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10837 if test $ac_cv_have_decl_snprintf = yes; then
10839 cat >>confdefs.h <<_ACEOF
10840 #define HAVE_DECL_SNPRINTF 1
10845 cat >>confdefs.h <<_ACEOF
10846 #define HAVE_DECL_SNPRINTF 0
10851 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10852 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10853 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 cat >conftest.$ac_ext <<_ACEOF
10857 #line $LINENO "configure"
10858 #include "confdefs.h"
10859 $ac_includes_default
10860 #ifdef F77_DUMMY_MAIN
10861 # ifdef __cplusplus
10864 int F77_DUMMY_MAIN() { return 1; }
10870 char *p = (char *) vsnprintf;
10877 rm -f conftest.$ac_objext
10878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10879 (eval $ac_compile) 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -s conftest.$ac_objext'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10889 ac_cv_have_decl_vsnprintf=yes
10891 echo "$as_me: failed program was:" >&5
10892 cat conftest.$ac_ext >&5
10893 ac_cv_have_decl_vsnprintf=no
10895 rm -f conftest.$ac_objext conftest.$ac_ext
10897 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10898 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10899 if test $ac_cv_have_decl_vsnprintf = yes; then
10901 cat >>confdefs.h <<_ACEOF
10902 #define HAVE_DECL_VSNPRINTF 1
10907 cat >>confdefs.h <<_ACEOF
10908 #define HAVE_DECL_VSNPRINTF 0
10917 # do this one the hard way in case isinf() is a macro
10918 echo "$as_me:$LINENO: checking for isinf" >&5
10919 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10920 if test "${ac_cv_func_isinf+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 cat >conftest.$ac_ext <<_ACEOF
10924 #line $LINENO "configure"
10925 #include "confdefs.h"
10928 #ifdef F77_DUMMY_MAIN
10929 # ifdef __cplusplus
10932 int F77_DUMMY_MAIN() { return 1; }
10937 double x = 0.0; int res = isinf(x);
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944 (eval $ac_link) 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -s conftest$ac_exeext'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 ac_cv_func_isinf=yes
10956 echo "$as_me: failed program was:" >&5
10957 cat conftest.$ac_ext >&5
10958 ac_cv_func_isinf=no
10960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10962 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10963 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10965 if test $ac_cv_func_isinf = yes ; then
10967 cat >>confdefs.h <<\_ACEOF
10968 #define HAVE_ISINF 1
10974 # Look for a way to implement a substitute for isinf()
10979 for ac_func in fpclass fp_class fp_class_d class
10981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10982 echo "$as_me:$LINENO: checking for $ac_func" >&5
10983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10984 if eval "test \"\${$as_ac_var+set}\" = set"; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 cat >conftest.$ac_ext <<_ACEOF
10988 #line $LINENO "configure"
10989 #include "confdefs.h"
10990 /* System header to define __stub macros and hopefully few prototypes,
10991 which can conflict with char $ac_func (); below. */
10992 #include <assert.h>
10993 /* Override any gcc2 internal prototype to avoid an error. */
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
11002 #ifdef F77_DUMMY_MAIN
11003 # ifdef __cplusplus
11006 int F77_DUMMY_MAIN() { return 1; }
11011 /* The GNU C library defines this for functions which it implements
11012 to always fail with ENOSYS. Some functions are actually named
11013 something starting with __ and the normal name is an alias. */
11014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026 (eval $ac_link) 2>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try='test -s conftest$ac_exeext'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 eval "$as_ac_var=yes"
11038 echo "$as_me: failed program was:" >&5
11039 cat conftest.$ac_ext >&5
11040 eval "$as_ac_var=no"
11042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11046 if test `eval echo '${'$as_ac_var'}'` = yes; then
11047 cat >>confdefs.h <<_ACEOF
11048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11059 for ac_func in getrusage
11061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11062 echo "$as_me:$LINENO: checking for $ac_func" >&5
11063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11064 if eval "test \"\${$as_ac_var+set}\" = set"; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 cat >conftest.$ac_ext <<_ACEOF
11068 #line $LINENO "configure"
11069 #include "confdefs.h"
11070 /* System header to define __stub macros and hopefully few prototypes,
11071 which can conflict with char $ac_func (); below. */
11072 #include <assert.h>
11073 /* Override any gcc2 internal prototype to avoid an error. */
11077 /* We use char because int might match the return type of a gcc2
11078 builtin and then its argument prototype would still apply. */
11082 #ifdef F77_DUMMY_MAIN
11083 # ifdef __cplusplus
11086 int F77_DUMMY_MAIN() { return 1; }
11091 /* The GNU C library defines this for functions which it implements
11092 to always fail with ENOSYS. Some functions are actually named
11093 something starting with __ and the normal name is an alias. */
11094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11104 rm -f conftest.$ac_objext conftest$ac_exeext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106 (eval $ac_link) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try='test -s conftest$ac_exeext'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 eval "$as_ac_var=yes"
11118 echo "$as_me: failed program was:" >&5
11119 cat conftest.$ac_ext >&5
11120 eval "$as_ac_var=no"
11122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11126 if test `eval echo '${'$as_ac_var'}'` = yes; then
11127 cat >>confdefs.h <<_ACEOF
11128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11132 GETRUSAGE='$(top_builddir)/src/backend/port/getrusage.o'
11138 for ac_func in srandom
11140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11141 echo "$as_me:$LINENO: checking for $ac_func" >&5
11142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11143 if eval "test \"\${$as_ac_var+set}\" = set"; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 cat >conftest.$ac_ext <<_ACEOF
11147 #line $LINENO "configure"
11148 #include "confdefs.h"
11149 /* System header to define __stub macros and hopefully few prototypes,
11150 which can conflict with char $ac_func (); below. */
11151 #include <assert.h>
11152 /* Override any gcc2 internal prototype to avoid an error. */
11156 /* We use char because int might match the return type of a gcc2
11157 builtin and then its argument prototype would still apply. */
11161 #ifdef F77_DUMMY_MAIN
11162 # ifdef __cplusplus
11165 int F77_DUMMY_MAIN() { return 1; }
11170 /* The GNU C library defines this for functions which it implements
11171 to always fail with ENOSYS. Some functions are actually named
11172 something starting with __ and the normal name is an alias. */
11173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 eval "$as_ac_var=yes"
11197 echo "$as_me: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 eval "$as_ac_var=no"
11201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11205 if test `eval echo '${'$as_ac_var'}'` = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11211 SRANDOM='$(top_builddir)/src/backend/port/srandom.o'
11217 for ac_func in gethostname
11219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11220 echo "$as_me:$LINENO: checking for $ac_func" >&5
11221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11222 if eval "test \"\${$as_ac_var+set}\" = set"; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 cat >conftest.$ac_ext <<_ACEOF
11226 #line $LINENO "configure"
11227 #include "confdefs.h"
11228 /* System header to define __stub macros and hopefully few prototypes,
11229 which can conflict with char $ac_func (); below. */
11230 #include <assert.h>
11231 /* Override any gcc2 internal prototype to avoid an error. */
11235 /* We use char because int might match the return type of a gcc2
11236 builtin and then its argument prototype would still apply. */
11240 #ifdef F77_DUMMY_MAIN
11241 # ifdef __cplusplus
11244 int F77_DUMMY_MAIN() { return 1; }
11249 /* The GNU C library defines this for functions which it implements
11250 to always fail with ENOSYS. Some functions are actually named
11251 something starting with __ and the normal name is an alias. */
11252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11262 rm -f conftest.$ac_objext conftest$ac_exeext
11263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11264 (eval $ac_link) 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -s conftest$ac_exeext'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; }; then
11274 eval "$as_ac_var=yes"
11276 echo "$as_me: failed program was:" >&5
11277 cat conftest.$ac_ext >&5
11278 eval "$as_ac_var=no"
11280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11284 if test `eval echo '${'$as_ac_var'}'` = yes; then
11285 cat >>confdefs.h <<_ACEOF
11286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11290 GETHOSTNAME='$(top_builddir)/src/backend/port/gethostname.o'
11296 for ac_func in random
11298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11299 echo "$as_me:$LINENO: checking for $ac_func" >&5
11300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11301 if eval "test \"\${$as_ac_var+set}\" = set"; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 cat >conftest.$ac_ext <<_ACEOF
11305 #line $LINENO "configure"
11306 #include "confdefs.h"
11307 /* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char $ac_func (); below. */
11309 #include <assert.h>
11310 /* Override any gcc2 internal prototype to avoid an error. */
11314 /* We use char because int might match the return type of a gcc2
11315 builtin and then its argument prototype would still apply. */
11319 #ifdef F77_DUMMY_MAIN
11320 # ifdef __cplusplus
11323 int F77_DUMMY_MAIN() { return 1; }
11328 /* The GNU C library defines this for functions which it implements
11329 to always fail with ENOSYS. Some functions are actually named
11330 something starting with __ and the normal name is an alias. */
11331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11341 rm -f conftest.$ac_objext conftest$ac_exeext
11342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11343 (eval $ac_link) 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } &&
11347 { ac_try='test -s conftest$ac_exeext'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 eval "$as_ac_var=yes"
11355 echo "$as_me: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11357 eval "$as_ac_var=no"
11359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11363 if test `eval echo '${'$as_ac_var'}'` = yes; then
11364 cat >>confdefs.h <<_ACEOF
11365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11369 MISSING_RANDOM='$(top_builddir)/src/backend/port/random.o'
11375 for ac_func in inet_aton
11377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 echo "$as_me:$LINENO: checking for $ac_func" >&5
11379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11380 if eval "test \"\${$as_ac_var+set}\" = set"; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11386 /* System header to define __stub macros and hopefully few prototypes,
11387 which can conflict with char $ac_func (); below. */
11388 #include <assert.h>
11389 /* Override any gcc2 internal prototype to avoid an error. */
11393 /* We use char because int might match the return type of a gcc2
11394 builtin and then its argument prototype would still apply. */
11398 #ifdef F77_DUMMY_MAIN
11399 # ifdef __cplusplus
11402 int F77_DUMMY_MAIN() { return 1; }
11407 /* The GNU C library defines this for functions which it implements
11408 to always fail with ENOSYS. Some functions are actually named
11409 something starting with __ and the normal name is an alias. */
11410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422 (eval $ac_link) 2>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -s conftest$ac_exeext'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 eval "$as_ac_var=yes"
11434 echo "$as_me: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11436 eval "$as_ac_var=no"
11438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11442 if test `eval echo '${'$as_ac_var'}'` = yes; then
11443 cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11448 INET_ATON='$(top_builddir)/src/backend/port/inet_aton.o'
11454 for ac_func in strerror
11456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11457 echo "$as_me:$LINENO: checking for $ac_func" >&5
11458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11459 if eval "test \"\${$as_ac_var+set}\" = set"; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 cat >conftest.$ac_ext <<_ACEOF
11463 #line $LINENO "configure"
11464 #include "confdefs.h"
11465 /* System header to define __stub macros and hopefully few prototypes,
11466 which can conflict with char $ac_func (); below. */
11467 #include <assert.h>
11468 /* Override any gcc2 internal prototype to avoid an error. */
11472 /* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11477 #ifdef F77_DUMMY_MAIN
11478 # ifdef __cplusplus
11481 int F77_DUMMY_MAIN() { return 1; }
11486 /* The GNU C library defines this for functions which it implements
11487 to always fail with ENOSYS. Some functions are actually named
11488 something starting with __ and the normal name is an alias. */
11489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11499 rm -f conftest.$ac_objext conftest$ac_exeext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11501 (eval $ac_link) 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } &&
11505 { ac_try='test -s conftest$ac_exeext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 eval "$as_ac_var=yes"
11513 echo "$as_me: failed program was:" >&5
11514 cat conftest.$ac_ext >&5
11515 eval "$as_ac_var=no"
11517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11521 if test `eval echo '${'$as_ac_var'}'` = yes; then
11522 cat >>confdefs.h <<_ACEOF
11523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11527 STRERROR='$(top_builddir)/src/backend/port/strerror.o'
11533 for ac_func in strdup
11535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11536 echo "$as_me:$LINENO: checking for $ac_func" >&5
11537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11538 if eval "test \"\${$as_ac_var+set}\" = set"; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 cat >conftest.$ac_ext <<_ACEOF
11542 #line $LINENO "configure"
11543 #include "confdefs.h"
11544 /* System header to define __stub macros and hopefully few prototypes,
11545 which can conflict with char $ac_func (); below. */
11546 #include <assert.h>
11547 /* Override any gcc2 internal prototype to avoid an error. */
11551 /* We use char because int might match the return type of a gcc2
11552 builtin and then its argument prototype would still apply. */
11556 #ifdef F77_DUMMY_MAIN
11557 # ifdef __cplusplus
11560 int F77_DUMMY_MAIN() { return 1; }
11565 /* The GNU C library defines this for functions which it implements
11566 to always fail with ENOSYS. Some functions are actually named
11567 something starting with __ and the normal name is an alias. */
11568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11578 rm -f conftest.$ac_objext conftest$ac_exeext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11580 (eval $ac_link) 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -s conftest$ac_exeext'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 eval "$as_ac_var=yes"
11592 echo "$as_me: failed program was:" >&5
11593 cat conftest.$ac_ext >&5
11594 eval "$as_ac_var=no"
11596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11600 if test `eval echo '${'$as_ac_var'}'` = yes; then
11601 cat >>confdefs.h <<_ACEOF
11602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11606 STRDUP='$(top_builddir)/src/utils/strdup.o'
11612 for ac_func in strtol
11614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11615 echo "$as_me:$LINENO: checking for $ac_func" >&5
11616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11617 if eval "test \"\${$as_ac_var+set}\" = set"; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 cat >conftest.$ac_ext <<_ACEOF
11621 #line $LINENO "configure"
11622 #include "confdefs.h"
11623 /* System header to define __stub macros and hopefully few prototypes,
11624 which can conflict with char $ac_func (); below. */
11625 #include <assert.h>
11626 /* Override any gcc2 internal prototype to avoid an error. */
11630 /* We use char because int might match the return type of a gcc2
11631 builtin and then its argument prototype would still apply. */
11635 #ifdef F77_DUMMY_MAIN
11636 # ifdef __cplusplus
11639 int F77_DUMMY_MAIN() { return 1; }
11644 /* The GNU C library defines this for functions which it implements
11645 to always fail with ENOSYS. Some functions are actually named
11646 something starting with __ and the normal name is an alias. */
11647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659 (eval $ac_link) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try='test -s conftest$ac_exeext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 eval "$as_ac_var=yes"
11671 echo "$as_me: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11673 eval "$as_ac_var=no"
11675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11679 if test `eval echo '${'$as_ac_var'}'` = yes; then
11680 cat >>confdefs.h <<_ACEOF
11681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11685 STRTOL='$(top_builddir)/src/backend/port/strtol.o'
11691 for ac_func in strtoul
11693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11694 echo "$as_me:$LINENO: checking for $ac_func" >&5
11695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11696 if eval "test \"\${$as_ac_var+set}\" = set"; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 cat >conftest.$ac_ext <<_ACEOF
11700 #line $LINENO "configure"
11701 #include "confdefs.h"
11702 /* System header to define __stub macros and hopefully few prototypes,
11703 which can conflict with char $ac_func (); below. */
11704 #include <assert.h>
11705 /* Override any gcc2 internal prototype to avoid an error. */
11709 /* We use char because int might match the return type of a gcc2
11710 builtin and then its argument prototype would still apply. */
11714 #ifdef F77_DUMMY_MAIN
11715 # ifdef __cplusplus
11718 int F77_DUMMY_MAIN() { return 1; }
11723 /* The GNU C library defines this for functions which it implements
11724 to always fail with ENOSYS. Some functions are actually named
11725 something starting with __ and the normal name is an alias. */
11726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738 (eval $ac_link) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } &&
11742 { ac_try='test -s conftest$ac_exeext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 eval "$as_ac_var=yes"
11750 echo "$as_me: failed program was:" >&5
11751 cat conftest.$ac_ext >&5
11752 eval "$as_ac_var=no"
11754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11758 if test `eval echo '${'$as_ac_var'}'` = yes; then
11759 cat >>confdefs.h <<_ACEOF
11760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11764 STRTOUL='$(top_builddir)/src/backend/port/strtoul.o'
11770 for ac_func in strcasecmp
11772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11773 echo "$as_me:$LINENO: checking for $ac_func" >&5
11774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11775 if eval "test \"\${$as_ac_var+set}\" = set"; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11778 cat >conftest.$ac_ext <<_ACEOF
11779 #line $LINENO "configure"
11780 #include "confdefs.h"
11781 /* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func (); below. */
11783 #include <assert.h>
11784 /* Override any gcc2 internal prototype to avoid an error. */
11788 /* We use char because int might match the return type of a gcc2
11789 builtin and then its argument prototype would still apply. */
11793 #ifdef F77_DUMMY_MAIN
11794 # ifdef __cplusplus
11797 int F77_DUMMY_MAIN() { return 1; }
11802 /* The GNU C library defines this for functions which it implements
11803 to always fail with ENOSYS. Some functions are actually named
11804 something starting with __ and the normal name is an alias. */
11805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11815 rm -f conftest.$ac_objext conftest$ac_exeext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11817 (eval $ac_link) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -s conftest$ac_exeext'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 eval "$as_ac_var=yes"
11829 echo "$as_me: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11831 eval "$as_ac_var=no"
11833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11837 if test `eval echo '${'$as_ac_var'}'` = yes; then
11838 cat >>confdefs.h <<_ACEOF
11839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11843 STRCASECMP='$(top_builddir)/src/backend/port/strcasecmp.o'
11849 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11850 # this hackery with HPUXMATHLIB allows us to cope.
11854 if [ -r /lib/pa1.1/libm.a ] ; then
11855 HPUXMATHLIB="-L /lib/pa1.1 -lm"
11861 for ac_func in rint
11863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11864 echo "$as_me:$LINENO: checking for $ac_func" >&5
11865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11866 if eval "test \"\${$as_ac_var+set}\" = set"; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 cat >conftest.$ac_ext <<_ACEOF
11870 #line $LINENO "configure"
11871 #include "confdefs.h"
11872 /* System header to define __stub macros and hopefully few prototypes,
11873 which can conflict with char $ac_func (); below. */
11874 #include <assert.h>
11875 /* Override any gcc2 internal prototype to avoid an error. */
11879 /* We use char because int might match the return type of a gcc2
11880 builtin and then its argument prototype would still apply. */
11884 #ifdef F77_DUMMY_MAIN
11885 # ifdef __cplusplus
11888 int F77_DUMMY_MAIN() { return 1; }
11893 /* The GNU C library defines this for functions which it implements
11894 to always fail with ENOSYS. Some functions are actually named
11895 something starting with __ and the normal name is an alias. */
11896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908 (eval $ac_link) 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -s conftest$ac_exeext'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 eval "$as_ac_var=yes"
11920 echo "$as_me: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11922 eval "$as_ac_var=no"
11924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11928 if test `eval echo '${'$as_ac_var'}'` = yes; then
11929 cat >>confdefs.h <<_ACEOF
11930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11934 echo "$as_me:$LINENO: checking for rint in -lm" >&5
11935 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11936 if test "${ac_cv_lib_m_rint+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-lm $HPUXMATHLIB $LIBS"
11941 cat >conftest.$ac_ext <<_ACEOF
11942 #line $LINENO "configure"
11943 #include "confdefs.h"
11945 /* Override any gcc2 internal prototype to avoid an error. */
11949 /* We use char because int might match the return type of a gcc2
11950 builtin and then its argument prototype would still apply. */
11952 #ifdef F77_DUMMY_MAIN
11953 # ifdef __cplusplus
11956 int F77_DUMMY_MAIN() { return 1; }
11966 rm -f conftest.$ac_objext conftest$ac_exeext
11967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11968 (eval $ac_link) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 ac_cv_lib_m_rint=yes
11980 echo "$as_me: failed program was:" >&5
11981 cat conftest.$ac_ext >&5
11982 ac_cv_lib_m_rint=no
11984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11985 LIBS=$ac_check_lib_save_LIBS
11987 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11988 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11989 if test $ac_cv_lib_m_rint = yes; then
11990 cat >>confdefs.h <<\_ACEOF
11991 #define HAVE_RINT 1
12001 if test "$with_readline" = yes; then
12002 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12003 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12004 cat >conftest.$ac_ext <<_ACEOF
12005 #line $LINENO "configure"
12006 #include "confdefs.h"
12008 #ifdef HAVE_READLINE_READLINE_H
12009 # include <readline/readline.h>
12010 #elif defined(HAVE_READLINE_H)
12011 # include <readline.h>
12014 #ifdef F77_DUMMY_MAIN
12015 # ifdef __cplusplus
12018 int F77_DUMMY_MAIN() { return 1; }
12023 rl_completion_append_character = 'x';
12028 rm -f conftest.$ac_objext conftest$ac_exeext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12030 (eval $ac_link) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try='test -s conftest$ac_exeext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 echo "$as_me:$LINENO: result: yes" >&5
12041 echo "${ECHO_T}yes" >&6
12043 cat >>confdefs.h <<\_ACEOF
12044 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12048 echo "$as_me: failed program was:" >&5
12049 cat conftest.$ac_ext >&5
12050 echo "$as_me:$LINENO: result: no" >&5
12051 echo "${ECHO_T}no" >&6
12053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12056 for ac_func in rl_completion_matches rl_filename_completion_function
12058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12059 echo "$as_me:$LINENO: checking for $ac_func" >&5
12060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12061 if eval "test \"\${$as_ac_var+set}\" = set"; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 cat >conftest.$ac_ext <<_ACEOF
12065 #line $LINENO "configure"
12066 #include "confdefs.h"
12067 /* System header to define __stub macros and hopefully few prototypes,
12068 which can conflict with char $ac_func (); below. */
12069 #include <assert.h>
12070 /* Override any gcc2 internal prototype to avoid an error. */
12074 /* We use char because int might match the return type of a gcc2
12075 builtin and then its argument prototype would still apply. */
12079 #ifdef F77_DUMMY_MAIN
12080 # ifdef __cplusplus
12083 int F77_DUMMY_MAIN() { return 1; }
12088 /* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
12091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12101 rm -f conftest.$ac_objext conftest$ac_exeext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103 (eval $ac_link) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -s conftest$ac_exeext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113 eval "$as_ac_var=yes"
12115 echo "$as_me: failed program was:" >&5
12116 cat conftest.$ac_ext >&5
12117 eval "$as_ac_var=no"
12119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12123 if test `eval echo '${'$as_ac_var'}'` = yes; then
12124 cat >>confdefs.h <<_ACEOF
12125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12134 echo "$as_me:$LINENO: checking for finite" >&5
12135 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12136 cat >conftest.$ac_ext <<_ACEOF
12137 #line $LINENO "configure"
12138 #include "confdefs.h"
12140 #ifdef F77_DUMMY_MAIN
12141 # ifdef __cplusplus
12144 int F77_DUMMY_MAIN() { return 1; }
12149 int dummy=finite(1.0);
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156 (eval $ac_link) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_FINITE 1
12171 echo "$as_me:$LINENO: result: yes" >&5
12172 echo "${ECHO_T}yes" >&6
12174 echo "$as_me: failed program was:" >&5
12175 cat conftest.$ac_ext >&5
12176 echo "$as_me:$LINENO: result: no" >&5
12177 echo "${ECHO_T}no" >&6
12179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12181 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12182 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12183 cat >conftest.$ac_ext <<_ACEOF
12184 #line $LINENO "configure"
12185 #include "confdefs.h"
12186 #include <setjmp.h>
12187 #ifdef F77_DUMMY_MAIN
12188 # ifdef __cplusplus
12191 int F77_DUMMY_MAIN() { return 1; }
12196 sigjmp_buf x; sigsetjmp(x, 1);
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12203 (eval $ac_link) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -s conftest$ac_exeext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12214 cat >>confdefs.h <<\_ACEOF
12215 #define HAVE_SIGSETJMP 1
12218 echo "$as_me:$LINENO: result: yes" >&5
12219 echo "${ECHO_T}yes" >&6
12221 echo "$as_me: failed program was:" >&5
12222 cat conftest.$ac_ext >&5
12223 echo "$as_me:$LINENO: result: no" >&5
12224 echo "${ECHO_T}no" >&6
12226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12228 echo "$as_me:$LINENO: checking for syslog" >&5
12229 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12230 if test "${ac_cv_func_syslog+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 cat >conftest.$ac_ext <<_ACEOF
12234 #line $LINENO "configure"
12235 #include "confdefs.h"
12236 /* System header to define __stub macros and hopefully few prototypes,
12237 which can conflict with char syslog (); below. */
12238 #include <assert.h>
12239 /* Override any gcc2 internal prototype to avoid an error. */
12243 /* We use char because int might match the return type of a gcc2
12244 builtin and then its argument prototype would still apply. */
12248 #ifdef F77_DUMMY_MAIN
12249 # ifdef __cplusplus
12252 int F77_DUMMY_MAIN() { return 1; }
12257 /* The GNU C library defines this for functions which it implements
12258 to always fail with ENOSYS. Some functions are actually named
12259 something starting with __ and the normal name is an alias. */
12260 #if defined (__stub_syslog) || defined (__stub___syslog)
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12272 (eval $ac_link) 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -s conftest$ac_exeext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 ac_cv_func_syslog=yes
12284 echo "$as_me: failed program was:" >&5
12285 cat conftest.$ac_ext >&5
12286 ac_cv_func_syslog=no
12288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12290 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12291 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12292 if test $ac_cv_func_syslog = yes; then
12293 if test "${ac_cv_header_syslog_h+set}" = set; then
12294 echo "$as_me:$LINENO: checking for syslog.h" >&5
12295 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12296 if test "${ac_cv_header_syslog_h+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12300 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12302 # Is the header compilable?
12303 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12304 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12305 cat >conftest.$ac_ext <<_ACEOF
12306 #line $LINENO "configure"
12307 #include "confdefs.h"
12308 $ac_includes_default
12309 #include <syslog.h>
12311 rm -f conftest.$ac_objext
12312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12313 (eval $ac_compile) 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try='test -s conftest.$ac_objext'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 ac_header_compiler=yes
12325 echo "$as_me: failed program was:" >&5
12326 cat conftest.$ac_ext >&5
12327 ac_header_compiler=no
12329 rm -f conftest.$ac_objext conftest.$ac_ext
12330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12331 echo "${ECHO_T}$ac_header_compiler" >&6
12333 # Is the header present?
12334 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12335 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12336 cat >conftest.$ac_ext <<_ACEOF
12337 #line $LINENO "configure"
12338 #include "confdefs.h"
12339 #include <syslog.h>
12341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12344 egrep -v '^ *\+' conftest.er1 >conftest.err
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } >/dev/null; then
12349 if test -s conftest.err; then
12350 ac_cpp_err=$ac_c_preproc_warn_flag
12357 if test -z "$ac_cpp_err"; then
12358 ac_header_preproc=yes
12360 echo "$as_me: failed program was:" >&5
12361 cat conftest.$ac_ext >&5
12362 ac_header_preproc=no
12364 rm -f conftest.err conftest.$ac_ext
12365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12366 echo "${ECHO_T}$ac_header_preproc" >&6
12368 # So? What about this header?
12369 case $ac_header_compiler:$ac_header_preproc in
12371 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12372 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12374 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12376 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12377 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12379 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12381 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12383 echo "$as_me:$LINENO: checking for syslog.h" >&5
12384 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12385 if test "${ac_cv_header_syslog_h+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 ac_cv_header_syslog_h=$ac_header_preproc
12390 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12391 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12394 if test $ac_cv_header_syslog_h = yes; then
12395 cat >>confdefs.h <<\_ACEOF
12396 #define HAVE_SYSLOG 1
12405 echo "$as_me:$LINENO: checking for optreset" >&5
12406 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12407 if test "${pgac_cv_var_int_optreset+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12412 #include "confdefs.h"
12413 #include <unistd.h>
12414 #ifdef F77_DUMMY_MAIN
12415 # ifdef __cplusplus
12418 int F77_DUMMY_MAIN() { return 1; }
12423 extern int optreset; optreset = 1;
12428 rm -f conftest.$ac_objext conftest$ac_exeext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12430 (eval $ac_link) 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -s conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 pgac_cv_var_int_optreset=yes
12442 echo "$as_me: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12444 pgac_cv_var_int_optreset=no
12446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12448 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12449 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12450 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12452 cat >>confdefs.h <<\_ACEOF
12453 #define HAVE_INT_OPTRESET 1
12459 # This test makes sure that run tests work at all. Sometimes a shared
12460 # library is found by the linker, but the runtime linker can't find it.
12461 # This check should come after all modifications of compiler or linker
12462 # variables, and before any other run tests.
12463 echo "$as_me:$LINENO: checking test program" >&5
12464 echo $ECHO_N "checking test program... $ECHO_C" >&6
12465 if test "$cross_compiling" = yes; then
12466 echo "$as_me:$LINENO: result: cross-compiling" >&5
12467 echo "${ECHO_T}cross-compiling" >&6
12469 cat >conftest.$ac_ext <<_ACEOF
12470 #line $LINENO "configure"
12471 #include "confdefs.h"
12472 int main() { return 0; }
12474 rm -f conftest$ac_exeext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12476 (eval $ac_link) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 echo "$as_me:$LINENO: result: ok" >&5
12486 echo "${ECHO_T}ok" >&6
12488 echo "$as_me: program exited with status $ac_status" >&5
12489 echo "$as_me: failed program was:" >&5
12490 cat conftest.$ac_ext >&5
12491 ( exit $ac_status )
12492 echo "$as_me:$LINENO: result: failed" >&5
12493 echo "${ECHO_T}failed" >&6
12494 { { echo "$as_me:$LINENO: error:
12495 *** Could not execute a simple test program. This may be a problem
12496 *** related to locating shared libraries. Check the file 'config.log'
12497 *** for the exact reason." >&5
12498 echo "$as_me: error:
12499 *** Could not execute a simple test program. This may be a problem
12500 *** related to locating shared libraries. Check the file 'config.log'
12501 *** for the exact reason." >&2;}
12502 { (exit 1); exit 1; }; }
12504 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12509 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12510 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12511 if test "${pgac_cv_type_long_int_64+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 if test "$cross_compiling" = yes; then
12515 pgac_cv_type_long_int_64=no
12516 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12517 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12519 cat >conftest.$ac_ext <<_ACEOF
12520 #line $LINENO "configure"
12521 #include "confdefs.h"
12522 typedef long int int64;
12525 * These are globals to discourage the compiler from folding all the
12526 * arithmetic tests down to compile-time constants.
12528 int64 a = 20000001;
12529 int64 b = 40000005;
12531 int does_int64_work()
12535 if (sizeof(int64) != 8)
12536 return 0; /* definitely not the right size */
12538 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12546 exit(! does_int64_work());
12549 rm -f conftest$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551 (eval $ac_link) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 pgac_cv_type_long_int_64=yes
12562 echo "$as_me: program exited with status $ac_status" >&5
12563 echo "$as_me: failed program was:" >&5
12564 cat conftest.$ac_ext >&5
12565 ( exit $ac_status )
12566 pgac_cv_type_long_int_64=no
12568 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12571 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12572 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12574 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12575 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12577 cat >>confdefs.h <<\_ACEOF
12578 #define HAVE_LONG_INT_64
12584 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12585 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12586 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12587 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 if test "$cross_compiling" = yes; then
12591 pgac_cv_type_long_long_int_64=no
12592 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12593 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12595 cat >conftest.$ac_ext <<_ACEOF
12596 #line $LINENO "configure"
12597 #include "confdefs.h"
12598 typedef long long int int64;
12601 * These are globals to discourage the compiler from folding all the
12602 * arithmetic tests down to compile-time constants.
12604 int64 a = 20000001;
12605 int64 b = 40000005;
12607 int does_int64_work()
12611 if (sizeof(int64) != 8)
12612 return 0; /* definitely not the right size */
12614 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12622 exit(! does_int64_work());
12625 rm -f conftest$ac_exeext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12627 (eval $ac_link) 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 pgac_cv_type_long_long_int_64=yes
12638 echo "$as_me: program exited with status $ac_status" >&5
12639 echo "$as_me: failed program was:" >&5
12640 cat conftest.$ac_ext >&5
12641 ( exit $ac_status )
12642 pgac_cv_type_long_long_int_64=no
12644 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12647 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12648 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12650 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12651 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12653 cat >>confdefs.h <<\_ACEOF
12654 #define HAVE_LONG_LONG_INT_64
12663 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12664 cat >conftest.$ac_ext <<_ACEOF
12665 #line $LINENO "configure"
12666 #include "confdefs.h"
12668 #define INT64CONST(x) x##LL
12669 long long int foo = INT64CONST(0x1234567890123456);
12671 #ifdef F77_DUMMY_MAIN
12672 # ifdef __cplusplus
12675 int F77_DUMMY_MAIN() { return 1; }
12685 rm -f conftest.$ac_objext
12686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12687 (eval $ac_compile) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
12691 { ac_try='test -s conftest.$ac_objext'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12698 cat >>confdefs.h <<\_ACEOF
12699 #define HAVE_LL_CONSTANTS 1
12703 echo "$as_me: failed program was:" >&5
12704 cat conftest.$ac_ext >&5
12706 rm -f conftest.$ac_objext conftest.$ac_ext
12711 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12712 if [ x$SNPRINTF = x ] ; then
12713 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12714 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12715 if test "$cross_compiling" = yes; then
12716 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12717 echo "${ECHO_T}assuming not on target machine" >&6
12718 # Force usage of our own snprintf, since we cannot test foreign snprintf
12719 SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
12720 INT64_FORMAT='"%lld"'
12723 cat >conftest.$ac_ext <<_ACEOF
12724 #line $LINENO "configure"
12725 #include "confdefs.h"
12727 typedef long long int int64;
12728 #define INT64_FORMAT "%lld"
12730 int64 a = 20000001;
12731 int64 b = 40000005;
12733 int does_int64_snprintf_work()
12738 if (sizeof(int64) != 8)
12739 return 0; /* doesn't look like the right size */
12742 snprintf(buf, 100, INT64_FORMAT, c);
12743 if (strcmp(buf, "800000140000005") != 0)
12744 return 0; /* either multiply or snprintf is busted */
12748 exit(! does_int64_snprintf_work());
12751 rm -f conftest$ac_exeext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12753 (eval $ac_link) 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 echo "$as_me:$LINENO: result: yes" >&5
12763 echo "${ECHO_T}yes" >&6
12764 INT64_FORMAT='"%lld"'
12767 echo "$as_me: program exited with status $ac_status" >&5
12768 echo "$as_me: failed program was:" >&5
12769 cat conftest.$ac_ext >&5
12770 ( exit $ac_status )
12771 echo "$as_me:$LINENO: result: no" >&5
12772 echo "${ECHO_T}no" >&6
12773 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12774 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12775 if test "$cross_compiling" = yes; then
12776 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12777 echo "${ECHO_T}assuming not on target machine" >&6
12778 # Force usage of our own snprintf, since we cannot test foreign snprintf
12779 SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
12780 INT64_FORMAT='"%lld"'
12783 cat >conftest.$ac_ext <<_ACEOF
12784 #line $LINENO "configure"
12785 #include "confdefs.h"
12787 typedef long long int int64;
12788 #define INT64_FORMAT "%qd"
12790 int64 a = 20000001;
12791 int64 b = 40000005;
12793 int does_int64_snprintf_work()
12798 if (sizeof(int64) != 8)
12799 return 0; /* doesn't look like the right size */
12802 snprintf(buf, 100, INT64_FORMAT, c);
12803 if (strcmp(buf, "800000140000005") != 0)
12804 return 0; /* either multiply or snprintf is busted */
12808 exit(! does_int64_snprintf_work());
12811 rm -f conftest$ac_exeext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12813 (eval $ac_link) 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 echo "$as_me:$LINENO: result: yes" >&5
12823 echo "${ECHO_T}yes" >&6
12824 INT64_FORMAT='"%qd"'
12827 echo "$as_me: program exited with status $ac_status" >&5
12828 echo "$as_me: failed program was:" >&5
12829 cat conftest.$ac_ext >&5
12830 ( exit $ac_status )
12831 echo "$as_me:$LINENO: result: no" >&5
12832 echo "${ECHO_T}no" >&6
12833 # Force usage of our own snprintf, since system snprintf is broken
12834 SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
12835 INT64_FORMAT='"%lld"'
12838 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12841 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12844 # here if we previously decided we needed to use our own snprintf
12845 INT64_FORMAT='"%lld"'
12848 # Here if we are not using 'long long int' at all
12849 INT64_FORMAT='"%ld"'
12853 cat >>confdefs.h <<_ACEOF
12854 #define INT64_FORMAT $INT64_FORMAT
12861 for ac_func in strtoll strtoq
12863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12864 echo "$as_me:$LINENO: checking for $ac_func" >&5
12865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12866 if eval "test \"\${$as_ac_var+set}\" = set"; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 cat >conftest.$ac_ext <<_ACEOF
12870 #line $LINENO "configure"
12871 #include "confdefs.h"
12872 /* System header to define __stub macros and hopefully few prototypes,
12873 which can conflict with char $ac_func (); below. */
12874 #include <assert.h>
12875 /* Override any gcc2 internal prototype to avoid an error. */
12879 /* We use char because int might match the return type of a gcc2
12880 builtin and then its argument prototype would still apply. */
12884 #ifdef F77_DUMMY_MAIN
12885 # ifdef __cplusplus
12888 int F77_DUMMY_MAIN() { return 1; }
12893 /* The GNU C library defines this for functions which it implements
12894 to always fail with ENOSYS. Some functions are actually named
12895 something starting with __ and the normal name is an alias. */
12896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12906 rm -f conftest.$ac_objext conftest$ac_exeext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12908 (eval $ac_link) 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -s conftest$ac_exeext'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 eval "$as_ac_var=yes"
12920 echo "$as_me: failed program was:" >&5
12921 cat conftest.$ac_ext >&5
12922 eval "$as_ac_var=no"
12924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12928 if test `eval echo '${'$as_ac_var'}'` = yes; then
12929 cat >>confdefs.h <<_ACEOF
12930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12938 for ac_func in strtoull strtouq
12940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12941 echo "$as_me:$LINENO: checking for $ac_func" >&5
12942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12943 if eval "test \"\${$as_ac_var+set}\" = set"; then
12944 echo $ECHO_N "(cached) $ECHO_C" >&6
12946 cat >conftest.$ac_ext <<_ACEOF
12947 #line $LINENO "configure"
12948 #include "confdefs.h"
12949 /* System header to define __stub macros and hopefully few prototypes,
12950 which can conflict with char $ac_func (); below. */
12951 #include <assert.h>
12952 /* Override any gcc2 internal prototype to avoid an error. */
12956 /* We use char because int might match the return type of a gcc2
12957 builtin and then its argument prototype would still apply. */
12961 #ifdef F77_DUMMY_MAIN
12962 # ifdef __cplusplus
12965 int F77_DUMMY_MAIN() { return 1; }
12970 /* The GNU C library defines this for functions which it implements
12971 to always fail with ENOSYS. Some functions are actually named
12972 something starting with __ and the normal name is an alias. */
12973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12985 (eval $ac_link) 2>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -s conftest$ac_exeext'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 eval "$as_ac_var=yes"
12997 echo "$as_me: failed program was:" >&5
12998 cat conftest.$ac_ext >&5
12999 eval "$as_ac_var=no"
13001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13005 if test `eval echo '${'$as_ac_var'}'` = yes; then
13006 cat >>confdefs.h <<_ACEOF
13007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13014 # Check for one of atexit() or on_exit()
13016 for ac_func in atexit
13018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13019 echo "$as_me:$LINENO: checking for $ac_func" >&5
13020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13021 if eval "test \"\${$as_ac_var+set}\" = set"; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 cat >conftest.$ac_ext <<_ACEOF
13025 #line $LINENO "configure"
13026 #include "confdefs.h"
13027 /* System header to define __stub macros and hopefully few prototypes,
13028 which can conflict with char $ac_func (); below. */
13029 #include <assert.h>
13030 /* Override any gcc2 internal prototype to avoid an error. */
13034 /* We use char because int might match the return type of a gcc2
13035 builtin and then its argument prototype would still apply. */
13039 #ifdef F77_DUMMY_MAIN
13040 # ifdef __cplusplus
13043 int F77_DUMMY_MAIN() { return 1; }
13048 /* The GNU C library defines this for functions which it implements
13049 to always fail with ENOSYS. Some functions are actually named
13050 something starting with __ and the normal name is an alias. */
13051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13061 rm -f conftest.$ac_objext conftest$ac_exeext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13063 (eval $ac_link) 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); } &&
13067 { ac_try='test -s conftest$ac_exeext'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 eval "$as_ac_var=yes"
13075 echo "$as_me: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13077 eval "$as_ac_var=no"
13079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13083 if test `eval echo '${'$as_ac_var'}'` = yes; then
13084 cat >>confdefs.h <<_ACEOF
13085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13090 for ac_func in on_exit
13092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13093 echo "$as_me:$LINENO: checking for $ac_func" >&5
13094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13095 if eval "test \"\${$as_ac_var+set}\" = set"; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13098 cat >conftest.$ac_ext <<_ACEOF
13099 #line $LINENO "configure"
13100 #include "confdefs.h"
13101 /* System header to define __stub macros and hopefully few prototypes,
13102 which can conflict with char $ac_func (); below. */
13103 #include <assert.h>
13104 /* Override any gcc2 internal prototype to avoid an error. */
13108 /* We use char because int might match the return type of a gcc2
13109 builtin and then its argument prototype would still apply. */
13113 #ifdef F77_DUMMY_MAIN
13114 # ifdef __cplusplus
13117 int F77_DUMMY_MAIN() { return 1; }
13122 /* The GNU C library defines this for functions which it implements
13123 to always fail with ENOSYS. Some functions are actually named
13124 something starting with __ and the normal name is an alias. */
13125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13135 rm -f conftest.$ac_objext conftest$ac_exeext
13136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137 (eval $ac_link) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -s conftest$ac_exeext'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 eval "$as_ac_var=yes"
13149 echo "$as_me: failed program was:" >&5
13150 cat conftest.$ac_ext >&5
13151 eval "$as_ac_var=no"
13153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13157 if test `eval echo '${'$as_ac_var'}'` = yes; then
13158 cat >>confdefs.h <<_ACEOF
13159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13163 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13164 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13165 { (exit 1); exit 1; }; }
13174 echo "$as_me:$LINENO: checking for unsigned long" >&5
13175 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13176 if test "${ac_cv_type_unsigned_long+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 cat >conftest.$ac_ext <<_ACEOF
13180 #line $LINENO "configure"
13181 #include "confdefs.h"
13182 $ac_includes_default
13183 #ifdef F77_DUMMY_MAIN
13184 # ifdef __cplusplus
13187 int F77_DUMMY_MAIN() { return 1; }
13192 if ((unsigned long *) 0)
13194 if (sizeof (unsigned long))
13200 rm -f conftest.$ac_objext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13202 (eval $ac_compile) 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -s conftest.$ac_objext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13212 ac_cv_type_unsigned_long=yes
13214 echo "$as_me: failed program was:" >&5
13215 cat conftest.$ac_ext >&5
13216 ac_cv_type_unsigned_long=no
13218 rm -f conftest.$ac_objext conftest.$ac_ext
13220 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13221 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13223 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13224 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13225 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 if test "$ac_cv_type_unsigned_long" = yes; then
13229 # The cast to unsigned long works around a bug in the HP C Compiler
13230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13232 # This bug is HP SR number 8606223364.
13233 if test "$cross_compiling" = yes; then
13234 # Depending upon the size, compute the lo and hi bounds.
13235 cat >conftest.$ac_ext <<_ACEOF
13236 #line $LINENO "configure"
13237 #include "confdefs.h"
13238 $ac_includes_default
13239 #ifdef F77_DUMMY_MAIN
13240 # ifdef __cplusplus
13243 int F77_DUMMY_MAIN() { return 1; }
13248 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13255 rm -f conftest.$ac_objext
13256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13257 (eval $ac_compile) 2>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13269 cat >conftest.$ac_ext <<_ACEOF
13270 #line $LINENO "configure"
13271 #include "confdefs.h"
13272 $ac_includes_default
13273 #ifdef F77_DUMMY_MAIN
13274 # ifdef __cplusplus
13277 int F77_DUMMY_MAIN() { return 1; }
13282 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13289 rm -f conftest.$ac_objext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291 (eval $ac_compile) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
13295 { ac_try='test -s conftest.$ac_objext'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 ac_hi=$ac_mid; break
13303 echo "$as_me: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13305 ac_lo=`expr $ac_mid + 1`
13306 if test $ac_lo -le $ac_mid; then
13310 ac_mid=`expr 2 '*' $ac_mid + 1`
13312 rm -f conftest.$ac_objext conftest.$ac_ext
13315 echo "$as_me: failed program was:" >&5
13316 cat conftest.$ac_ext >&5
13317 cat >conftest.$ac_ext <<_ACEOF
13318 #line $LINENO "configure"
13319 #include "confdefs.h"
13320 $ac_includes_default
13321 #ifdef F77_DUMMY_MAIN
13322 # ifdef __cplusplus
13325 int F77_DUMMY_MAIN() { return 1; }
13330 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13337 rm -f conftest.$ac_objext
13338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13339 (eval $ac_compile) 2>&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
13343 { ac_try='test -s conftest.$ac_objext'
13344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 (eval $ac_try) 2>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; }; then
13351 cat >conftest.$ac_ext <<_ACEOF
13352 #line $LINENO "configure"
13353 #include "confdefs.h"
13354 $ac_includes_default
13355 #ifdef F77_DUMMY_MAIN
13356 # ifdef __cplusplus
13359 int F77_DUMMY_MAIN() { return 1; }
13364 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13371 rm -f conftest.$ac_objext
13372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13373 (eval $ac_compile) 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -s conftest.$ac_objext'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 ac_lo=$ac_mid; break
13385 echo "$as_me: failed program was:" >&5
13386 cat conftest.$ac_ext >&5
13387 ac_hi=`expr '(' $ac_mid ')' - 1`
13388 if test $ac_mid -le $ac_hi; then
13392 ac_mid=`expr 2 '*' $ac_mid`
13394 rm -f conftest.$ac_objext conftest.$ac_ext
13397 echo "$as_me: failed program was:" >&5
13398 cat conftest.$ac_ext >&5
13401 rm -f conftest.$ac_objext conftest.$ac_ext
13403 rm -f conftest.$ac_objext conftest.$ac_ext
13404 # Binary search between lo and hi bounds.
13405 while test "x$ac_lo" != "x$ac_hi"; do
13406 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13407 cat >conftest.$ac_ext <<_ACEOF
13408 #line $LINENO "configure"
13409 #include "confdefs.h"
13410 $ac_includes_default
13411 #ifdef F77_DUMMY_MAIN
13412 # ifdef __cplusplus
13415 int F77_DUMMY_MAIN() { return 1; }
13420 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13427 rm -f conftest.$ac_objext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13429 (eval $ac_compile) 2>&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } &&
13433 { ac_try='test -s conftest.$ac_objext'
13434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435 (eval $ac_try) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
13441 echo "$as_me: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13443 ac_lo=`expr '(' $ac_mid ')' + 1`
13445 rm -f conftest.$ac_objext conftest.$ac_ext
13448 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13449 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13450 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13451 { (exit 1); exit 1; }; } ;;
13454 if test "$cross_compiling" = yes; then
13455 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13456 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13457 { (exit 1); exit 1; }; }
13459 cat >conftest.$ac_ext <<_ACEOF
13460 #line $LINENO "configure"
13461 #include "confdefs.h"
13462 $ac_includes_default
13463 long longval () { return (long) (sizeof (unsigned long)); }
13464 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13466 #include <stdlib.h>
13467 #ifdef F77_DUMMY_MAIN
13468 # ifdef __cplusplus
13471 int F77_DUMMY_MAIN() { return 1; }
13477 FILE *f = fopen ("conftest.val", "w");
13480 if (((long) (sizeof (unsigned long))) < 0)
13482 long i = longval ();
13483 if (i != ((long) (sizeof (unsigned long))))
13485 fprintf (f, "%ld\n", i);
13489 unsigned long i = ulongval ();
13490 if (i != ((long) (sizeof (unsigned long))))
13492 fprintf (f, "%lu\n", i);
13494 exit (ferror (f) || fclose (f) != 0);
13500 rm -f conftest$ac_exeext
13501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13502 (eval $ac_link) 2>&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13513 echo "$as_me: program exited with status $ac_status" >&5
13514 echo "$as_me: failed program was:" >&5
13515 cat conftest.$ac_ext >&5
13516 ( exit $ac_status )
13517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13518 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13519 { (exit 1); exit 1; }; }
13521 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13526 ac_cv_sizeof_unsigned_long=0
13529 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13530 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13531 cat >>confdefs.h <<_ACEOF
13532 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13537 cat >>confdefs.h <<_ACEOF
13538 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13542 # Determine memory alignment requirements for the basic C data types.
13544 echo "$as_me:$LINENO: checking for short" >&5
13545 echo $ECHO_N "checking for short... $ECHO_C" >&6
13546 if test "${ac_cv_type_short+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 cat >conftest.$ac_ext <<_ACEOF
13550 #line $LINENO "configure"
13551 #include "confdefs.h"
13552 $ac_includes_default
13553 #ifdef F77_DUMMY_MAIN
13554 # ifdef __cplusplus
13557 int F77_DUMMY_MAIN() { return 1; }
13564 if (sizeof (short))
13570 rm -f conftest.$ac_objext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
13576 { ac_try='test -s conftest.$ac_objext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_cv_type_short=yes
13584 echo "$as_me: failed program was:" >&5
13585 cat conftest.$ac_ext >&5
13586 ac_cv_type_short=no
13588 rm -f conftest.$ac_objext conftest.$ac_ext
13590 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13591 echo "${ECHO_T}$ac_cv_type_short" >&6
13593 echo "$as_me:$LINENO: checking alignment of short" >&5
13594 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13595 if test "${pgac_cv_alignof_short+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 if test "$ac_cv_type_short" = yes; then
13599 if test "$cross_compiling" = yes; then
13600 # Depending upon the size, compute the lo and hi bounds.
13601 cat >conftest.$ac_ext <<_ACEOF
13602 #line $LINENO "configure"
13603 #include "confdefs.h"
13604 $ac_includes_default
13605 struct { char filler; short field; } pgac_struct;
13606 #ifdef F77_DUMMY_MAIN
13607 # ifdef __cplusplus
13610 int F77_DUMMY_MAIN() { return 1; }
13615 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13622 rm -f conftest.$ac_objext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624 (eval $ac_compile) 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -s conftest.$ac_objext'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
13636 cat >conftest.$ac_ext <<_ACEOF
13637 #line $LINENO "configure"
13638 #include "confdefs.h"
13639 $ac_includes_default
13640 struct { char filler; short field; } pgac_struct;
13641 #ifdef F77_DUMMY_MAIN
13642 # ifdef __cplusplus
13645 int F77_DUMMY_MAIN() { return 1; }
13650 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13657 rm -f conftest.$ac_objext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659 (eval $ac_compile) 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -s conftest.$ac_objext'
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; }; then
13669 ac_hi=$ac_mid; break
13671 echo "$as_me: failed program was:" >&5
13672 cat conftest.$ac_ext >&5
13673 ac_lo=`expr $ac_mid + 1`
13674 if test $ac_lo -le $ac_mid; then
13678 ac_mid=`expr 2 '*' $ac_mid + 1`
13680 rm -f conftest.$ac_objext conftest.$ac_ext
13683 echo "$as_me: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13685 cat >conftest.$ac_ext <<_ACEOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13688 $ac_includes_default
13689 struct { char filler; short field; } pgac_struct;
13690 #ifdef F77_DUMMY_MAIN
13691 # ifdef __cplusplus
13694 int F77_DUMMY_MAIN() { return 1; }
13699 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13706 rm -f conftest.$ac_objext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708 (eval $ac_compile) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try='test -s conftest.$ac_objext'
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13720 cat >conftest.$ac_ext <<_ACEOF
13721 #line $LINENO "configure"
13722 #include "confdefs.h"
13723 $ac_includes_default
13724 struct { char filler; short field; } pgac_struct;
13725 #ifdef F77_DUMMY_MAIN
13726 # ifdef __cplusplus
13729 int F77_DUMMY_MAIN() { return 1; }
13734 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13741 rm -f conftest.$ac_objext
13742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13743 (eval $ac_compile) 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_lo=$ac_mid; break
13755 echo "$as_me: failed program was:" >&5
13756 cat conftest.$ac_ext >&5
13757 ac_hi=`expr '(' $ac_mid ')' - 1`
13758 if test $ac_mid -le $ac_hi; then
13762 ac_mid=`expr 2 '*' $ac_mid`
13764 rm -f conftest.$ac_objext conftest.$ac_ext
13767 echo "$as_me: failed program was:" >&5
13768 cat conftest.$ac_ext >&5
13771 rm -f conftest.$ac_objext conftest.$ac_ext
13773 rm -f conftest.$ac_objext conftest.$ac_ext
13774 # Binary search between lo and hi bounds.
13775 while test "x$ac_lo" != "x$ac_hi"; do
13776 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13777 cat >conftest.$ac_ext <<_ACEOF
13778 #line $LINENO "configure"
13779 #include "confdefs.h"
13780 $ac_includes_default
13781 struct { char filler; short field; } pgac_struct;
13782 #ifdef F77_DUMMY_MAIN
13783 # ifdef __cplusplus
13786 int F77_DUMMY_MAIN() { return 1; }
13791 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13798 rm -f conftest.$ac_objext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800 (eval $ac_compile) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -s conftest.$ac_objext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13812 echo "$as_me: failed program was:" >&5
13813 cat conftest.$ac_ext >&5
13814 ac_lo=`expr '(' $ac_mid ')' + 1`
13816 rm -f conftest.$ac_objext conftest.$ac_ext
13819 ?*) pgac_cv_alignof_short=$ac_lo;;
13820 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13821 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13822 { (exit 1); exit 1; }; } ;;
13825 if test "$cross_compiling" = yes; then
13826 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13827 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13828 { (exit 1); exit 1; }; }
13830 cat >conftest.$ac_ext <<_ACEOF
13831 #line $LINENO "configure"
13832 #include "confdefs.h"
13833 $ac_includes_default
13834 struct { char filler; short field; } pgac_struct;
13835 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13836 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13838 #include <stdlib.h>
13839 #ifdef F77_DUMMY_MAIN
13840 # ifdef __cplusplus
13843 int F77_DUMMY_MAIN() { return 1; }
13849 FILE *f = fopen ("conftest.val", "w");
13852 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13854 long i = longval ();
13855 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13857 fprintf (f, "%ld\n", i);
13861 unsigned long i = ulongval ();
13862 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13864 fprintf (f, "%lu\n", i);
13866 exit (ferror (f) || fclose (f) != 0);
13872 rm -f conftest$ac_exeext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874 (eval $ac_link) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13883 pgac_cv_alignof_short=`cat conftest.val`
13885 echo "$as_me: program exited with status $ac_status" >&5
13886 echo "$as_me: failed program was:" >&5
13887 cat conftest.$ac_ext >&5
13888 ( exit $ac_status )
13889 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13890 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13891 { (exit 1); exit 1; }; }
13893 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13898 pgac_cv_alignof_short=0
13901 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13902 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13903 cat >>confdefs.h <<_ACEOF
13904 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13908 echo "$as_me:$LINENO: checking for int" >&5
13909 echo $ECHO_N "checking for int... $ECHO_C" >&6
13910 if test "${ac_cv_type_int+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 cat >conftest.$ac_ext <<_ACEOF
13914 #line $LINENO "configure"
13915 #include "confdefs.h"
13916 $ac_includes_default
13917 #ifdef F77_DUMMY_MAIN
13918 # ifdef __cplusplus
13921 int F77_DUMMY_MAIN() { return 1; }
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 (eval $ac_compile) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13948 echo "$as_me: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13952 rm -f conftest.$ac_objext conftest.$ac_ext
13954 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13955 echo "${ECHO_T}$ac_cv_type_int" >&6
13957 echo "$as_me:$LINENO: checking alignment of int" >&5
13958 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13959 if test "${pgac_cv_alignof_int+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 if test "$ac_cv_type_int" = yes; then
13963 if test "$cross_compiling" = yes; then
13964 # Depending upon the size, compute the lo and hi bounds.
13965 cat >conftest.$ac_ext <<_ACEOF
13966 #line $LINENO "configure"
13967 #include "confdefs.h"
13968 $ac_includes_default
13969 struct { char filler; int field; } pgac_struct;
13970 #ifdef F77_DUMMY_MAIN
13971 # ifdef __cplusplus
13974 int F77_DUMMY_MAIN() { return 1; }
13979 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13986 rm -f conftest.$ac_objext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988 (eval $ac_compile) 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -s conftest.$ac_objext'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
14000 cat >conftest.$ac_ext <<_ACEOF
14001 #line $LINENO "configure"
14002 #include "confdefs.h"
14003 $ac_includes_default
14004 struct { char filler; int field; } pgac_struct;
14005 #ifdef F77_DUMMY_MAIN
14006 # ifdef __cplusplus
14009 int F77_DUMMY_MAIN() { return 1; }
14014 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023 (eval $ac_compile) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_hi=$ac_mid; break
14035 echo "$as_me: failed program was:" >&5
14036 cat conftest.$ac_ext >&5
14037 ac_lo=`expr $ac_mid + 1`
14038 if test $ac_lo -le $ac_mid; then
14042 ac_mid=`expr 2 '*' $ac_mid + 1`
14044 rm -f conftest.$ac_objext conftest.$ac_ext
14047 echo "$as_me: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14049 cat >conftest.$ac_ext <<_ACEOF
14050 #line $LINENO "configure"
14051 #include "confdefs.h"
14052 $ac_includes_default
14053 struct { char filler; int field; } pgac_struct;
14054 #ifdef F77_DUMMY_MAIN
14055 # ifdef __cplusplus
14058 int F77_DUMMY_MAIN() { return 1; }
14063 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
14076 { ac_try='test -s conftest.$ac_objext'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
14084 cat >conftest.$ac_ext <<_ACEOF
14085 #line $LINENO "configure"
14086 #include "confdefs.h"
14087 $ac_includes_default
14088 struct { char filler; int field; } pgac_struct;
14089 #ifdef F77_DUMMY_MAIN
14090 # ifdef __cplusplus
14093 int F77_DUMMY_MAIN() { return 1; }
14098 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14105 rm -f conftest.$ac_objext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107 (eval $ac_compile) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -s conftest.$ac_objext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_lo=$ac_mid; break
14119 echo "$as_me: failed program was:" >&5
14120 cat conftest.$ac_ext >&5
14121 ac_hi=`expr '(' $ac_mid ')' - 1`
14122 if test $ac_mid -le $ac_hi; then
14126 ac_mid=`expr 2 '*' $ac_mid`
14128 rm -f conftest.$ac_objext conftest.$ac_ext
14131 echo "$as_me: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14135 rm -f conftest.$ac_objext conftest.$ac_ext
14137 rm -f conftest.$ac_objext conftest.$ac_ext
14138 # Binary search between lo and hi bounds.
14139 while test "x$ac_lo" != "x$ac_hi"; do
14140 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14141 cat >conftest.$ac_ext <<_ACEOF
14142 #line $LINENO "configure"
14143 #include "confdefs.h"
14144 $ac_includes_default
14145 struct { char filler; int field; } pgac_struct;
14146 #ifdef F77_DUMMY_MAIN
14147 # ifdef __cplusplus
14150 int F77_DUMMY_MAIN() { return 1; }
14155 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14162 rm -f conftest.$ac_objext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14164 (eval $ac_compile) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
14168 { ac_try='test -s conftest.$ac_objext'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14176 echo "$as_me: failed program was:" >&5
14177 cat conftest.$ac_ext >&5
14178 ac_lo=`expr '(' $ac_mid ')' + 1`
14180 rm -f conftest.$ac_objext conftest.$ac_ext
14183 ?*) pgac_cv_alignof_int=$ac_lo;;
14184 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14185 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14186 { (exit 1); exit 1; }; } ;;
14189 if test "$cross_compiling" = yes; then
14190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14191 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14192 { (exit 1); exit 1; }; }
14194 cat >conftest.$ac_ext <<_ACEOF
14195 #line $LINENO "configure"
14196 #include "confdefs.h"
14197 $ac_includes_default
14198 struct { char filler; int field; } pgac_struct;
14199 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14200 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14202 #include <stdlib.h>
14203 #ifdef F77_DUMMY_MAIN
14204 # ifdef __cplusplus
14207 int F77_DUMMY_MAIN() { return 1; }
14213 FILE *f = fopen ("conftest.val", "w");
14216 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14218 long i = longval ();
14219 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14221 fprintf (f, "%ld\n", i);
14225 unsigned long i = ulongval ();
14226 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14228 fprintf (f, "%lu\n", i);
14230 exit (ferror (f) || fclose (f) != 0);
14236 rm -f conftest$ac_exeext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14238 (eval $ac_link) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 pgac_cv_alignof_int=`cat conftest.val`
14249 echo "$as_me: program exited with status $ac_status" >&5
14250 echo "$as_me: failed program was:" >&5
14251 cat conftest.$ac_ext >&5
14252 ( exit $ac_status )
14253 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14254 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14255 { (exit 1); exit 1; }; }
14257 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14262 pgac_cv_alignof_int=0
14265 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14266 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14267 cat >>confdefs.h <<_ACEOF
14268 #define ALIGNOF_INT $pgac_cv_alignof_int
14272 echo "$as_me:$LINENO: checking for long" >&5
14273 echo $ECHO_N "checking for long... $ECHO_C" >&6
14274 if test "${ac_cv_type_long+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 cat >conftest.$ac_ext <<_ACEOF
14278 #line $LINENO "configure"
14279 #include "confdefs.h"
14280 $ac_includes_default
14281 #ifdef F77_DUMMY_MAIN
14282 # ifdef __cplusplus
14285 int F77_DUMMY_MAIN() { return 1; }
14298 rm -f conftest.$ac_objext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300 (eval $ac_compile) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } &&
14304 { ac_try='test -s conftest.$ac_objext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_type_long=yes
14312 echo "$as_me: failed program was:" >&5
14313 cat conftest.$ac_ext >&5
14316 rm -f conftest.$ac_objext conftest.$ac_ext
14318 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14319 echo "${ECHO_T}$ac_cv_type_long" >&6
14321 echo "$as_me:$LINENO: checking alignment of long" >&5
14322 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14323 if test "${pgac_cv_alignof_long+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 if test "$ac_cv_type_long" = yes; then
14327 if test "$cross_compiling" = yes; then
14328 # Depending upon the size, compute the lo and hi bounds.
14329 cat >conftest.$ac_ext <<_ACEOF
14330 #line $LINENO "configure"
14331 #include "confdefs.h"
14332 $ac_includes_default
14333 struct { char filler; long field; } pgac_struct;
14334 #ifdef F77_DUMMY_MAIN
14335 # ifdef __cplusplus
14338 int F77_DUMMY_MAIN() { return 1; }
14343 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14350 rm -f conftest.$ac_objext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352 (eval $ac_compile) 2>&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -s conftest.$ac_objext'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14364 cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 #include "confdefs.h"
14367 $ac_includes_default
14368 struct { char filler; long field; } pgac_struct;
14369 #ifdef F77_DUMMY_MAIN
14370 # ifdef __cplusplus
14373 int F77_DUMMY_MAIN() { return 1; }
14378 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387 (eval $ac_compile) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_hi=$ac_mid; break
14399 echo "$as_me: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14401 ac_lo=`expr $ac_mid + 1`
14402 if test $ac_lo -le $ac_mid; then
14406 ac_mid=`expr 2 '*' $ac_mid + 1`
14408 rm -f conftest.$ac_objext conftest.$ac_ext
14411 echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14413 cat >conftest.$ac_ext <<_ACEOF
14414 #line $LINENO "configure"
14415 #include "confdefs.h"
14416 $ac_includes_default
14417 struct { char filler; long field; } pgac_struct;
14418 #ifdef F77_DUMMY_MAIN
14419 # ifdef __cplusplus
14422 int F77_DUMMY_MAIN() { return 1; }
14427 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14434 rm -f conftest.$ac_objext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436 (eval $ac_compile) 2>&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try='test -s conftest.$ac_objext'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
14448 cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14450 #include "confdefs.h"
14451 $ac_includes_default
14452 struct { char filler; long field; } pgac_struct;
14453 #ifdef F77_DUMMY_MAIN
14454 # ifdef __cplusplus
14457 int F77_DUMMY_MAIN() { return 1; }
14462 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14469 rm -f conftest.$ac_objext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471 (eval $ac_compile) 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
14475 { ac_try='test -s conftest.$ac_objext'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_lo=$ac_mid; break
14483 echo "$as_me: failed program was:" >&5
14484 cat conftest.$ac_ext >&5
14485 ac_hi=`expr '(' $ac_mid ')' - 1`
14486 if test $ac_mid -le $ac_hi; then
14490 ac_mid=`expr 2 '*' $ac_mid`
14492 rm -f conftest.$ac_objext conftest.$ac_ext
14495 echo "$as_me: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14499 rm -f conftest.$ac_objext conftest.$ac_ext
14501 rm -f conftest.$ac_objext conftest.$ac_ext
14502 # Binary search between lo and hi bounds.
14503 while test "x$ac_lo" != "x$ac_hi"; do
14504 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14505 cat >conftest.$ac_ext <<_ACEOF
14506 #line $LINENO "configure"
14507 #include "confdefs.h"
14508 $ac_includes_default
14509 struct { char filler; long field; } pgac_struct;
14510 #ifdef F77_DUMMY_MAIN
14511 # ifdef __cplusplus
14514 int F77_DUMMY_MAIN() { return 1; }
14519 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14526 rm -f conftest.$ac_objext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14528 (eval $ac_compile) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -s conftest.$ac_objext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14540 echo "$as_me: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 ac_lo=`expr '(' $ac_mid ')' + 1`
14544 rm -f conftest.$ac_objext conftest.$ac_ext
14547 ?*) pgac_cv_alignof_long=$ac_lo;;
14548 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14549 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14550 { (exit 1); exit 1; }; } ;;
14553 if test "$cross_compiling" = yes; then
14554 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14555 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14556 { (exit 1); exit 1; }; }
14558 cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 #include "confdefs.h"
14561 $ac_includes_default
14562 struct { char filler; long field; } pgac_struct;
14563 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14564 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14566 #include <stdlib.h>
14567 #ifdef F77_DUMMY_MAIN
14568 # ifdef __cplusplus
14571 int F77_DUMMY_MAIN() { return 1; }
14577 FILE *f = fopen ("conftest.val", "w");
14580 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14582 long i = longval ();
14583 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14585 fprintf (f, "%ld\n", i);
14589 unsigned long i = ulongval ();
14590 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14592 fprintf (f, "%lu\n", i);
14594 exit (ferror (f) || fclose (f) != 0);
14600 rm -f conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602 (eval $ac_link) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 pgac_cv_alignof_long=`cat conftest.val`
14613 echo "$as_me: program exited with status $ac_status" >&5
14614 echo "$as_me: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 ( exit $ac_status )
14617 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14618 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14619 { (exit 1); exit 1; }; }
14621 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14626 pgac_cv_alignof_long=0
14629 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14630 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14631 cat >>confdefs.h <<_ACEOF
14632 #define ALIGNOF_LONG $pgac_cv_alignof_long
14636 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14637 echo "$as_me:$LINENO: checking for long long int" >&5
14638 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14639 if test "${ac_cv_type_long_long_int+set}" = set; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 cat >conftest.$ac_ext <<_ACEOF
14643 #line $LINENO "configure"
14644 #include "confdefs.h"
14645 $ac_includes_default
14646 #ifdef F77_DUMMY_MAIN
14647 # ifdef __cplusplus
14650 int F77_DUMMY_MAIN() { return 1; }
14655 if ((long long int *) 0)
14657 if (sizeof (long long int))
14663 rm -f conftest.$ac_objext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665 (eval $ac_compile) 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -s conftest.$ac_objext'
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; }; then
14675 ac_cv_type_long_long_int=yes
14677 echo "$as_me: failed program was:" >&5
14678 cat conftest.$ac_ext >&5
14679 ac_cv_type_long_long_int=no
14681 rm -f conftest.$ac_objext conftest.$ac_ext
14683 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14684 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14686 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14687 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14688 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 if test "$ac_cv_type_long_long_int" = yes; then
14692 if test "$cross_compiling" = yes; then
14693 # Depending upon the size, compute the lo and hi bounds.
14694 cat >conftest.$ac_ext <<_ACEOF
14695 #line $LINENO "configure"
14696 #include "confdefs.h"
14697 $ac_includes_default
14698 struct { char filler; long long int field; } pgac_struct;
14699 #ifdef F77_DUMMY_MAIN
14700 # ifdef __cplusplus
14703 int F77_DUMMY_MAIN() { return 1; }
14708 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717 (eval $ac_compile) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14729 cat >conftest.$ac_ext <<_ACEOF
14730 #line $LINENO "configure"
14731 #include "confdefs.h"
14732 $ac_includes_default
14733 struct { char filler; long long int field; } pgac_struct;
14734 #ifdef F77_DUMMY_MAIN
14735 # ifdef __cplusplus
14738 int F77_DUMMY_MAIN() { return 1; }
14743 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14750 rm -f conftest.$ac_objext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752 (eval $ac_compile) 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try='test -s conftest.$ac_objext'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 ac_hi=$ac_mid; break
14764 echo "$as_me: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14766 ac_lo=`expr $ac_mid + 1`
14767 if test $ac_lo -le $ac_mid; then
14771 ac_mid=`expr 2 '*' $ac_mid + 1`
14773 rm -f conftest.$ac_objext conftest.$ac_ext
14776 echo "$as_me: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14778 cat >conftest.$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14780 #include "confdefs.h"
14781 $ac_includes_default
14782 struct { char filler; long long int field; } pgac_struct;
14783 #ifdef F77_DUMMY_MAIN
14784 # ifdef __cplusplus
14787 int F77_DUMMY_MAIN() { return 1; }
14792 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14799 rm -f conftest.$ac_objext
14800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14801 (eval $ac_compile) 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } &&
14805 { ac_try='test -s conftest.$ac_objext'
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; }; then
14813 cat >conftest.$ac_ext <<_ACEOF
14814 #line $LINENO "configure"
14815 #include "confdefs.h"
14816 $ac_includes_default
14817 struct { char filler; long long int field; } pgac_struct;
14818 #ifdef F77_DUMMY_MAIN
14819 # ifdef __cplusplus
14822 int F77_DUMMY_MAIN() { return 1; }
14827 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14834 rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836 (eval $ac_compile) 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_lo=$ac_mid; break
14848 echo "$as_me: failed program was:" >&5
14849 cat conftest.$ac_ext >&5
14850 ac_hi=`expr '(' $ac_mid ')' - 1`
14851 if test $ac_mid -le $ac_hi; then
14855 ac_mid=`expr 2 '*' $ac_mid`
14857 rm -f conftest.$ac_objext conftest.$ac_ext
14860 echo "$as_me: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14864 rm -f conftest.$ac_objext conftest.$ac_ext
14866 rm -f conftest.$ac_objext conftest.$ac_ext
14867 # Binary search between lo and hi bounds.
14868 while test "x$ac_lo" != "x$ac_hi"; do
14869 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14870 cat >conftest.$ac_ext <<_ACEOF
14871 #line $LINENO "configure"
14872 #include "confdefs.h"
14873 $ac_includes_default
14874 struct { char filler; long long int field; } pgac_struct;
14875 #ifdef F77_DUMMY_MAIN
14876 # ifdef __cplusplus
14879 int F77_DUMMY_MAIN() { return 1; }
14884 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14891 rm -f conftest.$ac_objext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14893 (eval $ac_compile) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14905 echo "$as_me: failed program was:" >&5
14906 cat conftest.$ac_ext >&5
14907 ac_lo=`expr '(' $ac_mid ')' + 1`
14909 rm -f conftest.$ac_objext conftest.$ac_ext
14912 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14913 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14914 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14915 { (exit 1); exit 1; }; } ;;
14918 if test "$cross_compiling" = yes; then
14919 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14920 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14921 { (exit 1); exit 1; }; }
14923 cat >conftest.$ac_ext <<_ACEOF
14924 #line $LINENO "configure"
14925 #include "confdefs.h"
14926 $ac_includes_default
14927 struct { char filler; long long int field; } pgac_struct;
14928 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14929 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14931 #include <stdlib.h>
14932 #ifdef F77_DUMMY_MAIN
14933 # ifdef __cplusplus
14936 int F77_DUMMY_MAIN() { return 1; }
14942 FILE *f = fopen ("conftest.val", "w");
14945 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14947 long i = longval ();
14948 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14950 fprintf (f, "%ld\n", i);
14954 unsigned long i = ulongval ();
14955 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14957 fprintf (f, "%lu\n", i);
14959 exit (ferror (f) || fclose (f) != 0);
14965 rm -f conftest$ac_exeext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14967 (eval $ac_link) 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 pgac_cv_alignof_long_long_int=`cat conftest.val`
14978 echo "$as_me: program exited with status $ac_status" >&5
14979 echo "$as_me: failed program was:" >&5
14980 cat conftest.$ac_ext >&5
14981 ( exit $ac_status )
14982 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14983 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14984 { (exit 1); exit 1; }; }
14986 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14991 pgac_cv_alignof_long_long_int=0
14994 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14995 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14996 cat >>confdefs.h <<_ACEOF
14997 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15002 echo "$as_me:$LINENO: checking for double" >&5
15003 echo $ECHO_N "checking for double... $ECHO_C" >&6
15004 if test "${ac_cv_type_double+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 cat >conftest.$ac_ext <<_ACEOF
15008 #line $LINENO "configure"
15009 #include "confdefs.h"
15010 $ac_includes_default
15011 #ifdef F77_DUMMY_MAIN
15012 # ifdef __cplusplus
15015 int F77_DUMMY_MAIN() { return 1; }
15022 if (sizeof (double))
15028 rm -f conftest.$ac_objext
15029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15030 (eval $ac_compile) 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try='test -s conftest.$ac_objext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 ac_cv_type_double=yes
15042 echo "$as_me: failed program was:" >&5
15043 cat conftest.$ac_ext >&5
15044 ac_cv_type_double=no
15046 rm -f conftest.$ac_objext conftest.$ac_ext
15048 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15049 echo "${ECHO_T}$ac_cv_type_double" >&6
15051 echo "$as_me:$LINENO: checking alignment of double" >&5
15052 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15053 if test "${pgac_cv_alignof_double+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 if test "$ac_cv_type_double" = yes; then
15057 if test "$cross_compiling" = yes; then
15058 # Depending upon the size, compute the lo and hi bounds.
15059 cat >conftest.$ac_ext <<_ACEOF
15060 #line $LINENO "configure"
15061 #include "confdefs.h"
15062 $ac_includes_default
15063 struct { char filler; double field; } pgac_struct;
15064 #ifdef F77_DUMMY_MAIN
15065 # ifdef __cplusplus
15068 int F77_DUMMY_MAIN() { return 1; }
15073 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15080 rm -f conftest.$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082 (eval $ac_compile) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try='test -s conftest.$ac_objext'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15094 cat >conftest.$ac_ext <<_ACEOF
15095 #line $LINENO "configure"
15096 #include "confdefs.h"
15097 $ac_includes_default
15098 struct { char filler; double field; } pgac_struct;
15099 #ifdef F77_DUMMY_MAIN
15100 # ifdef __cplusplus
15103 int F77_DUMMY_MAIN() { return 1; }
15108 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15115 rm -f conftest.$ac_objext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15117 (eval $ac_compile) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try='test -s conftest.$ac_objext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_hi=$ac_mid; break
15129 echo "$as_me: failed program was:" >&5
15130 cat conftest.$ac_ext >&5
15131 ac_lo=`expr $ac_mid + 1`
15132 if test $ac_lo -le $ac_mid; then
15136 ac_mid=`expr 2 '*' $ac_mid + 1`
15138 rm -f conftest.$ac_objext conftest.$ac_ext
15141 echo "$as_me: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15143 cat >conftest.$ac_ext <<_ACEOF
15144 #line $LINENO "configure"
15145 #include "confdefs.h"
15146 $ac_includes_default
15147 struct { char filler; double field; } pgac_struct;
15148 #ifdef F77_DUMMY_MAIN
15149 # ifdef __cplusplus
15152 int F77_DUMMY_MAIN() { return 1; }
15157 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15164 rm -f conftest.$ac_objext
15165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15166 (eval $ac_compile) 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
15170 { ac_try='test -s conftest.$ac_objext'
15171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }; then
15178 cat >conftest.$ac_ext <<_ACEOF
15179 #line $LINENO "configure"
15180 #include "confdefs.h"
15181 $ac_includes_default
15182 struct { char filler; double field; } pgac_struct;
15183 #ifdef F77_DUMMY_MAIN
15184 # ifdef __cplusplus
15187 int F77_DUMMY_MAIN() { return 1; }
15192 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15199 rm -f conftest.$ac_objext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201 (eval $ac_compile) 2>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } &&
15205 { ac_try='test -s conftest.$ac_objext'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; }; then
15211 ac_lo=$ac_mid; break
15213 echo "$as_me: failed program was:" >&5
15214 cat conftest.$ac_ext >&5
15215 ac_hi=`expr '(' $ac_mid ')' - 1`
15216 if test $ac_mid -le $ac_hi; then
15220 ac_mid=`expr 2 '*' $ac_mid`
15222 rm -f conftest.$ac_objext conftest.$ac_ext
15225 echo "$as_me: failed program was:" >&5
15226 cat conftest.$ac_ext >&5
15229 rm -f conftest.$ac_objext conftest.$ac_ext
15231 rm -f conftest.$ac_objext conftest.$ac_ext
15232 # Binary search between lo and hi bounds.
15233 while test "x$ac_lo" != "x$ac_hi"; do
15234 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15235 cat >conftest.$ac_ext <<_ACEOF
15236 #line $LINENO "configure"
15237 #include "confdefs.h"
15238 $ac_includes_default
15239 struct { char filler; double field; } pgac_struct;
15240 #ifdef F77_DUMMY_MAIN
15241 # ifdef __cplusplus
15244 int F77_DUMMY_MAIN() { return 1; }
15249 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15256 rm -f conftest.$ac_objext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15258 (eval $ac_compile) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -s conftest.$ac_objext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15270 echo "$as_me: failed program was:" >&5
15271 cat conftest.$ac_ext >&5
15272 ac_lo=`expr '(' $ac_mid ')' + 1`
15274 rm -f conftest.$ac_objext conftest.$ac_ext
15277 ?*) pgac_cv_alignof_double=$ac_lo;;
15278 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15279 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15280 { (exit 1); exit 1; }; } ;;
15283 if test "$cross_compiling" = yes; then
15284 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15285 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15286 { (exit 1); exit 1; }; }
15288 cat >conftest.$ac_ext <<_ACEOF
15289 #line $LINENO "configure"
15290 #include "confdefs.h"
15291 $ac_includes_default
15292 struct { char filler; double field; } pgac_struct;
15293 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15294 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15296 #include <stdlib.h>
15297 #ifdef F77_DUMMY_MAIN
15298 # ifdef __cplusplus
15301 int F77_DUMMY_MAIN() { return 1; }
15307 FILE *f = fopen ("conftest.val", "w");
15310 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15312 long i = longval ();
15313 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15315 fprintf (f, "%ld\n", i);
15319 unsigned long i = ulongval ();
15320 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15322 fprintf (f, "%lu\n", i);
15324 exit (ferror (f) || fclose (f) != 0);
15330 rm -f conftest$ac_exeext
15331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15332 (eval $ac_link) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 pgac_cv_alignof_double=`cat conftest.val`
15343 echo "$as_me: program exited with status $ac_status" >&5
15344 echo "$as_me: failed program was:" >&5
15345 cat conftest.$ac_ext >&5
15346 ( exit $ac_status )
15347 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15348 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15349 { (exit 1); exit 1; }; }
15351 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15356 pgac_cv_alignof_double=0
15359 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15360 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15361 cat >>confdefs.h <<_ACEOF
15362 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15367 # Compute maximum alignment of any basic type.
15368 # We assume long's alignment is at least as strong as char, short, or int;
15369 # but we must check long long (if it exists) and double.
15371 MAX_ALIGNOF=$pgac_cv_alignof_long
15372 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15373 MAX_ALIGNOF=$pgac_cv_alignof_double
15375 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15376 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15379 cat >>confdefs.h <<_ACEOF
15380 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15385 # Some platforms predefine the types int8, int16, etc. Only check
15386 # a (hopefully) representative subset.
15387 echo "$as_me:$LINENO: checking for int8" >&5
15388 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15389 if test "${ac_cv_type_int8+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 cat >conftest.$ac_ext <<_ACEOF
15393 #line $LINENO "configure"
15394 #include "confdefs.h"
15396 #ifdef HAVE_SUPPORTDEFS_H
15397 #include <SupportDefs.h>
15400 #ifdef F77_DUMMY_MAIN
15401 # ifdef __cplusplus
15404 int F77_DUMMY_MAIN() { return 1; }
15417 rm -f conftest.$ac_objext
15418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15419 (eval $ac_compile) 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -s conftest.$ac_objext'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }; then
15429 ac_cv_type_int8=yes
15431 echo "$as_me: failed program was:" >&5
15432 cat conftest.$ac_ext >&5
15435 rm -f conftest.$ac_objext conftest.$ac_ext
15437 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15438 echo "${ECHO_T}$ac_cv_type_int8" >&6
15439 if test $ac_cv_type_int8 = yes; then
15441 cat >>confdefs.h <<_ACEOF
15442 #define HAVE_INT8 1
15447 echo "$as_me:$LINENO: checking for uint8" >&5
15448 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15449 if test "${ac_cv_type_uint8+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 cat >conftest.$ac_ext <<_ACEOF
15453 #line $LINENO "configure"
15454 #include "confdefs.h"
15456 #ifdef HAVE_SUPPORTDEFS_H
15457 #include <SupportDefs.h>
15460 #ifdef F77_DUMMY_MAIN
15461 # ifdef __cplusplus
15464 int F77_DUMMY_MAIN() { return 1; }
15471 if (sizeof (uint8))
15477 rm -f conftest.$ac_objext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479 (eval $ac_compile) 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -s conftest.$ac_objext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_cv_type_uint8=yes
15491 echo "$as_me: failed program was:" >&5
15492 cat conftest.$ac_ext >&5
15493 ac_cv_type_uint8=no
15495 rm -f conftest.$ac_objext conftest.$ac_ext
15497 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15498 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15499 if test $ac_cv_type_uint8 = yes; then
15501 cat >>confdefs.h <<_ACEOF
15502 #define HAVE_UINT8 1
15507 echo "$as_me:$LINENO: checking for int64" >&5
15508 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15509 if test "${ac_cv_type_int64+set}" = set; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15512 cat >conftest.$ac_ext <<_ACEOF
15513 #line $LINENO "configure"
15514 #include "confdefs.h"
15516 #ifdef HAVE_SUPPORTDEFS_H
15517 #include <SupportDefs.h>
15520 #ifdef F77_DUMMY_MAIN
15521 # ifdef __cplusplus
15524 int F77_DUMMY_MAIN() { return 1; }
15531 if (sizeof (int64))
15537 rm -f conftest.$ac_objext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15539 (eval $ac_compile) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } &&
15543 { ac_try='test -s conftest.$ac_objext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 ac_cv_type_int64=yes
15551 echo "$as_me: failed program was:" >&5
15552 cat conftest.$ac_ext >&5
15553 ac_cv_type_int64=no
15555 rm -f conftest.$ac_objext conftest.$ac_ext
15557 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15558 echo "${ECHO_T}$ac_cv_type_int64" >&6
15559 if test $ac_cv_type_int64 = yes; then
15561 cat >>confdefs.h <<_ACEOF
15562 #define HAVE_INT64 1
15567 echo "$as_me:$LINENO: checking for uint64" >&5
15568 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15569 if test "${ac_cv_type_uint64+set}" = set; then
15570 echo $ECHO_N "(cached) $ECHO_C" >&6
15572 cat >conftest.$ac_ext <<_ACEOF
15573 #line $LINENO "configure"
15574 #include "confdefs.h"
15576 #ifdef HAVE_SUPPORTDEFS_H
15577 #include <SupportDefs.h>
15580 #ifdef F77_DUMMY_MAIN
15581 # ifdef __cplusplus
15584 int F77_DUMMY_MAIN() { return 1; }
15591 if (sizeof (uint64))
15597 rm -f conftest.$ac_objext
15598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15599 (eval $ac_compile) 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -s conftest.$ac_objext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_type_uint64=yes
15611 echo "$as_me: failed program was:" >&5
15612 cat conftest.$ac_ext >&5
15613 ac_cv_type_uint64=no
15615 rm -f conftest.$ac_objext conftest.$ac_ext
15617 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15618 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15619 if test $ac_cv_type_uint64 = yes; then
15621 cat >>confdefs.h <<_ACEOF
15622 #define HAVE_UINT64 1
15629 # We also check for sig_atomic_t, which *should* be defined per ANSI
15630 # C, but is missing on some old platforms.
15631 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15632 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15633 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 cat >conftest.$ac_ext <<_ACEOF
15637 #line $LINENO "configure"
15638 #include "confdefs.h"
15639 #include <signal.h>
15641 #ifdef F77_DUMMY_MAIN
15642 # ifdef __cplusplus
15645 int F77_DUMMY_MAIN() { return 1; }
15650 if ((sig_atomic_t *) 0)
15652 if (sizeof (sig_atomic_t))
15658 rm -f conftest.$ac_objext
15659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15660 (eval $ac_compile) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } &&
15664 { ac_try='test -s conftest.$ac_objext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_cv_type_sig_atomic_t=yes
15672 echo "$as_me: failed program was:" >&5
15673 cat conftest.$ac_ext >&5
15674 ac_cv_type_sig_atomic_t=no
15676 rm -f conftest.$ac_objext conftest.$ac_ext
15678 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15679 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15680 if test $ac_cv_type_sig_atomic_t = yes; then
15682 cat >>confdefs.h <<_ACEOF
15683 #define HAVE_SIG_ATOMIC_T 1
15691 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15692 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15693 if test "${pgac_cv_func_posix_signals+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 cat >conftest.$ac_ext <<_ACEOF
15697 #line $LINENO "configure"
15698 #include "confdefs.h"
15699 #include <signal.h>
15701 #ifdef F77_DUMMY_MAIN
15702 # ifdef __cplusplus
15705 int F77_DUMMY_MAIN() { return 1; }
15710 struct sigaction act, oact;
15711 sigemptyset(&act.sa_mask);
15712 act.sa_flags = SA_RESTART;
15713 sigaction(0, &act, &oact);
15718 rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15720 (eval $ac_link) 2>&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -s conftest$ac_exeext'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730 pgac_cv_func_posix_signals=yes
15732 echo "$as_me: failed program was:" >&5
15733 cat conftest.$ac_ext >&5
15734 pgac_cv_func_posix_signals=no
15736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15738 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15739 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15740 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15742 cat >>confdefs.h <<\_ACEOF
15743 #define HAVE_POSIX_SIGNALS
15747 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15751 # Select semaphore implementation type.
15752 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15754 cat >>confdefs.h <<\_ACEOF
15755 #define USE_NAMED_POSIX_SEMAPHORES 1
15758 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15760 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15762 cat >>confdefs.h <<\_ACEOF
15763 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15766 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15769 cat >>confdefs.h <<\_ACEOF
15770 #define USE_SYSV_SEMAPHORES 1
15773 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15778 # Select shared-memory implementation type.
15780 cat >>confdefs.h <<\_ACEOF
15781 #define USE_SYSV_SHARED_MEMORY 1
15784 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15787 if test "$enable_nls" = yes ; then
15789 echo "$as_me:$LINENO: checking for library containing gettext" >&5
15790 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15791 if test "${ac_cv_search_gettext+set}" = set; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 ac_func_search_save_LIBS=$LIBS
15795 ac_cv_search_gettext=no
15796 cat >conftest.$ac_ext <<_ACEOF
15797 #line $LINENO "configure"
15798 #include "confdefs.h"
15800 /* Override any gcc2 internal prototype to avoid an error. */
15804 /* We use char because int might match the return type of a gcc2
15805 builtin and then its argument prototype would still apply. */
15807 #ifdef F77_DUMMY_MAIN
15808 # ifdef __cplusplus
15811 int F77_DUMMY_MAIN() { return 1; }
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823 (eval $ac_link) 2>&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try='test -s conftest$ac_exeext'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 ac_cv_search_gettext="none required"
15835 echo "$as_me: failed program was:" >&5
15836 cat conftest.$ac_ext >&5
15838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15839 if test "$ac_cv_search_gettext" = no; then
15840 for ac_lib in intl; do
15841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15842 cat >conftest.$ac_ext <<_ACEOF
15843 #line $LINENO "configure"
15844 #include "confdefs.h"
15846 /* Override any gcc2 internal prototype to avoid an error. */
15850 /* We use char because int might match the return type of a gcc2
15851 builtin and then its argument prototype would still apply. */
15853 #ifdef F77_DUMMY_MAIN
15854 # ifdef __cplusplus
15857 int F77_DUMMY_MAIN() { return 1; }
15867 rm -f conftest.$ac_objext conftest$ac_exeext
15868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15869 (eval $ac_link) 2>&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
15873 { ac_try='test -s conftest$ac_exeext'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_cv_search_gettext="-l$ac_lib"
15882 echo "$as_me: failed program was:" >&5
15883 cat conftest.$ac_ext >&5
15885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15888 LIBS=$ac_func_search_save_LIBS
15890 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15891 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15892 if test "$ac_cv_search_gettext" != no; then
15893 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15896 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15897 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15898 { (exit 1); exit 1; }; }
15901 if test "${ac_cv_header_libintl_h+set}" = set; then
15902 echo "$as_me:$LINENO: checking for libintl.h" >&5
15903 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15904 if test "${ac_cv_header_libintl_h+set}" = set; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15908 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15910 # Is the header compilable?
15911 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15912 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15913 cat >conftest.$ac_ext <<_ACEOF
15914 #line $LINENO "configure"
15915 #include "confdefs.h"
15916 $ac_includes_default
15917 #include <libintl.h>
15919 rm -f conftest.$ac_objext
15920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15921 (eval $ac_compile) 2>&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try='test -s conftest.$ac_objext'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931 ac_header_compiler=yes
15933 echo "$as_me: failed program was:" >&5
15934 cat conftest.$ac_ext >&5
15935 ac_header_compiler=no
15937 rm -f conftest.$ac_objext conftest.$ac_ext
15938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15939 echo "${ECHO_T}$ac_header_compiler" >&6
15941 # Is the header present?
15942 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15943 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15944 cat >conftest.$ac_ext <<_ACEOF
15945 #line $LINENO "configure"
15946 #include "confdefs.h"
15947 #include <libintl.h>
15949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15952 egrep -v '^ *\+' conftest.er1 >conftest.err
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } >/dev/null; then
15957 if test -s conftest.err; then
15958 ac_cpp_err=$ac_c_preproc_warn_flag
15965 if test -z "$ac_cpp_err"; then
15966 ac_header_preproc=yes
15968 echo "$as_me: failed program was:" >&5
15969 cat conftest.$ac_ext >&5
15970 ac_header_preproc=no
15972 rm -f conftest.err conftest.$ac_ext
15973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15974 echo "${ECHO_T}$ac_header_preproc" >&6
15976 # So? What about this header?
15977 case $ac_header_compiler:$ac_header_preproc in
15979 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15980 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15981 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15982 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15984 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15985 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15987 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15989 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15991 echo "$as_me:$LINENO: checking for libintl.h" >&5
15992 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15993 if test "${ac_cv_header_libintl_h+set}" = set; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 ac_cv_header_libintl_h=$ac_header_preproc
15998 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15999 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16002 if test $ac_cv_header_libintl_h = yes; then
16005 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16006 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16007 { (exit 1); exit 1; }; }
16011 for ac_prog in msgfmt
16013 # Extract the first word of "$ac_prog", so it can be a program name with args.
16014 set dummy $ac_prog; ac_word=$2
16015 echo "$as_me:$LINENO: checking for $ac_word" >&5
16016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16017 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 if test -n "$MSGFMT"; then
16021 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16024 for as_dir in $PATH
16027 test -z "$as_dir" && as_dir=.
16028 for ac_exec_ext in '' $ac_executable_extensions; do
16029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16030 ac_cv_prog_MSGFMT="$ac_prog"
16031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16039 MSGFMT=$ac_cv_prog_MSGFMT
16040 if test -n "$MSGFMT"; then
16041 echo "$as_me:$LINENO: result: $MSGFMT" >&5
16042 echo "${ECHO_T}$MSGFMT" >&6
16044 echo "$as_me:$LINENO: result: no" >&5
16045 echo "${ECHO_T}no" >&6
16048 test -n "$MSGFMT" && break
16051 if test -z "$MSGFMT"; then
16052 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16053 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16054 { (exit 1); exit 1; }; }
16056 for ac_prog in msgmerge
16058 # Extract the first word of "$ac_prog", so it can be a program name with args.
16059 set dummy $ac_prog; ac_word=$2
16060 echo "$as_me:$LINENO: checking for $ac_word" >&5
16061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16062 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16065 if test -n "$MSGMERGE"; then
16066 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16069 for as_dir in $PATH
16072 test -z "$as_dir" && as_dir=.
16073 for ac_exec_ext in '' $ac_executable_extensions; do
16074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16075 ac_cv_prog_MSGMERGE="$ac_prog"
16076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16084 MSGMERGE=$ac_cv_prog_MSGMERGE
16085 if test -n "$MSGMERGE"; then
16086 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16087 echo "${ECHO_T}$MSGMERGE" >&6
16089 echo "$as_me:$LINENO: result: no" >&5
16090 echo "${ECHO_T}no" >&6
16093 test -n "$MSGMERGE" && break
16096 for ac_prog in xgettext
16098 # Extract the first word of "$ac_prog", so it can be a program name with args.
16099 set dummy $ac_prog; ac_word=$2
16100 echo "$as_me:$LINENO: checking for $ac_word" >&5
16101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16102 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16103 echo $ECHO_N "(cached) $ECHO_C" >&6
16105 if test -n "$XGETTEXT"; then
16106 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16109 for as_dir in $PATH
16112 test -z "$as_dir" && as_dir=.
16113 for ac_exec_ext in '' $ac_executable_extensions; do
16114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16115 ac_cv_prog_XGETTEXT="$ac_prog"
16116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16124 XGETTEXT=$ac_cv_prog_XGETTEXT
16125 if test -n "$XGETTEXT"; then
16126 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16127 echo "${ECHO_T}$XGETTEXT" >&6
16129 echo "$as_me:$LINENO: result: no" >&5
16130 echo "${ECHO_T}no" >&6
16133 test -n "$XGETTEXT" && break
16137 # Note: share/locale is always the default, independent of $datadir
16138 localedir='${prefix}/share/locale'
16139 if test x"$prefix" = x"NONE"; then
16140 exp_localedir="$ac_default_prefix/share/locale"
16142 exp_localedir="$prefix/share/locale"
16147 cat >>confdefs.h <<_ACEOF
16148 #define LOCALEDIR "$exp_localedir"
16154 if test "$with_CXX" = yes; then
16158 ac_cpp='$CXXCPP $CPPFLAGS'
16159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16163 if test "${ac_cv_header_string+set}" = set; then
16164 echo "$as_me:$LINENO: checking for string" >&5
16165 echo $ECHO_N "checking for string... $ECHO_C" >&6
16166 if test "${ac_cv_header_string+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16170 echo "${ECHO_T}$ac_cv_header_string" >&6
16172 # Is the header compilable?
16173 echo "$as_me:$LINENO: checking string usability" >&5
16174 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16175 cat >conftest.$ac_ext <<_ACEOF
16176 #line $LINENO "configure"
16177 #include "confdefs.h"
16178 $ac_includes_default
16181 rm -f conftest.$ac_objext
16182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16183 (eval $ac_compile) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -s conftest.$ac_objext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193 ac_header_compiler=yes
16195 echo "$as_me: failed program was:" >&5
16196 cat conftest.$ac_ext >&5
16197 ac_header_compiler=no
16199 rm -f conftest.$ac_objext conftest.$ac_ext
16200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16201 echo "${ECHO_T}$ac_header_compiler" >&6
16203 # Is the header present?
16204 echo "$as_me:$LINENO: checking string presence" >&5
16205 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16206 cat >conftest.$ac_ext <<_ACEOF
16207 #line $LINENO "configure"
16208 #include "confdefs.h"
16211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16214 egrep -v '^ *\+' conftest.er1 >conftest.err
16216 cat conftest.err >&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } >/dev/null; then
16219 if test -s conftest.err; then
16220 ac_cpp_err=$ac_cxx_preproc_warn_flag
16227 if test -z "$ac_cpp_err"; then
16228 ac_header_preproc=yes
16230 echo "$as_me: failed program was:" >&5
16231 cat conftest.$ac_ext >&5
16232 ac_header_preproc=no
16234 rm -f conftest.err conftest.$ac_ext
16235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16236 echo "${ECHO_T}$ac_header_preproc" >&6
16238 # So? What about this header?
16239 case $ac_header_compiler:$ac_header_preproc in
16241 { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16242 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16243 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16244 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16246 { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16247 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16248 { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16249 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16250 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16251 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16253 echo "$as_me:$LINENO: checking for string" >&5
16254 echo $ECHO_N "checking for string... $ECHO_C" >&6
16255 if test "${ac_cv_header_string+set}" = set; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16258 ac_cv_header_string=$ac_header_preproc
16260 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16261 echo "${ECHO_T}$ac_cv_header_string" >&6
16264 if test $ac_cv_header_string = yes; then
16266 cat >>confdefs.h <<\_ACEOF
16267 #define HAVE_CXX_STRING_HEADER 1
16271 echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16272 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16273 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 cat >conftest.$ac_ext <<_ACEOF
16277 #line $LINENO "configure"
16278 #include "confdefs.h"
16280 #include <stdlib.h>
16281 #include <string.h>
16283 #ifdef F77_DUMMY_MAIN
16284 # ifdef __cplusplus
16287 int F77_DUMMY_MAIN() { return 1; }
16292 string foo = "test"
16297 rm -f conftest.$ac_objext
16298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16299 (eval $ac_compile) 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } &&
16303 { ac_try='test -s conftest.$ac_objext'
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16309 pgac_cv_class_string_in_string_h=yes
16311 echo "$as_me: failed program was:" >&5
16312 cat conftest.$ac_ext >&5
16313 pgac_cv_class_string_in_string_h=no
16315 rm -f conftest.$ac_objext conftest.$ac_ext
16317 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16318 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16320 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16321 { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16322 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16323 { (exit 1); exit 1; }; }
16330 ac_cpp='$CPP $CPPFLAGS'
16331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16336 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16337 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16338 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 ac_cpp='$CXXCPP $CPPFLAGS'
16344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16348 cat >conftest.$ac_ext <<_ACEOF
16349 #line $LINENO "configure"
16350 #include "confdefs.h"
16352 #include <stdlib.h>
16353 #ifdef HAVE_CXX_STRING_HEADER
16356 using namespace std;
16358 #ifdef F77_DUMMY_MAIN
16359 # ifdef __cplusplus
16362 int F77_DUMMY_MAIN() { return 1; }
16372 rm -f conftest.$ac_objext
16373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16374 (eval $ac_compile) 2>&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
16378 { ac_try='test -s conftest.$ac_objext'
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; }; then
16384 pgac_cv_cxx_namespace_std=yes
16386 echo "$as_me: failed program was:" >&5
16387 cat conftest.$ac_ext >&5
16388 pgac_cv_cxx_namespace_std=no
16390 rm -f conftest.$ac_objext conftest.$ac_ext
16392 ac_cpp='$CPP $CPPFLAGS'
16393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16398 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16399 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16401 if test $pgac_cv_cxx_namespace_std = yes ; then
16403 cat >>confdefs.h <<\_ACEOF
16404 #define HAVE_NAMESPACE_STD 1
16411 # Check for Tcl configuration script tclConfig.sh
16412 if test "$with_tcl" = yes; then
16413 for ac_prog in tclsh tcl
16415 # Extract the first word of "$ac_prog", so it can be a program name with args.
16416 set dummy $ac_prog; ac_word=$2
16417 echo "$as_me:$LINENO: checking for $ac_word" >&5
16418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16419 if test "${ac_cv_path_TCLSH+set}" = set; then
16420 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16428 for as_dir in $PATH
16431 test -z "$as_dir" && as_dir=.
16432 for ac_exec_ext in '' $ac_executable_extensions; do
16433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16434 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16444 TCLSH=$ac_cv_path_TCLSH
16446 if test -n "$TCLSH"; then
16447 echo "$as_me:$LINENO: result: $TCLSH" >&5
16448 echo "${ECHO_T}$TCLSH" >&6
16450 echo "$as_me:$LINENO: result: no" >&5
16451 echo "${ECHO_T}no" >&6
16454 test -n "$TCLSH" && break
16457 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16458 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16459 # Let user override test
16460 if test -z "$TCL_CONFIG_SH"; then
16461 pgac_test_dirs="$with_tclconfig"
16463 set X $pgac_test_dirs; shift
16464 if test $# -eq 0; then
16465 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16466 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16467 { (exit 1); exit 1; }; }
16468 set X `echo 'puts $auto_path' | $TCLSH`; shift
16472 if test -r "$pgac_dir/tclConfig.sh"; then
16473 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16479 if test -z "$TCL_CONFIG_SH"; then
16480 echo "$as_me:$LINENO: result: no" >&5
16481 echo "${ECHO_T}no" >&6
16482 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16483 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16484 { (exit 1); exit 1; }; }
16486 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16487 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16493 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16494 eval TCL_LIBS=\"$TCL_LIBS\"
16495 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16496 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16500 # Check for Tk configuration script tkConfig.sh
16501 if test "$with_tk" = yes; then
16502 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16503 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16504 # Let user override test
16505 if test -z "$TK_CONFIG_SH"; then
16506 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16508 set X $pgac_test_dirs; shift
16509 if test $# -eq 0; then
16510 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16511 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16512 { (exit 1); exit 1; }; }
16513 set X `echo 'puts $auto_path' | $TCLSH`; shift
16517 if test -r "$pgac_dir/tkConfig.sh"; then
16518 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16524 if test -z "$TK_CONFIG_SH"; then
16525 echo "$as_me:$LINENO: result: no" >&5
16526 echo "${ECHO_T}no" >&6
16527 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16528 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16529 { (exit 1); exit 1; }; }
16531 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16532 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16538 eval TK_LIBS=\"$TK_LIBS\"
16539 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16540 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16546 # Check for DocBook and tools
16548 for ac_prog in onsgmls nsgmls
16550 # Extract the first word of "$ac_prog", so it can be a program name with args.
16551 set dummy $ac_prog; ac_word=$2
16552 echo "$as_me:$LINENO: checking for $ac_word" >&5
16553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16554 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 if test -n "$NSGMLS"; then
16558 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16561 for as_dir in $PATH
16564 test -z "$as_dir" && as_dir=.
16565 for ac_exec_ext in '' $ac_executable_extensions; do
16566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16567 ac_cv_prog_NSGMLS="$ac_prog"
16568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16576 NSGMLS=$ac_cv_prog_NSGMLS
16577 if test -n "$NSGMLS"; then
16578 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16579 echo "${ECHO_T}$NSGMLS" >&6
16581 echo "$as_me:$LINENO: result: no" >&5
16582 echo "${ECHO_T}no" >&6
16585 test -n "$NSGMLS" && break
16588 for ac_prog in openjade jade
16590 # Extract the first word of "$ac_prog", so it can be a program name with args.
16591 set dummy $ac_prog; ac_word=$2
16592 echo "$as_me:$LINENO: checking for $ac_word" >&5
16593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16594 if test "${ac_cv_prog_JADE+set}" = set; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 if test -n "$JADE"; then
16598 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16601 for as_dir in $PATH
16604 test -z "$as_dir" && as_dir=.
16605 for ac_exec_ext in '' $ac_executable_extensions; do
16606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16607 ac_cv_prog_JADE="$ac_prog"
16608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16616 JADE=$ac_cv_prog_JADE
16617 if test -n "$JADE"; then
16618 echo "$as_me:$LINENO: result: $JADE" >&5
16619 echo "${ECHO_T}$JADE" >&6
16621 echo "$as_me:$LINENO: result: no" >&5
16622 echo "${ECHO_T}no" >&6
16625 test -n "$JADE" && break
16629 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16630 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16631 if test "${pgac_cv_check_docbook+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 cat >conftest.sgml <<EOF
16635 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16637 <title>test</title>
16639 <title>random</title>
16641 <title>testsect</title>
16648 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16649 if test $? -eq 0; then
16650 pgac_cv_check_docbook=yes
16652 pgac_cv_check_docbook=no
16654 rm -f conftest.sgml
16656 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16657 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16659 have_docbook=$pgac_cv_check_docbook
16662 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16663 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16664 if test "${pgac_cv_path_stylesheets+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 if test -n "$DOCBOOKSTYLE"; then
16668 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16670 for pgac_prefix in /usr /usr/local /opt; do
16671 for pgac_infix in share lib; do
16672 for pgac_postfix in \
16673 sgml/stylesheets/nwalsh-modular \
16674 sgml/stylesheets/docbook \
16675 sgml/docbook/dsssl/modular \
16676 sgml/docbook/dsssl-stylesheets
16678 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16679 if test -r "$pgac_candidate/html/docbook.dsl" \
16680 && test -r "$pgac_candidate/print/docbook.dsl"
16682 pgac_cv_path_stylesheets=$pgac_candidate
16691 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16693 if test -n "$DOCBOOKSTYLE"; then
16694 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16695 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16697 echo "$as_me:$LINENO: result: no" >&5
16698 echo "${ECHO_T}no" >&6
16700 if test -n "$DOCBOOKSTYLE"; then
16701 for ac_prog in collateindex.pl
16703 # Extract the first word of "$ac_prog", so it can be a program name with args.
16704 set dummy $ac_prog; ac_word=$2
16705 echo "$as_me:$LINENO: checking for $ac_word" >&5
16706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16707 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16710 case $COLLATEINDEX in
16712 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16716 for as_dir in $DOCBOOKSTYLE/bin $PATH
16719 test -z "$as_dir" && as_dir=.
16720 for ac_exec_ext in '' $ac_executable_extensions; do
16721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16722 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16732 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16734 if test -n "$COLLATEINDEX"; then
16735 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16736 echo "${ECHO_T}$COLLATEINDEX" >&6
16738 echo "$as_me:$LINENO: result: no" >&5
16739 echo "${ECHO_T}no" >&6
16742 test -n "$COLLATEINDEX" && break
16746 for ac_prog in collateindex.pl
16748 # Extract the first word of "$ac_prog", so it can be a program name with args.
16749 set dummy $ac_prog; ac_word=$2
16750 echo "$as_me:$LINENO: checking for $ac_word" >&5
16751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16752 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 case $COLLATEINDEX in
16757 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16761 for as_dir in $PATH
16764 test -z "$as_dir" && as_dir=.
16765 for ac_exec_ext in '' $ac_executable_extensions; do
16766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16767 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16777 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16779 if test -n "$COLLATEINDEX"; then
16780 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16781 echo "${ECHO_T}$COLLATEINDEX" >&6
16783 echo "$as_me:$LINENO: result: no" >&5
16784 echo "${ECHO_T}no" >&6
16787 test -n "$COLLATEINDEX" && break
16791 for ac_prog in sgmlspl
16793 # Extract the first word of "$ac_prog", so it can be a program name with args.
16794 set dummy $ac_prog; ac_word=$2
16795 echo "$as_me:$LINENO: checking for $ac_word" >&5
16796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16797 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 if test -n "$SGMLSPL"; then
16801 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16804 for as_dir in $PATH
16807 test -z "$as_dir" && as_dir=.
16808 for ac_exec_ext in '' $ac_executable_extensions; do
16809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16810 ac_cv_prog_SGMLSPL="$ac_prog"
16811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16819 SGMLSPL=$ac_cv_prog_SGMLSPL
16820 if test -n "$SGMLSPL"; then
16821 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16822 echo "${ECHO_T}$SGMLSPL" >&6
16824 echo "$as_me:$LINENO: result: no" >&5
16825 echo "${ECHO_T}no" >&6
16828 test -n "$SGMLSPL" && break
16833 # prepare build tree if outside source tree
16834 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16835 # Note 2: /bin/pwd might be better than shell's built-in at getting
16836 # a symlink-free name.
16837 if test "$no_create" != yes; then
16838 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16843 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16844 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16845 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16846 || { { echo "$as_me:$LINENO: error: failed" >&5
16847 echo "$as_me: error: failed" >&2;}
16848 { (exit 1); exit 1; }; }
16849 echo "$as_me:$LINENO: result: done" >&5
16850 echo "${ECHO_T}done" >&6
16855 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16858 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
16861 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16864 cat >confcache <<\_ACEOF
16865 # This file is a shell script that caches the results of configure
16866 # tests run on this system so they can be shared between configure
16867 # scripts and configure runs, see configure's option --config-cache.
16868 # It is not useful on other systems. If it contains results you don't
16869 # want to keep, you may remove or edit it.
16871 # config.status only pays attention to the cache file if you give it
16872 # the --recheck option to rerun configure.
16874 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16876 # following values.
16880 # The following way of writing the cache mishandles newlines in values,
16881 # but we know of no workaround that is simple, portable, and efficient.
16882 # So, don't put newlines in cache variables' values.
16883 # Ultrix sh set writes to stderr and can't be redirected directly,
16884 # and sets the high bit in the cache file unless we assign to the vars.
16887 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16889 # `set' does not quote correctly, so add quotes (double-quote
16890 # substitution turns \\\\ into \\, and sed turns \\ into \).
16893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16896 # `set' quotes correctly as required by POSIX, so do not add quotes.
16898 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16907 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16909 if cmp -s $cache_file confcache; then :; else
16910 if test -w $cache_file; then
16911 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16912 cat confcache >$cache_file
16914 echo "not updating unwritable cache $cache_file"
16919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16920 # Let make expand exec_prefix.
16921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16923 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16924 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16925 # trailing colons and then remove the whole line if VPATH becomes empty
16926 # (actually we leave an empty line to preserve line numbers).
16927 if test "x$srcdir" = x.; then
16928 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16929 s/:*\$(srcdir):*/:/;
16930 s/:*\${srcdir}:*/:/;
16932 s/^\([^=]*=[ ]*\):*/\1/;
16938 DEFS=-DHAVE_CONFIG_H
16941 : ${CONFIG_STATUS=./config.status}
16942 ac_clean_files_save=$ac_clean_files
16943 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16944 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16945 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16946 cat >$CONFIG_STATUS <<_ACEOF
16948 # Generated by $as_me.
16949 # Run this file to recreate the current configuration.
16950 # Compiler output produced by configure, useful for debugging
16951 # configure, is in config.log if it exists.
16954 SHELL=\${CONFIG_SHELL-$SHELL}
16957 cat >>$CONFIG_STATUS <<\_ACEOF
16959 ## --------------------- ##
16960 ## M4sh Initialization. ##
16961 ## --------------------- ##
16963 # Be Bourne compatible
16964 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16967 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16972 # Support unset when possible.
16973 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16979 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16980 { $as_unset LANG || test "${LANG+set}" != set; } ||
16981 { LANG=C; export LANG; }
16982 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16983 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16984 { LC_ALL=C; export LC_ALL; }
16985 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16986 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16987 { LC_TIME=C; export LC_TIME; }
16988 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16989 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16990 { LC_CTYPE=C; export LC_CTYPE; }
16991 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16992 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16993 { LANGUAGE=C; export LANGUAGE; }
16994 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16995 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16996 { LC_COLLATE=C; export LC_COLLATE; }
16997 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16998 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16999 { LC_NUMERIC=C; export LC_NUMERIC; }
17000 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17001 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17002 { LC_MESSAGES=C; export LC_MESSAGES; }
17005 # Name of the executable.
17006 as_me=`(basename "$0") 2>/dev/null ||
17007 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17008 X"$0" : 'X\(//\)$' \| \
17009 X"$0" : 'X\(/\)$' \| \
17010 . : '\(.\)' 2>/dev/null ||
17012 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17013 /^X\/\(\/\/\)$/{ s//\1/; q; }
17014 /^X\/\(\/\).*/{ s//\1/; q; }
17017 # PATH needs CR, and LINENO needs CR and PATH.
17018 # Avoid depending upon Character Ranges.
17019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17022 as_cr_digits='0123456789'
17023 as_cr_alnum=$as_cr_Letters$as_cr_digits
17025 # The user is always right.
17026 if test "${PATH_SEPARATOR+set}" != set; then
17027 echo "#! /bin/sh" >conftest.sh
17028 echo "exit 0" >>conftest.sh
17029 chmod +x conftest.sh
17030 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17039 as_lineno_1=$LINENO
17040 as_lineno_2=$LINENO
17041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17042 test "x$as_lineno_1" != "x$as_lineno_2" &&
17043 test "x$as_lineno_3" = "x$as_lineno_2" || {
17044 # Find who we are. Look in the path if we contain no path at all
17047 *[\\/]* ) as_myself=$0 ;;
17048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17049 for as_dir in $PATH
17052 test -z "$as_dir" && as_dir=.
17053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17058 # We did not find ourselves, most probably we were run as `sh COMMAND'
17059 # in which case we are not to be found in the path.
17060 if test "x$as_myself" = x; then
17063 if test ! -f "$as_myself"; then
17064 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17065 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17066 { (exit 1); exit 1; }; }
17068 case $CONFIG_SHELL in
17070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17071 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17074 test -z "$as_dir" && as_dir=.
17075 for as_base in sh bash ksh sh5; do
17078 if ("$as_dir/$as_base" -c '
17079 as_lineno_1=$LINENO
17080 as_lineno_2=$LINENO
17081 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17082 test "x$as_lineno_1" != "x$as_lineno_2" &&
17083 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17084 CONFIG_SHELL=$as_dir/$as_base
17085 export CONFIG_SHELL
17086 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17094 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17095 # uniformly replaced by the line number. The first 'sed' inserts a
17096 # line-number line before each line; the second 'sed' does the real
17097 # work. The second script uses 'N' to pair each line-number line
17098 # with the numbered line, and appends trailing '-' during
17099 # substitution so that $LINENO is not a special case at line end.
17100 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17101 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17102 sed '=' <$as_myself |
17107 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17110 s,^['$as_cr_digits']*\n,,
17111 ' >$as_me.lineno &&
17112 chmod +x $as_me.lineno ||
17113 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17114 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17115 { (exit 1); exit 1; }; }
17117 # Don't try to exec as it changes $[0], causing all sort of problems
17118 # (the dirname of $[0] is not the place where we might find the
17119 # original and so on. Autoconf is especially sensible to this).
17121 # Exit status is that of the last command.
17126 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17127 *c*,-n*) ECHO_N= ECHO_C='
17129 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17130 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17133 if expr a : '\(a\)' >/dev/null 2>&1; then
17139 rm -f conf$$ conf$$.exe conf$$.file
17141 if ln -s conf$$.file conf$$ 2>/dev/null; then
17142 # We could just check for DJGPP; but this test a) works b) is more generic
17143 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17144 if test -f conf$$.exe; then
17145 # Don't use ln at all; we don't have any links
17150 elif ln conf$$.file conf$$ 2>/dev/null; then
17155 rm -f conf$$ conf$$.exe conf$$.file
17157 as_executable_p="test -f"
17159 # Sed expression to map a string onto a valid CPP name.
17160 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17162 # Sed expression to map a string onto a valid variable name.
17163 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17167 # We need space, tab and new line, in precisely that order.
17173 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17177 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17178 # report actual input values of CONFIG_FILES etc. instead of their
17179 # values after options handling. Logging --version etc. is OK.
17183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17184 ## Running $as_me. ##
17189 This file was extended by PostgreSQL $as_me 7.3devel, which was
17190 generated by GNU Autoconf 2.53. Invocation command line was
17192 CONFIG_FILES = $CONFIG_FILES
17193 CONFIG_HEADERS = $CONFIG_HEADERS
17194 CONFIG_LINKS = $CONFIG_LINKS
17195 CONFIG_COMMANDS = $CONFIG_COMMANDS
17199 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17203 # Files that config.status was made for.
17204 if test -n "$ac_config_files"; then
17205 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17208 if test -n "$ac_config_headers"; then
17209 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17212 if test -n "$ac_config_links"; then
17213 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17216 if test -n "$ac_config_commands"; then
17217 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17220 cat >>$CONFIG_STATUS <<\_ACEOF
17223 \`$as_me' instantiates files from templates according to the
17224 current configuration.
17226 Usage: $0 [OPTIONS] [FILE]...
17228 -h, --help print this help, then exit
17229 -V, --version print version number, then exit
17230 -d, --debug don't remove temporary files
17231 --recheck update $as_me by reconfiguring in the same conditions
17232 --file=FILE[:TEMPLATE]
17233 instantiate the configuration file FILE
17234 --header=FILE[:TEMPLATE]
17235 instantiate the configuration header FILE
17237 Configuration files:
17240 Configuration headers:
17243 Configuration links:
17246 Report bugs to <bug-autoconf@gnu.org>."
17249 cat >>$CONFIG_STATUS <<_ACEOF
17251 PostgreSQL config.status 7.3devel
17252 configured by $0, generated by GNU Autoconf 2.53,
17253 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17255 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17256 Free Software Foundation, Inc.
17257 This config.status script is free software; the Free Software Foundation
17258 gives unlimited permission to copy, distribute and modify it."
17262 cat >>$CONFIG_STATUS <<\_ACEOF
17263 # If no file are specified by the user, then we need to provide default
17264 # value. By we need to know if files were specified by the user.
17270 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17271 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17273 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17277 *) # This is not an option, so the user has probably given explicit
17279 ac_need_defaults=false;;
17283 # Handling of the options.
17285 cat >>$CONFIG_STATUS <<_ACEOF
17286 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17287 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17288 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17290 cat >>$CONFIG_STATUS <<\_ACEOF
17291 --version | --vers* | -V )
17292 echo "$ac_cs_version"; exit 0 ;;
17294 # Conflict between --help and --header
17295 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17296 Try \`$0 --help' for more information." >&5
17297 echo "$as_me: error: ambiguous option: $1
17298 Try \`$0 --help' for more information." >&2;}
17299 { (exit 1); exit 1; }; };;
17300 --help | --hel | -h )
17301 echo "$ac_cs_usage"; exit 0 ;;
17302 --debug | --d* | -d )
17304 --file | --fil | --fi | --f )
17306 CONFIG_FILES="$CONFIG_FILES $1"
17307 ac_need_defaults=false;;
17308 --header | --heade | --head | --hea )
17310 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17311 ac_need_defaults=false;;
17313 # This is an error.
17314 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17315 Try \`$0 --help' for more information." >&5
17316 echo "$as_me: error: unrecognized option: $1
17317 Try \`$0 --help' for more information." >&2;}
17318 { (exit 1); exit 1; }; } ;;
17320 *) ac_config_targets="$ac_config_targets $1" ;;
17332 cat >>$CONFIG_STATUS <<\_ACEOF
17333 for ac_config_target in $ac_config_targets
17335 case "$ac_config_target" in
17336 # Handling of arguments.
17337 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17338 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17339 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17340 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17341 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17342 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17343 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17344 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17345 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17346 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17347 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17348 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17349 { (exit 1); exit 1; }; };;
17353 # If the user did not use the arguments to specify the items to instantiate,
17354 # then the envvar interface is used. Set only those that are not.
17355 # We use the long form for the default assignment because of an extremely
17356 # bizarre bug on SunOS 4.1.3.
17357 if $ac_need_defaults; then
17358 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17359 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17360 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17363 # Create a temporary directory, and hook for its removal unless debugging.
17366 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17367 trap '{ (exit 1); exit 1; }' 1 2 13 15
17370 # Create a (secure) tmp directory for tmp files.
17373 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17374 test -n "$tmp" && test -d "$tmp"
17377 tmp=$TMPDIR/cs$$-$RANDOM
17378 (umask 077 && mkdir $tmp)
17381 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17382 { (exit 1); exit 1; }
17387 cat >>$CONFIG_STATUS <<_ACEOF
17390 # CONFIG_FILES section.
17393 # No need to generate the scripts if there are no CONFIG_FILES.
17394 # This happens for instance when ./config.status config.h
17395 if test -n "\$CONFIG_FILES"; then
17396 # Protect against being on the right side of a sed subst in config.status.
17397 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17398 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17399 s,@SHELL@,$SHELL,;t t
17400 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17401 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17402 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17403 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17404 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17405 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17406 s,@exec_prefix@,$exec_prefix,;t t
17407 s,@prefix@,$prefix,;t t
17408 s,@program_transform_name@,$program_transform_name,;t t
17409 s,@bindir@,$bindir,;t t
17410 s,@sbindir@,$sbindir,;t t
17411 s,@libexecdir@,$libexecdir,;t t
17412 s,@datadir@,$datadir,;t t
17413 s,@sysconfdir@,$sysconfdir,;t t
17414 s,@sharedstatedir@,$sharedstatedir,;t t
17415 s,@localstatedir@,$localstatedir,;t t
17416 s,@libdir@,$libdir,;t t
17417 s,@includedir@,$includedir,;t t
17418 s,@oldincludedir@,$oldincludedir,;t t
17419 s,@infodir@,$infodir,;t t
17420 s,@mandir@,$mandir,;t t
17421 s,@build_alias@,$build_alias,;t t
17422 s,@host_alias@,$host_alias,;t t
17423 s,@target_alias@,$target_alias,;t t
17424 s,@DEFS@,$DEFS,;t t
17425 s,@ECHO_C@,$ECHO_C,;t t
17426 s,@ECHO_N@,$ECHO_N,;t t
17427 s,@ECHO_T@,$ECHO_T,;t t
17428 s,@LIBS@,$LIBS,;t t
17429 s,@docdir@,$docdir,;t t
17430 s,@configure_args@,$configure_args,;t t
17431 s,@build@,$build,;t t
17432 s,@build_cpu@,$build_cpu,;t t
17433 s,@build_vendor@,$build_vendor,;t t
17434 s,@build_os@,$build_os,;t t
17435 s,@host@,$host,;t t
17436 s,@host_cpu@,$host_cpu,;t t
17437 s,@host_vendor@,$host_vendor,;t t
17438 s,@host_os@,$host_os,;t t
17439 s,@PORTNAME@,$PORTNAME,;t t
17441 s,@MULTIBYTE@,$MULTIBYTE,;t t
17442 s,@enable_nls@,$enable_nls,;t t
17443 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17444 s,@default_port@,$default_port,;t t
17445 s,@enable_shared@,$enable_shared,;t t
17446 s,@enable_rpath@,$enable_rpath,;t t
17447 s,@enable_debug@,$enable_debug,;t t
17449 s,@CFLAGS@,$CFLAGS,;t t
17450 s,@LDFLAGS@,$LDFLAGS,;t t
17451 s,@CPPFLAGS@,$CPPFLAGS,;t t
17452 s,@ac_ct_CC@,$ac_ct_CC,;t t
17453 s,@EXEEXT@,$EXEEXT,;t t
17454 s,@OBJEXT@,$OBJEXT,;t t
17457 s,@autodepend@,$autodepend,;t t
17458 s,@INCLUDES@,$INCLUDES,;t t
17459 s,@with_tcl@,$with_tcl,;t t
17460 s,@with_tk@,$with_tk,;t t
17461 s,@with_perl@,$with_perl,;t t
17462 s,@with_python@,$with_python,;t t
17464 s,@with_java@,$with_java,;t t
17465 s,@with_krb4@,$with_krb4,;t t
17466 s,@with_krb5@,$with_krb5,;t t
17467 s,@krb_srvtab@,$krb_srvtab,;t t
17468 s,@with_pam@,$with_pam,;t t
17469 s,@with_openssl@,$with_openssl,;t t
17470 s,@enable_odbc@,$enable_odbc,;t t
17471 s,@with_unixodbc@,$with_unixodbc,;t t
17472 s,@with_iodbc@,$with_iodbc,;t t
17473 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17474 s,@ELF_SYS@,$ELF_SYS,;t t
17476 s,@CXXFLAGS@,$CXXFLAGS,;t t
17477 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17478 s,@CXXCPP@,$CXXCPP,;t t
17479 s,@with_CXX@,$with_CXX,;t t
17482 s,@FLEX@,$FLEX,;t t
17483 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17484 s,@LN_S@,$LN_S,;t t
17486 s,@with_gnu_ld@,$with_gnu_ld,;t t
17487 s,@ld_R_works@,$ld_R_works,;t t
17488 s,@RANLIB@,$RANLIB,;t t
17489 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17490 s,@LORDER@,$LORDER,;t t
17492 s,@STRIP@,$STRIP,;t t
17493 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17494 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17495 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17496 s,@YACC@,$YACC,;t t
17497 s,@YFLAGS@,$YFLAGS,;t t
17498 s,@WISH@,$WISH,;t t
17499 s,@PERL@,$PERL,;t t
17500 s,@perl_installsitearch@,$perl_installsitearch,;t t
17501 s,@perl_installman3dir@,$perl_installman3dir,;t t
17502 s,@perl_archlibexp@,$perl_archlibexp,;t t
17503 s,@perl_privlibexp@,$perl_privlibexp,;t t
17504 s,@perl_useshrplib@,$perl_useshrplib,;t t
17505 s,@perl_man3ext@,$perl_man3ext,;t t
17506 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17507 s,@PYTHON@,$PYTHON,;t t
17508 s,@python_version@,$python_version,;t t
17509 s,@python_prefix@,$python_prefix,;t t
17510 s,@python_execprefix@,$python_execprefix,;t t
17511 s,@python_configdir@,$python_configdir,;t t
17512 s,@python_moduledir@,$python_moduledir,;t t
17513 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17514 s,@python_includespec@,$python_includespec,;t t
17515 s,@python_libspec@,$python_libspec,;t t
17516 s,@MEMCMP@,$MEMCMP,;t t
17517 s,@SNPRINTF@,$SNPRINTF,;t t
17518 s,@ISINF@,$ISINF,;t t
17519 s,@GETRUSAGE@,$GETRUSAGE,;t t
17520 s,@SRANDOM@,$SRANDOM,;t t
17521 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17522 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17523 s,@INET_ATON@,$INET_ATON,;t t
17524 s,@STRERROR@,$STRERROR,;t t
17525 s,@STRDUP@,$STRDUP,;t t
17526 s,@STRTOL@,$STRTOL,;t t
17527 s,@STRTOUL@,$STRTOUL,;t t
17528 s,@STRCASECMP@,$STRCASECMP,;t t
17529 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17530 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17531 s,@MSGFMT@,$MSGFMT,;t t
17532 s,@MSGMERGE@,$MSGMERGE,;t t
17533 s,@XGETTEXT@,$XGETTEXT,;t t
17534 s,@localedir@,$localedir,;t t
17535 s,@TCLSH@,$TCLSH,;t t
17536 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17537 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17538 s,@TCL_LIBS@,$TCL_LIBS,;t t
17539 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17540 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17541 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17542 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17543 s,@TK_LIBS@,$TK_LIBS,;t t
17544 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17545 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17546 s,@NSGMLS@,$NSGMLS,;t t
17547 s,@JADE@,$JADE,;t t
17548 s,@have_docbook@,$have_docbook,;t t
17549 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17550 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17551 s,@SGMLSPL@,$SGMLSPL,;t t
17552 s,@vpath_build@,$vpath_build,;t t
17557 cat >>$CONFIG_STATUS <<\_ACEOF
17558 # Split the substitutions into bite-sized pieces for seds with
17559 # small command number limits, like on Digital OSF/1 and HP-UX.
17560 ac_max_sed_lines=48
17561 ac_sed_frag=1 # Number of current file.
17562 ac_beg=1 # First line for current file.
17563 ac_end=$ac_max_sed_lines # Line after last line for current file.
17566 while $ac_more_lines; do
17567 if test $ac_beg -gt 1; then
17568 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17570 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17572 if test ! -s $tmp/subs.frag; then
17573 ac_more_lines=false
17575 # The purpose of the label and of the branching condition is to
17576 # speed up the sed processing (if there are no `@' at all, there
17577 # is no need to browse any of the substitutions).
17578 # These are the two extra sed commands mentioned above.
17580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17581 if test -z "$ac_sed_cmds"; then
17582 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17584 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17586 ac_sed_frag=`expr $ac_sed_frag + 1`
17588 ac_end=`expr $ac_end + $ac_max_sed_lines`
17591 if test -z "$ac_sed_cmds"; then
17594 fi # test -n "$CONFIG_FILES"
17597 cat >>$CONFIG_STATUS <<\_ACEOF
17598 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17599 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17601 - | *:- | *:-:* ) # input from stdin
17603 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17605 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17606 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17607 * ) ac_file_in=$ac_file.in ;;
17610 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17611 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17612 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17613 X"$ac_file" : 'X\(//\)[^/]' \| \
17614 X"$ac_file" : 'X\(//\)$' \| \
17615 X"$ac_file" : 'X\(/\)' \| \
17616 . : '\(.\)' 2>/dev/null ||
17618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17619 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17620 /^X\(\/\/\)$/{ s//\1/; q; }
17621 /^X\(\/\).*/{ s//\1/; q; }
17623 { case "$ac_dir" in
17624 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17628 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17629 case $as_mkdir_dir in
17630 # Skip DOS drivespec
17631 ?:) as_incr_dir=$as_mkdir_dir ;;
17633 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17634 test -d "$as_incr_dir" ||
17635 mkdir "$as_incr_dir" ||
17636 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17637 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17638 { (exit 1); exit 1; }; }
17645 if test "$ac_dir" != .; then
17646 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17647 # A "../" for each directory in $ac_dir_suffix.
17648 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17650 ac_dir_suffix= ac_top_builddir=
17654 .) # No --srcdir option. We are building in place.
17656 if test -z "$ac_top_builddir"; then
17659 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17661 [\\/]* | ?:[\\/]* ) # Absolute path.
17662 ac_srcdir=$srcdir$ac_dir_suffix;
17663 ac_top_srcdir=$srcdir ;;
17664 *) # Relative path.
17665 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17666 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17668 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17670 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17671 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17672 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17673 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17677 if test x"$ac_file" != x-; then
17678 { echo "$as_me:$LINENO: creating $ac_file" >&5
17679 echo "$as_me: creating $ac_file" >&6;}
17682 # Let's still pretend it is `configure' which instantiates (i.e., don't
17683 # use $as_me), people would be surprised to read:
17684 # /* config.h. Generated by config.status. */
17685 if test x"$ac_file" = x-; then
17688 configure_input="$ac_file. "
17690 configure_input=$configure_input"Generated from `echo $ac_file_in |
17691 sed 's,.*/,,'` by configure."
17693 # First look for the input files in the build tree, otherwise in the
17695 ac_file_inputs=`IFS=:
17696 for f in $ac_file_in; do
17698 -) echo $tmp/stdin ;;
17700 # Absolute (can't be DOS-style, as IFS=:)
17701 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17702 echo "$as_me: error: cannot find input file: $f" >&2;}
17703 { (exit 1); exit 1; }; }
17706 if test -f "$f"; then
17709 elif test -f "$srcdir/$f"; then
17714 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17715 echo "$as_me: error: cannot find input file: $f" >&2;}
17716 { (exit 1); exit 1; }; }
17719 done` || { (exit 1); exit 1; }
17721 cat >>$CONFIG_STATUS <<_ACEOF
17725 cat >>$CONFIG_STATUS <<\_ACEOF
17727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17728 s,@configure_input@,$configure_input,;t t
17729 s,@srcdir@,$ac_srcdir,;t t
17730 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17731 s,@top_srcdir@,$ac_top_srcdir,;t t
17732 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17733 s,@builddir@,$ac_builddir,;t t
17734 s,@abs_builddir@,$ac_abs_builddir,;t t
17735 s,@top_builddir@,$ac_top_builddir,;t t
17736 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17737 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17739 if test x"$ac_file" != x-; then
17740 mv $tmp/out $ac_file
17748 cat >>$CONFIG_STATUS <<\_ACEOF
17751 # CONFIG_HEADER section.
17754 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17755 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17757 # ac_d sets the value in "#define NAME VALUE" lines.
17758 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17759 ac_dB='[ ].*$,\1#\2'
17762 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17763 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17764 ac_uB='$,\1#\2define\3'
17768 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17771 - | *:- | *:-:* ) # input from stdin
17773 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17775 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17777 * ) ac_file_in=$ac_file.in ;;
17780 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17781 echo "$as_me: creating $ac_file" >&6;}
17783 # First look for the input files in the build tree, otherwise in the
17785 ac_file_inputs=`IFS=:
17786 for f in $ac_file_in; do
17788 -) echo $tmp/stdin ;;
17790 # Absolute (can't be DOS-style, as IFS=:)
17791 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17792 echo "$as_me: error: cannot find input file: $f" >&2;}
17793 { (exit 1); exit 1; }; }
17796 if test -f "$f"; then
17799 elif test -f "$srcdir/$f"; then
17804 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17805 echo "$as_me: error: cannot find input file: $f" >&2;}
17806 { (exit 1); exit 1; }; }
17809 done` || { (exit 1); exit 1; }
17810 # Remove the trailing spaces.
17811 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17815 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17816 # `conftest.undefs', that substitutes the proper values into
17817 # config.h.in to produce config.h. The first handles `#define'
17818 # templates, and the second `#undef' templates.
17819 # And first: Protect against being on the right side of a sed subst in
17820 # config.status. Protect against being in an unquoted here document
17821 # in config.status.
17822 rm -f conftest.defines conftest.undefs
17823 # Using a here document instead of a string reduces the quoting nightmare.
17824 # Putting comments in sed scripts is not portable.
17826 # `end' is used to avoid that the second main sed command (meant for
17827 # 0-ary CPP macros) applies to n-ary macro definitions.
17828 # See the Autoconf documentation for `clear'.
17829 cat >confdef2sed.sed <<\_ACEOF
17834 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17836 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17839 # If some macros were called several times there might be several times
17840 # the same #defines, which is useless. Nevertheless, we may not want to
17841 # sort them, since we want the *last* AC-DEFINE to be honored.
17842 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17843 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17844 rm -f confdef2sed.sed
17846 # This sed command replaces #undef with comments. This is necessary, for
17847 # example, in the case of _POSIX_SOURCE, which is predefined and required
17848 # on some systems where configure will not decide to define it.
17849 cat >>conftest.undefs <<\_ACEOF
17850 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17853 # Break up conftest.defines because some shells have a limit on the size
17854 # of here documents, and old seds have small limits too (100 cmds).
17855 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17856 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17857 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17858 echo ' :' >>$CONFIG_STATUS
17859 rm -f conftest.tail
17860 while grep . conftest.defines >/dev/null
17862 # Write a limited-size here document to $tmp/defines.sed.
17863 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17864 # Speed up: don't consider the non `#define' lines.
17865 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17866 # Work around the forget-to-reset-the-flag bug.
17867 echo 't clr' >>$CONFIG_STATUS
17868 echo ': clr' >>$CONFIG_STATUS
17869 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17871 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17873 mv $tmp/out $tmp/in
17875 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17876 rm -f conftest.defines
17877 mv conftest.tail conftest.defines
17879 rm -f conftest.defines
17880 echo ' fi # egrep' >>$CONFIG_STATUS
17881 echo >>$CONFIG_STATUS
17883 # Break up conftest.undefs because some shells have a limit on the size
17884 # of here documents, and old seds have small limits too (100 cmds).
17885 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17886 rm -f conftest.tail
17887 while grep . conftest.undefs >/dev/null
17889 # Write a limited-size here document to $tmp/undefs.sed.
17890 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17891 # Speed up: don't consider the non `#undef'
17892 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17893 # Work around the forget-to-reset-the-flag bug.
17894 echo 't clr' >>$CONFIG_STATUS
17895 echo ': clr' >>$CONFIG_STATUS
17896 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17898 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17900 mv $tmp/out $tmp/in
17902 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17903 rm -f conftest.undefs
17904 mv conftest.tail conftest.undefs
17906 rm -f conftest.undefs
17908 cat >>$CONFIG_STATUS <<\_ACEOF
17909 # Let's still pretend it is `configure' which instantiates (i.e., don't
17910 # use $as_me), people would be surprised to read:
17911 # /* config.h. Generated by config.status. */
17912 if test x"$ac_file" = x-; then
17913 echo "/* Generated by configure. */" >$tmp/config.h
17915 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17917 cat $tmp/in >>$tmp/config.h
17919 if test x"$ac_file" != x-; then
17920 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17921 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17922 echo "$as_me: $ac_file is unchanged" >&6;}
17924 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17926 X"$ac_file" : 'X\(//\)[^/]' \| \
17927 X"$ac_file" : 'X\(//\)$' \| \
17928 X"$ac_file" : 'X\(/\)' \| \
17929 . : '\(.\)' 2>/dev/null ||
17931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17933 /^X\(\/\/\)$/{ s//\1/; q; }
17934 /^X\(\/\).*/{ s//\1/; q; }
17936 { case "$ac_dir" in
17937 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17941 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17942 case $as_mkdir_dir in
17943 # Skip DOS drivespec
17944 ?:) as_incr_dir=$as_mkdir_dir ;;
17946 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17947 test -d "$as_incr_dir" ||
17948 mkdir "$as_incr_dir" ||
17949 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17950 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17951 { (exit 1); exit 1; }; }
17957 mv $tmp/config.h $ac_file
17961 rm -f $tmp/config.h
17963 # Run the commands associated with the file.
17965 src/include/pg_config.h )
17966 # Update timestamp for pg_config.h (see Makefile.global)
17967 echo >src/include/stamp-h
17972 cat >>$CONFIG_STATUS <<\_ACEOF
17975 # CONFIG_LINKS section.
17978 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17979 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17980 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17982 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17983 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17985 if test ! -r $srcdir/$ac_source; then
17986 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17987 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17988 { (exit 1); exit 1; }; }
17992 # Make relative symlinks.
17993 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17994 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17995 X"$ac_dest" : 'X\(//\)[^/]' \| \
17996 X"$ac_dest" : 'X\(//\)$' \| \
17997 X"$ac_dest" : 'X\(/\)' \| \
17998 . : '\(.\)' 2>/dev/null ||
18000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18002 /^X\(\/\/\)$/{ s//\1/; q; }
18003 /^X\(\/\).*/{ s//\1/; q; }
18005 { case "$ac_dest_dir" in
18006 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18009 as_dummy="$ac_dest_dir"
18010 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18011 case $as_mkdir_dir in
18012 # Skip DOS drivespec
18013 ?:) as_incr_dir=$as_mkdir_dir ;;
18015 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18016 test -d "$as_incr_dir" ||
18017 mkdir "$as_incr_dir" ||
18018 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18019 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18020 { (exit 1); exit 1; }; }
18027 if test "$ac_dest_dir" != .; then
18028 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18029 # A "../" for each directory in $ac_dir_suffix.
18030 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18032 ac_dir_suffix= ac_top_builddir=
18036 .) # No --srcdir option. We are building in place.
18038 if test -z "$ac_top_builddir"; then
18041 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18043 [\\/]* | ?:[\\/]* ) # Absolute path.
18044 ac_srcdir=$srcdir$ac_dir_suffix;
18045 ac_top_srcdir=$srcdir ;;
18046 *) # Relative path.
18047 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18048 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18050 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18052 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18053 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18054 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18055 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18059 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18060 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18063 # Make a symlink if possible; otherwise try a hard link.
18064 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18065 ln $srcdir/$ac_source $ac_dest ||
18066 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18067 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18068 { (exit 1); exit 1; }; }
18072 cat >>$CONFIG_STATUS <<\_ACEOF
18074 { (exit 0); exit 0; }
18076 chmod +x $CONFIG_STATUS
18077 ac_clean_files=$ac_clean_files_save
18080 # configure is writing to config.log, and then calls config.status.
18081 # config.status does its own redirection, appending to config.log.
18082 # Unfortunately, on DOS this fails, as config.log is still kept open
18083 # by configure, so config.status won't be able to write to it; its
18084 # output is simply discarded. So we exec the FD to /dev/null,
18085 # effectively closing config.log, so it can be properly (re)opened and
18086 # appended to by config.status. When coming back to configure, we
18087 # need to make the FD available again.
18088 if test "$no_create" != yes; then
18091 $SHELL $CONFIG_STATUS || ac_cs_success=false
18093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18094 # would make configure fail if this is the last instruction.
18095 $ac_cs_success || { (exit 1); exit 1; }