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"
6048 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6049 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
6050 if test "${ac_cv_search_getopt_long+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_func_search_save_LIBS=$LIBS
6054 ac_cv_search_getopt_long=no
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6057 #include "confdefs.h"
6059 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6065 char getopt_long ();
6066 #ifdef F77_DUMMY_MAIN
6070 int F77_DUMMY_MAIN() { return 1; }
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082 (eval $ac_link) 2>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -s conftest$ac_exeext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 ac_cv_search_getopt_long="none required"
6094 echo "$as_me: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6098 if test "$ac_cv_search_getopt_long" = no; then
6099 for ac_lib in getopt; do
6100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6101 cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6103 #include "confdefs.h"
6105 /* Override any gcc2 internal prototype to avoid an error. */
6109 /* We use char because int might match the return type of a gcc2
6110 builtin and then its argument prototype would still apply. */
6111 char getopt_long ();
6112 #ifdef F77_DUMMY_MAIN
6116 int F77_DUMMY_MAIN() { return 1; }
6126 rm -f conftest.$ac_objext conftest$ac_exeext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6128 (eval $ac_link) 2>&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try='test -s conftest$ac_exeext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_cv_search_getopt_long="-l$ac_lib"
6141 echo "$as_me: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6147 LIBS=$ac_func_search_save_LIBS
6149 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6150 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
6151 if test "$ac_cv_search_getopt_long" != no; then
6152 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
6158 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6159 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6160 if test "${ac_cv_lib_unix_main+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 ac_check_lib_save_LIBS=$LIBS
6165 cat >conftest.$ac_ext <<_ACEOF
6166 #line $LINENO "configure"
6167 #include "confdefs.h"
6170 #ifdef F77_DUMMY_MAIN
6174 int F77_DUMMY_MAIN() { return 1; }
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try='test -s conftest$ac_exeext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_cv_lib_unix_main=yes
6198 echo "$as_me: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6200 ac_cv_lib_unix_main=no
6202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6203 LIBS=$ac_check_lib_save_LIBS
6205 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6206 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6207 if test $ac_cv_lib_unix_main = yes; then
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_LIBUNIX 1
6216 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6217 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6218 if test "${ac_cv_search_crypt+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 ac_func_search_save_LIBS=$LIBS
6222 ac_cv_search_crypt=no
6223 cat >conftest.$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6225 #include "confdefs.h"
6227 /* Override any gcc2 internal prototype to avoid an error. */
6231 /* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6234 #ifdef F77_DUMMY_MAIN
6238 int F77_DUMMY_MAIN() { return 1; }
6248 rm -f conftest.$ac_objext conftest$ac_exeext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6250 (eval $ac_link) 2>&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -s conftest$ac_exeext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 ac_cv_search_crypt="none required"
6262 echo "$as_me: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6266 if test "$ac_cv_search_crypt" = no; then
6267 for ac_lib in crypt; do
6268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6269 cat >conftest.$ac_ext <<_ACEOF
6270 #line $LINENO "configure"
6271 #include "confdefs.h"
6273 /* Override any gcc2 internal prototype to avoid an error. */
6277 /* We use char because int might match the return type of a gcc2
6278 builtin and then its argument prototype would still apply. */
6280 #ifdef F77_DUMMY_MAIN
6284 int F77_DUMMY_MAIN() { return 1; }
6294 rm -f conftest.$ac_objext conftest$ac_exeext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6296 (eval $ac_link) 2>&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } &&
6300 { ac_try='test -s conftest$ac_exeext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_cv_search_crypt="-l$ac_lib"
6309 echo "$as_me: failed program was:" >&5
6310 cat conftest.$ac_ext >&5
6312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6315 LIBS=$ac_func_search_save_LIBS
6317 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6318 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6319 if test "$ac_cv_search_crypt" != no; then
6320 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6326 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6327 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6328 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 ac_check_lib_save_LIBS=$LIBS
6333 cat >conftest.$ac_ext <<_ACEOF
6334 #line $LINENO "configure"
6335 #include "confdefs.h"
6337 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */
6343 char __inet_ntoa ();
6344 #ifdef F77_DUMMY_MAIN
6348 int F77_DUMMY_MAIN() { return 1; }
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -s conftest$ac_exeext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 ac_cv_lib_bind___inet_ntoa=yes
6372 echo "$as_me: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6374 ac_cv_lib_bind___inet_ntoa=no
6376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6377 LIBS=$ac_check_lib_save_LIBS
6379 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6380 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6381 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6382 cat >>confdefs.h <<_ACEOF
6383 #define HAVE_LIBBIND 1
6391 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6392 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6393 if test "${ac_cv_search_fdatasync+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 ac_func_search_save_LIBS=$LIBS
6397 ac_cv_search_fdatasync=no
6398 cat >conftest.$ac_ext <<_ACEOF
6399 #line $LINENO "configure"
6400 #include "confdefs.h"
6402 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6409 #ifdef F77_DUMMY_MAIN
6413 int F77_DUMMY_MAIN() { return 1; }
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425 (eval $ac_link) 2>&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try='test -s conftest$ac_exeext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 ac_cv_search_fdatasync="none required"
6437 echo "$as_me: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6441 if test "$ac_cv_search_fdatasync" = no; then
6442 for ac_lib in rt posix4; do
6443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6444 cat >conftest.$ac_ext <<_ACEOF
6445 #line $LINENO "configure"
6446 #include "confdefs.h"
6448 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6455 #ifdef F77_DUMMY_MAIN
6459 int F77_DUMMY_MAIN() { return 1; }
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471 (eval $ac_link) 2>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try='test -s conftest$ac_exeext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 ac_cv_search_fdatasync="-l$ac_lib"
6484 echo "$as_me: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6490 LIBS=$ac_func_search_save_LIBS
6492 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6493 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6494 if test "$ac_cv_search_fdatasync" != no; then
6495 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6500 if test "$with_readline" = yes; then
6502 echo "$as_me:$LINENO: checking for readline" >&5
6503 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6505 if test "${pgac_cv_check_readline+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 pgac_cv_check_readline=no
6509 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6510 for pgac_rllib in -lreadline -ledit ; do
6511 pgac_save_LIBS=$LIBS
6512 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6513 cat >conftest.$ac_ext <<_ACEOF
6514 #line $LINENO "configure"
6515 #include "confdefs.h"
6517 /* Override any gcc2 internal prototype to avoid an error. */
6521 /* We use char because int might match the return type of a gcc2
6522 builtin and then its argument prototype would still apply. */
6524 #ifdef F77_DUMMY_MAIN
6528 int F77_DUMMY_MAIN() { return 1; }
6538 rm -f conftest.$ac_objext conftest$ac_exeext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6540 (eval $ac_link) 2>&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -s conftest$ac_exeext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6551 # NetBSD and OpenBSD have a broken linker that does not
6552 # recognize dependent libraries
6553 case $host_os in netbsd* | openbsd* )
6556 *) pgac_lib=" -lcurses" ;;
6560 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6564 echo "$as_me: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6568 LIBS=$pgac_save_LIBS
6571 LIBS=$pgac_save_LIBS
6575 if test "$pgac_cv_check_readline" != no ; then
6577 cat >>confdefs.h <<\_ACEOF
6578 #define HAVE_LIBREADLINE 1
6581 LIBS="$pgac_cv_check_readline $LIBS"
6582 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6583 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6585 echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6
6588 if test x"$pgac_cv_check_readline" = x"no"; then
6589 { { echo "$as_me:$LINENO: error: readline library not found
6590 Use --without-readline to disable readline support." >&5
6591 echo "$as_me: error: readline library not found
6592 Use --without-readline to disable readline support." >&2;}
6593 { (exit 1); exit 1; }; }
6597 if test "$with_zlib" = yes; then
6599 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6600 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6601 if test "${ac_cv_lib_z_inflate+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 ac_check_lib_save_LIBS=$LIBS
6606 cat >conftest.$ac_ext <<_ACEOF
6607 #line $LINENO "configure"
6608 #include "confdefs.h"
6610 /* Override any gcc2 internal prototype to avoid an error. */
6614 /* We use char because int might match the return type of a gcc2
6615 builtin and then its argument prototype would still apply. */
6617 #ifdef F77_DUMMY_MAIN
6621 int F77_DUMMY_MAIN() { return 1; }
6631 rm -f conftest.$ac_objext conftest$ac_exeext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6633 (eval $ac_link) 2>&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -s conftest$ac_exeext'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6643 ac_cv_lib_z_inflate=yes
6645 echo "$as_me: failed program was:" >&5
6646 cat conftest.$ac_ext >&5
6647 ac_cv_lib_z_inflate=no
6649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6650 LIBS=$ac_check_lib_save_LIBS
6652 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6653 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6654 if test $ac_cv_lib_z_inflate = yes; then
6655 cat >>confdefs.h <<_ACEOF
6662 { { echo "$as_me:$LINENO: error: zlib library not found
6663 Use --without-zlib to disable zlib support." >&5
6664 echo "$as_me: error: zlib library not found
6665 Use --without-zlib to disable zlib support." >&2;}
6666 { (exit 1); exit 1; }; }
6671 if test "$with_krb4" = yes ; then
6673 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6674 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6675 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 ac_check_lib_save_LIBS=$LIBS
6680 cat >conftest.$ac_ext <<_ACEOF
6681 #line $LINENO "configure"
6682 #include "confdefs.h"
6684 /* Override any gcc2 internal prototype to avoid an error. */
6688 /* We use char because int might match the return type of a gcc2
6689 builtin and then its argument prototype would still apply. */
6690 char des_encrypt ();
6691 #ifdef F77_DUMMY_MAIN
6695 int F77_DUMMY_MAIN() { return 1; }
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6707 (eval $ac_link) 2>&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -s conftest$ac_exeext'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 ac_cv_lib_des_des_encrypt=yes
6719 echo "$as_me: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6721 ac_cv_lib_des_des_encrypt=no
6723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6724 LIBS=$ac_check_lib_save_LIBS
6726 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6727 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6728 if test $ac_cv_lib_des_des_encrypt = yes; then
6729 cat >>confdefs.h <<_ACEOF
6730 #define HAVE_LIBDES 1
6736 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6737 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6738 { (exit 1); exit 1; }; }
6742 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6743 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6744 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 ac_check_lib_save_LIBS=$LIBS
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6751 #include "confdefs.h"
6753 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6759 char krb_sendauth ();
6760 #ifdef F77_DUMMY_MAIN
6764 int F77_DUMMY_MAIN() { return 1; }
6774 rm -f conftest.$ac_objext conftest$ac_exeext
6775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6776 (eval $ac_link) 2>&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } &&
6780 { ac_try='test -s conftest$ac_exeext'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 ac_cv_lib_krb_krb_sendauth=yes
6788 echo "$as_me: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6790 ac_cv_lib_krb_krb_sendauth=no
6792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6793 LIBS=$ac_check_lib_save_LIBS
6795 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6796 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6797 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6798 cat >>confdefs.h <<_ACEOF
6799 #define HAVE_LIBKRB 1
6805 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6806 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6807 { (exit 1); exit 1; }; }
6812 if test "$with_krb5" = yes ; then
6813 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6814 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6815 if test "${ac_cv_search_com_err+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 ac_func_search_save_LIBS=$LIBS
6819 ac_cv_search_com_err=no
6820 cat >conftest.$ac_ext <<_ACEOF
6821 #line $LINENO "configure"
6822 #include "confdefs.h"
6824 /* Override any gcc2 internal prototype to avoid an error. */
6828 /* We use char because int might match the return type of a gcc2
6829 builtin and then its argument prototype would still apply. */
6831 #ifdef F77_DUMMY_MAIN
6835 int F77_DUMMY_MAIN() { return 1; }
6845 rm -f conftest.$ac_objext conftest$ac_exeext
6846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6847 (eval $ac_link) 2>&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
6851 { ac_try='test -s conftest$ac_exeext'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; }; then
6857 ac_cv_search_com_err="none required"
6859 echo "$as_me: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6863 if test "$ac_cv_search_com_err" = no; then
6864 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6866 cat >conftest.$ac_ext <<_ACEOF
6867 #line $LINENO "configure"
6868 #include "confdefs.h"
6870 /* Override any gcc2 internal prototype to avoid an error. */
6874 /* We use char because int might match the return type of a gcc2
6875 builtin and then its argument prototype would still apply. */
6877 #ifdef F77_DUMMY_MAIN
6881 int F77_DUMMY_MAIN() { return 1; }
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893 (eval $ac_link) 2>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -s conftest$ac_exeext'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 ac_cv_search_com_err="-l$ac_lib"
6906 echo "$as_me: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6912 LIBS=$ac_func_search_save_LIBS
6914 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6915 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6916 if test "$ac_cv_search_com_err" != no; then
6917 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6920 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6921 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6922 { (exit 1); exit 1; }; }
6925 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6926 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6927 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 ac_func_search_save_LIBS=$LIBS
6931 ac_cv_search_krb5_encrypt=no
6932 cat >conftest.$ac_ext <<_ACEOF
6933 #line $LINENO "configure"
6934 #include "confdefs.h"
6936 /* Override any gcc2 internal prototype to avoid an error. */
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6942 char krb5_encrypt ();
6943 #ifdef F77_DUMMY_MAIN
6947 int F77_DUMMY_MAIN() { return 1; }
6957 rm -f conftest.$ac_objext conftest$ac_exeext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6959 (eval $ac_link) 2>&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_cv_search_krb5_encrypt="none required"
6971 echo "$as_me: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 if test "$ac_cv_search_krb5_encrypt" = no; then
6976 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6978 cat >conftest.$ac_ext <<_ACEOF
6979 #line $LINENO "configure"
6980 #include "confdefs.h"
6982 /* Override any gcc2 internal prototype to avoid an error. */
6986 /* We use char because int might match the return type of a gcc2
6987 builtin and then its argument prototype would still apply. */
6988 char krb5_encrypt ();
6989 #ifdef F77_DUMMY_MAIN
6993 int F77_DUMMY_MAIN() { return 1; }
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_search_krb5_encrypt="-l$ac_lib"
7018 echo "$as_me: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7024 LIBS=$ac_func_search_save_LIBS
7026 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
7027 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
7028 if test "$ac_cv_search_krb5_encrypt" != no; then
7029 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
7032 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
7033 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
7034 { (exit 1); exit 1; }; }
7037 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7038 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
7039 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 ac_func_search_save_LIBS=$LIBS
7043 ac_cv_search_krb5_sendauth=no
7044 cat >conftest.$ac_ext <<_ACEOF
7045 #line $LINENO "configure"
7046 #include "confdefs.h"
7048 /* Override any gcc2 internal prototype to avoid an error. */
7052 /* We use char because int might match the return type of a gcc2
7053 builtin and then its argument prototype would still apply. */
7054 char krb5_sendauth ();
7055 #ifdef F77_DUMMY_MAIN
7059 int F77_DUMMY_MAIN() { return 1; }
7069 rm -f conftest.$ac_objext conftest$ac_exeext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071 (eval $ac_link) 2>&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -s conftest$ac_exeext'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; }; then
7081 ac_cv_search_krb5_sendauth="none required"
7083 echo "$as_me: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7087 if test "$ac_cv_search_krb5_sendauth" = no; then
7088 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
7089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7090 cat >conftest.$ac_ext <<_ACEOF
7091 #line $LINENO "configure"
7092 #include "confdefs.h"
7094 /* Override any gcc2 internal prototype to avoid an error. */
7098 /* We use char because int might match the return type of a gcc2
7099 builtin and then its argument prototype would still apply. */
7100 char krb5_sendauth ();
7101 #ifdef F77_DUMMY_MAIN
7105 int F77_DUMMY_MAIN() { return 1; }
7115 rm -f conftest.$ac_objext conftest$ac_exeext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117 (eval $ac_link) 2>&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try='test -s conftest$ac_exeext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_search_krb5_sendauth="-l$ac_lib"
7130 echo "$as_me: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7136 LIBS=$ac_func_search_save_LIBS
7138 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7139 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7140 if test "$ac_cv_search_krb5_sendauth" != no; then
7141 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7144 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7145 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7146 { (exit 1); exit 1; }; }
7151 if test "$with_openssl" = yes ; then
7153 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7154 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7155 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 ac_check_lib_save_LIBS=$LIBS
7159 LIBS="-lcrypto $LIBS"
7160 cat >conftest.$ac_ext <<_ACEOF
7161 #line $LINENO "configure"
7162 #include "confdefs.h"
7164 /* Override any gcc2 internal prototype to avoid an error. */
7168 /* We use char because int might match the return type of a gcc2
7169 builtin and then its argument prototype would still apply. */
7170 char CRYPTO_new_ex_data ();
7171 #ifdef F77_DUMMY_MAIN
7175 int F77_DUMMY_MAIN() { return 1; }
7180 CRYPTO_new_ex_data ();
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187 (eval $ac_link) 2>&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
7191 { ac_try='test -s conftest$ac_exeext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7199 echo "$as_me: failed program was:" >&5
7200 cat conftest.$ac_ext >&5
7201 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7204 LIBS=$ac_check_lib_save_LIBS
7206 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7207 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7208 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7209 cat >>confdefs.h <<_ACEOF
7210 #define HAVE_LIBCRYPTO 1
7213 LIBS="-lcrypto $LIBS"
7216 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7217 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7218 { (exit 1); exit 1; }; }
7222 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7223 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7224 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 ac_check_lib_save_LIBS=$LIBS
7229 cat >conftest.$ac_ext <<_ACEOF
7230 #line $LINENO "configure"
7231 #include "confdefs.h"
7233 /* Override any gcc2 internal prototype to avoid an error. */
7237 /* We use char because int might match the return type of a gcc2
7238 builtin and then its argument prototype would still apply. */
7239 char SSL_library_init ();
7240 #ifdef F77_DUMMY_MAIN
7244 int F77_DUMMY_MAIN() { return 1; }
7249 SSL_library_init ();
7254 rm -f conftest.$ac_objext conftest$ac_exeext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7256 (eval $ac_link) 2>&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -s conftest$ac_exeext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7266 ac_cv_lib_ssl_SSL_library_init=yes
7268 echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 ac_cv_lib_ssl_SSL_library_init=no
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7273 LIBS=$ac_check_lib_save_LIBS
7275 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7276 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7277 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7278 cat >>confdefs.h <<_ACEOF
7279 #define HAVE_LIBSSL 1
7285 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7286 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7287 { (exit 1); exit 1; }; }
7292 if test "$with_pam" = yes ; then
7294 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7295 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7296 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 ac_check_lib_save_LIBS=$LIBS
7301 cat >conftest.$ac_ext <<_ACEOF
7302 #line $LINENO "configure"
7303 #include "confdefs.h"
7305 /* Override any gcc2 internal prototype to avoid an error. */
7309 /* We use char because int might match the return type of a gcc2
7310 builtin and then its argument prototype would still apply. */
7312 #ifdef F77_DUMMY_MAIN
7316 int F77_DUMMY_MAIN() { return 1; }
7326 rm -f conftest.$ac_objext conftest$ac_exeext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7328 (eval $ac_link) 2>&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -s conftest$ac_exeext'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7338 ac_cv_lib_pam_pam_start=yes
7340 echo "$as_me: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7342 ac_cv_lib_pam_pam_start=no
7344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7345 LIBS=$ac_check_lib_save_LIBS
7347 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7348 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7349 if test $ac_cv_lib_pam_pam_start = yes; then
7350 cat >>confdefs.h <<_ACEOF
7351 #define HAVE_LIBPAM 1
7357 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7358 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7359 { (exit 1); exit 1; }; }
7369 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7370 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7371 if test "${ac_cv_header_stdc+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 cat >conftest.$ac_ext <<_ACEOF
7375 #line $LINENO "configure"
7376 #include "confdefs.h"
7383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7386 egrep -v '^ *\+' conftest.er1 >conftest.err
7388 cat conftest.err >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } >/dev/null; then
7391 if test -s conftest.err; then
7392 ac_cpp_err=$ac_c_preproc_warn_flag
7399 if test -z "$ac_cpp_err"; then
7400 ac_cv_header_stdc=yes
7402 echo "$as_me: failed program was:" >&5
7403 cat conftest.$ac_ext >&5
7404 ac_cv_header_stdc=no
7406 rm -f conftest.err conftest.$ac_ext
7408 if test $ac_cv_header_stdc = yes; then
7409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7410 cat >conftest.$ac_ext <<_ACEOF
7411 #line $LINENO "configure"
7412 #include "confdefs.h"
7416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7417 egrep "memchr" >/dev/null 2>&1; then
7420 ac_cv_header_stdc=no
7426 if test $ac_cv_header_stdc = yes; then
7427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7428 cat >conftest.$ac_ext <<_ACEOF
7429 #line $LINENO "configure"
7430 #include "confdefs.h"
7434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7435 egrep "free" >/dev/null 2>&1; then
7438 ac_cv_header_stdc=no
7444 if test $ac_cv_header_stdc = yes; then
7445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7446 if test "$cross_compiling" = yes; then
7449 cat >conftest.$ac_ext <<_ACEOF
7450 #line $LINENO "configure"
7451 #include "confdefs.h"
7453 #if ((' ' & 0x0FF) == 0x020)
7454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7457 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7458 || ('j' <= (c) && (c) <= 'r') \
7459 || ('s' <= (c) && (c) <= 'z'))
7460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7468 for (i = 0; i < 256; i++)
7469 if (XOR (islower (i), ISLOWER (i))
7470 || toupper (i) != TOUPPER (i))
7475 rm -f conftest$ac_exeext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7477 (eval $ac_link) 2>&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7488 echo "$as_me: program exited with status $ac_status" >&5
7489 echo "$as_me: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7492 ac_cv_header_stdc=no
7494 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7500 if test $ac_cv_header_stdc = yes; then
7502 cat >>confdefs.h <<\_ACEOF
7503 #define STDC_HEADERS 1
7508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7519 inttypes.h stdint.h unistd.h
7521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7522 echo "$as_me:$LINENO: checking for $ac_header" >&5
7523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 cat >conftest.$ac_ext <<_ACEOF
7528 #line $LINENO "configure"
7529 #include "confdefs.h"
7530 $ac_includes_default
7532 #include <$ac_header>
7534 rm -f conftest.$ac_objext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 eval "$as_ac_Header=yes"
7548 echo "$as_me: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7550 eval "$as_ac_Header=no"
7552 rm -f conftest.$ac_objext conftest.$ac_ext
7554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7557 cat >>confdefs.h <<_ACEOF
7558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7584 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
7586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7588 echo "$as_me:$LINENO: checking for $ac_header" >&5
7589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7596 # Is the header compilable?
7597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7599 cat >conftest.$ac_ext <<_ACEOF
7600 #line $LINENO "configure"
7601 #include "confdefs.h"
7602 $ac_includes_default
7603 #include <$ac_header>
7605 rm -f conftest.$ac_objext
7606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7607 (eval $ac_compile) 2>&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -s conftest.$ac_objext'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; }; then
7617 ac_header_compiler=yes
7619 echo "$as_me: failed program was:" >&5
7620 cat conftest.$ac_ext >&5
7621 ac_header_compiler=no
7623 rm -f conftest.$ac_objext conftest.$ac_ext
7624 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7625 echo "${ECHO_T}$ac_header_compiler" >&6
7627 # Is the header present?
7628 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7630 cat >conftest.$ac_ext <<_ACEOF
7631 #line $LINENO "configure"
7632 #include "confdefs.h"
7633 #include <$ac_header>
7635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7638 egrep -v '^ *\+' conftest.er1 >conftest.err
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } >/dev/null; then
7643 if test -s conftest.err; then
7644 ac_cpp_err=$ac_c_preproc_warn_flag
7651 if test -z "$ac_cpp_err"; then
7652 ac_header_preproc=yes
7654 echo "$as_me: failed program was:" >&5
7655 cat conftest.$ac_ext >&5
7656 ac_header_preproc=no
7658 rm -f conftest.err conftest.$ac_ext
7659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7660 echo "${ECHO_T}$ac_header_preproc" >&6
7662 # So? What about this header?
7663 case $ac_header_compiler:$ac_header_preproc in
7665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7677 echo "$as_me:$LINENO: checking for $ac_header" >&5
7678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 eval "$as_ac_Header=$ac_header_preproc"
7684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7689 cat >>confdefs.h <<_ACEOF
7690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7698 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7699 # netinet/in.h is included first.
7701 for ac_header in netinet/in.h
7703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7705 echo "$as_me:$LINENO: checking for $ac_header" >&5
7706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7713 # Is the header compilable?
7714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7716 cat >conftest.$ac_ext <<_ACEOF
7717 #line $LINENO "configure"
7718 #include "confdefs.h"
7719 $ac_includes_default
7720 #include <$ac_header>
7722 rm -f conftest.$ac_objext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7724 (eval $ac_compile) 2>&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -s conftest.$ac_objext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 ac_header_compiler=yes
7736 echo "$as_me: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7738 ac_header_compiler=no
7740 rm -f conftest.$ac_objext conftest.$ac_ext
7741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7742 echo "${ECHO_T}$ac_header_compiler" >&6
7744 # Is the header present?
7745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7747 cat >conftest.$ac_ext <<_ACEOF
7748 #line $LINENO "configure"
7749 #include "confdefs.h"
7750 #include <$ac_header>
7752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7755 egrep -v '^ *\+' conftest.er1 >conftest.err
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } >/dev/null; then
7760 if test -s conftest.err; then
7761 ac_cpp_err=$ac_c_preproc_warn_flag
7768 if test -z "$ac_cpp_err"; then
7769 ac_header_preproc=yes
7771 echo "$as_me: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7773 ac_header_preproc=no
7775 rm -f conftest.err conftest.$ac_ext
7776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7777 echo "${ECHO_T}$ac_header_preproc" >&6
7779 # So? What about this header?
7780 case $ac_header_compiler:$ac_header_preproc in
7782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7794 echo "$as_me:$LINENO: checking for $ac_header" >&5
7795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 eval "$as_ac_Header=$ac_header_preproc"
7801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7806 cat >>confdefs.h <<_ACEOF
7807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7815 for ac_header in netinet/tcp.h
7817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7818 echo "$as_me:$LINENO: checking for $ac_header" >&5
7819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 cat >conftest.$ac_ext <<_ACEOF
7824 #line $LINENO "configure"
7825 #include "confdefs.h"
7826 $ac_includes_default
7827 #ifdef HAVE_NETINET_IN_H
7828 #include <netinet/in.h>
7832 #include <$ac_header>
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836 (eval $ac_compile) 2>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -s conftest.$ac_objext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 eval "$as_ac_Header=yes"
7848 echo "$as_me: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 eval "$as_ac_Header=no"
7852 rm -f conftest.$ac_objext conftest.$ac_ext
7854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7857 cat >>confdefs.h <<_ACEOF
7858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7866 if test "$with_readline" = yes; then
7868 for ac_header in readline/readline.h
7870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7872 echo "$as_me:$LINENO: checking for $ac_header" >&5
7873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7880 # Is the header compilable?
7881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7883 cat >conftest.$ac_ext <<_ACEOF
7884 #line $LINENO "configure"
7885 #include "confdefs.h"
7886 $ac_includes_default
7887 #include <$ac_header>
7889 rm -f conftest.$ac_objext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891 (eval $ac_compile) 2>&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -s conftest.$ac_objext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 ac_header_compiler=yes
7903 echo "$as_me: failed program was:" >&5
7904 cat conftest.$ac_ext >&5
7905 ac_header_compiler=no
7907 rm -f conftest.$ac_objext conftest.$ac_ext
7908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7909 echo "${ECHO_T}$ac_header_compiler" >&6
7911 # Is the header present?
7912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7914 cat >conftest.$ac_ext <<_ACEOF
7915 #line $LINENO "configure"
7916 #include "confdefs.h"
7917 #include <$ac_header>
7919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7922 egrep -v '^ *\+' conftest.er1 >conftest.err
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } >/dev/null; then
7927 if test -s conftest.err; then
7928 ac_cpp_err=$ac_c_preproc_warn_flag
7935 if test -z "$ac_cpp_err"; then
7936 ac_header_preproc=yes
7938 echo "$as_me: failed program was:" >&5
7939 cat conftest.$ac_ext >&5
7940 ac_header_preproc=no
7942 rm -f conftest.err conftest.$ac_ext
7943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7944 echo "${ECHO_T}$ac_header_preproc" >&6
7946 # So? What about this header?
7947 case $ac_header_compiler:$ac_header_preproc in
7949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7961 echo "$as_me:$LINENO: checking for $ac_header" >&5
7962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 eval "$as_ac_Header=$ac_header_preproc"
7968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7973 cat >>confdefs.h <<_ACEOF
7974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7979 for ac_header in readline.h
7981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7983 echo "$as_me:$LINENO: checking for $ac_header" >&5
7984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7991 # Is the header compilable?
7992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7994 cat >conftest.$ac_ext <<_ACEOF
7995 #line $LINENO "configure"
7996 #include "confdefs.h"
7997 $ac_includes_default
7998 #include <$ac_header>
8000 rm -f conftest.$ac_objext
8001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8002 (eval $ac_compile) 2>&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -s conftest.$ac_objext'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8012 ac_header_compiler=yes
8014 echo "$as_me: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8016 ac_header_compiler=no
8018 rm -f conftest.$ac_objext conftest.$ac_ext
8019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8020 echo "${ECHO_T}$ac_header_compiler" >&6
8022 # Is the header present?
8023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8025 cat >conftest.$ac_ext <<_ACEOF
8026 #line $LINENO "configure"
8027 #include "confdefs.h"
8028 #include <$ac_header>
8030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8033 egrep -v '^ *\+' conftest.er1 >conftest.err
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } >/dev/null; then
8038 if test -s conftest.err; then
8039 ac_cpp_err=$ac_c_preproc_warn_flag
8046 if test -z "$ac_cpp_err"; then
8047 ac_header_preproc=yes
8049 echo "$as_me: failed program was:" >&5
8050 cat conftest.$ac_ext >&5
8051 ac_header_preproc=no
8053 rm -f conftest.err conftest.$ac_ext
8054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8055 echo "${ECHO_T}$ac_header_preproc" >&6
8057 # So? What about this header?
8058 case $ac_header_compiler:$ac_header_preproc in
8060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8072 echo "$as_me:$LINENO: checking for $ac_header" >&5
8073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 eval "$as_ac_Header=$ac_header_preproc"
8079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8084 cat >>confdefs.h <<_ACEOF
8085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8089 { { echo "$as_me:$LINENO: error: readline header not found
8090 Use --without-readline to disable readline support." >&5
8091 echo "$as_me: error: readline header not found
8092 Use --without-readline to disable readline support." >&2;}
8093 { (exit 1); exit 1; }; }
8103 for ac_header in readline/history.h
8105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8107 echo "$as_me:$LINENO: checking for $ac_header" >&5
8108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8115 # Is the header compilable?
8116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8118 cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 #include "confdefs.h"
8121 $ac_includes_default
8122 #include <$ac_header>
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_header_compiler=yes
8138 echo "$as_me: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 ac_header_compiler=no
8142 rm -f conftest.$ac_objext conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8144 echo "${ECHO_T}$ac_header_compiler" >&6
8146 # Is the header present?
8147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8149 cat >conftest.$ac_ext <<_ACEOF
8150 #line $LINENO "configure"
8151 #include "confdefs.h"
8152 #include <$ac_header>
8154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157 egrep -v '^ *\+' conftest.er1 >conftest.err
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } >/dev/null; then
8162 if test -s conftest.err; then
8163 ac_cpp_err=$ac_c_preproc_warn_flag
8170 if test -z "$ac_cpp_err"; then
8171 ac_header_preproc=yes
8173 echo "$as_me: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8175 ac_header_preproc=no
8177 rm -f conftest.err conftest.$ac_ext
8178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8179 echo "${ECHO_T}$ac_header_preproc" >&6
8181 # So? What about this header?
8182 case $ac_header_compiler:$ac_header_preproc in
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8196 echo "$as_me:$LINENO: checking for $ac_header" >&5
8197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 eval "$as_ac_Header=$ac_header_preproc"
8203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8208 cat >>confdefs.h <<_ACEOF
8209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8214 for ac_header in history.h
8216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8218 echo "$as_me:$LINENO: checking for $ac_header" >&5
8219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8226 # Is the header compilable?
8227 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8229 cat >conftest.$ac_ext <<_ACEOF
8230 #line $LINENO "configure"
8231 #include "confdefs.h"
8232 $ac_includes_default
8233 #include <$ac_header>
8235 rm -f conftest.$ac_objext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8237 (eval $ac_compile) 2>&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -s conftest.$ac_objext'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; }; then
8247 ac_header_compiler=yes
8249 echo "$as_me: failed program was:" >&5
8250 cat conftest.$ac_ext >&5
8251 ac_header_compiler=no
8253 rm -f conftest.$ac_objext conftest.$ac_ext
8254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8255 echo "${ECHO_T}$ac_header_compiler" >&6
8257 # Is the header present?
8258 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8260 cat >conftest.$ac_ext <<_ACEOF
8261 #line $LINENO "configure"
8262 #include "confdefs.h"
8263 #include <$ac_header>
8265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8268 egrep -v '^ *\+' conftest.er1 >conftest.err
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } >/dev/null; then
8273 if test -s conftest.err; then
8274 ac_cpp_err=$ac_c_preproc_warn_flag
8281 if test -z "$ac_cpp_err"; then
8282 ac_header_preproc=yes
8284 echo "$as_me: failed program was:" >&5
8285 cat conftest.$ac_ext >&5
8286 ac_header_preproc=no
8288 rm -f conftest.err conftest.$ac_ext
8289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8290 echo "${ECHO_T}$ac_header_preproc" >&6
8292 # So? What about this header?
8293 case $ac_header_compiler:$ac_header_preproc in
8295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8307 echo "$as_me:$LINENO: checking for $ac_header" >&5
8308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 eval "$as_ac_Header=$ac_header_preproc"
8314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8319 cat >>confdefs.h <<_ACEOF
8320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8324 { { echo "$as_me:$LINENO: error: history header not found
8325 Use --without-readline to disable readline support." >&5
8326 echo "$as_me: error: history header not found
8327 Use --without-readline to disable readline support." >&2;}
8328 { (exit 1); exit 1; }; }
8339 if test "$with_zlib" = yes; then
8340 if test "${ac_cv_header_zlib_h+set}" = set; then
8341 echo "$as_me:$LINENO: checking for zlib.h" >&5
8342 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8343 if test "${ac_cv_header_zlib_h+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8347 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8349 # Is the header compilable?
8350 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8351 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8354 #include "confdefs.h"
8355 $ac_includes_default
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360 (eval $ac_compile) 2>&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -s conftest.$ac_objext'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 ac_header_compiler=yes
8372 echo "$as_me: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8374 ac_header_compiler=no
8376 rm -f conftest.$ac_objext conftest.$ac_ext
8377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8378 echo "${ECHO_T}$ac_header_compiler" >&6
8380 # Is the header present?
8381 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8382 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8383 cat >conftest.$ac_ext <<_ACEOF
8384 #line $LINENO "configure"
8385 #include "confdefs.h"
8388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8391 egrep -v '^ *\+' conftest.er1 >conftest.err
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } >/dev/null; then
8396 if test -s conftest.err; then
8397 ac_cpp_err=$ac_c_preproc_warn_flag
8404 if test -z "$ac_cpp_err"; then
8405 ac_header_preproc=yes
8407 echo "$as_me: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8409 ac_header_preproc=no
8411 rm -f conftest.err conftest.$ac_ext
8412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8413 echo "${ECHO_T}$ac_header_preproc" >&6
8415 # So? What about this header?
8416 case $ac_header_compiler:$ac_header_preproc in
8418 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8419 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8420 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8421 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8423 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8424 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8426 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8428 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8430 echo "$as_me:$LINENO: checking for zlib.h" >&5
8431 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8432 if test "${ac_cv_header_zlib_h+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 ac_cv_header_zlib_h=$ac_header_preproc
8437 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8438 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8441 if test $ac_cv_header_zlib_h = yes; then
8444 { { echo "$as_me:$LINENO: error: zlib header not found
8445 Use --without-zlib to disable zlib support." >&5
8446 echo "$as_me: error: zlib header not found
8447 Use --without-zlib to disable zlib support." >&2;}
8448 { (exit 1); exit 1; }; }
8454 if test "$with_krb4" = yes ; then
8455 if test "${ac_cv_header_krb_h+set}" = set; then
8456 echo "$as_me:$LINENO: checking for krb.h" >&5
8457 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8458 if test "${ac_cv_header_krb_h+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8462 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8464 # Is the header compilable?
8465 echo "$as_me:$LINENO: checking krb.h usability" >&5
8466 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8467 cat >conftest.$ac_ext <<_ACEOF
8468 #line $LINENO "configure"
8469 #include "confdefs.h"
8470 $ac_includes_default
8473 rm -f conftest.$ac_objext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8475 (eval $ac_compile) 2>&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try='test -s conftest.$ac_objext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_header_compiler=yes
8487 echo "$as_me: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8489 ac_header_compiler=no
8491 rm -f conftest.$ac_objext conftest.$ac_ext
8492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8493 echo "${ECHO_T}$ac_header_compiler" >&6
8495 # Is the header present?
8496 echo "$as_me:$LINENO: checking krb.h presence" >&5
8497 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8498 cat >conftest.$ac_ext <<_ACEOF
8499 #line $LINENO "configure"
8500 #include "confdefs.h"
8503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8506 egrep -v '^ *\+' conftest.er1 >conftest.err
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } >/dev/null; then
8511 if test -s conftest.err; then
8512 ac_cpp_err=$ac_c_preproc_warn_flag
8519 if test -z "$ac_cpp_err"; then
8520 ac_header_preproc=yes
8522 echo "$as_me: failed program was:" >&5
8523 cat conftest.$ac_ext >&5
8524 ac_header_preproc=no
8526 rm -f conftest.err conftest.$ac_ext
8527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8528 echo "${ECHO_T}$ac_header_preproc" >&6
8530 # So? What about this header?
8531 case $ac_header_compiler:$ac_header_preproc in
8533 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8534 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8536 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8538 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8539 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8541 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8542 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8543 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8545 echo "$as_me:$LINENO: checking for krb.h" >&5
8546 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8547 if test "${ac_cv_header_krb_h+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 ac_cv_header_krb_h=$ac_header_preproc
8552 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8553 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8556 if test $ac_cv_header_krb_h = yes; then
8559 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8560 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8561 { (exit 1); exit 1; }; }
8567 if test "$with_krb5" = yes ; then
8568 if test "${ac_cv_header_krb5_h+set}" = set; then
8569 echo "$as_me:$LINENO: checking for krb5.h" >&5
8570 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8571 if test "${ac_cv_header_krb5_h+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8575 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8577 # Is the header compilable?
8578 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8579 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8580 cat >conftest.$ac_ext <<_ACEOF
8581 #line $LINENO "configure"
8582 #include "confdefs.h"
8583 $ac_includes_default
8586 rm -f conftest.$ac_objext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588 (eval $ac_compile) 2>&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -s conftest.$ac_objext'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 ac_header_compiler=yes
8600 echo "$as_me: failed program was:" >&5
8601 cat conftest.$ac_ext >&5
8602 ac_header_compiler=no
8604 rm -f conftest.$ac_objext conftest.$ac_ext
8605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8606 echo "${ECHO_T}$ac_header_compiler" >&6
8608 # Is the header present?
8609 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8610 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8611 cat >conftest.$ac_ext <<_ACEOF
8612 #line $LINENO "configure"
8613 #include "confdefs.h"
8616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8619 egrep -v '^ *\+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } >/dev/null; then
8624 if test -s conftest.err; then
8625 ac_cpp_err=$ac_c_preproc_warn_flag
8632 if test -z "$ac_cpp_err"; then
8633 ac_header_preproc=yes
8635 echo "$as_me: failed program was:" >&5
8636 cat conftest.$ac_ext >&5
8637 ac_header_preproc=no
8639 rm -f conftest.err conftest.$ac_ext
8640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8641 echo "${ECHO_T}$ac_header_preproc" >&6
8643 # So? What about this header?
8644 case $ac_header_compiler:$ac_header_preproc in
8646 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8647 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8649 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8651 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8652 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8654 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8656 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8658 echo "$as_me:$LINENO: checking for krb5.h" >&5
8659 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8660 if test "${ac_cv_header_krb5_h+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 ac_cv_header_krb5_h=$ac_header_preproc
8665 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8666 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8669 if test $ac_cv_header_krb5_h = yes; then
8672 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8673 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8674 { (exit 1); exit 1; }; }
8678 if test "${ac_cv_header_com_err_h+set}" = set; then
8679 echo "$as_me:$LINENO: checking for com_err.h" >&5
8680 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8681 if test "${ac_cv_header_com_err_h+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8685 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8687 # Is the header compilable?
8688 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8689 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8690 cat >conftest.$ac_ext <<_ACEOF
8691 #line $LINENO "configure"
8692 #include "confdefs.h"
8693 $ac_includes_default
8694 #include <com_err.h>
8696 rm -f conftest.$ac_objext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8698 (eval $ac_compile) 2>&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
8702 { ac_try='test -s conftest.$ac_objext'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; }; then
8708 ac_header_compiler=yes
8710 echo "$as_me: failed program was:" >&5
8711 cat conftest.$ac_ext >&5
8712 ac_header_compiler=no
8714 rm -f conftest.$ac_objext conftest.$ac_ext
8715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8716 echo "${ECHO_T}$ac_header_compiler" >&6
8718 # Is the header present?
8719 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8720 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8721 cat >conftest.$ac_ext <<_ACEOF
8722 #line $LINENO "configure"
8723 #include "confdefs.h"
8724 #include <com_err.h>
8726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8729 egrep -v '^ *\+' conftest.er1 >conftest.err
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } >/dev/null; then
8734 if test -s conftest.err; then
8735 ac_cpp_err=$ac_c_preproc_warn_flag
8742 if test -z "$ac_cpp_err"; then
8743 ac_header_preproc=yes
8745 echo "$as_me: failed program was:" >&5
8746 cat conftest.$ac_ext >&5
8747 ac_header_preproc=no
8749 rm -f conftest.err conftest.$ac_ext
8750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8751 echo "${ECHO_T}$ac_header_preproc" >&6
8753 # So? What about this header?
8754 case $ac_header_compiler:$ac_header_preproc in
8756 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8757 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8758 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8759 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8761 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8762 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8764 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8766 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8768 echo "$as_me:$LINENO: checking for com_err.h" >&5
8769 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8770 if test "${ac_cv_header_com_err_h+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 ac_cv_header_com_err_h=$ac_header_preproc
8775 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8776 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8779 if test $ac_cv_header_com_err_h = yes; then
8782 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8783 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8784 { (exit 1); exit 1; }; }
8790 if test "$with_openssl" = yes ; then
8791 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8792 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8793 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8794 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8798 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8800 # Is the header compilable?
8801 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8802 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 #include "confdefs.h"
8806 $ac_includes_default
8807 #include <openssl/ssl.h>
8809 rm -f conftest.$ac_objext
8810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8811 (eval $ac_compile) 2>&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -s conftest.$ac_objext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_header_compiler=yes
8823 echo "$as_me: failed program was:" >&5
8824 cat conftest.$ac_ext >&5
8825 ac_header_compiler=no
8827 rm -f conftest.$ac_objext conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8829 echo "${ECHO_T}$ac_header_compiler" >&6
8831 # Is the header present?
8832 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8833 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8835 #line $LINENO "configure"
8836 #include "confdefs.h"
8837 #include <openssl/ssl.h>
8839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8842 egrep -v '^ *\+' conftest.er1 >conftest.err
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } >/dev/null; then
8847 if test -s conftest.err; then
8848 ac_cpp_err=$ac_c_preproc_warn_flag
8855 if test -z "$ac_cpp_err"; then
8856 ac_header_preproc=yes
8858 echo "$as_me: failed program was:" >&5
8859 cat conftest.$ac_ext >&5
8860 ac_header_preproc=no
8862 rm -f conftest.err conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8864 echo "${ECHO_T}$ac_header_preproc" >&6
8866 # So? What about this header?
8867 case $ac_header_compiler:$ac_header_preproc in
8869 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8870 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8872 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8874 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8875 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8877 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8881 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8882 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8883 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8888 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8889 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8892 if test $ac_cv_header_openssl_ssl_h = yes; then
8895 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8896 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8897 { (exit 1); exit 1; }; }
8901 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8902 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8903 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8904 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8908 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8910 # Is the header compilable?
8911 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8912 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8913 cat >conftest.$ac_ext <<_ACEOF
8914 #line $LINENO "configure"
8915 #include "confdefs.h"
8916 $ac_includes_default
8917 #include <openssl/err.h>
8919 rm -f conftest.$ac_objext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921 (eval $ac_compile) 2>&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -s conftest.$ac_objext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_header_compiler=yes
8933 echo "$as_me: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8935 ac_header_compiler=no
8937 rm -f conftest.$ac_objext conftest.$ac_ext
8938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8939 echo "${ECHO_T}$ac_header_compiler" >&6
8941 # Is the header present?
8942 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8943 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8944 cat >conftest.$ac_ext <<_ACEOF
8945 #line $LINENO "configure"
8946 #include "confdefs.h"
8947 #include <openssl/err.h>
8949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8952 egrep -v '^ *\+' conftest.er1 >conftest.err
8954 cat conftest.err >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } >/dev/null; then
8957 if test -s conftest.err; then
8958 ac_cpp_err=$ac_c_preproc_warn_flag
8965 if test -z "$ac_cpp_err"; then
8966 ac_header_preproc=yes
8968 echo "$as_me: failed program was:" >&5
8969 cat conftest.$ac_ext >&5
8970 ac_header_preproc=no
8972 rm -f conftest.err conftest.$ac_ext
8973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8974 echo "${ECHO_T}$ac_header_preproc" >&6
8976 # So? What about this header?
8977 case $ac_header_compiler:$ac_header_preproc in
8979 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8980 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8981 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8982 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8984 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8985 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8986 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8987 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8988 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8989 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8991 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8992 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8993 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 ac_cv_header_openssl_err_h=$ac_header_preproc
8998 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8999 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9002 if test $ac_cv_header_openssl_err_h = yes; then
9005 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9006 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9007 { (exit 1); exit 1; }; }
9013 if test "$with_pam" = yes ; then
9014 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9015 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9016 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9017 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9021 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9023 # Is the header compilable?
9024 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
9025 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9028 #include "confdefs.h"
9029 $ac_includes_default
9030 #include <security/pam_appl.h>
9032 rm -f conftest.$ac_objext
9033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9034 (eval $ac_compile) 2>&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -s conftest.$ac_objext'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 ac_header_compiler=yes
9046 echo "$as_me: failed program was:" >&5
9047 cat conftest.$ac_ext >&5
9048 ac_header_compiler=no
9050 rm -f conftest.$ac_objext conftest.$ac_ext
9051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9052 echo "${ECHO_T}$ac_header_compiler" >&6
9054 # Is the header present?
9055 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
9056 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
9057 cat >conftest.$ac_ext <<_ACEOF
9058 #line $LINENO "configure"
9059 #include "confdefs.h"
9060 #include <security/pam_appl.h>
9062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9065 egrep -v '^ *\+' conftest.er1 >conftest.err
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } >/dev/null; then
9070 if test -s conftest.err; then
9071 ac_cpp_err=$ac_c_preproc_warn_flag
9078 if test -z "$ac_cpp_err"; then
9079 ac_header_preproc=yes
9081 echo "$as_me: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9083 ac_header_preproc=no
9085 rm -f conftest.err conftest.$ac_ext
9086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9087 echo "${ECHO_T}$ac_header_preproc" >&6
9089 # So? What about this header?
9090 case $ac_header_compiler:$ac_header_preproc in
9092 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9093 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9095 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9097 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
9098 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
9099 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
9100 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
9101 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9102 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9104 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9105 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9106 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 ac_cv_header_security_pam_appl_h=$ac_header_preproc
9111 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9112 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9115 if test $ac_cv_header_security_pam_appl_h = yes; then
9118 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9119 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9120 { (exit 1); exit 1; }; }
9128 ## Types, structures, compiler characteristics
9132 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9133 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9134 if test "${ac_cv_c_const+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 cat >conftest.$ac_ext <<_ACEOF
9138 #line $LINENO "configure"
9139 #include "confdefs.h"
9141 #ifdef F77_DUMMY_MAIN
9145 int F77_DUMMY_MAIN() { return 1; }
9150 /* FIXME: Include the comments suggested by Paul. */
9152 /* Ultrix mips cc rejects this. */
9153 typedef int charset[2];
9155 /* SunOS 4.1.1 cc rejects this. */
9156 char const *const *ccp;
9158 /* NEC SVR4.0.2 mips cc rejects this. */
9159 struct point {int x, y;};
9160 static struct point const zero = {0,0};
9161 /* AIX XL C 1.02.0.0 rejects this.
9162 It does not let you subtract one const X* pointer from another in
9163 an arm of an if-expression whose if-part is not a constant
9165 const char *g = "string";
9166 ccp = &g + (g ? g-g : 0);
9167 /* HPUX 7.0 cc rejects these. */
9170 ccp = (char const *const *) p;
9171 { /* SCO 3.2v4 cc rejects this. */
9173 char const *s = 0 ? (char *) 0 : (char const *) 0;
9177 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9179 const int *foo = &x[0];
9182 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9183 typedef const int *iptr;
9187 { /* AIX XL C 1.02.0.0 rejects this saying
9188 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9189 struct s { int j; const int *ap[3]; };
9190 struct s *b; b->j = 5;
9192 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9201 rm -f conftest.$ac_objext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203 (eval $ac_compile) 2>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -s conftest.$ac_objext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9215 echo "$as_me: failed program was:" >&5
9216 cat conftest.$ac_ext >&5
9219 rm -f conftest.$ac_objext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9222 echo "${ECHO_T}$ac_cv_c_const" >&6
9223 if test $ac_cv_c_const = no; then
9225 cat >>confdefs.h <<\_ACEOF
9231 echo "$as_me:$LINENO: checking for inline" >&5
9232 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9233 if test "${ac_cv_c_inline+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 for ac_kw in inline __inline__ __inline; do
9238 cat >conftest.$ac_ext <<_ACEOF
9239 #line $LINENO "configure"
9240 #include "confdefs.h"
9242 static $ac_kw int static_foo () {return 0; }
9243 $ac_kw int foo () {return 0; }
9247 rm -f conftest.$ac_objext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9249 (eval $ac_compile) 2>&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } &&
9253 { ac_try='test -s conftest.$ac_objext'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; }; then
9259 ac_cv_c_inline=$ac_kw; break
9261 echo "$as_me: failed program was:" >&5
9262 cat conftest.$ac_ext >&5
9264 rm -f conftest.$ac_objext conftest.$ac_ext
9268 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9269 echo "${ECHO_T}$ac_cv_c_inline" >&6
9270 case $ac_cv_c_inline in
9273 cat >>confdefs.h <<\_ACEOF
9277 *) cat >>confdefs.h <<_ACEOF
9278 #define inline $ac_cv_c_inline
9283 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9284 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9285 if test "${ac_cv_c_stringize+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 cat >conftest.$ac_ext <<_ACEOF
9289 #line $LINENO "configure"
9290 #include "confdefs.h"
9293 char *s = x(teststring);
9295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9296 egrep "#teststring" >/dev/null 2>&1; then
9297 ac_cv_c_stringize=no
9299 ac_cv_c_stringize=yes
9304 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9305 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9306 if test $ac_cv_c_stringize = yes; then
9308 cat >>confdefs.h <<\_ACEOF
9309 #define HAVE_STRINGIZE 1
9314 echo "$as_me:$LINENO: checking for signed types" >&5
9315 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9316 if test "${pgac_cv_c_signed+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 cat >conftest.$ac_ext <<_ACEOF
9320 #line $LINENO "configure"
9321 #include "confdefs.h"
9323 #ifdef F77_DUMMY_MAIN
9327 int F77_DUMMY_MAIN() { return 1; }
9332 signed char c; signed short s; signed int i;
9337 rm -f conftest.$ac_objext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9339 (eval $ac_compile) 2>&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -s conftest.$ac_objext'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 pgac_cv_c_signed=yes
9351 echo "$as_me: failed program was:" >&5
9352 cat conftest.$ac_ext >&5
9355 rm -f conftest.$ac_objext conftest.$ac_ext
9357 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9358 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9359 if test x"$pgac_cv_c_signed" = xno ; then
9361 cat >>confdefs.h <<\_ACEOF
9366 echo "$as_me:$LINENO: checking for working volatile" >&5
9367 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9368 if test "${ac_cv_c_volatile+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 cat >conftest.$ac_ext <<_ACEOF
9372 #line $LINENO "configure"
9373 #include "confdefs.h"
9375 #ifdef F77_DUMMY_MAIN
9379 int F77_DUMMY_MAIN() { return 1; }
9391 rm -f conftest.$ac_objext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9393 (eval $ac_compile) 2>&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -s conftest.$ac_objext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_c_volatile=yes
9405 echo "$as_me: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9409 rm -f conftest.$ac_objext conftest.$ac_ext
9411 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9412 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9413 if test $ac_cv_c_volatile = no; then
9415 cat >>confdefs.h <<\_ACEOF
9421 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9422 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9423 if test "${ac_cv_struct_tm+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9427 #line $LINENO "configure"
9428 #include "confdefs.h"
9429 #include <sys/types.h>
9432 #ifdef F77_DUMMY_MAIN
9436 int F77_DUMMY_MAIN() { return 1; }
9441 struct tm *tp; tp->tm_sec;
9446 rm -f conftest.$ac_objext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9448 (eval $ac_compile) 2>&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -s conftest.$ac_objext'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9458 ac_cv_struct_tm=time.h
9460 echo "$as_me: failed program was:" >&5
9461 cat conftest.$ac_ext >&5
9462 ac_cv_struct_tm=sys/time.h
9464 rm -f conftest.$ac_objext conftest.$ac_ext
9466 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9467 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9468 if test $ac_cv_struct_tm = sys/time.h; then
9470 cat >>confdefs.h <<\_ACEOF
9471 #define TM_IN_SYS_TIME 1
9476 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9477 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9478 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 cat >conftest.$ac_ext <<_ACEOF
9482 #line $LINENO "configure"
9483 #include "confdefs.h"
9484 #include <sys/types.h>
9485 #include <$ac_cv_struct_tm>
9488 #ifdef F77_DUMMY_MAIN
9492 int F77_DUMMY_MAIN() { return 1; }
9497 static struct tm ac_aggr;
9498 if (ac_aggr.tm_zone)
9504 rm -f conftest.$ac_objext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9506 (eval $ac_compile) 2>&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
9510 { ac_try='test -s conftest.$ac_objext'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9516 ac_cv_member_struct_tm_tm_zone=yes
9518 echo "$as_me: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9520 ac_cv_member_struct_tm_tm_zone=no
9522 rm -f conftest.$ac_objext conftest.$ac_ext
9524 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9525 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9526 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9528 cat >>confdefs.h <<_ACEOF
9529 #define HAVE_STRUCT_TM_TM_ZONE 1
9535 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9537 cat >>confdefs.h <<\_ACEOF
9538 #define HAVE_TM_ZONE 1
9542 echo "$as_me:$LINENO: checking for tzname" >&5
9543 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9544 if test "${ac_cv_var_tzname+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 cat >conftest.$ac_ext <<_ACEOF
9548 #line $LINENO "configure"
9549 #include "confdefs.h"
9551 #ifndef tzname /* For SGI. */
9552 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9555 #ifdef F77_DUMMY_MAIN
9559 int F77_DUMMY_MAIN() { return 1; }
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
9575 { ac_try='test -s conftest$ac_exeext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_cv_var_tzname=yes
9583 echo "$as_me: failed program was:" >&5
9584 cat conftest.$ac_ext >&5
9587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9589 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9590 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9591 if test $ac_cv_var_tzname = yes; then
9593 cat >>confdefs.h <<\_ACEOF
9594 #define HAVE_TZNAME 1
9600 echo "$as_me:$LINENO: checking for union semun" >&5
9601 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9602 if test "${ac_cv_type_union_semun+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 cat >conftest.$ac_ext <<_ACEOF
9606 #line $LINENO "configure"
9607 #include "confdefs.h"
9608 #include <sys/types.h>
9609 #include <sys/ipc.h>
9610 #include <sys/sem.h>
9612 #ifdef F77_DUMMY_MAIN
9616 int F77_DUMMY_MAIN() { return 1; }
9621 if ((union semun *) 0)
9623 if (sizeof (union semun))
9629 rm -f conftest.$ac_objext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9631 (eval $ac_compile) 2>&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -s conftest.$ac_objext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_type_union_semun=yes
9643 echo "$as_me: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 ac_cv_type_union_semun=no
9647 rm -f conftest.$ac_objext conftest.$ac_ext
9649 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9650 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9651 if test $ac_cv_type_union_semun = yes; then
9653 cat >>confdefs.h <<_ACEOF
9654 #define HAVE_UNION_SEMUN 1
9660 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9661 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9662 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 cat >conftest.$ac_ext <<_ACEOF
9666 #line $LINENO "configure"
9667 #include "confdefs.h"
9668 #include <sys/types.h>
9669 #ifdef HAVE_SYS_UN_H
9674 #ifdef F77_DUMMY_MAIN
9678 int F77_DUMMY_MAIN() { return 1; }
9683 if ((struct sockaddr_un *) 0)
9685 if (sizeof (struct sockaddr_un))
9691 rm -f conftest.$ac_objext
9692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9693 (eval $ac_compile) 2>&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -s conftest.$ac_objext'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 ac_cv_type_struct_sockaddr_un=yes
9705 echo "$as_me: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9707 ac_cv_type_struct_sockaddr_un=no
9709 rm -f conftest.$ac_objext conftest.$ac_ext
9711 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9712 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9713 if test $ac_cv_type_struct_sockaddr_un = yes; then
9715 cat >>confdefs.h <<_ACEOF
9716 #define HAVE_STRUCT_SOCKADDR_UN 1
9723 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9724 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9725 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 cat >conftest.$ac_ext <<_ACEOF
9729 #line $LINENO "configure"
9730 #include "confdefs.h"
9731 #include <sys/param.h>
9732 #include <sys/socket.h>
9733 #include <sys/ucred.h>
9735 #ifdef F77_DUMMY_MAIN
9739 int F77_DUMMY_MAIN() { return 1; }
9744 if ((struct cmsgcred *) 0)
9746 if (sizeof (struct cmsgcred))
9752 rm -f conftest.$ac_objext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9754 (eval $ac_compile) 2>&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try='test -s conftest.$ac_objext'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_cv_type_struct_cmsgcred=yes
9766 echo "$as_me: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9768 ac_cv_type_struct_cmsgcred=no
9770 rm -f conftest.$ac_objext conftest.$ac_ext
9772 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9773 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9774 if test $ac_cv_type_struct_cmsgcred = yes; then
9776 cat >>confdefs.h <<_ACEOF
9777 #define HAVE_STRUCT_CMSGCRED 1
9782 echo "$as_me:$LINENO: checking for struct fcred" >&5
9783 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9784 if test "${ac_cv_type_struct_fcred+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 cat >conftest.$ac_ext <<_ACEOF
9788 #line $LINENO "configure"
9789 #include "confdefs.h"
9790 #include <sys/param.h>
9791 #include <sys/socket.h>
9792 #include <sys/ucred.h>
9794 #ifdef F77_DUMMY_MAIN
9798 int F77_DUMMY_MAIN() { return 1; }
9803 if ((struct fcred *) 0)
9805 if (sizeof (struct fcred))
9811 rm -f conftest.$ac_objext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9813 (eval $ac_compile) 2>&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try='test -s conftest.$ac_objext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_cv_type_struct_fcred=yes
9825 echo "$as_me: failed program was:" >&5
9826 cat conftest.$ac_ext >&5
9827 ac_cv_type_struct_fcred=no
9829 rm -f conftest.$ac_objext conftest.$ac_ext
9831 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9832 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9833 if test $ac_cv_type_struct_fcred = yes; then
9835 cat >>confdefs.h <<_ACEOF
9836 #define HAVE_STRUCT_FCRED 1
9841 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9842 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9843 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 cat >conftest.$ac_ext <<_ACEOF
9847 #line $LINENO "configure"
9848 #include "confdefs.h"
9849 #include <sys/param.h>
9850 #include <sys/socket.h>
9851 #include <sys/ucred.h>
9853 #ifdef F77_DUMMY_MAIN
9857 int F77_DUMMY_MAIN() { return 1; }
9862 if ((struct sockcred *) 0)
9864 if (sizeof (struct sockcred))
9870 rm -f conftest.$ac_objext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9872 (eval $ac_compile) 2>&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -s conftest.$ac_objext'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 ac_cv_type_struct_sockcred=yes
9884 echo "$as_me: failed program was:" >&5
9885 cat conftest.$ac_ext >&5
9886 ac_cv_type_struct_sockcred=no
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9890 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9891 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9892 if test $ac_cv_type_struct_sockcred = yes; then
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_STRUCT_SOCKCRED 1
9902 if test "$with_zlib" = yes; then
9903 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9904 # did not). While we could work around the lack of z_streamp, it
9905 # seems unwise to encourage people to use such old zlib versions...
9906 echo "$as_me:$LINENO: checking for z_streamp" >&5
9907 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9908 if test "${ac_cv_type_z_streamp+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 cat >conftest.$ac_ext <<_ACEOF
9912 #line $LINENO "configure"
9913 #include "confdefs.h"
9916 #ifdef F77_DUMMY_MAIN
9920 int F77_DUMMY_MAIN() { return 1; }
9925 if ((z_streamp *) 0)
9927 if (sizeof (z_streamp))
9933 rm -f conftest.$ac_objext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9935 (eval $ac_compile) 2>&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -s conftest.$ac_objext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_type_z_streamp=yes
9947 echo "$as_me: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9949 ac_cv_type_z_streamp=no
9951 rm -f conftest.$ac_objext conftest.$ac_ext
9953 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9954 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9955 if test $ac_cv_type_z_streamp = yes; then
9958 { { echo "$as_me:$LINENO: error: zlib version is too old
9959 Use --without-zlib to disable zlib support." >&5
9960 echo "$as_me: error: zlib version is too old
9961 Use --without-zlib to disable zlib support." >&2;}
9962 { (exit 1); exit 1; }; }
9967 if test "$with_krb5" = yes; then
9968 # Check for differences between MIT and Heimdal (KTH) releases
9969 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9970 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9971 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 cat >conftest.$ac_ext <<_ACEOF
9975 #line $LINENO "configure"
9976 #include "confdefs.h"
9979 #ifdef F77_DUMMY_MAIN
9983 int F77_DUMMY_MAIN() { return 1; }
9988 static krb5_ticket ac_aggr;
9989 if (ac_aggr.enc_part2)
9995 rm -f conftest.$ac_objext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9997 (eval $ac_compile) 2>&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
10001 { ac_try='test -s conftest.$ac_objext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_member_krb5_ticket_enc_part2=yes
10009 echo "$as_me: failed program was:" >&5
10010 cat conftest.$ac_ext >&5
10011 ac_cv_member_krb5_ticket_enc_part2=no
10013 rm -f conftest.$ac_objext conftest.$ac_ext
10015 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10016 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10017 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10019 cat >>confdefs.h <<_ACEOF
10020 #define HAVE_KRB5_TICKET_ENC_PART2 1
10025 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10026 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10027 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 cat >conftest.$ac_ext <<_ACEOF
10031 #line $LINENO "configure"
10032 #include "confdefs.h"
10035 #ifdef F77_DUMMY_MAIN
10036 # ifdef __cplusplus
10039 int F77_DUMMY_MAIN() { return 1; }
10044 static krb5_ticket ac_aggr;
10045 if (ac_aggr.client)
10051 rm -f conftest.$ac_objext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10053 (eval $ac_compile) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_member_krb5_ticket_client=yes
10065 echo "$as_me: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10067 ac_cv_member_krb5_ticket_client=no
10069 rm -f conftest.$ac_objext conftest.$ac_ext
10071 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10072 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10073 if test $ac_cv_member_krb5_ticket_client = yes; then
10075 cat >>confdefs.h <<_ACEOF
10076 #define HAVE_KRB5_TICKET_CLIENT 1
10081 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10082 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10083 { (exit 1); exit 1; }; }
10088 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10089 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10090 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 cat >conftest.$ac_ext <<_ACEOF
10094 #line $LINENO "configure"
10095 #include "confdefs.h"
10098 #ifdef F77_DUMMY_MAIN
10099 # ifdef __cplusplus
10102 int F77_DUMMY_MAIN() { return 1; }
10107 static krb5_error ac_aggr;
10108 if (ac_aggr.text.data)
10114 rm -f conftest.$ac_objext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10116 (eval $ac_compile) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -s conftest.$ac_objext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_member_krb5_error_text_data=yes
10128 echo "$as_me: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10130 ac_cv_member_krb5_error_text_data=no
10132 rm -f conftest.$ac_objext conftest.$ac_ext
10134 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10135 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10136 if test $ac_cv_member_krb5_error_text_data = yes; then
10138 cat >>confdefs.h <<_ACEOF
10139 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10144 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10145 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10146 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 cat >conftest.$ac_ext <<_ACEOF
10150 #line $LINENO "configure"
10151 #include "confdefs.h"
10154 #ifdef F77_DUMMY_MAIN
10155 # ifdef __cplusplus
10158 int F77_DUMMY_MAIN() { return 1; }
10163 static krb5_error ac_aggr;
10164 if (ac_aggr.e_data)
10170 rm -f conftest.$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172 (eval $ac_compile) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -s conftest.$ac_objext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 ac_cv_member_krb5_error_e_data=yes
10184 echo "$as_me: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10186 ac_cv_member_krb5_error_e_data=no
10188 rm -f conftest.$ac_objext conftest.$ac_ext
10190 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10191 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10192 if test $ac_cv_member_krb5_error_e_data = yes; then
10195 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10196 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10197 { (exit 1); exit 1; }; }
10206 ## Functions, global variables
10209 echo "$as_me:$LINENO: checking for int timezone" >&5
10210 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10211 if test "${pgac_cv_var_int_timezone+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 cat >conftest.$ac_ext <<_ACEOF
10215 #line $LINENO "configure"
10216 #include "confdefs.h"
10219 #ifdef F77_DUMMY_MAIN
10220 # ifdef __cplusplus
10223 int F77_DUMMY_MAIN() { return 1; }
10228 res = timezone / 60;
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235 (eval $ac_link) 2>&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } &&
10239 { ac_try='test -s conftest$ac_exeext'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 pgac_cv_var_int_timezone=yes
10247 echo "$as_me: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10249 pgac_cv_var_int_timezone=no
10251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10253 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10254 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10255 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10257 cat >>confdefs.h <<\_ACEOF
10258 #define HAVE_INT_TIMEZONE
10262 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10263 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10264 if test "${ac_cv_func_accept_arg1+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 if test "${ac_cv_func_accept_arg2+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 if test "${ac_cv_func_accept_arg3+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10274 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10275 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10276 cat >conftest.$ac_ext <<_ACEOF
10277 #line $LINENO "configure"
10278 #include "confdefs.h"
10279 #ifdef HAVE_SYS_TYPES_H
10280 #include <sys/types.h>
10282 #ifdef HAVE_SYS_SOCKET_H
10283 #include <sys/socket.h>
10285 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10286 #ifdef F77_DUMMY_MAIN
10287 # ifdef __cplusplus
10290 int F77_DUMMY_MAIN() { return 1; }
10300 rm -f conftest.$ac_objext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302 (eval $ac_compile) 2>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try='test -s conftest.$ac_objext'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_not_found=no; break 3
10314 echo "$as_me: failed program was:" >&5
10315 cat conftest.$ac_ext >&5
10318 rm -f conftest.$ac_objext conftest.$ac_ext
10322 if test "$ac_not_found" = yes; then
10323 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10324 echo "$as_me: error: could not determine argument types" >&2;}
10325 { (exit 1); exit 1; }; }
10327 if test "$ac_cv_func_accept_arg3" = "void"; then
10328 ac_cv_func_accept_arg3=int
10336 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10337 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10339 cat >>confdefs.h <<_ACEOF
10340 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10344 cat >>confdefs.h <<_ACEOF
10345 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10349 cat >>confdefs.h <<_ACEOF
10350 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10354 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10355 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10356 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 cat >conftest.$ac_ext <<_ACEOF
10360 #line $LINENO "configure"
10361 #include "confdefs.h"
10362 #include <sys/time.h>
10363 #ifdef F77_DUMMY_MAIN
10364 # ifdef __cplusplus
10367 int F77_DUMMY_MAIN() { return 1; }
10372 struct timeval *tp;
10373 struct timezone *tzp;
10374 gettimeofday(tp,tzp);
10379 rm -f conftest.$ac_objext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10381 (eval $ac_compile) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -s conftest.$ac_objext'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; }; then
10391 pgac_cv_func_gettimeofday_1arg=no
10393 echo "$as_me: failed program was:" >&5
10394 cat conftest.$ac_ext >&5
10395 pgac_cv_func_gettimeofday_1arg=yes
10397 rm -f conftest.$ac_objext conftest.$ac_ext
10399 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10400 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10401 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10403 cat >>confdefs.h <<\_ACEOF
10404 #define GETTIMEOFDAY_1ARG
10409 # SunOS doesn't handle negative byte comparisons properly with +/- return
10410 echo "$as_me:$LINENO: checking for working memcmp" >&5
10411 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10412 if test "${ac_cv_func_memcmp_working+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 if test "$cross_compiling" = yes; then
10416 ac_cv_func_memcmp_working=no
10418 cat >conftest.$ac_ext <<_ACEOF
10419 #line $LINENO "configure"
10420 #include "confdefs.h"
10422 #ifdef F77_DUMMY_MAIN
10423 # ifdef __cplusplus
10426 int F77_DUMMY_MAIN() { return 1; }
10432 /* Some versions of memcmp are not 8-bit clean. */
10433 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10434 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10437 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10438 or more and with at least one buffer not starting on a 4-byte boundary.
10439 William Lewis provided this test program. */
10444 for (i = 0; i < 4; i++)
10448 strcpy (a, "--------01111111");
10449 strcpy (b, "--------10000000");
10450 if (memcmp (a, b, 16) >= 0)
10460 rm -f conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_func_memcmp_working=yes
10473 echo "$as_me: program exited with status $ac_status" >&5
10474 echo "$as_me: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10476 ( exit $ac_status )
10477 ac_cv_func_memcmp_working=no
10479 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10482 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10483 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10484 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10499 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10502 echo "$as_me:$LINENO: checking for $ac_func" >&5
10503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10504 if eval "test \"\${$as_ac_var+set}\" = set"; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 cat >conftest.$ac_ext <<_ACEOF
10508 #line $LINENO "configure"
10509 #include "confdefs.h"
10510 /* System header to define __stub macros and hopefully few prototypes,
10511 which can conflict with char $ac_func (); below. */
10512 #include <assert.h>
10513 /* Override any gcc2 internal prototype to avoid an error. */
10517 /* We use char because int might match the return type of a gcc2
10518 builtin and then its argument prototype would still apply. */
10522 #ifdef F77_DUMMY_MAIN
10523 # ifdef __cplusplus
10526 int F77_DUMMY_MAIN() { return 1; }
10531 /* The GNU C library defines this for functions which it implements
10532 to always fail with ENOSYS. Some functions are actually named
10533 something starting with __ and the normal name is an alias. */
10534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10544 rm -f conftest.$ac_objext conftest$ac_exeext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546 (eval $ac_link) 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -s conftest$ac_exeext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 eval "$as_ac_var=yes"
10558 echo "$as_me: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10560 eval "$as_ac_var=no"
10562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10566 if test `eval echo '${'$as_ac_var'}'` = yes; then
10567 cat >>confdefs.h <<_ACEOF
10568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10575 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10576 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10577 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 cat >conftest.$ac_ext <<_ACEOF
10581 #line $LINENO "configure"
10582 #include "confdefs.h"
10583 #include <unistd.h>
10585 #ifdef F77_DUMMY_MAIN
10586 # ifdef __cplusplus
10589 int F77_DUMMY_MAIN() { return 1; }
10595 char *p = (char *) fdatasync;
10602 rm -f conftest.$ac_objext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10604 (eval $ac_compile) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try='test -s conftest.$ac_objext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 ac_cv_have_decl_fdatasync=yes
10616 echo "$as_me: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10618 ac_cv_have_decl_fdatasync=no
10620 rm -f conftest.$ac_objext conftest.$ac_ext
10622 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10623 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10624 if test $ac_cv_have_decl_fdatasync = yes; then
10626 cat >>confdefs.h <<_ACEOF
10627 #define HAVE_DECL_FDATASYNC 1
10632 cat >>confdefs.h <<_ACEOF
10633 #define HAVE_DECL_FDATASYNC 0
10641 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10642 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10643 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 cat >conftest.$ac_ext <<_ACEOF
10647 #line $LINENO "configure"
10648 #include "confdefs.h"
10649 #include <machine/vmparam.h>
10650 #include <sys/exec.h>
10652 #ifdef F77_DUMMY_MAIN
10653 # ifdef __cplusplus
10656 int F77_DUMMY_MAIN() { return 1; }
10661 PS_STRINGS->ps_nargvstr = 1;
10662 PS_STRINGS->ps_argvstr = "foo";
10667 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10669 (eval $ac_link) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -s conftest$ac_exeext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 pgac_cv_var_PS_STRINGS=yes
10681 echo "$as_me: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 pgac_cv_var_PS_STRINGS=no
10685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10687 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10688 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10689 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10691 cat >>confdefs.h <<\_ACEOF
10692 #define HAVE_PS_STRINGS
10698 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10699 # is missing. Yes, there are machines that have only one. We may
10700 # also decide to use snprintf.c if snprintf() is present but does not
10701 # have working "long long int" support -- see below.
10703 pgac_need_repl_snprintf=no
10705 for ac_func in snprintf
10707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10708 echo "$as_me:$LINENO: checking for $ac_func" >&5
10709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10710 if eval "test \"\${$as_ac_var+set}\" = set"; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 cat >conftest.$ac_ext <<_ACEOF
10714 #line $LINENO "configure"
10715 #include "confdefs.h"
10716 /* System header to define __stub macros and hopefully few prototypes,
10717 which can conflict with char $ac_func (); below. */
10718 #include <assert.h>
10719 /* Override any gcc2 internal prototype to avoid an error. */
10723 /* We use char because int might match the return type of a gcc2
10724 builtin and then its argument prototype would still apply. */
10728 #ifdef F77_DUMMY_MAIN
10729 # ifdef __cplusplus
10732 int F77_DUMMY_MAIN() { return 1; }
10737 /* The GNU C library defines this for functions which it implements
10738 to always fail with ENOSYS. Some functions are actually named
10739 something starting with __ and the normal name is an alias. */
10740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10750 rm -f conftest.$ac_objext conftest$ac_exeext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752 (eval $ac_link) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
10756 { ac_try='test -s conftest$ac_exeext'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 eval "$as_ac_var=yes"
10764 echo "$as_me: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 eval "$as_ac_var=no"
10768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10772 if test `eval echo '${'$as_ac_var'}'` = yes; then
10773 cat >>confdefs.h <<_ACEOF
10774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10778 pgac_need_repl_snprintf=yes
10783 for ac_func in vsnprintf
10785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10786 echo "$as_me:$LINENO: checking for $ac_func" >&5
10787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10788 if eval "test \"\${$as_ac_var+set}\" = set"; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 cat >conftest.$ac_ext <<_ACEOF
10792 #line $LINENO "configure"
10793 #include "confdefs.h"
10794 /* System header to define __stub macros and hopefully few prototypes,
10795 which can conflict with char $ac_func (); below. */
10796 #include <assert.h>
10797 /* Override any gcc2 internal prototype to avoid an error. */
10801 /* We use char because int might match the return type of a gcc2
10802 builtin and then its argument prototype would still apply. */
10806 #ifdef F77_DUMMY_MAIN
10807 # ifdef __cplusplus
10810 int F77_DUMMY_MAIN() { return 1; }
10815 /* The GNU C library defines this for functions which it implements
10816 to always fail with ENOSYS. Some functions are actually named
10817 something starting with __ and the normal name is an alias. */
10818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10828 rm -f conftest.$ac_objext conftest$ac_exeext
10829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10830 (eval $ac_link) 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -s conftest$ac_exeext'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; }; then
10840 eval "$as_ac_var=yes"
10842 echo "$as_me: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10844 eval "$as_ac_var=no"
10846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10850 if test `eval echo '${'$as_ac_var'}'` = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10856 pgac_need_repl_snprintf=yes
10862 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10863 # include/c.h will provide declarations. Note this is a separate test
10864 # from whether the functions exist in the C library --- there are
10865 # systems that have the functions but don't bother to declare them :-(
10867 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10868 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10869 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 cat >conftest.$ac_ext <<_ACEOF
10873 #line $LINENO "configure"
10874 #include "confdefs.h"
10875 $ac_includes_default
10876 #ifdef F77_DUMMY_MAIN
10877 # ifdef __cplusplus
10880 int F77_DUMMY_MAIN() { return 1; }
10886 char *p = (char *) snprintf;
10893 rm -f conftest.$ac_objext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10895 (eval $ac_compile) 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -s conftest.$ac_objext'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10905 ac_cv_have_decl_snprintf=yes
10907 echo "$as_me: failed program was:" >&5
10908 cat conftest.$ac_ext >&5
10909 ac_cv_have_decl_snprintf=no
10911 rm -f conftest.$ac_objext conftest.$ac_ext
10913 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10914 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10915 if test $ac_cv_have_decl_snprintf = yes; then
10917 cat >>confdefs.h <<_ACEOF
10918 #define HAVE_DECL_SNPRINTF 1
10923 cat >>confdefs.h <<_ACEOF
10924 #define HAVE_DECL_SNPRINTF 0
10929 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10930 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10931 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 cat >conftest.$ac_ext <<_ACEOF
10935 #line $LINENO "configure"
10936 #include "confdefs.h"
10937 $ac_includes_default
10938 #ifdef F77_DUMMY_MAIN
10939 # ifdef __cplusplus
10942 int F77_DUMMY_MAIN() { return 1; }
10948 char *p = (char *) vsnprintf;
10955 rm -f conftest.$ac_objext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10957 (eval $ac_compile) 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
10961 { ac_try='test -s conftest.$ac_objext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 ac_cv_have_decl_vsnprintf=yes
10969 echo "$as_me: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10971 ac_cv_have_decl_vsnprintf=no
10973 rm -f conftest.$ac_objext conftest.$ac_ext
10975 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10976 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10977 if test $ac_cv_have_decl_vsnprintf = yes; then
10979 cat >>confdefs.h <<_ACEOF
10980 #define HAVE_DECL_VSNPRINTF 1
10985 cat >>confdefs.h <<_ACEOF
10986 #define HAVE_DECL_VSNPRINTF 0
10995 # do this one the hard way in case isinf() is a macro
10996 echo "$as_me:$LINENO: checking for isinf" >&5
10997 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10998 if test "${ac_cv_func_isinf+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 cat >conftest.$ac_ext <<_ACEOF
11002 #line $LINENO "configure"
11003 #include "confdefs.h"
11006 #ifdef F77_DUMMY_MAIN
11007 # ifdef __cplusplus
11010 int F77_DUMMY_MAIN() { return 1; }
11015 double x = 0.0; int res = isinf(x);
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022 (eval $ac_link) 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -s conftest$ac_exeext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11032 ac_cv_func_isinf=yes
11034 echo "$as_me: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
11036 ac_cv_func_isinf=no
11038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11040 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11041 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11043 if test $ac_cv_func_isinf = yes ; then
11045 cat >>confdefs.h <<\_ACEOF
11046 #define HAVE_ISINF 1
11050 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11051 # Look for a way to implement a substitute for isinf()
11056 for ac_func in fpclass fp_class fp_class_d class
11058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11059 echo "$as_me:$LINENO: checking for $ac_func" >&5
11060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11061 if eval "test \"\${$as_ac_var+set}\" = set"; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 cat >conftest.$ac_ext <<_ACEOF
11065 #line $LINENO "configure"
11066 #include "confdefs.h"
11067 /* System header to define __stub macros and hopefully few prototypes,
11068 which can conflict with char $ac_func (); below. */
11069 #include <assert.h>
11070 /* Override any gcc2 internal prototype to avoid an error. */
11074 /* We use char because int might match the return type of a gcc2
11075 builtin and then its argument prototype would still apply. */
11079 #ifdef F77_DUMMY_MAIN
11080 # ifdef __cplusplus
11083 int F77_DUMMY_MAIN() { return 1; }
11088 /* The GNU C library defines this for functions which it implements
11089 to always fail with ENOSYS. Some functions are actually named
11090 something starting with __ and the normal name is an alias. */
11091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11101 rm -f conftest.$ac_objext conftest$ac_exeext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11103 (eval $ac_link) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } &&
11107 { ac_try='test -s conftest$ac_exeext'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 eval "$as_ac_var=yes"
11115 echo "$as_me: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11117 eval "$as_ac_var=no"
11119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11123 if test `eval echo '${'$as_ac_var'}'` = yes; then
11124 cat >>confdefs.h <<_ACEOF
11125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11143 for ac_func in gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
11145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11146 echo "$as_me:$LINENO: checking for $ac_func" >&5
11147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11148 if eval "test \"\${$as_ac_var+set}\" = set"; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 cat >conftest.$ac_ext <<_ACEOF
11152 #line $LINENO "configure"
11153 #include "confdefs.h"
11154 /* System header to define __stub macros and hopefully few prototypes,
11155 which can conflict with char $ac_func (); below. */
11156 #include <assert.h>
11157 /* Override any gcc2 internal prototype to avoid an error. */
11161 /* We use char because int might match the return type of a gcc2
11162 builtin and then its argument prototype would still apply. */
11166 #ifdef F77_DUMMY_MAIN
11167 # ifdef __cplusplus
11170 int F77_DUMMY_MAIN() { return 1; }
11175 /* The GNU C library defines this for functions which it implements
11176 to always fail with ENOSYS. Some functions are actually named
11177 something starting with __ and the normal name is an alias. */
11178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11188 rm -f conftest.$ac_objext conftest$ac_exeext
11189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11190 (eval $ac_link) 2>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -s conftest$ac_exeext'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; }; then
11200 eval "$as_ac_var=yes"
11202 echo "$as_me: failed program was:" >&5
11203 cat conftest.$ac_ext >&5
11204 eval "$as_ac_var=no"
11206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11210 if test `eval echo '${'$as_ac_var'}'` = yes; then
11211 cat >>confdefs.h <<_ACEOF
11212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11216 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11222 # Solaris has a very slow qsort in certain cases.
11224 solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11227 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11228 # this hackery with HPUXMATHLIB allows us to cope.
11232 if [ -r /lib/pa1.1/libm.a ] ; then
11233 HPUXMATHLIB="-L /lib/pa1.1 -lm"
11239 for ac_func in rint
11241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11242 echo "$as_me:$LINENO: checking for $ac_func" >&5
11243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11244 if eval "test \"\${$as_ac_var+set}\" = set"; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 cat >conftest.$ac_ext <<_ACEOF
11248 #line $LINENO "configure"
11249 #include "confdefs.h"
11250 /* System header to define __stub macros and hopefully few prototypes,
11251 which can conflict with char $ac_func (); below. */
11252 #include <assert.h>
11253 /* Override any gcc2 internal prototype to avoid an error. */
11257 /* We use char because int might match the return type of a gcc2
11258 builtin and then its argument prototype would still apply. */
11262 #ifdef F77_DUMMY_MAIN
11263 # ifdef __cplusplus
11266 int F77_DUMMY_MAIN() { return 1; }
11271 /* The GNU C library defines this for functions which it implements
11272 to always fail with ENOSYS. Some functions are actually named
11273 something starting with __ and the normal name is an alias. */
11274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11284 rm -f conftest.$ac_objext conftest$ac_exeext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11286 (eval $ac_link) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -s conftest$ac_exeext'
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 eval "$as_ac_var=yes"
11298 echo "$as_me: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 eval "$as_ac_var=no"
11302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11306 if test `eval echo '${'$as_ac_var'}'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11312 echo "$as_me:$LINENO: checking for rint in -lm" >&5
11313 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11314 if test "${ac_cv_lib_m_rint+set}" = set; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-lm $HPUXMATHLIB $LIBS"
11319 cat >conftest.$ac_ext <<_ACEOF
11320 #line $LINENO "configure"
11321 #include "confdefs.h"
11323 /* Override any gcc2 internal prototype to avoid an error. */
11327 /* We use char because int might match the return type of a gcc2
11328 builtin and then its argument prototype would still apply. */
11330 #ifdef F77_DUMMY_MAIN
11331 # ifdef __cplusplus
11334 int F77_DUMMY_MAIN() { return 1; }
11344 rm -f conftest.$ac_objext conftest$ac_exeext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -s conftest$ac_exeext'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 ac_cv_lib_m_rint=yes
11358 echo "$as_me: failed program was:" >&5
11359 cat conftest.$ac_ext >&5
11360 ac_cv_lib_m_rint=no
11362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11363 LIBS=$ac_check_lib_save_LIBS
11365 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11366 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11367 if test $ac_cv_lib_m_rint = yes; then
11368 cat >>confdefs.h <<\_ACEOF
11369 #define HAVE_RINT 1
11379 if test "$with_readline" = yes; then
11380 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11381 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11382 cat >conftest.$ac_ext <<_ACEOF
11383 #line $LINENO "configure"
11384 #include "confdefs.h"
11386 #ifdef HAVE_READLINE_READLINE_H
11387 # include <readline/readline.h>
11388 #elif defined(HAVE_READLINE_H)
11389 # include <readline.h>
11392 #ifdef F77_DUMMY_MAIN
11393 # ifdef __cplusplus
11396 int F77_DUMMY_MAIN() { return 1; }
11401 rl_completion_append_character = 'x';
11406 rm -f conftest.$ac_objext conftest$ac_exeext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11408 (eval $ac_link) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -s conftest$ac_exeext'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 echo "$as_me:$LINENO: result: yes" >&5
11419 echo "${ECHO_T}yes" >&6
11421 cat >>confdefs.h <<\_ACEOF
11422 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11426 echo "$as_me: failed program was:" >&5
11427 cat conftest.$ac_ext >&5
11428 echo "$as_me:$LINENO: result: no" >&5
11429 echo "${ECHO_T}no" >&6
11431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11434 for ac_func in rl_completion_matches rl_filename_completion_function
11436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11437 echo "$as_me:$LINENO: checking for $ac_func" >&5
11438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11439 if eval "test \"\${$as_ac_var+set}\" = set"; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 cat >conftest.$ac_ext <<_ACEOF
11443 #line $LINENO "configure"
11444 #include "confdefs.h"
11445 /* System header to define __stub macros and hopefully few prototypes,
11446 which can conflict with char $ac_func (); below. */
11447 #include <assert.h>
11448 /* Override any gcc2 internal prototype to avoid an error. */
11452 /* We use char because int might match the return type of a gcc2
11453 builtin and then its argument prototype would still apply. */
11457 #ifdef F77_DUMMY_MAIN
11458 # ifdef __cplusplus
11461 int F77_DUMMY_MAIN() { return 1; }
11466 /* The GNU C library defines this for functions which it implements
11467 to always fail with ENOSYS. Some functions are actually named
11468 something starting with __ and the normal name is an alias. */
11469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11479 rm -f conftest.$ac_objext conftest$ac_exeext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11481 (eval $ac_link) 2>&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
11485 { ac_try='test -s conftest$ac_exeext'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; }; then
11491 eval "$as_ac_var=yes"
11493 echo "$as_me: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11495 eval "$as_ac_var=no"
11497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11501 if test `eval echo '${'$as_ac_var'}'` = yes; then
11502 cat >>confdefs.h <<_ACEOF
11503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11512 echo "$as_me:$LINENO: checking for finite" >&5
11513 echo $ECHO_N "checking for finite... $ECHO_C" >&6
11514 cat >conftest.$ac_ext <<_ACEOF
11515 #line $LINENO "configure"
11516 #include "confdefs.h"
11518 #ifdef F77_DUMMY_MAIN
11519 # ifdef __cplusplus
11522 int F77_DUMMY_MAIN() { return 1; }
11527 int dummy=finite(1.0);
11532 rm -f conftest.$ac_objext conftest$ac_exeext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534 (eval $ac_link) 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } &&
11538 { ac_try='test -s conftest$ac_exeext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11545 cat >>confdefs.h <<\_ACEOF
11546 #define HAVE_FINITE 1
11549 echo "$as_me:$LINENO: result: yes" >&5
11550 echo "${ECHO_T}yes" >&6
11552 echo "$as_me: failed program was:" >&5
11553 cat conftest.$ac_ext >&5
11554 echo "$as_me:$LINENO: result: no" >&5
11555 echo "${ECHO_T}no" >&6
11557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11559 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11560 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11561 cat >conftest.$ac_ext <<_ACEOF
11562 #line $LINENO "configure"
11563 #include "confdefs.h"
11564 #include <setjmp.h>
11565 #ifdef F77_DUMMY_MAIN
11566 # ifdef __cplusplus
11569 int F77_DUMMY_MAIN() { return 1; }
11574 sigjmp_buf x; sigsetjmp(x, 1);
11579 rm -f conftest.$ac_objext conftest$ac_exeext
11580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11581 (eval $ac_link) 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } &&
11585 { ac_try='test -s conftest$ac_exeext'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; }; then
11592 cat >>confdefs.h <<\_ACEOF
11593 #define HAVE_SIGSETJMP 1
11596 echo "$as_me:$LINENO: result: yes" >&5
11597 echo "${ECHO_T}yes" >&6
11599 echo "$as_me: failed program was:" >&5
11600 cat conftest.$ac_ext >&5
11601 echo "$as_me:$LINENO: result: no" >&5
11602 echo "${ECHO_T}no" >&6
11604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11606 echo "$as_me:$LINENO: checking for syslog" >&5
11607 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11608 if test "${ac_cv_func_syslog+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 cat >conftest.$ac_ext <<_ACEOF
11612 #line $LINENO "configure"
11613 #include "confdefs.h"
11614 /* System header to define __stub macros and hopefully few prototypes,
11615 which can conflict with char syslog (); below. */
11616 #include <assert.h>
11617 /* Override any gcc2 internal prototype to avoid an error. */
11621 /* We use char because int might match the return type of a gcc2
11622 builtin and then its argument prototype would still apply. */
11626 #ifdef F77_DUMMY_MAIN
11627 # ifdef __cplusplus
11630 int F77_DUMMY_MAIN() { return 1; }
11635 /* The GNU C library defines this for functions which it implements
11636 to always fail with ENOSYS. Some functions are actually named
11637 something starting with __ and the normal name is an alias. */
11638 #if defined (__stub_syslog) || defined (__stub___syslog)
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650 (eval $ac_link) 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
11654 { ac_try='test -s conftest$ac_exeext'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 ac_cv_func_syslog=yes
11662 echo "$as_me: failed program was:" >&5
11663 cat conftest.$ac_ext >&5
11664 ac_cv_func_syslog=no
11666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11668 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11669 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11670 if test $ac_cv_func_syslog = yes; then
11671 if test "${ac_cv_header_syslog_h+set}" = set; then
11672 echo "$as_me:$LINENO: checking for syslog.h" >&5
11673 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11674 if test "${ac_cv_header_syslog_h+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11678 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11680 # Is the header compilable?
11681 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11682 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11683 cat >conftest.$ac_ext <<_ACEOF
11684 #line $LINENO "configure"
11685 #include "confdefs.h"
11686 $ac_includes_default
11687 #include <syslog.h>
11689 rm -f conftest.$ac_objext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11691 (eval $ac_compile) 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -s conftest.$ac_objext'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; }; then
11701 ac_header_compiler=yes
11703 echo "$as_me: failed program was:" >&5
11704 cat conftest.$ac_ext >&5
11705 ac_header_compiler=no
11707 rm -f conftest.$ac_objext conftest.$ac_ext
11708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11709 echo "${ECHO_T}$ac_header_compiler" >&6
11711 # Is the header present?
11712 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11713 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11714 cat >conftest.$ac_ext <<_ACEOF
11715 #line $LINENO "configure"
11716 #include "confdefs.h"
11717 #include <syslog.h>
11719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11722 egrep -v '^ *\+' conftest.er1 >conftest.err
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } >/dev/null; then
11727 if test -s conftest.err; then
11728 ac_cpp_err=$ac_c_preproc_warn_flag
11735 if test -z "$ac_cpp_err"; then
11736 ac_header_preproc=yes
11738 echo "$as_me: failed program was:" >&5
11739 cat conftest.$ac_ext >&5
11740 ac_header_preproc=no
11742 rm -f conftest.err conftest.$ac_ext
11743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11744 echo "${ECHO_T}$ac_header_preproc" >&6
11746 # So? What about this header?
11747 case $ac_header_compiler:$ac_header_preproc in
11749 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11750 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11752 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11754 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11755 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11757 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11759 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11761 echo "$as_me:$LINENO: checking for syslog.h" >&5
11762 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11763 if test "${ac_cv_header_syslog_h+set}" = set; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 ac_cv_header_syslog_h=$ac_header_preproc
11768 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11769 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11772 if test $ac_cv_header_syslog_h = yes; then
11773 cat >>confdefs.h <<\_ACEOF
11774 #define HAVE_SYSLOG 1
11783 echo "$as_me:$LINENO: checking for optreset" >&5
11784 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11785 if test "${pgac_cv_var_int_optreset+set}" = set; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11788 cat >conftest.$ac_ext <<_ACEOF
11789 #line $LINENO "configure"
11790 #include "confdefs.h"
11791 #include <unistd.h>
11792 #ifdef F77_DUMMY_MAIN
11793 # ifdef __cplusplus
11796 int F77_DUMMY_MAIN() { return 1; }
11801 extern int optreset; optreset = 1;
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11808 (eval $ac_link) 2>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } &&
11812 { ac_try='test -s conftest$ac_exeext'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 pgac_cv_var_int_optreset=yes
11820 echo "$as_me: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 pgac_cv_var_int_optreset=no
11824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11826 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11827 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11828 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11830 cat >>confdefs.h <<\_ACEOF
11831 #define HAVE_INT_OPTRESET 1
11838 for ac_func in strtoll strtoq
11840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11841 echo "$as_me:$LINENO: checking for $ac_func" >&5
11842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11843 if eval "test \"\${$as_ac_var+set}\" = set"; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 cat >conftest.$ac_ext <<_ACEOF
11847 #line $LINENO "configure"
11848 #include "confdefs.h"
11849 /* System header to define __stub macros and hopefully few prototypes,
11850 which can conflict with char $ac_func (); below. */
11851 #include <assert.h>
11852 /* Override any gcc2 internal prototype to avoid an error. */
11856 /* We use char because int might match the return type of a gcc2
11857 builtin and then its argument prototype would still apply. */
11861 #ifdef F77_DUMMY_MAIN
11862 # ifdef __cplusplus
11865 int F77_DUMMY_MAIN() { return 1; }
11870 /* The GNU C library defines this for functions which it implements
11871 to always fail with ENOSYS. Some functions are actually named
11872 something starting with __ and the normal name is an alias. */
11873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11883 rm -f conftest.$ac_objext conftest$ac_exeext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11885 (eval $ac_link) 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
11889 { ac_try='test -s conftest$ac_exeext'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; }; then
11895 eval "$as_ac_var=yes"
11897 echo "$as_me: failed program was:" >&5
11898 cat conftest.$ac_ext >&5
11899 eval "$as_ac_var=no"
11901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11905 if test `eval echo '${'$as_ac_var'}'` = yes; then
11906 cat >>confdefs.h <<_ACEOF
11907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11915 for ac_func in strtoull strtouq
11917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11918 echo "$as_me:$LINENO: checking for $ac_func" >&5
11919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11920 if eval "test \"\${$as_ac_var+set}\" = set"; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 cat >conftest.$ac_ext <<_ACEOF
11924 #line $LINENO "configure"
11925 #include "confdefs.h"
11926 /* System header to define __stub macros and hopefully few prototypes,
11927 which can conflict with char $ac_func (); below. */
11928 #include <assert.h>
11929 /* Override any gcc2 internal prototype to avoid an error. */
11933 /* We use char because int might match the return type of a gcc2
11934 builtin and then its argument prototype would still apply. */
11938 #ifdef F77_DUMMY_MAIN
11939 # ifdef __cplusplus
11942 int F77_DUMMY_MAIN() { return 1; }
11947 /* The GNU C library defines this for functions which it implements
11948 to always fail with ENOSYS. Some functions are actually named
11949 something starting with __ and the normal name is an alias. */
11950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 eval "$as_ac_var=yes"
11974 echo "$as_me: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 eval "$as_ac_var=no"
11978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11982 if test `eval echo '${'$as_ac_var'}'` = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11991 # Check for one of atexit() or on_exit()
11993 for ac_func in atexit
11995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11996 echo "$as_me:$LINENO: checking for $ac_func" >&5
11997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11998 if eval "test \"\${$as_ac_var+set}\" = set"; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 cat >conftest.$ac_ext <<_ACEOF
12002 #line $LINENO "configure"
12003 #include "confdefs.h"
12004 /* System header to define __stub macros and hopefully few prototypes,
12005 which can conflict with char $ac_func (); below. */
12006 #include <assert.h>
12007 /* Override any gcc2 internal prototype to avoid an error. */
12011 /* We use char because int might match the return type of a gcc2
12012 builtin and then its argument prototype would still apply. */
12016 #ifdef F77_DUMMY_MAIN
12017 # ifdef __cplusplus
12020 int F77_DUMMY_MAIN() { return 1; }
12025 /* The GNU C library defines this for functions which it implements
12026 to always fail with ENOSYS. Some functions are actually named
12027 something starting with __ and the normal name is an alias. */
12028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12040 (eval $ac_link) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -s conftest$ac_exeext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 eval "$as_ac_var=yes"
12052 echo "$as_me: failed program was:" >&5
12053 cat conftest.$ac_ext >&5
12054 eval "$as_ac_var=no"
12056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12060 if test `eval echo '${'$as_ac_var'}'` = yes; then
12061 cat >>confdefs.h <<_ACEOF
12062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12067 for ac_func in on_exit
12069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12070 echo "$as_me:$LINENO: checking for $ac_func" >&5
12071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12072 if eval "test \"\${$as_ac_var+set}\" = set"; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 cat >conftest.$ac_ext <<_ACEOF
12076 #line $LINENO "configure"
12077 #include "confdefs.h"
12078 /* System header to define __stub macros and hopefully few prototypes,
12079 which can conflict with char $ac_func (); below. */
12080 #include <assert.h>
12081 /* Override any gcc2 internal prototype to avoid an error. */
12085 /* We use char because int might match the return type of a gcc2
12086 builtin and then its argument prototype would still apply. */
12090 #ifdef F77_DUMMY_MAIN
12091 # ifdef __cplusplus
12094 int F77_DUMMY_MAIN() { return 1; }
12099 /* The GNU C library defines this for functions which it implements
12100 to always fail with ENOSYS. Some functions are actually named
12101 something starting with __ and the normal name is an alias. */
12102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 eval "$as_ac_var=yes"
12126 echo "$as_me: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 eval "$as_ac_var=no"
12130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12134 if test `eval echo '${'$as_ac_var'}'` = yes; then
12135 cat >>confdefs.h <<_ACEOF
12136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12140 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12141 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12142 { (exit 1); exit 1; }; }
12151 # This test makes sure that run tests work at all. Sometimes a shared
12152 # library is found by the linker, but the runtime linker can't find it.
12153 # This check should come after all modifications of compiler or linker
12154 # variables, and before any other run tests.
12155 echo "$as_me:$LINENO: checking test program" >&5
12156 echo $ECHO_N "checking test program... $ECHO_C" >&6
12157 if test "$cross_compiling" = yes; then
12158 echo "$as_me:$LINENO: result: cross-compiling" >&5
12159 echo "${ECHO_T}cross-compiling" >&6
12161 cat >conftest.$ac_ext <<_ACEOF
12162 #line $LINENO "configure"
12163 #include "confdefs.h"
12164 int main() { return 0; }
12166 rm -f conftest$ac_exeext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168 (eval $ac_link) 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 echo "$as_me:$LINENO: result: ok" >&5
12178 echo "${ECHO_T}ok" >&6
12180 echo "$as_me: program exited with status $ac_status" >&5
12181 echo "$as_me: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12183 ( exit $ac_status )
12184 echo "$as_me:$LINENO: result: failed" >&5
12185 echo "${ECHO_T}failed" >&6
12186 { { echo "$as_me:$LINENO: error:
12187 *** Could not execute a simple test program. This may be a problem
12188 *** related to locating shared libraries. Check the file 'config.log'
12189 *** for the exact reason." >&5
12190 echo "$as_me: error:
12191 *** Could not execute a simple test program. This may be a problem
12192 *** related to locating shared libraries. Check the file 'config.log'
12193 *** for the exact reason." >&2;}
12194 { (exit 1); exit 1; }; }
12196 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12201 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12202 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12203 if test "${pgac_cv_type_long_int_64+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 if test "$cross_compiling" = yes; then
12207 pgac_cv_type_long_int_64=no
12208 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12209 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12211 cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12213 #include "confdefs.h"
12214 typedef long int int64;
12217 * These are globals to discourage the compiler from folding all the
12218 * arithmetic tests down to compile-time constants.
12220 int64 a = 20000001;
12221 int64 b = 40000005;
12223 int does_int64_work()
12227 if (sizeof(int64) != 8)
12228 return 0; /* definitely not the right size */
12230 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12238 exit(! does_int64_work());
12241 rm -f conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243 (eval $ac_link) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; }; then
12252 pgac_cv_type_long_int_64=yes
12254 echo "$as_me: program exited with status $ac_status" >&5
12255 echo "$as_me: failed program was:" >&5
12256 cat conftest.$ac_ext >&5
12257 ( exit $ac_status )
12258 pgac_cv_type_long_int_64=no
12260 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12263 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12264 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12266 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12267 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12269 cat >>confdefs.h <<\_ACEOF
12270 #define HAVE_LONG_INT_64
12276 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12277 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12278 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12279 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 if test "$cross_compiling" = yes; then
12283 pgac_cv_type_long_long_int_64=no
12284 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12285 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12287 cat >conftest.$ac_ext <<_ACEOF
12288 #line $LINENO "configure"
12289 #include "confdefs.h"
12290 typedef long long int int64;
12293 * These are globals to discourage the compiler from folding all the
12294 * arithmetic tests down to compile-time constants.
12296 int64 a = 20000001;
12297 int64 b = 40000005;
12299 int does_int64_work()
12303 if (sizeof(int64) != 8)
12304 return 0; /* definitely not the right size */
12306 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12314 exit(! does_int64_work());
12317 rm -f conftest$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319 (eval $ac_link) 2>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; }; then
12328 pgac_cv_type_long_long_int_64=yes
12330 echo "$as_me: program exited with status $ac_status" >&5
12331 echo "$as_me: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 ( exit $ac_status )
12334 pgac_cv_type_long_long_int_64=no
12336 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12339 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12340 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12342 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12343 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12345 cat >>confdefs.h <<\_ACEOF
12346 #define HAVE_LONG_LONG_INT_64
12355 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12356 cat >conftest.$ac_ext <<_ACEOF
12357 #line $LINENO "configure"
12358 #include "confdefs.h"
12360 #define INT64CONST(x) x##LL
12361 long long int foo = INT64CONST(0x1234567890123456);
12363 #ifdef F77_DUMMY_MAIN
12364 # ifdef __cplusplus
12367 int F77_DUMMY_MAIN() { return 1; }
12377 rm -f conftest.$ac_objext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12379 (eval $ac_compile) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -s conftest.$ac_objext'
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12390 cat >>confdefs.h <<\_ACEOF
12391 #define HAVE_LL_CONSTANTS 1
12395 echo "$as_me: failed program was:" >&5
12396 cat conftest.$ac_ext >&5
12398 rm -f conftest.$ac_objext conftest.$ac_ext
12403 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
12404 if test $pgac_need_repl_snprintf = no; then
12405 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12406 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12407 if test "$cross_compiling" = yes; then
12408 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12409 echo "${ECHO_T}cannot test (not on host machine)" >&6
12410 # Force usage of our own snprintf, since we cannot test foreign snprintf
12411 pgac_need_repl_snprintf=yes
12412 INT64_FORMAT='"%lld"'
12415 cat >conftest.$ac_ext <<_ACEOF
12416 #line $LINENO "configure"
12417 #include "confdefs.h"
12419 typedef long long int int64;
12420 #define INT64_FORMAT "%lld"
12422 int64 a = 20000001;
12423 int64 b = 40000005;
12425 int does_int64_snprintf_work()
12430 if (sizeof(int64) != 8)
12431 return 0; /* doesn't look like the right size */
12434 snprintf(buf, 100, INT64_FORMAT, c);
12435 if (strcmp(buf, "800000140000005") != 0)
12436 return 0; /* either multiply or snprintf is busted */
12440 exit(! does_int64_snprintf_work());
12443 rm -f conftest$ac_exeext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445 (eval $ac_link) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454 echo "$as_me:$LINENO: result: yes" >&5
12455 echo "${ECHO_T}yes" >&6
12456 INT64_FORMAT='"%lld"'
12459 echo "$as_me: program exited with status $ac_status" >&5
12460 echo "$as_me: failed program was:" >&5
12461 cat conftest.$ac_ext >&5
12462 ( exit $ac_status )
12463 echo "$as_me:$LINENO: result: no" >&5
12464 echo "${ECHO_T}no" >&6
12465 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12466 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12467 if test "$cross_compiling" = yes; then
12468 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12469 echo "${ECHO_T}cannot test (not on host machine)" >&6
12470 # Force usage of our own snprintf, since we cannot test foreign snprintf
12471 pgac_need_repl_snprintf=yes
12472 INT64_FORMAT='"%lld"'
12475 cat >conftest.$ac_ext <<_ACEOF
12476 #line $LINENO "configure"
12477 #include "confdefs.h"
12479 typedef long long int int64;
12480 #define INT64_FORMAT "%qd"
12482 int64 a = 20000001;
12483 int64 b = 40000005;
12485 int does_int64_snprintf_work()
12490 if (sizeof(int64) != 8)
12491 return 0; /* doesn't look like the right size */
12494 snprintf(buf, 100, INT64_FORMAT, c);
12495 if (strcmp(buf, "800000140000005") != 0)
12496 return 0; /* either multiply or snprintf is busted */
12500 exit(! does_int64_snprintf_work());
12503 rm -f conftest$ac_exeext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 echo "$as_me:$LINENO: result: yes" >&5
12515 echo "${ECHO_T}yes" >&6
12516 INT64_FORMAT='"%qd"'
12519 echo "$as_me: program exited with status $ac_status" >&5
12520 echo "$as_me: failed program was:" >&5
12521 cat conftest.$ac_ext >&5
12522 ( exit $ac_status )
12523 echo "$as_me:$LINENO: result: no" >&5
12524 echo "${ECHO_T}no" >&6
12525 # Force usage of our own snprintf, since system snprintf is broken
12526 pgac_need_repl_snprintf=yes
12527 INT64_FORMAT='"%lld"'
12530 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12533 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12536 # here if we previously decided we needed to use our own snprintf
12537 INT64_FORMAT='"%lld"'
12540 # Here if we are not using 'long long int' at all
12541 INT64_FORMAT='"%ld"'
12545 cat >>confdefs.h <<_ACEOF
12546 #define INT64_FORMAT $INT64_FORMAT
12550 if test $pgac_need_repl_snprintf = yes; then
12551 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12555 echo "$as_me:$LINENO: checking for unsigned long" >&5
12556 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12557 if test "${ac_cv_type_unsigned_long+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 cat >conftest.$ac_ext <<_ACEOF
12561 #line $LINENO "configure"
12562 #include "confdefs.h"
12563 $ac_includes_default
12564 #ifdef F77_DUMMY_MAIN
12565 # ifdef __cplusplus
12568 int F77_DUMMY_MAIN() { return 1; }
12573 if ((unsigned long *) 0)
12575 if (sizeof (unsigned long))
12581 rm -f conftest.$ac_objext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12583 (eval $ac_compile) 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -s conftest.$ac_objext'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 ac_cv_type_unsigned_long=yes
12595 echo "$as_me: failed program was:" >&5
12596 cat conftest.$ac_ext >&5
12597 ac_cv_type_unsigned_long=no
12599 rm -f conftest.$ac_objext conftest.$ac_ext
12601 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12602 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12604 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12605 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12606 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 if test "$ac_cv_type_unsigned_long" = yes; then
12610 # The cast to unsigned long works around a bug in the HP C Compiler
12611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12613 # This bug is HP SR number 8606223364.
12614 if test "$cross_compiling" = yes; then
12615 # Depending upon the size, compute the lo and hi bounds.
12616 cat >conftest.$ac_ext <<_ACEOF
12617 #line $LINENO "configure"
12618 #include "confdefs.h"
12619 $ac_includes_default
12620 #ifdef F77_DUMMY_MAIN
12621 # ifdef __cplusplus
12624 int F77_DUMMY_MAIN() { return 1; }
12629 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12636 rm -f conftest.$ac_objext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638 (eval $ac_compile) 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -s conftest.$ac_objext'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12650 cat >conftest.$ac_ext <<_ACEOF
12651 #line $LINENO "configure"
12652 #include "confdefs.h"
12653 $ac_includes_default
12654 #ifdef F77_DUMMY_MAIN
12655 # ifdef __cplusplus
12658 int F77_DUMMY_MAIN() { return 1; }
12663 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12670 rm -f conftest.$ac_objext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12672 (eval $ac_compile) 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -s conftest.$ac_objext'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 ac_hi=$ac_mid; break
12684 echo "$as_me: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 ac_lo=`expr $ac_mid + 1`
12687 if test $ac_lo -le $ac_mid; then
12691 ac_mid=`expr 2 '*' $ac_mid + 1`
12693 rm -f conftest.$ac_objext conftest.$ac_ext
12696 echo "$as_me: failed program was:" >&5
12697 cat conftest.$ac_ext >&5
12698 cat >conftest.$ac_ext <<_ACEOF
12699 #line $LINENO "configure"
12700 #include "confdefs.h"
12701 $ac_includes_default
12702 #ifdef F77_DUMMY_MAIN
12703 # ifdef __cplusplus
12706 int F77_DUMMY_MAIN() { return 1; }
12711 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12718 rm -f conftest.$ac_objext
12719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720 (eval $ac_compile) 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -s conftest.$ac_objext'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; }; then
12732 cat >conftest.$ac_ext <<_ACEOF
12733 #line $LINENO "configure"
12734 #include "confdefs.h"
12735 $ac_includes_default
12736 #ifdef F77_DUMMY_MAIN
12737 # ifdef __cplusplus
12740 int F77_DUMMY_MAIN() { return 1; }
12745 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12752 rm -f conftest.$ac_objext
12753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12754 (eval $ac_compile) 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 ac_lo=$ac_mid; break
12766 echo "$as_me: failed program was:" >&5
12767 cat conftest.$ac_ext >&5
12768 ac_hi=`expr '(' $ac_mid ')' - 1`
12769 if test $ac_mid -le $ac_hi; then
12773 ac_mid=`expr 2 '*' $ac_mid`
12775 rm -f conftest.$ac_objext conftest.$ac_ext
12778 echo "$as_me: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12782 rm -f conftest.$ac_objext conftest.$ac_ext
12784 rm -f conftest.$ac_objext conftest.$ac_ext
12785 # Binary search between lo and hi bounds.
12786 while test "x$ac_lo" != "x$ac_hi"; do
12787 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12788 cat >conftest.$ac_ext <<_ACEOF
12789 #line $LINENO "configure"
12790 #include "confdefs.h"
12791 $ac_includes_default
12792 #ifdef F77_DUMMY_MAIN
12793 # ifdef __cplusplus
12796 int F77_DUMMY_MAIN() { return 1; }
12801 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12808 rm -f conftest.$ac_objext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12822 echo "$as_me: failed program was:" >&5
12823 cat conftest.$ac_ext >&5
12824 ac_lo=`expr '(' $ac_mid ')' + 1`
12826 rm -f conftest.$ac_objext conftest.$ac_ext
12829 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12830 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12831 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12832 { (exit 1); exit 1; }; } ;;
12835 if test "$cross_compiling" = yes; then
12836 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12837 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12838 { (exit 1); exit 1; }; }
12840 cat >conftest.$ac_ext <<_ACEOF
12841 #line $LINENO "configure"
12842 #include "confdefs.h"
12843 $ac_includes_default
12844 long longval () { return (long) (sizeof (unsigned long)); }
12845 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12847 #include <stdlib.h>
12848 #ifdef F77_DUMMY_MAIN
12849 # ifdef __cplusplus
12852 int F77_DUMMY_MAIN() { return 1; }
12858 FILE *f = fopen ("conftest.val", "w");
12861 if (((long) (sizeof (unsigned long))) < 0)
12863 long i = longval ();
12864 if (i != ((long) (sizeof (unsigned long))))
12866 fprintf (f, "%ld\n", i);
12870 unsigned long i = ulongval ();
12871 if (i != ((long) (sizeof (unsigned long))))
12873 fprintf (f, "%lu\n", i);
12875 exit (ferror (f) || fclose (f) != 0);
12881 rm -f conftest$ac_exeext
12882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12883 (eval $ac_link) 2>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888 (eval $ac_try) 2>&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); }; }; then
12892 ac_cv_sizeof_unsigned_long=`cat conftest.val`
12894 echo "$as_me: program exited with status $ac_status" >&5
12895 echo "$as_me: failed program was:" >&5
12896 cat conftest.$ac_ext >&5
12897 ( exit $ac_status )
12898 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12899 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12900 { (exit 1); exit 1; }; }
12902 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12907 ac_cv_sizeof_unsigned_long=0
12910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12911 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12912 cat >>confdefs.h <<_ACEOF
12913 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12918 cat >>confdefs.h <<_ACEOF
12919 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12923 # Determine memory alignment requirements for the basic C data types.
12925 echo "$as_me:$LINENO: checking for short" >&5
12926 echo $ECHO_N "checking for short... $ECHO_C" >&6
12927 if test "${ac_cv_type_short+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 cat >conftest.$ac_ext <<_ACEOF
12931 #line $LINENO "configure"
12932 #include "confdefs.h"
12933 $ac_includes_default
12934 #ifdef F77_DUMMY_MAIN
12935 # ifdef __cplusplus
12938 int F77_DUMMY_MAIN() { return 1; }
12945 if (sizeof (short))
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -s conftest.$ac_objext'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 ac_cv_type_short=yes
12965 echo "$as_me: failed program was:" >&5
12966 cat conftest.$ac_ext >&5
12967 ac_cv_type_short=no
12969 rm -f conftest.$ac_objext conftest.$ac_ext
12971 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12972 echo "${ECHO_T}$ac_cv_type_short" >&6
12974 echo "$as_me:$LINENO: checking alignment of short" >&5
12975 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12976 if test "${pgac_cv_alignof_short+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 if test "$ac_cv_type_short" = yes; then
12980 if test "$cross_compiling" = yes; then
12981 # Depending upon the size, compute the lo and hi bounds.
12982 cat >conftest.$ac_ext <<_ACEOF
12983 #line $LINENO "configure"
12984 #include "confdefs.h"
12985 $ac_includes_default
12986 struct { char filler; short field; } pgac_struct;
12987 #ifdef F77_DUMMY_MAIN
12988 # ifdef __cplusplus
12991 int F77_DUMMY_MAIN() { return 1; }
12996 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13003 rm -f conftest.$ac_objext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005 (eval $ac_compile) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try='test -s conftest.$ac_objext'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13017 cat >conftest.$ac_ext <<_ACEOF
13018 #line $LINENO "configure"
13019 #include "confdefs.h"
13020 $ac_includes_default
13021 struct { char filler; short field; } pgac_struct;
13022 #ifdef F77_DUMMY_MAIN
13023 # ifdef __cplusplus
13026 int F77_DUMMY_MAIN() { return 1; }
13031 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13038 rm -f conftest.$ac_objext
13039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13040 (eval $ac_compile) 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } &&
13044 { ac_try='test -s conftest.$ac_objext'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; }; then
13050 ac_hi=$ac_mid; break
13052 echo "$as_me: failed program was:" >&5
13053 cat conftest.$ac_ext >&5
13054 ac_lo=`expr $ac_mid + 1`
13055 if test $ac_lo -le $ac_mid; then
13059 ac_mid=`expr 2 '*' $ac_mid + 1`
13061 rm -f conftest.$ac_objext conftest.$ac_ext
13064 echo "$as_me: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13066 cat >conftest.$ac_ext <<_ACEOF
13067 #line $LINENO "configure"
13068 #include "confdefs.h"
13069 $ac_includes_default
13070 struct { char filler; short field; } pgac_struct;
13071 #ifdef F77_DUMMY_MAIN
13072 # ifdef __cplusplus
13075 int F77_DUMMY_MAIN() { return 1; }
13080 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13087 rm -f conftest.$ac_objext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13089 (eval $ac_compile) 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -s conftest.$ac_objext'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13101 cat >conftest.$ac_ext <<_ACEOF
13102 #line $LINENO "configure"
13103 #include "confdefs.h"
13104 $ac_includes_default
13105 struct { char filler; short field; } pgac_struct;
13106 #ifdef F77_DUMMY_MAIN
13107 # ifdef __cplusplus
13110 int F77_DUMMY_MAIN() { return 1; }
13115 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13122 rm -f conftest.$ac_objext
13123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124 (eval $ac_compile) 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try='test -s conftest.$ac_objext'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13134 ac_lo=$ac_mid; break
13136 echo "$as_me: failed program was:" >&5
13137 cat conftest.$ac_ext >&5
13138 ac_hi=`expr '(' $ac_mid ')' - 1`
13139 if test $ac_mid -le $ac_hi; then
13143 ac_mid=`expr 2 '*' $ac_mid`
13145 rm -f conftest.$ac_objext conftest.$ac_ext
13148 echo "$as_me: failed program was:" >&5
13149 cat conftest.$ac_ext >&5
13152 rm -f conftest.$ac_objext conftest.$ac_ext
13154 rm -f conftest.$ac_objext conftest.$ac_ext
13155 # Binary search between lo and hi bounds.
13156 while test "x$ac_lo" != "x$ac_hi"; do
13157 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13158 cat >conftest.$ac_ext <<_ACEOF
13159 #line $LINENO "configure"
13160 #include "confdefs.h"
13161 $ac_includes_default
13162 struct { char filler; short field; } pgac_struct;
13163 #ifdef F77_DUMMY_MAIN
13164 # ifdef __cplusplus
13167 int F77_DUMMY_MAIN() { return 1; }
13172 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13179 rm -f conftest.$ac_objext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } &&
13185 { ac_try='test -s conftest.$ac_objext'
13186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13193 echo "$as_me: failed program was:" >&5
13194 cat conftest.$ac_ext >&5
13195 ac_lo=`expr '(' $ac_mid ')' + 1`
13197 rm -f conftest.$ac_objext conftest.$ac_ext
13200 ?*) pgac_cv_alignof_short=$ac_lo;;
13201 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13202 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13203 { (exit 1); exit 1; }; } ;;
13206 if test "$cross_compiling" = yes; then
13207 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13208 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13209 { (exit 1); exit 1; }; }
13211 cat >conftest.$ac_ext <<_ACEOF
13212 #line $LINENO "configure"
13213 #include "confdefs.h"
13214 $ac_includes_default
13215 struct { char filler; short field; } pgac_struct;
13216 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13217 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13219 #include <stdlib.h>
13220 #ifdef F77_DUMMY_MAIN
13221 # ifdef __cplusplus
13224 int F77_DUMMY_MAIN() { return 1; }
13230 FILE *f = fopen ("conftest.val", "w");
13233 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13235 long i = longval ();
13236 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13238 fprintf (f, "%ld\n", i);
13242 unsigned long i = ulongval ();
13243 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13245 fprintf (f, "%lu\n", i);
13247 exit (ferror (f) || fclose (f) != 0);
13253 rm -f conftest$ac_exeext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13255 (eval $ac_link) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13264 pgac_cv_alignof_short=`cat conftest.val`
13266 echo "$as_me: program exited with status $ac_status" >&5
13267 echo "$as_me: failed program was:" >&5
13268 cat conftest.$ac_ext >&5
13269 ( exit $ac_status )
13270 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13271 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13272 { (exit 1); exit 1; }; }
13274 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13279 pgac_cv_alignof_short=0
13282 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13283 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13284 cat >>confdefs.h <<_ACEOF
13285 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13289 echo "$as_me:$LINENO: checking for int" >&5
13290 echo $ECHO_N "checking for int... $ECHO_C" >&6
13291 if test "${ac_cv_type_int+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13294 cat >conftest.$ac_ext <<_ACEOF
13295 #line $LINENO "configure"
13296 #include "confdefs.h"
13297 $ac_includes_default
13298 #ifdef F77_DUMMY_MAIN
13299 # ifdef __cplusplus
13302 int F77_DUMMY_MAIN() { return 1; }
13315 rm -f conftest.$ac_objext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13317 (eval $ac_compile) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try='test -s conftest.$ac_objext'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13329 echo "$as_me: failed program was:" >&5
13330 cat conftest.$ac_ext >&5
13333 rm -f conftest.$ac_objext conftest.$ac_ext
13335 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13336 echo "${ECHO_T}$ac_cv_type_int" >&6
13338 echo "$as_me:$LINENO: checking alignment of int" >&5
13339 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13340 if test "${pgac_cv_alignof_int+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 if test "$ac_cv_type_int" = yes; then
13344 if test "$cross_compiling" = yes; then
13345 # Depending upon the size, compute the lo and hi bounds.
13346 cat >conftest.$ac_ext <<_ACEOF
13347 #line $LINENO "configure"
13348 #include "confdefs.h"
13349 $ac_includes_default
13350 struct { char filler; int field; } pgac_struct;
13351 #ifdef F77_DUMMY_MAIN
13352 # ifdef __cplusplus
13355 int F77_DUMMY_MAIN() { return 1; }
13360 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13367 rm -f conftest.$ac_objext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13369 (eval $ac_compile) 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } &&
13373 { ac_try='test -s conftest.$ac_objext'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; }; then
13381 cat >conftest.$ac_ext <<_ACEOF
13382 #line $LINENO "configure"
13383 #include "confdefs.h"
13384 $ac_includes_default
13385 struct { char filler; int field; } pgac_struct;
13386 #ifdef F77_DUMMY_MAIN
13387 # ifdef __cplusplus
13390 int F77_DUMMY_MAIN() { return 1; }
13395 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13402 rm -f conftest.$ac_objext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404 (eval $ac_compile) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -s conftest.$ac_objext'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }; then
13414 ac_hi=$ac_mid; break
13416 echo "$as_me: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13418 ac_lo=`expr $ac_mid + 1`
13419 if test $ac_lo -le $ac_mid; then
13423 ac_mid=`expr 2 '*' $ac_mid + 1`
13425 rm -f conftest.$ac_objext conftest.$ac_ext
13428 echo "$as_me: failed program was:" >&5
13429 cat conftest.$ac_ext >&5
13430 cat >conftest.$ac_ext <<_ACEOF
13431 #line $LINENO "configure"
13432 #include "confdefs.h"
13433 $ac_includes_default
13434 struct { char filler; int field; } pgac_struct;
13435 #ifdef F77_DUMMY_MAIN
13436 # ifdef __cplusplus
13439 int F77_DUMMY_MAIN() { return 1; }
13444 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13451 rm -f conftest.$ac_objext
13452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13453 (eval $ac_compile) 2>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } &&
13457 { ac_try='test -s conftest.$ac_objext'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13465 cat >conftest.$ac_ext <<_ACEOF
13466 #line $LINENO "configure"
13467 #include "confdefs.h"
13468 $ac_includes_default
13469 struct { char filler; int field; } pgac_struct;
13470 #ifdef F77_DUMMY_MAIN
13471 # ifdef __cplusplus
13474 int F77_DUMMY_MAIN() { return 1; }
13479 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13486 rm -f conftest.$ac_objext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488 (eval $ac_compile) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_lo=$ac_mid; break
13500 echo "$as_me: failed program was:" >&5
13501 cat conftest.$ac_ext >&5
13502 ac_hi=`expr '(' $ac_mid ')' - 1`
13503 if test $ac_mid -le $ac_hi; then
13507 ac_mid=`expr 2 '*' $ac_mid`
13509 rm -f conftest.$ac_objext conftest.$ac_ext
13512 echo "$as_me: failed program was:" >&5
13513 cat conftest.$ac_ext >&5
13516 rm -f conftest.$ac_objext conftest.$ac_ext
13518 rm -f conftest.$ac_objext conftest.$ac_ext
13519 # Binary search between lo and hi bounds.
13520 while test "x$ac_lo" != "x$ac_hi"; do
13521 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13522 cat >conftest.$ac_ext <<_ACEOF
13523 #line $LINENO "configure"
13524 #include "confdefs.h"
13525 $ac_includes_default
13526 struct { char filler; int field; } pgac_struct;
13527 #ifdef F77_DUMMY_MAIN
13528 # ifdef __cplusplus
13531 int F77_DUMMY_MAIN() { return 1; }
13536 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13543 rm -f conftest.$ac_objext
13544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13545 (eval $ac_compile) 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -s conftest.$ac_objext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13557 echo "$as_me: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13559 ac_lo=`expr '(' $ac_mid ')' + 1`
13561 rm -f conftest.$ac_objext conftest.$ac_ext
13564 ?*) pgac_cv_alignof_int=$ac_lo;;
13565 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13566 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13567 { (exit 1); exit 1; }; } ;;
13570 if test "$cross_compiling" = yes; then
13571 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13572 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13573 { (exit 1); exit 1; }; }
13575 cat >conftest.$ac_ext <<_ACEOF
13576 #line $LINENO "configure"
13577 #include "confdefs.h"
13578 $ac_includes_default
13579 struct { char filler; int field; } pgac_struct;
13580 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13581 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13583 #include <stdlib.h>
13584 #ifdef F77_DUMMY_MAIN
13585 # ifdef __cplusplus
13588 int F77_DUMMY_MAIN() { return 1; }
13594 FILE *f = fopen ("conftest.val", "w");
13597 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13599 long i = longval ();
13600 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13602 fprintf (f, "%ld\n", i);
13606 unsigned long i = ulongval ();
13607 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13609 fprintf (f, "%lu\n", i);
13611 exit (ferror (f) || fclose (f) != 0);
13617 rm -f conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619 (eval $ac_link) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13628 pgac_cv_alignof_int=`cat conftest.val`
13630 echo "$as_me: program exited with status $ac_status" >&5
13631 echo "$as_me: failed program was:" >&5
13632 cat conftest.$ac_ext >&5
13633 ( exit $ac_status )
13634 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13635 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13636 { (exit 1); exit 1; }; }
13638 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13643 pgac_cv_alignof_int=0
13646 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13647 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13648 cat >>confdefs.h <<_ACEOF
13649 #define ALIGNOF_INT $pgac_cv_alignof_int
13653 echo "$as_me:$LINENO: checking for long" >&5
13654 echo $ECHO_N "checking for long... $ECHO_C" >&6
13655 if test "${ac_cv_type_long+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 cat >conftest.$ac_ext <<_ACEOF
13659 #line $LINENO "configure"
13660 #include "confdefs.h"
13661 $ac_includes_default
13662 #ifdef F77_DUMMY_MAIN
13663 # ifdef __cplusplus
13666 int F77_DUMMY_MAIN() { return 1; }
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -s conftest.$ac_objext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_cv_type_long=yes
13693 echo "$as_me: failed program was:" >&5
13694 cat conftest.$ac_ext >&5
13697 rm -f conftest.$ac_objext conftest.$ac_ext
13699 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13700 echo "${ECHO_T}$ac_cv_type_long" >&6
13702 echo "$as_me:$LINENO: checking alignment of long" >&5
13703 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13704 if test "${pgac_cv_alignof_long+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 if test "$ac_cv_type_long" = yes; then
13708 if test "$cross_compiling" = yes; then
13709 # Depending upon the size, compute the lo and hi bounds.
13710 cat >conftest.$ac_ext <<_ACEOF
13711 #line $LINENO "configure"
13712 #include "confdefs.h"
13713 $ac_includes_default
13714 struct { char filler; long field; } pgac_struct;
13715 #ifdef F77_DUMMY_MAIN
13716 # ifdef __cplusplus
13719 int F77_DUMMY_MAIN() { return 1; }
13724 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -s conftest.$ac_objext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13745 cat >conftest.$ac_ext <<_ACEOF
13746 #line $LINENO "configure"
13747 #include "confdefs.h"
13748 $ac_includes_default
13749 struct { char filler; long field; } pgac_struct;
13750 #ifdef F77_DUMMY_MAIN
13751 # ifdef __cplusplus
13754 int F77_DUMMY_MAIN() { return 1; }
13759 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13766 rm -f conftest.$ac_objext
13767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768 (eval $ac_compile) 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -s conftest.$ac_objext'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; }; then
13778 ac_hi=$ac_mid; break
13780 echo "$as_me: failed program was:" >&5
13781 cat conftest.$ac_ext >&5
13782 ac_lo=`expr $ac_mid + 1`
13783 if test $ac_lo -le $ac_mid; then
13787 ac_mid=`expr 2 '*' $ac_mid + 1`
13789 rm -f conftest.$ac_objext conftest.$ac_ext
13792 echo "$as_me: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13794 cat >conftest.$ac_ext <<_ACEOF
13795 #line $LINENO "configure"
13796 #include "confdefs.h"
13797 $ac_includes_default
13798 struct { char filler; long field; } pgac_struct;
13799 #ifdef F77_DUMMY_MAIN
13800 # ifdef __cplusplus
13803 int F77_DUMMY_MAIN() { return 1; }
13808 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817 (eval $ac_compile) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -s conftest.$ac_objext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13829 cat >conftest.$ac_ext <<_ACEOF
13830 #line $LINENO "configure"
13831 #include "confdefs.h"
13832 $ac_includes_default
13833 struct { char filler; long field; } pgac_struct;
13834 #ifdef F77_DUMMY_MAIN
13835 # ifdef __cplusplus
13838 int F77_DUMMY_MAIN() { return 1; }
13843 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13850 rm -f conftest.$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852 (eval $ac_compile) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } &&
13856 { ac_try='test -s conftest.$ac_objext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 ac_lo=$ac_mid; break
13864 echo "$as_me: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13866 ac_hi=`expr '(' $ac_mid ')' - 1`
13867 if test $ac_mid -le $ac_hi; then
13871 ac_mid=`expr 2 '*' $ac_mid`
13873 rm -f conftest.$ac_objext conftest.$ac_ext
13876 echo "$as_me: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13880 rm -f conftest.$ac_objext conftest.$ac_ext
13882 rm -f conftest.$ac_objext conftest.$ac_ext
13883 # Binary search between lo and hi bounds.
13884 while test "x$ac_lo" != "x$ac_hi"; do
13885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13886 cat >conftest.$ac_ext <<_ACEOF
13887 #line $LINENO "configure"
13888 #include "confdefs.h"
13889 $ac_includes_default
13890 struct { char filler; long field; } pgac_struct;
13891 #ifdef F77_DUMMY_MAIN
13892 # ifdef __cplusplus
13895 int F77_DUMMY_MAIN() { return 1; }
13900 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13907 rm -f conftest.$ac_objext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13909 (eval $ac_compile) 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
13913 { ac_try='test -s conftest.$ac_objext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13921 echo "$as_me: failed program was:" >&5
13922 cat conftest.$ac_ext >&5
13923 ac_lo=`expr '(' $ac_mid ')' + 1`
13925 rm -f conftest.$ac_objext conftest.$ac_ext
13928 ?*) pgac_cv_alignof_long=$ac_lo;;
13929 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13930 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13931 { (exit 1); exit 1; }; } ;;
13934 if test "$cross_compiling" = yes; then
13935 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13936 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13937 { (exit 1); exit 1; }; }
13939 cat >conftest.$ac_ext <<_ACEOF
13940 #line $LINENO "configure"
13941 #include "confdefs.h"
13942 $ac_includes_default
13943 struct { char filler; long field; } pgac_struct;
13944 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13945 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13947 #include <stdlib.h>
13948 #ifdef F77_DUMMY_MAIN
13949 # ifdef __cplusplus
13952 int F77_DUMMY_MAIN() { return 1; }
13958 FILE *f = fopen ("conftest.val", "w");
13961 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13963 long i = longval ();
13964 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13966 fprintf (f, "%ld\n", i);
13970 unsigned long i = ulongval ();
13971 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13973 fprintf (f, "%lu\n", i);
13975 exit (ferror (f) || fclose (f) != 0);
13981 rm -f conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }; then
13992 pgac_cv_alignof_long=`cat conftest.val`
13994 echo "$as_me: program exited with status $ac_status" >&5
13995 echo "$as_me: failed program was:" >&5
13996 cat conftest.$ac_ext >&5
13997 ( exit $ac_status )
13998 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13999 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14000 { (exit 1); exit 1; }; }
14002 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14007 pgac_cv_alignof_long=0
14010 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14011 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14012 cat >>confdefs.h <<_ACEOF
14013 #define ALIGNOF_LONG $pgac_cv_alignof_long
14017 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14018 echo "$as_me:$LINENO: checking for long long int" >&5
14019 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14020 if test "${ac_cv_type_long_long_int+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 cat >conftest.$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 #include "confdefs.h"
14026 $ac_includes_default
14027 #ifdef F77_DUMMY_MAIN
14028 # ifdef __cplusplus
14031 int F77_DUMMY_MAIN() { return 1; }
14036 if ((long long int *) 0)
14038 if (sizeof (long long int))
14044 rm -f conftest.$ac_objext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14046 (eval $ac_compile) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } &&
14050 { ac_try='test -s conftest.$ac_objext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_cv_type_long_long_int=yes
14058 echo "$as_me: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14060 ac_cv_type_long_long_int=no
14062 rm -f conftest.$ac_objext conftest.$ac_ext
14064 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14065 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14067 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14068 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14069 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 if test "$ac_cv_type_long_long_int" = yes; then
14073 if test "$cross_compiling" = yes; then
14074 # Depending upon the size, compute the lo and hi bounds.
14075 cat >conftest.$ac_ext <<_ACEOF
14076 #line $LINENO "configure"
14077 #include "confdefs.h"
14078 $ac_includes_default
14079 struct { char filler; long long int field; } pgac_struct;
14080 #ifdef F77_DUMMY_MAIN
14081 # ifdef __cplusplus
14084 int F77_DUMMY_MAIN() { return 1; }
14089 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14096 rm -f conftest.$ac_objext
14097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14098 (eval $ac_compile) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } &&
14102 { ac_try='test -s conftest.$ac_objext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14110 cat >conftest.$ac_ext <<_ACEOF
14111 #line $LINENO "configure"
14112 #include "confdefs.h"
14113 $ac_includes_default
14114 struct { char filler; long long int field; } pgac_struct;
14115 #ifdef F77_DUMMY_MAIN
14116 # ifdef __cplusplus
14119 int F77_DUMMY_MAIN() { return 1; }
14124 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14131 rm -f conftest.$ac_objext
14132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14133 (eval $ac_compile) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -s conftest.$ac_objext'
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; }; then
14143 ac_hi=$ac_mid; break
14145 echo "$as_me: failed program was:" >&5
14146 cat conftest.$ac_ext >&5
14147 ac_lo=`expr $ac_mid + 1`
14148 if test $ac_lo -le $ac_mid; then
14152 ac_mid=`expr 2 '*' $ac_mid + 1`
14154 rm -f conftest.$ac_objext conftest.$ac_ext
14157 echo "$as_me: failed program was:" >&5
14158 cat conftest.$ac_ext >&5
14159 cat >conftest.$ac_ext <<_ACEOF
14160 #line $LINENO "configure"
14161 #include "confdefs.h"
14162 $ac_includes_default
14163 struct { char filler; long long int field; } pgac_struct;
14164 #ifdef F77_DUMMY_MAIN
14165 # ifdef __cplusplus
14168 int F77_DUMMY_MAIN() { return 1; }
14173 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14180 rm -f conftest.$ac_objext
14181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14182 (eval $ac_compile) 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } &&
14186 { ac_try='test -s conftest.$ac_objext'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14194 cat >conftest.$ac_ext <<_ACEOF
14195 #line $LINENO "configure"
14196 #include "confdefs.h"
14197 $ac_includes_default
14198 struct { char filler; long long int field; } pgac_struct;
14199 #ifdef F77_DUMMY_MAIN
14200 # ifdef __cplusplus
14203 int F77_DUMMY_MAIN() { return 1; }
14208 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14215 rm -f conftest.$ac_objext
14216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14217 (eval $ac_compile) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_lo=$ac_mid; break
14229 echo "$as_me: failed program was:" >&5
14230 cat conftest.$ac_ext >&5
14231 ac_hi=`expr '(' $ac_mid ')' - 1`
14232 if test $ac_mid -le $ac_hi; then
14236 ac_mid=`expr 2 '*' $ac_mid`
14238 rm -f conftest.$ac_objext conftest.$ac_ext
14241 echo "$as_me: failed program was:" >&5
14242 cat conftest.$ac_ext >&5
14245 rm -f conftest.$ac_objext conftest.$ac_ext
14247 rm -f conftest.$ac_objext conftest.$ac_ext
14248 # Binary search between lo and hi bounds.
14249 while test "x$ac_lo" != "x$ac_hi"; do
14250 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14251 cat >conftest.$ac_ext <<_ACEOF
14252 #line $LINENO "configure"
14253 #include "confdefs.h"
14254 $ac_includes_default
14255 struct { char filler; long long int field; } pgac_struct;
14256 #ifdef F77_DUMMY_MAIN
14257 # ifdef __cplusplus
14260 int F77_DUMMY_MAIN() { return 1; }
14265 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14272 rm -f conftest.$ac_objext
14273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274 (eval $ac_compile) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try='test -s conftest.$ac_objext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14286 echo "$as_me: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14288 ac_lo=`expr '(' $ac_mid ')' + 1`
14290 rm -f conftest.$ac_objext conftest.$ac_ext
14293 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14294 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14295 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14296 { (exit 1); exit 1; }; } ;;
14299 if test "$cross_compiling" = yes; then
14300 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14301 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14302 { (exit 1); exit 1; }; }
14304 cat >conftest.$ac_ext <<_ACEOF
14305 #line $LINENO "configure"
14306 #include "confdefs.h"
14307 $ac_includes_default
14308 struct { char filler; long long int field; } pgac_struct;
14309 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14310 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14312 #include <stdlib.h>
14313 #ifdef F77_DUMMY_MAIN
14314 # ifdef __cplusplus
14317 int F77_DUMMY_MAIN() { return 1; }
14323 FILE *f = fopen ("conftest.val", "w");
14326 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14328 long i = longval ();
14329 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14331 fprintf (f, "%ld\n", i);
14335 unsigned long i = ulongval ();
14336 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14338 fprintf (f, "%lu\n", i);
14340 exit (ferror (f) || fclose (f) != 0);
14346 rm -f conftest$ac_exeext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14348 (eval $ac_link) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 pgac_cv_alignof_long_long_int=`cat conftest.val`
14359 echo "$as_me: program exited with status $ac_status" >&5
14360 echo "$as_me: failed program was:" >&5
14361 cat conftest.$ac_ext >&5
14362 ( exit $ac_status )
14363 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14364 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14365 { (exit 1); exit 1; }; }
14367 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14372 pgac_cv_alignof_long_long_int=0
14375 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14376 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14377 cat >>confdefs.h <<_ACEOF
14378 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14383 echo "$as_me:$LINENO: checking for double" >&5
14384 echo $ECHO_N "checking for double... $ECHO_C" >&6
14385 if test "${ac_cv_type_double+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 cat >conftest.$ac_ext <<_ACEOF
14389 #line $LINENO "configure"
14390 #include "confdefs.h"
14391 $ac_includes_default
14392 #ifdef F77_DUMMY_MAIN
14393 # ifdef __cplusplus
14396 int F77_DUMMY_MAIN() { return 1; }
14403 if (sizeof (double))
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try='test -s conftest.$ac_objext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 ac_cv_type_double=yes
14423 echo "$as_me: failed program was:" >&5
14424 cat conftest.$ac_ext >&5
14425 ac_cv_type_double=no
14427 rm -f conftest.$ac_objext conftest.$ac_ext
14429 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14430 echo "${ECHO_T}$ac_cv_type_double" >&6
14432 echo "$as_me:$LINENO: checking alignment of double" >&5
14433 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14434 if test "${pgac_cv_alignof_double+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 if test "$ac_cv_type_double" = yes; then
14438 if test "$cross_compiling" = yes; then
14439 # Depending upon the size, compute the lo and hi bounds.
14440 cat >conftest.$ac_ext <<_ACEOF
14441 #line $LINENO "configure"
14442 #include "confdefs.h"
14443 $ac_includes_default
14444 struct { char filler; double field; } pgac_struct;
14445 #ifdef F77_DUMMY_MAIN
14446 # ifdef __cplusplus
14449 int F77_DUMMY_MAIN() { return 1; }
14454 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14461 rm -f conftest.$ac_objext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14463 (eval $ac_compile) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try='test -s conftest.$ac_objext'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14475 cat >conftest.$ac_ext <<_ACEOF
14476 #line $LINENO "configure"
14477 #include "confdefs.h"
14478 $ac_includes_default
14479 struct { char filler; double field; } pgac_struct;
14480 #ifdef F77_DUMMY_MAIN
14481 # ifdef __cplusplus
14484 int F77_DUMMY_MAIN() { return 1; }
14489 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14496 rm -f conftest.$ac_objext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14498 (eval $ac_compile) 2>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } &&
14502 { ac_try='test -s conftest.$ac_objext'
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; }; then
14508 ac_hi=$ac_mid; break
14510 echo "$as_me: failed program was:" >&5
14511 cat conftest.$ac_ext >&5
14512 ac_lo=`expr $ac_mid + 1`
14513 if test $ac_lo -le $ac_mid; then
14517 ac_mid=`expr 2 '*' $ac_mid + 1`
14519 rm -f conftest.$ac_objext conftest.$ac_ext
14522 echo "$as_me: failed program was:" >&5
14523 cat conftest.$ac_ext >&5
14524 cat >conftest.$ac_ext <<_ACEOF
14525 #line $LINENO "configure"
14526 #include "confdefs.h"
14527 $ac_includes_default
14528 struct { char filler; double field; } pgac_struct;
14529 #ifdef F77_DUMMY_MAIN
14530 # ifdef __cplusplus
14533 int F77_DUMMY_MAIN() { return 1; }
14538 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14545 rm -f conftest.$ac_objext
14546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14547 (eval $ac_compile) 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } &&
14551 { ac_try='test -s conftest.$ac_objext'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14559 cat >conftest.$ac_ext <<_ACEOF
14560 #line $LINENO "configure"
14561 #include "confdefs.h"
14562 $ac_includes_default
14563 struct { char filler; double field; } pgac_struct;
14564 #ifdef F77_DUMMY_MAIN
14565 # ifdef __cplusplus
14568 int F77_DUMMY_MAIN() { return 1; }
14573 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14580 rm -f conftest.$ac_objext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582 (eval $ac_compile) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
14586 { ac_try='test -s conftest.$ac_objext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 ac_lo=$ac_mid; break
14594 echo "$as_me: failed program was:" >&5
14595 cat conftest.$ac_ext >&5
14596 ac_hi=`expr '(' $ac_mid ')' - 1`
14597 if test $ac_mid -le $ac_hi; then
14601 ac_mid=`expr 2 '*' $ac_mid`
14603 rm -f conftest.$ac_objext conftest.$ac_ext
14606 echo "$as_me: failed program was:" >&5
14607 cat conftest.$ac_ext >&5
14610 rm -f conftest.$ac_objext conftest.$ac_ext
14612 rm -f conftest.$ac_objext conftest.$ac_ext
14613 # Binary search between lo and hi bounds.
14614 while test "x$ac_lo" != "x$ac_hi"; do
14615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14616 cat >conftest.$ac_ext <<_ACEOF
14617 #line $LINENO "configure"
14618 #include "confdefs.h"
14619 $ac_includes_default
14620 struct { char filler; double field; } pgac_struct;
14621 #ifdef F77_DUMMY_MAIN
14622 # ifdef __cplusplus
14625 int F77_DUMMY_MAIN() { return 1; }
14630 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14637 rm -f conftest.$ac_objext
14638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14639 (eval $ac_compile) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } &&
14643 { ac_try='test -s conftest.$ac_objext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14651 echo "$as_me: failed program was:" >&5
14652 cat conftest.$ac_ext >&5
14653 ac_lo=`expr '(' $ac_mid ')' + 1`
14655 rm -f conftest.$ac_objext conftest.$ac_ext
14658 ?*) pgac_cv_alignof_double=$ac_lo;;
14659 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14660 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14661 { (exit 1); exit 1; }; } ;;
14664 if test "$cross_compiling" = yes; then
14665 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14666 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14667 { (exit 1); exit 1; }; }
14669 cat >conftest.$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14671 #include "confdefs.h"
14672 $ac_includes_default
14673 struct { char filler; double field; } pgac_struct;
14674 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14675 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14677 #include <stdlib.h>
14678 #ifdef F77_DUMMY_MAIN
14679 # ifdef __cplusplus
14682 int F77_DUMMY_MAIN() { return 1; }
14688 FILE *f = fopen ("conftest.val", "w");
14691 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14693 long i = longval ();
14694 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14696 fprintf (f, "%ld\n", i);
14700 unsigned long i = ulongval ();
14701 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14703 fprintf (f, "%lu\n", i);
14705 exit (ferror (f) || fclose (f) != 0);
14711 rm -f conftest$ac_exeext
14712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14713 (eval $ac_link) 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 pgac_cv_alignof_double=`cat conftest.val`
14724 echo "$as_me: program exited with status $ac_status" >&5
14725 echo "$as_me: failed program was:" >&5
14726 cat conftest.$ac_ext >&5
14727 ( exit $ac_status )
14728 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14729 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14730 { (exit 1); exit 1; }; }
14732 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14737 pgac_cv_alignof_double=0
14740 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14741 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14742 cat >>confdefs.h <<_ACEOF
14743 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14748 # Compute maximum alignment of any basic type.
14749 # We assume long's alignment is at least as strong as char, short, or int;
14750 # but we must check long long (if it exists) and double.
14752 MAX_ALIGNOF=$pgac_cv_alignof_long
14753 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14754 MAX_ALIGNOF=$pgac_cv_alignof_double
14756 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14757 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14760 cat >>confdefs.h <<_ACEOF
14761 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14766 # Some platforms predefine the types int8, int16, etc. Only check
14767 # a (hopefully) representative subset.
14768 echo "$as_me:$LINENO: checking for int8" >&5
14769 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14770 if test "${ac_cv_type_int8+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 cat >conftest.$ac_ext <<_ACEOF
14774 #line $LINENO "configure"
14775 #include "confdefs.h"
14777 #ifdef HAVE_SUPPORTDEFS_H
14778 #include <SupportDefs.h>
14781 #ifdef F77_DUMMY_MAIN
14782 # ifdef __cplusplus
14785 int F77_DUMMY_MAIN() { return 1; }
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_cv_type_int8=yes
14812 echo "$as_me: failed program was:" >&5
14813 cat conftest.$ac_ext >&5
14816 rm -f conftest.$ac_objext conftest.$ac_ext
14818 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14819 echo "${ECHO_T}$ac_cv_type_int8" >&6
14820 if test $ac_cv_type_int8 = yes; then
14822 cat >>confdefs.h <<_ACEOF
14823 #define HAVE_INT8 1
14828 echo "$as_me:$LINENO: checking for uint8" >&5
14829 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14830 if test "${ac_cv_type_uint8+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 cat >conftest.$ac_ext <<_ACEOF
14834 #line $LINENO "configure"
14835 #include "confdefs.h"
14837 #ifdef HAVE_SUPPORTDEFS_H
14838 #include <SupportDefs.h>
14841 #ifdef F77_DUMMY_MAIN
14842 # ifdef __cplusplus
14845 int F77_DUMMY_MAIN() { return 1; }
14852 if (sizeof (uint8))
14858 rm -f conftest.$ac_objext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14860 (eval $ac_compile) 2>&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -s conftest.$ac_objext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 ac_cv_type_uint8=yes
14872 echo "$as_me: failed program was:" >&5
14873 cat conftest.$ac_ext >&5
14874 ac_cv_type_uint8=no
14876 rm -f conftest.$ac_objext conftest.$ac_ext
14878 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14879 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14880 if test $ac_cv_type_uint8 = yes; then
14882 cat >>confdefs.h <<_ACEOF
14883 #define HAVE_UINT8 1
14888 echo "$as_me:$LINENO: checking for int64" >&5
14889 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14890 if test "${ac_cv_type_int64+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14893 cat >conftest.$ac_ext <<_ACEOF
14894 #line $LINENO "configure"
14895 #include "confdefs.h"
14897 #ifdef HAVE_SUPPORTDEFS_H
14898 #include <SupportDefs.h>
14901 #ifdef F77_DUMMY_MAIN
14902 # ifdef __cplusplus
14905 int F77_DUMMY_MAIN() { return 1; }
14912 if (sizeof (int64))
14918 rm -f conftest.$ac_objext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14920 (eval $ac_compile) 2>&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } &&
14924 { ac_try='test -s conftest.$ac_objext'
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930 ac_cv_type_int64=yes
14932 echo "$as_me: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 ac_cv_type_int64=no
14936 rm -f conftest.$ac_objext conftest.$ac_ext
14938 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14939 echo "${ECHO_T}$ac_cv_type_int64" >&6
14940 if test $ac_cv_type_int64 = yes; then
14942 cat >>confdefs.h <<_ACEOF
14943 #define HAVE_INT64 1
14948 echo "$as_me:$LINENO: checking for uint64" >&5
14949 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14950 if test "${ac_cv_type_uint64+set}" = set; then
14951 echo $ECHO_N "(cached) $ECHO_C" >&6
14953 cat >conftest.$ac_ext <<_ACEOF
14954 #line $LINENO "configure"
14955 #include "confdefs.h"
14957 #ifdef HAVE_SUPPORTDEFS_H
14958 #include <SupportDefs.h>
14961 #ifdef F77_DUMMY_MAIN
14962 # ifdef __cplusplus
14965 int F77_DUMMY_MAIN() { return 1; }
14972 if (sizeof (uint64))
14978 rm -f conftest.$ac_objext
14979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14980 (eval $ac_compile) 2>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -s conftest.$ac_objext'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14990 ac_cv_type_uint64=yes
14992 echo "$as_me: failed program was:" >&5
14993 cat conftest.$ac_ext >&5
14994 ac_cv_type_uint64=no
14996 rm -f conftest.$ac_objext conftest.$ac_ext
14998 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14999 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15000 if test $ac_cv_type_uint64 = yes; then
15002 cat >>confdefs.h <<_ACEOF
15003 #define HAVE_UINT64 1
15010 # We also check for sig_atomic_t, which *should* be defined per ANSI
15011 # C, but is missing on some old platforms.
15012 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15013 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15014 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 cat >conftest.$ac_ext <<_ACEOF
15018 #line $LINENO "configure"
15019 #include "confdefs.h"
15020 #include <signal.h>
15022 #ifdef F77_DUMMY_MAIN
15023 # ifdef __cplusplus
15026 int F77_DUMMY_MAIN() { return 1; }
15031 if ((sig_atomic_t *) 0)
15033 if (sizeof (sig_atomic_t))
15039 rm -f conftest.$ac_objext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15041 (eval $ac_compile) 2>&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -s conftest.$ac_objext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_cv_type_sig_atomic_t=yes
15053 echo "$as_me: failed program was:" >&5
15054 cat conftest.$ac_ext >&5
15055 ac_cv_type_sig_atomic_t=no
15057 rm -f conftest.$ac_objext conftest.$ac_ext
15059 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15060 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15061 if test $ac_cv_type_sig_atomic_t = yes; then
15063 cat >>confdefs.h <<_ACEOF
15064 #define HAVE_SIG_ATOMIC_T 1
15072 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15073 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15074 if test "${pgac_cv_func_posix_signals+set}" = set; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15077 cat >conftest.$ac_ext <<_ACEOF
15078 #line $LINENO "configure"
15079 #include "confdefs.h"
15080 #include <signal.h>
15082 #ifdef F77_DUMMY_MAIN
15083 # ifdef __cplusplus
15086 int F77_DUMMY_MAIN() { return 1; }
15091 struct sigaction act, oact;
15092 sigemptyset(&act.sa_mask);
15093 act.sa_flags = SA_RESTART;
15094 sigaction(0, &act, &oact);
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101 (eval $ac_link) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } &&
15105 { ac_try='test -s conftest$ac_exeext'
15106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107 (eval $ac_try) 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15111 pgac_cv_func_posix_signals=yes
15113 echo "$as_me: failed program was:" >&5
15114 cat conftest.$ac_ext >&5
15115 pgac_cv_func_posix_signals=no
15117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15119 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15120 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15121 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15123 cat >>confdefs.h <<\_ACEOF
15124 #define HAVE_POSIX_SIGNALS
15128 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15132 # Select semaphore implementation type.
15133 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15135 cat >>confdefs.h <<\_ACEOF
15136 #define USE_NAMED_POSIX_SEMAPHORES 1
15139 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15141 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15143 cat >>confdefs.h <<\_ACEOF
15144 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15147 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15150 cat >>confdefs.h <<\_ACEOF
15151 #define USE_SYSV_SEMAPHORES 1
15154 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15159 # Select shared-memory implementation type.
15161 cat >>confdefs.h <<\_ACEOF
15162 #define USE_SYSV_SHARED_MEMORY 1
15165 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15168 if test "$enable_nls" = yes ; then
15170 echo "$as_me:$LINENO: checking for library containing gettext" >&5
15171 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15172 if test "${ac_cv_search_gettext+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 ac_func_search_save_LIBS=$LIBS
15176 ac_cv_search_gettext=no
15177 cat >conftest.$ac_ext <<_ACEOF
15178 #line $LINENO "configure"
15179 #include "confdefs.h"
15181 /* Override any gcc2 internal prototype to avoid an error. */
15185 /* We use char because int might match the return type of a gcc2
15186 builtin and then its argument prototype would still apply. */
15188 #ifdef F77_DUMMY_MAIN
15189 # ifdef __cplusplus
15192 int F77_DUMMY_MAIN() { return 1; }
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15204 (eval $ac_link) 2>&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 { ac_try='test -s conftest$ac_exeext'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15214 ac_cv_search_gettext="none required"
15216 echo "$as_me: failed program was:" >&5
15217 cat conftest.$ac_ext >&5
15219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15220 if test "$ac_cv_search_gettext" = no; then
15221 for ac_lib in intl; do
15222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15223 cat >conftest.$ac_ext <<_ACEOF
15224 #line $LINENO "configure"
15225 #include "confdefs.h"
15227 /* Override any gcc2 internal prototype to avoid an error. */
15231 /* We use char because int might match the return type of a gcc2
15232 builtin and then its argument prototype would still apply. */
15234 #ifdef F77_DUMMY_MAIN
15235 # ifdef __cplusplus
15238 int F77_DUMMY_MAIN() { return 1; }
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15250 (eval $ac_link) 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -s conftest$ac_exeext'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }; then
15260 ac_cv_search_gettext="-l$ac_lib"
15263 echo "$as_me: failed program was:" >&5
15264 cat conftest.$ac_ext >&5
15266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15269 LIBS=$ac_func_search_save_LIBS
15271 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15272 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15273 if test "$ac_cv_search_gettext" != no; then
15274 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15277 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15278 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15279 { (exit 1); exit 1; }; }
15282 if test "${ac_cv_header_libintl_h+set}" = set; then
15283 echo "$as_me:$LINENO: checking for libintl.h" >&5
15284 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15285 if test "${ac_cv_header_libintl_h+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15289 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15291 # Is the header compilable?
15292 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15293 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15294 cat >conftest.$ac_ext <<_ACEOF
15295 #line $LINENO "configure"
15296 #include "confdefs.h"
15297 $ac_includes_default
15298 #include <libintl.h>
15300 rm -f conftest.$ac_objext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302 (eval $ac_compile) 2>&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } &&
15306 { ac_try='test -s conftest.$ac_objext'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_header_compiler=yes
15314 echo "$as_me: failed program was:" >&5
15315 cat conftest.$ac_ext >&5
15316 ac_header_compiler=no
15318 rm -f conftest.$ac_objext conftest.$ac_ext
15319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15320 echo "${ECHO_T}$ac_header_compiler" >&6
15322 # Is the header present?
15323 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15324 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15325 cat >conftest.$ac_ext <<_ACEOF
15326 #line $LINENO "configure"
15327 #include "confdefs.h"
15328 #include <libintl.h>
15330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15333 egrep -v '^ *\+' conftest.er1 >conftest.err
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } >/dev/null; then
15338 if test -s conftest.err; then
15339 ac_cpp_err=$ac_c_preproc_warn_flag
15346 if test -z "$ac_cpp_err"; then
15347 ac_header_preproc=yes
15349 echo "$as_me: failed program was:" >&5
15350 cat conftest.$ac_ext >&5
15351 ac_header_preproc=no
15353 rm -f conftest.err conftest.$ac_ext
15354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15355 echo "${ECHO_T}$ac_header_preproc" >&6
15357 # So? What about this header?
15358 case $ac_header_compiler:$ac_header_preproc in
15360 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15361 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15362 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15363 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15365 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15366 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15367 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15368 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15370 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15372 echo "$as_me:$LINENO: checking for libintl.h" >&5
15373 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15374 if test "${ac_cv_header_libintl_h+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 ac_cv_header_libintl_h=$ac_header_preproc
15379 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15380 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15383 if test $ac_cv_header_libintl_h = yes; then
15386 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15387 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15388 { (exit 1); exit 1; }; }
15392 for ac_prog in msgfmt
15394 # Extract the first word of "$ac_prog", so it can be a program name with args.
15395 set dummy $ac_prog; ac_word=$2
15396 echo "$as_me:$LINENO: checking for $ac_word" >&5
15397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15398 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 if test -n "$MSGFMT"; then
15402 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15405 for as_dir in $PATH
15408 test -z "$as_dir" && as_dir=.
15409 for ac_exec_ext in '' $ac_executable_extensions; do
15410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15411 ac_cv_prog_MSGFMT="$ac_prog"
15412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15420 MSGFMT=$ac_cv_prog_MSGFMT
15421 if test -n "$MSGFMT"; then
15422 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15423 echo "${ECHO_T}$MSGFMT" >&6
15425 echo "$as_me:$LINENO: result: no" >&5
15426 echo "${ECHO_T}no" >&6
15429 test -n "$MSGFMT" && break
15432 if test -z "$MSGFMT"; then
15433 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15434 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15435 { (exit 1); exit 1; }; }
15437 for ac_prog in msgmerge
15439 # Extract the first word of "$ac_prog", so it can be a program name with args.
15440 set dummy $ac_prog; ac_word=$2
15441 echo "$as_me:$LINENO: checking for $ac_word" >&5
15442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15443 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 if test -n "$MSGMERGE"; then
15447 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15450 for as_dir in $PATH
15453 test -z "$as_dir" && as_dir=.
15454 for ac_exec_ext in '' $ac_executable_extensions; do
15455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15456 ac_cv_prog_MSGMERGE="$ac_prog"
15457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15465 MSGMERGE=$ac_cv_prog_MSGMERGE
15466 if test -n "$MSGMERGE"; then
15467 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15468 echo "${ECHO_T}$MSGMERGE" >&6
15470 echo "$as_me:$LINENO: result: no" >&5
15471 echo "${ECHO_T}no" >&6
15474 test -n "$MSGMERGE" && break
15477 for ac_prog in xgettext
15479 # Extract the first word of "$ac_prog", so it can be a program name with args.
15480 set dummy $ac_prog; ac_word=$2
15481 echo "$as_me:$LINENO: checking for $ac_word" >&5
15482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15483 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 if test -n "$XGETTEXT"; then
15487 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15490 for as_dir in $PATH
15493 test -z "$as_dir" && as_dir=.
15494 for ac_exec_ext in '' $ac_executable_extensions; do
15495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15496 ac_cv_prog_XGETTEXT="$ac_prog"
15497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15505 XGETTEXT=$ac_cv_prog_XGETTEXT
15506 if test -n "$XGETTEXT"; then
15507 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15508 echo "${ECHO_T}$XGETTEXT" >&6
15510 echo "$as_me:$LINENO: result: no" >&5
15511 echo "${ECHO_T}no" >&6
15514 test -n "$XGETTEXT" && break
15518 # Note: share/locale is always the default, independent of $datadir
15519 localedir='${prefix}/share/locale'
15520 if test x"$prefix" = x"NONE"; then
15521 exp_localedir="$ac_default_prefix/share/locale"
15523 exp_localedir="$prefix/share/locale"
15528 cat >>confdefs.h <<_ACEOF
15529 #define LOCALEDIR "$exp_localedir"
15535 if test "$with_CXX" = yes; then
15539 ac_cpp='$CXXCPP $CPPFLAGS'
15540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15544 if test "${ac_cv_header_string+set}" = set; then
15545 echo "$as_me:$LINENO: checking for string" >&5
15546 echo $ECHO_N "checking for string... $ECHO_C" >&6
15547 if test "${ac_cv_header_string+set}" = set; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
15551 echo "${ECHO_T}$ac_cv_header_string" >&6
15553 # Is the header compilable?
15554 echo "$as_me:$LINENO: checking string usability" >&5
15555 echo $ECHO_N "checking string usability... $ECHO_C" >&6
15556 cat >conftest.$ac_ext <<_ACEOF
15557 #line $LINENO "configure"
15558 #include "confdefs.h"
15559 $ac_includes_default
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564 (eval $ac_compile) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } &&
15568 { ac_try='test -s conftest.$ac_objext'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_header_compiler=yes
15576 echo "$as_me: failed program was:" >&5
15577 cat conftest.$ac_ext >&5
15578 ac_header_compiler=no
15580 rm -f conftest.$ac_objext conftest.$ac_ext
15581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15582 echo "${ECHO_T}$ac_header_compiler" >&6
15584 # Is the header present?
15585 echo "$as_me:$LINENO: checking string presence" >&5
15586 echo $ECHO_N "checking string presence... $ECHO_C" >&6
15587 cat >conftest.$ac_ext <<_ACEOF
15588 #line $LINENO "configure"
15589 #include "confdefs.h"
15592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15595 egrep -v '^ *\+' conftest.er1 >conftest.err
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } >/dev/null; then
15600 if test -s conftest.err; then
15601 ac_cpp_err=$ac_cxx_preproc_warn_flag
15608 if test -z "$ac_cpp_err"; then
15609 ac_header_preproc=yes
15611 echo "$as_me: failed program was:" >&5
15612 cat conftest.$ac_ext >&5
15613 ac_header_preproc=no
15615 rm -f conftest.err conftest.$ac_ext
15616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15617 echo "${ECHO_T}$ac_header_preproc" >&6
15619 # So? What about this header?
15620 case $ac_header_compiler:$ac_header_preproc in
15622 { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
15623 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
15625 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
15627 { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
15628 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
15630 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
15632 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
15634 echo "$as_me:$LINENO: checking for string" >&5
15635 echo $ECHO_N "checking for string... $ECHO_C" >&6
15636 if test "${ac_cv_header_string+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 ac_cv_header_string=$ac_header_preproc
15641 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
15642 echo "${ECHO_T}$ac_cv_header_string" >&6
15645 if test $ac_cv_header_string = yes; then
15647 cat >>confdefs.h <<\_ACEOF
15648 #define HAVE_CXX_STRING_HEADER 1
15652 echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
15653 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
15654 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15657 cat >conftest.$ac_ext <<_ACEOF
15658 #line $LINENO "configure"
15659 #include "confdefs.h"
15661 #include <stdlib.h>
15662 #include <string.h>
15664 #ifdef F77_DUMMY_MAIN
15665 # ifdef __cplusplus
15668 int F77_DUMMY_MAIN() { return 1; }
15673 string foo = "test"
15678 rm -f conftest.$ac_objext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15680 (eval $ac_compile) 2>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
15684 { ac_try='test -s conftest.$ac_objext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 pgac_cv_class_string_in_string_h=yes
15692 echo "$as_me: failed program was:" >&5
15693 cat conftest.$ac_ext >&5
15694 pgac_cv_class_string_in_string_h=no
15696 rm -f conftest.$ac_objext conftest.$ac_ext
15698 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
15699 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
15701 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
15702 { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
15703 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
15704 { (exit 1); exit 1; }; }
15711 ac_cpp='$CPP $CPPFLAGS'
15712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15717 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
15718 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
15719 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 ac_cpp='$CXXCPP $CPPFLAGS'
15725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15729 cat >conftest.$ac_ext <<_ACEOF
15730 #line $LINENO "configure"
15731 #include "confdefs.h"
15733 #include <stdlib.h>
15734 #ifdef HAVE_CXX_STRING_HEADER
15737 using namespace std;
15739 #ifdef F77_DUMMY_MAIN
15740 # ifdef __cplusplus
15743 int F77_DUMMY_MAIN() { return 1; }
15753 rm -f conftest.$ac_objext
15754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15755 (eval $ac_compile) 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -s conftest.$ac_objext'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765 pgac_cv_cxx_namespace_std=yes
15767 echo "$as_me: failed program was:" >&5
15768 cat conftest.$ac_ext >&5
15769 pgac_cv_cxx_namespace_std=no
15771 rm -f conftest.$ac_objext conftest.$ac_ext
15773 ac_cpp='$CPP $CPPFLAGS'
15774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15779 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
15780 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
15782 if test $pgac_cv_cxx_namespace_std = yes ; then
15784 cat >>confdefs.h <<\_ACEOF
15785 #define HAVE_NAMESPACE_STD 1
15792 # Check for Tcl configuration script tclConfig.sh
15793 if test "$with_tcl" = yes; then
15794 for ac_prog in tclsh tcl
15796 # Extract the first word of "$ac_prog", so it can be a program name with args.
15797 set dummy $ac_prog; ac_word=$2
15798 echo "$as_me:$LINENO: checking for $ac_word" >&5
15799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15800 if test "${ac_cv_path_TCLSH+set}" = set; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15809 for as_dir in $PATH
15812 test -z "$as_dir" && as_dir=.
15813 for ac_exec_ext in '' $ac_executable_extensions; do
15814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15815 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15825 TCLSH=$ac_cv_path_TCLSH
15827 if test -n "$TCLSH"; then
15828 echo "$as_me:$LINENO: result: $TCLSH" >&5
15829 echo "${ECHO_T}$TCLSH" >&6
15831 echo "$as_me:$LINENO: result: no" >&5
15832 echo "${ECHO_T}no" >&6
15835 test -n "$TCLSH" && break
15838 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15839 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15840 # Let user override test
15841 if test -z "$TCL_CONFIG_SH"; then
15842 pgac_test_dirs="$with_tclconfig"
15844 set X $pgac_test_dirs; shift
15845 if test $# -eq 0; then
15846 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15847 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15848 { (exit 1); exit 1; }; }
15849 set X `echo 'puts $auto_path' | $TCLSH`; shift
15853 if test -r "$pgac_dir/tclConfig.sh"; then
15854 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15860 if test -z "$TCL_CONFIG_SH"; then
15861 echo "$as_me:$LINENO: result: no" >&5
15862 echo "${ECHO_T}no" >&6
15863 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15864 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15865 { (exit 1); exit 1; }; }
15867 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15868 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15874 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15875 eval TCL_LIBS=\"$TCL_LIBS\"
15876 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15877 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15881 # Check for Tk configuration script tkConfig.sh
15882 if test "$with_tk" = yes; then
15883 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15884 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15885 # Let user override test
15886 if test -z "$TK_CONFIG_SH"; then
15887 pgac_test_dirs="$with_tkconfig $with_tclconfig"
15889 set X $pgac_test_dirs; shift
15890 if test $# -eq 0; then
15891 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15892 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15893 { (exit 1); exit 1; }; }
15894 set X `echo 'puts $auto_path' | $TCLSH`; shift
15898 if test -r "$pgac_dir/tkConfig.sh"; then
15899 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15905 if test -z "$TK_CONFIG_SH"; then
15906 echo "$as_me:$LINENO: result: no" >&5
15907 echo "${ECHO_T}no" >&6
15908 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15909 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15910 { (exit 1); exit 1; }; }
15912 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15913 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15919 eval TK_LIBS=\"$TK_LIBS\"
15920 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15921 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15927 # Check for DocBook and tools
15929 for ac_prog in onsgmls nsgmls
15931 # Extract the first word of "$ac_prog", so it can be a program name with args.
15932 set dummy $ac_prog; ac_word=$2
15933 echo "$as_me:$LINENO: checking for $ac_word" >&5
15934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15935 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15938 if test -n "$NSGMLS"; then
15939 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15942 for as_dir in $PATH
15945 test -z "$as_dir" && as_dir=.
15946 for ac_exec_ext in '' $ac_executable_extensions; do
15947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15948 ac_cv_prog_NSGMLS="$ac_prog"
15949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15957 NSGMLS=$ac_cv_prog_NSGMLS
15958 if test -n "$NSGMLS"; then
15959 echo "$as_me:$LINENO: result: $NSGMLS" >&5
15960 echo "${ECHO_T}$NSGMLS" >&6
15962 echo "$as_me:$LINENO: result: no" >&5
15963 echo "${ECHO_T}no" >&6
15966 test -n "$NSGMLS" && break
15969 for ac_prog in openjade jade
15971 # Extract the first word of "$ac_prog", so it can be a program name with args.
15972 set dummy $ac_prog; ac_word=$2
15973 echo "$as_me:$LINENO: checking for $ac_word" >&5
15974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15975 if test "${ac_cv_prog_JADE+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15978 if test -n "$JADE"; then
15979 ac_cv_prog_JADE="$JADE" # Let the user override the test.
15981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982 for as_dir in $PATH
15985 test -z "$as_dir" && as_dir=.
15986 for ac_exec_ext in '' $ac_executable_extensions; do
15987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15988 ac_cv_prog_JADE="$ac_prog"
15989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15997 JADE=$ac_cv_prog_JADE
15998 if test -n "$JADE"; then
15999 echo "$as_me:$LINENO: result: $JADE" >&5
16000 echo "${ECHO_T}$JADE" >&6
16002 echo "$as_me:$LINENO: result: no" >&5
16003 echo "${ECHO_T}no" >&6
16006 test -n "$JADE" && break
16010 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16011 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16012 if test "${pgac_cv_check_docbook+set}" = set; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16015 cat >conftest.sgml <<EOF
16016 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16018 <title>test</title>
16020 <title>random</title>
16022 <title>testsect</title>
16029 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16030 if test $? -eq 0; then
16031 pgac_cv_check_docbook=yes
16033 pgac_cv_check_docbook=no
16035 rm -f conftest.sgml
16037 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16038 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16040 have_docbook=$pgac_cv_check_docbook
16043 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16044 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16045 if test "${pgac_cv_path_stylesheets+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 if test -n "$DOCBOOKSTYLE"; then
16049 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16051 for pgac_prefix in /usr /usr/local /opt; do
16052 for pgac_infix in share lib; do
16053 for pgac_postfix in \
16054 sgml/stylesheets/nwalsh-modular \
16055 sgml/stylesheets/docbook \
16056 sgml/docbook/dsssl/modular \
16057 sgml/docbook/stylesheet/dsssl/modular \
16058 sgml/docbook/dsssl-stylesheets
16060 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16061 if test -r "$pgac_candidate/html/docbook.dsl" \
16062 && test -r "$pgac_candidate/print/docbook.dsl"
16064 pgac_cv_path_stylesheets=$pgac_candidate
16073 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16075 if test -n "$DOCBOOKSTYLE"; then
16076 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16077 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16079 echo "$as_me:$LINENO: result: no" >&5
16080 echo "${ECHO_T}no" >&6
16082 if test -n "$DOCBOOKSTYLE"; then
16083 for ac_prog in collateindex.pl
16085 # Extract the first word of "$ac_prog", so it can be a program name with args.
16086 set dummy $ac_prog; ac_word=$2
16087 echo "$as_me:$LINENO: checking for $ac_word" >&5
16088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16089 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16092 case $COLLATEINDEX in
16094 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16098 for as_dir in $DOCBOOKSTYLE/bin $PATH
16101 test -z "$as_dir" && as_dir=.
16102 for ac_exec_ext in '' $ac_executable_extensions; do
16103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16104 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16114 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16116 if test -n "$COLLATEINDEX"; then
16117 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16118 echo "${ECHO_T}$COLLATEINDEX" >&6
16120 echo "$as_me:$LINENO: result: no" >&5
16121 echo "${ECHO_T}no" >&6
16124 test -n "$COLLATEINDEX" && break
16128 for ac_prog in collateindex.pl
16130 # Extract the first word of "$ac_prog", so it can be a program name with args.
16131 set dummy $ac_prog; ac_word=$2
16132 echo "$as_me:$LINENO: checking for $ac_word" >&5
16133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16134 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 case $COLLATEINDEX in
16139 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16143 for as_dir in $PATH
16146 test -z "$as_dir" && as_dir=.
16147 for ac_exec_ext in '' $ac_executable_extensions; do
16148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16149 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16159 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16161 if test -n "$COLLATEINDEX"; then
16162 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16163 echo "${ECHO_T}$COLLATEINDEX" >&6
16165 echo "$as_me:$LINENO: result: no" >&5
16166 echo "${ECHO_T}no" >&6
16169 test -n "$COLLATEINDEX" && break
16173 for ac_prog in sgmlspl
16175 # Extract the first word of "$ac_prog", so it can be a program name with args.
16176 set dummy $ac_prog; ac_word=$2
16177 echo "$as_me:$LINENO: checking for $ac_word" >&5
16178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16179 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 if test -n "$SGMLSPL"; then
16183 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16186 for as_dir in $PATH
16189 test -z "$as_dir" && as_dir=.
16190 for ac_exec_ext in '' $ac_executable_extensions; do
16191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16192 ac_cv_prog_SGMLSPL="$ac_prog"
16193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16201 SGMLSPL=$ac_cv_prog_SGMLSPL
16202 if test -n "$SGMLSPL"; then
16203 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16204 echo "${ECHO_T}$SGMLSPL" >&6
16206 echo "$as_me:$LINENO: result: no" >&5
16207 echo "${ECHO_T}no" >&6
16210 test -n "$SGMLSPL" && break
16215 # prepare build tree if outside source tree
16216 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16217 # Note 2: /bin/pwd might be better than shell's built-in at getting
16218 # a symlink-free name.
16219 if test "$no_create" != yes; then
16220 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16225 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16226 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16227 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16228 || { { echo "$as_me:$LINENO: error: failed" >&5
16229 echo "$as_me: error: failed" >&2;}
16230 { (exit 1); exit 1; }; }
16231 echo "$as_me:$LINENO: result: done" >&5
16232 echo "${ECHO_T}done" >&6
16237 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16240 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}"
16243 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16246 cat >confcache <<\_ACEOF
16247 # This file is a shell script that caches the results of configure
16248 # tests run on this system so they can be shared between configure
16249 # scripts and configure runs, see configure's option --config-cache.
16250 # It is not useful on other systems. If it contains results you don't
16251 # want to keep, you may remove or edit it.
16253 # config.status only pays attention to the cache file if you give it
16254 # the --recheck option to rerun configure.
16256 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16258 # following values.
16262 # The following way of writing the cache mishandles newlines in values,
16263 # but we know of no workaround that is simple, portable, and efficient.
16264 # So, don't put newlines in cache variables' values.
16265 # Ultrix sh set writes to stderr and can't be redirected directly,
16266 # and sets the high bit in the cache file unless we assign to the vars.
16269 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16271 # `set' does not quote correctly, so add quotes (double-quote
16272 # substitution turns \\\\ into \\, and sed turns \\ into \).
16275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16278 # `set' quotes correctly as required by POSIX, so do not add quotes.
16280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16287 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16289 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16291 if cmp -s $cache_file confcache; then :; else
16292 if test -w $cache_file; then
16293 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16294 cat confcache >$cache_file
16296 echo "not updating unwritable cache $cache_file"
16301 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16302 # Let make expand exec_prefix.
16303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16305 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16306 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16307 # trailing colons and then remove the whole line if VPATH becomes empty
16308 # (actually we leave an empty line to preserve line numbers).
16309 if test "x$srcdir" = x.; then
16310 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16311 s/:*\$(srcdir):*/:/;
16312 s/:*\${srcdir}:*/:/;
16314 s/^\([^=]*=[ ]*\):*/\1/;
16320 DEFS=-DHAVE_CONFIG_H
16323 : ${CONFIG_STATUS=./config.status}
16324 ac_clean_files_save=$ac_clean_files
16325 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16326 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16327 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16328 cat >$CONFIG_STATUS <<_ACEOF
16330 # Generated by $as_me.
16331 # Run this file to recreate the current configuration.
16332 # Compiler output produced by configure, useful for debugging
16333 # configure, is in config.log if it exists.
16336 SHELL=\${CONFIG_SHELL-$SHELL}
16339 cat >>$CONFIG_STATUS <<\_ACEOF
16341 ## --------------------- ##
16342 ## M4sh Initialization. ##
16343 ## --------------------- ##
16345 # Be Bourne compatible
16346 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16349 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16354 # Support unset when possible.
16355 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16361 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16362 { $as_unset LANG || test "${LANG+set}" != set; } ||
16363 { LANG=C; export LANG; }
16364 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16365 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16366 { LC_ALL=C; export LC_ALL; }
16367 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16368 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16369 { LC_TIME=C; export LC_TIME; }
16370 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16371 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16372 { LC_CTYPE=C; export LC_CTYPE; }
16373 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16374 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16375 { LANGUAGE=C; export LANGUAGE; }
16376 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16377 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16378 { LC_COLLATE=C; export LC_COLLATE; }
16379 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16380 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16381 { LC_NUMERIC=C; export LC_NUMERIC; }
16382 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16383 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16384 { LC_MESSAGES=C; export LC_MESSAGES; }
16387 # Name of the executable.
16388 as_me=`(basename "$0") 2>/dev/null ||
16389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16390 X"$0" : 'X\(//\)$' \| \
16391 X"$0" : 'X\(/\)$' \| \
16392 . : '\(.\)' 2>/dev/null ||
16394 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16395 /^X\/\(\/\/\)$/{ s//\1/; q; }
16396 /^X\/\(\/\).*/{ s//\1/; q; }
16399 # PATH needs CR, and LINENO needs CR and PATH.
16400 # Avoid depending upon Character Ranges.
16401 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16402 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16403 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16404 as_cr_digits='0123456789'
16405 as_cr_alnum=$as_cr_Letters$as_cr_digits
16407 # The user is always right.
16408 if test "${PATH_SEPARATOR+set}" != set; then
16409 echo "#! /bin/sh" >conftest.sh
16410 echo "exit 0" >>conftest.sh
16411 chmod +x conftest.sh
16412 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16421 as_lineno_1=$LINENO
16422 as_lineno_2=$LINENO
16423 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16424 test "x$as_lineno_1" != "x$as_lineno_2" &&
16425 test "x$as_lineno_3" = "x$as_lineno_2" || {
16426 # Find who we are. Look in the path if we contain no path at all
16429 *[\\/]* ) as_myself=$0 ;;
16430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16431 for as_dir in $PATH
16434 test -z "$as_dir" && as_dir=.
16435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16440 # We did not find ourselves, most probably we were run as `sh COMMAND'
16441 # in which case we are not to be found in the path.
16442 if test "x$as_myself" = x; then
16445 if test ! -f "$as_myself"; then
16446 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16447 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16448 { (exit 1); exit 1; }; }
16450 case $CONFIG_SHELL in
16452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16453 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16456 test -z "$as_dir" && as_dir=.
16457 for as_base in sh bash ksh sh5; do
16460 if ("$as_dir/$as_base" -c '
16461 as_lineno_1=$LINENO
16462 as_lineno_2=$LINENO
16463 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16464 test "x$as_lineno_1" != "x$as_lineno_2" &&
16465 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16466 CONFIG_SHELL=$as_dir/$as_base
16467 export CONFIG_SHELL
16468 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16476 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16477 # uniformly replaced by the line number. The first 'sed' inserts a
16478 # line-number line before each line; the second 'sed' does the real
16479 # work. The second script uses 'N' to pair each line-number line
16480 # with the numbered line, and appends trailing '-' during
16481 # substitution so that $LINENO is not a special case at line end.
16482 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16483 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16484 sed '=' <$as_myself |
16489 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16492 s,^['$as_cr_digits']*\n,,
16493 ' >$as_me.lineno &&
16494 chmod +x $as_me.lineno ||
16495 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16496 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16497 { (exit 1); exit 1; }; }
16499 # Don't try to exec as it changes $[0], causing all sort of problems
16500 # (the dirname of $[0] is not the place where we might find the
16501 # original and so on. Autoconf is especially sensible to this).
16503 # Exit status is that of the last command.
16508 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16509 *c*,-n*) ECHO_N= ECHO_C='
16511 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16512 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16515 if expr a : '\(a\)' >/dev/null 2>&1; then
16521 rm -f conf$$ conf$$.exe conf$$.file
16523 if ln -s conf$$.file conf$$ 2>/dev/null; then
16524 # We could just check for DJGPP; but this test a) works b) is more generic
16525 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16526 if test -f conf$$.exe; then
16527 # Don't use ln at all; we don't have any links
16532 elif ln conf$$.file conf$$ 2>/dev/null; then
16537 rm -f conf$$ conf$$.exe conf$$.file
16539 as_executable_p="test -f"
16541 # Sed expression to map a string onto a valid CPP name.
16542 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16544 # Sed expression to map a string onto a valid variable name.
16545 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16549 # We need space, tab and new line, in precisely that order.
16555 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16559 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16560 # report actual input values of CONFIG_FILES etc. instead of their
16561 # values after options handling. Logging --version etc. is OK.
16565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16566 ## Running $as_me. ##
16571 This file was extended by PostgreSQL $as_me 7.3devel, which was
16572 generated by GNU Autoconf 2.53. Invocation command line was
16574 CONFIG_FILES = $CONFIG_FILES
16575 CONFIG_HEADERS = $CONFIG_HEADERS
16576 CONFIG_LINKS = $CONFIG_LINKS
16577 CONFIG_COMMANDS = $CONFIG_COMMANDS
16581 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16585 # Files that config.status was made for.
16586 if test -n "$ac_config_files"; then
16587 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16590 if test -n "$ac_config_headers"; then
16591 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16594 if test -n "$ac_config_links"; then
16595 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16598 if test -n "$ac_config_commands"; then
16599 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16602 cat >>$CONFIG_STATUS <<\_ACEOF
16605 \`$as_me' instantiates files from templates according to the
16606 current configuration.
16608 Usage: $0 [OPTIONS] [FILE]...
16610 -h, --help print this help, then exit
16611 -V, --version print version number, then exit
16612 -d, --debug don't remove temporary files
16613 --recheck update $as_me by reconfiguring in the same conditions
16614 --file=FILE[:TEMPLATE]
16615 instantiate the configuration file FILE
16616 --header=FILE[:TEMPLATE]
16617 instantiate the configuration header FILE
16619 Configuration files:
16622 Configuration headers:
16625 Configuration links:
16628 Report bugs to <bug-autoconf@gnu.org>."
16631 cat >>$CONFIG_STATUS <<_ACEOF
16633 PostgreSQL config.status 7.3devel
16634 configured by $0, generated by GNU Autoconf 2.53,
16635 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16637 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16638 Free Software Foundation, Inc.
16639 This config.status script is free software; the Free Software Foundation
16640 gives unlimited permission to copy, distribute and modify it."
16644 cat >>$CONFIG_STATUS <<\_ACEOF
16645 # If no file are specified by the user, then we need to provide default
16646 # value. By we need to know if files were specified by the user.
16652 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16653 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16655 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16659 *) # This is not an option, so the user has probably given explicit
16661 ac_need_defaults=false;;
16665 # Handling of the options.
16667 cat >>$CONFIG_STATUS <<_ACEOF
16668 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16669 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16670 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16672 cat >>$CONFIG_STATUS <<\_ACEOF
16673 --version | --vers* | -V )
16674 echo "$ac_cs_version"; exit 0 ;;
16676 # Conflict between --help and --header
16677 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16678 Try \`$0 --help' for more information." >&5
16679 echo "$as_me: error: ambiguous option: $1
16680 Try \`$0 --help' for more information." >&2;}
16681 { (exit 1); exit 1; }; };;
16682 --help | --hel | -h )
16683 echo "$ac_cs_usage"; exit 0 ;;
16684 --debug | --d* | -d )
16686 --file | --fil | --fi | --f )
16688 CONFIG_FILES="$CONFIG_FILES $1"
16689 ac_need_defaults=false;;
16690 --header | --heade | --head | --hea )
16692 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16693 ac_need_defaults=false;;
16695 # This is an error.
16696 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16697 Try \`$0 --help' for more information." >&5
16698 echo "$as_me: error: unrecognized option: $1
16699 Try \`$0 --help' for more information." >&2;}
16700 { (exit 1); exit 1; }; } ;;
16702 *) ac_config_targets="$ac_config_targets $1" ;;
16714 cat >>$CONFIG_STATUS <<\_ACEOF
16715 for ac_config_target in $ac_config_targets
16717 case "$ac_config_target" in
16718 # Handling of arguments.
16719 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16720 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16721 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16722 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16723 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16724 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16725 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16726 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16727 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16728 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16729 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16730 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16731 { (exit 1); exit 1; }; };;
16735 # If the user did not use the arguments to specify the items to instantiate,
16736 # then the envvar interface is used. Set only those that are not.
16737 # We use the long form for the default assignment because of an extremely
16738 # bizarre bug on SunOS 4.1.3.
16739 if $ac_need_defaults; then
16740 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16741 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16742 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16745 # Create a temporary directory, and hook for its removal unless debugging.
16748 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16749 trap '{ (exit 1); exit 1; }' 1 2 13 15
16752 # Create a (secure) tmp directory for tmp files.
16755 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16756 test -n "$tmp" && test -d "$tmp"
16759 tmp=$TMPDIR/cs$$-$RANDOM
16760 (umask 077 && mkdir $tmp)
16763 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16764 { (exit 1); exit 1; }
16769 cat >>$CONFIG_STATUS <<_ACEOF
16772 # CONFIG_FILES section.
16775 # No need to generate the scripts if there are no CONFIG_FILES.
16776 # This happens for instance when ./config.status config.h
16777 if test -n "\$CONFIG_FILES"; then
16778 # Protect against being on the right side of a sed subst in config.status.
16779 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16780 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16781 s,@SHELL@,$SHELL,;t t
16782 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16783 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16784 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16785 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16786 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16787 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16788 s,@exec_prefix@,$exec_prefix,;t t
16789 s,@prefix@,$prefix,;t t
16790 s,@program_transform_name@,$program_transform_name,;t t
16791 s,@bindir@,$bindir,;t t
16792 s,@sbindir@,$sbindir,;t t
16793 s,@libexecdir@,$libexecdir,;t t
16794 s,@datadir@,$datadir,;t t
16795 s,@sysconfdir@,$sysconfdir,;t t
16796 s,@sharedstatedir@,$sharedstatedir,;t t
16797 s,@localstatedir@,$localstatedir,;t t
16798 s,@libdir@,$libdir,;t t
16799 s,@includedir@,$includedir,;t t
16800 s,@oldincludedir@,$oldincludedir,;t t
16801 s,@infodir@,$infodir,;t t
16802 s,@mandir@,$mandir,;t t
16803 s,@build_alias@,$build_alias,;t t
16804 s,@host_alias@,$host_alias,;t t
16805 s,@target_alias@,$target_alias,;t t
16806 s,@DEFS@,$DEFS,;t t
16807 s,@ECHO_C@,$ECHO_C,;t t
16808 s,@ECHO_N@,$ECHO_N,;t t
16809 s,@ECHO_T@,$ECHO_T,;t t
16810 s,@LIBS@,$LIBS,;t t
16811 s,@docdir@,$docdir,;t t
16812 s,@configure_args@,$configure_args,;t t
16813 s,@build@,$build,;t t
16814 s,@build_cpu@,$build_cpu,;t t
16815 s,@build_vendor@,$build_vendor,;t t
16816 s,@build_os@,$build_os,;t t
16817 s,@host@,$host,;t t
16818 s,@host_cpu@,$host_cpu,;t t
16819 s,@host_vendor@,$host_vendor,;t t
16820 s,@host_os@,$host_os,;t t
16821 s,@PORTNAME@,$PORTNAME,;t t
16823 s,@MULTIBYTE@,$MULTIBYTE,;t t
16824 s,@enable_nls@,$enable_nls,;t t
16825 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16826 s,@default_port@,$default_port,;t t
16827 s,@enable_shared@,$enable_shared,;t t
16828 s,@enable_rpath@,$enable_rpath,;t t
16829 s,@enable_debug@,$enable_debug,;t t
16831 s,@CFLAGS@,$CFLAGS,;t t
16832 s,@LDFLAGS@,$LDFLAGS,;t t
16833 s,@CPPFLAGS@,$CPPFLAGS,;t t
16834 s,@ac_ct_CC@,$ac_ct_CC,;t t
16835 s,@EXEEXT@,$EXEEXT,;t t
16836 s,@OBJEXT@,$OBJEXT,;t t
16839 s,@autodepend@,$autodepend,;t t
16840 s,@INCLUDES@,$INCLUDES,;t t
16841 s,@with_tcl@,$with_tcl,;t t
16842 s,@with_tk@,$with_tk,;t t
16843 s,@with_perl@,$with_perl,;t t
16844 s,@with_python@,$with_python,;t t
16846 s,@with_java@,$with_java,;t t
16847 s,@with_krb4@,$with_krb4,;t t
16848 s,@with_krb5@,$with_krb5,;t t
16849 s,@krb_srvtab@,$krb_srvtab,;t t
16850 s,@with_pam@,$with_pam,;t t
16851 s,@with_openssl@,$with_openssl,;t t
16852 s,@enable_odbc@,$enable_odbc,;t t
16853 s,@with_unixodbc@,$with_unixodbc,;t t
16854 s,@with_iodbc@,$with_iodbc,;t t
16855 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
16856 s,@ELF_SYS@,$ELF_SYS,;t t
16858 s,@CXXFLAGS@,$CXXFLAGS,;t t
16859 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16860 s,@CXXCPP@,$CXXCPP,;t t
16861 s,@with_CXX@,$with_CXX,;t t
16864 s,@FLEX@,$FLEX,;t t
16865 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16866 s,@LN_S@,$LN_S,;t t
16868 s,@with_gnu_ld@,$with_gnu_ld,;t t
16869 s,@ld_R_works@,$ld_R_works,;t t
16870 s,@RANLIB@,$RANLIB,;t t
16871 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16872 s,@LORDER@,$LORDER,;t t
16874 s,@STRIP@,$STRIP,;t t
16875 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16876 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16877 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16878 s,@YACC@,$YACC,;t t
16879 s,@YFLAGS@,$YFLAGS,;t t
16880 s,@WISH@,$WISH,;t t
16881 s,@PERL@,$PERL,;t t
16882 s,@perl_installsitearch@,$perl_installsitearch,;t t
16883 s,@perl_installman3dir@,$perl_installman3dir,;t t
16884 s,@perl_archlibexp@,$perl_archlibexp,;t t
16885 s,@perl_privlibexp@,$perl_privlibexp,;t t
16886 s,@perl_useshrplib@,$perl_useshrplib,;t t
16887 s,@perl_man3ext@,$perl_man3ext,;t t
16888 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16889 s,@PYTHON@,$PYTHON,;t t
16890 s,@python_version@,$python_version,;t t
16891 s,@python_prefix@,$python_prefix,;t t
16892 s,@python_execprefix@,$python_execprefix,;t t
16893 s,@python_configdir@,$python_configdir,;t t
16894 s,@python_moduledir@,$python_moduledir,;t t
16895 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16896 s,@python_includespec@,$python_includespec,;t t
16897 s,@python_libspec@,$python_libspec,;t t
16898 s,@LIBOBJS@,$LIBOBJS,;t t
16899 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16900 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16901 s,@MSGFMT@,$MSGFMT,;t t
16902 s,@MSGMERGE@,$MSGMERGE,;t t
16903 s,@XGETTEXT@,$XGETTEXT,;t t
16904 s,@localedir@,$localedir,;t t
16905 s,@TCLSH@,$TCLSH,;t t
16906 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16907 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16908 s,@TCL_LIBS@,$TCL_LIBS,;t t
16909 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16910 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16911 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16912 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16913 s,@TK_LIBS@,$TK_LIBS,;t t
16914 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16915 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16916 s,@NSGMLS@,$NSGMLS,;t t
16917 s,@JADE@,$JADE,;t t
16918 s,@have_docbook@,$have_docbook,;t t
16919 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16920 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16921 s,@SGMLSPL@,$SGMLSPL,;t t
16922 s,@vpath_build@,$vpath_build,;t t
16927 cat >>$CONFIG_STATUS <<\_ACEOF
16928 # Split the substitutions into bite-sized pieces for seds with
16929 # small command number limits, like on Digital OSF/1 and HP-UX.
16930 ac_max_sed_lines=48
16931 ac_sed_frag=1 # Number of current file.
16932 ac_beg=1 # First line for current file.
16933 ac_end=$ac_max_sed_lines # Line after last line for current file.
16936 while $ac_more_lines; do
16937 if test $ac_beg -gt 1; then
16938 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16940 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16942 if test ! -s $tmp/subs.frag; then
16943 ac_more_lines=false
16945 # The purpose of the label and of the branching condition is to
16946 # speed up the sed processing (if there are no `@' at all, there
16947 # is no need to browse any of the substitutions).
16948 # These are the two extra sed commands mentioned above.
16950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16951 if test -z "$ac_sed_cmds"; then
16952 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16954 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16956 ac_sed_frag=`expr $ac_sed_frag + 1`
16958 ac_end=`expr $ac_end + $ac_max_sed_lines`
16961 if test -z "$ac_sed_cmds"; then
16964 fi # test -n "$CONFIG_FILES"
16967 cat >>$CONFIG_STATUS <<\_ACEOF
16968 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16971 - | *:- | *:-:* ) # input from stdin
16973 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16974 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16975 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16976 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16977 * ) ac_file_in=$ac_file.in ;;
16980 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16981 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16983 X"$ac_file" : 'X\(//\)[^/]' \| \
16984 X"$ac_file" : 'X\(//\)$' \| \
16985 X"$ac_file" : 'X\(/\)' \| \
16986 . : '\(.\)' 2>/dev/null ||
16988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16990 /^X\(\/\/\)$/{ s//\1/; q; }
16991 /^X\(\/\).*/{ s//\1/; q; }
16993 { case "$ac_dir" in
16994 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16998 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16999 case $as_mkdir_dir in
17000 # Skip DOS drivespec
17001 ?:) as_incr_dir=$as_mkdir_dir ;;
17003 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17004 test -d "$as_incr_dir" ||
17005 mkdir "$as_incr_dir" ||
17006 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17007 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17008 { (exit 1); exit 1; }; }
17015 if test "$ac_dir" != .; then
17016 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17017 # A "../" for each directory in $ac_dir_suffix.
17018 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17020 ac_dir_suffix= ac_top_builddir=
17024 .) # No --srcdir option. We are building in place.
17026 if test -z "$ac_top_builddir"; then
17029 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17031 [\\/]* | ?:[\\/]* ) # Absolute path.
17032 ac_srcdir=$srcdir$ac_dir_suffix;
17033 ac_top_srcdir=$srcdir ;;
17034 *) # Relative path.
17035 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17036 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17038 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17040 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17041 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17042 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17043 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17047 if test x"$ac_file" != x-; then
17048 { echo "$as_me:$LINENO: creating $ac_file" >&5
17049 echo "$as_me: creating $ac_file" >&6;}
17052 # Let's still pretend it is `configure' which instantiates (i.e., don't
17053 # use $as_me), people would be surprised to read:
17054 # /* config.h. Generated by config.status. */
17055 if test x"$ac_file" = x-; then
17058 configure_input="$ac_file. "
17060 configure_input=$configure_input"Generated from `echo $ac_file_in |
17061 sed 's,.*/,,'` by configure."
17063 # First look for the input files in the build tree, otherwise in the
17065 ac_file_inputs=`IFS=:
17066 for f in $ac_file_in; do
17068 -) echo $tmp/stdin ;;
17070 # Absolute (can't be DOS-style, as IFS=:)
17071 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17072 echo "$as_me: error: cannot find input file: $f" >&2;}
17073 { (exit 1); exit 1; }; }
17076 if test -f "$f"; then
17079 elif test -f "$srcdir/$f"; then
17084 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17085 echo "$as_me: error: cannot find input file: $f" >&2;}
17086 { (exit 1); exit 1; }; }
17089 done` || { (exit 1); exit 1; }
17091 cat >>$CONFIG_STATUS <<_ACEOF
17095 cat >>$CONFIG_STATUS <<\_ACEOF
17097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17098 s,@configure_input@,$configure_input,;t t
17099 s,@srcdir@,$ac_srcdir,;t t
17100 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17101 s,@top_srcdir@,$ac_top_srcdir,;t t
17102 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17103 s,@builddir@,$ac_builddir,;t t
17104 s,@abs_builddir@,$ac_abs_builddir,;t t
17105 s,@top_builddir@,$ac_top_builddir,;t t
17106 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17107 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17109 if test x"$ac_file" != x-; then
17110 mv $tmp/out $ac_file
17118 cat >>$CONFIG_STATUS <<\_ACEOF
17121 # CONFIG_HEADER section.
17124 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17125 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17127 # ac_d sets the value in "#define NAME VALUE" lines.
17128 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17129 ac_dB='[ ].*$,\1#\2'
17132 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17133 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17134 ac_uB='$,\1#\2define\3'
17138 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17141 - | *:- | *:-:* ) # input from stdin
17143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17147 * ) ac_file_in=$ac_file.in ;;
17150 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17151 echo "$as_me: creating $ac_file" >&6;}
17153 # First look for the input files in the build tree, otherwise in the
17155 ac_file_inputs=`IFS=:
17156 for f in $ac_file_in; do
17158 -) echo $tmp/stdin ;;
17160 # Absolute (can't be DOS-style, as IFS=:)
17161 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17162 echo "$as_me: error: cannot find input file: $f" >&2;}
17163 { (exit 1); exit 1; }; }
17166 if test -f "$f"; then
17169 elif test -f "$srcdir/$f"; then
17174 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17175 echo "$as_me: error: cannot find input file: $f" >&2;}
17176 { (exit 1); exit 1; }; }
17179 done` || { (exit 1); exit 1; }
17180 # Remove the trailing spaces.
17181 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17185 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17186 # `conftest.undefs', that substitutes the proper values into
17187 # config.h.in to produce config.h. The first handles `#define'
17188 # templates, and the second `#undef' templates.
17189 # And first: Protect against being on the right side of a sed subst in
17190 # config.status. Protect against being in an unquoted here document
17191 # in config.status.
17192 rm -f conftest.defines conftest.undefs
17193 # Using a here document instead of a string reduces the quoting nightmare.
17194 # Putting comments in sed scripts is not portable.
17196 # `end' is used to avoid that the second main sed command (meant for
17197 # 0-ary CPP macros) applies to n-ary macro definitions.
17198 # See the Autoconf documentation for `clear'.
17199 cat >confdef2sed.sed <<\_ACEOF
17204 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17206 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17209 # If some macros were called several times there might be several times
17210 # the same #defines, which is useless. Nevertheless, we may not want to
17211 # sort them, since we want the *last* AC-DEFINE to be honored.
17212 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17213 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17214 rm -f confdef2sed.sed
17216 # This sed command replaces #undef with comments. This is necessary, for
17217 # example, in the case of _POSIX_SOURCE, which is predefined and required
17218 # on some systems where configure will not decide to define it.
17219 cat >>conftest.undefs <<\_ACEOF
17220 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17223 # Break up conftest.defines because some shells have a limit on the size
17224 # of here documents, and old seds have small limits too (100 cmds).
17225 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17226 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17227 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17228 echo ' :' >>$CONFIG_STATUS
17229 rm -f conftest.tail
17230 while grep . conftest.defines >/dev/null
17232 # Write a limited-size here document to $tmp/defines.sed.
17233 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17234 # Speed up: don't consider the non `#define' lines.
17235 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17236 # Work around the forget-to-reset-the-flag bug.
17237 echo 't clr' >>$CONFIG_STATUS
17238 echo ': clr' >>$CONFIG_STATUS
17239 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17241 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17243 mv $tmp/out $tmp/in
17245 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17246 rm -f conftest.defines
17247 mv conftest.tail conftest.defines
17249 rm -f conftest.defines
17250 echo ' fi # egrep' >>$CONFIG_STATUS
17251 echo >>$CONFIG_STATUS
17253 # Break up conftest.undefs because some shells have a limit on the size
17254 # of here documents, and old seds have small limits too (100 cmds).
17255 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17256 rm -f conftest.tail
17257 while grep . conftest.undefs >/dev/null
17259 # Write a limited-size here document to $tmp/undefs.sed.
17260 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17261 # Speed up: don't consider the non `#undef'
17262 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17263 # Work around the forget-to-reset-the-flag bug.
17264 echo 't clr' >>$CONFIG_STATUS
17265 echo ': clr' >>$CONFIG_STATUS
17266 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17268 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17270 mv $tmp/out $tmp/in
17272 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17273 rm -f conftest.undefs
17274 mv conftest.tail conftest.undefs
17276 rm -f conftest.undefs
17278 cat >>$CONFIG_STATUS <<\_ACEOF
17279 # Let's still pretend it is `configure' which instantiates (i.e., don't
17280 # use $as_me), people would be surprised to read:
17281 # /* config.h. Generated by config.status. */
17282 if test x"$ac_file" = x-; then
17283 echo "/* Generated by configure. */" >$tmp/config.h
17285 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17287 cat $tmp/in >>$tmp/config.h
17289 if test x"$ac_file" != x-; then
17290 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17291 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17292 echo "$as_me: $ac_file is unchanged" >&6;}
17294 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17295 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17296 X"$ac_file" : 'X\(//\)[^/]' \| \
17297 X"$ac_file" : 'X\(//\)$' \| \
17298 X"$ac_file" : 'X\(/\)' \| \
17299 . : '\(.\)' 2>/dev/null ||
17301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17303 /^X\(\/\/\)$/{ s//\1/; q; }
17304 /^X\(\/\).*/{ s//\1/; q; }
17306 { case "$ac_dir" in
17307 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17311 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17312 case $as_mkdir_dir in
17313 # Skip DOS drivespec
17314 ?:) as_incr_dir=$as_mkdir_dir ;;
17316 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17317 test -d "$as_incr_dir" ||
17318 mkdir "$as_incr_dir" ||
17319 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17320 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17321 { (exit 1); exit 1; }; }
17327 mv $tmp/config.h $ac_file
17331 rm -f $tmp/config.h
17333 # Run the commands associated with the file.
17335 src/include/pg_config.h )
17336 # Update timestamp for pg_config.h (see Makefile.global)
17337 echo >src/include/stamp-h
17342 cat >>$CONFIG_STATUS <<\_ACEOF
17345 # CONFIG_LINKS section.
17348 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17349 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17350 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17352 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17353 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17355 if test ! -r $srcdir/$ac_source; then
17356 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17357 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17358 { (exit 1); exit 1; }; }
17362 # Make relative symlinks.
17363 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17364 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17365 X"$ac_dest" : 'X\(//\)[^/]' \| \
17366 X"$ac_dest" : 'X\(//\)$' \| \
17367 X"$ac_dest" : 'X\(/\)' \| \
17368 . : '\(.\)' 2>/dev/null ||
17370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17372 /^X\(\/\/\)$/{ s//\1/; q; }
17373 /^X\(\/\).*/{ s//\1/; q; }
17375 { case "$ac_dest_dir" in
17376 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17379 as_dummy="$ac_dest_dir"
17380 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17381 case $as_mkdir_dir in
17382 # Skip DOS drivespec
17383 ?:) as_incr_dir=$as_mkdir_dir ;;
17385 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17386 test -d "$as_incr_dir" ||
17387 mkdir "$as_incr_dir" ||
17388 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17389 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17390 { (exit 1); exit 1; }; }
17397 if test "$ac_dest_dir" != .; then
17398 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17399 # A "../" for each directory in $ac_dir_suffix.
17400 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17402 ac_dir_suffix= ac_top_builddir=
17406 .) # No --srcdir option. We are building in place.
17408 if test -z "$ac_top_builddir"; then
17411 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17413 [\\/]* | ?:[\\/]* ) # Absolute path.
17414 ac_srcdir=$srcdir$ac_dir_suffix;
17415 ac_top_srcdir=$srcdir ;;
17416 *) # Relative path.
17417 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17418 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17420 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17422 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17423 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17424 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17425 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17429 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17430 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17433 # Make a symlink if possible; otherwise try a hard link.
17434 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17435 ln $srcdir/$ac_source $ac_dest ||
17436 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17437 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17438 { (exit 1); exit 1; }; }
17442 cat >>$CONFIG_STATUS <<\_ACEOF
17444 { (exit 0); exit 0; }
17446 chmod +x $CONFIG_STATUS
17447 ac_clean_files=$ac_clean_files_save
17450 # configure is writing to config.log, and then calls config.status.
17451 # config.status does its own redirection, appending to config.log.
17452 # Unfortunately, on DOS this fails, as config.log is still kept open
17453 # by configure, so config.status won't be able to write to it; its
17454 # output is simply discarded. So we exec the FD to /dev/null,
17455 # effectively closing config.log, so it can be properly (re)opened and
17456 # appended to by config.status. When coming back to configure, we
17457 # need to make the FD available again.
17458 if test "$no_create" != yes; then
17461 $SHELL $CONFIG_STATUS || ac_cs_success=false
17463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17464 # would make configure fail if this is the last instruction.
17465 $ac_cs_success || { (exit 1); exit 1; }