2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4devel.
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.4devel'
262 PACKAGE_STRING='PostgreSQL 7.4devel'
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_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
772 \`configure' configures PostgreSQL 7.4devel to adapt to many kinds of systems.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
779 Defaults for the options are specified in brackets.
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
806 For better control, use the options below.
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
826 --build=BUILD configure for building on BUILD [guessed]
827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
831 if test -n "$ac_init_help"; then
832 case $ac_init_help in
833 short | recursive ) echo "Configuration of PostgreSQL 7.4devel:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-recode enable single-byte recode support
842 --enable-nls[=LANGUAGES] enable Native Language Support
843 --disable-shared do not build shared libraries
844 --disable-rpath do not embed shared library search path in executables
845 --enable-debug build with debugging symbols (-g)
846 --enable-depend turn on automatic dependency tracking
847 --enable-cassert enable assertion checks (for debugging)
848 --disable-largefile omit support for large files
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-includes=DIRS look for additional header files in DIRS
855 --with-libraries=DIRS look for additional libraries in DIRS
856 --with-libs=DIRS alternative spelling of --with-libraries
857 --with-pgport=PORTNUM change default port number 5432
858 --enable-thread-safeness allow libpq and ecpg to be thread-safe
859 --with-tcl build Tcl and Tk interfaces
860 --without-tk do not build Tk interfaces if Tcl is enabled
861 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
862 --with-tkconfig=DIR tkConfig.sh is in DIR
863 --with-perl build Perl modules (PL/Perl)
864 --with-python build Python interface module
865 --with-java build JDBC interface and Java tools
866 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
867 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
868 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
869 --with-pam build with PAM support
870 --with-rendezvous build with Rendezvous support
871 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
872 --without-readline do not use Readline
873 --without-zlib do not use Zlib
874 --with-gnu-ld assume the C compiler uses GNU ld default=no
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
885 location of DocBook stylesheets
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 Report bugs to <pgsql-bugs@postgresql.org>.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
953 PostgreSQL configure 7.4devel
954 generated by GNU Autoconf 2.53
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
961 Copyright 2002 PostgreSQL Global Development Group
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by PostgreSQL $as_me 7.4devel, which was
971 generated by GNU Autoconf 2.53. Invocation command line was
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n ) continue ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 case " $ac_configure_args " in
1038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1039 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log. We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051 # Save into config.log some information that might help in debugging.
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1060 # The following way of writing the cache mishandles newlines in values,
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076 if test -s confdefs.h; then
1083 sed "/^$/d" confdefs.h
1086 test "$ac_signal" != 0 &&
1087 echo "$as_me: caught signal $ac_signal"
1088 echo "$as_me: exit $exit_status"
1090 rm -f core core.* *.core &&
1091 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1094 for ac_signal in 1 2 13 15; do
1095 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1104 # Predefined preprocessor variables.
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134 if test "x$prefix" != xNONE; then
1135 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1137 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1140 for ac_site_file in $CONFIG_SITE; do
1141 if test -r "$ac_site_file"; then
1142 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144 sed 's/^/| /' "$ac_site_file" >&5
1149 if test -r "$cache_file"; then
1150 # Some versions of bash will fail to source /dev/null (special
1151 # files actually), so we avoid doing that.
1152 if test -f "$cache_file"; then
1153 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1156 [\\/]* | ?:[\\/]* ) . $cache_file;;
1157 *) . ./$cache_file;;
1161 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1166 # Check that the precious variables saved in the cache have kept the same
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172 eval ac_new_set=\$ac_env_${ac_var}_set
1173 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174 eval ac_new_val="\$ac_env_${ac_var}_value"
1175 case $ac_old_set,$ac_new_set in
1177 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179 ac_cache_corrupted=: ;;
1181 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183 ac_cache_corrupted=: ;;
1186 if test "x$ac_old_val" != "x$ac_new_val"; then
1187 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1190 echo "$as_me: former value: $ac_old_val" >&2;}
1191 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1192 echo "$as_me: current value: $ac_new_val" >&2;}
1193 ac_cache_corrupted=:
1196 # Pass precious variables to config.status.
1197 if test "$ac_new_set" = set; then
1199 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201 *) ac_arg=$ac_var=$ac_new_val ;;
1203 case " $ac_configure_args " in
1204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1205 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1209 if $ac_cache_corrupted; then
1210 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214 { (exit 1); exit 1; }; }
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256 for ac_dir in config $srcdir/config; do
1257 if test -f $ac_dir/install-sh; then
1259 ac_install_sh="$ac_aux_dir/install-sh -c"
1261 elif test -f $ac_dir/install.sh; then
1263 ac_install_sh="$ac_aux_dir/install.sh -c"
1265 elif test -f $ac_dir/shtool; then
1267 ac_install_sh="$ac_aux_dir/shtool install -c"
1271 if test -z "$ac_aux_dir"; then
1272 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1273 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1274 { (exit 1); exit 1; }; }
1276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1278 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1281 configure_args=$ac_configure_args
1285 cat >>confdefs.h <<_ACEOF
1286 #define PG_VERSION "$PACKAGE_VERSION"
1290 # Make sure we can run config.sub.
1291 $ac_config_sub sun4 >/dev/null 2>&1 ||
1292 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1294 { (exit 1); exit 1; }; }
1296 echo "$as_me:$LINENO: checking build system type" >&5
1297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1298 if test "${ac_cv_build+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 ac_cv_build_alias=$build_alias
1302 test -z "$ac_cv_build_alias" &&
1303 ac_cv_build_alias=`$ac_config_guess`
1304 test -z "$ac_cv_build_alias" &&
1305 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1307 { (exit 1); exit 1; }; }
1308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1309 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1311 { (exit 1); exit 1; }; }
1314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1315 echo "${ECHO_T}$ac_cv_build" >&6
1317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1322 echo "$as_me:$LINENO: checking host system type" >&5
1323 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1324 if test "${ac_cv_host+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 ac_cv_host_alias=$host_alias
1328 test -z "$ac_cv_host_alias" &&
1329 ac_cv_host_alias=$ac_cv_build_alias
1330 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1331 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1332 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1333 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1337 echo "${ECHO_T}$ac_cv_host" >&6
1339 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1340 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1341 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346 echo "$as_me:$LINENO: checking which template to use" >&5
1347 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1352 # Check whether --with-template or --without-template was given.
1353 if test "${with_template+set}" = set; then
1354 withval="$with_template"
1358 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1359 echo "$as_me: error: argument required for --with-template option" >&2;}
1360 { (exit 1); exit 1; }; }
1363 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1364 echo "$as_me: error: argument required for --with-template option" >&2;}
1365 { (exit 1); exit 1; }; }
1370 list) echo; ls "$srcdir/src/template"; exit;;
1371 *) if test -f "$srcdir/src/template/$with_template" ; then
1374 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1375 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1376 { (exit 1); exit 1; }; }
1385 # --with-template not given
1388 aix*) template=aix ;;
1389 beos*) template=beos ;;
1390 bsdi*) template=bsdi ;;
1391 cygwin*) template=cygwin ;;
1392 darwin*) template=darwin ;;
1393 dgux*) template=dgux ;;
1394 freebsd*) template=freebsd ;;
1395 hpux*) template=hpux ;;
1396 irix*) template=irix5 ;;
1397 linux*) template=linux ;;
1398 mingw*) template=win32 ;;
1399 netbsd*) template=netbsd ;;
1400 nextstep*) template=nextstep ;;
1401 openbsd*) template=openbsd ;;
1402 osf*) template=osf ;;
1403 qnx*) template=qnx4 ;;
1404 sco*) template=sco ;;
1405 solaris*) template=solaris ;;
1406 sunos*) template=sunos4 ;;
1408 case $host_vendor in
1409 univel) template=univel ;;
1411 sysv4*) template=svr4 ;;
1412 sysv5*) template=unixware ;;
1413 ultrix*) template=ultrix4 ;;
1416 if test x"$template" = x"" ; then
1417 { { echo "$as_me:$LINENO: error:
1418 *******************************************************************
1419 PostgreSQL has apparently not been ported to your platform yet.
1420 To try a manual configuration, look into the src/template directory
1421 for a similar platform and use the '--with-template=' option.
1423 Please also contact <pgsql-ports@postgresql.org> to see about
1424 rectifying this. Include the above 'checking host system type...'
1426 *******************************************************************
1428 echo "$as_me: error:
1429 *******************************************************************
1430 PostgreSQL has apparently not been ported to your platform yet.
1431 To try a manual configuration, look into the src/template directory
1432 for a similar platform and use the '--with-template=' option.
1434 Please also contact <pgsql-ports@postgresql.org> to see about
1435 rectifying this. Include the above 'checking host system type...'
1437 *******************************************************************
1439 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $template" >&5
1447 echo "${ECHO_T}$template" >&6
1452 # Pick right test-and-set (TAS) code. Most platforms have inline
1453 # assembler code in src/include/storage/s_lock.h, so we just use
1454 # a dummy file here.
1456 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1457 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1458 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1459 *) need_tas=no; tas_file=dummy.s ;;
1461 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1464 if test "$need_tas" = yes ; then
1472 ## Command line options
1477 # Add non-standard directories to the include path
1482 # Check whether --with-includes or --without-includes was given.
1483 if test "${with_includes+set}" = set; then
1484 withval="$with_includes"
1488 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1489 echo "$as_me: error: argument required for --with-includes option" >&2;}
1490 { (exit 1); exit 1; }; }
1493 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1494 echo "$as_me: error: argument required for --with-includes option" >&2;}
1495 { (exit 1); exit 1; }; }
1507 # Add non-standard directories to the library search path
1512 # Check whether --with-libraries or --without-libraries was given.
1513 if test "${with_libraries+set}" = set; then
1514 withval="$with_libraries"
1518 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1519 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1520 { (exit 1); exit 1; }; }
1523 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1524 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1525 { (exit 1); exit 1; }; }
1528 LIBRARY_DIRS=$withval
1538 # Check whether --with-libs or --without-libs was given.
1539 if test "${with_libs+set}" = set; then
1540 withval="$with_libs"
1544 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1545 echo "$as_me: error: argument required for --with-libs option" >&2;}
1546 { (exit 1); exit 1; }; }
1549 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1550 echo "$as_me: error: argument required for --with-libs option" >&2;}
1551 { (exit 1); exit 1; }; }
1554 LIBRARY_DIRS=$withval
1563 # 64-bit integer date/time storage (--enable-integer-datetimes)
1565 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1566 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1569 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1570 if test "${enable_integer_datetimes+set}" = set; then
1571 enableval="$enable_integer_datetimes"
1576 cat >>confdefs.h <<\_ACEOF
1577 #define USE_INTEGER_DATETIMES 1
1585 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1586 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1587 { (exit 1); exit 1; }; }
1592 enable_integer_datetimes=no
1596 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1597 echo "${ECHO_T}$enable_integer_datetimes" >&6
1600 # Character set recode (--enable-recode)
1602 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1603 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1606 # Check whether --enable-recode or --disable-recode was given.
1607 if test "${enable_recode+set}" = set; then
1608 enableval="$enable_recode"
1613 cat >>confdefs.h <<\_ACEOF
1614 #define CYR_RECODE 1
1622 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1623 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1624 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $enable_recode" >&5
1634 echo "${ECHO_T}$enable_recode" >&6
1640 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1641 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1644 # Check whether --enable-nls or --disable-nls was given.
1645 if test "${enable_nls+set}" = set; then
1646 enableval="$enable_nls"
1657 WANTED_LANGUAGES=$enableval
1666 if test "$enable_nls" = yes; then
1668 cat >>confdefs.h <<\_ACEOF
1669 #define ENABLE_NLS 1
1674 echo "$as_me:$LINENO: result: $enable_nls" >&5
1675 echo "${ECHO_T}$enable_nls" >&6
1680 # Default port number (--with-pgport), default 5432
1682 echo "$as_me:$LINENO: checking for default port number" >&5
1683 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1687 # Check whether --with-pgport or --without-pgport was given.
1688 if test "${with_pgport+set}" = set; then
1689 withval="$with_pgport"
1693 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1694 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1695 { (exit 1); exit 1; }; }
1698 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1699 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1700 { (exit 1); exit 1; }; }
1703 default_port=$withval
1711 echo "$as_me:$LINENO: result: $default_port" >&5
1712 echo "${ECHO_T}$default_port" >&6
1713 # Need both of these because some places want an integer and some a string
1715 cat >>confdefs.h <<_ACEOF
1716 #define DEF_PGPORT ${default_port}
1720 cat >>confdefs.h <<_ACEOF
1721 #define DEF_PGPORT_STR "${default_port}"
1727 # Option to disable shared libraries
1731 # Check whether --enable-shared or --disable-shared was given.
1732 if test "${enable_shared+set}" = set; then
1733 enableval="$enable_shared"
1743 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1744 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1745 { (exit 1); exit 1; }; }
1757 # '-rpath'-like feature can be disabled
1761 # Check whether --enable-rpath or --disable-rpath was given.
1762 if test "${enable_rpath+set}" = set; then
1763 enableval="$enable_rpath"
1773 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1774 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1775 { (exit 1); exit 1; }; }
1788 # --enable-debug adds -g to compiler flags
1792 # Check whether --enable-debug or --disable-debug was given.
1793 if test "${enable_debug+set}" = set; then
1794 enableval="$enable_debug"
1804 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1805 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1806 { (exit 1); exit 1; }; }
1821 # For historical reasons you can also use --with-CC to specify the C compiler
1822 # to use, although the standard way to do this is to set the CC environment
1827 # Check whether --with-CC or --without-CC was given.
1828 if test "${with_CC+set}" = set; then
1833 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1834 echo "$as_me: error: argument required for --with-CC option" >&2;}
1835 { (exit 1); exit 1; }; }
1838 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1839 echo "$as_me: error: argument required for --with-CC option" >&2;}
1840 { (exit 1); exit 1; }; }
1851 aix) pgac_cc_list="gcc xlc";;
1852 irix) pgac_cc_list="cc";; # no gcc
1853 *) pgac_cc_list="gcc cc";;
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861 if test -n "$ac_tool_prefix"; then
1862 for ac_prog in $pgac_cc_list
1864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$CC"; then
1872 ac_cv_prog_CC="$CC" # Let the user override the test.
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 if test -n "$CC"; then
1892 echo "$as_me:$LINENO: result: $CC" >&5
1893 echo "${ECHO_T}$CC" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1899 test -n "$CC" && break
1902 if test -z "$CC"; then
1904 for ac_prog in $pgac_cc_list
1906 # Extract the first word of "$ac_prog", so it can be a program name with args.
1907 set dummy $ac_prog; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$ac_ct_CC"; then
1914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_ac_ct_CC="$ac_prog"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1933 if test -n "$ac_ct_CC"; then
1934 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1935 echo "${ECHO_T}$ac_ct_CC" >&6
1937 echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1941 test -n "$ac_ct_CC" && break
1948 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1949 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1950 { (exit 1); exit 1; }; }
1952 # Provide some information about the compiler.
1953 echo "$as_me:$LINENO:" \
1954 "checking for C compiler version" >&5
1955 ac_compiler=`set X $ac_compile; echo $2`
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1957 (eval $ac_compiler --version </dev/null >&5) 2>&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }
1961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1962 (eval $ac_compiler -v </dev/null >&5) 2>&5
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }
1966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1967 (eval $ac_compiler -V </dev/null >&5) 2>&5
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); }
1972 cat >conftest.$ac_ext <<_ACEOF
1973 #line $LINENO "configure"
1974 #include "confdefs.h"
1976 #ifdef F77_DUMMY_MAIN
1980 int F77_DUMMY_MAIN() { return 1; }
1990 ac_clean_files_save=$ac_clean_files
1991 ac_clean_files="$ac_clean_files a.out a.exe"
1992 # Try to create an executable without -o first, disregard a.out.
1993 # It will help us diagnose broken compilers, and finding out an intuition
1995 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1996 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1997 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1998 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1999 (eval $ac_link_default) 2>&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; then
2003 # Find the output, starting from the most likely. This scheme is
2004 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2007 # Be careful to initialize this variable, since it used to be cached.
2008 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2011 ls a.out conftest 2>/dev/null;
2012 ls a.* conftest.* 2>/dev/null`; do
2014 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2015 a.out ) # We found the default executable, but exeext='' is most
2018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2019 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2026 echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2029 echo "$as_me: error: C compiler cannot create executables" >&2;}
2030 { (exit 77); exit 77; }; }
2033 ac_exeext=$ac_cv_exeext
2034 echo "$as_me:$LINENO: result: $ac_file" >&5
2035 echo "${ECHO_T}$ac_file" >&6
2037 # Check the compiler produces executables we can run. If not, either
2038 # the compiler is broken, or we cross compile.
2039 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2040 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2041 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2042 # If not cross compiling, check that we can run a simple program.
2043 if test "$cross_compiling" != yes; then
2044 if { ac_try='./$ac_file'
2045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }; }; then
2052 if test "$cross_compiling" = maybe; then
2055 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'." >&5
2057 echo "$as_me: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'." >&2;}
2059 { (exit 1); exit 1; }; }
2063 echo "$as_me:$LINENO: result: yes" >&5
2064 echo "${ECHO_T}yes" >&6
2066 rm -f a.out a.exe conftest$ac_cv_exeext
2067 ac_clean_files=$ac_clean_files_save
2068 # Check the compiler produces executables we can run. If not, either
2069 # the compiler is broken, or we cross compile.
2070 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2071 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2072 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2073 echo "${ECHO_T}$cross_compiling" >&6
2075 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2076 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2078 (eval $ac_link) 2>&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; then
2082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2084 # work properly (i.e., refer to `conftest.exe'), while it won't with
2086 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2088 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2098 { (exit 1); exit 1; }; }
2101 rm -f conftest$ac_cv_exeext
2102 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2103 echo "${ECHO_T}$ac_cv_exeext" >&6
2105 rm -f conftest.$ac_ext
2106 EXEEXT=$ac_cv_exeext
2108 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2109 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2110 if test "${ac_cv_objext+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 cat >conftest.$ac_ext <<_ACEOF
2114 #line $LINENO "configure"
2115 #include "confdefs.h"
2117 #ifdef F77_DUMMY_MAIN
2121 int F77_DUMMY_MAIN() { return 1; }
2131 rm -f conftest.o conftest.obj
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; then
2137 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2145 echo "$as_me: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2148 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2149 { (exit 1); exit 1; }; }
2152 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2154 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2155 echo "${ECHO_T}$ac_cv_objext" >&6
2156 OBJEXT=$ac_cv_objext
2158 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2159 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2160 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 cat >conftest.$ac_ext <<_ACEOF
2164 #line $LINENO "configure"
2165 #include "confdefs.h"
2167 #ifdef F77_DUMMY_MAIN
2171 int F77_DUMMY_MAIN() { return 1; }
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2202 rm -f conftest.$ac_objext conftest.$ac_ext
2203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2206 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208 GCC=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CFLAGS=${CFLAGS+set}
2210 ac_save_CFLAGS=$CFLAGS
2212 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2213 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2214 if test "${ac_cv_prog_cc_g+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2221 #ifdef F77_DUMMY_MAIN
2225 int F77_DUMMY_MAIN() { return 1; }
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2253 rm -f conftest.$ac_objext conftest.$ac_ext
2255 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2257 if test "$ac_test_CFLAGS" = set; then
2258 CFLAGS=$ac_save_CFLAGS
2259 elif test $ac_cv_prog_cc_g = yes; then
2260 if test "$GCC" = yes; then
2266 if test "$GCC" = yes; then
2272 # Some people use a C++ compiler to compile C. Since we use `exit',
2273 # in C++ we need to declare it. In case someone uses the same compiler
2274 # for both compiling C and C++ we need to have the C++ compiler decide
2275 # the declaration of exit, since it's the most demanding environment.
2276 cat >conftest.$ac_ext <<_ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2293 for ac_declaration in \
2295 '#include <stdlib.h>' \
2296 'extern "C" void std::exit (int) throw (); using std::exit;' \
2297 'extern "C" void std::exit (int); using std::exit;' \
2298 'extern "C" void exit (int) throw ();' \
2299 'extern "C" void exit (int);' \
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2307 #ifdef F77_DUMMY_MAIN
2311 int F77_DUMMY_MAIN() { return 1; }
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2335 echo "$as_me: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2339 rm -f conftest.$ac_objext conftest.$ac_ext
2340 cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 #include "confdefs.h"
2344 #ifdef F77_DUMMY_MAIN
2348 int F77_DUMMY_MAIN() { return 1; }
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360 (eval $ac_compile) 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 echo "$as_me: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 rm -f conftest.$ac_objext conftest.$ac_ext
2378 if test -n "$ac_declaration"; then
2379 echo '#ifdef __cplusplus' >>confdefs.h
2380 echo $ac_declaration >>confdefs.h
2381 echo '#endif' >>confdefs.h
2385 echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 . "$srcdir/src/template/$template" || exit
2398 if test "$ac_env_CFLAGS_set" = set; then
2399 CFLAGS=$ac_env_CFLAGS_value
2401 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2404 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2405 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2407 # Check if the compiler still works with the template settings
2408 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2409 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2411 cat >conftest.$ac_ext <<_ACEOF
2412 #line $LINENO "configure"
2413 #include "confdefs.h"
2415 #ifdef F77_DUMMY_MAIN
2419 int F77_DUMMY_MAIN() { return 1; }
2429 rm -f conftest.$ac_objext conftest$ac_exeext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2431 (eval $ac_link) 2>&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -s conftest$ac_exeext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2444 echo "$as_me: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2448 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2449 echo "$as_me: error: cannot proceed" >&2;}
2450 { (exit 1); exit 1; }; }
2452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2454 # Defend against gcc -ffastmath
2455 if test "$GCC" = yes; then
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line $LINENO "configure"
2458 #include "confdefs.h"
2460 #ifdef F77_DUMMY_MAIN
2464 int F77_DUMMY_MAIN() { return 1; }
2469 #ifdef __FAST_MATH__
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2490 echo "$as_me: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2493 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2494 { (exit 1); exit 1; }; }
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2505 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2506 # On Suns, sometimes $CPP names a directory.
2507 if test -n "$CPP" && test -d "$CPP"; then
2510 if test -z "$CPP"; then
2511 if test "${ac_cv_prog_CPP+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 # Double quotes because CPP needs to be expanded
2515 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2518 for ac_c_preproc_warn_flag in '' yes
2520 # Use a header file that comes with gcc, so configuring glibc
2521 # with a fresh cross-compiler works.
2522 # On the NeXT, cc -E runs the code through the compiler's parser,
2523 # not just through cpp. "Syntax error" is here to catch this case.
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2533 egrep -v '^ *\+' conftest.er1 >conftest.err
2535 cat conftest.err >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } >/dev/null; then
2538 if test -s conftest.err; then
2539 ac_cpp_err=$ac_c_preproc_warn_flag
2546 if test -z "$ac_cpp_err"; then
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2551 # Broken: fails on valid input.
2554 rm -f conftest.err conftest.$ac_ext
2556 # OK, works on sane cases. Now check whether non-existent headers
2557 # can be detected and how.
2558 cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 #include "confdefs.h"
2561 #include <ac_nonexistent.h>
2563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2566 egrep -v '^ *\+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } >/dev/null; then
2571 if test -s conftest.err; then
2572 ac_cpp_err=$ac_c_preproc_warn_flag
2579 if test -z "$ac_cpp_err"; then
2580 # Broken: success on invalid input.
2583 echo "$as_me: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2585 # Passes both tests.
2589 rm -f conftest.err conftest.$ac_ext
2592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2593 rm -f conftest.err conftest.$ac_ext
2594 if $ac_preproc_ok; then
2606 echo "$as_me:$LINENO: result: $CPP" >&5
2607 echo "${ECHO_T}$CPP" >&6
2609 for ac_c_preproc_warn_flag in '' yes
2611 # Use a header file that comes with gcc, so configuring glibc
2612 # with a fresh cross-compiler works.
2613 # On the NeXT, cc -E runs the code through the compiler's parser,
2614 # not just through cpp. "Syntax error" is here to catch this case.
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 #include "confdefs.h"
2621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2624 egrep -v '^ *\+' conftest.er1 >conftest.err
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } >/dev/null; then
2629 if test -s conftest.err; then
2630 ac_cpp_err=$ac_c_preproc_warn_flag
2637 if test -z "$ac_cpp_err"; then
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 # Broken: fails on valid input.
2645 rm -f conftest.err conftest.$ac_ext
2647 # OK, works on sane cases. Now check whether non-existent headers
2648 # can be detected and how.
2649 cat >conftest.$ac_ext <<_ACEOF
2650 #line $LINENO "configure"
2651 #include "confdefs.h"
2652 #include <ac_nonexistent.h>
2654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2657 egrep -v '^ *\+' conftest.er1 >conftest.err
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } >/dev/null; then
2662 if test -s conftest.err; then
2663 ac_cpp_err=$ac_c_preproc_warn_flag
2670 if test -z "$ac_cpp_err"; then
2671 # Broken: success on invalid input.
2674 echo "$as_me: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2676 # Passes both tests.
2680 rm -f conftest.err conftest.$ac_ext
2683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2684 rm -f conftest.err conftest.$ac_ext
2685 if $ac_preproc_ok; then
2688 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2689 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2690 { (exit 1); exit 1; }; }
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701 # Create compiler version string
2702 if test x"$GCC" = x"yes" ; then
2703 cc_string="GCC `${CC} --version | sed q`"
2708 cat >>confdefs.h <<_ACEOF
2709 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2715 # Automatic dependency tracking
2719 # Check whether --enable-depend or --disable-depend was given.
2720 if test "${enable_depend+set}" = set; then
2721 enableval="$enable_depend"
2731 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2732 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2733 { (exit 1); exit 1; }; }
2746 # Enable assert checks
2750 # Check whether --enable-cassert or --disable-cassert was given.
2751 if test "${enable_cassert+set}" = set; then
2752 enableval="$enable_cassert"
2757 cat >>confdefs.h <<\_ACEOF
2758 #define USE_ASSERT_CHECKING 1
2766 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2767 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2768 { (exit 1); exit 1; }; }
2780 # Include directories
2784 # SRCH_INC comes from the template file
2785 for dir in $with_includes $SRCH_INC; do
2786 if test -d "$dir"; then
2787 INCLUDES="$INCLUDES -I$dir"
2789 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2790 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2798 # Library directories
2802 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2803 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2804 if test -d "$dir"; then
2805 LIBDIRS="$LIBDIRS -L$dir"
2807 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2808 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2814 # Enable libpq to be thread-safeness
2816 echo "$as_me:$LINENO: checking allow thread-safe libpq and ecpg" >&5
2817 echo $ECHO_N "checking allow thread-safe libpq and ecpg... $ECHO_C" >&6
2821 # Check whether --with-threads or --without-threads was given.
2822 if test "${with_threads+set}" = set; then
2823 withval="$with_threads"
2828 cat >>confdefs.h <<\_ACEOF
2829 #define USE_THREADS 1
2837 { { echo "$as_me:$LINENO: error: no argument expected for --with-threads option" >&5
2838 echo "$as_me: error: no argument expected for --with-threads option" >&2;}
2839 { (exit 1); exit 1; }; }
2849 echo "$as_me:$LINENO: result: $enable_thread_safeness" >&5
2850 echo "${ECHO_T}$enable_thread_safeness" >&6
2856 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2857 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2861 # Check whether --with-tcl or --without-tcl was given.
2862 if test "${with_tcl+set}" = set; then
2873 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2874 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2875 { (exit 1); exit 1; }; }
2884 echo "$as_me:$LINENO: result: $with_tcl" >&5
2885 echo "${ECHO_T}$with_tcl" >&6
2888 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2889 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2890 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2891 if test "$with_tcl" = yes; then
2895 # Check whether --with-tk or --without-tk was given.
2896 if test "${with_tk+set}" = set; then
2907 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2908 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2909 { (exit 1); exit 1; }; }
2921 echo "$as_me:$LINENO: result: $with_tk" >&5
2922 echo "${ECHO_T}$with_tk" >&6
2926 # We see if the path to the Tcl/Tk configuration scripts is specified.
2927 # This will override the use of tclsh to find the paths to search.
2932 # Check whether --with-tclconfig or --without-tclconfig was given.
2933 if test "${with_tclconfig+set}" = set; then
2934 withval="$with_tclconfig"
2938 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2939 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2940 { (exit 1); exit 1; }; }
2943 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2944 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2945 { (exit 1); exit 1; }; }
2955 # We see if the path to the Tk configuration scripts is specified.
2956 # This will override the use of tclsh to find the paths to search.
2961 # Check whether --with-tkconfig or --without-tkconfig was given.
2962 if test "${with_tkconfig+set}" = set; then
2963 withval="$with_tkconfig"
2967 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2968 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2969 { (exit 1); exit 1; }; }
2972 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2973 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2974 { (exit 1); exit 1; }; }
2985 # Optionally build Perl modules (PL/Perl)
2987 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2988 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2992 # Check whether --with-perl or --without-perl was given.
2993 if test "${with_perl+set}" = set; then
2994 withval="$with_perl"
3004 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3005 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3006 { (exit 1); exit 1; }; }
3015 echo "$as_me:$LINENO: result: $with_perl" >&5
3016 echo "${ECHO_T}$with_perl" >&6
3020 # Optionally build Python interface module
3022 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3023 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3027 # Check whether --with-python or --without-python was given.
3028 if test "${with_python+set}" = set; then
3029 withval="$with_python"
3039 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3040 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3041 { (exit 1); exit 1; }; }
3050 echo "$as_me:$LINENO: result: $with_python" >&5
3051 echo "${ECHO_T}$with_python" >&6
3055 # Optionally build the Java/JDBC tools
3057 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3058 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3062 # Check whether --with-java or --without-java was given.
3063 if test "${with_java+set}" = set; then
3064 withval="$with_java"
3068 echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3071 for ac_prog in jakarta-ant ant ant.sh ant.bat
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077 if test "${ac_cv_path_ANT+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 if test -n "$ANT"; then
3105 echo "$as_me:$LINENO: result: $ANT" >&5
3106 echo "${ECHO_T}$ANT" >&6
3108 echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6
3112 test -n "$ANT" && break
3116 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3117 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3118 if test "${pgac_cv_prog_ant_works+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 cat > conftest.java << EOF
3123 public class conftest {
3124 int testmethod(int a, int b) {
3130 cat > conftest.xml << EOF
3131 <project name="conftest" default="conftest">
3132 <target name="conftest">
3133 <javac srcdir="." includes="conftest.java">
3139 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3140 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3141 (eval $pgac_cmd) 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }
3146 if test $? = 0 && test -f ./conftest.class ; then
3147 pgac_cv_prog_ant_works=yes
3149 echo "configure: failed java program was:" >&5
3150 cat conftest.java >&5
3151 echo "configure: failed build file was:" >&5
3152 cat conftest.xml >&5
3153 pgac_cv_prog_ant_works=no
3156 rm -f conftest* core core.* *.core
3159 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3160 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3162 if test "$pgac_cv_prog_ant_works" != yes; then
3163 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3164 echo "$as_me: error: ant does not work" >&2;}
3165 { (exit 1); exit 1; }; }
3169 if test -z "$ANT"; then
3170 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3171 If you have Ant already installed, see config.log for details on the failure." >&5
3172 echo "$as_me: error: Ant is required to build Java components
3173 If you have Ant already installed, see config.log for details on the failure." >&2;}
3174 { (exit 1); exit 1; }; }
3176 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3177 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3178 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3179 { (exit 1); exit 1; }; }
3183 echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3187 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3188 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3189 { (exit 1); exit 1; }; }
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3205 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3206 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3210 # Check whether --with-krb4 or --without-krb4 was given.
3211 if test "${with_krb4+set}" = set; then
3212 withval="$with_krb4"
3216 krb4_prefix=/usr/athena
3223 krb4_prefix=$withval
3232 if test "$with_krb4" = yes; then
3234 echo "$as_me:$LINENO: result: yes" >&5
3235 echo "${ECHO_T}yes" >&6
3237 cat >>confdefs.h <<\_ACEOF
3242 if test -d "$krb4_prefix/include"; then
3243 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3245 if test -d "$krb4_prefix/lib"; then
3246 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3249 krb_srvtab="/etc/srvtab"
3252 echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3268 # Check whether --with-krb5 or --without-krb5 was given.
3269 if test "${with_krb5+set}" = set; then
3270 withval="$with_krb5"
3274 krb5_prefix=/usr/athena
3281 krb5_prefix=$withval
3290 if test "$with_krb5" = yes; then
3292 echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3295 cat >>confdefs.h <<\_ACEOF
3300 if test -d "$krb5_prefix/include"; then
3301 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3303 if test -d "$krb5_prefix/lib"; then
3304 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3307 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3318 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3319 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3320 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3321 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3322 { (exit 1); exit 1; }; }
3329 # Kerberos configuration parameters
3334 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3335 if test "${with_krb_srvnam+set}" = set; then
3336 withval="$with_krb_srvnam"
3340 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342 { (exit 1); exit 1; }; }
3345 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3346 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3347 { (exit 1); exit 1; }; }
3355 with_krb_srvnam="postgres"
3359 cat >>confdefs.h <<_ACEOF
3360 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3368 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3369 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3373 # Check whether --with-pam or --without-pam was given.
3374 if test "${with_pam+set}" = set; then
3380 cat >>confdefs.h <<\_ACEOF
3389 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3390 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3391 { (exit 1); exit 1; }; }
3400 echo "$as_me:$LINENO: result: $with_pam" >&5
3401 echo "${ECHO_T}$with_pam" >&6
3408 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3409 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3413 # Check whether --with-rendezvous or --without-rendezvous was given.
3414 if test "${with_rendezvous+set}" = set; then
3415 withval="$with_rendezvous"
3420 cat >>confdefs.h <<\_ACEOF
3421 #define USE_RENDEZVOUS 1
3429 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3430 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3431 { (exit 1); exit 1; }; }
3440 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3441 echo "${ECHO_T}$with_rendezvous" >&6
3451 # Check whether --with-openssl or --without-openssl was given.
3452 if test "${with_openssl+set}" = set; then
3453 withval="$with_openssl"
3457 openssl_prefix=/usr/local/ssl
3464 openssl_prefix=$withval
3473 if test "$with_openssl" = yes; then
3475 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3476 echo "${ECHO_T}building with OpenSSL support" >&6
3478 cat >>confdefs.h <<\_ACEOF
3483 if test -d "${openssl_prefix}/include" ; then
3484 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3486 if test -d "${openssl_prefix}/lib" ; then
3487 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3502 # Check whether --with-readline or --without-readline was given.
3503 if test "${with_readline+set}" = set; then
3504 withval="$with_readline"
3514 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3515 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3516 { (exit 1); exit 1; }; }
3532 # Check whether --with-zlib or --without-zlib was given.
3533 if test "${with_zlib+set}" = set; then
3534 withval="$with_zlib"
3544 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3545 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3546 { (exit 1); exit 1; }; }
3561 # Assume system is ELF if it predefines __ELF__ as 1,
3562 # otherwise believe host_os based default.
3564 freebsd1*|freebsd2*) elf=no;;
3565 freebsd3*|freebsd4*) elf=yes;;
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3571 #include "confdefs.h"
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 egrep "yes" >/dev/null 2>&1; then
3581 if test "X$elf" = "Xyes" ; then
3595 CPPFLAGS="$CPPFLAGS $INCLUDES"
3596 LDFLAGS="$LDFLAGS $LIBDIRS"
3598 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3599 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3600 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3601 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3604 for ac_prog in gawk mawk nawk awk
3606 # Extract the first word of "$ac_prog", so it can be a program name with args.
3607 set dummy $ac_prog; ac_word=$2
3608 echo "$as_me:$LINENO: checking for $ac_word" >&5
3609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3610 if test "${ac_cv_prog_AWK+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 if test -n "$AWK"; then
3614 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_AWK="$ac_prog"
3624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 if test -n "$AWK"; then
3634 echo "$as_me:$LINENO: result: $AWK" >&5
3635 echo "${ECHO_T}$AWK" >&6
3637 echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3641 test -n "$AWK" && break
3644 echo "$as_me:$LINENO: checking for flex" >&5
3645 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3646 if test "${pgac_cv_path_flex+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 # Let the user override the test
3650 if test -n "$FLEX"; then
3651 pgac_cv_path_flex=$FLEX
3655 for pgac_dir in $PATH; do
3656 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3659 for pgac_prog in flex lex; do
3660 pgac_candidate="$pgac_dir/$pgac_prog"
3661 if test -f "$pgac_candidate" \
3662 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3664 echo '%%' > conftest.l
3665 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3666 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3667 pgac_broken_flex=$pgac_candidate
3671 pgac_cv_path_flex=$pgac_candidate
3679 : ${pgac_cv_path_flex=no}
3683 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3684 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3685 if test x"$pgac_cv_path_flex" = x"no"; then
3686 if test -n "$pgac_broken_flex"; then
3687 { echo "$as_me:$LINENO: WARNING:
3688 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3689 *** should get version 2.5.4 or later." >&5
3690 echo "$as_me: WARNING:
3691 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3692 *** should get version 2.5.4 or later." >&2;}
3695 { echo "$as_me:$LINENO: WARNING:
3696 *** Without Flex you will not be able to build PostgreSQL from CVS or
3697 *** change any of the scanner definition files. You can obtain Flex from
3698 *** a GNU mirror site. (If you are using the official distribution of
3699 *** PostgreSQL then you do not need to worry about this because the Flex
3700 *** output is pre-generated.)" >&5
3701 echo "$as_me: WARNING:
3702 *** Without Flex you will not be able to build PostgreSQL from CVS or
3703 *** change any of the scanner definition files. You can obtain Flex from
3704 *** a GNU mirror site. (If you are using the official distribution of
3705 *** PostgreSQL then you do not need to worry about this because the Flex
3706 *** output is pre-generated.)" >&2;}
3709 if test x"$pgac_cv_path_flex" = x"no"; then
3712 FLEX=$pgac_cv_path_flex
3718 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3719 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3721 if test "$LN_S" = "ln -s"; then
3722 echo "$as_me:$LINENO: result: yes" >&5
3723 echo "${ECHO_T}yes" >&6
3725 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3726 echo "${ECHO_T}no, using $LN_S" >&6
3730 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3731 if test "${with_gnu_ld+set}" = set; then
3732 withval="$with_gnu_ld"
3733 test "$withval" = no || with_gnu_ld=yes
3738 if test "$GCC" = yes; then
3739 # Check if gcc -print-prog-name=ld gives a path.
3740 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3741 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3744 # gcc leaves a trailing carriage return which upsets mingw
3745 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3747 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3750 # Accept absolute paths.
3751 [\\/]* | [A-Za-z]:[\\/]*)
3752 re_direlt='/[^/][^/]*/\.\./'
3753 # Canonicalize the path of ld
3754 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3755 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3756 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3758 test -z "$LD" && LD="$ac_prog"
3761 # If it fails, then pretend we aren't using GCC.
3765 # If it is relative, then search for the first ld in PATH.
3769 elif test "$with_gnu_ld" = yes; then
3770 echo "$as_me:$LINENO: checking for GNU ld" >&5
3771 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3773 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3774 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3776 if test "${ac_cv_path_LD+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 if test -z "$LD"; then
3780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3781 for ac_dir in $PATH; do
3782 test -z "$ac_dir" && ac_dir=.
3783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3784 ac_cv_path_LD="$ac_dir/$ac_prog"
3785 # Check to see if the program is GNU ld. I'd rather use --version,
3786 # but apparently some GNU ld's only accept -v.
3787 # Break only if it was the GNU/non-GNU ld that we prefer.
3788 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3789 test "$with_gnu_ld" != no && break
3791 test "$with_gnu_ld" != yes && break
3797 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3802 if test -n "$LD"; then
3803 echo "$as_me:$LINENO: result: $LD" >&5
3804 echo "${ECHO_T}$LD" >&6
3806 echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6
3809 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3810 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3811 { (exit 1); exit 1; }; }
3812 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3813 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3814 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3818 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3819 ac_cv_prog_gnu_ld=yes
3821 ac_cv_prog_gnu_ld=no
3824 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3825 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3826 with_gnu_ld=$ac_cv_prog_gnu_ld
3831 case $host_os in sysv5*)
3832 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3833 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3834 if test "${pgac_cv_prog_ld_R+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3839 cat >conftest.$ac_ext <<_ACEOF
3840 #line $LINENO "configure"
3841 #include "confdefs.h"
3843 #ifdef F77_DUMMY_MAIN
3847 int F77_DUMMY_MAIN() { return 1; }
3857 rm -f conftest.$ac_objext conftest$ac_exeext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859 (eval $ac_link) 2>&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } &&
3863 { ac_try='test -s conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 pgac_cv_prog_ld_R=yes
3871 echo "$as_me: failed program was:" >&5
3872 cat conftest.$ac_ext >&5
3873 pgac_cv_prog_ld_R=no
3875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3876 LDFLAGS=$pgac_save_LDFLAGS
3879 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3880 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3881 ld_R_works=$pgac_cv_prog_ld_R
3884 if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3887 echo "$as_me:$LINENO: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_RANLIB+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 if test -n "$RANLIB"; then
3893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 RANLIB=$ac_cv_prog_RANLIB
3912 if test -n "$RANLIB"; then
3913 echo "$as_me:$LINENO: result: $RANLIB" >&5
3914 echo "${ECHO_T}$RANLIB" >&6
3916 echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6
3921 if test -z "$ac_cv_prog_RANLIB"; then
3922 ac_ct_RANLIB=$RANLIB
3923 # Extract the first word of "ranlib", so it can be a program name with args.
3924 set dummy ranlib; ac_word=$2
3925 echo "$as_me:$LINENO: checking for $ac_word" >&5
3926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3927 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 if test -n "$ac_ct_RANLIB"; then
3931 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_ac_ct_RANLIB="ranlib"
3941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3951 if test -n "$ac_ct_RANLIB"; then
3952 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3953 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3955 echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3959 RANLIB=$ac_ct_RANLIB
3961 RANLIB="$ac_cv_prog_RANLIB"
3964 for ac_prog in lorder
3966 # Extract the first word of "$ac_prog", so it can be a program name with args.
3967 set dummy $ac_prog; ac_word=$2
3968 echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3970 if test "${ac_cv_prog_LORDER+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 if test -n "$LORDER"; then
3974 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983 ac_cv_prog_LORDER="$ac_prog"
3984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 LORDER=$ac_cv_prog_LORDER
3993 if test -n "$LORDER"; then
3994 echo "$as_me:$LINENO: result: $LORDER" >&5
3995 echo "${ECHO_T}$LORDER" >&6
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4001 test -n "$LORDER" && break
4004 # Extract the first word of "tar", so it can be a program name with args.
4005 set dummy tar; ac_word=$2
4006 echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_path_TAR+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 if test -n "$TAR"; then
4036 echo "$as_me:$LINENO: result: $TAR" >&5
4037 echo "${ECHO_T}$TAR" >&6
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4044 if test -n "$ac_tool_prefix"; then
4045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4046 set dummy ${ac_tool_prefix}strip; ac_word=$2
4047 echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_STRIP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 if test -n "$STRIP"; then
4053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 STRIP=$ac_cv_prog_STRIP
4072 if test -n "$STRIP"; then
4073 echo "$as_me:$LINENO: result: $STRIP" >&5
4074 echo "${ECHO_T}$STRIP" >&6
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4081 if test -z "$ac_cv_prog_STRIP"; then
4083 # Extract the first word of "strip", so it can be a program name with args.
4084 set dummy strip; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 if test -n "$ac_ct_STRIP"; then
4091 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_ac_ct_STRIP="strip"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4110 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4111 if test -n "$ac_ct_STRIP"; then
4112 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4113 echo "${ECHO_T}$ac_ct_STRIP" >&6
4115 echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4121 STRIP="$ac_cv_prog_STRIP"
4125 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4126 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4127 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4128 STRIP_STATIC_LIB="$STRIP -x"
4129 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4130 echo "$as_me:$LINENO: result: yes" >&5
4131 echo "${ECHO_T}yes" >&6
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4142 for ac_prog in 'bison -y'
4144 # Extract the first word of "$ac_prog", so it can be a program name with args.
4145 set dummy $ac_prog; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_YACC+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 if test -n "$YACC"; then
4152 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161 ac_cv_prog_YACC="$ac_prog"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 YACC=$ac_cv_prog_YACC
4171 if test -n "$YACC"; then
4172 echo "$as_me:$LINENO: result: $YACC" >&5
4173 echo "${ECHO_T}$YACC" >&6
4175 echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4179 test -n "$YACC" && break
4183 if test "$YACC"; then
4184 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4185 { echo "$as_me:$LINENO: WARNING:
4186 *** The installed version of Bison is too old. PostgreSQL needs
4187 *** Bison version 1.875 or later." >&5
4188 echo "$as_me: WARNING:
4189 *** The installed version of Bison is too old. PostgreSQL needs
4190 *** Bison version 1.875 or later." >&2;}
4194 if test -z "$YACC"; then
4195 { echo "$as_me:$LINENO: WARNING:
4196 *** Without Bison you will not be able to build PostgreSQL from CVS or
4197 *** change any of the parser definition files. You can obtain Bison from
4198 *** a GNU mirror site. (If you are using the official distribution of
4199 *** PostgreSQL then you do not need to worry about this because the Bison
4200 *** output is pre-generated.) To use a different yacc program (possible,
4201 *** but not recommended), set the environment variable YACC before running
4202 *** 'configure'." >&5
4203 echo "$as_me: WARNING:
4204 *** Without Bison you will not be able to build PostgreSQL from CVS or
4205 *** change any of the parser definition files. You can obtain Bison from
4206 *** a GNU mirror site. (If you are using the official distribution of
4207 *** PostgreSQL then you do not need to worry about this because the Bison
4208 *** output is pre-generated.) To use a different yacc program (possible,
4209 *** but not recommended), set the environment variable YACC before running
4210 *** 'configure'." >&2;}
4214 # Extract the first word of "perl", so it can be a program name with args.
4215 set dummy perl; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_path_PERL+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 PERL=$ac_cv_path_PERL
4245 if test -n "$PERL"; then
4246 echo "$as_me:$LINENO: result: $PERL" >&5
4247 echo "${ECHO_T}$PERL" >&6
4249 echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6
4253 if test "$with_perl" = yes; then
4255 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4256 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4257 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4258 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4259 echo "${ECHO_T}$perl_archlibexp" >&6
4260 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4261 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4262 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4263 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4264 echo "${ECHO_T}$perl_privlibexp" >&6
4265 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4266 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4267 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4268 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4269 echo "${ECHO_T}$perl_useshrplib" >&6
4271 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4272 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4273 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4274 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4275 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4276 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4277 echo "${ECHO_T}$perl_embed_ldflags" >&6
4280 if test "$with_python" = yes; then
4281 # Extract the first word of "python", so it can be a program name with args.
4282 set dummy python; ac_word=$2
4283 echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_path_PYTHON+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 PYTHON=$ac_cv_path_PYTHON
4312 if test -n "$PYTHON"; then
4313 echo "$as_me:$LINENO: result: $PYTHON" >&5
4314 echo "${ECHO_T}$PYTHON" >&6
4316 echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6
4320 if test x"$PYTHON" = x""; then
4321 { { echo "$as_me:$LINENO: error: Python not found" >&5
4322 echo "$as_me: error: Python not found" >&2;}
4323 { (exit 1); exit 1; }; }
4327 echo "$as_me:$LINENO: checking Python installation directories" >&5
4328 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4329 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4330 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4331 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4332 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4333 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4334 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4335 python_includespec="-I${python_prefix}/include/python${python_version}"
4336 if test "$python_prefix" != "$python_execprefix"; then
4337 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4340 # This should be enough of a message.
4341 if test "$python_prefix" != "$python_execprefix"; then
4342 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4343 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4345 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4346 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4353 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4354 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4356 if test ! -f "$python_configdir/Makefile"; then
4357 echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6
4359 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4360 echo "$as_me: error: Python Makefile not found" >&2;}
4361 { (exit 1); exit 1; }; }
4364 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4365 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4366 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4367 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4368 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4370 pgac_tab=" " # tab character
4371 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"`
4373 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4374 echo "${ECHO_T}${python_libspec}" >&6
4384 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4387 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4388 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4389 if test "${ac_cv_lib_bsd_main+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 ac_check_lib_save_LIBS=$LIBS
4394 cat >conftest.$ac_ext <<_ACEOF
4395 #line $LINENO "configure"
4396 #include "confdefs.h"
4399 #ifdef F77_DUMMY_MAIN
4403 int F77_DUMMY_MAIN() { return 1; }
4413 rm -f conftest.$ac_objext conftest$ac_exeext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415 (eval $ac_link) 2>&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); } &&
4419 { ac_try='test -s conftest$ac_exeext'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4425 ac_cv_lib_bsd_main=yes
4427 echo "$as_me: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4429 ac_cv_lib_bsd_main=no
4431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4432 LIBS=$ac_check_lib_save_LIBS
4434 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4435 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4436 if test $ac_cv_lib_bsd_main = yes; then
4437 cat >>confdefs.h <<_ACEOF
4438 #define HAVE_LIBBSD 1
4447 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4448 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4449 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 ac_check_lib_save_LIBS=$LIBS
4454 cat >conftest.$ac_ext <<_ACEOF
4455 #line $LINENO "configure"
4456 #include "confdefs.h"
4458 /* Override any gcc2 internal prototype to avoid an error. */
4462 /* We use char because int might match the return type of a gcc2
4463 builtin and then its argument prototype would still apply. */
4464 char setproctitle ();
4465 #ifdef F77_DUMMY_MAIN
4469 int F77_DUMMY_MAIN() { return 1; }
4479 rm -f conftest.$ac_objext conftest$ac_exeext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4481 (eval $ac_link) 2>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -s conftest$ac_exeext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 ac_cv_lib_util_setproctitle=yes
4493 echo "$as_me: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4495 ac_cv_lib_util_setproctitle=no
4497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4498 LIBS=$ac_check_lib_save_LIBS
4500 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4501 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4502 if test $ac_cv_lib_util_setproctitle = yes; then
4503 cat >>confdefs.h <<_ACEOF
4504 #define HAVE_LIBUTIL 1
4512 echo "$as_me:$LINENO: checking for main in -lm" >&5
4513 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4514 if test "${ac_cv_lib_m_main+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 ac_check_lib_save_LIBS=$LIBS
4519 cat >conftest.$ac_ext <<_ACEOF
4520 #line $LINENO "configure"
4521 #include "confdefs.h"
4524 #ifdef F77_DUMMY_MAIN
4528 int F77_DUMMY_MAIN() { return 1; }
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -s conftest$ac_exeext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_cv_lib_m_main=yes
4552 echo "$as_me: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4557 LIBS=$ac_check_lib_save_LIBS
4559 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4560 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4561 if test $ac_cv_lib_m_main = yes; then
4562 cat >>confdefs.h <<_ACEOF
4571 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4572 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4573 if test "${ac_cv_lib_dl_main+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 ac_check_lib_save_LIBS=$LIBS
4578 cat >conftest.$ac_ext <<_ACEOF
4579 #line $LINENO "configure"
4580 #include "confdefs.h"
4583 #ifdef F77_DUMMY_MAIN
4587 int F77_DUMMY_MAIN() { return 1; }
4597 rm -f conftest.$ac_objext conftest$ac_exeext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599 (eval $ac_link) 2>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } &&
4603 { ac_try='test -s conftest$ac_exeext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 ac_cv_lib_dl_main=yes
4611 echo "$as_me: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4613 ac_cv_lib_dl_main=no
4615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4616 LIBS=$ac_check_lib_save_LIBS
4618 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4619 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4620 if test $ac_cv_lib_dl_main = yes; then
4621 cat >>confdefs.h <<_ACEOF
4622 #define HAVE_LIBDL 1
4630 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4631 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4632 if test "${ac_cv_lib_nsl_main+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 ac_check_lib_save_LIBS=$LIBS
4637 cat >conftest.$ac_ext <<_ACEOF
4638 #line $LINENO "configure"
4639 #include "confdefs.h"
4642 #ifdef F77_DUMMY_MAIN
4646 int F77_DUMMY_MAIN() { return 1; }
4656 rm -f conftest.$ac_objext conftest$ac_exeext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658 (eval $ac_link) 2>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -s conftest$ac_exeext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 ac_cv_lib_nsl_main=yes
4670 echo "$as_me: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4672 ac_cv_lib_nsl_main=no
4674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4675 LIBS=$ac_check_lib_save_LIBS
4677 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4678 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4679 if test $ac_cv_lib_nsl_main = yes; then
4680 cat >>confdefs.h <<_ACEOF
4681 #define HAVE_LIBNSL 1
4689 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4690 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4691 if test "${ac_cv_lib_socket_main+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 ac_check_lib_save_LIBS=$LIBS
4695 LIBS="-lsocket $LIBS"
4696 cat >conftest.$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4698 #include "confdefs.h"
4701 #ifdef F77_DUMMY_MAIN
4705 int F77_DUMMY_MAIN() { return 1; }
4715 rm -f conftest.$ac_objext conftest$ac_exeext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717 (eval $ac_link) 2>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -s conftest$ac_exeext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 ac_cv_lib_socket_main=yes
4729 echo "$as_me: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 ac_cv_lib_socket_main=no
4733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4734 LIBS=$ac_check_lib_save_LIBS
4736 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4737 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4738 if test $ac_cv_lib_socket_main = yes; then
4739 cat >>confdefs.h <<_ACEOF
4740 #define HAVE_LIBSOCKET 1
4743 LIBS="-lsocket $LIBS"
4748 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4749 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4750 if test "${ac_cv_lib_ipc_main+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 ac_check_lib_save_LIBS=$LIBS
4755 cat >conftest.$ac_ext <<_ACEOF
4756 #line $LINENO "configure"
4757 #include "confdefs.h"
4760 #ifdef F77_DUMMY_MAIN
4764 int F77_DUMMY_MAIN() { return 1; }
4774 rm -f conftest.$ac_objext conftest$ac_exeext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4776 (eval $ac_link) 2>&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -s conftest$ac_exeext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 ac_cv_lib_ipc_main=yes
4788 echo "$as_me: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4790 ac_cv_lib_ipc_main=no
4792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4793 LIBS=$ac_check_lib_save_LIBS
4795 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4796 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4797 if test $ac_cv_lib_ipc_main = yes; then
4798 cat >>confdefs.h <<_ACEOF
4799 #define HAVE_LIBIPC 1
4807 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4808 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4809 if test "${ac_cv_lib_IPC_main+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 ac_check_lib_save_LIBS=$LIBS
4814 cat >conftest.$ac_ext <<_ACEOF
4815 #line $LINENO "configure"
4816 #include "confdefs.h"
4819 #ifdef F77_DUMMY_MAIN
4823 int F77_DUMMY_MAIN() { return 1; }
4833 rm -f conftest.$ac_objext conftest$ac_exeext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4835 (eval $ac_link) 2>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try='test -s conftest$ac_exeext'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 ac_cv_lib_IPC_main=yes
4847 echo "$as_me: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4849 ac_cv_lib_IPC_main=no
4851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4852 LIBS=$ac_check_lib_save_LIBS
4854 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4855 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4856 if test $ac_cv_lib_IPC_main = yes; then
4857 cat >>confdefs.h <<_ACEOF
4858 #define HAVE_LIBIPC 1
4866 echo "$as_me:$LINENO: checking for main in -llc" >&5
4867 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4868 if test "${ac_cv_lib_lc_main+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 ac_check_lib_save_LIBS=$LIBS
4873 cat >conftest.$ac_ext <<_ACEOF
4874 #line $LINENO "configure"
4875 #include "confdefs.h"
4878 #ifdef F77_DUMMY_MAIN
4882 int F77_DUMMY_MAIN() { return 1; }
4892 rm -f conftest.$ac_objext conftest$ac_exeext
4893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4894 (eval $ac_link) 2>&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -s conftest$ac_exeext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_lib_lc_main=yes
4906 echo "$as_me: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4908 ac_cv_lib_lc_main=no
4910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4911 LIBS=$ac_check_lib_save_LIBS
4913 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4914 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4915 if test $ac_cv_lib_lc_main = yes; then
4916 cat >>confdefs.h <<_ACEOF
4917 #define HAVE_LIBLC 1
4925 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4926 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4927 if test "${ac_cv_lib_dld_main+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 ac_check_lib_save_LIBS=$LIBS
4932 cat >conftest.$ac_ext <<_ACEOF
4933 #line $LINENO "configure"
4934 #include "confdefs.h"
4937 #ifdef F77_DUMMY_MAIN
4941 int F77_DUMMY_MAIN() { return 1; }
4951 rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4953 (eval $ac_link) 2>&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try='test -s conftest$ac_exeext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 ac_cv_lib_dld_main=yes
4965 echo "$as_me: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4967 ac_cv_lib_dld_main=no
4969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4970 LIBS=$ac_check_lib_save_LIBS
4972 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4973 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4974 if test $ac_cv_lib_dld_main = yes; then
4975 cat >>confdefs.h <<_ACEOF
4976 #define HAVE_LIBDLD 1
4984 echo "$as_me:$LINENO: checking for main in -lld" >&5
4985 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4986 if test "${ac_cv_lib_ld_main+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 ac_check_lib_save_LIBS=$LIBS
4991 cat >conftest.$ac_ext <<_ACEOF
4992 #line $LINENO "configure"
4993 #include "confdefs.h"
4996 #ifdef F77_DUMMY_MAIN
5000 int F77_DUMMY_MAIN() { return 1; }
5010 rm -f conftest.$ac_objext conftest$ac_exeext
5011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5012 (eval $ac_link) 2>&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -s conftest$ac_exeext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 ac_cv_lib_ld_main=yes
5024 echo "$as_me: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5026 ac_cv_lib_ld_main=no
5028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5029 LIBS=$ac_check_lib_save_LIBS
5031 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5032 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5033 if test $ac_cv_lib_ld_main = yes; then
5034 cat >>confdefs.h <<_ACEOF
5035 #define HAVE_LIBLD 1
5043 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5044 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5045 if test "${ac_cv_lib_compat_main+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 ac_check_lib_save_LIBS=$LIBS
5049 LIBS="-lcompat $LIBS"
5050 cat >conftest.$ac_ext <<_ACEOF
5051 #line $LINENO "configure"
5052 #include "confdefs.h"
5055 #ifdef F77_DUMMY_MAIN
5059 int F77_DUMMY_MAIN() { return 1; }
5069 rm -f conftest.$ac_objext conftest$ac_exeext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5071 (eval $ac_link) 2>&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -s conftest$ac_exeext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_cv_lib_compat_main=yes
5083 echo "$as_me: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 ac_cv_lib_compat_main=no
5087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5088 LIBS=$ac_check_lib_save_LIBS
5090 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5091 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5092 if test $ac_cv_lib_compat_main = yes; then
5093 cat >>confdefs.h <<_ACEOF
5094 #define HAVE_LIBCOMPAT 1
5097 LIBS="-lcompat $LIBS"
5102 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5103 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5104 if test "${ac_cv_lib_BSD_main+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 ac_check_lib_save_LIBS=$LIBS
5109 cat >conftest.$ac_ext <<_ACEOF
5110 #line $LINENO "configure"
5111 #include "confdefs.h"
5114 #ifdef F77_DUMMY_MAIN
5118 int F77_DUMMY_MAIN() { return 1; }
5128 rm -f conftest.$ac_objext conftest$ac_exeext
5129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5130 (eval $ac_link) 2>&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } &&
5134 { ac_try='test -s conftest$ac_exeext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 ac_cv_lib_BSD_main=yes
5142 echo "$as_me: failed program was:" >&5
5143 cat conftest.$ac_ext >&5
5144 ac_cv_lib_BSD_main=no
5146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5147 LIBS=$ac_check_lib_save_LIBS
5149 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5150 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5151 if test $ac_cv_lib_BSD_main = yes; then
5152 cat >>confdefs.h <<_ACEOF
5153 #define HAVE_LIBBSD 1
5161 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5162 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5163 if test "${ac_cv_lib_gen_main+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 ac_check_lib_save_LIBS=$LIBS
5168 cat >conftest.$ac_ext <<_ACEOF
5169 #line $LINENO "configure"
5170 #include "confdefs.h"
5173 #ifdef F77_DUMMY_MAIN
5177 int F77_DUMMY_MAIN() { return 1; }
5187 rm -f conftest.$ac_objext conftest$ac_exeext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5189 (eval $ac_link) 2>&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -s conftest$ac_exeext'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 ac_cv_lib_gen_main=yes
5201 echo "$as_me: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5203 ac_cv_lib_gen_main=no
5205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5206 LIBS=$ac_check_lib_save_LIBS
5208 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5209 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5210 if test $ac_cv_lib_gen_main = yes; then
5211 cat >>confdefs.h <<_ACEOF
5212 #define HAVE_LIBGEN 1
5220 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5221 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5222 if test "${ac_cv_lib_PW_main+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 ac_check_lib_save_LIBS=$LIBS
5227 cat >conftest.$ac_ext <<_ACEOF
5228 #line $LINENO "configure"
5229 #include "confdefs.h"
5232 #ifdef F77_DUMMY_MAIN
5236 int F77_DUMMY_MAIN() { return 1; }
5246 rm -f conftest.$ac_objext conftest$ac_exeext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5248 (eval $ac_link) 2>&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } &&
5252 { ac_try='test -s conftest$ac_exeext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_lib_PW_main=yes
5260 echo "$as_me: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5262 ac_cv_lib_PW_main=no
5264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5265 LIBS=$ac_check_lib_save_LIBS
5267 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5268 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5269 if test $ac_cv_lib_PW_main = yes; then
5270 cat >>confdefs.h <<_ACEOF
5271 #define HAVE_LIBPW 1
5279 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5280 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5281 if test "${ac_cv_lib_resolv_main+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 ac_check_lib_save_LIBS=$LIBS
5285 LIBS="-lresolv $LIBS"
5286 cat >conftest.$ac_ext <<_ACEOF
5287 #line $LINENO "configure"
5288 #include "confdefs.h"
5291 #ifdef F77_DUMMY_MAIN
5295 int F77_DUMMY_MAIN() { return 1; }
5305 rm -f conftest.$ac_objext conftest$ac_exeext
5306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5307 (eval $ac_link) 2>&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } &&
5311 { ac_try='test -s conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 ac_cv_lib_resolv_main=yes
5319 echo "$as_me: failed program was:" >&5
5320 cat conftest.$ac_ext >&5
5321 ac_cv_lib_resolv_main=no
5323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5324 LIBS=$ac_check_lib_save_LIBS
5326 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5327 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5328 if test $ac_cv_lib_resolv_main = yes; then
5329 cat >>confdefs.h <<_ACEOF
5330 #define HAVE_LIBRESOLV 1
5333 LIBS="-lresolv $LIBS"
5338 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5339 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5340 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 ac_check_lib_save_LIBS=$LIBS
5344 LIBS="-lwsock32 $LIBS"
5345 cat >conftest.$ac_ext <<_ACEOF
5346 #line $LINENO "configure"
5347 #include "confdefs.h"
5350 #ifdef F77_DUMMY_MAIN
5354 int F77_DUMMY_MAIN() { return 1; }
5364 rm -f conftest.$ac_objext conftest$ac_exeext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5366 (eval $ac_link) 2>&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try='test -s conftest$ac_exeext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 ac_cv_lib_wsock32_main=yes
5378 echo "$as_me: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5380 ac_cv_lib_wsock32_main=no
5382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5383 LIBS=$ac_check_lib_save_LIBS
5385 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5386 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5387 if test $ac_cv_lib_wsock32_main = yes; then
5388 cat >>confdefs.h <<_ACEOF
5389 #define HAVE_LIBWSOCK32 1
5392 LIBS="-lwsock32 $LIBS"
5396 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5397 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5398 if test "${ac_cv_search_getopt_long+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 ac_func_search_save_LIBS=$LIBS
5402 ac_cv_search_getopt_long=no
5403 cat >conftest.$ac_ext <<_ACEOF
5404 #line $LINENO "configure"
5405 #include "confdefs.h"
5407 /* Override any gcc2 internal prototype to avoid an error. */
5411 /* We use char because int might match the return type of a gcc2
5412 builtin and then its argument prototype would still apply. */
5413 char getopt_long ();
5414 #ifdef F77_DUMMY_MAIN
5418 int F77_DUMMY_MAIN() { return 1; }
5428 rm -f conftest.$ac_objext conftest$ac_exeext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5430 (eval $ac_link) 2>&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
5434 { ac_try='test -s conftest$ac_exeext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 ac_cv_search_getopt_long="none required"
5442 echo "$as_me: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5446 if test "$ac_cv_search_getopt_long" = no; then
5447 for ac_lib in getopt gnugetopt; do
5448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5449 cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5451 #include "confdefs.h"
5453 /* Override any gcc2 internal prototype to avoid an error. */
5457 /* We use char because int might match the return type of a gcc2
5458 builtin and then its argument prototype would still apply. */
5459 char getopt_long ();
5460 #ifdef F77_DUMMY_MAIN
5464 int F77_DUMMY_MAIN() { return 1; }
5474 rm -f conftest.$ac_objext conftest$ac_exeext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5476 (eval $ac_link) 2>&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -s conftest$ac_exeext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_cv_search_getopt_long="-l$ac_lib"
5489 echo "$as_me: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5495 LIBS=$ac_func_search_save_LIBS
5497 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5498 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5499 if test "$ac_cv_search_getopt_long" != no; then
5500 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5506 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5507 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5508 if test "${ac_cv_lib_unix_main+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 ac_check_lib_save_LIBS=$LIBS
5513 cat >conftest.$ac_ext <<_ACEOF
5514 #line $LINENO "configure"
5515 #include "confdefs.h"
5518 #ifdef F77_DUMMY_MAIN
5522 int F77_DUMMY_MAIN() { return 1; }
5532 rm -f conftest.$ac_objext conftest$ac_exeext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534 (eval $ac_link) 2>&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -s conftest$ac_exeext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_lib_unix_main=yes
5546 echo "$as_me: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5548 ac_cv_lib_unix_main=no
5550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5551 LIBS=$ac_check_lib_save_LIBS
5553 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5554 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5555 if test $ac_cv_lib_unix_main = yes; then
5556 cat >>confdefs.h <<_ACEOF
5557 #define HAVE_LIBUNIX 1
5564 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5565 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5566 if test "${ac_cv_search_crypt+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 ac_func_search_save_LIBS=$LIBS
5570 ac_cv_search_crypt=no
5571 cat >conftest.$ac_ext <<_ACEOF
5572 #line $LINENO "configure"
5573 #include "confdefs.h"
5575 /* Override any gcc2 internal prototype to avoid an error. */
5579 /* We use char because int might match the return type of a gcc2
5580 builtin and then its argument prototype would still apply. */
5582 #ifdef F77_DUMMY_MAIN
5586 int F77_DUMMY_MAIN() { return 1; }
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -s conftest$ac_exeext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_cv_search_crypt="none required"
5610 echo "$as_me: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5614 if test "$ac_cv_search_crypt" = no; then
5615 for ac_lib in crypt; do
5616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5617 cat >conftest.$ac_ext <<_ACEOF
5618 #line $LINENO "configure"
5619 #include "confdefs.h"
5621 /* Override any gcc2 internal prototype to avoid an error. */
5625 /* We use char because int might match the return type of a gcc2
5626 builtin and then its argument prototype would still apply. */
5628 #ifdef F77_DUMMY_MAIN
5632 int F77_DUMMY_MAIN() { return 1; }
5642 rm -f conftest.$ac_objext conftest$ac_exeext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try='test -s conftest$ac_exeext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_search_crypt="-l$ac_lib"
5657 echo "$as_me: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5663 LIBS=$ac_func_search_save_LIBS
5665 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5666 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5667 if test "$ac_cv_search_crypt" != no; then
5668 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5674 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5675 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5676 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 ac_check_lib_save_LIBS=$LIBS
5681 cat >conftest.$ac_ext <<_ACEOF
5682 #line $LINENO "configure"
5683 #include "confdefs.h"
5685 /* Override any gcc2 internal prototype to avoid an error. */
5689 /* We use char because int might match the return type of a gcc2
5690 builtin and then its argument prototype would still apply. */
5691 char __inet_ntoa ();
5692 #ifdef F77_DUMMY_MAIN
5696 int F77_DUMMY_MAIN() { return 1; }
5706 rm -f conftest.$ac_objext conftest$ac_exeext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5708 (eval $ac_link) 2>&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } &&
5712 { ac_try='test -s conftest$ac_exeext'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
5718 ac_cv_lib_bind___inet_ntoa=yes
5720 echo "$as_me: failed program was:" >&5
5721 cat conftest.$ac_ext >&5
5722 ac_cv_lib_bind___inet_ntoa=no
5724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5725 LIBS=$ac_check_lib_save_LIBS
5727 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5728 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5729 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5730 cat >>confdefs.h <<_ACEOF
5731 #define HAVE_LIBBIND 1
5739 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5740 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5741 if test "${ac_cv_search_fdatasync+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 ac_func_search_save_LIBS=$LIBS
5745 ac_cv_search_fdatasync=no
5746 cat >conftest.$ac_ext <<_ACEOF
5747 #line $LINENO "configure"
5748 #include "confdefs.h"
5750 /* Override any gcc2 internal prototype to avoid an error. */
5754 /* We use char because int might match the return type of a gcc2
5755 builtin and then its argument prototype would still apply. */
5757 #ifdef F77_DUMMY_MAIN
5761 int F77_DUMMY_MAIN() { return 1; }
5771 rm -f conftest.$ac_objext conftest$ac_exeext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5773 (eval $ac_link) 2>&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } &&
5777 { ac_try='test -s conftest$ac_exeext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 ac_cv_search_fdatasync="none required"
5785 echo "$as_me: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5789 if test "$ac_cv_search_fdatasync" = no; then
5790 for ac_lib in rt posix4; do
5791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5792 cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5796 /* Override any gcc2 internal prototype to avoid an error. */
5800 /* We use char because int might match the return type of a gcc2
5801 builtin and then its argument prototype would still apply. */
5803 #ifdef F77_DUMMY_MAIN
5807 int F77_DUMMY_MAIN() { return 1; }
5817 rm -f conftest.$ac_objext conftest$ac_exeext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5819 (eval $ac_link) 2>&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try='test -s conftest$ac_exeext'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 ac_cv_search_fdatasync="-l$ac_lib"
5832 echo "$as_me: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5838 LIBS=$ac_func_search_save_LIBS
5840 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5841 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5842 if test "$ac_cv_search_fdatasync" != no; then
5843 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5849 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5850 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5851 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 ac_check_lib_save_LIBS=$LIBS
5855 LIBS="-lcygipc $LIBS"
5856 cat >conftest.$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5858 #include "confdefs.h"
5860 /* Override any gcc2 internal prototype to avoid an error. */
5864 /* We use char because int might match the return type of a gcc2
5865 builtin and then its argument prototype would still apply. */
5867 #ifdef F77_DUMMY_MAIN
5871 int F77_DUMMY_MAIN() { return 1; }
5881 rm -f conftest.$ac_objext conftest$ac_exeext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5883 (eval $ac_link) 2>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try='test -s conftest$ac_exeext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 ac_cv_lib_cygipc_shmget=yes
5895 echo "$as_me: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5897 ac_cv_lib_cygipc_shmget=no
5899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5900 LIBS=$ac_check_lib_save_LIBS
5902 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5903 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5904 if test $ac_cv_lib_cygipc_shmget = yes; then
5905 cat >>confdefs.h <<_ACEOF
5906 #define HAVE_LIBCYGIPC 1
5909 LIBS="-lcygipc $LIBS"
5914 if test "$with_readline" = yes; then
5916 echo "$as_me:$LINENO: checking for readline" >&5
5917 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5919 if test "${pgac_cv_check_readline+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 pgac_cv_check_readline=no
5923 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5924 for pgac_rllib in -lreadline -ledit ; do
5925 pgac_save_LIBS=$LIBS
5926 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5927 cat >conftest.$ac_ext <<_ACEOF
5928 #line $LINENO "configure"
5929 #include "confdefs.h"
5931 /* Override any gcc2 internal prototype to avoid an error. */
5935 /* We use char because int might match the return type of a gcc2
5936 builtin and then its argument prototype would still apply. */
5938 #ifdef F77_DUMMY_MAIN
5942 int F77_DUMMY_MAIN() { return 1; }
5952 rm -f conftest.$ac_objext conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try='test -s conftest$ac_exeext'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5965 # NetBSD and OpenBSD have a broken linker that does not
5966 # recognize dependent libraries
5967 case $host_os in netbsd* | openbsd* )
5970 *) pgac_lib=" -lcurses" ;;
5974 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5978 echo "$as_me: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5982 LIBS=$pgac_save_LIBS
5985 LIBS=$pgac_save_LIBS
5989 if test "$pgac_cv_check_readline" != no ; then
5991 cat >>confdefs.h <<\_ACEOF
5992 #define HAVE_LIBREADLINE 1
5995 LIBS="$pgac_cv_check_readline $LIBS"
5996 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5997 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5999 echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6
6002 if test x"$pgac_cv_check_readline" = x"no"; then
6003 { { echo "$as_me:$LINENO: error: readline library not found
6004 If you have readline already installed, see config.log for details on the
6005 failure. It is possible the compiler isn't looking in the proper directory.
6006 Use --without-readline to disable readline support." >&5
6007 echo "$as_me: error: readline library not found
6008 If you have readline already installed, see config.log for details on the
6009 failure. It is possible the compiler isn't looking in the proper directory.
6010 Use --without-readline to disable readline support." >&2;}
6011 { (exit 1); exit 1; }; }
6015 if test "$with_zlib" = yes; then
6017 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6018 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6019 if test "${ac_cv_lib_z_inflate+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 ac_check_lib_save_LIBS=$LIBS
6024 cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6026 #include "confdefs.h"
6028 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6035 #ifdef F77_DUMMY_MAIN
6039 int F77_DUMMY_MAIN() { return 1; }
6049 rm -f conftest.$ac_objext conftest$ac_exeext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051 (eval $ac_link) 2>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -s conftest$ac_exeext'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6061 ac_cv_lib_z_inflate=yes
6063 echo "$as_me: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 ac_cv_lib_z_inflate=no
6067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6068 LIBS=$ac_check_lib_save_LIBS
6070 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6071 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6072 if test $ac_cv_lib_z_inflate = yes; then
6073 cat >>confdefs.h <<_ACEOF
6080 { { echo "$as_me:$LINENO: error: zlib library not found
6081 If you have zlib already installed, see config.log for details on the
6082 failure. It is possible the compiler isn't looking in the proper directory.
6083 Use --without-zlib to disable zlib support." >&5
6084 echo "$as_me: error: zlib library not found
6085 If you have zlib already installed, see config.log for details on the
6086 failure. It is possible the compiler isn't looking in the proper directory.
6087 Use --without-zlib to disable zlib support." >&2;}
6088 { (exit 1); exit 1; }; }
6093 if test "$with_krb4" = yes ; then
6095 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6096 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6097 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 ac_check_lib_save_LIBS=$LIBS
6102 cat >conftest.$ac_ext <<_ACEOF
6103 #line $LINENO "configure"
6104 #include "confdefs.h"
6106 /* Override any gcc2 internal prototype to avoid an error. */
6110 /* We use char because int might match the return type of a gcc2
6111 builtin and then its argument prototype would still apply. */
6112 char des_encrypt ();
6113 #ifdef F77_DUMMY_MAIN
6117 int F77_DUMMY_MAIN() { return 1; }
6127 rm -f conftest.$ac_objext conftest$ac_exeext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6129 (eval $ac_link) 2>&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try='test -s conftest$ac_exeext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_lib_des_des_encrypt=yes
6141 echo "$as_me: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6143 ac_cv_lib_des_des_encrypt=no
6145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6146 LIBS=$ac_check_lib_save_LIBS
6148 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6149 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6150 if test $ac_cv_lib_des_des_encrypt = yes; then
6151 cat >>confdefs.h <<_ACEOF
6152 #define HAVE_LIBDES 1
6158 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6159 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6160 { (exit 1); exit 1; }; }
6164 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6165 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6166 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 ac_check_lib_save_LIBS=$LIBS
6171 cat >conftest.$ac_ext <<_ACEOF
6172 #line $LINENO "configure"
6173 #include "confdefs.h"
6175 /* Override any gcc2 internal prototype to avoid an error. */
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6181 char krb_sendauth ();
6182 #ifdef F77_DUMMY_MAIN
6186 int F77_DUMMY_MAIN() { return 1; }
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 2>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -s conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_lib_krb_krb_sendauth=yes
6210 echo "$as_me: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 ac_cv_lib_krb_krb_sendauth=no
6214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6215 LIBS=$ac_check_lib_save_LIBS
6217 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6218 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6219 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6220 cat >>confdefs.h <<_ACEOF
6221 #define HAVE_LIBKRB 1
6227 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6228 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6229 { (exit 1); exit 1; }; }
6233 for ac_func in gethostname
6235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6236 echo "$as_me:$LINENO: checking for $ac_func" >&5
6237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6238 if eval "test \"\${$as_ac_var+set}\" = set"; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 cat >conftest.$ac_ext <<_ACEOF
6242 #line $LINENO "configure"
6243 #include "confdefs.h"
6244 /* System header to define __stub macros and hopefully few prototypes,
6245 which can conflict with char $ac_func (); below. */
6247 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6256 #ifdef F77_DUMMY_MAIN
6260 int F77_DUMMY_MAIN() { return 1; }
6265 /* The GNU C library defines this for functions which it implements
6266 to always fail with ENOSYS. Some functions are actually named
6267 something starting with __ and the normal name is an alias. */
6268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280 (eval $ac_link) 2>&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -s conftest$ac_exeext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 eval "$as_ac_var=yes"
6292 echo "$as_me: failed program was:" >&5
6293 cat conftest.$ac_ext >&5
6294 eval "$as_ac_var=no"
6296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6300 if test `eval echo '${'$as_ac_var'}'` = yes; then
6301 cat >>confdefs.h <<_ACEOF
6302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6306 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6313 if test "$with_krb5" = yes ; then
6314 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6315 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6316 if test "${ac_cv_search_com_err+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 ac_func_search_save_LIBS=$LIBS
6320 ac_cv_search_com_err=no
6321 cat >conftest.$ac_ext <<_ACEOF
6322 #line $LINENO "configure"
6323 #include "confdefs.h"
6325 /* Override any gcc2 internal prototype to avoid an error. */
6329 /* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6332 #ifdef F77_DUMMY_MAIN
6336 int F77_DUMMY_MAIN() { return 1; }
6346 rm -f conftest.$ac_objext conftest$ac_exeext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348 (eval $ac_link) 2>&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -s conftest$ac_exeext'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_cv_search_com_err="none required"
6360 echo "$as_me: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6364 if test "$ac_cv_search_com_err" = no; then
6365 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6367 cat >conftest.$ac_ext <<_ACEOF
6368 #line $LINENO "configure"
6369 #include "confdefs.h"
6371 /* Override any gcc2 internal prototype to avoid an error. */
6375 /* We use char because int might match the return type of a gcc2
6376 builtin and then its argument prototype would still apply. */
6378 #ifdef F77_DUMMY_MAIN
6382 int F77_DUMMY_MAIN() { return 1; }
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394 (eval $ac_link) 2>&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -s conftest$ac_exeext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_cv_search_com_err="-l$ac_lib"
6407 echo "$as_me: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6413 LIBS=$ac_func_search_save_LIBS
6415 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6416 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6417 if test "$ac_cv_search_com_err" != no; then
6418 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6421 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6422 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6423 { (exit 1); exit 1; }; }
6426 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6427 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6428 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 ac_func_search_save_LIBS=$LIBS
6432 ac_cv_search_krb5_encrypt=no
6433 cat >conftest.$ac_ext <<_ACEOF
6434 #line $LINENO "configure"
6435 #include "confdefs.h"
6437 /* Override any gcc2 internal prototype to avoid an error. */
6441 /* We use char because int might match the return type of a gcc2
6442 builtin and then its argument prototype would still apply. */
6443 char krb5_encrypt ();
6444 #ifdef F77_DUMMY_MAIN
6448 int F77_DUMMY_MAIN() { return 1; }
6458 rm -f conftest.$ac_objext conftest$ac_exeext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6460 (eval $ac_link) 2>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try='test -s conftest$ac_exeext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_cv_search_krb5_encrypt="none required"
6472 echo "$as_me: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6476 if test "$ac_cv_search_krb5_encrypt" = no; then
6477 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6479 cat >conftest.$ac_ext <<_ACEOF
6480 #line $LINENO "configure"
6481 #include "confdefs.h"
6483 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */
6489 char krb5_encrypt ();
6490 #ifdef F77_DUMMY_MAIN
6494 int F77_DUMMY_MAIN() { return 1; }
6504 rm -f conftest.$ac_objext conftest$ac_exeext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6506 (eval $ac_link) 2>&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } &&
6510 { ac_try='test -s conftest$ac_exeext'
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; }; then
6516 ac_cv_search_krb5_encrypt="-l$ac_lib"
6519 echo "$as_me: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6525 LIBS=$ac_func_search_save_LIBS
6527 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6528 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6529 if test "$ac_cv_search_krb5_encrypt" != no; then
6530 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6533 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6534 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6535 { (exit 1); exit 1; }; }
6538 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6539 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6540 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 ac_func_search_save_LIBS=$LIBS
6544 ac_cv_search_krb5_sendauth=no
6545 cat >conftest.$ac_ext <<_ACEOF
6546 #line $LINENO "configure"
6547 #include "confdefs.h"
6549 /* Override any gcc2 internal prototype to avoid an error. */
6553 /* We use char because int might match the return type of a gcc2
6554 builtin and then its argument prototype would still apply. */
6555 char krb5_sendauth ();
6556 #ifdef F77_DUMMY_MAIN
6560 int F77_DUMMY_MAIN() { return 1; }
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572 (eval $ac_link) 2>&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try='test -s conftest$ac_exeext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 ac_cv_search_krb5_sendauth="none required"
6584 echo "$as_me: failed program was:" >&5
6585 cat conftest.$ac_ext >&5
6587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6588 if test "$ac_cv_search_krb5_sendauth" = no; then
6589 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6591 cat >conftest.$ac_ext <<_ACEOF
6592 #line $LINENO "configure"
6593 #include "confdefs.h"
6595 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6601 char krb5_sendauth ();
6602 #ifdef F77_DUMMY_MAIN
6606 int F77_DUMMY_MAIN() { return 1; }
6616 rm -f conftest.$ac_objext conftest$ac_exeext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6618 (eval $ac_link) 2>&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -s conftest$ac_exeext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 ac_cv_search_krb5_sendauth="-l$ac_lib"
6631 echo "$as_me: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6637 LIBS=$ac_func_search_save_LIBS
6639 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6640 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6641 if test "$ac_cv_search_krb5_sendauth" != no; then
6642 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6645 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6646 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6647 { (exit 1); exit 1; }; }
6652 if test "$with_openssl" = yes ; then
6654 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6655 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6656 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 ac_check_lib_save_LIBS=$LIBS
6660 LIBS="-lcrypto $LIBS"
6661 cat >conftest.$ac_ext <<_ACEOF
6662 #line $LINENO "configure"
6663 #include "confdefs.h"
6665 /* Override any gcc2 internal prototype to avoid an error. */
6669 /* We use char because int might match the return type of a gcc2
6670 builtin and then its argument prototype would still apply. */
6671 char CRYPTO_new_ex_data ();
6672 #ifdef F77_DUMMY_MAIN
6676 int F77_DUMMY_MAIN() { return 1; }
6681 CRYPTO_new_ex_data ();
6686 rm -f conftest.$ac_objext conftest$ac_exeext
6687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } &&
6692 { ac_try='test -s conftest$ac_exeext'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; }; then
6698 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6700 echo "$as_me: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6702 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6705 LIBS=$ac_check_lib_save_LIBS
6707 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6708 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6709 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define HAVE_LIBCRYPTO 1
6714 LIBS="-lcrypto $LIBS"
6717 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6718 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6719 { (exit 1); exit 1; }; }
6723 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6724 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6725 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 ac_check_lib_save_LIBS=$LIBS
6730 cat >conftest.$ac_ext <<_ACEOF
6731 #line $LINENO "configure"
6732 #include "confdefs.h"
6734 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6740 char SSL_library_init ();
6741 #ifdef F77_DUMMY_MAIN
6745 int F77_DUMMY_MAIN() { return 1; }
6750 SSL_library_init ();
6755 rm -f conftest.$ac_objext conftest$ac_exeext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6757 (eval $ac_link) 2>&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
6761 { ac_try='test -s conftest$ac_exeext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 ac_cv_lib_ssl_SSL_library_init=yes
6769 echo "$as_me: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6771 ac_cv_lib_ssl_SSL_library_init=no
6773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6774 LIBS=$ac_check_lib_save_LIBS
6776 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6777 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6778 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6779 cat >>confdefs.h <<_ACEOF
6780 #define HAVE_LIBSSL 1
6786 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6787 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6788 { (exit 1); exit 1; }; }
6793 if test "$with_pam" = yes ; then
6795 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6796 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6797 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 ac_check_lib_save_LIBS=$LIBS
6802 cat >conftest.$ac_ext <<_ACEOF
6803 #line $LINENO "configure"
6804 #include "confdefs.h"
6806 /* Override any gcc2 internal prototype to avoid an error. */
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6813 #ifdef F77_DUMMY_MAIN
6817 int F77_DUMMY_MAIN() { return 1; }
6827 rm -f conftest.$ac_objext conftest$ac_exeext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try='test -s conftest$ac_exeext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 ac_cv_lib_pam_pam_start=yes
6841 echo "$as_me: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6843 ac_cv_lib_pam_pam_start=no
6845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6846 LIBS=$ac_check_lib_save_LIBS
6848 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6849 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6850 if test $ac_cv_lib_pam_pam_start = yes; then
6851 cat >>confdefs.h <<_ACEOF
6852 #define HAVE_LIBPAM 1
6858 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6859 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6860 { (exit 1); exit 1; }; }
6870 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6871 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6872 if test "${ac_cv_header_stdc+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 cat >conftest.$ac_ext <<_ACEOF
6876 #line $LINENO "configure"
6877 #include "confdefs.h"
6884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6887 egrep -v '^ *\+' conftest.er1 >conftest.err
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } >/dev/null; then
6892 if test -s conftest.err; then
6893 ac_cpp_err=$ac_c_preproc_warn_flag
6900 if test -z "$ac_cpp_err"; then
6901 ac_cv_header_stdc=yes
6903 echo "$as_me: failed program was:" >&5
6904 cat conftest.$ac_ext >&5
6905 ac_cv_header_stdc=no
6907 rm -f conftest.err conftest.$ac_ext
6909 if test $ac_cv_header_stdc = yes; then
6910 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6911 cat >conftest.$ac_ext <<_ACEOF
6912 #line $LINENO "configure"
6913 #include "confdefs.h"
6917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6918 egrep "memchr" >/dev/null 2>&1; then
6921 ac_cv_header_stdc=no
6927 if test $ac_cv_header_stdc = yes; then
6928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6929 cat >conftest.$ac_ext <<_ACEOF
6930 #line $LINENO "configure"
6931 #include "confdefs.h"
6935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6936 egrep "free" >/dev/null 2>&1; then
6939 ac_cv_header_stdc=no
6945 if test $ac_cv_header_stdc = yes; then
6946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6947 if test "$cross_compiling" = yes; then
6950 cat >conftest.$ac_ext <<_ACEOF
6951 #line $LINENO "configure"
6952 #include "confdefs.h"
6954 #if ((' ' & 0x0FF) == 0x020)
6955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6958 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6959 || ('j' <= (c) && (c) <= 'r') \
6960 || ('s' <= (c) && (c) <= 'z'))
6961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6969 for (i = 0; i < 256; i++)
6970 if (XOR (islower (i), ISLOWER (i))
6971 || toupper (i) != TOUPPER (i))
6976 rm -f conftest$ac_exeext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6978 (eval $ac_link) 2>&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6989 echo "$as_me: program exited with status $ac_status" >&5
6990 echo "$as_me: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6993 ac_cv_header_stdc=no
6995 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6999 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7000 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7001 if test $ac_cv_header_stdc = yes; then
7003 cat >>confdefs.h <<\_ACEOF
7004 #define STDC_HEADERS 1
7009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7020 inttypes.h stdint.h unistd.h
7022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7023 echo "$as_me:$LINENO: checking for $ac_header" >&5
7024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 cat >conftest.$ac_ext <<_ACEOF
7029 #line $LINENO "configure"
7030 #include "confdefs.h"
7031 $ac_includes_default
7033 #include <$ac_header>
7035 rm -f conftest.$ac_objext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 eval "$as_ac_Header=yes"
7049 echo "$as_me: failed program was:" >&5
7050 cat conftest.$ac_ext >&5
7051 eval "$as_ac_Header=no"
7053 rm -f conftest.$ac_objext conftest.$ac_ext
7055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7058 cat >>confdefs.h <<_ACEOF
7059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7088 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
7090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7092 echo "$as_me:$LINENO: checking for $ac_header" >&5
7093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7100 # Is the header compilable?
7101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7103 cat >conftest.$ac_ext <<_ACEOF
7104 #line $LINENO "configure"
7105 #include "confdefs.h"
7106 $ac_includes_default
7107 #include <$ac_header>
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111 (eval $ac_compile) 2>&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -s conftest.$ac_objext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 ac_header_compiler=yes
7123 echo "$as_me: failed program was:" >&5
7124 cat conftest.$ac_ext >&5
7125 ac_header_compiler=no
7127 rm -f conftest.$ac_objext conftest.$ac_ext
7128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7129 echo "${ECHO_T}$ac_header_compiler" >&6
7131 # Is the header present?
7132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7134 cat >conftest.$ac_ext <<_ACEOF
7135 #line $LINENO "configure"
7136 #include "confdefs.h"
7137 #include <$ac_header>
7139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7142 egrep -v '^ *\+' conftest.er1 >conftest.err
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } >/dev/null; then
7147 if test -s conftest.err; then
7148 ac_cpp_err=$ac_c_preproc_warn_flag
7155 if test -z "$ac_cpp_err"; then
7156 ac_header_preproc=yes
7158 echo "$as_me: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7160 ac_header_preproc=no
7162 rm -f conftest.err conftest.$ac_ext
7163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7164 echo "${ECHO_T}$ac_header_preproc" >&6
7166 # So? What about this header?
7167 case $ac_header_compiler:$ac_header_preproc in
7169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7181 echo "$as_me:$LINENO: checking for $ac_header" >&5
7182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 eval "$as_ac_Header=$ac_header_preproc"
7188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7193 cat >>confdefs.h <<_ACEOF
7194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7202 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7203 # netinet/in.h is included first.
7205 for ac_header in netinet/in.h
7207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7209 echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7217 # Is the header compilable?
7218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7220 cat >conftest.$ac_ext <<_ACEOF
7221 #line $LINENO "configure"
7222 #include "confdefs.h"
7223 $ac_includes_default
7224 #include <$ac_header>
7226 rm -f conftest.$ac_objext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7228 (eval $ac_compile) 2>&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } &&
7232 { ac_try='test -s conftest.$ac_objext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 ac_header_compiler=yes
7240 echo "$as_me: failed program was:" >&5
7241 cat conftest.$ac_ext >&5
7242 ac_header_compiler=no
7244 rm -f conftest.$ac_objext conftest.$ac_ext
7245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7246 echo "${ECHO_T}$ac_header_compiler" >&6
7248 # Is the header present?
7249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7251 cat >conftest.$ac_ext <<_ACEOF
7252 #line $LINENO "configure"
7253 #include "confdefs.h"
7254 #include <$ac_header>
7256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7259 egrep -v '^ *\+' conftest.er1 >conftest.err
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } >/dev/null; then
7264 if test -s conftest.err; then
7265 ac_cpp_err=$ac_c_preproc_warn_flag
7272 if test -z "$ac_cpp_err"; then
7273 ac_header_preproc=yes
7275 echo "$as_me: failed program was:" >&5
7276 cat conftest.$ac_ext >&5
7277 ac_header_preproc=no
7279 rm -f conftest.err conftest.$ac_ext
7280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7281 echo "${ECHO_T}$ac_header_preproc" >&6
7283 # So? What about this header?
7284 case $ac_header_compiler:$ac_header_preproc in
7286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7298 echo "$as_me:$LINENO: checking for $ac_header" >&5
7299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 eval "$as_ac_Header=$ac_header_preproc"
7305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7310 cat >>confdefs.h <<_ACEOF
7311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7319 for ac_header in netinet/tcp.h
7321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7322 echo "$as_me:$LINENO: checking for $ac_header" >&5
7323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 cat >conftest.$ac_ext <<_ACEOF
7328 #line $LINENO "configure"
7329 #include "confdefs.h"
7330 $ac_includes_default
7331 #ifdef HAVE_NETINET_IN_H
7332 #include <netinet/in.h>
7336 #include <$ac_header>
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try='test -s conftest.$ac_objext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 eval "$as_ac_Header=yes"
7352 echo "$as_me: failed program was:" >&5
7353 cat conftest.$ac_ext >&5
7354 eval "$as_ac_Header=no"
7356 rm -f conftest.$ac_objext conftest.$ac_ext
7358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7361 cat >>confdefs.h <<_ACEOF
7362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7370 if test "$with_readline" = yes; then
7372 for ac_header in readline/readline.h
7374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376 echo "$as_me:$LINENO: checking for $ac_header" >&5
7377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7384 # Is the header compilable?
7385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7387 cat >conftest.$ac_ext <<_ACEOF
7388 #line $LINENO "configure"
7389 #include "confdefs.h"
7390 $ac_includes_default
7391 #include <$ac_header>
7393 rm -f conftest.$ac_objext
7394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7395 (eval $ac_compile) 2>&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try='test -s conftest.$ac_objext'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; }; then
7405 ac_header_compiler=yes
7407 echo "$as_me: failed program was:" >&5
7408 cat conftest.$ac_ext >&5
7409 ac_header_compiler=no
7411 rm -f conftest.$ac_objext conftest.$ac_ext
7412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7413 echo "${ECHO_T}$ac_header_compiler" >&6
7415 # Is the header present?
7416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7418 cat >conftest.$ac_ext <<_ACEOF
7419 #line $LINENO "configure"
7420 #include "confdefs.h"
7421 #include <$ac_header>
7423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7426 egrep -v '^ *\+' conftest.er1 >conftest.err
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } >/dev/null; then
7431 if test -s conftest.err; then
7432 ac_cpp_err=$ac_c_preproc_warn_flag
7439 if test -z "$ac_cpp_err"; then
7440 ac_header_preproc=yes
7442 echo "$as_me: failed program was:" >&5
7443 cat conftest.$ac_ext >&5
7444 ac_header_preproc=no
7446 rm -f conftest.err conftest.$ac_ext
7447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7448 echo "${ECHO_T}$ac_header_preproc" >&6
7450 # So? What about this header?
7451 case $ac_header_compiler:$ac_header_preproc in
7453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7465 echo "$as_me:$LINENO: checking for $ac_header" >&5
7466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 eval "$as_ac_Header=$ac_header_preproc"
7472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7477 cat >>confdefs.h <<_ACEOF
7478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7483 for ac_header in editline/readline.h
7485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7487 echo "$as_me:$LINENO: checking for $ac_header" >&5
7488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7495 # Is the header compilable?
7496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7498 cat >conftest.$ac_ext <<_ACEOF
7499 #line $LINENO "configure"
7500 #include "confdefs.h"
7501 $ac_includes_default
7502 #include <$ac_header>
7504 rm -f conftest.$ac_objext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506 (eval $ac_compile) 2>&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try='test -s conftest.$ac_objext'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; }; then
7516 ac_header_compiler=yes
7518 echo "$as_me: failed program was:" >&5
7519 cat conftest.$ac_ext >&5
7520 ac_header_compiler=no
7522 rm -f conftest.$ac_objext conftest.$ac_ext
7523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7524 echo "${ECHO_T}$ac_header_compiler" >&6
7526 # Is the header present?
7527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7529 cat >conftest.$ac_ext <<_ACEOF
7530 #line $LINENO "configure"
7531 #include "confdefs.h"
7532 #include <$ac_header>
7534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7537 egrep -v '^ *\+' conftest.er1 >conftest.err
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } >/dev/null; then
7542 if test -s conftest.err; then
7543 ac_cpp_err=$ac_c_preproc_warn_flag
7550 if test -z "$ac_cpp_err"; then
7551 ac_header_preproc=yes
7553 echo "$as_me: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7555 ac_header_preproc=no
7557 rm -f conftest.err conftest.$ac_ext
7558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7559 echo "${ECHO_T}$ac_header_preproc" >&6
7561 # So? What about this header?
7562 case $ac_header_compiler:$ac_header_preproc in
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7576 echo "$as_me:$LINENO: checking for $ac_header" >&5
7577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 eval "$as_ac_Header=$ac_header_preproc"
7583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7588 cat >>confdefs.h <<_ACEOF
7589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7594 for ac_header in readline.h
7596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7598 echo "$as_me:$LINENO: checking for $ac_header" >&5
7599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7606 # Is the header compilable?
7607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7609 cat >conftest.$ac_ext <<_ACEOF
7610 #line $LINENO "configure"
7611 #include "confdefs.h"
7612 $ac_includes_default
7613 #include <$ac_header>
7615 rm -f conftest.$ac_objext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7617 (eval $ac_compile) 2>&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try='test -s conftest.$ac_objext'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; }; then
7627 ac_header_compiler=yes
7629 echo "$as_me: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7631 ac_header_compiler=no
7633 rm -f conftest.$ac_objext conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7635 echo "${ECHO_T}$ac_header_compiler" >&6
7637 # Is the header present?
7638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7640 cat >conftest.$ac_ext <<_ACEOF
7641 #line $LINENO "configure"
7642 #include "confdefs.h"
7643 #include <$ac_header>
7645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7648 egrep -v '^ *\+' conftest.er1 >conftest.err
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } >/dev/null; then
7653 if test -s conftest.err; then
7654 ac_cpp_err=$ac_c_preproc_warn_flag
7661 if test -z "$ac_cpp_err"; then
7662 ac_header_preproc=yes
7664 echo "$as_me: failed program was:" >&5
7665 cat conftest.$ac_ext >&5
7666 ac_header_preproc=no
7668 rm -f conftest.err conftest.$ac_ext
7669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7670 echo "${ECHO_T}$ac_header_preproc" >&6
7672 # So? What about this header?
7673 case $ac_header_compiler:$ac_header_preproc in
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7687 echo "$as_me:$LINENO: checking for $ac_header" >&5
7688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 eval "$as_ac_Header=$ac_header_preproc"
7694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7699 cat >>confdefs.h <<_ACEOF
7700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7704 { { echo "$as_me:$LINENO: error: readline header not found
7705 If you have readline already installed, see config.log for details on the
7706 failure. It is possible the compiler isn't looking in the proper directory.
7707 Use --without-readline to disable readline support." >&5
7708 echo "$as_me: error: readline header not found
7709 If you have readline already installed, see config.log for details on the
7710 failure. It is possible the compiler isn't looking in the proper directory.
7711 Use --without-readline to disable readline support." >&2;}
7712 { (exit 1); exit 1; }; }
7726 for ac_header in readline/history.h
7728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7730 echo "$as_me:$LINENO: checking for $ac_header" >&5
7731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7738 # Is the header compilable?
7739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7741 cat >conftest.$ac_ext <<_ACEOF
7742 #line $LINENO "configure"
7743 #include "confdefs.h"
7744 $ac_includes_default
7745 #include <$ac_header>
7747 rm -f conftest.$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -s conftest.$ac_objext'
7754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; }; then
7759 ac_header_compiler=yes
7761 echo "$as_me: failed program was:" >&5
7762 cat conftest.$ac_ext >&5
7763 ac_header_compiler=no
7765 rm -f conftest.$ac_objext conftest.$ac_ext
7766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7767 echo "${ECHO_T}$ac_header_compiler" >&6
7769 # Is the header present?
7770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7772 cat >conftest.$ac_ext <<_ACEOF
7773 #line $LINENO "configure"
7774 #include "confdefs.h"
7775 #include <$ac_header>
7777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7780 egrep -v '^ *\+' conftest.er1 >conftest.err
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } >/dev/null; then
7785 if test -s conftest.err; then
7786 ac_cpp_err=$ac_c_preproc_warn_flag
7793 if test -z "$ac_cpp_err"; then
7794 ac_header_preproc=yes
7796 echo "$as_me: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7798 ac_header_preproc=no
7800 rm -f conftest.err conftest.$ac_ext
7801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7802 echo "${ECHO_T}$ac_header_preproc" >&6
7804 # So? What about this header?
7805 case $ac_header_compiler:$ac_header_preproc in
7807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7819 echo "$as_me:$LINENO: checking for $ac_header" >&5
7820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 eval "$as_ac_Header=$ac_header_preproc"
7826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7831 cat >>confdefs.h <<_ACEOF
7832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7837 for ac_header in editline/history.h
7839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7841 echo "$as_me:$LINENO: checking for $ac_header" >&5
7842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7849 # Is the header compilable?
7850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7852 cat >conftest.$ac_ext <<_ACEOF
7853 #line $LINENO "configure"
7854 #include "confdefs.h"
7855 $ac_includes_default
7856 #include <$ac_header>
7858 rm -f conftest.$ac_objext
7859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860 (eval $ac_compile) 2>&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } &&
7864 { ac_try='test -s conftest.$ac_objext'
7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; }; then
7870 ac_header_compiler=yes
7872 echo "$as_me: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7874 ac_header_compiler=no
7876 rm -f conftest.$ac_objext conftest.$ac_ext
7877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7878 echo "${ECHO_T}$ac_header_compiler" >&6
7880 # Is the header present?
7881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7883 cat >conftest.$ac_ext <<_ACEOF
7884 #line $LINENO "configure"
7885 #include "confdefs.h"
7886 #include <$ac_header>
7888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7891 egrep -v '^ *\+' conftest.er1 >conftest.err
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } >/dev/null; then
7896 if test -s conftest.err; then
7897 ac_cpp_err=$ac_c_preproc_warn_flag
7904 if test -z "$ac_cpp_err"; then
7905 ac_header_preproc=yes
7907 echo "$as_me: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 ac_header_preproc=no
7911 rm -f conftest.err conftest.$ac_ext
7912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7913 echo "${ECHO_T}$ac_header_preproc" >&6
7915 # So? What about this header?
7916 case $ac_header_compiler:$ac_header_preproc in
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7930 echo "$as_me:$LINENO: checking for $ac_header" >&5
7931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 eval "$as_ac_Header=$ac_header_preproc"
7937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7942 cat >>confdefs.h <<_ACEOF
7943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7948 for ac_header in history.h
7950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7952 echo "$as_me:$LINENO: checking for $ac_header" >&5
7953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7960 # Is the header compilable?
7961 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7963 cat >conftest.$ac_ext <<_ACEOF
7964 #line $LINENO "configure"
7965 #include "confdefs.h"
7966 $ac_includes_default
7967 #include <$ac_header>
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -s conftest.$ac_objext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 ac_header_compiler=yes
7983 echo "$as_me: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7985 ac_header_compiler=no
7987 rm -f conftest.$ac_objext conftest.$ac_ext
7988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7989 echo "${ECHO_T}$ac_header_compiler" >&6
7991 # Is the header present?
7992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7994 cat >conftest.$ac_ext <<_ACEOF
7995 #line $LINENO "configure"
7996 #include "confdefs.h"
7997 #include <$ac_header>
7999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8002 egrep -v '^ *\+' conftest.er1 >conftest.err
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } >/dev/null; then
8007 if test -s conftest.err; then
8008 ac_cpp_err=$ac_c_preproc_warn_flag
8015 if test -z "$ac_cpp_err"; then
8016 ac_header_preproc=yes
8018 echo "$as_me: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 ac_header_preproc=no
8022 rm -f conftest.err conftest.$ac_ext
8023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8024 echo "${ECHO_T}$ac_header_preproc" >&6
8026 # So? What about this header?
8027 case $ac_header_compiler:$ac_header_preproc in
8029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8041 echo "$as_me:$LINENO: checking for $ac_header" >&5
8042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 eval "$as_ac_Header=$ac_header_preproc"
8048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8053 cat >>confdefs.h <<_ACEOF
8054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8058 { { echo "$as_me:$LINENO: error: history header not found
8059 If you have readline already installed, see config.log for details on the
8060 failure. It is possible the compiler isn't looking in the proper directory.
8061 Use --without-readline to disable readline support." >&5
8062 echo "$as_me: error: history header not found
8063 If you have readline already installed, see config.log for details on the
8064 failure. It is possible the compiler isn't looking in the proper directory.
8065 Use --without-readline to disable readline support." >&2;}
8066 { (exit 1); exit 1; }; }
8081 if test "$with_zlib" = yes; then
8082 if test "${ac_cv_header_zlib_h+set}" = set; then
8083 echo "$as_me:$LINENO: checking for zlib.h" >&5
8084 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8085 if test "${ac_cv_header_zlib_h+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8089 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8091 # Is the header compilable?
8092 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8093 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8094 cat >conftest.$ac_ext <<_ACEOF
8095 #line $LINENO "configure"
8096 #include "confdefs.h"
8097 $ac_includes_default
8100 rm -f conftest.$ac_objext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8102 (eval $ac_compile) 2>&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -s conftest.$ac_objext'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 ac_header_compiler=yes
8114 echo "$as_me: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8116 ac_header_compiler=no
8118 rm -f conftest.$ac_objext conftest.$ac_ext
8119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8120 echo "${ECHO_T}$ac_header_compiler" >&6
8122 # Is the header present?
8123 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8124 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8125 cat >conftest.$ac_ext <<_ACEOF
8126 #line $LINENO "configure"
8127 #include "confdefs.h"
8130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8133 egrep -v '^ *\+' conftest.er1 >conftest.err
8135 cat conftest.err >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } >/dev/null; then
8138 if test -s conftest.err; then
8139 ac_cpp_err=$ac_c_preproc_warn_flag
8146 if test -z "$ac_cpp_err"; then
8147 ac_header_preproc=yes
8149 echo "$as_me: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8151 ac_header_preproc=no
8153 rm -f conftest.err conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8155 echo "${ECHO_T}$ac_header_preproc" >&6
8157 # So? What about this header?
8158 case $ac_header_compiler:$ac_header_preproc in
8160 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8161 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8162 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8163 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8165 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8166 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8167 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8168 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8169 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8170 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8172 echo "$as_me:$LINENO: checking for zlib.h" >&5
8173 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8174 if test "${ac_cv_header_zlib_h+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 ac_cv_header_zlib_h=$ac_header_preproc
8179 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8180 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8183 if test $ac_cv_header_zlib_h = yes; then
8186 { { echo "$as_me:$LINENO: error: zlib header not found
8187 If you have zlib already installed, see config.log for details on the
8188 failure. It is possible the compiler isn't looking in the proper directory.
8189 Use --without-zlib to disable zlib support." >&5
8190 echo "$as_me: error: zlib header not found
8191 If you have zlib already installed, see config.log for details on the
8192 failure. It is possible the compiler isn't looking in the proper directory.
8193 Use --without-zlib to disable zlib support." >&2;}
8194 { (exit 1); exit 1; }; }
8200 if test "$with_krb4" = yes ; then
8201 if test "${ac_cv_header_krb_h+set}" = set; then
8202 echo "$as_me:$LINENO: checking for krb.h" >&5
8203 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8204 if test "${ac_cv_header_krb_h+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8208 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8210 # Is the header compilable?
8211 echo "$as_me:$LINENO: checking krb.h usability" >&5
8212 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8213 cat >conftest.$ac_ext <<_ACEOF
8214 #line $LINENO "configure"
8215 #include "confdefs.h"
8216 $ac_includes_default
8219 rm -f conftest.$ac_objext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8221 (eval $ac_compile) 2>&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -s conftest.$ac_objext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 ac_header_compiler=yes
8233 echo "$as_me: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8235 ac_header_compiler=no
8237 rm -f conftest.$ac_objext conftest.$ac_ext
8238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8239 echo "${ECHO_T}$ac_header_compiler" >&6
8241 # Is the header present?
8242 echo "$as_me:$LINENO: checking krb.h presence" >&5
8243 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8244 cat >conftest.$ac_ext <<_ACEOF
8245 #line $LINENO "configure"
8246 #include "confdefs.h"
8249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8252 egrep -v '^ *\+' conftest.er1 >conftest.err
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } >/dev/null; then
8257 if test -s conftest.err; then
8258 ac_cpp_err=$ac_c_preproc_warn_flag
8265 if test -z "$ac_cpp_err"; then
8266 ac_header_preproc=yes
8268 echo "$as_me: failed program was:" >&5
8269 cat conftest.$ac_ext >&5
8270 ac_header_preproc=no
8272 rm -f conftest.err conftest.$ac_ext
8273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8274 echo "${ECHO_T}$ac_header_preproc" >&6
8276 # So? What about this header?
8277 case $ac_header_compiler:$ac_header_preproc in
8279 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8280 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8282 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8284 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8285 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8286 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8287 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8288 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8289 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8291 echo "$as_me:$LINENO: checking for krb.h" >&5
8292 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8293 if test "${ac_cv_header_krb_h+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 ac_cv_header_krb_h=$ac_header_preproc
8298 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8299 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8302 if test $ac_cv_header_krb_h = yes; then
8305 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8306 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8307 { (exit 1); exit 1; }; }
8313 if test "$with_krb5" = yes ; then
8314 if test "${ac_cv_header_krb5_h+set}" = set; then
8315 echo "$as_me:$LINENO: checking for krb5.h" >&5
8316 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8317 if test "${ac_cv_header_krb5_h+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8321 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8323 # Is the header compilable?
8324 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8325 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8326 cat >conftest.$ac_ext <<_ACEOF
8327 #line $LINENO "configure"
8328 #include "confdefs.h"
8329 $ac_includes_default
8332 rm -f conftest.$ac_objext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8334 (eval $ac_compile) 2>&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } &&
8338 { ac_try='test -s conftest.$ac_objext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_header_compiler=yes
8346 echo "$as_me: failed program was:" >&5
8347 cat conftest.$ac_ext >&5
8348 ac_header_compiler=no
8350 rm -f conftest.$ac_objext conftest.$ac_ext
8351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8352 echo "${ECHO_T}$ac_header_compiler" >&6
8354 # Is the header present?
8355 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8356 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 #include "confdefs.h"
8362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8365 egrep -v '^ *\+' conftest.er1 >conftest.err
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } >/dev/null; then
8370 if test -s conftest.err; then
8371 ac_cpp_err=$ac_c_preproc_warn_flag
8378 if test -z "$ac_cpp_err"; then
8379 ac_header_preproc=yes
8381 echo "$as_me: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8383 ac_header_preproc=no
8385 rm -f conftest.err conftest.$ac_ext
8386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8387 echo "${ECHO_T}$ac_header_preproc" >&6
8389 # So? What about this header?
8390 case $ac_header_compiler:$ac_header_preproc in
8392 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8393 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8394 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8395 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8397 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8398 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8399 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8400 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8401 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8402 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8404 echo "$as_me:$LINENO: checking for krb5.h" >&5
8405 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8406 if test "${ac_cv_header_krb5_h+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 ac_cv_header_krb5_h=$ac_header_preproc
8411 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8412 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8415 if test $ac_cv_header_krb5_h = yes; then
8418 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8419 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8420 { (exit 1); exit 1; }; }
8424 if test "${ac_cv_header_com_err_h+set}" = set; then
8425 echo "$as_me:$LINENO: checking for com_err.h" >&5
8426 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8427 if test "${ac_cv_header_com_err_h+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8431 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8433 # Is the header compilable?
8434 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8435 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8436 cat >conftest.$ac_ext <<_ACEOF
8437 #line $LINENO "configure"
8438 #include "confdefs.h"
8439 $ac_includes_default
8440 #include <com_err.h>
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444 (eval $ac_compile) 2>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -s conftest.$ac_objext'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 ac_header_compiler=yes
8456 echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8458 ac_header_compiler=no
8460 rm -f conftest.$ac_objext conftest.$ac_ext
8461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8462 echo "${ECHO_T}$ac_header_compiler" >&6
8464 # Is the header present?
8465 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8466 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8467 cat >conftest.$ac_ext <<_ACEOF
8468 #line $LINENO "configure"
8469 #include "confdefs.h"
8470 #include <com_err.h>
8472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8475 egrep -v '^ *\+' conftest.er1 >conftest.err
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } >/dev/null; then
8480 if test -s conftest.err; then
8481 ac_cpp_err=$ac_c_preproc_warn_flag
8488 if test -z "$ac_cpp_err"; then
8489 ac_header_preproc=yes
8491 echo "$as_me: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8493 ac_header_preproc=no
8495 rm -f conftest.err conftest.$ac_ext
8496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8497 echo "${ECHO_T}$ac_header_preproc" >&6
8499 # So? What about this header?
8500 case $ac_header_compiler:$ac_header_preproc in
8502 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8503 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8504 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8505 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8507 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8508 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8510 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8512 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8514 echo "$as_me:$LINENO: checking for com_err.h" >&5
8515 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8516 if test "${ac_cv_header_com_err_h+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 ac_cv_header_com_err_h=$ac_header_preproc
8521 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8522 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8525 if test $ac_cv_header_com_err_h = yes; then
8528 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8529 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8530 { (exit 1); exit 1; }; }
8536 if test "$with_openssl" = yes ; then
8537 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8538 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8539 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8540 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8544 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8546 # Is the header compilable?
8547 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8548 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8550 #line $LINENO "configure"
8551 #include "confdefs.h"
8552 $ac_includes_default
8553 #include <openssl/ssl.h>
8555 rm -f conftest.$ac_objext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8557 (eval $ac_compile) 2>&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -s conftest.$ac_objext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_header_compiler=yes
8569 echo "$as_me: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8571 ac_header_compiler=no
8573 rm -f conftest.$ac_objext conftest.$ac_ext
8574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8575 echo "${ECHO_T}$ac_header_compiler" >&6
8577 # Is the header present?
8578 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8579 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8580 cat >conftest.$ac_ext <<_ACEOF
8581 #line $LINENO "configure"
8582 #include "confdefs.h"
8583 #include <openssl/ssl.h>
8585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8588 egrep -v '^ *\+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } >/dev/null; then
8593 if test -s conftest.err; then
8594 ac_cpp_err=$ac_c_preproc_warn_flag
8601 if test -z "$ac_cpp_err"; then
8602 ac_header_preproc=yes
8604 echo "$as_me: failed program was:" >&5
8605 cat conftest.$ac_ext >&5
8606 ac_header_preproc=no
8608 rm -f conftest.err conftest.$ac_ext
8609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8610 echo "${ECHO_T}$ac_header_preproc" >&6
8612 # So? What about this header?
8613 case $ac_header_compiler:$ac_header_preproc in
8615 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8616 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8618 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8620 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8621 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8622 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8623 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8624 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8625 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8627 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8628 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8629 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8634 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8635 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8638 if test $ac_cv_header_openssl_ssl_h = yes; then
8641 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8642 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8643 { (exit 1); exit 1; }; }
8647 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8648 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8649 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8650 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8654 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8656 # Is the header compilable?
8657 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8658 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8660 #line $LINENO "configure"
8661 #include "confdefs.h"
8662 $ac_includes_default
8663 #include <openssl/err.h>
8665 rm -f conftest.$ac_objext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8667 (eval $ac_compile) 2>&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -s conftest.$ac_objext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 ac_header_compiler=yes
8679 echo "$as_me: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8681 ac_header_compiler=no
8683 rm -f conftest.$ac_objext conftest.$ac_ext
8684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8685 echo "${ECHO_T}$ac_header_compiler" >&6
8687 # Is the header present?
8688 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8689 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8690 cat >conftest.$ac_ext <<_ACEOF
8691 #line $LINENO "configure"
8692 #include "confdefs.h"
8693 #include <openssl/err.h>
8695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8698 egrep -v '^ *\+' conftest.er1 >conftest.err
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } >/dev/null; then
8703 if test -s conftest.err; then
8704 ac_cpp_err=$ac_c_preproc_warn_flag
8711 if test -z "$ac_cpp_err"; then
8712 ac_header_preproc=yes
8714 echo "$as_me: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8716 ac_header_preproc=no
8718 rm -f conftest.err conftest.$ac_ext
8719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8720 echo "${ECHO_T}$ac_header_preproc" >&6
8722 # So? What about this header?
8723 case $ac_header_compiler:$ac_header_preproc in
8725 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8726 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8728 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8730 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8731 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8732 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8733 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8734 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8735 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8737 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8738 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8739 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 ac_cv_header_openssl_err_h=$ac_header_preproc
8744 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8745 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8748 if test $ac_cv_header_openssl_err_h = yes; then
8751 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8752 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8753 { (exit 1); exit 1; }; }
8759 if test "$with_pam" = yes ; then
8761 for ac_header in security/pam_appl.h
8763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8765 echo "$as_me:$LINENO: checking for $ac_header" >&5
8766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8773 # Is the header compilable?
8774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8776 cat >conftest.$ac_ext <<_ACEOF
8777 #line $LINENO "configure"
8778 #include "confdefs.h"
8779 $ac_includes_default
8780 #include <$ac_header>
8782 rm -f conftest.$ac_objext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8784 (eval $ac_compile) 2>&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
8788 { ac_try='test -s conftest.$ac_objext'
8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
8794 ac_header_compiler=yes
8796 echo "$as_me: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8798 ac_header_compiler=no
8800 rm -f conftest.$ac_objext conftest.$ac_ext
8801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8802 echo "${ECHO_T}$ac_header_compiler" >&6
8804 # Is the header present?
8805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8807 cat >conftest.$ac_ext <<_ACEOF
8808 #line $LINENO "configure"
8809 #include "confdefs.h"
8810 #include <$ac_header>
8812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8815 egrep -v '^ *\+' conftest.er1 >conftest.err
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } >/dev/null; then
8820 if test -s conftest.err; then
8821 ac_cpp_err=$ac_c_preproc_warn_flag
8828 if test -z "$ac_cpp_err"; then
8829 ac_header_preproc=yes
8831 echo "$as_me: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8833 ac_header_preproc=no
8835 rm -f conftest.err conftest.$ac_ext
8836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8837 echo "${ECHO_T}$ac_header_preproc" >&6
8839 # So? What about this header?
8840 case $ac_header_compiler:$ac_header_preproc in
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8854 echo "$as_me:$LINENO: checking for $ac_header" >&5
8855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 eval "$as_ac_Header=$ac_header_preproc"
8861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8866 cat >>confdefs.h <<_ACEOF
8867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8872 for ac_header in pam/pam_appl.h
8874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8876 echo "$as_me:$LINENO: checking for $ac_header" >&5
8877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8884 # Is the header compilable?
8885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8887 cat >conftest.$ac_ext <<_ACEOF
8888 #line $LINENO "configure"
8889 #include "confdefs.h"
8890 $ac_includes_default
8891 #include <$ac_header>
8893 rm -f conftest.$ac_objext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895 (eval $ac_compile) 2>&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -s conftest.$ac_objext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_header_compiler=yes
8907 echo "$as_me: failed program was:" >&5
8908 cat conftest.$ac_ext >&5
8909 ac_header_compiler=no
8911 rm -f conftest.$ac_objext conftest.$ac_ext
8912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8913 echo "${ECHO_T}$ac_header_compiler" >&6
8915 # Is the header present?
8916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8918 cat >conftest.$ac_ext <<_ACEOF
8919 #line $LINENO "configure"
8920 #include "confdefs.h"
8921 #include <$ac_header>
8923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8926 egrep -v '^ *\+' conftest.er1 >conftest.err
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } >/dev/null; then
8931 if test -s conftest.err; then
8932 ac_cpp_err=$ac_c_preproc_warn_flag
8939 if test -z "$ac_cpp_err"; then
8940 ac_header_preproc=yes
8942 echo "$as_me: failed program was:" >&5
8943 cat conftest.$ac_ext >&5
8944 ac_header_preproc=no
8946 rm -f conftest.err conftest.$ac_ext
8947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8948 echo "${ECHO_T}$ac_header_preproc" >&6
8950 # So? What about this header?
8951 case $ac_header_compiler:$ac_header_preproc in
8953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8965 echo "$as_me:$LINENO: checking for $ac_header" >&5
8966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 eval "$as_ac_Header=$ac_header_preproc"
8972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8977 cat >>confdefs.h <<_ACEOF
8978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8982 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8983 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8984 { (exit 1); exit 1; }; }
8995 if test "$with_rendezvous" = yes ; then
8996 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8997 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8998 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8999 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9003 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9005 # Is the header compilable?
9006 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9007 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9008 cat >conftest.$ac_ext <<_ACEOF
9009 #line $LINENO "configure"
9010 #include "confdefs.h"
9011 $ac_includes_default
9012 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9014 rm -f conftest.$ac_objext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016 (eval $ac_compile) 2>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -s conftest.$ac_objext'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9026 ac_header_compiler=yes
9028 echo "$as_me: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9030 ac_header_compiler=no
9032 rm -f conftest.$ac_objext conftest.$ac_ext
9033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9034 echo "${ECHO_T}$ac_header_compiler" >&6
9036 # Is the header present?
9037 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9038 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9039 cat >conftest.$ac_ext <<_ACEOF
9040 #line $LINENO "configure"
9041 #include "confdefs.h"
9042 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9047 egrep -v '^ *\+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } >/dev/null; then
9052 if test -s conftest.err; then
9053 ac_cpp_err=$ac_c_preproc_warn_flag
9060 if test -z "$ac_cpp_err"; then
9061 ac_header_preproc=yes
9063 echo "$as_me: failed program was:" >&5
9064 cat conftest.$ac_ext >&5
9065 ac_header_preproc=no
9067 rm -f conftest.err conftest.$ac_ext
9068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9069 echo "${ECHO_T}$ac_header_preproc" >&6
9071 # So? What about this header?
9072 case $ac_header_compiler:$ac_header_preproc in
9074 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9075 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9077 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9079 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9080 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9082 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9084 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9086 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9087 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9088 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9093 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9094 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9097 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9100 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9101 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9102 { (exit 1); exit 1; }; }
9110 ## Types, structures, compiler characteristics
9114 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9115 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9116 if test "${ac_cv_c_const+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 cat >conftest.$ac_ext <<_ACEOF
9120 #line $LINENO "configure"
9121 #include "confdefs.h"
9123 #ifdef F77_DUMMY_MAIN
9127 int F77_DUMMY_MAIN() { return 1; }
9132 /* FIXME: Include the comments suggested by Paul. */
9134 /* Ultrix mips cc rejects this. */
9135 typedef int charset[2];
9137 /* SunOS 4.1.1 cc rejects this. */
9138 char const *const *ccp;
9140 /* NEC SVR4.0.2 mips cc rejects this. */
9141 struct point {int x, y;};
9142 static struct point const zero = {0,0};
9143 /* AIX XL C 1.02.0.0 rejects this.
9144 It does not let you subtract one const X* pointer from another in
9145 an arm of an if-expression whose if-part is not a constant
9147 const char *g = "string";
9148 ccp = &g + (g ? g-g : 0);
9149 /* HPUX 7.0 cc rejects these. */
9152 ccp = (char const *const *) p;
9153 { /* SCO 3.2v4 cc rejects this. */
9155 char const *s = 0 ? (char *) 0 : (char const *) 0;
9159 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9161 const int *foo = &x[0];
9164 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9165 typedef const int *iptr;
9169 { /* AIX XL C 1.02.0.0 rejects this saying
9170 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9171 struct s { int j; const int *ap[3]; };
9172 struct s *b; b->j = 5;
9174 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9183 rm -f conftest.$ac_objext
9184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9185 (eval $ac_compile) 2>&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } &&
9189 { ac_try='test -s conftest.$ac_objext'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
9197 echo "$as_me: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9201 rm -f conftest.$ac_objext conftest.$ac_ext
9203 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9204 echo "${ECHO_T}$ac_cv_c_const" >&6
9205 if test $ac_cv_c_const = no; then
9207 cat >>confdefs.h <<\_ACEOF
9213 echo "$as_me:$LINENO: checking for inline" >&5
9214 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9215 if test "${ac_cv_c_inline+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 for ac_kw in inline __inline__ __inline; do
9220 cat >conftest.$ac_ext <<_ACEOF
9221 #line $LINENO "configure"
9222 #include "confdefs.h"
9224 static $ac_kw int static_foo () {return 0; }
9225 $ac_kw int foo () {return 0; }
9229 rm -f conftest.$ac_objext
9230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9231 (eval $ac_compile) 2>&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } &&
9235 { ac_try='test -s conftest.$ac_objext'
9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; }; then
9241 ac_cv_c_inline=$ac_kw; break
9243 echo "$as_me: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9246 rm -f conftest.$ac_objext conftest.$ac_ext
9250 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9251 echo "${ECHO_T}$ac_cv_c_inline" >&6
9252 case $ac_cv_c_inline in
9255 cat >>confdefs.h <<\_ACEOF
9259 *) cat >>confdefs.h <<_ACEOF
9260 #define inline $ac_cv_c_inline
9265 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9266 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9267 if test "${ac_cv_c_stringize+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 cat >conftest.$ac_ext <<_ACEOF
9271 #line $LINENO "configure"
9272 #include "confdefs.h"
9275 char *s = x(teststring);
9277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9278 egrep "#teststring" >/dev/null 2>&1; then
9279 ac_cv_c_stringize=no
9281 ac_cv_c_stringize=yes
9286 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9287 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9288 if test $ac_cv_c_stringize = yes; then
9290 cat >>confdefs.h <<\_ACEOF
9291 #define HAVE_STRINGIZE 1
9296 echo "$as_me:$LINENO: checking for signed types" >&5
9297 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9298 if test "${pgac_cv_c_signed+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9303 #include "confdefs.h"
9305 #ifdef F77_DUMMY_MAIN
9309 int F77_DUMMY_MAIN() { return 1; }
9314 signed char c; signed short s; signed int i;
9319 rm -f conftest.$ac_objext
9320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9321 (eval $ac_compile) 2>&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
9325 { ac_try='test -s conftest.$ac_objext'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; }; then
9331 pgac_cv_c_signed=yes
9333 echo "$as_me: failed program was:" >&5
9334 cat conftest.$ac_ext >&5
9337 rm -f conftest.$ac_objext conftest.$ac_ext
9339 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9340 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9341 if test x"$pgac_cv_c_signed" = xno ; then
9343 cat >>confdefs.h <<\_ACEOF
9348 echo "$as_me:$LINENO: checking for working volatile" >&5
9349 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9350 if test "${ac_cv_c_volatile+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9355 #include "confdefs.h"
9357 #ifdef F77_DUMMY_MAIN
9361 int F77_DUMMY_MAIN() { return 1; }
9373 rm -f conftest.$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375 (eval $ac_compile) 2>&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -s conftest.$ac_objext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 ac_cv_c_volatile=yes
9387 echo "$as_me: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9391 rm -f conftest.$ac_objext conftest.$ac_ext
9393 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9394 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9395 if test $ac_cv_c_volatile = no; then
9397 cat >>confdefs.h <<\_ACEOF
9403 echo "$as_me:$LINENO: checking for __func__" >&5
9404 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9405 if test "${pgac_cv_funcname_func_support+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 cat >conftest.$ac_ext <<_ACEOF
9409 #line $LINENO "configure"
9410 #include "confdefs.h"
9412 #ifdef F77_DUMMY_MAIN
9416 int F77_DUMMY_MAIN() { return 1; }
9421 printf("%s\n", __func__);
9426 rm -f conftest.$ac_objext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9428 (eval $ac_compile) 2>&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } &&
9432 { ac_try='test -s conftest.$ac_objext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 pgac_cv_funcname_func_support=yes
9440 echo "$as_me: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9442 pgac_cv_funcname_func_support=no
9444 rm -f conftest.$ac_objext conftest.$ac_ext
9446 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9447 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9448 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9450 cat >>confdefs.h <<\_ACEOF
9451 #define HAVE_FUNCNAME__FUNC 1
9455 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9456 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9457 if test "${pgac_cv_funcname_function_support+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 cat >conftest.$ac_ext <<_ACEOF
9461 #line $LINENO "configure"
9462 #include "confdefs.h"
9464 #ifdef F77_DUMMY_MAIN
9468 int F77_DUMMY_MAIN() { return 1; }
9473 printf("%s\n", __FUNCTION__);
9478 rm -f conftest.$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480 (eval $ac_compile) 2>&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -s conftest.$ac_objext'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; }; then
9490 pgac_cv_funcname_function_support=yes
9492 echo "$as_me: failed program was:" >&5
9493 cat conftest.$ac_ext >&5
9494 pgac_cv_funcname_function_support=no
9496 rm -f conftest.$ac_objext conftest.$ac_ext
9498 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9499 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9500 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_FUNCNAME__FUNCTION 1
9508 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9509 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9510 if test "${ac_cv_struct_tm+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 cat >conftest.$ac_ext <<_ACEOF
9514 #line $LINENO "configure"
9515 #include "confdefs.h"
9516 #include <sys/types.h>
9519 #ifdef F77_DUMMY_MAIN
9523 int F77_DUMMY_MAIN() { return 1; }
9528 struct tm *tp; tp->tm_sec;
9533 rm -f conftest.$ac_objext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9535 (eval $ac_compile) 2>&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -s conftest.$ac_objext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_struct_tm=time.h
9547 echo "$as_me: failed program was:" >&5
9548 cat conftest.$ac_ext >&5
9549 ac_cv_struct_tm=sys/time.h
9551 rm -f conftest.$ac_objext conftest.$ac_ext
9553 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9554 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9555 if test $ac_cv_struct_tm = sys/time.h; then
9557 cat >>confdefs.h <<\_ACEOF
9558 #define TM_IN_SYS_TIME 1
9563 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9564 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9565 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 cat >conftest.$ac_ext <<_ACEOF
9569 #line $LINENO "configure"
9570 #include "confdefs.h"
9571 #include <sys/types.h>
9572 #include <$ac_cv_struct_tm>
9575 #ifdef F77_DUMMY_MAIN
9579 int F77_DUMMY_MAIN() { return 1; }
9584 static struct tm ac_aggr;
9585 if (ac_aggr.tm_zone)
9591 rm -f conftest.$ac_objext
9592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9593 (eval $ac_compile) 2>&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try='test -s conftest.$ac_objext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_cv_member_struct_tm_tm_zone=yes
9605 echo "$as_me: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9607 ac_cv_member_struct_tm_tm_zone=no
9609 rm -f conftest.$ac_objext conftest.$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9612 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9613 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9615 cat >>confdefs.h <<_ACEOF
9616 #define HAVE_STRUCT_TM_TM_ZONE 1
9622 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9624 cat >>confdefs.h <<\_ACEOF
9625 #define HAVE_TM_ZONE 1
9629 echo "$as_me:$LINENO: checking for tzname" >&5
9630 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9631 if test "${ac_cv_var_tzname+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 cat >conftest.$ac_ext <<_ACEOF
9635 #line $LINENO "configure"
9636 #include "confdefs.h"
9638 #ifndef tzname /* For SGI. */
9639 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9642 #ifdef F77_DUMMY_MAIN
9646 int F77_DUMMY_MAIN() { return 1; }
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658 (eval $ac_link) 2>&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -s conftest$ac_exeext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_cv_var_tzname=yes
9670 echo "$as_me: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9676 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9677 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9678 if test $ac_cv_var_tzname = yes; then
9680 cat >>confdefs.h <<\_ACEOF
9681 #define HAVE_TZNAME 1
9686 echo "$as_me:$LINENO: checking for union semun" >&5
9687 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9688 if test "${ac_cv_type_union_semun+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 cat >conftest.$ac_ext <<_ACEOF
9692 #line $LINENO "configure"
9693 #include "confdefs.h"
9694 #include <sys/types.h>
9695 #include <sys/ipc.h>
9696 #include <sys/sem.h>
9698 #ifdef F77_DUMMY_MAIN
9702 int F77_DUMMY_MAIN() { return 1; }
9707 if ((union semun *) 0)
9709 if (sizeof (union semun))
9715 rm -f conftest.$ac_objext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9717 (eval $ac_compile) 2>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try='test -s conftest.$ac_objext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_type_union_semun=yes
9729 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9731 ac_cv_type_union_semun=no
9733 rm -f conftest.$ac_objext conftest.$ac_ext
9735 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9736 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9737 if test $ac_cv_type_union_semun = yes; then
9739 cat >>confdefs.h <<_ACEOF
9740 #define HAVE_UNION_SEMUN 1
9746 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9747 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9748 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 cat >conftest.$ac_ext <<_ACEOF
9752 #line $LINENO "configure"
9753 #include "confdefs.h"
9754 #include <sys/types.h>
9755 #ifdef HAVE_SYS_UN_H
9760 #ifdef F77_DUMMY_MAIN
9764 int F77_DUMMY_MAIN() { return 1; }
9769 if ((struct sockaddr_un *) 0)
9771 if (sizeof (struct sockaddr_un))
9777 rm -f conftest.$ac_objext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779 (eval $ac_compile) 2>&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -s conftest.$ac_objext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9789 ac_cv_type_struct_sockaddr_un=yes
9791 echo "$as_me: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9793 ac_cv_type_struct_sockaddr_un=no
9795 rm -f conftest.$ac_objext conftest.$ac_ext
9797 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9798 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9799 if test $ac_cv_type_struct_sockaddr_un = yes; then
9801 cat >>confdefs.h <<_ACEOF
9802 #define HAVE_STRUCT_SOCKADDR_UN 1
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_UNIX_SOCKETS 1
9812 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9813 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9814 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 cat >conftest.$ac_ext <<_ACEOF
9818 #line $LINENO "configure"
9819 #include "confdefs.h"
9820 #include <sys/types.h>
9821 #ifdef HAVE_SYS_SOCKET_H
9822 #include <sys/socket.h>
9826 #ifdef F77_DUMMY_MAIN
9830 int F77_DUMMY_MAIN() { return 1; }
9835 if ((struct sockaddr_storage *) 0)
9837 if (sizeof (struct sockaddr_storage))
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845 (eval $ac_compile) 2>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } &&
9849 { ac_try='test -s conftest.$ac_objext'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 ac_cv_type_struct_sockaddr_storage=yes
9857 echo "$as_me: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9859 ac_cv_type_struct_sockaddr_storage=no
9861 rm -f conftest.$ac_objext conftest.$ac_ext
9863 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9864 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9865 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9867 cat >>confdefs.h <<_ACEOF
9868 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9874 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9875 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9876 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 cat >conftest.$ac_ext <<_ACEOF
9880 #line $LINENO "configure"
9881 #include "confdefs.h"
9882 #include <sys/types.h>
9883 #ifdef HAVE_SYS_SOCKET_H
9884 #include <sys/socket.h>
9888 #ifdef F77_DUMMY_MAIN
9892 int F77_DUMMY_MAIN() { return 1; }
9897 static struct sockaddr_storage ac_aggr;
9898 if (ac_aggr.ss_family)
9904 rm -f conftest.$ac_objext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906 (eval $ac_compile) 2>&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -s conftest.$ac_objext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_member_struct_sockaddr_storage_ss_family=yes
9918 echo "$as_me: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9920 ac_cv_member_struct_sockaddr_storage_ss_family=no
9922 rm -f conftest.$ac_objext conftest.$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9925 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9926 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9928 cat >>confdefs.h <<_ACEOF
9929 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9934 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9935 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9936 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 cat >conftest.$ac_ext <<_ACEOF
9940 #line $LINENO "configure"
9941 #include "confdefs.h"
9942 #include <sys/types.h>
9943 #ifdef HAVE_SYS_SOCKET_H
9944 #include <sys/socket.h>
9948 #ifdef F77_DUMMY_MAIN
9952 int F77_DUMMY_MAIN() { return 1; }
9957 static struct sockaddr_storage ac_aggr;
9958 if (ac_aggr.__ss_family)
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -s conftest.$ac_objext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_member_struct_sockaddr_storage___ss_family=yes
9978 echo "$as_me: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9980 ac_cv_member_struct_sockaddr_storage___ss_family=no
9982 rm -f conftest.$ac_objext conftest.$ac_ext
9984 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9985 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9986 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9995 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
9996 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
9997 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 cat >conftest.$ac_ext <<_ACEOF
10001 #line $LINENO "configure"
10002 #include "confdefs.h"
10003 #include <sys/types.h>
10004 #include <sys/socket.h>
10008 #ifdef F77_DUMMY_MAIN
10009 # ifdef __cplusplus
10012 int F77_DUMMY_MAIN() { return 1; }
10017 if ((struct addrinfo *) 0)
10019 if (sizeof (struct addrinfo))
10025 rm -f conftest.$ac_objext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027 (eval $ac_compile) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -s conftest.$ac_objext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 ac_cv_type_struct_addrinfo=yes
10039 echo "$as_me: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 ac_cv_type_struct_addrinfo=no
10043 rm -f conftest.$ac_objext conftest.$ac_ext
10045 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10046 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10047 if test $ac_cv_type_struct_addrinfo = yes; then
10049 cat >>confdefs.h <<_ACEOF
10050 #define HAVE_STRUCT_ADDRINFO 1
10057 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10058 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10059 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 cat >conftest.$ac_ext <<_ACEOF
10063 #line $LINENO "configure"
10064 #include "confdefs.h"
10065 #include <sys/param.h>
10066 #include <sys/types.h>
10067 #include <sys/socket.h>
10068 #include <sys/ucred.h>
10070 #ifdef F77_DUMMY_MAIN
10071 # ifdef __cplusplus
10074 int F77_DUMMY_MAIN() { return 1; }
10079 if ((struct cmsgcred *) 0)
10081 if (sizeof (struct cmsgcred))
10087 rm -f conftest.$ac_objext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089 (eval $ac_compile) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try='test -s conftest.$ac_objext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 ac_cv_type_struct_cmsgcred=yes
10101 echo "$as_me: failed program was:" >&5
10102 cat conftest.$ac_ext >&5
10103 ac_cv_type_struct_cmsgcred=no
10105 rm -f conftest.$ac_objext conftest.$ac_ext
10107 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10108 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10109 if test $ac_cv_type_struct_cmsgcred = yes; then
10111 cat >>confdefs.h <<_ACEOF
10112 #define HAVE_STRUCT_CMSGCRED 1
10117 echo "$as_me:$LINENO: checking for struct fcred" >&5
10118 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10119 if test "${ac_cv_type_struct_fcred+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 cat >conftest.$ac_ext <<_ACEOF
10123 #line $LINENO "configure"
10124 #include "confdefs.h"
10125 #include <sys/param.h>
10126 #include <sys/types.h>
10127 #include <sys/socket.h>
10128 #include <sys/ucred.h>
10130 #ifdef F77_DUMMY_MAIN
10131 # ifdef __cplusplus
10134 int F77_DUMMY_MAIN() { return 1; }
10139 if ((struct fcred *) 0)
10141 if (sizeof (struct fcred))
10147 rm -f conftest.$ac_objext
10148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10149 (eval $ac_compile) 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } &&
10153 { ac_try='test -s conftest.$ac_objext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 ac_cv_type_struct_fcred=yes
10161 echo "$as_me: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10163 ac_cv_type_struct_fcred=no
10165 rm -f conftest.$ac_objext conftest.$ac_ext
10167 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10168 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10169 if test $ac_cv_type_struct_fcred = yes; then
10171 cat >>confdefs.h <<_ACEOF
10172 #define HAVE_STRUCT_FCRED 1
10177 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10178 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10179 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 cat >conftest.$ac_ext <<_ACEOF
10183 #line $LINENO "configure"
10184 #include "confdefs.h"
10185 #include <sys/param.h>
10186 #include <sys/types.h>
10187 #include <sys/socket.h>
10188 #include <sys/ucred.h>
10190 #ifdef F77_DUMMY_MAIN
10191 # ifdef __cplusplus
10194 int F77_DUMMY_MAIN() { return 1; }
10199 if ((struct sockcred *) 0)
10201 if (sizeof (struct sockcred))
10207 rm -f conftest.$ac_objext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10209 (eval $ac_compile) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
10213 { ac_try='test -s conftest.$ac_objext'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 ac_cv_type_struct_sockcred=yes
10221 echo "$as_me: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10223 ac_cv_type_struct_sockcred=no
10225 rm -f conftest.$ac_objext conftest.$ac_ext
10227 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10228 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10229 if test $ac_cv_type_struct_sockcred = yes; then
10231 cat >>confdefs.h <<_ACEOF
10232 #define HAVE_STRUCT_SOCKCRED 1
10239 if test "$with_zlib" = yes; then
10240 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10241 # did not). While we could work around the lack of z_streamp, it
10242 # seems unwise to encourage people to use such old zlib versions...
10243 echo "$as_me:$LINENO: checking for z_streamp" >&5
10244 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10245 if test "${ac_cv_type_z_streamp+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 cat >conftest.$ac_ext <<_ACEOF
10249 #line $LINENO "configure"
10250 #include "confdefs.h"
10253 #ifdef F77_DUMMY_MAIN
10254 # ifdef __cplusplus
10257 int F77_DUMMY_MAIN() { return 1; }
10262 if ((z_streamp *) 0)
10264 if (sizeof (z_streamp))
10270 rm -f conftest.$ac_objext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272 (eval $ac_compile) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_type_z_streamp=yes
10284 echo "$as_me: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10286 ac_cv_type_z_streamp=no
10288 rm -f conftest.$ac_objext conftest.$ac_ext
10290 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10291 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10292 if test $ac_cv_type_z_streamp = yes; then
10295 { { echo "$as_me:$LINENO: error: zlib version is too old
10296 Use --without-zlib to disable zlib support." >&5
10297 echo "$as_me: error: zlib version is too old
10298 Use --without-zlib to disable zlib support." >&2;}
10299 { (exit 1); exit 1; }; }
10304 if test "$with_krb5" = yes; then
10305 # Check for differences between MIT and Heimdal (KTH) releases
10306 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10307 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10308 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 cat >conftest.$ac_ext <<_ACEOF
10312 #line $LINENO "configure"
10313 #include "confdefs.h"
10316 #ifdef F77_DUMMY_MAIN
10317 # ifdef __cplusplus
10320 int F77_DUMMY_MAIN() { return 1; }
10325 static krb5_ticket ac_aggr;
10326 if (ac_aggr.enc_part2)
10332 rm -f conftest.$ac_objext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10334 (eval $ac_compile) 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try='test -s conftest.$ac_objext'
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
10344 ac_cv_member_krb5_ticket_enc_part2=yes
10346 echo "$as_me: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10348 ac_cv_member_krb5_ticket_enc_part2=no
10350 rm -f conftest.$ac_objext conftest.$ac_ext
10352 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10353 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10354 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10356 cat >>confdefs.h <<_ACEOF
10357 #define HAVE_KRB5_TICKET_ENC_PART2 1
10362 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10363 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10364 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 cat >conftest.$ac_ext <<_ACEOF
10368 #line $LINENO "configure"
10369 #include "confdefs.h"
10372 #ifdef F77_DUMMY_MAIN
10373 # ifdef __cplusplus
10376 int F77_DUMMY_MAIN() { return 1; }
10381 static krb5_ticket ac_aggr;
10382 if (ac_aggr.client)
10388 rm -f conftest.$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390 (eval $ac_compile) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } &&
10394 { ac_try='test -s conftest.$ac_objext'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; }; then
10400 ac_cv_member_krb5_ticket_client=yes
10402 echo "$as_me: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10404 ac_cv_member_krb5_ticket_client=no
10406 rm -f conftest.$ac_objext conftest.$ac_ext
10408 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10409 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10410 if test $ac_cv_member_krb5_ticket_client = yes; then
10412 cat >>confdefs.h <<_ACEOF
10413 #define HAVE_KRB5_TICKET_CLIENT 1
10418 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10419 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10420 { (exit 1); exit 1; }; }
10425 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10426 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10427 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 cat >conftest.$ac_ext <<_ACEOF
10431 #line $LINENO "configure"
10432 #include "confdefs.h"
10435 #ifdef F77_DUMMY_MAIN
10436 # ifdef __cplusplus
10439 int F77_DUMMY_MAIN() { return 1; }
10444 static krb5_error ac_aggr;
10445 if (ac_aggr.text.data)
10451 rm -f conftest.$ac_objext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453 (eval $ac_compile) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } &&
10457 { ac_try='test -s conftest.$ac_objext'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_cv_member_krb5_error_text_data=yes
10465 echo "$as_me: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 ac_cv_member_krb5_error_text_data=no
10469 rm -f conftest.$ac_objext conftest.$ac_ext
10471 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10472 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10473 if test $ac_cv_member_krb5_error_text_data = yes; then
10475 cat >>confdefs.h <<_ACEOF
10476 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10481 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10482 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10483 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 cat >conftest.$ac_ext <<_ACEOF
10487 #line $LINENO "configure"
10488 #include "confdefs.h"
10491 #ifdef F77_DUMMY_MAIN
10492 # ifdef __cplusplus
10495 int F77_DUMMY_MAIN() { return 1; }
10500 static krb5_error ac_aggr;
10501 if (ac_aggr.e_data)
10507 rm -f conftest.$ac_objext
10508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10509 (eval $ac_compile) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } &&
10513 { ac_try='test -s conftest.$ac_objext'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10519 ac_cv_member_krb5_error_e_data=yes
10521 echo "$as_me: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10523 ac_cv_member_krb5_error_e_data=no
10525 rm -f conftest.$ac_objext conftest.$ac_ext
10527 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10528 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10529 if test $ac_cv_member_krb5_error_e_data = yes; then
10531 cat >>confdefs.h <<_ACEOF
10532 #define HAVE_KRB5_ERROR_E_DATA 1
10537 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10538 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10539 { (exit 1); exit 1; }; }
10548 ## Functions, global variables
10551 echo "$as_me:$LINENO: checking for int timezone" >&5
10552 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10553 if test "${pgac_cv_var_int_timezone+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 cat >conftest.$ac_ext <<_ACEOF
10557 #line $LINENO "configure"
10558 #include "confdefs.h"
10561 #ifdef F77_DUMMY_MAIN
10562 # ifdef __cplusplus
10565 int F77_DUMMY_MAIN() { return 1; }
10570 res = timezone / 60;
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10577 (eval $ac_link) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
10581 { ac_try='test -s conftest$ac_exeext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 pgac_cv_var_int_timezone=yes
10589 echo "$as_me: failed program was:" >&5
10590 cat conftest.$ac_ext >&5
10591 pgac_cv_var_int_timezone=no
10593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10595 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10596 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10597 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10599 cat >>confdefs.h <<\_ACEOF
10600 #define HAVE_INT_TIMEZONE
10604 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10605 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10606 if test "${ac_cv_func_accept_arg1+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 if test "${ac_cv_func_accept_arg2+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 if test "${ac_cv_func_accept_arg3+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10616 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10617 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10618 cat >conftest.$ac_ext <<_ACEOF
10619 #line $LINENO "configure"
10620 #include "confdefs.h"
10621 #ifdef HAVE_SYS_TYPES_H
10622 #include <sys/types.h>
10624 #ifdef HAVE_SYS_SOCKET_H
10625 #include <sys/socket.h>
10627 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10628 #ifdef F77_DUMMY_MAIN
10629 # ifdef __cplusplus
10632 int F77_DUMMY_MAIN() { return 1; }
10642 rm -f conftest.$ac_objext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10644 (eval $ac_compile) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 ac_not_found=no; break 3
10656 echo "$as_me: failed program was:" >&5
10657 cat conftest.$ac_ext >&5
10660 rm -f conftest.$ac_objext conftest.$ac_ext
10664 if test "$ac_not_found" = yes; then
10665 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10666 echo "$as_me: error: could not determine argument types" >&2;}
10667 { (exit 1); exit 1; }; }
10669 if test "$ac_cv_func_accept_arg3" = "void"; then
10670 ac_cv_func_accept_arg3=int
10678 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10679 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10681 cat >>confdefs.h <<_ACEOF
10682 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10686 cat >>confdefs.h <<_ACEOF
10687 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10691 cat >>confdefs.h <<_ACEOF
10692 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10696 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10697 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10698 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 cat >conftest.$ac_ext <<_ACEOF
10702 #line $LINENO "configure"
10703 #include "confdefs.h"
10704 #include <sys/time.h>
10705 #ifdef F77_DUMMY_MAIN
10706 # ifdef __cplusplus
10709 int F77_DUMMY_MAIN() { return 1; }
10714 struct timeval *tp;
10715 struct timezone *tzp;
10716 gettimeofday(tp,tzp);
10721 rm -f conftest.$ac_objext
10722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10723 (eval $ac_compile) 2>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
10727 { ac_try='test -s conftest.$ac_objext'
10728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729 (eval $ac_try) 2>&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; }; then
10733 pgac_cv_func_gettimeofday_1arg=no
10735 echo "$as_me: failed program was:" >&5
10736 cat conftest.$ac_ext >&5
10737 pgac_cv_func_gettimeofday_1arg=yes
10739 rm -f conftest.$ac_objext conftest.$ac_ext
10741 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10742 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10743 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10745 cat >>confdefs.h <<\_ACEOF
10746 #define GETTIMEOFDAY_1ARG
10753 # SunOS doesn't handle negative byte comparisons properly with +/- return
10754 echo "$as_me:$LINENO: checking for working memcmp" >&5
10755 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10756 if test "${ac_cv_func_memcmp_working+set}" = set; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 if test "$cross_compiling" = yes; then
10760 ac_cv_func_memcmp_working=no
10762 cat >conftest.$ac_ext <<_ACEOF
10763 #line $LINENO "configure"
10764 #include "confdefs.h"
10766 #ifdef F77_DUMMY_MAIN
10767 # ifdef __cplusplus
10770 int F77_DUMMY_MAIN() { return 1; }
10776 /* Some versions of memcmp are not 8-bit clean. */
10777 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10778 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10781 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10782 or more and with at least one buffer not starting on a 4-byte boundary.
10783 William Lewis provided this test program. */
10788 for (i = 0; i < 4; i++)
10792 strcpy (a, "--------01111111");
10793 strcpy (b, "--------10000000");
10794 if (memcmp (a, b, 16) >= 0)
10804 rm -f conftest$ac_exeext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806 (eval $ac_link) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_cv_func_memcmp_working=yes
10817 echo "$as_me: program exited with status $ac_status" >&5
10818 echo "$as_me: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10820 ( exit $ac_status )
10821 ac_cv_func_memcmp_working=no
10823 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10826 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10827 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10828 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10847 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10850 echo "$as_me:$LINENO: checking for $ac_func" >&5
10851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10852 if eval "test \"\${$as_ac_var+set}\" = set"; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 cat >conftest.$ac_ext <<_ACEOF
10856 #line $LINENO "configure"
10857 #include "confdefs.h"
10858 /* System header to define __stub macros and hopefully few prototypes,
10859 which can conflict with char $ac_func (); below. */
10860 #include <assert.h>
10861 /* Override any gcc2 internal prototype to avoid an error. */
10865 /* We use char because int might match the return type of a gcc2
10866 builtin and then its argument prototype would still apply. */
10870 #ifdef F77_DUMMY_MAIN
10871 # ifdef __cplusplus
10874 int F77_DUMMY_MAIN() { return 1; }
10879 /* The GNU C library defines this for functions which it implements
10880 to always fail with ENOSYS. Some functions are actually named
10881 something starting with __ and the normal name is an alias. */
10882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10892 rm -f conftest.$ac_objext conftest$ac_exeext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10894 (eval $ac_link) 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -s conftest$ac_exeext'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 eval "$as_ac_var=yes"
10906 echo "$as_me: failed program was:" >&5
10907 cat conftest.$ac_ext >&5
10908 eval "$as_ac_var=no"
10910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10914 if test `eval echo '${'$as_ac_var'}'` = yes; then
10915 cat >>confdefs.h <<_ACEOF
10916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10923 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10924 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10925 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 cat >conftest.$ac_ext <<_ACEOF
10929 #line $LINENO "configure"
10930 #include "confdefs.h"
10931 #include <unistd.h>
10933 #ifdef F77_DUMMY_MAIN
10934 # ifdef __cplusplus
10937 int F77_DUMMY_MAIN() { return 1; }
10943 char *p = (char *) fdatasync;
10950 rm -f conftest.$ac_objext
10951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10952 (eval $ac_compile) 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try='test -s conftest.$ac_objext'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 ac_cv_have_decl_fdatasync=yes
10964 echo "$as_me: failed program was:" >&5
10965 cat conftest.$ac_ext >&5
10966 ac_cv_have_decl_fdatasync=no
10968 rm -f conftest.$ac_objext conftest.$ac_ext
10970 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10971 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10972 if test $ac_cv_have_decl_fdatasync = yes; then
10974 cat >>confdefs.h <<_ACEOF
10975 #define HAVE_DECL_FDATASYNC 1
10980 cat >>confdefs.h <<_ACEOF
10981 #define HAVE_DECL_FDATASYNC 0
10989 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
10990 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
10991 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 cat >conftest.$ac_ext <<_ACEOF
10995 #line $LINENO "configure"
10996 #include "confdefs.h"
10997 $ac_includes_default
10998 #include <netinet/in.h>
11000 #ifdef F77_DUMMY_MAIN
11001 # ifdef __cplusplus
11004 int F77_DUMMY_MAIN() { return 1; }
11009 if ((struct sockaddr_in6 *) 0)
11011 if (sizeof (struct sockaddr_in6))
11017 rm -f conftest.$ac_objext
11018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11019 (eval $ac_compile) 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -s conftest.$ac_objext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_type_struct_sockaddr_in6=yes
11031 echo "$as_me: failed program was:" >&5
11032 cat conftest.$ac_ext >&5
11033 ac_cv_type_struct_sockaddr_in6=no
11035 rm -f conftest.$ac_objext conftest.$ac_ext
11037 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11038 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11039 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11040 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11041 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11042 if test "${ac_cv_func_inet_ntop+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 cat >conftest.$ac_ext <<_ACEOF
11046 #line $LINENO "configure"
11047 #include "confdefs.h"
11048 /* System header to define __stub macros and hopefully few prototypes,
11049 which can conflict with char inet_ntop (); below. */
11050 #include <assert.h>
11051 /* Override any gcc2 internal prototype to avoid an error. */
11055 /* We use char because int might match the return type of a gcc2
11056 builtin and then its argument prototype would still apply. */
11060 #ifdef F77_DUMMY_MAIN
11061 # ifdef __cplusplus
11064 int F77_DUMMY_MAIN() { return 1; }
11069 /* The GNU C library defines this for functions which it implements
11070 to always fail with ENOSYS. Some functions are actually named
11071 something starting with __ and the normal name is an alias. */
11072 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084 (eval $ac_link) 2>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -s conftest$ac_exeext'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 ac_cv_func_inet_ntop=yes
11096 echo "$as_me: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11098 ac_cv_func_inet_ntop=no
11100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11102 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11103 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11104 if test $ac_cv_func_inet_ntop = yes; then
11106 cat >>confdefs.h <<\_ACEOF
11107 #define HAVE_IPV6 1
11115 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11116 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11117 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 cat >conftest.$ac_ext <<_ACEOF
11121 #line $LINENO "configure"
11122 #include "confdefs.h"
11123 #include <machine/vmparam.h>
11124 #include <sys/exec.h>
11126 #ifdef F77_DUMMY_MAIN
11127 # ifdef __cplusplus
11130 int F77_DUMMY_MAIN() { return 1; }
11135 PS_STRINGS->ps_nargvstr = 1;
11136 PS_STRINGS->ps_argvstr = "foo";
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143 (eval $ac_link) 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try='test -s conftest$ac_exeext'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 pgac_cv_var_PS_STRINGS=yes
11155 echo "$as_me: failed program was:" >&5
11156 cat conftest.$ac_ext >&5
11157 pgac_cv_var_PS_STRINGS=no
11159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11161 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11162 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11163 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11165 cat >>confdefs.h <<\_ACEOF
11166 #define HAVE_PS_STRINGS
11172 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11173 # is missing. Yes, there are machines that have only one. We may
11174 # also decide to use snprintf.c if snprintf() is present but does not
11175 # have working "long long int" support -- see below.
11177 pgac_need_repl_snprintf=no
11179 for ac_func in snprintf
11181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11182 echo "$as_me:$LINENO: checking for $ac_func" >&5
11183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11184 if eval "test \"\${$as_ac_var+set}\" = set"; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 cat >conftest.$ac_ext <<_ACEOF
11188 #line $LINENO "configure"
11189 #include "confdefs.h"
11190 /* System header to define __stub macros and hopefully few prototypes,
11191 which can conflict with char $ac_func (); below. */
11192 #include <assert.h>
11193 /* Override any gcc2 internal prototype to avoid an error. */
11197 /* We use char because int might match the return type of a gcc2
11198 builtin and then its argument prototype would still apply. */
11202 #ifdef F77_DUMMY_MAIN
11203 # ifdef __cplusplus
11206 int F77_DUMMY_MAIN() { return 1; }
11211 /* The GNU C library defines this for functions which it implements
11212 to always fail with ENOSYS. Some functions are actually named
11213 something starting with __ and the normal name is an alias. */
11214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -s conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 eval "$as_ac_var=yes"
11238 echo "$as_me: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 eval "$as_ac_var=no"
11242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11246 if test `eval echo '${'$as_ac_var'}'` = yes; then
11247 cat >>confdefs.h <<_ACEOF
11248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11252 pgac_need_repl_snprintf=yes
11257 for ac_func in vsnprintf
11259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11260 echo "$as_me:$LINENO: checking for $ac_func" >&5
11261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11262 if eval "test \"\${$as_ac_var+set}\" = set"; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11267 #include "confdefs.h"
11268 /* System header to define __stub macros and hopefully few prototypes,
11269 which can conflict with char $ac_func (); below. */
11270 #include <assert.h>
11271 /* Override any gcc2 internal prototype to avoid an error. */
11275 /* We use char because int might match the return type of a gcc2
11276 builtin and then its argument prototype would still apply. */
11280 #ifdef F77_DUMMY_MAIN
11281 # ifdef __cplusplus
11284 int F77_DUMMY_MAIN() { return 1; }
11289 /* The GNU C library defines this for functions which it implements
11290 to always fail with ENOSYS. Some functions are actually named
11291 something starting with __ and the normal name is an alias. */
11292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11304 (eval $ac_link) 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -s conftest$ac_exeext'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 eval "$as_ac_var=yes"
11316 echo "$as_me: failed program was:" >&5
11317 cat conftest.$ac_ext >&5
11318 eval "$as_ac_var=no"
11320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11324 if test `eval echo '${'$as_ac_var'}'` = yes; then
11325 cat >>confdefs.h <<_ACEOF
11326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11330 pgac_need_repl_snprintf=yes
11336 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11337 # include/c.h will provide declarations. Note this is a separate test
11338 # from whether the functions exist in the C library --- there are
11339 # systems that have the functions but don't bother to declare them :-(
11341 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11342 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11343 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 cat >conftest.$ac_ext <<_ACEOF
11347 #line $LINENO "configure"
11348 #include "confdefs.h"
11349 $ac_includes_default
11350 #ifdef F77_DUMMY_MAIN
11351 # ifdef __cplusplus
11354 int F77_DUMMY_MAIN() { return 1; }
11360 char *p = (char *) snprintf;
11367 rm -f conftest.$ac_objext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11369 (eval $ac_compile) 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
11373 { ac_try='test -s conftest.$ac_objext'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 ac_cv_have_decl_snprintf=yes
11381 echo "$as_me: failed program was:" >&5
11382 cat conftest.$ac_ext >&5
11383 ac_cv_have_decl_snprintf=no
11385 rm -f conftest.$ac_objext conftest.$ac_ext
11387 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11388 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11389 if test $ac_cv_have_decl_snprintf = yes; then
11391 cat >>confdefs.h <<_ACEOF
11392 #define HAVE_DECL_SNPRINTF 1
11397 cat >>confdefs.h <<_ACEOF
11398 #define HAVE_DECL_SNPRINTF 0
11403 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11404 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11405 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 #include "confdefs.h"
11411 $ac_includes_default
11412 #ifdef F77_DUMMY_MAIN
11413 # ifdef __cplusplus
11416 int F77_DUMMY_MAIN() { return 1; }
11422 char *p = (char *) vsnprintf;
11429 rm -f conftest.$ac_objext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11431 (eval $ac_compile) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -s conftest.$ac_objext'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; }; then
11441 ac_cv_have_decl_vsnprintf=yes
11443 echo "$as_me: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11445 ac_cv_have_decl_vsnprintf=no
11447 rm -f conftest.$ac_objext conftest.$ac_ext
11449 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11450 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11451 if test $ac_cv_have_decl_vsnprintf = yes; then
11453 cat >>confdefs.h <<_ACEOF
11454 #define HAVE_DECL_VSNPRINTF 1
11459 cat >>confdefs.h <<_ACEOF
11460 #define HAVE_DECL_VSNPRINTF 0
11469 # do this one the hard way in case isinf() is a macro
11470 echo "$as_me:$LINENO: checking for isinf" >&5
11471 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11472 if test "${ac_cv_func_isinf+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 cat >conftest.$ac_ext <<_ACEOF
11476 #line $LINENO "configure"
11477 #include "confdefs.h"
11480 #ifdef F77_DUMMY_MAIN
11481 # ifdef __cplusplus
11484 int F77_DUMMY_MAIN() { return 1; }
11489 double x = 0.0; int res = isinf(x);
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -s conftest$ac_exeext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 ac_cv_func_isinf=yes
11508 echo "$as_me: failed program was:" >&5
11509 cat conftest.$ac_ext >&5
11510 ac_cv_func_isinf=no
11512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11514 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11515 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11517 if test $ac_cv_func_isinf = yes ; then
11519 cat >>confdefs.h <<\_ACEOF
11520 #define HAVE_ISINF 1
11524 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11525 # Look for a way to implement a substitute for isinf()
11530 for ac_func in fpclass fp_class fp_class_d class
11532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11533 echo "$as_me:$LINENO: checking for $ac_func" >&5
11534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11535 if eval "test \"\${$as_ac_var+set}\" = set"; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 cat >conftest.$ac_ext <<_ACEOF
11539 #line $LINENO "configure"
11540 #include "confdefs.h"
11541 /* System header to define __stub macros and hopefully few prototypes,
11542 which can conflict with char $ac_func (); below. */
11543 #include <assert.h>
11544 /* Override any gcc2 internal prototype to avoid an error. */
11548 /* We use char because int might match the return type of a gcc2
11549 builtin and then its argument prototype would still apply. */
11553 #ifdef F77_DUMMY_MAIN
11554 # ifdef __cplusplus
11557 int F77_DUMMY_MAIN() { return 1; }
11562 /* The GNU C library defines this for functions which it implements
11563 to always fail with ENOSYS. Some functions are actually named
11564 something starting with __ and the normal name is an alias. */
11565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11577 (eval $ac_link) 2>&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
11581 { ac_try='test -s conftest$ac_exeext'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 eval "$as_ac_var=yes"
11589 echo "$as_me: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11591 eval "$as_ac_var=no"
11593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11597 if test `eval echo '${'$as_ac_var'}'` = yes; then
11598 cat >>confdefs.h <<_ACEOF
11599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11621 for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11624 echo "$as_me:$LINENO: checking for $ac_func" >&5
11625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11626 if eval "test \"\${$as_ac_var+set}\" = set"; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 cat >conftest.$ac_ext <<_ACEOF
11630 #line $LINENO "configure"
11631 #include "confdefs.h"
11632 /* System header to define __stub macros and hopefully few prototypes,
11633 which can conflict with char $ac_func (); below. */
11634 #include <assert.h>
11635 /* Override any gcc2 internal prototype to avoid an error. */
11639 /* We use char because int might match the return type of a gcc2
11640 builtin and then its argument prototype would still apply. */
11644 #ifdef F77_DUMMY_MAIN
11645 # ifdef __cplusplus
11648 int F77_DUMMY_MAIN() { return 1; }
11653 /* The GNU C library defines this for functions which it implements
11654 to always fail with ENOSYS. Some functions are actually named
11655 something starting with __ and the normal name is an alias. */
11656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 eval "$as_ac_var=yes"
11680 echo "$as_me: failed program was:" >&5
11681 cat conftest.$ac_ext >&5
11682 eval "$as_ac_var=no"
11684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11688 if test `eval echo '${'$as_ac_var'}'` = yes; then
11689 cat >>confdefs.h <<_ACEOF
11690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11694 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11700 # system's version of getaddrinfo(), if any, may be used only if we found
11701 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11702 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11704 for ac_func in getaddrinfo
11706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11707 echo "$as_me:$LINENO: checking for $ac_func" >&5
11708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11709 if eval "test \"\${$as_ac_var+set}\" = set"; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 cat >conftest.$ac_ext <<_ACEOF
11713 #line $LINENO "configure"
11714 #include "confdefs.h"
11715 /* System header to define __stub macros and hopefully few prototypes,
11716 which can conflict with char $ac_func (); below. */
11717 #include <assert.h>
11718 /* Override any gcc2 internal prototype to avoid an error. */
11722 /* We use char because int might match the return type of a gcc2
11723 builtin and then its argument prototype would still apply. */
11727 #ifdef F77_DUMMY_MAIN
11728 # ifdef __cplusplus
11731 int F77_DUMMY_MAIN() { return 1; }
11736 /* The GNU C library defines this for functions which it implements
11737 to always fail with ENOSYS. Some functions are actually named
11738 something starting with __ and the normal name is an alias. */
11739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11749 rm -f conftest.$ac_objext conftest$ac_exeext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11751 (eval $ac_link) 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -s conftest$ac_exeext'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 eval "$as_ac_var=yes"
11763 echo "$as_me: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11765 eval "$as_ac_var=no"
11767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11771 if test `eval echo '${'$as_ac_var'}'` = yes; then
11772 cat >>confdefs.h <<_ACEOF
11773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11777 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11783 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11786 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11787 # We override the previous test that said fseeko/ftello didn't exist
11788 # OS tests are also done in include/c.h and port/fseeko.c
11789 case $host_os in bsdi*|netbsd*)
11790 ac_cv_func_fseeko=yes
11793 # Solaris has a very slow qsort in certain cases, so we replace it.
11794 case $host_os in solaris*)
11795 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11798 # Win32 can't to rename or unlink on an open file
11799 case $host_os in mingw*)
11800 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
11801 LIBOBJS="$LIBOBJS copydir.$ac_objext"
11802 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
11805 if test "$with_readline" = yes; then
11806 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11807 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11808 cat >conftest.$ac_ext <<_ACEOF
11809 #line $LINENO "configure"
11810 #include "confdefs.h"
11812 #ifdef HAVE_READLINE_READLINE_H
11813 # include <readline/readline.h>
11814 #elif defined(HAVE_READLINE_H)
11815 # include <readline.h>
11818 #ifdef F77_DUMMY_MAIN
11819 # ifdef __cplusplus
11822 int F77_DUMMY_MAIN() { return 1; }
11827 rl_completion_append_character = 'x';
11832 rm -f conftest.$ac_objext conftest$ac_exeext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11834 (eval $ac_link) 2>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } &&
11838 { ac_try='test -s conftest$ac_exeext'
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; }; then
11844 echo "$as_me:$LINENO: result: yes" >&5
11845 echo "${ECHO_T}yes" >&6
11847 cat >>confdefs.h <<\_ACEOF
11848 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11852 echo "$as_me: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 echo "$as_me:$LINENO: result: no" >&5
11855 echo "${ECHO_T}no" >&6
11857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11860 for ac_func in rl_completion_matches rl_filename_completion_function
11862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11863 echo "$as_me:$LINENO: checking for $ac_func" >&5
11864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11865 if eval "test \"\${$as_ac_var+set}\" = set"; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 cat >conftest.$ac_ext <<_ACEOF
11869 #line $LINENO "configure"
11870 #include "confdefs.h"
11871 /* System header to define __stub macros and hopefully few prototypes,
11872 which can conflict with char $ac_func (); below. */
11873 #include <assert.h>
11874 /* Override any gcc2 internal prototype to avoid an error. */
11878 /* We use char because int might match the return type of a gcc2
11879 builtin and then its argument prototype would still apply. */
11883 #ifdef F77_DUMMY_MAIN
11884 # ifdef __cplusplus
11887 int F77_DUMMY_MAIN() { return 1; }
11892 /* The GNU C library defines this for functions which it implements
11893 to always fail with ENOSYS. Some functions are actually named
11894 something starting with __ and the normal name is an alias. */
11895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11905 rm -f conftest.$ac_objext conftest$ac_exeext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11907 (eval $ac_link) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -s conftest$ac_exeext'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11917 eval "$as_ac_var=yes"
11919 echo "$as_me: failed program was:" >&5
11920 cat conftest.$ac_ext >&5
11921 eval "$as_ac_var=no"
11923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11927 if test `eval echo '${'$as_ac_var'}'` = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11936 for ac_func in replace_history_entry
11938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11939 echo "$as_me:$LINENO: checking for $ac_func" >&5
11940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11941 if eval "test \"\${$as_ac_var+set}\" = set"; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 cat >conftest.$ac_ext <<_ACEOF
11945 #line $LINENO "configure"
11946 #include "confdefs.h"
11947 /* System header to define __stub macros and hopefully few prototypes,
11948 which can conflict with char $ac_func (); below. */
11949 #include <assert.h>
11950 /* Override any gcc2 internal prototype to avoid an error. */
11954 /* We use char because int might match the return type of a gcc2
11955 builtin and then its argument prototype would still apply. */
11959 #ifdef F77_DUMMY_MAIN
11960 # ifdef __cplusplus
11963 int F77_DUMMY_MAIN() { return 1; }
11968 /* The GNU C library defines this for functions which it implements
11969 to always fail with ENOSYS. Some functions are actually named
11970 something starting with __ and the normal name is an alias. */
11971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11981 rm -f conftest.$ac_objext conftest$ac_exeext
11982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11983 (eval $ac_link) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try='test -s conftest$ac_exeext'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 eval "$as_ac_var=yes"
11995 echo "$as_me: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11997 eval "$as_ac_var=no"
11999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12003 if test `eval echo '${'$as_ac_var'}'` = yes; then
12004 cat >>confdefs.h <<_ACEOF
12005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12014 echo "$as_me:$LINENO: checking for finite" >&5
12015 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12016 cat >conftest.$ac_ext <<_ACEOF
12017 #line $LINENO "configure"
12018 #include "confdefs.h"
12020 #ifdef F77_DUMMY_MAIN
12021 # ifdef __cplusplus
12024 int F77_DUMMY_MAIN() { return 1; }
12029 int dummy=finite(1.0);
12034 rm -f conftest.$ac_objext conftest$ac_exeext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12036 (eval $ac_link) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try='test -s conftest$ac_exeext'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12047 cat >>confdefs.h <<\_ACEOF
12048 #define HAVE_FINITE 1
12051 echo "$as_me:$LINENO: result: yes" >&5
12052 echo "${ECHO_T}yes" >&6
12054 echo "$as_me: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12056 echo "$as_me:$LINENO: result: no" >&5
12057 echo "${ECHO_T}no" >&6
12059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12061 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12062 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12063 cat >conftest.$ac_ext <<_ACEOF
12064 #line $LINENO "configure"
12065 #include "confdefs.h"
12066 #include <setjmp.h>
12067 #ifdef F77_DUMMY_MAIN
12068 # ifdef __cplusplus
12071 int F77_DUMMY_MAIN() { return 1; }
12076 sigjmp_buf x; sigsetjmp(x, 1);
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083 (eval $ac_link) 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try='test -s conftest$ac_exeext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12094 cat >>confdefs.h <<\_ACEOF
12095 #define HAVE_SIGSETJMP 1
12098 echo "$as_me:$LINENO: result: yes" >&5
12099 echo "${ECHO_T}yes" >&6
12101 echo "$as_me: failed program was:" >&5
12102 cat conftest.$ac_ext >&5
12103 echo "$as_me:$LINENO: result: no" >&5
12104 echo "${ECHO_T}no" >&6
12106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12108 echo "$as_me:$LINENO: checking for syslog" >&5
12109 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12110 if test "${ac_cv_func_syslog+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 cat >conftest.$ac_ext <<_ACEOF
12114 #line $LINENO "configure"
12115 #include "confdefs.h"
12116 /* System header to define __stub macros and hopefully few prototypes,
12117 which can conflict with char syslog (); below. */
12118 #include <assert.h>
12119 /* Override any gcc2 internal prototype to avoid an error. */
12123 /* We use char because int might match the return type of a gcc2
12124 builtin and then its argument prototype would still apply. */
12128 #ifdef F77_DUMMY_MAIN
12129 # ifdef __cplusplus
12132 int F77_DUMMY_MAIN() { return 1; }
12137 /* The GNU C library defines this for functions which it implements
12138 to always fail with ENOSYS. Some functions are actually named
12139 something starting with __ and the normal name is an alias. */
12140 #if defined (__stub_syslog) || defined (__stub___syslog)
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 ac_cv_func_syslog=yes
12164 echo "$as_me: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12166 ac_cv_func_syslog=no
12168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12170 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12171 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12172 if test $ac_cv_func_syslog = yes; then
12173 if test "${ac_cv_header_syslog_h+set}" = set; then
12174 echo "$as_me:$LINENO: checking for syslog.h" >&5
12175 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12176 if test "${ac_cv_header_syslog_h+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12180 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12182 # Is the header compilable?
12183 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12184 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12185 cat >conftest.$ac_ext <<_ACEOF
12186 #line $LINENO "configure"
12187 #include "confdefs.h"
12188 $ac_includes_default
12189 #include <syslog.h>
12191 rm -f conftest.$ac_objext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12193 (eval $ac_compile) 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } &&
12197 { ac_try='test -s conftest.$ac_objext'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 ac_header_compiler=yes
12205 echo "$as_me: failed program was:" >&5
12206 cat conftest.$ac_ext >&5
12207 ac_header_compiler=no
12209 rm -f conftest.$ac_objext conftest.$ac_ext
12210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12211 echo "${ECHO_T}$ac_header_compiler" >&6
12213 # Is the header present?
12214 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12215 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12216 cat >conftest.$ac_ext <<_ACEOF
12217 #line $LINENO "configure"
12218 #include "confdefs.h"
12219 #include <syslog.h>
12221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12224 egrep -v '^ *\+' conftest.er1 >conftest.err
12226 cat conftest.err >&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } >/dev/null; then
12229 if test -s conftest.err; then
12230 ac_cpp_err=$ac_c_preproc_warn_flag
12237 if test -z "$ac_cpp_err"; then
12238 ac_header_preproc=yes
12240 echo "$as_me: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12242 ac_header_preproc=no
12244 rm -f conftest.err conftest.$ac_ext
12245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12246 echo "${ECHO_T}$ac_header_preproc" >&6
12248 # So? What about this header?
12249 case $ac_header_compiler:$ac_header_preproc in
12251 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12252 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12254 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12256 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12257 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12259 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12261 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12263 echo "$as_me:$LINENO: checking for syslog.h" >&5
12264 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12265 if test "${ac_cv_header_syslog_h+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 ac_cv_header_syslog_h=$ac_header_preproc
12270 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12271 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12274 if test $ac_cv_header_syslog_h = yes; then
12276 cat >>confdefs.h <<\_ACEOF
12277 #define HAVE_SYSLOG 1
12286 echo "$as_me:$LINENO: checking for optreset" >&5
12287 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12288 if test "${pgac_cv_var_int_optreset+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 cat >conftest.$ac_ext <<_ACEOF
12292 #line $LINENO "configure"
12293 #include "confdefs.h"
12294 #include <unistd.h>
12295 #ifdef F77_DUMMY_MAIN
12296 # ifdef __cplusplus
12299 int F77_DUMMY_MAIN() { return 1; }
12304 extern int optreset; optreset = 1;
12309 rm -f conftest.$ac_objext conftest$ac_exeext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311 (eval $ac_link) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } &&
12315 { ac_try='test -s conftest$ac_exeext'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 pgac_cv_var_int_optreset=yes
12323 echo "$as_me: failed program was:" >&5
12324 cat conftest.$ac_ext >&5
12325 pgac_cv_var_int_optreset=no
12327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12329 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12330 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12331 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12333 cat >>confdefs.h <<\_ACEOF
12334 #define HAVE_INT_OPTRESET 1
12341 for ac_func in strtoll strtoq
12343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12344 echo "$as_me:$LINENO: checking for $ac_func" >&5
12345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12346 if eval "test \"\${$as_ac_var+set}\" = set"; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 cat >conftest.$ac_ext <<_ACEOF
12350 #line $LINENO "configure"
12351 #include "confdefs.h"
12352 /* System header to define __stub macros and hopefully few prototypes,
12353 which can conflict with char $ac_func (); below. */
12354 #include <assert.h>
12355 /* Override any gcc2 internal prototype to avoid an error. */
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12364 #ifdef F77_DUMMY_MAIN
12365 # ifdef __cplusplus
12368 int F77_DUMMY_MAIN() { return 1; }
12373 /* The GNU C library defines this for functions which it implements
12374 to always fail with ENOSYS. Some functions are actually named
12375 something starting with __ and the normal name is an alias. */
12376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12388 (eval $ac_link) 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -s conftest$ac_exeext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 eval "$as_ac_var=yes"
12400 echo "$as_me: failed program was:" >&5
12401 cat conftest.$ac_ext >&5
12402 eval "$as_ac_var=no"
12404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12408 if test `eval echo '${'$as_ac_var'}'` = yes; then
12409 cat >>confdefs.h <<_ACEOF
12410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12418 for ac_func in strtoull strtouq
12420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12421 echo "$as_me:$LINENO: checking for $ac_func" >&5
12422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12423 if eval "test \"\${$as_ac_var+set}\" = set"; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 cat >conftest.$ac_ext <<_ACEOF
12427 #line $LINENO "configure"
12428 #include "confdefs.h"
12429 /* System header to define __stub macros and hopefully few prototypes,
12430 which can conflict with char $ac_func (); below. */
12431 #include <assert.h>
12432 /* Override any gcc2 internal prototype to avoid an error. */
12436 /* We use char because int might match the return type of a gcc2
12437 builtin and then its argument prototype would still apply. */
12441 #ifdef F77_DUMMY_MAIN
12442 # ifdef __cplusplus
12445 int F77_DUMMY_MAIN() { return 1; }
12450 /* The GNU C library defines this for functions which it implements
12451 to always fail with ENOSYS. Some functions are actually named
12452 something starting with __ and the normal name is an alias. */
12453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -s conftest$ac_exeext'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 eval "$as_ac_var=yes"
12477 echo "$as_me: failed program was:" >&5
12478 cat conftest.$ac_ext >&5
12479 eval "$as_ac_var=no"
12481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12485 if test `eval echo '${'$as_ac_var'}'` = yes; then
12486 cat >>confdefs.h <<_ACEOF
12487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12494 # Check for one of atexit() or on_exit()
12496 for ac_func in atexit
12498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12499 echo "$as_me:$LINENO: checking for $ac_func" >&5
12500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12501 if eval "test \"\${$as_ac_var+set}\" = set"; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 cat >conftest.$ac_ext <<_ACEOF
12505 #line $LINENO "configure"
12506 #include "confdefs.h"
12507 /* System header to define __stub macros and hopefully few prototypes,
12508 which can conflict with char $ac_func (); below. */
12509 #include <assert.h>
12510 /* Override any gcc2 internal prototype to avoid an error. */
12514 /* We use char because int might match the return type of a gcc2
12515 builtin and then its argument prototype would still apply. */
12519 #ifdef F77_DUMMY_MAIN
12520 # ifdef __cplusplus
12523 int F77_DUMMY_MAIN() { return 1; }
12528 /* The GNU C library defines this for functions which it implements
12529 to always fail with ENOSYS. Some functions are actually named
12530 something starting with __ and the normal name is an alias. */
12531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543 (eval $ac_link) 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } &&
12547 { ac_try='test -s conftest$ac_exeext'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 eval "$as_ac_var=yes"
12555 echo "$as_me: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12557 eval "$as_ac_var=no"
12559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12563 if test `eval echo '${'$as_ac_var'}'` = yes; then
12564 cat >>confdefs.h <<_ACEOF
12565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12570 for ac_func in on_exit
12572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12573 echo "$as_me:$LINENO: checking for $ac_func" >&5
12574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12575 if eval "test \"\${$as_ac_var+set}\" = set"; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 cat >conftest.$ac_ext <<_ACEOF
12579 #line $LINENO "configure"
12580 #include "confdefs.h"
12581 /* System header to define __stub macros and hopefully few prototypes,
12582 which can conflict with char $ac_func (); below. */
12583 #include <assert.h>
12584 /* Override any gcc2 internal prototype to avoid an error. */
12588 /* We use char because int might match the return type of a gcc2
12589 builtin and then its argument prototype would still apply. */
12593 #ifdef F77_DUMMY_MAIN
12594 # ifdef __cplusplus
12597 int F77_DUMMY_MAIN() { return 1; }
12602 /* The GNU C library defines this for functions which it implements
12603 to always fail with ENOSYS. Some functions are actually named
12604 something starting with __ and the normal name is an alias. */
12605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617 (eval $ac_link) 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try='test -s conftest$ac_exeext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 eval "$as_ac_var=yes"
12629 echo "$as_me: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 eval "$as_ac_var=no"
12633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12637 if test `eval echo '${'$as_ac_var'}'` = yes; then
12638 cat >>confdefs.h <<_ACEOF
12639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12643 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12644 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12645 { (exit 1); exit 1; }; }
12653 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12654 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12655 if test "${ac_cv_sys_largefile_source+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12659 ac_cv_sys_largefile_source=no
12660 cat >conftest.$ac_ext <<_ACEOF
12661 #line $LINENO "configure"
12662 #include "confdefs.h"
12664 #ifdef F77_DUMMY_MAIN
12665 # ifdef __cplusplus
12668 int F77_DUMMY_MAIN() { return 1; }
12678 rm -f conftest.$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680 (eval $ac_compile) 2>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
12684 { ac_try='test -s conftest.$ac_objext'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12692 echo "$as_me: failed program was:" >&5
12693 cat conftest.$ac_ext >&5
12695 rm -f conftest.$ac_objext conftest.$ac_ext
12696 cat >conftest.$ac_ext <<_ACEOF
12697 #line $LINENO "configure"
12698 #include "confdefs.h"
12699 #define _LARGEFILE_SOURCE 1
12701 #ifdef F77_DUMMY_MAIN
12702 # ifdef __cplusplus
12705 int F77_DUMMY_MAIN() { return 1; }
12715 rm -f conftest.$ac_objext
12716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12717 (eval $ac_compile) 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try='test -s conftest.$ac_objext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 ac_cv_sys_largefile_source=1; break
12729 echo "$as_me: failed program was:" >&5
12730 cat conftest.$ac_ext >&5
12732 rm -f conftest.$ac_objext conftest.$ac_ext
12736 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12737 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12738 if test "$ac_cv_sys_largefile_source" != no; then
12740 cat >>confdefs.h <<_ACEOF
12741 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12747 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12748 # in glibc 2.1.3, but that breaks too many other things.
12749 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12750 echo "$as_me:$LINENO: checking for fseeko" >&5
12751 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12752 if test "${ac_cv_func_fseeko+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 cat >conftest.$ac_ext <<_ACEOF
12756 #line $LINENO "configure"
12757 #include "confdefs.h"
12759 #ifdef F77_DUMMY_MAIN
12760 # ifdef __cplusplus
12763 int F77_DUMMY_MAIN() { return 1; }
12768 return fseeko && fseeko (stdin, 0, 0);
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775 (eval $ac_link) 2>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -s conftest$ac_exeext'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; }; then
12785 ac_cv_func_fseeko=yes
12787 echo "$as_me: failed program was:" >&5
12788 cat conftest.$ac_ext >&5
12789 ac_cv_func_fseeko=no
12791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12793 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12794 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12795 if test $ac_cv_func_fseeko = yes; then
12797 cat >>confdefs.h <<\_ACEOF
12798 #define HAVE_FSEEKO 1
12807 # For each platform, we need to know about any special compile and link
12808 # libraries, and whether the normal C function names are thread-safe.
12810 if test "$enable_thread_safeness" = yes; then
12811 if test "${ac_cv_header_pthread_h+set}" = set; then
12812 echo "$as_me:$LINENO: checking for pthread.h" >&5
12813 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12814 if test "${ac_cv_header_pthread_h+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
12818 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12820 # Is the header compilable?
12821 echo "$as_me:$LINENO: checking pthread.h usability" >&5
12822 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
12823 cat >conftest.$ac_ext <<_ACEOF
12824 #line $LINENO "configure"
12825 #include "confdefs.h"
12826 $ac_includes_default
12827 #include <pthread.h>
12829 rm -f conftest.$ac_objext
12830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12831 (eval $ac_compile) 2>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } &&
12835 { ac_try='test -s conftest.$ac_objext'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12841 ac_header_compiler=yes
12843 echo "$as_me: failed program was:" >&5
12844 cat conftest.$ac_ext >&5
12845 ac_header_compiler=no
12847 rm -f conftest.$ac_objext conftest.$ac_ext
12848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12849 echo "${ECHO_T}$ac_header_compiler" >&6
12851 # Is the header present?
12852 echo "$as_me:$LINENO: checking pthread.h presence" >&5
12853 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
12854 cat >conftest.$ac_ext <<_ACEOF
12855 #line $LINENO "configure"
12856 #include "confdefs.h"
12857 #include <pthread.h>
12859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12862 egrep -v '^ *\+' conftest.er1 >conftest.err
12864 cat conftest.err >&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } >/dev/null; then
12867 if test -s conftest.err; then
12868 ac_cpp_err=$ac_c_preproc_warn_flag
12875 if test -z "$ac_cpp_err"; then
12876 ac_header_preproc=yes
12878 echo "$as_me: failed program was:" >&5
12879 cat conftest.$ac_ext >&5
12880 ac_header_preproc=no
12882 rm -f conftest.err conftest.$ac_ext
12883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12884 echo "${ECHO_T}$ac_header_preproc" >&6
12886 # So? What about this header?
12887 case $ac_header_compiler:$ac_header_preproc in
12889 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
12890 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
12892 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
12894 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
12895 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
12897 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
12898 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
12899 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
12901 echo "$as_me:$LINENO: checking for pthread.h" >&5
12902 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12903 if test "${ac_cv_header_pthread_h+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 ac_cv_header_pthread_h=$ac_header_preproc
12908 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
12909 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12912 if test $ac_cv_header_pthread_h = yes; then
12915 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --with-threads" >&5
12916 echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
12917 { (exit 1); exit 1; }; }
12922 if test "$SUPPORTS_THREADS" != yes; then
12923 { { echo "$as_me:$LINENO: error:
12924 Cannot enable threads on your platform.
12925 Please report your platform threading info to the PostgreSQL mailing lists
12926 so it can be added to the next release. Report all compile flags, link flags,
12927 functions, or libraries required for threading support.
12929 echo "$as_me: error:
12930 Cannot enable threads on your platform.
12931 Please report your platform threading info to the PostgreSQL mailing lists
12932 so it can be added to the next release. Report all compile flags, link flags,
12933 functions, or libraries required for threading support.
12935 { (exit 1); exit 1; }; }
12943 # Check for re-entrant versions of certain functions
12945 # Include special flags if threads are enabled _and_ if required for
12946 # threading on this platform. Some platforms have *_r functions but
12947 # their natively named funcs are threadsafe, and should be used instead.
12949 # One trick here is that if we don't call AC_CHECK_FUNCS, the
12950 # functions are marked "not found", which is perfect.
12952 if test "$enable_thread_safeness" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
12955 CFLAGS="$CFLAGS $TREAD_CFLAGS"
12956 LIBS="$LIBS $THREAD_LIBS"
12960 for ac_func in strerror_r getpwuid_r gethostbyname_r
12962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12963 echo "$as_me:$LINENO: checking for $ac_func" >&5
12964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12965 if eval "test \"\${$as_ac_var+set}\" = set"; then
12966 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 cat >conftest.$ac_ext <<_ACEOF
12969 #line $LINENO "configure"
12970 #include "confdefs.h"
12971 /* System header to define __stub macros and hopefully few prototypes,
12972 which can conflict with char $ac_func (); below. */
12973 #include <assert.h>
12974 /* Override any gcc2 internal prototype to avoid an error. */
12978 /* We use char because int might match the return type of a gcc2
12979 builtin and then its argument prototype would still apply. */
12983 #ifdef F77_DUMMY_MAIN
12984 # ifdef __cplusplus
12987 int F77_DUMMY_MAIN() { return 1; }
12992 /* The GNU C library defines this for functions which it implements
12993 to always fail with ENOSYS. Some functions are actually named
12994 something starting with __ and the normal name is an alias. */
12995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13005 rm -f conftest.$ac_objext conftest$ac_exeext
13006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13007 (eval $ac_link) 2>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } &&
13011 { ac_try='test -s conftest$ac_exeext'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 eval "$as_ac_var=yes"
13019 echo "$as_me: failed program was:" >&5
13020 cat conftest.$ac_ext >&5
13021 eval "$as_ac_var=no"
13023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13027 if test `eval echo '${'$as_ac_var'}'` = yes; then
13028 cat >>confdefs.h <<_ACEOF
13029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13040 # This test makes sure that run tests work at all. Sometimes a shared
13041 # library is found by the linker, but the runtime linker can't find it.
13042 # This check should come after all modifications of compiler or linker
13043 # variables, and before any other run tests.
13044 echo "$as_me:$LINENO: checking test program" >&5
13045 echo $ECHO_N "checking test program... $ECHO_C" >&6
13046 if test "$cross_compiling" = yes; then
13047 echo "$as_me:$LINENO: result: cross-compiling" >&5
13048 echo "${ECHO_T}cross-compiling" >&6
13050 cat >conftest.$ac_ext <<_ACEOF
13051 #line $LINENO "configure"
13052 #include "confdefs.h"
13053 int main() { return 0; }
13055 rm -f conftest$ac_exeext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13057 (eval $ac_link) 2>&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 echo "$as_me:$LINENO: result: ok" >&5
13067 echo "${ECHO_T}ok" >&6
13069 echo "$as_me: program exited with status $ac_status" >&5
13070 echo "$as_me: failed program was:" >&5
13071 cat conftest.$ac_ext >&5
13072 ( exit $ac_status )
13073 echo "$as_me:$LINENO: result: failed" >&5
13074 echo "${ECHO_T}failed" >&6
13075 { { echo "$as_me:$LINENO: error:
13076 *** Could not execute a simple test program. This may be a problem
13077 *** related to locating shared libraries. Check the file 'config.log'
13078 *** for the exact reason." >&5
13079 echo "$as_me: error:
13080 *** Could not execute a simple test program. This may be a problem
13081 *** related to locating shared libraries. Check the file 'config.log'
13082 *** for the exact reason." >&2;}
13083 { (exit 1); exit 1; }; }
13085 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13090 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13091 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13092 if test "${pgac_cv_type_long_int_64+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 if test "$cross_compiling" = yes; then
13096 # If cross-compiling, check the size reported by the compiler and
13097 # trust that the arithmetic works.
13098 cat >conftest.$ac_ext <<_ACEOF
13099 #line $LINENO "configure"
13100 #include "confdefs.h"
13102 #ifdef F77_DUMMY_MAIN
13103 # ifdef __cplusplus
13106 int F77_DUMMY_MAIN() { return 1; }
13111 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13118 rm -f conftest.$ac_objext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13120 (eval $ac_compile) 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } &&
13124 { ac_try='test -s conftest.$ac_objext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 pgac_cv_type_long_int_64=yes
13132 echo "$as_me: failed program was:" >&5
13133 cat conftest.$ac_ext >&5
13134 pgac_cv_type_long_int_64=no
13136 rm -f conftest.$ac_objext conftest.$ac_ext
13138 cat >conftest.$ac_ext <<_ACEOF
13139 #line $LINENO "configure"
13140 #include "confdefs.h"
13141 typedef long int int64;
13144 * These are globals to discourage the compiler from folding all the
13145 * arithmetic tests down to compile-time constants.
13147 int64 a = 20000001;
13148 int64 b = 40000005;
13150 int does_int64_work()
13154 if (sizeof(int64) != 8)
13155 return 0; /* definitely not the right size */
13157 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13165 exit(! does_int64_work());
13168 rm -f conftest$ac_exeext
13169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13170 (eval $ac_link) 2>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13179 pgac_cv_type_long_int_64=yes
13181 echo "$as_me: program exited with status $ac_status" >&5
13182 echo "$as_me: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13184 ( exit $ac_status )
13185 pgac_cv_type_long_int_64=no
13187 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13190 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13191 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13193 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13194 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13196 cat >>confdefs.h <<\_ACEOF
13197 #define HAVE_LONG_INT_64
13203 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13204 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13205 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13206 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 if test "$cross_compiling" = yes; then
13210 # If cross-compiling, check the size reported by the compiler and
13211 # trust that the arithmetic works.
13212 cat >conftest.$ac_ext <<_ACEOF
13213 #line $LINENO "configure"
13214 #include "confdefs.h"
13216 #ifdef F77_DUMMY_MAIN
13217 # ifdef __cplusplus
13220 int F77_DUMMY_MAIN() { return 1; }
13225 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13232 rm -f conftest.$ac_objext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -s conftest.$ac_objext'
13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240 (eval $ac_try) 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; }; then
13244 pgac_cv_type_long_long_int_64=yes
13246 echo "$as_me: failed program was:" >&5
13247 cat conftest.$ac_ext >&5
13248 pgac_cv_type_long_long_int_64=no
13250 rm -f conftest.$ac_objext conftest.$ac_ext
13252 cat >conftest.$ac_ext <<_ACEOF
13253 #line $LINENO "configure"
13254 #include "confdefs.h"
13255 typedef long long int int64;
13258 * These are globals to discourage the compiler from folding all the
13259 * arithmetic tests down to compile-time constants.
13261 int64 a = 20000001;
13262 int64 b = 40000005;
13264 int does_int64_work()
13268 if (sizeof(int64) != 8)
13269 return 0; /* definitely not the right size */
13271 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13279 exit(! does_int64_work());
13282 rm -f conftest$ac_exeext
13283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13284 (eval $ac_link) 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 pgac_cv_type_long_long_int_64=yes
13295 echo "$as_me: program exited with status $ac_status" >&5
13296 echo "$as_me: failed program was:" >&5
13297 cat conftest.$ac_ext >&5
13298 ( exit $ac_status )
13299 pgac_cv_type_long_long_int_64=no
13301 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13304 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13305 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13307 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13308 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13310 cat >>confdefs.h <<\_ACEOF
13311 #define HAVE_LONG_LONG_INT_64
13320 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13321 cat >conftest.$ac_ext <<_ACEOF
13322 #line $LINENO "configure"
13323 #include "confdefs.h"
13325 #define INT64CONST(x) x##LL
13326 long long int foo = INT64CONST(0x1234567890123456);
13328 #ifdef F77_DUMMY_MAIN
13329 # ifdef __cplusplus
13332 int F77_DUMMY_MAIN() { return 1; }
13342 rm -f conftest.$ac_objext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -s conftest.$ac_objext'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13355 cat >>confdefs.h <<\_ACEOF
13356 #define HAVE_LL_CONSTANTS 1
13360 echo "$as_me: failed program was:" >&5
13361 cat conftest.$ac_ext >&5
13363 rm -f conftest.$ac_objext conftest.$ac_ext
13367 # If we found "long int" is 64 bits, assume snprintf handles it. If
13368 # we found we need to use "long long int", better check. We cope with
13369 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13370 # neither works, fall back to our own snprintf emulation (which we
13373 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13374 if test $pgac_need_repl_snprintf = no; then
13375 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13376 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13377 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 for pgac_format in '%lld' '%qd' '%I64d'; do
13381 if test "$cross_compiling" = yes; then
13382 pgac_cv_snprintf_long_long_int_format=cross; break
13384 cat >conftest.$ac_ext <<_ACEOF
13385 #line $LINENO "configure"
13386 #include "confdefs.h"
13388 typedef long long int int64;
13389 #define INT64_FORMAT "$pgac_format"
13391 int64 a = 20000001;
13392 int64 b = 40000005;
13394 int does_int64_snprintf_work()
13399 if (sizeof(int64) != 8)
13400 return 0; /* doesn't look like the right size */
13403 snprintf(buf, 100, INT64_FORMAT, c);
13404 if (strcmp(buf, "800000140000005") != 0)
13405 return 0; /* either multiply or snprintf is busted */
13409 exit(! does_int64_snprintf_work());
13412 rm -f conftest$ac_exeext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13414 (eval $ac_link) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13425 echo "$as_me: program exited with status $ac_status" >&5
13426 echo "$as_me: failed program was:" >&5
13427 cat conftest.$ac_ext >&5
13429 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13434 LONG_LONG_INT_FORMAT=''
13436 case $pgac_cv_snprintf_long_long_int_format in
13437 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13438 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13439 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13440 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13441 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13442 *) echo "$as_me:$LINENO: result: none" >&5
13443 echo "${ECHO_T}none" >&6;;
13445 if test "$LONG_LONG_INT_FORMAT" = ""; then
13446 # Force usage of our own snprintf, since system snprintf is broken
13447 pgac_need_repl_snprintf=yes
13448 LONG_LONG_INT_FORMAT='%lld'
13451 # Here if we previously decided we needed to use our own snprintf
13452 LONG_LONG_INT_FORMAT='%lld'
13454 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13456 # Here if we are not using 'long long int' at all
13457 INT64_FORMAT='"%ld"'
13461 cat >>confdefs.h <<_ACEOF
13462 #define INT64_FORMAT $INT64_FORMAT
13466 if test $pgac_need_repl_snprintf = yes; then
13467 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13470 # Need a #define for the size of Datum (unsigned long)
13471 echo "$as_me:$LINENO: checking for unsigned long" >&5
13472 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13473 if test "${ac_cv_type_unsigned_long+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 cat >conftest.$ac_ext <<_ACEOF
13477 #line $LINENO "configure"
13478 #include "confdefs.h"
13479 $ac_includes_default
13480 #ifdef F77_DUMMY_MAIN
13481 # ifdef __cplusplus
13484 int F77_DUMMY_MAIN() { return 1; }
13489 if ((unsigned long *) 0)
13491 if (sizeof (unsigned long))
13497 rm -f conftest.$ac_objext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499 (eval $ac_compile) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -s conftest.$ac_objext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_type_unsigned_long=yes
13511 echo "$as_me: failed program was:" >&5
13512 cat conftest.$ac_ext >&5
13513 ac_cv_type_unsigned_long=no
13515 rm -f conftest.$ac_objext conftest.$ac_ext
13517 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13518 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13520 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13521 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13522 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 if test "$ac_cv_type_unsigned_long" = yes; then
13526 # The cast to unsigned long works around a bug in the HP C Compiler
13527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13529 # This bug is HP SR number 8606223364.
13530 if test "$cross_compiling" = yes; then
13531 # Depending upon the size, compute the lo and hi bounds.
13532 cat >conftest.$ac_ext <<_ACEOF
13533 #line $LINENO "configure"
13534 #include "confdefs.h"
13535 $ac_includes_default
13536 #ifdef F77_DUMMY_MAIN
13537 # ifdef __cplusplus
13540 int F77_DUMMY_MAIN() { return 1; }
13545 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13552 rm -f conftest.$ac_objext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554 (eval $ac_compile) 2>&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
13558 { ac_try='test -s conftest.$ac_objext'
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; }; then
13566 cat >conftest.$ac_ext <<_ACEOF
13567 #line $LINENO "configure"
13568 #include "confdefs.h"
13569 $ac_includes_default
13570 #ifdef F77_DUMMY_MAIN
13571 # ifdef __cplusplus
13574 int F77_DUMMY_MAIN() { return 1; }
13579 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13586 rm -f conftest.$ac_objext
13587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13588 (eval $ac_compile) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } &&
13592 { ac_try='test -s conftest.$ac_objext'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 ac_hi=$ac_mid; break
13600 echo "$as_me: failed program was:" >&5
13601 cat conftest.$ac_ext >&5
13602 ac_lo=`expr $ac_mid + 1`
13603 if test $ac_lo -le $ac_mid; then
13607 ac_mid=`expr 2 '*' $ac_mid + 1`
13609 rm -f conftest.$ac_objext conftest.$ac_ext
13612 echo "$as_me: failed program was:" >&5
13613 cat conftest.$ac_ext >&5
13614 cat >conftest.$ac_ext <<_ACEOF
13615 #line $LINENO "configure"
13616 #include "confdefs.h"
13617 $ac_includes_default
13618 #ifdef F77_DUMMY_MAIN
13619 # ifdef __cplusplus
13622 int F77_DUMMY_MAIN() { return 1; }
13627 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13634 rm -f conftest.$ac_objext
13635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13636 (eval $ac_compile) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
13640 { ac_try='test -s conftest.$ac_objext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13648 cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13650 #include "confdefs.h"
13651 $ac_includes_default
13652 #ifdef F77_DUMMY_MAIN
13653 # ifdef __cplusplus
13656 int F77_DUMMY_MAIN() { return 1; }
13661 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13668 rm -f conftest.$ac_objext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670 (eval $ac_compile) 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -s conftest.$ac_objext'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 ac_lo=$ac_mid; break
13682 echo "$as_me: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13684 ac_hi=`expr '(' $ac_mid ')' - 1`
13685 if test $ac_mid -le $ac_hi; then
13689 ac_mid=`expr 2 '*' $ac_mid`
13691 rm -f conftest.$ac_objext conftest.$ac_ext
13694 echo "$as_me: failed program was:" >&5
13695 cat conftest.$ac_ext >&5
13698 rm -f conftest.$ac_objext conftest.$ac_ext
13700 rm -f conftest.$ac_objext conftest.$ac_ext
13701 # Binary search between lo and hi bounds.
13702 while test "x$ac_lo" != "x$ac_hi"; do
13703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13704 cat >conftest.$ac_ext <<_ACEOF
13705 #line $LINENO "configure"
13706 #include "confdefs.h"
13707 $ac_includes_default
13708 #ifdef F77_DUMMY_MAIN
13709 # ifdef __cplusplus
13712 int F77_DUMMY_MAIN() { return 1; }
13717 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13724 rm -f conftest.$ac_objext
13725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13726 (eval $ac_compile) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -s conftest.$ac_objext'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13738 echo "$as_me: failed program was:" >&5
13739 cat conftest.$ac_ext >&5
13740 ac_lo=`expr '(' $ac_mid ')' + 1`
13742 rm -f conftest.$ac_objext conftest.$ac_ext
13745 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13746 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13747 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13748 { (exit 1); exit 1; }; } ;;
13751 if test "$cross_compiling" = yes; then
13752 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13753 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13754 { (exit 1); exit 1; }; }
13756 cat >conftest.$ac_ext <<_ACEOF
13757 #line $LINENO "configure"
13758 #include "confdefs.h"
13759 $ac_includes_default
13760 long longval () { return (long) (sizeof (unsigned long)); }
13761 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13763 #include <stdlib.h>
13764 #ifdef F77_DUMMY_MAIN
13765 # ifdef __cplusplus
13768 int F77_DUMMY_MAIN() { return 1; }
13774 FILE *f = fopen ("conftest.val", "w");
13777 if (((long) (sizeof (unsigned long))) < 0)
13779 long i = longval ();
13780 if (i != ((long) (sizeof (unsigned long))))
13782 fprintf (f, "%ld\n", i);
13786 unsigned long i = ulongval ();
13787 if (i != ((long) (sizeof (unsigned long))))
13789 fprintf (f, "%lu\n", i);
13791 exit (ferror (f) || fclose (f) != 0);
13797 rm -f conftest$ac_exeext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799 (eval $ac_link) 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13810 echo "$as_me: program exited with status $ac_status" >&5
13811 echo "$as_me: failed program was:" >&5
13812 cat conftest.$ac_ext >&5
13813 ( exit $ac_status )
13814 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13815 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13816 { (exit 1); exit 1; }; }
13818 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13823 ac_cv_sizeof_unsigned_long=0
13826 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13827 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13828 cat >>confdefs.h <<_ACEOF
13829 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13834 # Determine memory alignment requirements for the basic C data types.
13836 echo "$as_me:$LINENO: checking for short" >&5
13837 echo $ECHO_N "checking for short... $ECHO_C" >&6
13838 if test "${ac_cv_type_short+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 cat >conftest.$ac_ext <<_ACEOF
13842 #line $LINENO "configure"
13843 #include "confdefs.h"
13844 $ac_includes_default
13845 #ifdef F77_DUMMY_MAIN
13846 # ifdef __cplusplus
13849 int F77_DUMMY_MAIN() { return 1; }
13856 if (sizeof (short))
13862 rm -f conftest.$ac_objext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13864 (eval $ac_compile) 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); } &&
13868 { ac_try='test -s conftest.$ac_objext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_type_short=yes
13876 echo "$as_me: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13878 ac_cv_type_short=no
13880 rm -f conftest.$ac_objext conftest.$ac_ext
13882 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13883 echo "${ECHO_T}$ac_cv_type_short" >&6
13885 echo "$as_me:$LINENO: checking alignment of short" >&5
13886 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13887 if test "${pgac_cv_alignof_short+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 if test "$ac_cv_type_short" = yes; then
13891 if test "$cross_compiling" = yes; then
13892 # Depending upon the size, compute the lo and hi bounds.
13893 cat >conftest.$ac_ext <<_ACEOF
13894 #line $LINENO "configure"
13895 #include "confdefs.h"
13896 $ac_includes_default
13897 struct { char filler; short field; } pgac_struct;
13898 #ifdef F77_DUMMY_MAIN
13899 # ifdef __cplusplus
13902 int F77_DUMMY_MAIN() { return 1; }
13907 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13914 rm -f conftest.$ac_objext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13916 (eval $ac_compile) 2>&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } &&
13920 { ac_try='test -s conftest.$ac_objext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13928 cat >conftest.$ac_ext <<_ACEOF
13929 #line $LINENO "configure"
13930 #include "confdefs.h"
13931 $ac_includes_default
13932 struct { char filler; short field; } pgac_struct;
13933 #ifdef F77_DUMMY_MAIN
13934 # ifdef __cplusplus
13937 int F77_DUMMY_MAIN() { return 1; }
13942 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13949 rm -f conftest.$ac_objext
13950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13951 (eval $ac_compile) 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -s conftest.$ac_objext'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; }; then
13961 ac_hi=$ac_mid; break
13963 echo "$as_me: failed program was:" >&5
13964 cat conftest.$ac_ext >&5
13965 ac_lo=`expr $ac_mid + 1`
13966 if test $ac_lo -le $ac_mid; then
13970 ac_mid=`expr 2 '*' $ac_mid + 1`
13972 rm -f conftest.$ac_objext conftest.$ac_ext
13975 echo "$as_me: failed program was:" >&5
13976 cat conftest.$ac_ext >&5
13977 cat >conftest.$ac_ext <<_ACEOF
13978 #line $LINENO "configure"
13979 #include "confdefs.h"
13980 $ac_includes_default
13981 struct { char filler; short field; } pgac_struct;
13982 #ifdef F77_DUMMY_MAIN
13983 # ifdef __cplusplus
13986 int F77_DUMMY_MAIN() { return 1; }
13991 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13998 rm -f conftest.$ac_objext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000 (eval $ac_compile) 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -s conftest.$ac_objext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14012 cat >conftest.$ac_ext <<_ACEOF
14013 #line $LINENO "configure"
14014 #include "confdefs.h"
14015 $ac_includes_default
14016 struct { char filler; short field; } pgac_struct;
14017 #ifdef F77_DUMMY_MAIN
14018 # ifdef __cplusplus
14021 int F77_DUMMY_MAIN() { return 1; }
14026 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14033 rm -f conftest.$ac_objext
14034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14035 (eval $ac_compile) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
14039 { ac_try='test -s conftest.$ac_objext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 ac_lo=$ac_mid; break
14047 echo "$as_me: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14049 ac_hi=`expr '(' $ac_mid ')' - 1`
14050 if test $ac_mid -le $ac_hi; then
14054 ac_mid=`expr 2 '*' $ac_mid`
14056 rm -f conftest.$ac_objext conftest.$ac_ext
14059 echo "$as_me: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14063 rm -f conftest.$ac_objext conftest.$ac_ext
14065 rm -f conftest.$ac_objext conftest.$ac_ext
14066 # Binary search between lo and hi bounds.
14067 while test "x$ac_lo" != "x$ac_hi"; do
14068 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14069 cat >conftest.$ac_ext <<_ACEOF
14070 #line $LINENO "configure"
14071 #include "confdefs.h"
14072 $ac_includes_default
14073 struct { char filler; short field; } pgac_struct;
14074 #ifdef F77_DUMMY_MAIN
14075 # ifdef __cplusplus
14078 int F77_DUMMY_MAIN() { return 1; }
14083 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14090 rm -f conftest.$ac_objext
14091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14092 (eval $ac_compile) 2>&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -s conftest.$ac_objext'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14104 echo "$as_me: failed program was:" >&5
14105 cat conftest.$ac_ext >&5
14106 ac_lo=`expr '(' $ac_mid ')' + 1`
14108 rm -f conftest.$ac_objext conftest.$ac_ext
14111 ?*) pgac_cv_alignof_short=$ac_lo;;
14112 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14113 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14114 { (exit 1); exit 1; }; } ;;
14117 if test "$cross_compiling" = yes; then
14118 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14119 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14120 { (exit 1); exit 1; }; }
14122 cat >conftest.$ac_ext <<_ACEOF
14123 #line $LINENO "configure"
14124 #include "confdefs.h"
14125 $ac_includes_default
14126 struct { char filler; short field; } pgac_struct;
14127 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14128 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14130 #include <stdlib.h>
14131 #ifdef F77_DUMMY_MAIN
14132 # ifdef __cplusplus
14135 int F77_DUMMY_MAIN() { return 1; }
14141 FILE *f = fopen ("conftest.val", "w");
14144 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14146 long i = longval ();
14147 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14149 fprintf (f, "%ld\n", i);
14153 unsigned long i = ulongval ();
14154 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14156 fprintf (f, "%lu\n", i);
14158 exit (ferror (f) || fclose (f) != 0);
14164 rm -f conftest$ac_exeext
14165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14166 (eval $ac_link) 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 pgac_cv_alignof_short=`cat conftest.val`
14177 echo "$as_me: program exited with status $ac_status" >&5
14178 echo "$as_me: failed program was:" >&5
14179 cat conftest.$ac_ext >&5
14180 ( exit $ac_status )
14181 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14182 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14183 { (exit 1); exit 1; }; }
14185 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14190 pgac_cv_alignof_short=0
14193 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14194 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14195 cat >>confdefs.h <<_ACEOF
14196 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14200 echo "$as_me:$LINENO: checking for int" >&5
14201 echo $ECHO_N "checking for int... $ECHO_C" >&6
14202 if test "${ac_cv_type_int+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 cat >conftest.$ac_ext <<_ACEOF
14206 #line $LINENO "configure"
14207 #include "confdefs.h"
14208 $ac_includes_default
14209 #ifdef F77_DUMMY_MAIN
14210 # ifdef __cplusplus
14213 int F77_DUMMY_MAIN() { return 1; }
14226 rm -f conftest.$ac_objext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14228 (eval $ac_compile) 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } &&
14232 { ac_try='test -s conftest.$ac_objext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14240 echo "$as_me: failed program was:" >&5
14241 cat conftest.$ac_ext >&5
14244 rm -f conftest.$ac_objext conftest.$ac_ext
14246 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14247 echo "${ECHO_T}$ac_cv_type_int" >&6
14249 echo "$as_me:$LINENO: checking alignment of int" >&5
14250 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14251 if test "${pgac_cv_alignof_int+set}" = set; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 if test "$ac_cv_type_int" = yes; then
14255 if test "$cross_compiling" = yes; then
14256 # Depending upon the size, compute the lo and hi bounds.
14257 cat >conftest.$ac_ext <<_ACEOF
14258 #line $LINENO "configure"
14259 #include "confdefs.h"
14260 $ac_includes_default
14261 struct { char filler; int field; } pgac_struct;
14262 #ifdef F77_DUMMY_MAIN
14263 # ifdef __cplusplus
14266 int F77_DUMMY_MAIN() { return 1; }
14271 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280 (eval $ac_compile) 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
14284 { ac_try='test -s conftest.$ac_objext'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14292 cat >conftest.$ac_ext <<_ACEOF
14293 #line $LINENO "configure"
14294 #include "confdefs.h"
14295 $ac_includes_default
14296 struct { char filler; int field; } pgac_struct;
14297 #ifdef F77_DUMMY_MAIN
14298 # ifdef __cplusplus
14301 int F77_DUMMY_MAIN() { return 1; }
14306 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14313 rm -f conftest.$ac_objext
14314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14315 (eval $ac_compile) 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -s conftest.$ac_objext'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14325 ac_hi=$ac_mid; break
14327 echo "$as_me: failed program was:" >&5
14328 cat conftest.$ac_ext >&5
14329 ac_lo=`expr $ac_mid + 1`
14330 if test $ac_lo -le $ac_mid; then
14334 ac_mid=`expr 2 '*' $ac_mid + 1`
14336 rm -f conftest.$ac_objext conftest.$ac_ext
14339 echo "$as_me: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14341 cat >conftest.$ac_ext <<_ACEOF
14342 #line $LINENO "configure"
14343 #include "confdefs.h"
14344 $ac_includes_default
14345 struct { char filler; int field; } pgac_struct;
14346 #ifdef F77_DUMMY_MAIN
14347 # ifdef __cplusplus
14350 int F77_DUMMY_MAIN() { return 1; }
14355 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14362 rm -f conftest.$ac_objext
14363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14364 (eval $ac_compile) 2>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } &&
14368 { ac_try='test -s conftest.$ac_objext'
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; }; then
14376 cat >conftest.$ac_ext <<_ACEOF
14377 #line $LINENO "configure"
14378 #include "confdefs.h"
14379 $ac_includes_default
14380 struct { char filler; int field; } pgac_struct;
14381 #ifdef F77_DUMMY_MAIN
14382 # ifdef __cplusplus
14385 int F77_DUMMY_MAIN() { return 1; }
14390 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14397 rm -f conftest.$ac_objext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399 (eval $ac_compile) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -s conftest.$ac_objext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 ac_lo=$ac_mid; break
14411 echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14413 ac_hi=`expr '(' $ac_mid ')' - 1`
14414 if test $ac_mid -le $ac_hi; then
14418 ac_mid=`expr 2 '*' $ac_mid`
14420 rm -f conftest.$ac_objext conftest.$ac_ext
14423 echo "$as_me: failed program was:" >&5
14424 cat conftest.$ac_ext >&5
14427 rm -f conftest.$ac_objext conftest.$ac_ext
14429 rm -f conftest.$ac_objext conftest.$ac_ext
14430 # Binary search between lo and hi bounds.
14431 while test "x$ac_lo" != "x$ac_hi"; do
14432 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14433 cat >conftest.$ac_ext <<_ACEOF
14434 #line $LINENO "configure"
14435 #include "confdefs.h"
14436 $ac_includes_default
14437 struct { char filler; int field; } pgac_struct;
14438 #ifdef F77_DUMMY_MAIN
14439 # ifdef __cplusplus
14442 int F77_DUMMY_MAIN() { return 1; }
14447 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14454 rm -f conftest.$ac_objext
14455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14456 (eval $ac_compile) 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -s conftest.$ac_objext'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14468 echo "$as_me: failed program was:" >&5
14469 cat conftest.$ac_ext >&5
14470 ac_lo=`expr '(' $ac_mid ')' + 1`
14472 rm -f conftest.$ac_objext conftest.$ac_ext
14475 ?*) pgac_cv_alignof_int=$ac_lo;;
14476 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14477 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14478 { (exit 1); exit 1; }; } ;;
14481 if test "$cross_compiling" = yes; then
14482 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14483 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14484 { (exit 1); exit 1; }; }
14486 cat >conftest.$ac_ext <<_ACEOF
14487 #line $LINENO "configure"
14488 #include "confdefs.h"
14489 $ac_includes_default
14490 struct { char filler; int field; } pgac_struct;
14491 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14492 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14494 #include <stdlib.h>
14495 #ifdef F77_DUMMY_MAIN
14496 # ifdef __cplusplus
14499 int F77_DUMMY_MAIN() { return 1; }
14505 FILE *f = fopen ("conftest.val", "w");
14508 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14510 long i = longval ();
14511 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14513 fprintf (f, "%ld\n", i);
14517 unsigned long i = ulongval ();
14518 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14520 fprintf (f, "%lu\n", i);
14522 exit (ferror (f) || fclose (f) != 0);
14528 rm -f conftest$ac_exeext
14529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14530 (eval $ac_link) 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 pgac_cv_alignof_int=`cat conftest.val`
14541 echo "$as_me: program exited with status $ac_status" >&5
14542 echo "$as_me: failed program was:" >&5
14543 cat conftest.$ac_ext >&5
14544 ( exit $ac_status )
14545 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14546 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14547 { (exit 1); exit 1; }; }
14549 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14554 pgac_cv_alignof_int=0
14557 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14558 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14559 cat >>confdefs.h <<_ACEOF
14560 #define ALIGNOF_INT $pgac_cv_alignof_int
14564 echo "$as_me:$LINENO: checking for long" >&5
14565 echo $ECHO_N "checking for long... $ECHO_C" >&6
14566 if test "${ac_cv_type_long+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 cat >conftest.$ac_ext <<_ACEOF
14570 #line $LINENO "configure"
14571 #include "confdefs.h"
14572 $ac_includes_default
14573 #ifdef F77_DUMMY_MAIN
14574 # ifdef __cplusplus
14577 int F77_DUMMY_MAIN() { return 1; }
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 ac_cv_type_long=yes
14604 echo "$as_me: failed program was:" >&5
14605 cat conftest.$ac_ext >&5
14608 rm -f conftest.$ac_objext conftest.$ac_ext
14610 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14611 echo "${ECHO_T}$ac_cv_type_long" >&6
14613 echo "$as_me:$LINENO: checking alignment of long" >&5
14614 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14615 if test "${pgac_cv_alignof_long+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 if test "$ac_cv_type_long" = yes; then
14619 if test "$cross_compiling" = yes; then
14620 # Depending upon the size, compute the lo and hi bounds.
14621 cat >conftest.$ac_ext <<_ACEOF
14622 #line $LINENO "configure"
14623 #include "confdefs.h"
14624 $ac_includes_default
14625 struct { char filler; long field; } pgac_struct;
14626 #ifdef F77_DUMMY_MAIN
14627 # ifdef __cplusplus
14630 int F77_DUMMY_MAIN() { return 1; }
14635 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14642 rm -f conftest.$ac_objext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644 (eval $ac_compile) 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try='test -s conftest.$ac_objext'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14656 cat >conftest.$ac_ext <<_ACEOF
14657 #line $LINENO "configure"
14658 #include "confdefs.h"
14659 $ac_includes_default
14660 struct { char filler; long field; } pgac_struct;
14661 #ifdef F77_DUMMY_MAIN
14662 # ifdef __cplusplus
14665 int F77_DUMMY_MAIN() { return 1; }
14670 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14677 rm -f conftest.$ac_objext
14678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14679 (eval $ac_compile) 2>&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } &&
14683 { ac_try='test -s conftest.$ac_objext'
14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }; then
14689 ac_hi=$ac_mid; break
14691 echo "$as_me: failed program was:" >&5
14692 cat conftest.$ac_ext >&5
14693 ac_lo=`expr $ac_mid + 1`
14694 if test $ac_lo -le $ac_mid; then
14698 ac_mid=`expr 2 '*' $ac_mid + 1`
14700 rm -f conftest.$ac_objext conftest.$ac_ext
14703 echo "$as_me: failed program was:" >&5
14704 cat conftest.$ac_ext >&5
14705 cat >conftest.$ac_ext <<_ACEOF
14706 #line $LINENO "configure"
14707 #include "confdefs.h"
14708 $ac_includes_default
14709 struct { char filler; long field; } pgac_struct;
14710 #ifdef F77_DUMMY_MAIN
14711 # ifdef __cplusplus
14714 int F77_DUMMY_MAIN() { return 1; }
14719 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14726 rm -f conftest.$ac_objext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14728 (eval $ac_compile) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -s conftest.$ac_objext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14740 cat >conftest.$ac_ext <<_ACEOF
14741 #line $LINENO "configure"
14742 #include "confdefs.h"
14743 $ac_includes_default
14744 struct { char filler; long field; } pgac_struct;
14745 #ifdef F77_DUMMY_MAIN
14746 # ifdef __cplusplus
14749 int F77_DUMMY_MAIN() { return 1; }
14754 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14761 rm -f conftest.$ac_objext
14762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14763 (eval $ac_compile) 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); } &&
14767 { ac_try='test -s conftest.$ac_objext'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; }; then
14773 ac_lo=$ac_mid; break
14775 echo "$as_me: failed program was:" >&5
14776 cat conftest.$ac_ext >&5
14777 ac_hi=`expr '(' $ac_mid ')' - 1`
14778 if test $ac_mid -le $ac_hi; then
14782 ac_mid=`expr 2 '*' $ac_mid`
14784 rm -f conftest.$ac_objext conftest.$ac_ext
14787 echo "$as_me: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14791 rm -f conftest.$ac_objext conftest.$ac_ext
14793 rm -f conftest.$ac_objext conftest.$ac_ext
14794 # Binary search between lo and hi bounds.
14795 while test "x$ac_lo" != "x$ac_hi"; do
14796 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14797 cat >conftest.$ac_ext <<_ACEOF
14798 #line $LINENO "configure"
14799 #include "confdefs.h"
14800 $ac_includes_default
14801 struct { char filler; long field; } pgac_struct;
14802 #ifdef F77_DUMMY_MAIN
14803 # ifdef __cplusplus
14806 int F77_DUMMY_MAIN() { return 1; }
14811 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14818 rm -f conftest.$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820 (eval $ac_compile) 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } &&
14824 { ac_try='test -s conftest.$ac_objext'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14832 echo "$as_me: failed program was:" >&5
14833 cat conftest.$ac_ext >&5
14834 ac_lo=`expr '(' $ac_mid ')' + 1`
14836 rm -f conftest.$ac_objext conftest.$ac_ext
14839 ?*) pgac_cv_alignof_long=$ac_lo;;
14840 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14841 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14842 { (exit 1); exit 1; }; } ;;
14845 if test "$cross_compiling" = yes; then
14846 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14847 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14848 { (exit 1); exit 1; }; }
14850 cat >conftest.$ac_ext <<_ACEOF
14851 #line $LINENO "configure"
14852 #include "confdefs.h"
14853 $ac_includes_default
14854 struct { char filler; long field; } pgac_struct;
14855 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14856 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14858 #include <stdlib.h>
14859 #ifdef F77_DUMMY_MAIN
14860 # ifdef __cplusplus
14863 int F77_DUMMY_MAIN() { return 1; }
14869 FILE *f = fopen ("conftest.val", "w");
14872 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14874 long i = longval ();
14875 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14877 fprintf (f, "%ld\n", i);
14881 unsigned long i = ulongval ();
14882 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14884 fprintf (f, "%lu\n", i);
14886 exit (ferror (f) || fclose (f) != 0);
14892 rm -f conftest$ac_exeext
14893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14894 (eval $ac_link) 2>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 pgac_cv_alignof_long=`cat conftest.val`
14905 echo "$as_me: program exited with status $ac_status" >&5
14906 echo "$as_me: failed program was:" >&5
14907 cat conftest.$ac_ext >&5
14908 ( exit $ac_status )
14909 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14910 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14911 { (exit 1); exit 1; }; }
14913 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14918 pgac_cv_alignof_long=0
14921 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14922 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14923 cat >>confdefs.h <<_ACEOF
14924 #define ALIGNOF_LONG $pgac_cv_alignof_long
14928 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14929 echo "$as_me:$LINENO: checking for long long int" >&5
14930 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14931 if test "${ac_cv_type_long_long_int+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 cat >conftest.$ac_ext <<_ACEOF
14935 #line $LINENO "configure"
14936 #include "confdefs.h"
14937 $ac_includes_default
14938 #ifdef F77_DUMMY_MAIN
14939 # ifdef __cplusplus
14942 int F77_DUMMY_MAIN() { return 1; }
14947 if ((long long int *) 0)
14949 if (sizeof (long long int))
14955 rm -f conftest.$ac_objext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957 (eval $ac_compile) 2>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
14961 { ac_try='test -s conftest.$ac_objext'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14967 ac_cv_type_long_long_int=yes
14969 echo "$as_me: failed program was:" >&5
14970 cat conftest.$ac_ext >&5
14971 ac_cv_type_long_long_int=no
14973 rm -f conftest.$ac_objext conftest.$ac_ext
14975 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14976 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14978 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14979 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14980 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14981 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 if test "$ac_cv_type_long_long_int" = yes; then
14984 if test "$cross_compiling" = yes; then
14985 # Depending upon the size, compute the lo and hi bounds.
14986 cat >conftest.$ac_ext <<_ACEOF
14987 #line $LINENO "configure"
14988 #include "confdefs.h"
14989 $ac_includes_default
14990 struct { char filler; long long int field; } pgac_struct;
14991 #ifdef F77_DUMMY_MAIN
14992 # ifdef __cplusplus
14995 int F77_DUMMY_MAIN() { return 1; }
15000 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15007 rm -f conftest.$ac_objext
15008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15009 (eval $ac_compile) 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -s conftest.$ac_objext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15021 cat >conftest.$ac_ext <<_ACEOF
15022 #line $LINENO "configure"
15023 #include "confdefs.h"
15024 $ac_includes_default
15025 struct { char filler; long long int field; } pgac_struct;
15026 #ifdef F77_DUMMY_MAIN
15027 # ifdef __cplusplus
15030 int F77_DUMMY_MAIN() { return 1; }
15035 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15042 rm -f conftest.$ac_objext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044 (eval $ac_compile) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -s conftest.$ac_objext'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15054 ac_hi=$ac_mid; break
15056 echo "$as_me: failed program was:" >&5
15057 cat conftest.$ac_ext >&5
15058 ac_lo=`expr $ac_mid + 1`
15059 if test $ac_lo -le $ac_mid; then
15063 ac_mid=`expr 2 '*' $ac_mid + 1`
15065 rm -f conftest.$ac_objext conftest.$ac_ext
15068 echo "$as_me: failed program was:" >&5
15069 cat conftest.$ac_ext >&5
15070 cat >conftest.$ac_ext <<_ACEOF
15071 #line $LINENO "configure"
15072 #include "confdefs.h"
15073 $ac_includes_default
15074 struct { char filler; long long int field; } pgac_struct;
15075 #ifdef F77_DUMMY_MAIN
15076 # ifdef __cplusplus
15079 int F77_DUMMY_MAIN() { return 1; }
15084 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15091 rm -f conftest.$ac_objext
15092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15093 (eval $ac_compile) 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } &&
15097 { ac_try='test -s conftest.$ac_objext'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15105 cat >conftest.$ac_ext <<_ACEOF
15106 #line $LINENO "configure"
15107 #include "confdefs.h"
15108 $ac_includes_default
15109 struct { char filler; long long int field; } pgac_struct;
15110 #ifdef F77_DUMMY_MAIN
15111 # ifdef __cplusplus
15114 int F77_DUMMY_MAIN() { return 1; }
15119 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15126 rm -f conftest.$ac_objext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15128 (eval $ac_compile) 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -s conftest.$ac_objext'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 ac_lo=$ac_mid; break
15140 echo "$as_me: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15142 ac_hi=`expr '(' $ac_mid ')' - 1`
15143 if test $ac_mid -le $ac_hi; then
15147 ac_mid=`expr 2 '*' $ac_mid`
15149 rm -f conftest.$ac_objext conftest.$ac_ext
15152 echo "$as_me: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15156 rm -f conftest.$ac_objext conftest.$ac_ext
15158 rm -f conftest.$ac_objext conftest.$ac_ext
15159 # Binary search between lo and hi bounds.
15160 while test "x$ac_lo" != "x$ac_hi"; do
15161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15162 cat >conftest.$ac_ext <<_ACEOF
15163 #line $LINENO "configure"
15164 #include "confdefs.h"
15165 $ac_includes_default
15166 struct { char filler; long long int field; } pgac_struct;
15167 #ifdef F77_DUMMY_MAIN
15168 # ifdef __cplusplus
15171 int F77_DUMMY_MAIN() { return 1; }
15176 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15183 rm -f conftest.$ac_objext
15184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15185 (eval $ac_compile) 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } &&
15189 { ac_try='test -s conftest.$ac_objext'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15197 echo "$as_me: failed program was:" >&5
15198 cat conftest.$ac_ext >&5
15199 ac_lo=`expr '(' $ac_mid ')' + 1`
15201 rm -f conftest.$ac_objext conftest.$ac_ext
15204 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15205 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15206 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15207 { (exit 1); exit 1; }; } ;;
15210 if test "$cross_compiling" = yes; then
15211 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15212 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15213 { (exit 1); exit 1; }; }
15215 cat >conftest.$ac_ext <<_ACEOF
15216 #line $LINENO "configure"
15217 #include "confdefs.h"
15218 $ac_includes_default
15219 struct { char filler; long long int field; } pgac_struct;
15220 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15221 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15223 #include <stdlib.h>
15224 #ifdef F77_DUMMY_MAIN
15225 # ifdef __cplusplus
15228 int F77_DUMMY_MAIN() { return 1; }
15234 FILE *f = fopen ("conftest.val", "w");
15237 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15239 long i = longval ();
15240 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15242 fprintf (f, "%ld\n", i);
15246 unsigned long i = ulongval ();
15247 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15249 fprintf (f, "%lu\n", i);
15251 exit (ferror (f) || fclose (f) != 0);
15257 rm -f conftest$ac_exeext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15259 (eval $ac_link) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 pgac_cv_alignof_long_long_int=`cat conftest.val`
15270 echo "$as_me: program exited with status $ac_status" >&5
15271 echo "$as_me: failed program was:" >&5
15272 cat conftest.$ac_ext >&5
15273 ( exit $ac_status )
15274 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15275 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15276 { (exit 1); exit 1; }; }
15278 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15283 pgac_cv_alignof_long_long_int=0
15286 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15287 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15288 cat >>confdefs.h <<_ACEOF
15289 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15294 echo "$as_me:$LINENO: checking for double" >&5
15295 echo $ECHO_N "checking for double... $ECHO_C" >&6
15296 if test "${ac_cv_type_double+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 cat >conftest.$ac_ext <<_ACEOF
15300 #line $LINENO "configure"
15301 #include "confdefs.h"
15302 $ac_includes_default
15303 #ifdef F77_DUMMY_MAIN
15304 # ifdef __cplusplus
15307 int F77_DUMMY_MAIN() { return 1; }
15314 if (sizeof (double))
15320 rm -f conftest.$ac_objext
15321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15322 (eval $ac_compile) 2>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
15326 { ac_try='test -s conftest.$ac_objext'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 ac_cv_type_double=yes
15334 echo "$as_me: failed program was:" >&5
15335 cat conftest.$ac_ext >&5
15336 ac_cv_type_double=no
15338 rm -f conftest.$ac_objext conftest.$ac_ext
15340 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15341 echo "${ECHO_T}$ac_cv_type_double" >&6
15343 echo "$as_me:$LINENO: checking alignment of double" >&5
15344 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15345 if test "${pgac_cv_alignof_double+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 if test "$ac_cv_type_double" = yes; then
15349 if test "$cross_compiling" = yes; then
15350 # Depending upon the size, compute the lo and hi bounds.
15351 cat >conftest.$ac_ext <<_ACEOF
15352 #line $LINENO "configure"
15353 #include "confdefs.h"
15354 $ac_includes_default
15355 struct { char filler; double field; } pgac_struct;
15356 #ifdef F77_DUMMY_MAIN
15357 # ifdef __cplusplus
15360 int F77_DUMMY_MAIN() { return 1; }
15365 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15372 rm -f conftest.$ac_objext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15374 (eval $ac_compile) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -s conftest.$ac_objext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15386 cat >conftest.$ac_ext <<_ACEOF
15387 #line $LINENO "configure"
15388 #include "confdefs.h"
15389 $ac_includes_default
15390 struct { char filler; double field; } pgac_struct;
15391 #ifdef F77_DUMMY_MAIN
15392 # ifdef __cplusplus
15395 int F77_DUMMY_MAIN() { return 1; }
15400 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15407 rm -f conftest.$ac_objext
15408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15409 (eval $ac_compile) 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -s conftest.$ac_objext'
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_hi=$ac_mid; break
15421 echo "$as_me: failed program was:" >&5
15422 cat conftest.$ac_ext >&5
15423 ac_lo=`expr $ac_mid + 1`
15424 if test $ac_lo -le $ac_mid; then
15428 ac_mid=`expr 2 '*' $ac_mid + 1`
15430 rm -f conftest.$ac_objext conftest.$ac_ext
15433 echo "$as_me: failed program was:" >&5
15434 cat conftest.$ac_ext >&5
15435 cat >conftest.$ac_ext <<_ACEOF
15436 #line $LINENO "configure"
15437 #include "confdefs.h"
15438 $ac_includes_default
15439 struct { char filler; double field; } pgac_struct;
15440 #ifdef F77_DUMMY_MAIN
15441 # ifdef __cplusplus
15444 int F77_DUMMY_MAIN() { return 1; }
15449 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15456 rm -f conftest.$ac_objext
15457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15458 (eval $ac_compile) 2>&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
15462 { ac_try='test -s conftest.$ac_objext'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15470 cat >conftest.$ac_ext <<_ACEOF
15471 #line $LINENO "configure"
15472 #include "confdefs.h"
15473 $ac_includes_default
15474 struct { char filler; double field; } pgac_struct;
15475 #ifdef F77_DUMMY_MAIN
15476 # ifdef __cplusplus
15479 int F77_DUMMY_MAIN() { return 1; }
15484 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15491 rm -f conftest.$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493 (eval $ac_compile) 2>&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } &&
15497 { ac_try='test -s conftest.$ac_objext'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_lo=$ac_mid; break
15505 echo "$as_me: failed program was:" >&5
15506 cat conftest.$ac_ext >&5
15507 ac_hi=`expr '(' $ac_mid ')' - 1`
15508 if test $ac_mid -le $ac_hi; then
15512 ac_mid=`expr 2 '*' $ac_mid`
15514 rm -f conftest.$ac_objext conftest.$ac_ext
15517 echo "$as_me: failed program was:" >&5
15518 cat conftest.$ac_ext >&5
15521 rm -f conftest.$ac_objext conftest.$ac_ext
15523 rm -f conftest.$ac_objext conftest.$ac_ext
15524 # Binary search between lo and hi bounds.
15525 while test "x$ac_lo" != "x$ac_hi"; do
15526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15527 cat >conftest.$ac_ext <<_ACEOF
15528 #line $LINENO "configure"
15529 #include "confdefs.h"
15530 $ac_includes_default
15531 struct { char filler; double field; } pgac_struct;
15532 #ifdef F77_DUMMY_MAIN
15533 # ifdef __cplusplus
15536 int F77_DUMMY_MAIN() { return 1; }
15541 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15548 rm -f conftest.$ac_objext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15550 (eval $ac_compile) 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -s conftest.$ac_objext'
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15562 echo "$as_me: failed program was:" >&5
15563 cat conftest.$ac_ext >&5
15564 ac_lo=`expr '(' $ac_mid ')' + 1`
15566 rm -f conftest.$ac_objext conftest.$ac_ext
15569 ?*) pgac_cv_alignof_double=$ac_lo;;
15570 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15571 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15572 { (exit 1); exit 1; }; } ;;
15575 if test "$cross_compiling" = yes; then
15576 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15577 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15578 { (exit 1); exit 1; }; }
15580 cat >conftest.$ac_ext <<_ACEOF
15581 #line $LINENO "configure"
15582 #include "confdefs.h"
15583 $ac_includes_default
15584 struct { char filler; double field; } pgac_struct;
15585 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15586 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15588 #include <stdlib.h>
15589 #ifdef F77_DUMMY_MAIN
15590 # ifdef __cplusplus
15593 int F77_DUMMY_MAIN() { return 1; }
15599 FILE *f = fopen ("conftest.val", "w");
15602 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15604 long i = longval ();
15605 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15607 fprintf (f, "%ld\n", i);
15611 unsigned long i = ulongval ();
15612 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15614 fprintf (f, "%lu\n", i);
15616 exit (ferror (f) || fclose (f) != 0);
15622 rm -f conftest$ac_exeext
15623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15624 (eval $ac_link) 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; }; then
15633 pgac_cv_alignof_double=`cat conftest.val`
15635 echo "$as_me: program exited with status $ac_status" >&5
15636 echo "$as_me: failed program was:" >&5
15637 cat conftest.$ac_ext >&5
15638 ( exit $ac_status )
15639 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15640 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15641 { (exit 1); exit 1; }; }
15643 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15648 pgac_cv_alignof_double=0
15651 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15652 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15653 cat >>confdefs.h <<_ACEOF
15654 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15659 # Compute maximum alignment of any basic type.
15660 # We assume long's alignment is at least as strong as char, short, or int;
15661 # but we must check long long (if it exists) and double.
15663 MAX_ALIGNOF=$pgac_cv_alignof_long
15664 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15665 MAX_ALIGNOF=$pgac_cv_alignof_double
15667 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15668 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15671 cat >>confdefs.h <<_ACEOF
15672 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15677 # Some platforms predefine the types int8, int16, etc. Only check
15678 # a (hopefully) representative subset.
15679 echo "$as_me:$LINENO: checking for int8" >&5
15680 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15681 if test "${ac_cv_type_int8+set}" = set; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 cat >conftest.$ac_ext <<_ACEOF
15685 #line $LINENO "configure"
15686 #include "confdefs.h"
15688 #ifdef HAVE_SUPPORTDEFS_H
15689 #include <SupportDefs.h>
15692 #ifdef F77_DUMMY_MAIN
15693 # ifdef __cplusplus
15696 int F77_DUMMY_MAIN() { return 1; }
15709 rm -f conftest.$ac_objext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15711 (eval $ac_compile) 2>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } &&
15715 { ac_try='test -s conftest.$ac_objext'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721 ac_cv_type_int8=yes
15723 echo "$as_me: failed program was:" >&5
15724 cat conftest.$ac_ext >&5
15727 rm -f conftest.$ac_objext conftest.$ac_ext
15729 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15730 echo "${ECHO_T}$ac_cv_type_int8" >&6
15731 if test $ac_cv_type_int8 = yes; then
15733 cat >>confdefs.h <<_ACEOF
15734 #define HAVE_INT8 1
15739 echo "$as_me:$LINENO: checking for uint8" >&5
15740 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15741 if test "${ac_cv_type_uint8+set}" = set; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 cat >conftest.$ac_ext <<_ACEOF
15745 #line $LINENO "configure"
15746 #include "confdefs.h"
15748 #ifdef HAVE_SUPPORTDEFS_H
15749 #include <SupportDefs.h>
15752 #ifdef F77_DUMMY_MAIN
15753 # ifdef __cplusplus
15756 int F77_DUMMY_MAIN() { return 1; }
15763 if (sizeof (uint8))
15769 rm -f conftest.$ac_objext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15771 (eval $ac_compile) 2>&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } &&
15775 { ac_try='test -s conftest.$ac_objext'
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; }; then
15781 ac_cv_type_uint8=yes
15783 echo "$as_me: failed program was:" >&5
15784 cat conftest.$ac_ext >&5
15785 ac_cv_type_uint8=no
15787 rm -f conftest.$ac_objext conftest.$ac_ext
15789 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15790 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15791 if test $ac_cv_type_uint8 = yes; then
15793 cat >>confdefs.h <<_ACEOF
15794 #define HAVE_UINT8 1
15799 echo "$as_me:$LINENO: checking for int64" >&5
15800 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15801 if test "${ac_cv_type_int64+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 cat >conftest.$ac_ext <<_ACEOF
15805 #line $LINENO "configure"
15806 #include "confdefs.h"
15808 #ifdef HAVE_SUPPORTDEFS_H
15809 #include <SupportDefs.h>
15812 #ifdef F77_DUMMY_MAIN
15813 # ifdef __cplusplus
15816 int F77_DUMMY_MAIN() { return 1; }
15823 if (sizeof (int64))
15829 rm -f conftest.$ac_objext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15831 (eval $ac_compile) 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try='test -s conftest.$ac_objext'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; }; then
15841 ac_cv_type_int64=yes
15843 echo "$as_me: failed program was:" >&5
15844 cat conftest.$ac_ext >&5
15845 ac_cv_type_int64=no
15847 rm -f conftest.$ac_objext conftest.$ac_ext
15849 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15850 echo "${ECHO_T}$ac_cv_type_int64" >&6
15851 if test $ac_cv_type_int64 = yes; then
15853 cat >>confdefs.h <<_ACEOF
15854 #define HAVE_INT64 1
15859 echo "$as_me:$LINENO: checking for uint64" >&5
15860 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15861 if test "${ac_cv_type_uint64+set}" = set; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 cat >conftest.$ac_ext <<_ACEOF
15865 #line $LINENO "configure"
15866 #include "confdefs.h"
15868 #ifdef HAVE_SUPPORTDEFS_H
15869 #include <SupportDefs.h>
15872 #ifdef F77_DUMMY_MAIN
15873 # ifdef __cplusplus
15876 int F77_DUMMY_MAIN() { return 1; }
15883 if (sizeof (uint64))
15889 rm -f conftest.$ac_objext
15890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15891 (eval $ac_compile) 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } &&
15895 { ac_try='test -s conftest.$ac_objext'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; }; then
15901 ac_cv_type_uint64=yes
15903 echo "$as_me: failed program was:" >&5
15904 cat conftest.$ac_ext >&5
15905 ac_cv_type_uint64=no
15907 rm -f conftest.$ac_objext conftest.$ac_ext
15909 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15910 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15911 if test $ac_cv_type_uint64 = yes; then
15913 cat >>confdefs.h <<_ACEOF
15914 #define HAVE_UINT64 1
15921 # We also check for sig_atomic_t, which *should* be defined per ANSI
15922 # C, but is missing on some old platforms.
15923 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15924 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15925 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 cat >conftest.$ac_ext <<_ACEOF
15929 #line $LINENO "configure"
15930 #include "confdefs.h"
15931 #include <signal.h>
15933 #ifdef F77_DUMMY_MAIN
15934 # ifdef __cplusplus
15937 int F77_DUMMY_MAIN() { return 1; }
15942 if ((sig_atomic_t *) 0)
15944 if (sizeof (sig_atomic_t))
15950 rm -f conftest.$ac_objext
15951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15952 (eval $ac_compile) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } &&
15956 { ac_try='test -s conftest.$ac_objext'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ac_cv_type_sig_atomic_t=yes
15964 echo "$as_me: failed program was:" >&5
15965 cat conftest.$ac_ext >&5
15966 ac_cv_type_sig_atomic_t=no
15968 rm -f conftest.$ac_objext conftest.$ac_ext
15970 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15971 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15972 if test $ac_cv_type_sig_atomic_t = yes; then
15974 cat >>confdefs.h <<_ACEOF
15975 #define HAVE_SIG_ATOMIC_T 1
15983 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15984 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15985 if test "${pgac_cv_func_posix_signals+set}" = set; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15988 cat >conftest.$ac_ext <<_ACEOF
15989 #line $LINENO "configure"
15990 #include "confdefs.h"
15991 #include <signal.h>
15993 #ifdef F77_DUMMY_MAIN
15994 # ifdef __cplusplus
15997 int F77_DUMMY_MAIN() { return 1; }
16002 struct sigaction act, oact;
16003 sigemptyset(&act.sa_mask);
16004 act.sa_flags = SA_RESTART;
16005 sigaction(0, &act, &oact);
16010 rm -f conftest.$ac_objext conftest$ac_exeext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16012 (eval $ac_link) 2>&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } &&
16016 { ac_try='test -s conftest$ac_exeext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022 pgac_cv_func_posix_signals=yes
16024 echo "$as_me: failed program was:" >&5
16025 cat conftest.$ac_ext >&5
16026 pgac_cv_func_posix_signals=no
16028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16030 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16031 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16032 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16034 cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_POSIX_SIGNALS
16039 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16041 if test $ac_cv_func_fseeko = yes; then
16042 # Check whether --enable-largefile or --disable-largefile was given.
16043 if test "${enable_largefile+set}" = set; then
16044 enableval="$enable_largefile"
16047 if test "$enable_largefile" != no; then
16049 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16050 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16051 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 ac_cv_sys_largefile_CC=no
16055 if test "$GCC" != yes; then
16058 # IRIX 6.2 and later do not support large files by default,
16059 # so use the C compiler's -n32 option if that helps.
16060 cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16062 #include "confdefs.h"
16063 #include <sys/types.h>
16064 /* Check that off_t can represent 2**63 - 1 correctly.
16065 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16066 since some C++ compilers masquerading as C compilers
16067 incorrectly reject 9223372036854775807. */
16068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16070 && LARGE_OFF_T % 2147483647 == 1)
16072 #ifdef F77_DUMMY_MAIN
16073 # ifdef __cplusplus
16076 int F77_DUMMY_MAIN() { return 1; }
16086 rm -f conftest.$ac_objext
16087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16088 (eval $ac_compile) 2>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } &&
16092 { ac_try='test -s conftest.$ac_objext'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16100 echo "$as_me: failed program was:" >&5
16101 cat conftest.$ac_ext >&5
16103 rm -f conftest.$ac_objext
16105 rm -f conftest.$ac_objext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16107 (eval $ac_compile) 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
16111 { ac_try='test -s conftest.$ac_objext'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; }; then
16117 ac_cv_sys_largefile_CC=' -n32'; break
16119 echo "$as_me: failed program was:" >&5
16120 cat conftest.$ac_ext >&5
16122 rm -f conftest.$ac_objext
16126 rm -f conftest.$ac_ext
16129 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16130 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16131 if test "$ac_cv_sys_largefile_CC" != no; then
16132 CC=$CC$ac_cv_sys_largefile_CC
16135 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16136 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16137 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16138 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 ac_cv_sys_file_offset_bits=no
16142 cat >conftest.$ac_ext <<_ACEOF
16143 #line $LINENO "configure"
16144 #include "confdefs.h"
16145 #include <sys/types.h>
16146 /* Check that off_t can represent 2**63 - 1 correctly.
16147 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16148 since some C++ compilers masquerading as C compilers
16149 incorrectly reject 9223372036854775807. */
16150 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16152 && LARGE_OFF_T % 2147483647 == 1)
16154 #ifdef F77_DUMMY_MAIN
16155 # ifdef __cplusplus
16158 int F77_DUMMY_MAIN() { return 1; }
16168 rm -f conftest.$ac_objext
16169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16170 (eval $ac_compile) 2>&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -s conftest.$ac_objext'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; }; then
16182 echo "$as_me: failed program was:" >&5
16183 cat conftest.$ac_ext >&5
16185 rm -f conftest.$ac_objext conftest.$ac_ext
16186 cat >conftest.$ac_ext <<_ACEOF
16187 #line $LINENO "configure"
16188 #include "confdefs.h"
16189 #define _FILE_OFFSET_BITS 64
16190 #include <sys/types.h>
16191 /* Check that off_t can represent 2**63 - 1 correctly.
16192 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16193 since some C++ compilers masquerading as C compilers
16194 incorrectly reject 9223372036854775807. */
16195 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16196 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16197 && LARGE_OFF_T % 2147483647 == 1)
16199 #ifdef F77_DUMMY_MAIN
16200 # ifdef __cplusplus
16203 int F77_DUMMY_MAIN() { return 1; }
16213 rm -f conftest.$ac_objext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215 (eval $ac_compile) 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } &&
16219 { ac_try='test -s conftest.$ac_objext'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16225 ac_cv_sys_file_offset_bits=64; break
16227 echo "$as_me: failed program was:" >&5
16228 cat conftest.$ac_ext >&5
16230 rm -f conftest.$ac_objext conftest.$ac_ext
16234 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16235 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16236 if test "$ac_cv_sys_file_offset_bits" != no; then
16238 cat >>confdefs.h <<_ACEOF
16239 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16244 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16245 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16246 if test "${ac_cv_sys_large_files+set}" = set; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 ac_cv_sys_large_files=no
16251 cat >conftest.$ac_ext <<_ACEOF
16252 #line $LINENO "configure"
16253 #include "confdefs.h"
16254 #include <sys/types.h>
16255 /* Check that off_t can represent 2**63 - 1 correctly.
16256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16257 since some C++ compilers masquerading as C compilers
16258 incorrectly reject 9223372036854775807. */
16259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16261 && LARGE_OFF_T % 2147483647 == 1)
16263 #ifdef F77_DUMMY_MAIN
16264 # ifdef __cplusplus
16267 int F77_DUMMY_MAIN() { return 1; }
16277 rm -f conftest.$ac_objext
16278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16279 (eval $ac_compile) 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } &&
16283 { ac_try='test -s conftest.$ac_objext'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; }; then
16291 echo "$as_me: failed program was:" >&5
16292 cat conftest.$ac_ext >&5
16294 rm -f conftest.$ac_objext conftest.$ac_ext
16295 cat >conftest.$ac_ext <<_ACEOF
16296 #line $LINENO "configure"
16297 #include "confdefs.h"
16298 #define _LARGE_FILES 1
16299 #include <sys/types.h>
16300 /* Check that off_t can represent 2**63 - 1 correctly.
16301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16302 since some C++ compilers masquerading as C compilers
16303 incorrectly reject 9223372036854775807. */
16304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16306 && LARGE_OFF_T % 2147483647 == 1)
16308 #ifdef F77_DUMMY_MAIN
16309 # ifdef __cplusplus
16312 int F77_DUMMY_MAIN() { return 1; }
16322 rm -f conftest.$ac_objext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16324 (eval $ac_compile) 2>&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } &&
16328 { ac_try='test -s conftest.$ac_objext'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_sys_large_files=1; break
16336 echo "$as_me: failed program was:" >&5
16337 cat conftest.$ac_ext >&5
16339 rm -f conftest.$ac_objext conftest.$ac_ext
16343 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16344 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16345 if test "$ac_cv_sys_large_files" != no; then
16347 cat >>confdefs.h <<_ACEOF
16348 #define _LARGE_FILES $ac_cv_sys_large_files
16358 # Select semaphore implementation type.
16359 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16361 cat >>confdefs.h <<\_ACEOF
16362 #define USE_NAMED_POSIX_SEMAPHORES 1
16365 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16367 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16369 cat >>confdefs.h <<\_ACEOF
16370 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16373 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16376 cat >>confdefs.h <<\_ACEOF
16377 #define USE_SYSV_SEMAPHORES 1
16380 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16385 # Select shared-memory implementation type.
16387 cat >>confdefs.h <<\_ACEOF
16388 #define USE_SYSV_SHARED_MEMORY 1
16391 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16394 if test "$enable_nls" = yes ; then
16396 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16397 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16398 if test "${ac_cv_search_gettext+set}" = set; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16401 ac_func_search_save_LIBS=$LIBS
16402 ac_cv_search_gettext=no
16403 cat >conftest.$ac_ext <<_ACEOF
16404 #line $LINENO "configure"
16405 #include "confdefs.h"
16407 /* Override any gcc2 internal prototype to avoid an error. */
16411 /* We use char because int might match the return type of a gcc2
16412 builtin and then its argument prototype would still apply. */
16414 #ifdef F77_DUMMY_MAIN
16415 # ifdef __cplusplus
16418 int F77_DUMMY_MAIN() { return 1; }
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16430 (eval $ac_link) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -s conftest$ac_exeext'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 ac_cv_search_gettext="none required"
16442 echo "$as_me: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16446 if test "$ac_cv_search_gettext" = no; then
16447 for ac_lib in intl; do
16448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16449 cat >conftest.$ac_ext <<_ACEOF
16450 #line $LINENO "configure"
16451 #include "confdefs.h"
16453 /* Override any gcc2 internal prototype to avoid an error. */
16457 /* We use char because int might match the return type of a gcc2
16458 builtin and then its argument prototype would still apply. */
16460 #ifdef F77_DUMMY_MAIN
16461 # ifdef __cplusplus
16464 int F77_DUMMY_MAIN() { return 1; }
16474 rm -f conftest.$ac_objext conftest$ac_exeext
16475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16476 (eval $ac_link) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -s conftest$ac_exeext'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16486 ac_cv_search_gettext="-l$ac_lib"
16489 echo "$as_me: failed program was:" >&5
16490 cat conftest.$ac_ext >&5
16492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16495 LIBS=$ac_func_search_save_LIBS
16497 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16498 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16499 if test "$ac_cv_search_gettext" != no; then
16500 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16503 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16504 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16505 { (exit 1); exit 1; }; }
16508 if test "${ac_cv_header_libintl_h+set}" = set; then
16509 echo "$as_me:$LINENO: checking for libintl.h" >&5
16510 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16511 if test "${ac_cv_header_libintl_h+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16514 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16515 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16517 # Is the header compilable?
16518 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16519 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16520 cat >conftest.$ac_ext <<_ACEOF
16521 #line $LINENO "configure"
16522 #include "confdefs.h"
16523 $ac_includes_default
16524 #include <libintl.h>
16526 rm -f conftest.$ac_objext
16527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16528 (eval $ac_compile) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } &&
16532 { ac_try='test -s conftest.$ac_objext'
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538 ac_header_compiler=yes
16540 echo "$as_me: failed program was:" >&5
16541 cat conftest.$ac_ext >&5
16542 ac_header_compiler=no
16544 rm -f conftest.$ac_objext conftest.$ac_ext
16545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16546 echo "${ECHO_T}$ac_header_compiler" >&6
16548 # Is the header present?
16549 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16550 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16551 cat >conftest.$ac_ext <<_ACEOF
16552 #line $LINENO "configure"
16553 #include "confdefs.h"
16554 #include <libintl.h>
16556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16559 egrep -v '^ *\+' conftest.er1 >conftest.err
16561 cat conftest.err >&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } >/dev/null; then
16564 if test -s conftest.err; then
16565 ac_cpp_err=$ac_c_preproc_warn_flag
16572 if test -z "$ac_cpp_err"; then
16573 ac_header_preproc=yes
16575 echo "$as_me: failed program was:" >&5
16576 cat conftest.$ac_ext >&5
16577 ac_header_preproc=no
16579 rm -f conftest.err conftest.$ac_ext
16580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16581 echo "${ECHO_T}$ac_header_preproc" >&6
16583 # So? What about this header?
16584 case $ac_header_compiler:$ac_header_preproc in
16586 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16587 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16588 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16589 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16591 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16592 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16593 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16594 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16595 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16596 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16598 echo "$as_me:$LINENO: checking for libintl.h" >&5
16599 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16600 if test "${ac_cv_header_libintl_h+set}" = set; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 ac_cv_header_libintl_h=$ac_header_preproc
16605 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16606 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16609 if test $ac_cv_header_libintl_h = yes; then
16612 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16613 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16614 { (exit 1); exit 1; }; }
16618 for ac_prog in msgfmt
16620 # Extract the first word of "$ac_prog", so it can be a program name with args.
16621 set dummy $ac_prog; ac_word=$2
16622 echo "$as_me:$LINENO: checking for $ac_word" >&5
16623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16624 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 if test -n "$MSGFMT"; then
16628 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16631 for as_dir in $PATH
16634 test -z "$as_dir" && as_dir=.
16635 for ac_exec_ext in '' $ac_executable_extensions; do
16636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16637 ac_cv_prog_MSGFMT="$ac_prog"
16638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16646 MSGFMT=$ac_cv_prog_MSGFMT
16647 if test -n "$MSGFMT"; then
16648 echo "$as_me:$LINENO: result: $MSGFMT" >&5
16649 echo "${ECHO_T}$MSGFMT" >&6
16651 echo "$as_me:$LINENO: result: no" >&5
16652 echo "${ECHO_T}no" >&6
16655 test -n "$MSGFMT" && break
16658 if test -z "$MSGFMT"; then
16659 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16660 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16661 { (exit 1); exit 1; }; }
16663 for ac_prog in msgmerge
16665 # Extract the first word of "$ac_prog", so it can be a program name with args.
16666 set dummy $ac_prog; ac_word=$2
16667 echo "$as_me:$LINENO: checking for $ac_word" >&5
16668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16669 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16672 if test -n "$MSGMERGE"; then
16673 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16676 for as_dir in $PATH
16679 test -z "$as_dir" && as_dir=.
16680 for ac_exec_ext in '' $ac_executable_extensions; do
16681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16682 ac_cv_prog_MSGMERGE="$ac_prog"
16683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16691 MSGMERGE=$ac_cv_prog_MSGMERGE
16692 if test -n "$MSGMERGE"; then
16693 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16694 echo "${ECHO_T}$MSGMERGE" >&6
16696 echo "$as_me:$LINENO: result: no" >&5
16697 echo "${ECHO_T}no" >&6
16700 test -n "$MSGMERGE" && break
16703 for ac_prog in xgettext
16705 # Extract the first word of "$ac_prog", so it can be a program name with args.
16706 set dummy $ac_prog; ac_word=$2
16707 echo "$as_me:$LINENO: checking for $ac_word" >&5
16708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16709 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 if test -n "$XGETTEXT"; then
16713 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16716 for as_dir in $PATH
16719 test -z "$as_dir" && as_dir=.
16720 for ac_exec_ext in '' $ac_executable_extensions; do
16721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16722 ac_cv_prog_XGETTEXT="$ac_prog"
16723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16731 XGETTEXT=$ac_cv_prog_XGETTEXT
16732 if test -n "$XGETTEXT"; then
16733 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16734 echo "${ECHO_T}$XGETTEXT" >&6
16736 echo "$as_me:$LINENO: result: no" >&5
16737 echo "${ECHO_T}no" >&6
16740 test -n "$XGETTEXT" && break
16744 # Note: share/locale is always the default, independent of $datadir
16745 localedir='${prefix}/share/locale'
16746 if test x"$prefix" = x"NONE"; then
16747 exp_localedir="$ac_default_prefix/share/locale"
16749 exp_localedir="$prefix/share/locale"
16754 cat >>confdefs.h <<_ACEOF
16755 #define LOCALEDIR "$exp_localedir"
16761 # Check for Tcl configuration script tclConfig.sh
16762 if test "$with_tcl" = yes; then
16763 for ac_prog in tclsh tcl
16765 # Extract the first word of "$ac_prog", so it can be a program name with args.
16766 set dummy $ac_prog; ac_word=$2
16767 echo "$as_me:$LINENO: checking for $ac_word" >&5
16768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16769 if test "${ac_cv_path_TCLSH+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16778 for as_dir in $PATH
16781 test -z "$as_dir" && as_dir=.
16782 for ac_exec_ext in '' $ac_executable_extensions; do
16783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16784 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16794 TCLSH=$ac_cv_path_TCLSH
16796 if test -n "$TCLSH"; then
16797 echo "$as_me:$LINENO: result: $TCLSH" >&5
16798 echo "${ECHO_T}$TCLSH" >&6
16800 echo "$as_me:$LINENO: result: no" >&5
16801 echo "${ECHO_T}no" >&6
16804 test -n "$TCLSH" && break
16807 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16808 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16809 # Let user override test
16810 if test -z "$TCL_CONFIG_SH"; then
16811 pgac_test_dirs="$with_tclconfig"
16813 set X $pgac_test_dirs; shift
16814 if test $# -eq 0; then
16815 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16816 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16817 { (exit 1); exit 1; }; }
16818 set X `echo 'puts $auto_path' | $TCLSH`; shift
16822 if test -r "$pgac_dir/tclConfig.sh"; then
16823 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16829 if test -z "$TCL_CONFIG_SH"; then
16830 echo "$as_me:$LINENO: result: no" >&5
16831 echo "${ECHO_T}no" >&6
16832 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16833 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16834 { (exit 1); exit 1; }; }
16836 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16837 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16843 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16844 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16845 eval TCL_LIBS=\"$TCL_LIBS\"
16846 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16847 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16851 # Check for Tk configuration script tkConfig.sh
16852 if test "$with_tk" = yes; then
16853 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16854 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16855 # Let user override test
16856 if test -z "$TK_CONFIG_SH"; then
16857 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16859 set X $pgac_test_dirs; shift
16860 if test $# -eq 0; then
16861 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16862 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16863 { (exit 1); exit 1; }; }
16864 set X `echo 'puts $auto_path' | $TCLSH`; shift
16868 if test -r "$pgac_dir/tkConfig.sh"; then
16869 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16875 if test -z "$TK_CONFIG_SH"; then
16876 echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6
16878 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16879 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16880 { (exit 1); exit 1; }; }
16882 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16883 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16889 eval TK_LIBS=\"$TK_LIBS\"
16890 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16891 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16897 # Check for DocBook and tools
16899 for ac_prog in onsgmls nsgmls
16901 # Extract the first word of "$ac_prog", so it can be a program name with args.
16902 set dummy $ac_prog; ac_word=$2
16903 echo "$as_me:$LINENO: checking for $ac_word" >&5
16904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16905 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 if test -n "$NSGMLS"; then
16909 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16912 for as_dir in $PATH
16915 test -z "$as_dir" && as_dir=.
16916 for ac_exec_ext in '' $ac_executable_extensions; do
16917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16918 ac_cv_prog_NSGMLS="$ac_prog"
16919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16927 NSGMLS=$ac_cv_prog_NSGMLS
16928 if test -n "$NSGMLS"; then
16929 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16930 echo "${ECHO_T}$NSGMLS" >&6
16932 echo "$as_me:$LINENO: result: no" >&5
16933 echo "${ECHO_T}no" >&6
16936 test -n "$NSGMLS" && break
16939 for ac_prog in openjade jade
16941 # Extract the first word of "$ac_prog", so it can be a program name with args.
16942 set dummy $ac_prog; ac_word=$2
16943 echo "$as_me:$LINENO: checking for $ac_word" >&5
16944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16945 if test "${ac_cv_prog_JADE+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 if test -n "$JADE"; then
16949 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16952 for as_dir in $PATH
16955 test -z "$as_dir" && as_dir=.
16956 for ac_exec_ext in '' $ac_executable_extensions; do
16957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16958 ac_cv_prog_JADE="$ac_prog"
16959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16967 JADE=$ac_cv_prog_JADE
16968 if test -n "$JADE"; then
16969 echo "$as_me:$LINENO: result: $JADE" >&5
16970 echo "${ECHO_T}$JADE" >&6
16972 echo "$as_me:$LINENO: result: no" >&5
16973 echo "${ECHO_T}no" >&6
16976 test -n "$JADE" && break
16980 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16981 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16982 if test "${pgac_cv_check_docbook+set}" = set; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16985 cat >conftest.sgml <<EOF
16986 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16988 <title>test</title>
16990 <title>random</title>
16992 <title>testsect</title>
16999 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17000 if test $? -eq 0; then
17001 pgac_cv_check_docbook=yes
17003 pgac_cv_check_docbook=no
17005 rm -f conftest.sgml
17007 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17008 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17010 have_docbook=$pgac_cv_check_docbook
17013 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17014 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17015 if test "${pgac_cv_path_stylesheets+set}" = set; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 if test -n "$DOCBOOKSTYLE"; then
17019 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17021 for pgac_prefix in /usr /usr/local /opt; do
17022 for pgac_infix in share lib; do
17023 for pgac_postfix in \
17024 sgml/stylesheets/nwalsh-modular \
17025 sgml/stylesheets/docbook \
17026 sgml/docbook/dsssl/modular \
17027 sgml/docbook/stylesheet/dsssl/modular \
17028 sgml/docbook/dsssl-stylesheets
17030 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17031 if test -r "$pgac_candidate/html/docbook.dsl" \
17032 && test -r "$pgac_candidate/print/docbook.dsl"
17034 pgac_cv_path_stylesheets=$pgac_candidate
17043 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17045 if test -n "$DOCBOOKSTYLE"; then
17046 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17047 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17049 echo "$as_me:$LINENO: result: no" >&5
17050 echo "${ECHO_T}no" >&6
17052 if test -n "$DOCBOOKSTYLE"; then
17053 for ac_prog in collateindex.pl
17055 # Extract the first word of "$ac_prog", so it can be a program name with args.
17056 set dummy $ac_prog; ac_word=$2
17057 echo "$as_me:$LINENO: checking for $ac_word" >&5
17058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17059 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 case $COLLATEINDEX in
17064 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17068 for as_dir in $DOCBOOKSTYLE/bin $PATH
17071 test -z "$as_dir" && as_dir=.
17072 for ac_exec_ext in '' $ac_executable_extensions; do
17073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17074 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17084 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17086 if test -n "$COLLATEINDEX"; then
17087 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17088 echo "${ECHO_T}$COLLATEINDEX" >&6
17090 echo "$as_me:$LINENO: result: no" >&5
17091 echo "${ECHO_T}no" >&6
17094 test -n "$COLLATEINDEX" && break
17098 for ac_prog in collateindex.pl
17100 # Extract the first word of "$ac_prog", so it can be a program name with args.
17101 set dummy $ac_prog; ac_word=$2
17102 echo "$as_me:$LINENO: checking for $ac_word" >&5
17103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17104 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 case $COLLATEINDEX in
17109 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17113 for as_dir in $PATH
17116 test -z "$as_dir" && as_dir=.
17117 for ac_exec_ext in '' $ac_executable_extensions; do
17118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17119 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17129 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17131 if test -n "$COLLATEINDEX"; then
17132 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17133 echo "${ECHO_T}$COLLATEINDEX" >&6
17135 echo "$as_me:$LINENO: result: no" >&5
17136 echo "${ECHO_T}no" >&6
17139 test -n "$COLLATEINDEX" && break
17143 for ac_prog in sgmlspl
17145 # Extract the first word of "$ac_prog", so it can be a program name with args.
17146 set dummy $ac_prog; ac_word=$2
17147 echo "$as_me:$LINENO: checking for $ac_word" >&5
17148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17149 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17152 if test -n "$SGMLSPL"; then
17153 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17156 for as_dir in $PATH
17159 test -z "$as_dir" && as_dir=.
17160 for ac_exec_ext in '' $ac_executable_extensions; do
17161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17162 ac_cv_prog_SGMLSPL="$ac_prog"
17163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17171 SGMLSPL=$ac_cv_prog_SGMLSPL
17172 if test -n "$SGMLSPL"; then
17173 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17174 echo "${ECHO_T}$SGMLSPL" >&6
17176 echo "$as_me:$LINENO: result: no" >&5
17177 echo "${ECHO_T}no" >&6
17180 test -n "$SGMLSPL" && break
17185 # prepare build tree if outside source tree
17186 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17187 # Note 2: /bin/pwd might be better than shell's built-in at getting
17188 # a symlink-free name.
17189 if test "$no_create" != yes; then
17190 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17195 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17196 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17197 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17198 || { { echo "$as_me:$LINENO: error: failed" >&5
17199 echo "$as_me: error: failed" >&2;}
17200 { (exit 1); exit 1; }; }
17201 echo "$as_me:$LINENO: result: done" >&5
17202 echo "${ECHO_T}done" >&6
17207 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17210 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}"
17213 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17216 cat >confcache <<\_ACEOF
17217 # This file is a shell script that caches the results of configure
17218 # tests run on this system so they can be shared between configure
17219 # scripts and configure runs, see configure's option --config-cache.
17220 # It is not useful on other systems. If it contains results you don't
17221 # want to keep, you may remove or edit it.
17223 # config.status only pays attention to the cache file if you give it
17224 # the --recheck option to rerun configure.
17226 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17228 # following values.
17232 # The following way of writing the cache mishandles newlines in values,
17233 # but we know of no workaround that is simple, portable, and efficient.
17234 # So, don't put newlines in cache variables' values.
17235 # Ultrix sh set writes to stderr and can't be redirected directly,
17236 # and sets the high bit in the cache file unless we assign to the vars.
17239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17241 # `set' does not quote correctly, so add quotes (double-quote
17242 # substitution turns \\\\ into \\, and sed turns \\ into \).
17245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17248 # `set' quotes correctly as required by POSIX, so do not add quotes.
17250 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17259 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17261 if cmp -s $cache_file confcache; then :; else
17262 if test -w $cache_file; then
17263 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17264 cat confcache >$cache_file
17266 echo "not updating unwritable cache $cache_file"
17271 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17272 # Let make expand exec_prefix.
17273 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17275 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17276 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17277 # trailing colons and then remove the whole line if VPATH becomes empty
17278 # (actually we leave an empty line to preserve line numbers).
17279 if test "x$srcdir" = x.; then
17280 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17281 s/:*\$(srcdir):*/:/;
17282 s/:*\${srcdir}:*/:/;
17284 s/^\([^=]*=[ ]*\):*/\1/;
17290 DEFS=-DHAVE_CONFIG_H
17293 : ${CONFIG_STATUS=./config.status}
17294 ac_clean_files_save=$ac_clean_files
17295 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17296 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17297 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17298 cat >$CONFIG_STATUS <<_ACEOF
17300 # Generated by $as_me.
17301 # Run this file to recreate the current configuration.
17302 # Compiler output produced by configure, useful for debugging
17303 # configure, is in config.log if it exists.
17306 SHELL=\${CONFIG_SHELL-$SHELL}
17309 cat >>$CONFIG_STATUS <<\_ACEOF
17311 ## --------------------- ##
17312 ## M4sh Initialization. ##
17313 ## --------------------- ##
17315 # Be Bourne compatible
17316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17319 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17324 # Support unset when possible.
17325 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17331 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17332 { $as_unset LANG || test "${LANG+set}" != set; } ||
17333 { LANG=C; export LANG; }
17334 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17335 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17336 { LC_ALL=C; export LC_ALL; }
17337 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17338 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17339 { LC_TIME=C; export LC_TIME; }
17340 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17341 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17342 { LC_CTYPE=C; export LC_CTYPE; }
17343 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17344 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17345 { LANGUAGE=C; export LANGUAGE; }
17346 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17347 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17348 { LC_COLLATE=C; export LC_COLLATE; }
17349 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17350 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17351 { LC_NUMERIC=C; export LC_NUMERIC; }
17352 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17353 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17354 { LC_MESSAGES=C; export LC_MESSAGES; }
17357 # Name of the executable.
17358 as_me=`(basename "$0") 2>/dev/null ||
17359 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17360 X"$0" : 'X\(//\)$' \| \
17361 X"$0" : 'X\(/\)$' \| \
17362 . : '\(.\)' 2>/dev/null ||
17364 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17365 /^X\/\(\/\/\)$/{ s//\1/; q; }
17366 /^X\/\(\/\).*/{ s//\1/; q; }
17369 # PATH needs CR, and LINENO needs CR and PATH.
17370 # Avoid depending upon Character Ranges.
17371 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17372 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17373 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17374 as_cr_digits='0123456789'
17375 as_cr_alnum=$as_cr_Letters$as_cr_digits
17377 # The user is always right.
17378 if test "${PATH_SEPARATOR+set}" != set; then
17379 echo "#! /bin/sh" >conftest.sh
17380 echo "exit 0" >>conftest.sh
17381 chmod +x conftest.sh
17382 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17391 as_lineno_1=$LINENO
17392 as_lineno_2=$LINENO
17393 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17394 test "x$as_lineno_1" != "x$as_lineno_2" &&
17395 test "x$as_lineno_3" = "x$as_lineno_2" || {
17396 # Find who we are. Look in the path if we contain no path at all
17399 *[\\/]* ) as_myself=$0 ;;
17400 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17401 for as_dir in $PATH
17404 test -z "$as_dir" && as_dir=.
17405 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17410 # We did not find ourselves, most probably we were run as `sh COMMAND'
17411 # in which case we are not to be found in the path.
17412 if test "x$as_myself" = x; then
17415 if test ! -f "$as_myself"; then
17416 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17417 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17418 { (exit 1); exit 1; }; }
17420 case $CONFIG_SHELL in
17422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17423 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17426 test -z "$as_dir" && as_dir=.
17427 for as_base in sh bash ksh sh5; do
17430 if ("$as_dir/$as_base" -c '
17431 as_lineno_1=$LINENO
17432 as_lineno_2=$LINENO
17433 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17434 test "x$as_lineno_1" != "x$as_lineno_2" &&
17435 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17436 CONFIG_SHELL=$as_dir/$as_base
17437 export CONFIG_SHELL
17438 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17446 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17447 # uniformly replaced by the line number. The first 'sed' inserts a
17448 # line-number line before each line; the second 'sed' does the real
17449 # work. The second script uses 'N' to pair each line-number line
17450 # with the numbered line, and appends trailing '-' during
17451 # substitution so that $LINENO is not a special case at line end.
17452 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17453 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17454 sed '=' <$as_myself |
17459 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17462 s,^['$as_cr_digits']*\n,,
17463 ' >$as_me.lineno &&
17464 chmod +x $as_me.lineno ||
17465 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17466 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17467 { (exit 1); exit 1; }; }
17469 # Don't try to exec as it changes $[0], causing all sort of problems
17470 # (the dirname of $[0] is not the place where we might find the
17471 # original and so on. Autoconf is especially sensible to this).
17473 # Exit status is that of the last command.
17478 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17479 *c*,-n*) ECHO_N= ECHO_C='
17481 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17482 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17485 if expr a : '\(a\)' >/dev/null 2>&1; then
17491 rm -f conf$$ conf$$.exe conf$$.file
17493 if ln -s conf$$.file conf$$ 2>/dev/null; then
17494 # We could just check for DJGPP; but this test a) works b) is more generic
17495 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17496 if test -f conf$$.exe; then
17497 # Don't use ln at all; we don't have any links
17502 elif ln conf$$.file conf$$ 2>/dev/null; then
17507 rm -f conf$$ conf$$.exe conf$$.file
17509 as_executable_p="test -f"
17511 # Sed expression to map a string onto a valid CPP name.
17512 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17514 # Sed expression to map a string onto a valid variable name.
17515 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17519 # We need space, tab and new line, in precisely that order.
17525 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17529 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17530 # report actual input values of CONFIG_FILES etc. instead of their
17531 # values after options handling. Logging --version etc. is OK.
17535 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17536 ## Running $as_me. ##
17541 This file was extended by PostgreSQL $as_me 7.4devel, which was
17542 generated by GNU Autoconf 2.53. Invocation command line was
17544 CONFIG_FILES = $CONFIG_FILES
17545 CONFIG_HEADERS = $CONFIG_HEADERS
17546 CONFIG_LINKS = $CONFIG_LINKS
17547 CONFIG_COMMANDS = $CONFIG_COMMANDS
17551 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17555 # Files that config.status was made for.
17556 if test -n "$ac_config_files"; then
17557 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17560 if test -n "$ac_config_headers"; then
17561 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17564 if test -n "$ac_config_links"; then
17565 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17568 if test -n "$ac_config_commands"; then
17569 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17572 cat >>$CONFIG_STATUS <<\_ACEOF
17575 \`$as_me' instantiates files from templates according to the
17576 current configuration.
17578 Usage: $0 [OPTIONS] [FILE]...
17580 -h, --help print this help, then exit
17581 -V, --version print version number, then exit
17582 -d, --debug don't remove temporary files
17583 --recheck update $as_me by reconfiguring in the same conditions
17584 --file=FILE[:TEMPLATE]
17585 instantiate the configuration file FILE
17586 --header=FILE[:TEMPLATE]
17587 instantiate the configuration header FILE
17589 Configuration files:
17592 Configuration headers:
17595 Configuration links:
17598 Report bugs to <bug-autoconf@gnu.org>."
17601 cat >>$CONFIG_STATUS <<_ACEOF
17603 PostgreSQL config.status 7.4devel
17604 configured by $0, generated by GNU Autoconf 2.53,
17605 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17607 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17608 Free Software Foundation, Inc.
17609 This config.status script is free software; the Free Software Foundation
17610 gives unlimited permission to copy, distribute and modify it."
17614 cat >>$CONFIG_STATUS <<\_ACEOF
17615 # If no file are specified by the user, then we need to provide default
17616 # value. By we need to know if files were specified by the user.
17622 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17623 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17625 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17629 *) # This is not an option, so the user has probably given explicit
17631 ac_need_defaults=false;;
17635 # Handling of the options.
17637 cat >>$CONFIG_STATUS <<_ACEOF
17638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17639 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17640 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17642 cat >>$CONFIG_STATUS <<\_ACEOF
17643 --version | --vers* | -V )
17644 echo "$ac_cs_version"; exit 0 ;;
17646 # Conflict between --help and --header
17647 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17648 Try \`$0 --help' for more information." >&5
17649 echo "$as_me: error: ambiguous option: $1
17650 Try \`$0 --help' for more information." >&2;}
17651 { (exit 1); exit 1; }; };;
17652 --help | --hel | -h )
17653 echo "$ac_cs_usage"; exit 0 ;;
17654 --debug | --d* | -d )
17656 --file | --fil | --fi | --f )
17658 CONFIG_FILES="$CONFIG_FILES $1"
17659 ac_need_defaults=false;;
17660 --header | --heade | --head | --hea )
17662 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17663 ac_need_defaults=false;;
17665 # This is an error.
17666 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17667 Try \`$0 --help' for more information." >&5
17668 echo "$as_me: error: unrecognized option: $1
17669 Try \`$0 --help' for more information." >&2;}
17670 { (exit 1); exit 1; }; } ;;
17672 *) ac_config_targets="$ac_config_targets $1" ;;
17684 cat >>$CONFIG_STATUS <<\_ACEOF
17685 for ac_config_target in $ac_config_targets
17687 case "$ac_config_target" in
17688 # Handling of arguments.
17689 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17690 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17691 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17692 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17693 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17694 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17695 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17696 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17697 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17698 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17699 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17700 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17701 { (exit 1); exit 1; }; };;
17705 # If the user did not use the arguments to specify the items to instantiate,
17706 # then the envvar interface is used. Set only those that are not.
17707 # We use the long form for the default assignment because of an extremely
17708 # bizarre bug on SunOS 4.1.3.
17709 if $ac_need_defaults; then
17710 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17711 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17712 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17715 # Create a temporary directory, and hook for its removal unless debugging.
17718 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17719 trap '{ (exit 1); exit 1; }' 1 2 13 15
17722 # Create a (secure) tmp directory for tmp files.
17725 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17726 test -n "$tmp" && test -d "$tmp"
17729 tmp=$TMPDIR/cs$$-$RANDOM
17730 (umask 077 && mkdir $tmp)
17733 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17734 { (exit 1); exit 1; }
17739 cat >>$CONFIG_STATUS <<_ACEOF
17742 # CONFIG_FILES section.
17745 # No need to generate the scripts if there are no CONFIG_FILES.
17746 # This happens for instance when ./config.status config.h
17747 if test -n "\$CONFIG_FILES"; then
17748 # Protect against being on the right side of a sed subst in config.status.
17749 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17750 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17751 s,@SHELL@,$SHELL,;t t
17752 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17753 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17754 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17755 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17756 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17757 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17758 s,@exec_prefix@,$exec_prefix,;t t
17759 s,@prefix@,$prefix,;t t
17760 s,@program_transform_name@,$program_transform_name,;t t
17761 s,@bindir@,$bindir,;t t
17762 s,@sbindir@,$sbindir,;t t
17763 s,@libexecdir@,$libexecdir,;t t
17764 s,@datadir@,$datadir,;t t
17765 s,@sysconfdir@,$sysconfdir,;t t
17766 s,@sharedstatedir@,$sharedstatedir,;t t
17767 s,@localstatedir@,$localstatedir,;t t
17768 s,@libdir@,$libdir,;t t
17769 s,@includedir@,$includedir,;t t
17770 s,@oldincludedir@,$oldincludedir,;t t
17771 s,@infodir@,$infodir,;t t
17772 s,@mandir@,$mandir,;t t
17773 s,@build_alias@,$build_alias,;t t
17774 s,@host_alias@,$host_alias,;t t
17775 s,@target_alias@,$target_alias,;t t
17776 s,@DEFS@,$DEFS,;t t
17777 s,@ECHO_C@,$ECHO_C,;t t
17778 s,@ECHO_N@,$ECHO_N,;t t
17779 s,@ECHO_T@,$ECHO_T,;t t
17780 s,@LIBS@,$LIBS,;t t
17781 s,@docdir@,$docdir,;t t
17782 s,@configure_args@,$configure_args,;t t
17783 s,@build@,$build,;t t
17784 s,@build_cpu@,$build_cpu,;t t
17785 s,@build_vendor@,$build_vendor,;t t
17786 s,@build_os@,$build_os,;t t
17787 s,@host@,$host,;t t
17788 s,@host_cpu@,$host_cpu,;t t
17789 s,@host_vendor@,$host_vendor,;t t
17790 s,@host_os@,$host_os,;t t
17791 s,@PORTNAME@,$PORTNAME,;t t
17793 s,@enable_nls@,$enable_nls,;t t
17794 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17795 s,@default_port@,$default_port,;t t
17796 s,@enable_shared@,$enable_shared,;t t
17797 s,@enable_rpath@,$enable_rpath,;t t
17798 s,@enable_debug@,$enable_debug,;t t
17800 s,@CFLAGS@,$CFLAGS,;t t
17801 s,@LDFLAGS@,$LDFLAGS,;t t
17802 s,@CPPFLAGS@,$CPPFLAGS,;t t
17803 s,@ac_ct_CC@,$ac_ct_CC,;t t
17804 s,@EXEEXT@,$EXEEXT,;t t
17805 s,@OBJEXT@,$OBJEXT,;t t
17808 s,@autodepend@,$autodepend,;t t
17809 s,@INCLUDES@,$INCLUDES,;t t
17810 s,@enable_thread_safeness@,$enable_thread_safeness,;t t
17811 s,@with_tcl@,$with_tcl,;t t
17812 s,@with_tk@,$with_tk,;t t
17813 s,@with_perl@,$with_perl,;t t
17814 s,@with_python@,$with_python,;t t
17816 s,@with_java@,$with_java,;t t
17817 s,@with_krb4@,$with_krb4,;t t
17818 s,@with_krb5@,$with_krb5,;t t
17819 s,@krb_srvtab@,$krb_srvtab,;t t
17820 s,@with_pam@,$with_pam,;t t
17821 s,@with_rendezvous@,$with_rendezvous,;t t
17822 s,@with_openssl@,$with_openssl,;t t
17823 s,@ELF_SYS@,$ELF_SYS,;t t
17825 s,@FLEX@,$FLEX,;t t
17826 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17827 s,@LN_S@,$LN_S,;t t
17829 s,@with_gnu_ld@,$with_gnu_ld,;t t
17830 s,@ld_R_works@,$ld_R_works,;t t
17831 s,@RANLIB@,$RANLIB,;t t
17832 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17833 s,@LORDER@,$LORDER,;t t
17835 s,@STRIP@,$STRIP,;t t
17836 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17837 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17838 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17839 s,@YACC@,$YACC,;t t
17840 s,@YFLAGS@,$YFLAGS,;t t
17841 s,@PERL@,$PERL,;t t
17842 s,@perl_archlibexp@,$perl_archlibexp,;t t
17843 s,@perl_privlibexp@,$perl_privlibexp,;t t
17844 s,@perl_useshrplib@,$perl_useshrplib,;t t
17845 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17846 s,@PYTHON@,$PYTHON,;t t
17847 s,@python_version@,$python_version,;t t
17848 s,@python_prefix@,$python_prefix,;t t
17849 s,@python_execprefix@,$python_execprefix,;t t
17850 s,@python_configdir@,$python_configdir,;t t
17851 s,@python_moduledir@,$python_moduledir,;t t
17852 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17853 s,@python_includespec@,$python_includespec,;t t
17854 s,@python_libspec@,$python_libspec,;t t
17855 s,@LIBOBJS@,$LIBOBJS,;t t
17856 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
17857 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
17858 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17859 s,@MSGFMT@,$MSGFMT,;t t
17860 s,@MSGMERGE@,$MSGMERGE,;t t
17861 s,@XGETTEXT@,$XGETTEXT,;t t
17862 s,@localedir@,$localedir,;t t
17863 s,@TCLSH@,$TCLSH,;t t
17864 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17865 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
17866 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17867 s,@TCL_LIBS@,$TCL_LIBS,;t t
17868 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17869 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17870 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17871 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17872 s,@TK_LIBS@,$TK_LIBS,;t t
17873 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17874 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17875 s,@NSGMLS@,$NSGMLS,;t t
17876 s,@JADE@,$JADE,;t t
17877 s,@have_docbook@,$have_docbook,;t t
17878 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17879 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17880 s,@SGMLSPL@,$SGMLSPL,;t t
17881 s,@vpath_build@,$vpath_build,;t t
17886 cat >>$CONFIG_STATUS <<\_ACEOF
17887 # Split the substitutions into bite-sized pieces for seds with
17888 # small command number limits, like on Digital OSF/1 and HP-UX.
17889 ac_max_sed_lines=48
17890 ac_sed_frag=1 # Number of current file.
17891 ac_beg=1 # First line for current file.
17892 ac_end=$ac_max_sed_lines # Line after last line for current file.
17895 while $ac_more_lines; do
17896 if test $ac_beg -gt 1; then
17897 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17899 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17901 if test ! -s $tmp/subs.frag; then
17902 ac_more_lines=false
17904 # The purpose of the label and of the branching condition is to
17905 # speed up the sed processing (if there are no `@' at all, there
17906 # is no need to browse any of the substitutions).
17907 # These are the two extra sed commands mentioned above.
17909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17910 if test -z "$ac_sed_cmds"; then
17911 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17913 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17915 ac_sed_frag=`expr $ac_sed_frag + 1`
17917 ac_end=`expr $ac_end + $ac_max_sed_lines`
17920 if test -z "$ac_sed_cmds"; then
17923 fi # test -n "$CONFIG_FILES"
17926 cat >>$CONFIG_STATUS <<\_ACEOF
17927 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17928 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17930 - | *:- | *:-:* ) # input from stdin
17932 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17933 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17934 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17936 * ) ac_file_in=$ac_file.in ;;
17939 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17940 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17941 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17942 X"$ac_file" : 'X\(//\)[^/]' \| \
17943 X"$ac_file" : 'X\(//\)$' \| \
17944 X"$ac_file" : 'X\(/\)' \| \
17945 . : '\(.\)' 2>/dev/null ||
17947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17949 /^X\(\/\/\)$/{ s//\1/; q; }
17950 /^X\(\/\).*/{ s//\1/; q; }
17952 { case "$ac_dir" in
17953 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17957 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17958 case $as_mkdir_dir in
17959 # Skip DOS drivespec
17960 ?:) as_incr_dir=$as_mkdir_dir ;;
17962 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17963 test -d "$as_incr_dir" ||
17964 mkdir "$as_incr_dir" ||
17965 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17966 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17967 { (exit 1); exit 1; }; }
17974 if test "$ac_dir" != .; then
17975 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17976 # A "../" for each directory in $ac_dir_suffix.
17977 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17979 ac_dir_suffix= ac_top_builddir=
17983 .) # No --srcdir option. We are building in place.
17985 if test -z "$ac_top_builddir"; then
17988 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17990 [\\/]* | ?:[\\/]* ) # Absolute path.
17991 ac_srcdir=$srcdir$ac_dir_suffix;
17992 ac_top_srcdir=$srcdir ;;
17993 *) # Relative path.
17994 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17995 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17997 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17999 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18000 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18001 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18002 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18006 if test x"$ac_file" != x-; then
18007 { echo "$as_me:$LINENO: creating $ac_file" >&5
18008 echo "$as_me: creating $ac_file" >&6;}
18011 # Let's still pretend it is `configure' which instantiates (i.e., don't
18012 # use $as_me), people would be surprised to read:
18013 # /* config.h. Generated by config.status. */
18014 if test x"$ac_file" = x-; then
18017 configure_input="$ac_file. "
18019 configure_input=$configure_input"Generated from `echo $ac_file_in |
18020 sed 's,.*/,,'` by configure."
18022 # First look for the input files in the build tree, otherwise in the
18024 ac_file_inputs=`IFS=:
18025 for f in $ac_file_in; do
18027 -) echo $tmp/stdin ;;
18029 # Absolute (can't be DOS-style, as IFS=:)
18030 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18031 echo "$as_me: error: cannot find input file: $f" >&2;}
18032 { (exit 1); exit 1; }; }
18035 if test -f "$f"; then
18038 elif test -f "$srcdir/$f"; then
18043 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18044 echo "$as_me: error: cannot find input file: $f" >&2;}
18045 { (exit 1); exit 1; }; }
18048 done` || { (exit 1); exit 1; }
18050 cat >>$CONFIG_STATUS <<_ACEOF
18054 cat >>$CONFIG_STATUS <<\_ACEOF
18056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18057 s,@configure_input@,$configure_input,;t t
18058 s,@srcdir@,$ac_srcdir,;t t
18059 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18060 s,@top_srcdir@,$ac_top_srcdir,;t t
18061 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18062 s,@builddir@,$ac_builddir,;t t
18063 s,@abs_builddir@,$ac_abs_builddir,;t t
18064 s,@top_builddir@,$ac_top_builddir,;t t
18065 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18066 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18068 if test x"$ac_file" != x-; then
18069 mv $tmp/out $ac_file
18077 cat >>$CONFIG_STATUS <<\_ACEOF
18080 # CONFIG_HEADER section.
18083 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18084 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18086 # ac_d sets the value in "#define NAME VALUE" lines.
18087 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18088 ac_dB='[ ].*$,\1#\2'
18091 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18092 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18093 ac_uB='$,\1#\2define\3'
18097 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18098 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18100 - | *:- | *:-:* ) # input from stdin
18102 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18103 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18104 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18105 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18106 * ) ac_file_in=$ac_file.in ;;
18109 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18110 echo "$as_me: creating $ac_file" >&6;}
18112 # First look for the input files in the build tree, otherwise in the
18114 ac_file_inputs=`IFS=:
18115 for f in $ac_file_in; do
18117 -) echo $tmp/stdin ;;
18119 # Absolute (can't be DOS-style, as IFS=:)
18120 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18121 echo "$as_me: error: cannot find input file: $f" >&2;}
18122 { (exit 1); exit 1; }; }
18125 if test -f "$f"; then
18128 elif test -f "$srcdir/$f"; then
18133 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18134 echo "$as_me: error: cannot find input file: $f" >&2;}
18135 { (exit 1); exit 1; }; }
18138 done` || { (exit 1); exit 1; }
18139 # Remove the trailing spaces.
18140 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18144 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18145 # `conftest.undefs', that substitutes the proper values into
18146 # config.h.in to produce config.h. The first handles `#define'
18147 # templates, and the second `#undef' templates.
18148 # And first: Protect against being on the right side of a sed subst in
18149 # config.status. Protect against being in an unquoted here document
18150 # in config.status.
18151 rm -f conftest.defines conftest.undefs
18152 # Using a here document instead of a string reduces the quoting nightmare.
18153 # Putting comments in sed scripts is not portable.
18155 # `end' is used to avoid that the second main sed command (meant for
18156 # 0-ary CPP macros) applies to n-ary macro definitions.
18157 # See the Autoconf documentation for `clear'.
18158 cat >confdef2sed.sed <<\_ACEOF
18163 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18165 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18168 # If some macros were called several times there might be several times
18169 # the same #defines, which is useless. Nevertheless, we may not want to
18170 # sort them, since we want the *last* AC-DEFINE to be honored.
18171 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18172 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18173 rm -f confdef2sed.sed
18175 # This sed command replaces #undef with comments. This is necessary, for
18176 # example, in the case of _POSIX_SOURCE, which is predefined and required
18177 # on some systems where configure will not decide to define it.
18178 cat >>conftest.undefs <<\_ACEOF
18179 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18182 # Break up conftest.defines because some shells have a limit on the size
18183 # of here documents, and old seds have small limits too (100 cmds).
18184 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18185 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18186 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18187 echo ' :' >>$CONFIG_STATUS
18188 rm -f conftest.tail
18189 while grep . conftest.defines >/dev/null
18191 # Write a limited-size here document to $tmp/defines.sed.
18192 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18193 # Speed up: don't consider the non `#define' lines.
18194 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18195 # Work around the forget-to-reset-the-flag bug.
18196 echo 't clr' >>$CONFIG_STATUS
18197 echo ': clr' >>$CONFIG_STATUS
18198 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18200 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18202 mv $tmp/out $tmp/in
18204 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18205 rm -f conftest.defines
18206 mv conftest.tail conftest.defines
18208 rm -f conftest.defines
18209 echo ' fi # egrep' >>$CONFIG_STATUS
18210 echo >>$CONFIG_STATUS
18212 # Break up conftest.undefs because some shells have a limit on the size
18213 # of here documents, and old seds have small limits too (100 cmds).
18214 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18215 rm -f conftest.tail
18216 while grep . conftest.undefs >/dev/null
18218 # Write a limited-size here document to $tmp/undefs.sed.
18219 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18220 # Speed up: don't consider the non `#undef'
18221 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18222 # Work around the forget-to-reset-the-flag bug.
18223 echo 't clr' >>$CONFIG_STATUS
18224 echo ': clr' >>$CONFIG_STATUS
18225 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18227 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18229 mv $tmp/out $tmp/in
18231 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18232 rm -f conftest.undefs
18233 mv conftest.tail conftest.undefs
18235 rm -f conftest.undefs
18237 cat >>$CONFIG_STATUS <<\_ACEOF
18238 # Let's still pretend it is `configure' which instantiates (i.e., don't
18239 # use $as_me), people would be surprised to read:
18240 # /* config.h. Generated by config.status. */
18241 if test x"$ac_file" = x-; then
18242 echo "/* Generated by configure. */" >$tmp/config.h
18244 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18246 cat $tmp/in >>$tmp/config.h
18248 if test x"$ac_file" != x-; then
18249 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18250 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18251 echo "$as_me: $ac_file is unchanged" >&6;}
18253 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18255 X"$ac_file" : 'X\(//\)[^/]' \| \
18256 X"$ac_file" : 'X\(//\)$' \| \
18257 X"$ac_file" : 'X\(/\)' \| \
18258 . : '\(.\)' 2>/dev/null ||
18260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18262 /^X\(\/\/\)$/{ s//\1/; q; }
18263 /^X\(\/\).*/{ s//\1/; q; }
18265 { case "$ac_dir" in
18266 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18270 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18271 case $as_mkdir_dir in
18272 # Skip DOS drivespec
18273 ?:) as_incr_dir=$as_mkdir_dir ;;
18275 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18276 test -d "$as_incr_dir" ||
18277 mkdir "$as_incr_dir" ||
18278 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18279 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18280 { (exit 1); exit 1; }; }
18286 mv $tmp/config.h $ac_file
18290 rm -f $tmp/config.h
18292 # Run the commands associated with the file.
18294 src/include/pg_config.h )
18295 # Update timestamp for pg_config.h (see Makefile.global)
18296 echo >src/include/stamp-h
18301 cat >>$CONFIG_STATUS <<\_ACEOF
18304 # CONFIG_LINKS section.
18307 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18308 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18309 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18311 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18312 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18314 if test ! -r $srcdir/$ac_source; then
18315 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18316 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18317 { (exit 1); exit 1; }; }
18321 # Make relative symlinks.
18322 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18323 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18324 X"$ac_dest" : 'X\(//\)[^/]' \| \
18325 X"$ac_dest" : 'X\(//\)$' \| \
18326 X"$ac_dest" : 'X\(/\)' \| \
18327 . : '\(.\)' 2>/dev/null ||
18329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18331 /^X\(\/\/\)$/{ s//\1/; q; }
18332 /^X\(\/\).*/{ s//\1/; q; }
18334 { case "$ac_dest_dir" in
18335 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18338 as_dummy="$ac_dest_dir"
18339 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18340 case $as_mkdir_dir in
18341 # Skip DOS drivespec
18342 ?:) as_incr_dir=$as_mkdir_dir ;;
18344 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18345 test -d "$as_incr_dir" ||
18346 mkdir "$as_incr_dir" ||
18347 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18348 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18349 { (exit 1); exit 1; }; }
18356 if test "$ac_dest_dir" != .; then
18357 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18358 # A "../" for each directory in $ac_dir_suffix.
18359 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18361 ac_dir_suffix= ac_top_builddir=
18365 .) # No --srcdir option. We are building in place.
18367 if test -z "$ac_top_builddir"; then
18370 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18372 [\\/]* | ?:[\\/]* ) # Absolute path.
18373 ac_srcdir=$srcdir$ac_dir_suffix;
18374 ac_top_srcdir=$srcdir ;;
18375 *) # Relative path.
18376 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18377 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18379 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18381 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18382 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18383 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18384 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18388 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18389 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18392 # Make a symlink if possible; otherwise try a hard link.
18393 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18394 ln $srcdir/$ac_source $ac_dest ||
18395 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18396 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18397 { (exit 1); exit 1; }; }
18401 cat >>$CONFIG_STATUS <<\_ACEOF
18403 { (exit 0); exit 0; }
18405 chmod +x $CONFIG_STATUS
18406 ac_clean_files=$ac_clean_files_save
18409 # configure is writing to config.log, and then calls config.status.
18410 # config.status does its own redirection, appending to config.log.
18411 # Unfortunately, on DOS this fails, as config.log is still kept open
18412 # by configure, so config.status won't be able to write to it; its
18413 # output is simply discarded. So we exec the FD to /dev/null,
18414 # effectively closing config.log, so it can be properly (re)opened and
18415 # appended to by config.status. When coming back to configure, we
18416 # need to make the FD available again.
18417 if test "$no_create" != yes; then
18420 $SHELL $CONFIG_STATUS || ac_cs_success=false
18422 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18423 # would make configure fail if this is the last instruction.
18424 $ac_cs_success || { (exit 1); exit 1; }