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-nls[=LANGUAGES] enable Native Language Support
842 --disable-shared do not build shared libraries
843 --disable-rpath do not embed shared library search path in executables
844 --enable-debug build with debugging symbols (-g)
845 --enable-depend turn on automatic dependency tracking
846 --enable-cassert enable assertion checks (for debugging)
847 --disable-largefile omit support for large files
850 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
851 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
853 --with-includes=DIRS look for additional header files in DIRS
854 --with-libraries=DIRS look for additional libraries in DIRS
855 --with-libs=DIRS alternative spelling of --with-libraries
856 --with-pgport=PORTNUM change default port number 5432
857 --enable-thread-safety allow libpq and ecpg to be thread-safe
858 --with-tcl build Tcl and Tk interfaces
859 --without-tk do not build Tk interfaces if Tcl is enabled
860 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
861 --with-tkconfig=DIR tkConfig.sh is in DIR
862 --with-perl build Perl modules (PL/Perl)
863 --with-python build Python interface module
864 --with-java build JDBC interface and Java tools
865 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
866 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
867 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
868 --with-pam build with PAM support
869 --with-rendezvous build with Rendezvous support
870 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
871 --without-readline do not use Readline
872 --without-zlib do not use Zlib
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 location of DocBook stylesheets
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <pgsql-bugs@postgresql.org>.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 ac_dir_suffix= ac_top_builddir=
909 .) # No --srcdir option. We are building in place.
911 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
952 PostgreSQL configure 7.4devel
953 generated by GNU Autoconf 2.53
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
960 Copyright 2002 PostgreSQL Global Development Group
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by PostgreSQL $as_me 7.4devel, which was
970 generated by GNU Autoconf 2.53. Invocation command line was
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n ) continue ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 case " $ac_configure_args " in
1037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1038 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1059 # The following way of writing the cache mishandles newlines in values,
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 if test -s confdefs.h; then
1082 sed "/^$/d" confdefs.h
1085 test "$ac_signal" != 0 &&
1086 echo "$as_me: caught signal $ac_signal"
1087 echo "$as_me: exit $exit_status"
1089 rm -f core core.* *.core &&
1090 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093 for ac_signal in 1 2 13 15; do
1094 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 # Predefined preprocessor variables.
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133 if test "x$prefix" != xNONE; then
1134 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139 for ac_site_file in $CONFIG_SITE; do
1140 if test -r "$ac_site_file"; then
1141 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143 sed 's/^/| /' "$ac_site_file" >&5
1148 if test -r "$cache_file"; then
1149 # Some versions of bash will fail to source /dev/null (special
1150 # files actually), so we avoid doing that.
1151 if test -f "$cache_file"; then
1152 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1155 [\\/]* | ?:[\\/]* ) . $cache_file;;
1156 *) . ./$cache_file;;
1160 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1165 # Check that the precious variables saved in the cache have kept the same
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171 eval ac_new_set=\$ac_env_${ac_var}_set
1172 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173 eval ac_new_val="\$ac_env_${ac_var}_value"
1174 case $ac_old_set,$ac_new_set in
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1185 if test "x$ac_old_val" != "x$ac_new_val"; then
1186 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189 echo "$as_me: former value: $ac_old_val" >&2;}
1190 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191 echo "$as_me: current value: $ac_new_val" >&2;}
1192 ac_cache_corrupted=:
1195 # Pass precious variables to config.status.
1196 if test "$ac_new_set" = set; then
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 *) ac_arg=$ac_var=$ac_new_val ;;
1202 case " $ac_configure_args " in
1203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208 if $ac_cache_corrupted; then
1209 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213 { (exit 1); exit 1; }; }
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1255 for ac_dir in config $srcdir/config; do
1256 if test -f $ac_dir/install-sh; then
1258 ac_install_sh="$ac_aux_dir/install-sh -c"
1260 elif test -f $ac_dir/install.sh; then
1262 ac_install_sh="$ac_aux_dir/install.sh -c"
1264 elif test -f $ac_dir/shtool; then
1266 ac_install_sh="$ac_aux_dir/shtool install -c"
1270 if test -z "$ac_aux_dir"; then
1271 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273 { (exit 1); exit 1; }; }
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1280 configure_args=$ac_configure_args
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293 { (exit 1); exit 1; }; }
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302 ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306 { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310 { (exit 1); exit 1; }; }
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328 ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332 { (exit 1); exit 1; }; }
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353 withval="$with_template"
1357 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359 { (exit 1); exit 1; }; }
1362 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364 { (exit 1); exit 1; }; }
1369 list) echo; ls "$srcdir/src/template"; exit;;
1370 *) if test -f "$srcdir/src/template/$with_template" ; then
1373 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375 { (exit 1); exit 1; }; }
1384 # --with-template not given
1387 aix*) template=aix ;;
1388 beos*) template=beos ;;
1389 bsdi*) template=bsdi ;;
1390 cygwin*) template=cygwin ;;
1391 darwin*) template=darwin ;;
1392 dgux*) template=dgux ;;
1393 freebsd*) template=freebsd ;;
1394 hpux*) template=hpux ;;
1395 irix*) template=irix5 ;;
1396 linux*) template=linux ;;
1397 mingw*) template=win32 ;;
1398 netbsd*) template=netbsd ;;
1399 nextstep*) template=nextstep ;;
1400 openbsd*) template=openbsd ;;
1401 osf*) template=osf ;;
1402 qnx*) template=qnx4 ;;
1403 sco*) template=sco ;;
1404 solaris*) template=solaris ;;
1405 sunos*) template=sunos4 ;;
1407 case $host_vendor in
1408 univel) template=univel ;;
1410 sysv4*) template=svr4 ;;
1411 sysv5*) template=unixware ;;
1412 ultrix*) template=ultrix4 ;;
1415 if test x"$template" = x"" ; then
1416 { { echo "$as_me:$LINENO: error:
1417 *******************************************************************
1418 PostgreSQL has apparently not been ported to your platform yet.
1419 To try a manual configuration, look into the src/template directory
1420 for a similar platform and use the '--with-template=' option.
1422 Please also contact <pgsql-ports@postgresql.org> to see about
1423 rectifying this. Include the above 'checking host system type...'
1425 *******************************************************************
1427 echo "$as_me: error:
1428 *******************************************************************
1429 PostgreSQL has apparently not been ported to your platform yet.
1430 To try a manual configuration, look into the src/template directory
1431 for a similar platform and use the '--with-template=' option.
1433 Please also contact <pgsql-ports@postgresql.org> to see about
1434 rectifying this. Include the above 'checking host system type...'
1436 *******************************************************************
1438 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $template" >&5
1446 echo "${ECHO_T}$template" >&6
1451 # Pick right test-and-set (TAS) code. Most platforms have inline
1452 # assembler code in src/include/storage/s_lock.h, so we just use
1453 # a dummy file here.
1455 hppa*-*-hpux*) need_tas=yes; tas_file=hpux_hppa.s ;;
1456 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1457 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1458 *) need_tas=no; tas_file=dummy.s ;;
1460 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1463 if test "$need_tas" = yes ; then
1471 ## Command line options
1476 # Add non-standard directories to the include path
1481 # Check whether --with-includes or --without-includes was given.
1482 if test "${with_includes+set}" = set; then
1483 withval="$with_includes"
1487 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1488 echo "$as_me: error: argument required for --with-includes option" >&2;}
1489 { (exit 1); exit 1; }; }
1492 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1493 echo "$as_me: error: argument required for --with-includes option" >&2;}
1494 { (exit 1); exit 1; }; }
1506 # Add non-standard directories to the library search path
1511 # Check whether --with-libraries or --without-libraries was given.
1512 if test "${with_libraries+set}" = set; then
1513 withval="$with_libraries"
1517 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1518 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1519 { (exit 1); exit 1; }; }
1522 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1523 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1524 { (exit 1); exit 1; }; }
1527 LIBRARY_DIRS=$withval
1537 # Check whether --with-libs or --without-libs was given.
1538 if test "${with_libs+set}" = set; then
1539 withval="$with_libs"
1543 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1544 echo "$as_me: error: argument required for --with-libs option" >&2;}
1545 { (exit 1); exit 1; }; }
1548 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1549 echo "$as_me: error: argument required for --with-libs option" >&2;}
1550 { (exit 1); exit 1; }; }
1553 LIBRARY_DIRS=$withval
1562 # 64-bit integer date/time storage (--enable-integer-datetimes)
1564 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1565 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1568 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1569 if test "${enable_integer_datetimes+set}" = set; then
1570 enableval="$enable_integer_datetimes"
1575 cat >>confdefs.h <<\_ACEOF
1576 #define USE_INTEGER_DATETIMES 1
1584 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1585 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1586 { (exit 1); exit 1; }; }
1591 enable_integer_datetimes=no
1595 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1596 echo "${ECHO_T}$enable_integer_datetimes" >&6
1602 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1603 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1606 # Check whether --enable-nls or --disable-nls was given.
1607 if test "${enable_nls+set}" = set; then
1608 enableval="$enable_nls"
1619 WANTED_LANGUAGES=$enableval
1628 if test "$enable_nls" = yes; then
1630 cat >>confdefs.h <<\_ACEOF
1631 #define ENABLE_NLS 1
1636 echo "$as_me:$LINENO: result: $enable_nls" >&5
1637 echo "${ECHO_T}$enable_nls" >&6
1642 # Default port number (--with-pgport), default 5432
1644 echo "$as_me:$LINENO: checking for default port number" >&5
1645 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1649 # Check whether --with-pgport or --without-pgport was given.
1650 if test "${with_pgport+set}" = set; then
1651 withval="$with_pgport"
1655 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1656 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1657 { (exit 1); exit 1; }; }
1660 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1661 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1662 { (exit 1); exit 1; }; }
1665 default_port=$withval
1673 echo "$as_me:$LINENO: result: $default_port" >&5
1674 echo "${ECHO_T}$default_port" >&6
1675 # Need both of these because some places want an integer and some a string
1677 cat >>confdefs.h <<_ACEOF
1678 #define DEF_PGPORT ${default_port}
1682 cat >>confdefs.h <<_ACEOF
1683 #define DEF_PGPORT_STR "${default_port}"
1689 # Option to disable shared libraries
1693 # Check whether --enable-shared or --disable-shared was given.
1694 if test "${enable_shared+set}" = set; then
1695 enableval="$enable_shared"
1705 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1706 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1707 { (exit 1); exit 1; }; }
1719 # '-rpath'-like feature can be disabled
1723 # Check whether --enable-rpath or --disable-rpath was given.
1724 if test "${enable_rpath+set}" = set; then
1725 enableval="$enable_rpath"
1735 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1736 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1737 { (exit 1); exit 1; }; }
1750 # --enable-debug adds -g to compiler flags
1754 # Check whether --enable-debug or --disable-debug was given.
1755 if test "${enable_debug+set}" = set; then
1756 enableval="$enable_debug"
1766 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1767 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1768 { (exit 1); exit 1; }; }
1783 # For historical reasons you can also use --with-CC to specify the C compiler
1784 # to use, although the standard way to do this is to set the CC environment
1789 # Check whether --with-CC or --without-CC was given.
1790 if test "${with_CC+set}" = set; then
1795 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1796 echo "$as_me: error: argument required for --with-CC option" >&2;}
1797 { (exit 1); exit 1; }; }
1800 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1801 echo "$as_me: error: argument required for --with-CC option" >&2;}
1802 { (exit 1); exit 1; }; }
1813 aix) pgac_cc_list="gcc xlc";;
1814 irix) pgac_cc_list="cc";; # no gcc
1815 *) pgac_cc_list="gcc cc";;
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 if test -n "$ac_tool_prefix"; then
1824 for ac_prog in $pgac_cc_list
1826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1861 test -n "$CC" && break
1864 if test -z "$CC"; then
1866 for ac_prog in $pgac_cc_list
1868 # Extract the first word of "$ac_prog", so it can be a program name with args.
1869 set dummy $ac_prog; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$ac_ct_CC"; then
1876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 ac_cv_prog_ac_ct_CC="$ac_prog"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1903 test -n "$ac_ct_CC" && break
1910 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1911 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1912 { (exit 1); exit 1; }; }
1914 # Provide some information about the compiler.
1915 echo "$as_me:$LINENO:" \
1916 "checking for C compiler version" >&5
1917 ac_compiler=`set X $ac_compile; echo $2`
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1919 (eval $ac_compiler --version </dev/null >&5) 2>&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1924 (eval $ac_compiler -v </dev/null >&5) 2>&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1929 (eval $ac_compiler -V </dev/null >&5) 2>&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1934 cat >conftest.$ac_ext <<_ACEOF
1935 #line $LINENO "configure"
1936 #include "confdefs.h"
1938 #ifdef F77_DUMMY_MAIN
1942 int F77_DUMMY_MAIN() { return 1; }
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1957 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1958 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1972 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1973 ls a.out conftest 2>/dev/null;
1974 ls a.* conftest.* 2>/dev/null`; do
1976 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1977 a.out ) # We found the default executable, but exeext='' is most
1980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1991 echo "$as_me: error: C compiler cannot create executables" >&2;}
1992 { (exit 77); exit 77; }; }
1995 ac_exeext=$ac_cv_exeext
1996 echo "$as_me:$LINENO: result: $ac_file" >&5
1997 echo "${ECHO_T}$ac_file" >&6
1999 # Check the compiler produces executables we can run. If not, either
2000 # the compiler is broken, or we cross compile.
2001 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2002 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2003 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2004 # If not cross compiling, check that we can run a simple program.
2005 if test "$cross_compiling" != yes; then
2006 if { ac_try='./$ac_file'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2014 if test "$cross_compiling" = maybe; then
2017 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2018 If you meant to cross compile, use \`--host'." >&5
2019 echo "$as_me: error: cannot run C compiled programs.
2020 If you meant to cross compile, use \`--host'." >&2;}
2021 { (exit 1); exit 1; }; }
2025 echo "$as_me:$LINENO: result: yes" >&5
2026 echo "${ECHO_T}yes" >&6
2028 rm -f a.out a.exe conftest$ac_cv_exeext
2029 ac_clean_files=$ac_clean_files_save
2030 # Check the compiler produces executables we can run. If not, either
2031 # the compiler is broken, or we cross compile.
2032 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2033 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2034 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2035 echo "${ECHO_T}$cross_compiling" >&6
2037 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2038 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2040 (eval $ac_link) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; then
2044 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2045 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2046 # work properly (i.e., refer to `conftest.exe'), while it won't with
2048 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2050 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2051 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2059 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2060 { (exit 1); exit 1; }; }
2063 rm -f conftest$ac_cv_exeext
2064 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065 echo "${ECHO_T}$ac_cv_exeext" >&6
2067 rm -f conftest.$ac_ext
2068 EXEEXT=$ac_cv_exeext
2070 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072 if test "${ac_cv_objext+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 cat >conftest.$ac_ext <<_ACEOF
2076 #line $LINENO "configure"
2077 #include "confdefs.h"
2079 #ifdef F77_DUMMY_MAIN
2083 int F77_DUMMY_MAIN() { return 1; }
2093 rm -f conftest.o conftest.obj
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; then
2099 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2102 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2107 echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2110 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2111 { (exit 1); exit 1; }; }
2114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2116 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117 echo "${ECHO_T}$ac_cv_objext" >&6
2118 OBJEXT=$ac_cv_objext
2120 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2129 #ifdef F77_DUMMY_MAIN
2133 int F77_DUMMY_MAIN() { return 1; }
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2160 echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2164 rm -f conftest.$ac_objext conftest.$ac_ext
2165 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2168 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2169 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2170 GCC=`test $ac_compiler_gnu = yes && echo yes`
2171 ac_test_CFLAGS=${CFLAGS+set}
2172 ac_save_CFLAGS=$CFLAGS
2174 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2175 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_g+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 #include "confdefs.h"
2183 #ifdef F77_DUMMY_MAIN
2187 int F77_DUMMY_MAIN() { return 1; }
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -s conftest.$ac_objext'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2211 echo "$as_me: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2215 rm -f conftest.$ac_objext conftest.$ac_ext
2217 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2218 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2219 if test "$ac_test_CFLAGS" = set; then
2220 CFLAGS=$ac_save_CFLAGS
2221 elif test $ac_cv_prog_cc_g = yes; then
2222 if test "$GCC" = yes; then
2228 if test "$GCC" = yes; then
2234 # Some people use a C++ compiler to compile C. Since we use `exit',
2235 # in C++ we need to declare it. In case someone uses the same compiler
2236 # for both compiling C and C++ we need to have the C++ compiler decide
2237 # the declaration of exit, since it's the most demanding environment.
2238 cat >conftest.$ac_ext <<_ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2255 for ac_declaration in \
2257 '#include <stdlib.h>' \
2258 'extern "C" void std::exit (int) throw (); using std::exit;' \
2259 'extern "C" void std::exit (int); using std::exit;' \
2260 'extern "C" void exit (int) throw ();' \
2261 'extern "C" void exit (int);' \
2264 cat >conftest.$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2266 #include "confdefs.h"
2269 #ifdef F77_DUMMY_MAIN
2273 int F77_DUMMY_MAIN() { return 1; }
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2297 echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2301 rm -f conftest.$ac_objext conftest.$ac_ext
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2306 #ifdef F77_DUMMY_MAIN
2310 int F77_DUMMY_MAIN() { return 1; }
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2334 echo "$as_me: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2337 rm -f conftest.$ac_objext conftest.$ac_ext
2340 if test -n "$ac_declaration"; then
2341 echo '#ifdef __cplusplus' >>confdefs.h
2342 echo $ac_declaration >>confdefs.h
2343 echo '#endif' >>confdefs.h
2347 echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 rm -f conftest.$ac_objext conftest.$ac_ext
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 . "$srcdir/src/template/$template" || exit
2360 if test "$ac_env_CFLAGS_set" = set; then
2361 CFLAGS=$ac_env_CFLAGS_value
2363 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2366 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2367 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2369 # Check if the compiler still works with the template settings
2370 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2371 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2373 cat >conftest.$ac_ext <<_ACEOF
2374 #line $LINENO "configure"
2375 #include "confdefs.h"
2377 #ifdef F77_DUMMY_MAIN
2381 int F77_DUMMY_MAIN() { return 1; }
2391 rm -f conftest.$ac_objext conftest$ac_exeext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393 (eval $ac_link) 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -s conftest$ac_exeext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 echo "$as_me:$LINENO: result: yes" >&5
2404 echo "${ECHO_T}yes" >&6
2406 echo "$as_me: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2408 echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2410 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2411 echo "$as_me: error: cannot proceed" >&2;}
2412 { (exit 1); exit 1; }; }
2414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2416 # Defend against gcc -ffastmath
2417 if test "$GCC" = yes; then
2418 cat >conftest.$ac_ext <<_ACEOF
2419 #line $LINENO "configure"
2420 #include "confdefs.h"
2422 #ifdef F77_DUMMY_MAIN
2426 int F77_DUMMY_MAIN() { return 1; }
2431 #ifdef __FAST_MATH__
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2452 echo "$as_me: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2454 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2455 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2456 { (exit 1); exit 1; }; }
2458 rm -f conftest.$ac_objext conftest.$ac_ext
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2467 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2468 # On Suns, sometimes $CPP names a directory.
2469 if test -n "$CPP" && test -d "$CPP"; then
2472 if test -z "$CPP"; then
2473 if test "${ac_cv_prog_CPP+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 # Double quotes because CPP needs to be expanded
2477 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2480 for ac_c_preproc_warn_flag in '' yes
2482 # Use a header file that comes with gcc, so configuring glibc
2483 # with a fresh cross-compiler works.
2484 # On the NeXT, cc -E runs the code through the compiler's parser,
2485 # not just through cpp. "Syntax error" is here to catch this case.
2486 cat >conftest.$ac_ext <<_ACEOF
2487 #line $LINENO "configure"
2488 #include "confdefs.h"
2492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2495 egrep -v '^ *\+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2508 if test -z "$ac_cpp_err"; then
2511 echo "$as_me: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2513 # Broken: fails on valid input.
2516 rm -f conftest.err conftest.$ac_ext
2518 # OK, works on sane cases. Now check whether non-existent headers
2519 # can be detected and how.
2520 cat >conftest.$ac_ext <<_ACEOF
2521 #line $LINENO "configure"
2522 #include "confdefs.h"
2523 #include <ac_nonexistent.h>
2525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 egrep -v '^ *\+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2541 if test -z "$ac_cpp_err"; then
2542 # Broken: success on invalid input.
2545 echo "$as_me: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 # Passes both tests.
2551 rm -f conftest.err conftest.$ac_ext
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2568 echo "$as_me:$LINENO: result: $CPP" >&5
2569 echo "${ECHO_T}$CPP" >&6
2571 for ac_c_preproc_warn_flag in '' yes
2573 # Use a header file that comes with gcc, so configuring glibc
2574 # with a fresh cross-compiler works.
2575 # On the NeXT, cc -E runs the code through the compiler's parser,
2576 # not just through cpp. "Syntax error" is here to catch this case.
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line $LINENO "configure"
2579 #include "confdefs.h"
2583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2586 egrep -v '^ *\+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } >/dev/null; then
2591 if test -s conftest.err; then
2592 ac_cpp_err=$ac_c_preproc_warn_flag
2599 if test -z "$ac_cpp_err"; then
2602 echo "$as_me: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2604 # Broken: fails on valid input.
2607 rm -f conftest.err conftest.$ac_ext
2609 # OK, works on sane cases. Now check whether non-existent headers
2610 # can be detected and how.
2611 cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2613 #include "confdefs.h"
2614 #include <ac_nonexistent.h>
2616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2619 egrep -v '^ *\+' conftest.er1 >conftest.err
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } >/dev/null; then
2624 if test -s conftest.err; then
2625 ac_cpp_err=$ac_c_preproc_warn_flag
2632 if test -z "$ac_cpp_err"; then
2633 # Broken: success on invalid input.
2636 echo "$as_me: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2638 # Passes both tests.
2642 rm -f conftest.err conftest.$ac_ext
2645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2646 rm -f conftest.err conftest.$ac_ext
2647 if $ac_preproc_ok; then
2650 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2651 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2652 { (exit 1); exit 1; }; }
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663 # Create compiler version string
2664 if test x"$GCC" = x"yes" ; then
2665 cc_string="GCC `${CC} --version | sed q`"
2670 cat >>confdefs.h <<_ACEOF
2671 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2677 # Automatic dependency tracking
2681 # Check whether --enable-depend or --disable-depend was given.
2682 if test "${enable_depend+set}" = set; then
2683 enableval="$enable_depend"
2693 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2694 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2695 { (exit 1); exit 1; }; }
2708 # Enable assert checks
2712 # Check whether --enable-cassert or --disable-cassert was given.
2713 if test "${enable_cassert+set}" = set; then
2714 enableval="$enable_cassert"
2719 cat >>confdefs.h <<\_ACEOF
2720 #define USE_ASSERT_CHECKING 1
2728 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2729 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2730 { (exit 1); exit 1; }; }
2742 # Include directories
2746 # SRCH_INC comes from the template file
2747 for dir in $with_includes $SRCH_INC; do
2748 if test -d "$dir"; then
2749 INCLUDES="$INCLUDES -I$dir"
2751 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2752 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2760 # Library directories
2764 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2765 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2766 if test -d "$dir"; then
2767 LIBDIRS="$LIBDIRS -L$dir"
2769 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2770 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2776 # Enable libpq to be thread-safety
2778 echo "$as_me:$LINENO: checking allow thread-safe libpq and ecpg" >&5
2779 echo $ECHO_N "checking allow thread-safe libpq and ecpg... $ECHO_C" >&6
2783 # Check whether --with-threads or --without-threads was given.
2784 if test "${with_threads+set}" = set; then
2785 withval="$with_threads"
2790 cat >>confdefs.h <<\_ACEOF
2791 #define USE_THREADS 1
2799 { { echo "$as_me:$LINENO: error: no argument expected for --with-threads option" >&5
2800 echo "$as_me: error: no argument expected for --with-threads option" >&2;}
2801 { (exit 1); exit 1; }; }
2811 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2812 echo "${ECHO_T}$enable_thread_safety" >&6
2818 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2819 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2823 # Check whether --with-tcl or --without-tcl was given.
2824 if test "${with_tcl+set}" = set; then
2835 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2836 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2837 { (exit 1); exit 1; }; }
2846 echo "$as_me:$LINENO: result: $with_tcl" >&5
2847 echo "${ECHO_T}$with_tcl" >&6
2850 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2851 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2852 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2853 if test "$with_tcl" = yes; then
2857 # Check whether --with-tk or --without-tk was given.
2858 if test "${with_tk+set}" = set; then
2869 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2870 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2871 { (exit 1); exit 1; }; }
2883 echo "$as_me:$LINENO: result: $with_tk" >&5
2884 echo "${ECHO_T}$with_tk" >&6
2888 # We see if the path to the Tcl/Tk configuration scripts is specified.
2889 # This will override the use of tclsh to find the paths to search.
2894 # Check whether --with-tclconfig or --without-tclconfig was given.
2895 if test "${with_tclconfig+set}" = set; then
2896 withval="$with_tclconfig"
2900 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2901 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2902 { (exit 1); exit 1; }; }
2905 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2906 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2907 { (exit 1); exit 1; }; }
2917 # We see if the path to the Tk configuration scripts is specified.
2918 # This will override the use of tclsh to find the paths to search.
2923 # Check whether --with-tkconfig or --without-tkconfig was given.
2924 if test "${with_tkconfig+set}" = set; then
2925 withval="$with_tkconfig"
2929 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2930 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2931 { (exit 1); exit 1; }; }
2934 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2935 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2936 { (exit 1); exit 1; }; }
2947 # Optionally build Perl modules (PL/Perl)
2949 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2950 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2954 # Check whether --with-perl or --without-perl was given.
2955 if test "${with_perl+set}" = set; then
2956 withval="$with_perl"
2966 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2967 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2968 { (exit 1); exit 1; }; }
2977 echo "$as_me:$LINENO: result: $with_perl" >&5
2978 echo "${ECHO_T}$with_perl" >&6
2982 # Optionally build Python interface module
2984 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2985 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2989 # Check whether --with-python or --without-python was given.
2990 if test "${with_python+set}" = set; then
2991 withval="$with_python"
3001 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3002 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3003 { (exit 1); exit 1; }; }
3012 echo "$as_me:$LINENO: result: $with_python" >&5
3013 echo "${ECHO_T}$with_python" >&6
3017 # Optionally build the Java/JDBC tools
3019 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3020 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3024 # Check whether --with-java or --without-java was given.
3025 if test "${with_java+set}" = set; then
3026 withval="$with_java"
3030 echo "$as_me:$LINENO: result: yes" >&5
3031 echo "${ECHO_T}yes" >&6
3033 for ac_prog in jakarta-ant ant ant.sh ant.bat
3035 # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3039 if test "${ac_cv_path_ANT+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 if test -n "$ANT"; then
3067 echo "$as_me:$LINENO: result: $ANT" >&5
3068 echo "${ECHO_T}$ANT" >&6
3070 echo "$as_me:$LINENO: result: no" >&5
3071 echo "${ECHO_T}no" >&6
3074 test -n "$ANT" && break
3078 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3079 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3080 if test "${pgac_cv_prog_ant_works+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 cat > conftest.java << EOF
3085 public class conftest {
3086 int testmethod(int a, int b) {
3092 cat > conftest.xml << EOF
3093 <project name="conftest" default="conftest">
3094 <target name="conftest">
3095 <javac srcdir="." includes="conftest.java">
3101 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3102 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3103 (eval $pgac_cmd) 2>&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }
3108 if test $? = 0 && test -f ./conftest.class ; then
3109 pgac_cv_prog_ant_works=yes
3111 echo "configure: failed java program was:" >&5
3112 cat conftest.java >&5
3113 echo "configure: failed build file was:" >&5
3114 cat conftest.xml >&5
3115 pgac_cv_prog_ant_works=no
3118 rm -f conftest* core core.* *.core
3121 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3122 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3124 if test "$pgac_cv_prog_ant_works" != yes; then
3125 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3126 echo "$as_me: error: ant does not work" >&2;}
3127 { (exit 1); exit 1; }; }
3131 if test -z "$ANT"; then
3132 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3133 If you have Ant already installed, see config.log for details on the failure." >&5
3134 echo "$as_me: error: Ant is required to build Java components
3135 If you have Ant already installed, see config.log for details on the failure." >&2;}
3136 { (exit 1); exit 1; }; }
3138 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3139 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3140 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3141 { (exit 1); exit 1; }; }
3145 echo "$as_me:$LINENO: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3149 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3150 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3151 { (exit 1); exit 1; }; }
3157 echo "$as_me:$LINENO: result: no" >&5
3158 echo "${ECHO_T}no" >&6
3167 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3168 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3172 # Check whether --with-krb4 or --without-krb4 was given.
3173 if test "${with_krb4+set}" = set; then
3174 withval="$with_krb4"
3178 krb4_prefix=/usr/athena
3185 krb4_prefix=$withval
3194 if test "$with_krb4" = yes; then
3196 echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3199 cat >>confdefs.h <<\_ACEOF
3204 if test -d "$krb4_prefix/include"; then
3205 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3207 if test -d "$krb4_prefix/lib"; then
3208 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3211 krb_srvtab="/etc/srvtab"
3214 echo "$as_me:$LINENO: result: no" >&5
3215 echo "${ECHO_T}no" >&6
3225 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3226 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3230 # Check whether --with-krb5 or --without-krb5 was given.
3231 if test "${with_krb5+set}" = set; then
3232 withval="$with_krb5"
3236 krb5_prefix=/usr/athena
3243 krb5_prefix=$withval
3252 if test "$with_krb5" = yes; then
3254 echo "$as_me:$LINENO: result: yes" >&5
3255 echo "${ECHO_T}yes" >&6
3257 cat >>confdefs.h <<\_ACEOF
3262 if test -d "$krb5_prefix/include"; then
3263 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3265 if test -d "$krb5_prefix/lib"; then
3266 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3269 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3272 echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6
3280 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3281 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3282 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3283 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3284 { (exit 1); exit 1; }; }
3291 # Kerberos configuration parameters
3296 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3297 if test "${with_krb_srvnam+set}" = set; then
3298 withval="$with_krb_srvnam"
3302 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3303 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3304 { (exit 1); exit 1; }; }
3307 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3308 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3309 { (exit 1); exit 1; }; }
3317 with_krb_srvnam="postgres"
3321 cat >>confdefs.h <<_ACEOF
3322 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3330 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3331 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3335 # Check whether --with-pam or --without-pam was given.
3336 if test "${with_pam+set}" = set; then
3342 cat >>confdefs.h <<\_ACEOF
3351 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3352 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3353 { (exit 1); exit 1; }; }
3362 echo "$as_me:$LINENO: result: $with_pam" >&5
3363 echo "${ECHO_T}$with_pam" >&6
3370 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3371 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3375 # Check whether --with-rendezvous or --without-rendezvous was given.
3376 if test "${with_rendezvous+set}" = set; then
3377 withval="$with_rendezvous"
3382 cat >>confdefs.h <<\_ACEOF
3383 #define USE_RENDEZVOUS 1
3391 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3392 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3393 { (exit 1); exit 1; }; }
3402 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3403 echo "${ECHO_T}$with_rendezvous" >&6
3413 # Check whether --with-openssl or --without-openssl was given.
3414 if test "${with_openssl+set}" = set; then
3415 withval="$with_openssl"
3419 openssl_prefix=/usr/local/ssl
3426 openssl_prefix=$withval
3435 if test "$with_openssl" = yes; then
3437 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3438 echo "${ECHO_T}building with OpenSSL support" >&6
3440 cat >>confdefs.h <<\_ACEOF
3445 if test -d "${openssl_prefix}/include" ; then
3446 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3448 if test -d "${openssl_prefix}/lib" ; then
3449 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3464 # Check whether --with-readline or --without-readline was given.
3465 if test "${with_readline+set}" = set; then
3466 withval="$with_readline"
3476 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3477 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3478 { (exit 1); exit 1; }; }
3494 # Check whether --with-zlib or --without-zlib was given.
3495 if test "${with_zlib+set}" = set; then
3496 withval="$with_zlib"
3506 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3507 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3508 { (exit 1); exit 1; }; }
3523 # Assume system is ELF if it predefines __ELF__ as 1,
3524 # otherwise believe host_os based default.
3526 freebsd1*|freebsd2*) elf=no;;
3527 freebsd3*|freebsd4*) elf=yes;;
3531 cat >conftest.$ac_ext <<_ACEOF
3532 #line $LINENO "configure"
3533 #include "confdefs.h"
3539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540 egrep "yes" >/dev/null 2>&1; then
3543 if test "X$elf" = "Xyes" ; then
3557 CPPFLAGS="$CPPFLAGS $INCLUDES"
3558 LDFLAGS="$LDFLAGS $LIBDIRS"
3560 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3561 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3562 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3563 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3566 for ac_prog in gawk mawk nawk awk
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy $ac_prog; ac_word=$2
3570 echo "$as_me:$LINENO: checking for $ac_word" >&5
3571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3572 if test "${ac_cv_prog_AWK+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 if test -n "$AWK"; then
3576 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_AWK="$ac_prog"
3586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 if test -n "$AWK"; then
3596 echo "$as_me:$LINENO: result: $AWK" >&5
3597 echo "${ECHO_T}$AWK" >&6
3599 echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3603 test -n "$AWK" && break
3606 echo "$as_me:$LINENO: checking for flex" >&5
3607 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3608 if test "${pgac_cv_path_flex+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 # Let the user override the test
3612 if test -n "$FLEX"; then
3613 pgac_cv_path_flex=$FLEX
3617 for pgac_dir in $PATH; do
3618 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3621 for pgac_prog in flex lex; do
3622 pgac_candidate="$pgac_dir/$pgac_prog"
3623 if test -f "$pgac_candidate" \
3624 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3626 echo '%%' > conftest.l
3627 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3628 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3629 pgac_broken_flex=$pgac_candidate
3633 pgac_cv_path_flex=$pgac_candidate
3641 : ${pgac_cv_path_flex=no}
3645 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3646 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3647 if test x"$pgac_cv_path_flex" = x"no"; then
3648 if test -n "$pgac_broken_flex"; then
3649 { echo "$as_me:$LINENO: WARNING:
3650 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3651 *** should get version 2.5.4 or later." >&5
3652 echo "$as_me: WARNING:
3653 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3654 *** should get version 2.5.4 or later." >&2;}
3657 { echo "$as_me:$LINENO: WARNING:
3658 *** Without Flex you will not be able to build PostgreSQL from CVS or
3659 *** change any of the scanner definition files. You can obtain Flex from
3660 *** a GNU mirror site. (If you are using the official distribution of
3661 *** PostgreSQL then you do not need to worry about this because the Flex
3662 *** output is pre-generated.)" >&5
3663 echo "$as_me: WARNING:
3664 *** Without Flex you will not be able to build PostgreSQL from CVS or
3665 *** change any of the scanner definition files. You can obtain Flex from
3666 *** a GNU mirror site. (If you are using the official distribution of
3667 *** PostgreSQL then you do not need to worry about this because the Flex
3668 *** output is pre-generated.)" >&2;}
3671 if test x"$pgac_cv_path_flex" = x"no"; then
3674 FLEX=$pgac_cv_path_flex
3680 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3681 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3683 if test "$LN_S" = "ln -s"; then
3684 echo "$as_me:$LINENO: result: yes" >&5
3685 echo "${ECHO_T}yes" >&6
3687 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3688 echo "${ECHO_T}no, using $LN_S" >&6
3692 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3693 if test "${with_gnu_ld+set}" = set; then
3694 withval="$with_gnu_ld"
3695 test "$withval" = no || with_gnu_ld=yes
3700 if test "$GCC" = yes; then
3701 # Check if gcc -print-prog-name=ld gives a path.
3702 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3703 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3706 # gcc leaves a trailing carriage return which upsets mingw
3707 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3709 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3712 # Accept absolute paths.
3713 [\\/]* | [A-Za-z]:[\\/]*)
3714 re_direlt='/[^/][^/]*/\.\./'
3715 # Canonicalize the path of ld
3716 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3717 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3718 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3720 test -z "$LD" && LD="$ac_prog"
3723 # If it fails, then pretend we aren't using GCC.
3727 # If it is relative, then search for the first ld in PATH.
3731 elif test "$with_gnu_ld" = yes; then
3732 echo "$as_me:$LINENO: checking for GNU ld" >&5
3733 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3735 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3736 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3738 if test "${ac_cv_path_LD+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 if test -z "$LD"; then
3742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3743 for ac_dir in $PATH; do
3744 test -z "$ac_dir" && ac_dir=.
3745 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3746 ac_cv_path_LD="$ac_dir/$ac_prog"
3747 # Check to see if the program is GNU ld. I'd rather use --version,
3748 # but apparently some GNU ld's only accept -v.
3749 # Break only if it was the GNU/non-GNU ld that we prefer.
3750 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3751 test "$with_gnu_ld" != no && break
3753 test "$with_gnu_ld" != yes && break
3759 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3764 if test -n "$LD"; then
3765 echo "$as_me:$LINENO: result: $LD" >&5
3766 echo "${ECHO_T}$LD" >&6
3768 echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6
3771 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3772 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3773 { (exit 1); exit 1; }; }
3774 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3775 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3776 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3780 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3781 ac_cv_prog_gnu_ld=yes
3783 ac_cv_prog_gnu_ld=no
3786 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3787 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3788 with_gnu_ld=$ac_cv_prog_gnu_ld
3793 case $host_os in sysv5*)
3794 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3795 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3796 if test "${pgac_cv_prog_ld_R+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3801 cat >conftest.$ac_ext <<_ACEOF
3802 #line $LINENO "configure"
3803 #include "confdefs.h"
3805 #ifdef F77_DUMMY_MAIN
3809 int F77_DUMMY_MAIN() { return 1; }
3819 rm -f conftest.$ac_objext conftest$ac_exeext
3820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3821 (eval $ac_link) 2>&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } &&
3825 { ac_try='test -s conftest$ac_exeext'
3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; }; then
3831 pgac_cv_prog_ld_R=yes
3833 echo "$as_me: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3835 pgac_cv_prog_ld_R=no
3837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3838 LDFLAGS=$pgac_save_LDFLAGS
3841 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3842 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3843 ld_R_works=$pgac_cv_prog_ld_R
3846 if test -n "$ac_tool_prefix"; then
3847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3848 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_RANLIB+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 if test -n "$RANLIB"; then
3855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 RANLIB=$ac_cv_prog_RANLIB
3874 if test -n "$RANLIB"; then
3875 echo "$as_me:$LINENO: result: $RANLIB" >&5
3876 echo "${ECHO_T}$RANLIB" >&6
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3883 if test -z "$ac_cv_prog_RANLIB"; then
3884 ac_ct_RANLIB=$RANLIB
3885 # Extract the first word of "ranlib", so it can be a program name with args.
3886 set dummy 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_ac_ct_RANLIB+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 if test -n "$ac_ct_RANLIB"; then
3893 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="ranlib"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3913 if test -n "$ac_ct_RANLIB"; then
3914 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3915 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3917 echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3921 RANLIB=$ac_ct_RANLIB
3923 RANLIB="$ac_cv_prog_RANLIB"
3926 for ac_prog in lorder
3928 # Extract the first word of "$ac_prog", so it can be a program name with args.
3929 set dummy $ac_prog; ac_word=$2
3930 echo "$as_me:$LINENO: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_prog_LORDER+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 if test -n "$LORDER"; then
3936 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945 ac_cv_prog_LORDER="$ac_prog"
3946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 LORDER=$ac_cv_prog_LORDER
3955 if test -n "$LORDER"; then
3956 echo "$as_me:$LINENO: result: $LORDER" >&5
3957 echo "${ECHO_T}$LORDER" >&6
3959 echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3963 test -n "$LORDER" && break
3966 # Extract the first word of "tar", so it can be a program name with args.
3967 set dummy tar; 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_path_TAR+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 if test -n "$TAR"; then
3998 echo "$as_me:$LINENO: result: $TAR" >&5
3999 echo "${ECHO_T}$TAR" >&6
4001 echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4008 set dummy ${ac_tool_prefix}strip; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_STRIP+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 if test -n "$STRIP"; then
4015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 STRIP=$ac_cv_prog_STRIP
4034 if test -n "$STRIP"; then
4035 echo "$as_me:$LINENO: result: $STRIP" >&5
4036 echo "${ECHO_T}$STRIP" >&6
4038 echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4043 if test -z "$ac_cv_prog_STRIP"; then
4045 # Extract the first word of "strip", so it can be a program name with args.
4046 set dummy 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_ac_ct_STRIP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 if test -n "$ac_ct_STRIP"; then
4053 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4072 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4073 if test -n "$ac_ct_STRIP"; then
4074 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4075 echo "${ECHO_T}$ac_ct_STRIP" >&6
4077 echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4083 STRIP="$ac_cv_prog_STRIP"
4087 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4088 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4089 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4090 STRIP_STATIC_LIB="$STRIP -x"
4091 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4092 echo "$as_me:$LINENO: result: yes" >&5
4093 echo "${ECHO_T}yes" >&6
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4104 for ac_prog in 'bison -y'
4106 # Extract the first word of "$ac_prog", so it can be a program name with args.
4107 set dummy $ac_prog; ac_word=$2
4108 echo "$as_me:$LINENO: checking for $ac_word" >&5
4109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4110 if test "${ac_cv_prog_YACC+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 if test -n "$YACC"; then
4114 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_YACC="$ac_prog"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 YACC=$ac_cv_prog_YACC
4133 if test -n "$YACC"; then
4134 echo "$as_me:$LINENO: result: $YACC" >&5
4135 echo "${ECHO_T}$YACC" >&6
4137 echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4141 test -n "$YACC" && break
4145 if test "$YACC"; then
4146 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4147 { echo "$as_me:$LINENO: WARNING:
4148 *** The installed version of Bison is too old. PostgreSQL needs
4149 *** Bison version 1.875 or later." >&5
4150 echo "$as_me: WARNING:
4151 *** The installed version of Bison is too old. PostgreSQL needs
4152 *** Bison version 1.875 or later." >&2;}
4156 if test -z "$YACC"; then
4157 { echo "$as_me:$LINENO: WARNING:
4158 *** Without Bison you will not be able to build PostgreSQL from CVS or
4159 *** change any of the parser definition files. You can obtain Bison from
4160 *** a GNU mirror site. (If you are using the official distribution of
4161 *** PostgreSQL then you do not need to worry about this because the Bison
4162 *** output is pre-generated.) To use a different yacc program (possible,
4163 *** but not recommended), set the environment variable YACC before running
4164 *** 'configure'." >&5
4165 echo "$as_me: WARNING:
4166 *** Without Bison you will not be able to build PostgreSQL from CVS or
4167 *** change any of the parser definition files. You can obtain Bison from
4168 *** a GNU mirror site. (If you are using the official distribution of
4169 *** PostgreSQL then you do not need to worry about this because the Bison
4170 *** output is pre-generated.) To use a different yacc program (possible,
4171 *** but not recommended), set the environment variable YACC before running
4172 *** 'configure'." >&2;}
4176 # Extract the first word of "perl", so it can be a program name with args.
4177 set dummy perl; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_path_PERL+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 PERL=$ac_cv_path_PERL
4207 if test -n "$PERL"; then
4208 echo "$as_me:$LINENO: result: $PERL" >&5
4209 echo "${ECHO_T}$PERL" >&6
4211 echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4215 if test "$with_perl" = yes; then
4217 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4218 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4219 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4220 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4221 echo "${ECHO_T}$perl_archlibexp" >&6
4222 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4223 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4224 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4225 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4226 echo "${ECHO_T}$perl_privlibexp" >&6
4227 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4228 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4229 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4230 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4231 echo "${ECHO_T}$perl_useshrplib" >&6
4233 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4234 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4235 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4236 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4237 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4238 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4239 echo "${ECHO_T}$perl_embed_ldflags" >&6
4242 if test "$with_python" = yes; then
4243 # Extract the first word of "python", so it can be a program name with args.
4244 set dummy python; ac_word=$2
4245 echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4247 if test "${ac_cv_path_PYTHON+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 PYTHON=$ac_cv_path_PYTHON
4274 if test -n "$PYTHON"; then
4275 echo "$as_me:$LINENO: result: $PYTHON" >&5
4276 echo "${ECHO_T}$PYTHON" >&6
4278 echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6
4282 if test x"$PYTHON" = x""; then
4283 { { echo "$as_me:$LINENO: error: Python not found" >&5
4284 echo "$as_me: error: Python not found" >&2;}
4285 { (exit 1); exit 1; }; }
4289 echo "$as_me:$LINENO: checking Python installation directories" >&5
4290 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4291 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4292 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4293 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4294 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4295 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4296 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4297 python_includespec="-I${python_prefix}/include/python${python_version}"
4298 if test "$python_prefix" != "$python_execprefix"; then
4299 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4302 # This should be enough of a message.
4303 if test "$python_prefix" != "$python_execprefix"; then
4304 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4305 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4307 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4308 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4315 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4316 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4318 if test ! -f "$python_configdir/Makefile"; then
4319 echo "$as_me:$LINENO: result: no" >&5
4320 echo "${ECHO_T}no" >&6
4321 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4322 echo "$as_me: error: Python Makefile not found" >&2;}
4323 { (exit 1); exit 1; }; }
4326 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4327 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4328 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4329 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4330 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4332 pgac_tab=" " # tab character
4333 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"`
4335 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4336 echo "${ECHO_T}${python_libspec}" >&6
4346 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4349 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4350 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4351 if test "${ac_cv_lib_bsd_main+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 ac_check_lib_save_LIBS=$LIBS
4356 cat >conftest.$ac_ext <<_ACEOF
4357 #line $LINENO "configure"
4358 #include "confdefs.h"
4361 #ifdef F77_DUMMY_MAIN
4365 int F77_DUMMY_MAIN() { return 1; }
4375 rm -f conftest.$ac_objext conftest$ac_exeext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4377 (eval $ac_link) 2>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try='test -s conftest$ac_exeext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 ac_cv_lib_bsd_main=yes
4389 echo "$as_me: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4391 ac_cv_lib_bsd_main=no
4393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4394 LIBS=$ac_check_lib_save_LIBS
4396 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4397 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4398 if test $ac_cv_lib_bsd_main = yes; then
4399 cat >>confdefs.h <<_ACEOF
4400 #define HAVE_LIBBSD 1
4409 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4410 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4411 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 ac_check_lib_save_LIBS=$LIBS
4416 cat >conftest.$ac_ext <<_ACEOF
4417 #line $LINENO "configure"
4418 #include "confdefs.h"
4420 /* Override any gcc2 internal prototype to avoid an error. */
4424 /* We use char because int might match the return type of a gcc2
4425 builtin and then its argument prototype would still apply. */
4426 char setproctitle ();
4427 #ifdef F77_DUMMY_MAIN
4431 int F77_DUMMY_MAIN() { return 1; }
4441 rm -f conftest.$ac_objext conftest$ac_exeext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443 (eval $ac_link) 2>&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -s conftest$ac_exeext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 ac_cv_lib_util_setproctitle=yes
4455 echo "$as_me: failed program was:" >&5
4456 cat conftest.$ac_ext >&5
4457 ac_cv_lib_util_setproctitle=no
4459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4460 LIBS=$ac_check_lib_save_LIBS
4462 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4463 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4464 if test $ac_cv_lib_util_setproctitle = yes; then
4465 cat >>confdefs.h <<_ACEOF
4466 #define HAVE_LIBUTIL 1
4474 echo "$as_me:$LINENO: checking for main in -lm" >&5
4475 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4476 if test "${ac_cv_lib_m_main+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 ac_check_lib_save_LIBS=$LIBS
4481 cat >conftest.$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4483 #include "confdefs.h"
4486 #ifdef F77_DUMMY_MAIN
4490 int F77_DUMMY_MAIN() { return 1; }
4500 rm -f conftest.$ac_objext conftest$ac_exeext
4501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4502 (eval $ac_link) 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try='test -s conftest$ac_exeext'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 ac_cv_lib_m_main=yes
4514 echo "$as_me: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4519 LIBS=$ac_check_lib_save_LIBS
4521 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4522 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4523 if test $ac_cv_lib_m_main = yes; then
4524 cat >>confdefs.h <<_ACEOF
4533 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4534 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4535 if test "${ac_cv_lib_dl_main+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 ac_check_lib_save_LIBS=$LIBS
4540 cat >conftest.$ac_ext <<_ACEOF
4541 #line $LINENO "configure"
4542 #include "confdefs.h"
4545 #ifdef F77_DUMMY_MAIN
4549 int F77_DUMMY_MAIN() { return 1; }
4559 rm -f conftest.$ac_objext conftest$ac_exeext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4561 (eval $ac_link) 2>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -s conftest$ac_exeext'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 ac_cv_lib_dl_main=yes
4573 echo "$as_me: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4575 ac_cv_lib_dl_main=no
4577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4578 LIBS=$ac_check_lib_save_LIBS
4580 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4581 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4582 if test $ac_cv_lib_dl_main = yes; then
4583 cat >>confdefs.h <<_ACEOF
4584 #define HAVE_LIBDL 1
4592 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4593 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4594 if test "${ac_cv_lib_nsl_main+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 ac_check_lib_save_LIBS=$LIBS
4599 cat >conftest.$ac_ext <<_ACEOF
4600 #line $LINENO "configure"
4601 #include "confdefs.h"
4604 #ifdef F77_DUMMY_MAIN
4608 int F77_DUMMY_MAIN() { return 1; }
4618 rm -f conftest.$ac_objext conftest$ac_exeext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4620 (eval $ac_link) 2>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -s conftest$ac_exeext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 ac_cv_lib_nsl_main=yes
4632 echo "$as_me: failed program was:" >&5
4633 cat conftest.$ac_ext >&5
4634 ac_cv_lib_nsl_main=no
4636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4637 LIBS=$ac_check_lib_save_LIBS
4639 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4640 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4641 if test $ac_cv_lib_nsl_main = yes; then
4642 cat >>confdefs.h <<_ACEOF
4643 #define HAVE_LIBNSL 1
4651 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4652 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4653 if test "${ac_cv_lib_socket_main+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 ac_check_lib_save_LIBS=$LIBS
4657 LIBS="-lsocket $LIBS"
4658 cat >conftest.$ac_ext <<_ACEOF
4659 #line $LINENO "configure"
4660 #include "confdefs.h"
4663 #ifdef F77_DUMMY_MAIN
4667 int F77_DUMMY_MAIN() { return 1; }
4677 rm -f conftest.$ac_objext conftest$ac_exeext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4679 (eval $ac_link) 2>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -s conftest$ac_exeext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 ac_cv_lib_socket_main=yes
4691 echo "$as_me: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4693 ac_cv_lib_socket_main=no
4695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4696 LIBS=$ac_check_lib_save_LIBS
4698 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4699 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4700 if test $ac_cv_lib_socket_main = yes; then
4701 cat >>confdefs.h <<_ACEOF
4702 #define HAVE_LIBSOCKET 1
4705 LIBS="-lsocket $LIBS"
4710 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4711 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4712 if test "${ac_cv_lib_ipc_main+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 ac_check_lib_save_LIBS=$LIBS
4717 cat >conftest.$ac_ext <<_ACEOF
4718 #line $LINENO "configure"
4719 #include "confdefs.h"
4722 #ifdef F77_DUMMY_MAIN
4726 int F77_DUMMY_MAIN() { return 1; }
4736 rm -f conftest.$ac_objext conftest$ac_exeext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4738 (eval $ac_link) 2>&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -s conftest$ac_exeext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 ac_cv_lib_ipc_main=yes
4750 echo "$as_me: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4752 ac_cv_lib_ipc_main=no
4754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4755 LIBS=$ac_check_lib_save_LIBS
4757 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4758 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4759 if test $ac_cv_lib_ipc_main = yes; then
4760 cat >>confdefs.h <<_ACEOF
4761 #define HAVE_LIBIPC 1
4769 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4770 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4771 if test "${ac_cv_lib_IPC_main+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 ac_check_lib_save_LIBS=$LIBS
4776 cat >conftest.$ac_ext <<_ACEOF
4777 #line $LINENO "configure"
4778 #include "confdefs.h"
4781 #ifdef F77_DUMMY_MAIN
4785 int F77_DUMMY_MAIN() { return 1; }
4795 rm -f conftest.$ac_objext conftest$ac_exeext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4797 (eval $ac_link) 2>&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -s conftest$ac_exeext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 ac_cv_lib_IPC_main=yes
4809 echo "$as_me: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4811 ac_cv_lib_IPC_main=no
4813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4814 LIBS=$ac_check_lib_save_LIBS
4816 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4817 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4818 if test $ac_cv_lib_IPC_main = yes; then
4819 cat >>confdefs.h <<_ACEOF
4820 #define HAVE_LIBIPC 1
4828 echo "$as_me:$LINENO: checking for main in -llc" >&5
4829 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4830 if test "${ac_cv_lib_lc_main+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 ac_check_lib_save_LIBS=$LIBS
4835 cat >conftest.$ac_ext <<_ACEOF
4836 #line $LINENO "configure"
4837 #include "confdefs.h"
4840 #ifdef F77_DUMMY_MAIN
4844 int F77_DUMMY_MAIN() { return 1; }
4854 rm -f conftest.$ac_objext conftest$ac_exeext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4856 (eval $ac_link) 2>&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } &&
4860 { ac_try='test -s conftest$ac_exeext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_cv_lib_lc_main=yes
4868 echo "$as_me: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4870 ac_cv_lib_lc_main=no
4872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4873 LIBS=$ac_check_lib_save_LIBS
4875 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4876 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4877 if test $ac_cv_lib_lc_main = yes; then
4878 cat >>confdefs.h <<_ACEOF
4879 #define HAVE_LIBLC 1
4887 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4888 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4889 if test "${ac_cv_lib_dld_main+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 ac_check_lib_save_LIBS=$LIBS
4894 cat >conftest.$ac_ext <<_ACEOF
4895 #line $LINENO "configure"
4896 #include "confdefs.h"
4899 #ifdef F77_DUMMY_MAIN
4903 int F77_DUMMY_MAIN() { return 1; }
4913 rm -f conftest.$ac_objext conftest$ac_exeext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4915 (eval $ac_link) 2>&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try='test -s conftest$ac_exeext'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; }; then
4925 ac_cv_lib_dld_main=yes
4927 echo "$as_me: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4929 ac_cv_lib_dld_main=no
4931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4932 LIBS=$ac_check_lib_save_LIBS
4934 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4935 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4936 if test $ac_cv_lib_dld_main = yes; then
4937 cat >>confdefs.h <<_ACEOF
4938 #define HAVE_LIBDLD 1
4946 echo "$as_me:$LINENO: checking for main in -lld" >&5
4947 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4948 if test "${ac_cv_lib_ld_main+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 ac_check_lib_save_LIBS=$LIBS
4953 cat >conftest.$ac_ext <<_ACEOF
4954 #line $LINENO "configure"
4955 #include "confdefs.h"
4958 #ifdef F77_DUMMY_MAIN
4962 int F77_DUMMY_MAIN() { return 1; }
4972 rm -f conftest.$ac_objext conftest$ac_exeext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4974 (eval $ac_link) 2>&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -s conftest$ac_exeext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_cv_lib_ld_main=yes
4986 echo "$as_me: failed program was:" >&5
4987 cat conftest.$ac_ext >&5
4988 ac_cv_lib_ld_main=no
4990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4991 LIBS=$ac_check_lib_save_LIBS
4993 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4994 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4995 if test $ac_cv_lib_ld_main = yes; then
4996 cat >>confdefs.h <<_ACEOF
4997 #define HAVE_LIBLD 1
5005 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5006 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5007 if test "${ac_cv_lib_compat_main+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 ac_check_lib_save_LIBS=$LIBS
5011 LIBS="-lcompat $LIBS"
5012 cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5014 #include "confdefs.h"
5017 #ifdef F77_DUMMY_MAIN
5021 int F77_DUMMY_MAIN() { return 1; }
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -s conftest$ac_exeext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_lib_compat_main=yes
5045 echo "$as_me: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5047 ac_cv_lib_compat_main=no
5049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5050 LIBS=$ac_check_lib_save_LIBS
5052 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5053 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5054 if test $ac_cv_lib_compat_main = yes; then
5055 cat >>confdefs.h <<_ACEOF
5056 #define HAVE_LIBCOMPAT 1
5059 LIBS="-lcompat $LIBS"
5064 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5065 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5066 if test "${ac_cv_lib_BSD_main+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 ac_check_lib_save_LIBS=$LIBS
5071 cat >conftest.$ac_ext <<_ACEOF
5072 #line $LINENO "configure"
5073 #include "confdefs.h"
5076 #ifdef F77_DUMMY_MAIN
5080 int F77_DUMMY_MAIN() { return 1; }
5090 rm -f conftest.$ac_objext conftest$ac_exeext
5091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5092 (eval $ac_link) 2>&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -s conftest$ac_exeext'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5102 ac_cv_lib_BSD_main=yes
5104 echo "$as_me: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5106 ac_cv_lib_BSD_main=no
5108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5109 LIBS=$ac_check_lib_save_LIBS
5111 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5112 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5113 if test $ac_cv_lib_BSD_main = yes; then
5114 cat >>confdefs.h <<_ACEOF
5115 #define HAVE_LIBBSD 1
5123 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5124 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5125 if test "${ac_cv_lib_gen_main+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 ac_check_lib_save_LIBS=$LIBS
5130 cat >conftest.$ac_ext <<_ACEOF
5131 #line $LINENO "configure"
5132 #include "confdefs.h"
5135 #ifdef F77_DUMMY_MAIN
5139 int F77_DUMMY_MAIN() { return 1; }
5149 rm -f conftest.$ac_objext conftest$ac_exeext
5150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5151 (eval $ac_link) 2>&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try='test -s conftest$ac_exeext'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 ac_cv_lib_gen_main=yes
5163 echo "$as_me: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5165 ac_cv_lib_gen_main=no
5167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5168 LIBS=$ac_check_lib_save_LIBS
5170 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5171 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5172 if test $ac_cv_lib_gen_main = yes; then
5173 cat >>confdefs.h <<_ACEOF
5174 #define HAVE_LIBGEN 1
5182 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5183 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5184 if test "${ac_cv_lib_PW_main+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 ac_check_lib_save_LIBS=$LIBS
5189 cat >conftest.$ac_ext <<_ACEOF
5190 #line $LINENO "configure"
5191 #include "confdefs.h"
5194 #ifdef F77_DUMMY_MAIN
5198 int F77_DUMMY_MAIN() { return 1; }
5208 rm -f conftest.$ac_objext conftest$ac_exeext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5210 (eval $ac_link) 2>&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
5214 { ac_try='test -s conftest$ac_exeext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5220 ac_cv_lib_PW_main=yes
5222 echo "$as_me: failed program was:" >&5
5223 cat conftest.$ac_ext >&5
5224 ac_cv_lib_PW_main=no
5226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5227 LIBS=$ac_check_lib_save_LIBS
5229 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5230 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5231 if test $ac_cv_lib_PW_main = yes; then
5232 cat >>confdefs.h <<_ACEOF
5233 #define HAVE_LIBPW 1
5241 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5242 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5243 if test "${ac_cv_lib_resolv_main+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 ac_check_lib_save_LIBS=$LIBS
5247 LIBS="-lresolv $LIBS"
5248 cat >conftest.$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
5250 #include "confdefs.h"
5253 #ifdef F77_DUMMY_MAIN
5257 int F77_DUMMY_MAIN() { return 1; }
5267 rm -f conftest.$ac_objext conftest$ac_exeext
5268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5269 (eval $ac_link) 2>&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try='test -s conftest$ac_exeext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 ac_cv_lib_resolv_main=yes
5281 echo "$as_me: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5283 ac_cv_lib_resolv_main=no
5285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5286 LIBS=$ac_check_lib_save_LIBS
5288 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5289 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5290 if test $ac_cv_lib_resolv_main = yes; then
5291 cat >>confdefs.h <<_ACEOF
5292 #define HAVE_LIBRESOLV 1
5295 LIBS="-lresolv $LIBS"
5300 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5301 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5302 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 ac_check_lib_save_LIBS=$LIBS
5306 LIBS="-lwsock32 $LIBS"
5307 cat >conftest.$ac_ext <<_ACEOF
5308 #line $LINENO "configure"
5309 #include "confdefs.h"
5312 #ifdef F77_DUMMY_MAIN
5316 int F77_DUMMY_MAIN() { return 1; }
5326 rm -f conftest.$ac_objext conftest$ac_exeext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5328 (eval $ac_link) 2>&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -s conftest$ac_exeext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_cv_lib_wsock32_main=yes
5340 echo "$as_me: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5342 ac_cv_lib_wsock32_main=no
5344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5345 LIBS=$ac_check_lib_save_LIBS
5347 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5348 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5349 if test $ac_cv_lib_wsock32_main = yes; then
5350 cat >>confdefs.h <<_ACEOF
5351 #define HAVE_LIBWSOCK32 1
5354 LIBS="-lwsock32 $LIBS"
5358 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5359 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5360 if test "${ac_cv_search_getopt_long+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 ac_func_search_save_LIBS=$LIBS
5364 ac_cv_search_getopt_long=no
5365 cat >conftest.$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5367 #include "confdefs.h"
5369 /* Override any gcc2 internal prototype to avoid an error. */
5373 /* We use char because int might match the return type of a gcc2
5374 builtin and then its argument prototype would still apply. */
5375 char getopt_long ();
5376 #ifdef F77_DUMMY_MAIN
5380 int F77_DUMMY_MAIN() { return 1; }
5390 rm -f conftest.$ac_objext conftest$ac_exeext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5392 (eval $ac_link) 2>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -s conftest$ac_exeext'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; }; then
5402 ac_cv_search_getopt_long="none required"
5404 echo "$as_me: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5408 if test "$ac_cv_search_getopt_long" = no; then
5409 for ac_lib in getopt gnugetopt; do
5410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5411 cat >conftest.$ac_ext <<_ACEOF
5412 #line $LINENO "configure"
5413 #include "confdefs.h"
5415 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5421 char getopt_long ();
5422 #ifdef F77_DUMMY_MAIN
5426 int F77_DUMMY_MAIN() { return 1; }
5436 rm -f conftest.$ac_objext conftest$ac_exeext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5438 (eval $ac_link) 2>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -s conftest$ac_exeext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 ac_cv_search_getopt_long="-l$ac_lib"
5451 echo "$as_me: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5457 LIBS=$ac_func_search_save_LIBS
5459 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5460 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5461 if test "$ac_cv_search_getopt_long" != no; then
5462 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5468 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5469 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5470 if test "${ac_cv_lib_unix_main+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 ac_check_lib_save_LIBS=$LIBS
5475 cat >conftest.$ac_ext <<_ACEOF
5476 #line $LINENO "configure"
5477 #include "confdefs.h"
5480 #ifdef F77_DUMMY_MAIN
5484 int F77_DUMMY_MAIN() { return 1; }
5494 rm -f conftest.$ac_objext conftest$ac_exeext
5495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5496 (eval $ac_link) 2>&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -s conftest$ac_exeext'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5506 ac_cv_lib_unix_main=yes
5508 echo "$as_me: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5510 ac_cv_lib_unix_main=no
5512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5513 LIBS=$ac_check_lib_save_LIBS
5515 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5516 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5517 if test $ac_cv_lib_unix_main = yes; then
5518 cat >>confdefs.h <<_ACEOF
5519 #define HAVE_LIBUNIX 1
5526 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5527 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5528 if test "${ac_cv_search_crypt+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 ac_func_search_save_LIBS=$LIBS
5532 ac_cv_search_crypt=no
5533 cat >conftest.$ac_ext <<_ACEOF
5534 #line $LINENO "configure"
5535 #include "confdefs.h"
5537 /* Override any gcc2 internal prototype to avoid an error. */
5541 /* We use char because int might match the return type of a gcc2
5542 builtin and then its argument prototype would still apply. */
5544 #ifdef F77_DUMMY_MAIN
5548 int F77_DUMMY_MAIN() { return 1; }
5558 rm -f conftest.$ac_objext conftest$ac_exeext
5559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5560 (eval $ac_link) 2>&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -s conftest$ac_exeext'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; }; then
5570 ac_cv_search_crypt="none required"
5572 echo "$as_me: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5576 if test "$ac_cv_search_crypt" = no; then
5577 for ac_lib in crypt; do
5578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5579 cat >conftest.$ac_ext <<_ACEOF
5580 #line $LINENO "configure"
5581 #include "confdefs.h"
5583 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5590 #ifdef F77_DUMMY_MAIN
5594 int F77_DUMMY_MAIN() { return 1; }
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606 (eval $ac_link) 2>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_search_crypt="-l$ac_lib"
5619 echo "$as_me: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5625 LIBS=$ac_func_search_save_LIBS
5627 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5628 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5629 if test "$ac_cv_search_crypt" != no; then
5630 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5635 if test "$PORTNAME" = "beos"
5638 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5639 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5640 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 ac_check_lib_save_LIBS=$LIBS
5645 cat >conftest.$ac_ext <<_ACEOF
5646 #line $LINENO "configure"
5647 #include "confdefs.h"
5649 /* Override any gcc2 internal prototype to avoid an error. */
5653 /* We use char because int might match the return type of a gcc2
5654 builtin and then its argument prototype would still apply. */
5655 char __inet_ntoa ();
5656 #ifdef F77_DUMMY_MAIN
5660 int F77_DUMMY_MAIN() { return 1; }
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672 (eval $ac_link) 2>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -s conftest$ac_exeext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5682 ac_cv_lib_bind___inet_ntoa=yes
5684 echo "$as_me: failed program was:" >&5
5685 cat conftest.$ac_ext >&5
5686 ac_cv_lib_bind___inet_ntoa=no
5688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5689 LIBS=$ac_check_lib_save_LIBS
5691 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5692 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5693 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5694 cat >>confdefs.h <<_ACEOF
5695 #define HAVE_LIBBIND 1
5704 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5705 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5706 if test "${ac_cv_search_fdatasync+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 ac_func_search_save_LIBS=$LIBS
5710 ac_cv_search_fdatasync=no
5711 cat >conftest.$ac_ext <<_ACEOF
5712 #line $LINENO "configure"
5713 #include "confdefs.h"
5715 /* Override any gcc2 internal prototype to avoid an error. */
5719 /* We use char because int might match the return type of a gcc2
5720 builtin and then its argument prototype would still apply. */
5722 #ifdef F77_DUMMY_MAIN
5726 int F77_DUMMY_MAIN() { return 1; }
5736 rm -f conftest.$ac_objext conftest$ac_exeext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738 (eval $ac_link) 2>&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -s conftest$ac_exeext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 ac_cv_search_fdatasync="none required"
5750 echo "$as_me: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5754 if test "$ac_cv_search_fdatasync" = no; then
5755 for ac_lib in rt posix4; do
5756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5757 cat >conftest.$ac_ext <<_ACEOF
5758 #line $LINENO "configure"
5759 #include "confdefs.h"
5761 /* Override any gcc2 internal prototype to avoid an error. */
5765 /* We use char because int might match the return type of a gcc2
5766 builtin and then its argument prototype would still apply. */
5768 #ifdef F77_DUMMY_MAIN
5772 int F77_DUMMY_MAIN() { return 1; }
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -s conftest$ac_exeext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 ac_cv_search_fdatasync="-l$ac_lib"
5797 echo "$as_me: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5803 LIBS=$ac_func_search_save_LIBS
5805 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5806 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5807 if test "$ac_cv_search_fdatasync" != no; then
5808 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5814 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5815 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5816 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 ac_check_lib_save_LIBS=$LIBS
5820 LIBS="-lcygipc $LIBS"
5821 cat >conftest.$ac_ext <<_ACEOF
5822 #line $LINENO "configure"
5823 #include "confdefs.h"
5825 /* Override any gcc2 internal prototype to avoid an error. */
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5832 #ifdef F77_DUMMY_MAIN
5836 int F77_DUMMY_MAIN() { return 1; }
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848 (eval $ac_link) 2>&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } &&
5852 { ac_try='test -s conftest$ac_exeext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 ac_cv_lib_cygipc_shmget=yes
5860 echo "$as_me: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5862 ac_cv_lib_cygipc_shmget=no
5864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5865 LIBS=$ac_check_lib_save_LIBS
5867 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5868 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5869 if test $ac_cv_lib_cygipc_shmget = yes; then
5870 cat >>confdefs.h <<_ACEOF
5871 #define HAVE_LIBCYGIPC 1
5874 LIBS="-lcygipc $LIBS"
5879 if test "$with_readline" = yes; then
5881 echo "$as_me:$LINENO: checking for readline" >&5
5882 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5884 if test "${pgac_cv_check_readline+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 pgac_cv_check_readline=no
5888 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5889 for pgac_rllib in -lreadline -ledit ; do
5890 pgac_save_LIBS=$LIBS
5891 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5892 cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5894 #include "confdefs.h"
5896 /* Override any gcc2 internal prototype to avoid an error. */
5900 /* We use char because int might match the return type of a gcc2
5901 builtin and then its argument prototype would still apply. */
5903 #ifdef F77_DUMMY_MAIN
5907 int F77_DUMMY_MAIN() { return 1; }
5917 rm -f conftest.$ac_objext conftest$ac_exeext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5919 (eval $ac_link) 2>&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try='test -s conftest$ac_exeext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5930 # NetBSD and OpenBSD have a broken linker that does not
5931 # recognize dependent libraries
5932 case $host_os in netbsd* | openbsd* )
5935 *) pgac_lib=" -lcurses" ;;
5939 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5943 echo "$as_me: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5947 LIBS=$pgac_save_LIBS
5950 LIBS=$pgac_save_LIBS
5954 if test "$pgac_cv_check_readline" != no ; then
5956 cat >>confdefs.h <<\_ACEOF
5957 #define HAVE_LIBREADLINE 1
5960 LIBS="$pgac_cv_check_readline $LIBS"
5961 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5962 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5964 echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6
5967 if test x"$pgac_cv_check_readline" = x"no"; then
5968 { { echo "$as_me:$LINENO: error: readline library not found
5969 If you have readline already installed, see config.log for details on the
5970 failure. It is possible the compiler isn't looking in the proper directory.
5971 Use --without-readline to disable readline support." >&5
5972 echo "$as_me: error: readline library not found
5973 If you have readline already installed, see config.log for details on the
5974 failure. It is possible the compiler isn't looking in the proper directory.
5975 Use --without-readline to disable readline support." >&2;}
5976 { (exit 1); exit 1; }; }
5980 if test "$with_zlib" = yes; then
5982 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5983 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5984 if test "${ac_cv_lib_z_inflate+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 ac_check_lib_save_LIBS=$LIBS
5989 cat >conftest.$ac_ext <<_ACEOF
5990 #line $LINENO "configure"
5991 #include "confdefs.h"
5993 /* Override any gcc2 internal prototype to avoid an error. */
5997 /* We use char because int might match the return type of a gcc2
5998 builtin and then its argument prototype would still apply. */
6000 #ifdef F77_DUMMY_MAIN
6004 int F77_DUMMY_MAIN() { return 1; }
6014 rm -f conftest.$ac_objext conftest$ac_exeext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6016 (eval $ac_link) 2>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -s conftest$ac_exeext'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 ac_cv_lib_z_inflate=yes
6028 echo "$as_me: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6030 ac_cv_lib_z_inflate=no
6032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6033 LIBS=$ac_check_lib_save_LIBS
6035 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6036 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6037 if test $ac_cv_lib_z_inflate = yes; then
6038 cat >>confdefs.h <<_ACEOF
6045 { { echo "$as_me:$LINENO: error: zlib library not found
6046 If you have zlib already installed, see config.log for details on the
6047 failure. It is possible the compiler isn't looking in the proper directory.
6048 Use --without-zlib to disable zlib support." >&5
6049 echo "$as_me: error: zlib library not found
6050 If you have zlib already installed, see config.log for details on the
6051 failure. It is possible the compiler isn't looking in the proper directory.
6052 Use --without-zlib to disable zlib support." >&2;}
6053 { (exit 1); exit 1; }; }
6058 if test "$with_krb4" = yes ; then
6060 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6061 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6062 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 ac_check_lib_save_LIBS=$LIBS
6067 cat >conftest.$ac_ext <<_ACEOF
6068 #line $LINENO "configure"
6069 #include "confdefs.h"
6071 /* Override any gcc2 internal prototype to avoid an error. */
6075 /* We use char because int might match the return type of a gcc2
6076 builtin and then its argument prototype would still apply. */
6077 char des_encrypt ();
6078 #ifdef F77_DUMMY_MAIN
6082 int F77_DUMMY_MAIN() { return 1; }
6092 rm -f conftest.$ac_objext conftest$ac_exeext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6094 (eval $ac_link) 2>&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } &&
6098 { ac_try='test -s conftest$ac_exeext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 ac_cv_lib_des_des_encrypt=yes
6106 echo "$as_me: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6108 ac_cv_lib_des_des_encrypt=no
6110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6111 LIBS=$ac_check_lib_save_LIBS
6113 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6114 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6115 if test $ac_cv_lib_des_des_encrypt = yes; then
6116 cat >>confdefs.h <<_ACEOF
6117 #define HAVE_LIBDES 1
6123 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6124 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6125 { (exit 1); exit 1; }; }
6129 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6130 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6131 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 ac_check_lib_save_LIBS=$LIBS
6136 cat >conftest.$ac_ext <<_ACEOF
6137 #line $LINENO "configure"
6138 #include "confdefs.h"
6140 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6146 char krb_sendauth ();
6147 #ifdef F77_DUMMY_MAIN
6151 int F77_DUMMY_MAIN() { return 1; }
6161 rm -f conftest.$ac_objext conftest$ac_exeext
6162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6163 (eval $ac_link) 2>&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } &&
6167 { ac_try='test -s conftest$ac_exeext'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_cv_lib_krb_krb_sendauth=yes
6175 echo "$as_me: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6177 ac_cv_lib_krb_krb_sendauth=no
6179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6180 LIBS=$ac_check_lib_save_LIBS
6182 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6183 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6184 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6185 cat >>confdefs.h <<_ACEOF
6186 #define HAVE_LIBKRB 1
6192 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6193 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6194 { (exit 1); exit 1; }; }
6198 for ac_func in gethostname
6200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6201 echo "$as_me:$LINENO: checking for $ac_func" >&5
6202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6203 if eval "test \"\${$as_ac_var+set}\" = set"; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 cat >conftest.$ac_ext <<_ACEOF
6207 #line $LINENO "configure"
6208 #include "confdefs.h"
6209 /* System header to define __stub macros and hopefully few prototypes,
6210 which can conflict with char $ac_func (); below. */
6212 /* Override any gcc2 internal prototype to avoid an error. */
6216 /* We use char because int might match the return type of a gcc2
6217 builtin and then its argument prototype would still apply. */
6221 #ifdef F77_DUMMY_MAIN
6225 int F77_DUMMY_MAIN() { return 1; }
6230 /* The GNU C library defines this for functions which it implements
6231 to always fail with ENOSYS. Some functions are actually named
6232 something starting with __ and the normal name is an alias. */
6233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6243 rm -f conftest.$ac_objext conftest$ac_exeext
6244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6245 (eval $ac_link) 2>&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } &&
6249 { ac_try='test -s conftest$ac_exeext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 eval "$as_ac_var=yes"
6257 echo "$as_me: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6259 eval "$as_ac_var=no"
6261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6265 if test `eval echo '${'$as_ac_var'}'` = yes; then
6266 cat >>confdefs.h <<_ACEOF
6267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6271 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6278 if test "$with_krb5" = yes ; then
6279 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6280 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6281 if test "${ac_cv_search_com_err+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 ac_func_search_save_LIBS=$LIBS
6285 ac_cv_search_com_err=no
6286 cat >conftest.$ac_ext <<_ACEOF
6287 #line $LINENO "configure"
6288 #include "confdefs.h"
6290 /* Override any gcc2 internal prototype to avoid an error. */
6294 /* We use char because int might match the return type of a gcc2
6295 builtin and then its argument prototype would still apply. */
6297 #ifdef F77_DUMMY_MAIN
6301 int F77_DUMMY_MAIN() { return 1; }
6311 rm -f conftest.$ac_objext conftest$ac_exeext
6312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6313 (eval $ac_link) 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try='test -s conftest$ac_exeext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 ac_cv_search_com_err="none required"
6325 echo "$as_me: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329 if test "$ac_cv_search_com_err" = no; then
6330 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6332 cat >conftest.$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6334 #include "confdefs.h"
6336 /* Override any gcc2 internal prototype to avoid an error. */
6340 /* We use char because int might match the return type of a gcc2
6341 builtin and then its argument prototype would still apply. */
6343 #ifdef F77_DUMMY_MAIN
6347 int F77_DUMMY_MAIN() { return 1; }
6357 rm -f conftest.$ac_objext conftest$ac_exeext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6359 (eval $ac_link) 2>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -s conftest$ac_exeext'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6369 ac_cv_search_com_err="-l$ac_lib"
6372 echo "$as_me: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6378 LIBS=$ac_func_search_save_LIBS
6380 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6381 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6382 if test "$ac_cv_search_com_err" != no; then
6383 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6386 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6387 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6388 { (exit 1); exit 1; }; }
6391 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6392 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6393 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 ac_func_search_save_LIBS=$LIBS
6397 ac_cv_search_krb5_encrypt=no
6398 cat >conftest.$ac_ext <<_ACEOF
6399 #line $LINENO "configure"
6400 #include "confdefs.h"
6402 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6408 char krb5_encrypt ();
6409 #ifdef F77_DUMMY_MAIN
6413 int F77_DUMMY_MAIN() { return 1; }
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425 (eval $ac_link) 2>&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try='test -s conftest$ac_exeext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 ac_cv_search_krb5_encrypt="none required"
6437 echo "$as_me: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6441 if test "$ac_cv_search_krb5_encrypt" = no; then
6442 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6444 cat >conftest.$ac_ext <<_ACEOF
6445 #line $LINENO "configure"
6446 #include "confdefs.h"
6448 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6454 char krb5_encrypt ();
6455 #ifdef F77_DUMMY_MAIN
6459 int F77_DUMMY_MAIN() { return 1; }
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471 (eval $ac_link) 2>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try='test -s conftest$ac_exeext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 ac_cv_search_krb5_encrypt="-l$ac_lib"
6484 echo "$as_me: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6490 LIBS=$ac_func_search_save_LIBS
6492 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6493 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6494 if test "$ac_cv_search_krb5_encrypt" != no; then
6495 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6498 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6499 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6500 { (exit 1); exit 1; }; }
6503 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6504 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6505 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 ac_func_search_save_LIBS=$LIBS
6509 ac_cv_search_krb5_sendauth=no
6510 cat >conftest.$ac_ext <<_ACEOF
6511 #line $LINENO "configure"
6512 #include "confdefs.h"
6514 /* Override any gcc2 internal prototype to avoid an error. */
6518 /* We use char because int might match the return type of a gcc2
6519 builtin and then its argument prototype would still apply. */
6520 char krb5_sendauth ();
6521 #ifdef F77_DUMMY_MAIN
6525 int F77_DUMMY_MAIN() { return 1; }
6535 rm -f conftest.$ac_objext conftest$ac_exeext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6537 (eval $ac_link) 2>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } &&
6541 { ac_try='test -s conftest$ac_exeext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 ac_cv_search_krb5_sendauth="none required"
6549 echo "$as_me: failed program was:" >&5
6550 cat conftest.$ac_ext >&5
6552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6553 if test "$ac_cv_search_krb5_sendauth" = no; then
6554 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6556 cat >conftest.$ac_ext <<_ACEOF
6557 #line $LINENO "configure"
6558 #include "confdefs.h"
6560 /* Override any gcc2 internal prototype to avoid an error. */
6564 /* We use char because int might match the return type of a gcc2
6565 builtin and then its argument prototype would still apply. */
6566 char krb5_sendauth ();
6567 #ifdef F77_DUMMY_MAIN
6571 int F77_DUMMY_MAIN() { return 1; }
6581 rm -f conftest.$ac_objext conftest$ac_exeext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6583 (eval $ac_link) 2>&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -s conftest$ac_exeext'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; }; then
6593 ac_cv_search_krb5_sendauth="-l$ac_lib"
6596 echo "$as_me: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6602 LIBS=$ac_func_search_save_LIBS
6604 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6605 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6606 if test "$ac_cv_search_krb5_sendauth" != no; then
6607 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6610 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6611 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6612 { (exit 1); exit 1; }; }
6617 if test "$with_openssl" = yes ; then
6619 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6620 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6621 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 ac_check_lib_save_LIBS=$LIBS
6625 LIBS="-lcrypto $LIBS"
6626 cat >conftest.$ac_ext <<_ACEOF
6627 #line $LINENO "configure"
6628 #include "confdefs.h"
6630 /* Override any gcc2 internal prototype to avoid an error. */
6634 /* We use char because int might match the return type of a gcc2
6635 builtin and then its argument prototype would still apply. */
6636 char CRYPTO_new_ex_data ();
6637 #ifdef F77_DUMMY_MAIN
6641 int F77_DUMMY_MAIN() { return 1; }
6646 CRYPTO_new_ex_data ();
6651 rm -f conftest.$ac_objext conftest$ac_exeext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653 (eval $ac_link) 2>&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -s conftest$ac_exeext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6665 echo "$as_me: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6667 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6670 LIBS=$ac_check_lib_save_LIBS
6672 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6673 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6674 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6675 cat >>confdefs.h <<_ACEOF
6676 #define HAVE_LIBCRYPTO 1
6679 LIBS="-lcrypto $LIBS"
6682 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6683 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6684 { (exit 1); exit 1; }; }
6688 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6689 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6690 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 ac_check_lib_save_LIBS=$LIBS
6695 cat >conftest.$ac_ext <<_ACEOF
6696 #line $LINENO "configure"
6697 #include "confdefs.h"
6699 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6705 char SSL_library_init ();
6706 #ifdef F77_DUMMY_MAIN
6710 int F77_DUMMY_MAIN() { return 1; }
6715 SSL_library_init ();
6720 rm -f conftest.$ac_objext conftest$ac_exeext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6722 (eval $ac_link) 2>&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } &&
6726 { ac_try='test -s conftest$ac_exeext'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 ac_cv_lib_ssl_SSL_library_init=yes
6734 echo "$as_me: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6736 ac_cv_lib_ssl_SSL_library_init=no
6738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6739 LIBS=$ac_check_lib_save_LIBS
6741 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6742 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6743 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6744 cat >>confdefs.h <<_ACEOF
6745 #define HAVE_LIBSSL 1
6751 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6752 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6753 { (exit 1); exit 1; }; }
6758 if test "$with_pam" = yes ; then
6760 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6761 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6762 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 ac_check_lib_save_LIBS=$LIBS
6767 cat >conftest.$ac_ext <<_ACEOF
6768 #line $LINENO "configure"
6769 #include "confdefs.h"
6771 /* Override any gcc2 internal prototype to avoid an error. */
6775 /* We use char because int might match the return type of a gcc2
6776 builtin and then its argument prototype would still apply. */
6778 #ifdef F77_DUMMY_MAIN
6782 int F77_DUMMY_MAIN() { return 1; }
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6794 (eval $ac_link) 2>&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -s conftest$ac_exeext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 ac_cv_lib_pam_pam_start=yes
6806 echo "$as_me: failed program was:" >&5
6807 cat conftest.$ac_ext >&5
6808 ac_cv_lib_pam_pam_start=no
6810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6811 LIBS=$ac_check_lib_save_LIBS
6813 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6814 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6815 if test $ac_cv_lib_pam_pam_start = yes; then
6816 cat >>confdefs.h <<_ACEOF
6817 #define HAVE_LIBPAM 1
6823 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6824 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6825 { (exit 1); exit 1; }; }
6835 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6837 if test "${ac_cv_header_stdc+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 cat >conftest.$ac_ext <<_ACEOF
6841 #line $LINENO "configure"
6842 #include "confdefs.h"
6849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6852 egrep -v '^ *\+' conftest.er1 >conftest.err
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } >/dev/null; then
6857 if test -s conftest.err; then
6858 ac_cpp_err=$ac_c_preproc_warn_flag
6865 if test -z "$ac_cpp_err"; then
6866 ac_cv_header_stdc=yes
6868 echo "$as_me: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6870 ac_cv_header_stdc=no
6872 rm -f conftest.err conftest.$ac_ext
6874 if test $ac_cv_header_stdc = yes; then
6875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6876 cat >conftest.$ac_ext <<_ACEOF
6877 #line $LINENO "configure"
6878 #include "confdefs.h"
6882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6883 egrep "memchr" >/dev/null 2>&1; then
6886 ac_cv_header_stdc=no
6892 if test $ac_cv_header_stdc = yes; then
6893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6894 cat >conftest.$ac_ext <<_ACEOF
6895 #line $LINENO "configure"
6896 #include "confdefs.h"
6900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6901 egrep "free" >/dev/null 2>&1; then
6904 ac_cv_header_stdc=no
6910 if test $ac_cv_header_stdc = yes; then
6911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6912 if test "$cross_compiling" = yes; then
6915 cat >conftest.$ac_ext <<_ACEOF
6916 #line $LINENO "configure"
6917 #include "confdefs.h"
6919 #if ((' ' & 0x0FF) == 0x020)
6920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6923 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6924 || ('j' <= (c) && (c) <= 'r') \
6925 || ('s' <= (c) && (c) <= 'z'))
6926 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6929 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6934 for (i = 0; i < 256; i++)
6935 if (XOR (islower (i), ISLOWER (i))
6936 || toupper (i) != TOUPPER (i))
6941 rm -f conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; }; then
6954 echo "$as_me: program exited with status $ac_status" >&5
6955 echo "$as_me: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6958 ac_cv_header_stdc=no
6960 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6964 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6965 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6966 if test $ac_cv_header_stdc = yes; then
6968 cat >>confdefs.h <<\_ACEOF
6969 #define STDC_HEADERS 1
6974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6985 inttypes.h stdint.h unistd.h
6987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6988 echo "$as_me:$LINENO: checking for $ac_header" >&5
6989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 cat >conftest.$ac_ext <<_ACEOF
6994 #line $LINENO "configure"
6995 #include "confdefs.h"
6996 $ac_includes_default
6998 #include <$ac_header>
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } &&
7006 { ac_try='test -s conftest.$ac_objext'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7012 eval "$as_ac_Header=yes"
7014 echo "$as_me: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7016 eval "$as_ac_Header=no"
7018 rm -f conftest.$ac_objext conftest.$ac_ext
7020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7023 cat >>confdefs.h <<_ACEOF
7024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7053 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
7055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7057 echo "$as_me:$LINENO: checking for $ac_header" >&5
7058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7065 # Is the header compilable?
7066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7068 cat >conftest.$ac_ext <<_ACEOF
7069 #line $LINENO "configure"
7070 #include "confdefs.h"
7071 $ac_includes_default
7072 #include <$ac_header>
7074 rm -f conftest.$ac_objext
7075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7076 (eval $ac_compile) 2>&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } &&
7080 { ac_try='test -s conftest.$ac_objext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 ac_header_compiler=yes
7088 echo "$as_me: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7090 ac_header_compiler=no
7092 rm -f conftest.$ac_objext conftest.$ac_ext
7093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7094 echo "${ECHO_T}$ac_header_compiler" >&6
7096 # Is the header present?
7097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7099 cat >conftest.$ac_ext <<_ACEOF
7100 #line $LINENO "configure"
7101 #include "confdefs.h"
7102 #include <$ac_header>
7104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7107 egrep -v '^ *\+' conftest.er1 >conftest.err
7109 cat conftest.err >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } >/dev/null; then
7112 if test -s conftest.err; then
7113 ac_cpp_err=$ac_c_preproc_warn_flag
7120 if test -z "$ac_cpp_err"; then
7121 ac_header_preproc=yes
7123 echo "$as_me: failed program was:" >&5
7124 cat conftest.$ac_ext >&5
7125 ac_header_preproc=no
7127 rm -f conftest.err conftest.$ac_ext
7128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7129 echo "${ECHO_T}$ac_header_preproc" >&6
7131 # So? What about this header?
7132 case $ac_header_compiler:$ac_header_preproc in
7134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7146 echo "$as_me:$LINENO: checking for $ac_header" >&5
7147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 eval "$as_ac_Header=$ac_header_preproc"
7153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7158 cat >>confdefs.h <<_ACEOF
7159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7167 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7168 # netinet/in.h is included first.
7170 for ac_header in netinet/in.h
7172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7174 echo "$as_me:$LINENO: checking for $ac_header" >&5
7175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7182 # Is the header compilable?
7183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7185 cat >conftest.$ac_ext <<_ACEOF
7186 #line $LINENO "configure"
7187 #include "confdefs.h"
7188 $ac_includes_default
7189 #include <$ac_header>
7191 rm -f conftest.$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -s conftest.$ac_objext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_header_compiler=yes
7205 echo "$as_me: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7207 ac_header_compiler=no
7209 rm -f conftest.$ac_objext conftest.$ac_ext
7210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7211 echo "${ECHO_T}$ac_header_compiler" >&6
7213 # Is the header present?
7214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7216 cat >conftest.$ac_ext <<_ACEOF
7217 #line $LINENO "configure"
7218 #include "confdefs.h"
7219 #include <$ac_header>
7221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7224 egrep -v '^ *\+' conftest.er1 >conftest.err
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } >/dev/null; then
7229 if test -s conftest.err; then
7230 ac_cpp_err=$ac_c_preproc_warn_flag
7237 if test -z "$ac_cpp_err"; then
7238 ac_header_preproc=yes
7240 echo "$as_me: failed program was:" >&5
7241 cat conftest.$ac_ext >&5
7242 ac_header_preproc=no
7244 rm -f conftest.err conftest.$ac_ext
7245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7246 echo "${ECHO_T}$ac_header_preproc" >&6
7248 # So? What about this header?
7249 case $ac_header_compiler:$ac_header_preproc in
7251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7263 echo "$as_me:$LINENO: checking for $ac_header" >&5
7264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 eval "$as_ac_Header=$ac_header_preproc"
7270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7275 cat >>confdefs.h <<_ACEOF
7276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7284 for ac_header in netinet/tcp.h
7286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7287 echo "$as_me:$LINENO: checking for $ac_header" >&5
7288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 cat >conftest.$ac_ext <<_ACEOF
7293 #line $LINENO "configure"
7294 #include "confdefs.h"
7295 $ac_includes_default
7296 #ifdef HAVE_NETINET_IN_H
7297 #include <netinet/in.h>
7301 #include <$ac_header>
7303 rm -f conftest.$ac_objext
7304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7305 (eval $ac_compile) 2>&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -s conftest.$ac_objext'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; }; then
7315 eval "$as_ac_Header=yes"
7317 echo "$as_me: failed program was:" >&5
7318 cat conftest.$ac_ext >&5
7319 eval "$as_ac_Header=no"
7321 rm -f conftest.$ac_objext conftest.$ac_ext
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7326 cat >>confdefs.h <<_ACEOF
7327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7335 if test "$with_readline" = yes; then
7337 for ac_header in readline/readline.h
7339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7341 echo "$as_me:$LINENO: checking for $ac_header" >&5
7342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7349 # Is the header compilable?
7350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7352 cat >conftest.$ac_ext <<_ACEOF
7353 #line $LINENO "configure"
7354 #include "confdefs.h"
7355 $ac_includes_default
7356 #include <$ac_header>
7358 rm -f conftest.$ac_objext
7359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360 (eval $ac_compile) 2>&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } &&
7364 { ac_try='test -s conftest.$ac_objext'
7365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; }; then
7370 ac_header_compiler=yes
7372 echo "$as_me: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7374 ac_header_compiler=no
7376 rm -f conftest.$ac_objext conftest.$ac_ext
7377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7378 echo "${ECHO_T}$ac_header_compiler" >&6
7380 # Is the header present?
7381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7383 cat >conftest.$ac_ext <<_ACEOF
7384 #line $LINENO "configure"
7385 #include "confdefs.h"
7386 #include <$ac_header>
7388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7391 egrep -v '^ *\+' conftest.er1 >conftest.err
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } >/dev/null; then
7396 if test -s conftest.err; then
7397 ac_cpp_err=$ac_c_preproc_warn_flag
7404 if test -z "$ac_cpp_err"; then
7405 ac_header_preproc=yes
7407 echo "$as_me: failed program was:" >&5
7408 cat conftest.$ac_ext >&5
7409 ac_header_preproc=no
7411 rm -f conftest.err conftest.$ac_ext
7412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7413 echo "${ECHO_T}$ac_header_preproc" >&6
7415 # So? What about this header?
7416 case $ac_header_compiler:$ac_header_preproc in
7418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7430 echo "$as_me:$LINENO: checking for $ac_header" >&5
7431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 eval "$as_ac_Header=$ac_header_preproc"
7437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7442 cat >>confdefs.h <<_ACEOF
7443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7448 for ac_header in editline/readline.h
7450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452 echo "$as_me:$LINENO: checking for $ac_header" >&5
7453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7460 # Is the header compilable?
7461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7464 #line $LINENO "configure"
7465 #include "confdefs.h"
7466 $ac_includes_default
7467 #include <$ac_header>
7469 rm -f conftest.$ac_objext
7470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7471 (eval $ac_compile) 2>&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
7475 { ac_try='test -s conftest.$ac_objext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_header_compiler=yes
7483 echo "$as_me: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7485 ac_header_compiler=no
7487 rm -f conftest.$ac_objext conftest.$ac_ext
7488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7489 echo "${ECHO_T}$ac_header_compiler" >&6
7491 # Is the header present?
7492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7494 cat >conftest.$ac_ext <<_ACEOF
7495 #line $LINENO "configure"
7496 #include "confdefs.h"
7497 #include <$ac_header>
7499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7502 egrep -v '^ *\+' conftest.er1 >conftest.err
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } >/dev/null; then
7507 if test -s conftest.err; then
7508 ac_cpp_err=$ac_c_preproc_warn_flag
7515 if test -z "$ac_cpp_err"; then
7516 ac_header_preproc=yes
7518 echo "$as_me: failed program was:" >&5
7519 cat conftest.$ac_ext >&5
7520 ac_header_preproc=no
7522 rm -f conftest.err conftest.$ac_ext
7523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7524 echo "${ECHO_T}$ac_header_preproc" >&6
7526 # So? What about this header?
7527 case $ac_header_compiler:$ac_header_preproc in
7529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7541 echo "$as_me:$LINENO: checking for $ac_header" >&5
7542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 eval "$as_ac_Header=$ac_header_preproc"
7548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7553 cat >>confdefs.h <<_ACEOF
7554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7559 for ac_header in readline.h
7561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7563 echo "$as_me:$LINENO: checking for $ac_header" >&5
7564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7571 # Is the header compilable?
7572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7574 cat >conftest.$ac_ext <<_ACEOF
7575 #line $LINENO "configure"
7576 #include "confdefs.h"
7577 $ac_includes_default
7578 #include <$ac_header>
7580 rm -f conftest.$ac_objext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582 (eval $ac_compile) 2>&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } &&
7586 { ac_try='test -s conftest.$ac_objext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_header_compiler=yes
7594 echo "$as_me: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7596 ac_header_compiler=no
7598 rm -f conftest.$ac_objext conftest.$ac_ext
7599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7600 echo "${ECHO_T}$ac_header_compiler" >&6
7602 # Is the header present?
7603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7605 cat >conftest.$ac_ext <<_ACEOF
7606 #line $LINENO "configure"
7607 #include "confdefs.h"
7608 #include <$ac_header>
7610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7613 egrep -v '^ *\+' conftest.er1 >conftest.err
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } >/dev/null; then
7618 if test -s conftest.err; then
7619 ac_cpp_err=$ac_c_preproc_warn_flag
7626 if test -z "$ac_cpp_err"; then
7627 ac_header_preproc=yes
7629 echo "$as_me: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7631 ac_header_preproc=no
7633 rm -f conftest.err conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7635 echo "${ECHO_T}$ac_header_preproc" >&6
7637 # So? What about this header?
7638 case $ac_header_compiler:$ac_header_preproc in
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7652 echo "$as_me:$LINENO: checking for $ac_header" >&5
7653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 eval "$as_ac_Header=$ac_header_preproc"
7659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7664 cat >>confdefs.h <<_ACEOF
7665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7669 { { echo "$as_me:$LINENO: error: readline header not found
7670 If you have readline already installed, see config.log for details on the
7671 failure. It is possible the compiler isn't looking in the proper directory.
7672 Use --without-readline to disable readline support." >&5
7673 echo "$as_me: error: readline header not found
7674 If you have readline already installed, see config.log for details on the
7675 failure. It is possible the compiler isn't looking in the proper directory.
7676 Use --without-readline to disable readline support." >&2;}
7677 { (exit 1); exit 1; }; }
7691 for ac_header in readline/history.h
7693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7695 echo "$as_me:$LINENO: checking for $ac_header" >&5
7696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7703 # Is the header compilable?
7704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7706 cat >conftest.$ac_ext <<_ACEOF
7707 #line $LINENO "configure"
7708 #include "confdefs.h"
7709 $ac_includes_default
7710 #include <$ac_header>
7712 rm -f conftest.$ac_objext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7714 (eval $ac_compile) 2>&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try='test -s conftest.$ac_objext'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 ac_header_compiler=yes
7726 echo "$as_me: failed program was:" >&5
7727 cat conftest.$ac_ext >&5
7728 ac_header_compiler=no
7730 rm -f conftest.$ac_objext conftest.$ac_ext
7731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7732 echo "${ECHO_T}$ac_header_compiler" >&6
7734 # Is the header present?
7735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7737 cat >conftest.$ac_ext <<_ACEOF
7738 #line $LINENO "configure"
7739 #include "confdefs.h"
7740 #include <$ac_header>
7742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7745 egrep -v '^ *\+' conftest.er1 >conftest.err
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } >/dev/null; then
7750 if test -s conftest.err; then
7751 ac_cpp_err=$ac_c_preproc_warn_flag
7758 if test -z "$ac_cpp_err"; then
7759 ac_header_preproc=yes
7761 echo "$as_me: failed program was:" >&5
7762 cat conftest.$ac_ext >&5
7763 ac_header_preproc=no
7765 rm -f conftest.err conftest.$ac_ext
7766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7767 echo "${ECHO_T}$ac_header_preproc" >&6
7769 # So? What about this header?
7770 case $ac_header_compiler:$ac_header_preproc in
7772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7784 echo "$as_me:$LINENO: checking for $ac_header" >&5
7785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 eval "$as_ac_Header=$ac_header_preproc"
7791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7796 cat >>confdefs.h <<_ACEOF
7797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7802 for ac_header in editline/history.h
7804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7806 echo "$as_me:$LINENO: checking for $ac_header" >&5
7807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7814 # Is the header compilable?
7815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7817 cat >conftest.$ac_ext <<_ACEOF
7818 #line $LINENO "configure"
7819 #include "confdefs.h"
7820 $ac_includes_default
7821 #include <$ac_header>
7823 rm -f conftest.$ac_objext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825 (eval $ac_compile) 2>&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -s conftest.$ac_objext'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835 ac_header_compiler=yes
7837 echo "$as_me: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 ac_header_compiler=no
7841 rm -f conftest.$ac_objext conftest.$ac_ext
7842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7843 echo "${ECHO_T}$ac_header_compiler" >&6
7845 # Is the header present?
7846 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7848 cat >conftest.$ac_ext <<_ACEOF
7849 #line $LINENO "configure"
7850 #include "confdefs.h"
7851 #include <$ac_header>
7853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7856 egrep -v '^ *\+' conftest.er1 >conftest.err
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } >/dev/null; then
7861 if test -s conftest.err; then
7862 ac_cpp_err=$ac_c_preproc_warn_flag
7869 if test -z "$ac_cpp_err"; then
7870 ac_header_preproc=yes
7872 echo "$as_me: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7874 ac_header_preproc=no
7876 rm -f conftest.err conftest.$ac_ext
7877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7878 echo "${ECHO_T}$ac_header_preproc" >&6
7880 # So? What about this header?
7881 case $ac_header_compiler:$ac_header_preproc in
7883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7895 echo "$as_me:$LINENO: checking for $ac_header" >&5
7896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 eval "$as_ac_Header=$ac_header_preproc"
7902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7907 cat >>confdefs.h <<_ACEOF
7908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7913 for ac_header in history.h
7915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7917 echo "$as_me:$LINENO: checking for $ac_header" >&5
7918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925 # Is the header compilable?
7926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7929 #line $LINENO "configure"
7930 #include "confdefs.h"
7931 $ac_includes_default
7932 #include <$ac_header>
7934 rm -f conftest.$ac_objext
7935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7936 (eval $ac_compile) 2>&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } &&
7940 { ac_try='test -s conftest.$ac_objext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 ac_header_compiler=yes
7948 echo "$as_me: failed program was:" >&5
7949 cat conftest.$ac_ext >&5
7950 ac_header_compiler=no
7952 rm -f conftest.$ac_objext conftest.$ac_ext
7953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7954 echo "${ECHO_T}$ac_header_compiler" >&6
7956 # Is the header present?
7957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7959 cat >conftest.$ac_ext <<_ACEOF
7960 #line $LINENO "configure"
7961 #include "confdefs.h"
7962 #include <$ac_header>
7964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7967 egrep -v '^ *\+' conftest.er1 >conftest.err
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } >/dev/null; then
7972 if test -s conftest.err; then
7973 ac_cpp_err=$ac_c_preproc_warn_flag
7980 if test -z "$ac_cpp_err"; then
7981 ac_header_preproc=yes
7983 echo "$as_me: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7985 ac_header_preproc=no
7987 rm -f conftest.err conftest.$ac_ext
7988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7989 echo "${ECHO_T}$ac_header_preproc" >&6
7991 # So? What about this header?
7992 case $ac_header_compiler:$ac_header_preproc in
7994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8006 echo "$as_me:$LINENO: checking for $ac_header" >&5
8007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 eval "$as_ac_Header=$ac_header_preproc"
8013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8018 cat >>confdefs.h <<_ACEOF
8019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8023 { { echo "$as_me:$LINENO: error: history header not found
8024 If you have readline already installed, see config.log for details on the
8025 failure. It is possible the compiler isn't looking in the proper directory.
8026 Use --without-readline to disable readline support." >&5
8027 echo "$as_me: error: history header not found
8028 If you have readline already installed, see config.log for details on the
8029 failure. It is possible the compiler isn't looking in the proper directory.
8030 Use --without-readline to disable readline support." >&2;}
8031 { (exit 1); exit 1; }; }
8046 if test "$with_zlib" = yes; then
8047 if test "${ac_cv_header_zlib_h+set}" = set; then
8048 echo "$as_me:$LINENO: checking for zlib.h" >&5
8049 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8050 if test "${ac_cv_header_zlib_h+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8054 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8056 # Is the header compilable?
8057 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8058 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8059 cat >conftest.$ac_ext <<_ACEOF
8060 #line $LINENO "configure"
8061 #include "confdefs.h"
8062 $ac_includes_default
8065 rm -f conftest.$ac_objext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8067 (eval $ac_compile) 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
8071 { ac_try='test -s conftest.$ac_objext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 ac_header_compiler=yes
8079 echo "$as_me: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8081 ac_header_compiler=no
8083 rm -f conftest.$ac_objext conftest.$ac_ext
8084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8085 echo "${ECHO_T}$ac_header_compiler" >&6
8087 # Is the header present?
8088 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8089 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8090 cat >conftest.$ac_ext <<_ACEOF
8091 #line $LINENO "configure"
8092 #include "confdefs.h"
8095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8098 egrep -v '^ *\+' conftest.er1 >conftest.err
8100 cat conftest.err >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } >/dev/null; then
8103 if test -s conftest.err; then
8104 ac_cpp_err=$ac_c_preproc_warn_flag
8111 if test -z "$ac_cpp_err"; then
8112 ac_header_preproc=yes
8114 echo "$as_me: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8116 ac_header_preproc=no
8118 rm -f conftest.err conftest.$ac_ext
8119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8120 echo "${ECHO_T}$ac_header_preproc" >&6
8122 # So? What about this header?
8123 case $ac_header_compiler:$ac_header_preproc in
8125 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8126 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8128 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8130 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8131 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8133 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8135 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8137 echo "$as_me:$LINENO: checking for zlib.h" >&5
8138 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8139 if test "${ac_cv_header_zlib_h+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 ac_cv_header_zlib_h=$ac_header_preproc
8144 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8145 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8148 if test $ac_cv_header_zlib_h = yes; then
8151 { { echo "$as_me:$LINENO: error: zlib header not found
8152 If you have zlib already installed, see config.log for details on the
8153 failure. It is possible the compiler isn't looking in the proper directory.
8154 Use --without-zlib to disable zlib support." >&5
8155 echo "$as_me: error: zlib header not found
8156 If you have zlib already installed, see config.log for details on the
8157 failure. It is possible the compiler isn't looking in the proper directory.
8158 Use --without-zlib to disable zlib support." >&2;}
8159 { (exit 1); exit 1; }; }
8165 if test "$with_krb4" = yes ; then
8166 if test "${ac_cv_header_krb_h+set}" = set; then
8167 echo "$as_me:$LINENO: checking for krb.h" >&5
8168 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8169 if test "${ac_cv_header_krb_h+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8173 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8175 # Is the header compilable?
8176 echo "$as_me:$LINENO: checking krb.h usability" >&5
8177 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8178 cat >conftest.$ac_ext <<_ACEOF
8179 #line $LINENO "configure"
8180 #include "confdefs.h"
8181 $ac_includes_default
8184 rm -f conftest.$ac_objext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186 (eval $ac_compile) 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -s conftest.$ac_objext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8196 ac_header_compiler=yes
8198 echo "$as_me: failed program was:" >&5
8199 cat conftest.$ac_ext >&5
8200 ac_header_compiler=no
8202 rm -f conftest.$ac_objext conftest.$ac_ext
8203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8204 echo "${ECHO_T}$ac_header_compiler" >&6
8206 # Is the header present?
8207 echo "$as_me:$LINENO: checking krb.h presence" >&5
8208 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8209 cat >conftest.$ac_ext <<_ACEOF
8210 #line $LINENO "configure"
8211 #include "confdefs.h"
8214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8217 egrep -v '^ *\+' conftest.er1 >conftest.err
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } >/dev/null; then
8222 if test -s conftest.err; then
8223 ac_cpp_err=$ac_c_preproc_warn_flag
8230 if test -z "$ac_cpp_err"; then
8231 ac_header_preproc=yes
8233 echo "$as_me: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8235 ac_header_preproc=no
8237 rm -f conftest.err conftest.$ac_ext
8238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8239 echo "${ECHO_T}$ac_header_preproc" >&6
8241 # So? What about this header?
8242 case $ac_header_compiler:$ac_header_preproc in
8244 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8245 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8246 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8247 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8249 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8250 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8251 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8252 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8253 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8254 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8256 echo "$as_me:$LINENO: checking for krb.h" >&5
8257 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8258 if test "${ac_cv_header_krb_h+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 ac_cv_header_krb_h=$ac_header_preproc
8263 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8264 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8267 if test $ac_cv_header_krb_h = yes; then
8270 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8271 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8272 { (exit 1); exit 1; }; }
8278 if test "$with_krb5" = yes ; then
8279 if test "${ac_cv_header_krb5_h+set}" = set; then
8280 echo "$as_me:$LINENO: checking for krb5.h" >&5
8281 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8282 if test "${ac_cv_header_krb5_h+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8286 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8288 # Is the header compilable?
8289 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8290 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8291 cat >conftest.$ac_ext <<_ACEOF
8292 #line $LINENO "configure"
8293 #include "confdefs.h"
8294 $ac_includes_default
8297 rm -f conftest.$ac_objext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8299 (eval $ac_compile) 2>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -s conftest.$ac_objext'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 ac_header_compiler=yes
8311 echo "$as_me: failed program was:" >&5
8312 cat conftest.$ac_ext >&5
8313 ac_header_compiler=no
8315 rm -f conftest.$ac_objext conftest.$ac_ext
8316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8317 echo "${ECHO_T}$ac_header_compiler" >&6
8319 # Is the header present?
8320 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8321 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8322 cat >conftest.$ac_ext <<_ACEOF
8323 #line $LINENO "configure"
8324 #include "confdefs.h"
8327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8330 egrep -v '^ *\+' conftest.er1 >conftest.err
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } >/dev/null; then
8335 if test -s conftest.err; then
8336 ac_cpp_err=$ac_c_preproc_warn_flag
8343 if test -z "$ac_cpp_err"; then
8344 ac_header_preproc=yes
8346 echo "$as_me: failed program was:" >&5
8347 cat conftest.$ac_ext >&5
8348 ac_header_preproc=no
8350 rm -f conftest.err conftest.$ac_ext
8351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8352 echo "${ECHO_T}$ac_header_preproc" >&6
8354 # So? What about this header?
8355 case $ac_header_compiler:$ac_header_preproc in
8357 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8358 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8360 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8362 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8363 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8365 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8367 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8369 echo "$as_me:$LINENO: checking for krb5.h" >&5
8370 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8371 if test "${ac_cv_header_krb5_h+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 ac_cv_header_krb5_h=$ac_header_preproc
8376 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8377 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8380 if test $ac_cv_header_krb5_h = yes; then
8383 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8384 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8385 { (exit 1); exit 1; }; }
8389 if test "${ac_cv_header_com_err_h+set}" = set; then
8390 echo "$as_me:$LINENO: checking for com_err.h" >&5
8391 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8392 if test "${ac_cv_header_com_err_h+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8396 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8398 # Is the header compilable?
8399 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8400 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8401 cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8403 #include "confdefs.h"
8404 $ac_includes_default
8405 #include <com_err.h>
8407 rm -f conftest.$ac_objext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8409 (eval $ac_compile) 2>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest.$ac_objext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_header_compiler=yes
8421 echo "$as_me: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 ac_header_compiler=no
8425 rm -f conftest.$ac_objext conftest.$ac_ext
8426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8427 echo "${ECHO_T}$ac_header_compiler" >&6
8429 # Is the header present?
8430 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8431 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8432 cat >conftest.$ac_ext <<_ACEOF
8433 #line $LINENO "configure"
8434 #include "confdefs.h"
8435 #include <com_err.h>
8437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8440 egrep -v '^ *\+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } >/dev/null; then
8445 if test -s conftest.err; then
8446 ac_cpp_err=$ac_c_preproc_warn_flag
8453 if test -z "$ac_cpp_err"; then
8454 ac_header_preproc=yes
8456 echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8458 ac_header_preproc=no
8460 rm -f conftest.err conftest.$ac_ext
8461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8462 echo "${ECHO_T}$ac_header_preproc" >&6
8464 # So? What about this header?
8465 case $ac_header_compiler:$ac_header_preproc in
8467 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8468 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8470 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8472 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8473 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8475 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8477 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8479 echo "$as_me:$LINENO: checking for com_err.h" >&5
8480 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8481 if test "${ac_cv_header_com_err_h+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 ac_cv_header_com_err_h=$ac_header_preproc
8486 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8487 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8490 if test $ac_cv_header_com_err_h = yes; then
8493 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8494 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8495 { (exit 1); exit 1; }; }
8501 if test "$with_openssl" = yes ; then
8502 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8503 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8504 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8505 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8509 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8511 # Is the header compilable?
8512 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8513 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8514 cat >conftest.$ac_ext <<_ACEOF
8515 #line $LINENO "configure"
8516 #include "confdefs.h"
8517 $ac_includes_default
8518 #include <openssl/ssl.h>
8520 rm -f conftest.$ac_objext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_header_compiler=yes
8534 echo "$as_me: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8536 ac_header_compiler=no
8538 rm -f conftest.$ac_objext conftest.$ac_ext
8539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8540 echo "${ECHO_T}$ac_header_compiler" >&6
8542 # Is the header present?
8543 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8544 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8545 cat >conftest.$ac_ext <<_ACEOF
8546 #line $LINENO "configure"
8547 #include "confdefs.h"
8548 #include <openssl/ssl.h>
8550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8553 egrep -v '^ *\+' conftest.er1 >conftest.err
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } >/dev/null; then
8558 if test -s conftest.err; then
8559 ac_cpp_err=$ac_c_preproc_warn_flag
8566 if test -z "$ac_cpp_err"; then
8567 ac_header_preproc=yes
8569 echo "$as_me: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8571 ac_header_preproc=no
8573 rm -f conftest.err conftest.$ac_ext
8574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8575 echo "${ECHO_T}$ac_header_preproc" >&6
8577 # So? What about this header?
8578 case $ac_header_compiler:$ac_header_preproc in
8580 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8581 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8583 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8585 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8586 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8588 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8590 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8592 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8593 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8594 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8599 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8600 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8603 if test $ac_cv_header_openssl_ssl_h = yes; then
8606 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8607 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8608 { (exit 1); exit 1; }; }
8612 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8613 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8614 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8615 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8619 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8621 # Is the header compilable?
8622 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8623 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8624 cat >conftest.$ac_ext <<_ACEOF
8625 #line $LINENO "configure"
8626 #include "confdefs.h"
8627 $ac_includes_default
8628 #include <openssl/err.h>
8630 rm -f conftest.$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632 (eval $ac_compile) 2>&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -s conftest.$ac_objext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 ac_header_compiler=yes
8644 echo "$as_me: failed program was:" >&5
8645 cat conftest.$ac_ext >&5
8646 ac_header_compiler=no
8648 rm -f conftest.$ac_objext conftest.$ac_ext
8649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8650 echo "${ECHO_T}$ac_header_compiler" >&6
8652 # Is the header present?
8653 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8654 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8655 cat >conftest.$ac_ext <<_ACEOF
8656 #line $LINENO "configure"
8657 #include "confdefs.h"
8658 #include <openssl/err.h>
8660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8663 egrep -v '^ *\+' conftest.er1 >conftest.err
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } >/dev/null; then
8668 if test -s conftest.err; then
8669 ac_cpp_err=$ac_c_preproc_warn_flag
8676 if test -z "$ac_cpp_err"; then
8677 ac_header_preproc=yes
8679 echo "$as_me: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8681 ac_header_preproc=no
8683 rm -f conftest.err conftest.$ac_ext
8684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8685 echo "${ECHO_T}$ac_header_preproc" >&6
8687 # So? What about this header?
8688 case $ac_header_compiler:$ac_header_preproc in
8690 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8691 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8692 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8693 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8695 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8696 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8697 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8698 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8700 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8702 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8703 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8704 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 ac_cv_header_openssl_err_h=$ac_header_preproc
8709 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8710 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8713 if test $ac_cv_header_openssl_err_h = yes; then
8716 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8717 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8718 { (exit 1); exit 1; }; }
8724 if test "$with_pam" = yes ; then
8726 for ac_header in security/pam_appl.h
8728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8730 echo "$as_me:$LINENO: checking for $ac_header" >&5
8731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8738 # Is the header compilable?
8739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8741 cat >conftest.$ac_ext <<_ACEOF
8742 #line $LINENO "configure"
8743 #include "confdefs.h"
8744 $ac_includes_default
8745 #include <$ac_header>
8747 rm -f conftest.$ac_objext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -s conftest.$ac_objext'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; }; then
8759 ac_header_compiler=yes
8761 echo "$as_me: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8763 ac_header_compiler=no
8765 rm -f conftest.$ac_objext conftest.$ac_ext
8766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8767 echo "${ECHO_T}$ac_header_compiler" >&6
8769 # Is the header present?
8770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8774 #include "confdefs.h"
8775 #include <$ac_header>
8777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8780 egrep -v '^ *\+' conftest.er1 >conftest.err
8782 cat conftest.err >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } >/dev/null; then
8785 if test -s conftest.err; then
8786 ac_cpp_err=$ac_c_preproc_warn_flag
8793 if test -z "$ac_cpp_err"; then
8794 ac_header_preproc=yes
8796 echo "$as_me: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8798 ac_header_preproc=no
8800 rm -f conftest.err conftest.$ac_ext
8801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8802 echo "${ECHO_T}$ac_header_preproc" >&6
8804 # So? What about this header?
8805 case $ac_header_compiler:$ac_header_preproc in
8807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8819 echo "$as_me:$LINENO: checking for $ac_header" >&5
8820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 eval "$as_ac_Header=$ac_header_preproc"
8826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8831 cat >>confdefs.h <<_ACEOF
8832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8837 for ac_header in pam/pam_appl.h
8839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8841 echo "$as_me:$LINENO: checking for $ac_header" >&5
8842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8849 # Is the header compilable?
8850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8852 cat >conftest.$ac_ext <<_ACEOF
8853 #line $LINENO "configure"
8854 #include "confdefs.h"
8855 $ac_includes_default
8856 #include <$ac_header>
8858 rm -f conftest.$ac_objext
8859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8860 (eval $ac_compile) 2>&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } &&
8864 { ac_try='test -s conftest.$ac_objext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8870 ac_header_compiler=yes
8872 echo "$as_me: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8874 ac_header_compiler=no
8876 rm -f conftest.$ac_objext conftest.$ac_ext
8877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8878 echo "${ECHO_T}$ac_header_compiler" >&6
8880 # Is the header present?
8881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8883 cat >conftest.$ac_ext <<_ACEOF
8884 #line $LINENO "configure"
8885 #include "confdefs.h"
8886 #include <$ac_header>
8888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8891 egrep -v '^ *\+' conftest.er1 >conftest.err
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } >/dev/null; then
8896 if test -s conftest.err; then
8897 ac_cpp_err=$ac_c_preproc_warn_flag
8904 if test -z "$ac_cpp_err"; then
8905 ac_header_preproc=yes
8907 echo "$as_me: failed program was:" >&5
8908 cat conftest.$ac_ext >&5
8909 ac_header_preproc=no
8911 rm -f conftest.err conftest.$ac_ext
8912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8913 echo "${ECHO_T}$ac_header_preproc" >&6
8915 # So? What about this header?
8916 case $ac_header_compiler:$ac_header_preproc in
8918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8930 echo "$as_me:$LINENO: checking for $ac_header" >&5
8931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 eval "$as_ac_Header=$ac_header_preproc"
8937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8942 cat >>confdefs.h <<_ACEOF
8943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8947 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8948 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8949 { (exit 1); exit 1; }; }
8960 if test "$with_rendezvous" = yes ; then
8961 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8962 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8963 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8964 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8968 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8970 # Is the header compilable?
8971 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8972 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8973 cat >conftest.$ac_ext <<_ACEOF
8974 #line $LINENO "configure"
8975 #include "confdefs.h"
8976 $ac_includes_default
8977 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8979 rm -f conftest.$ac_objext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981 (eval $ac_compile) 2>&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -s conftest.$ac_objext'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 ac_header_compiler=yes
8993 echo "$as_me: failed program was:" >&5
8994 cat conftest.$ac_ext >&5
8995 ac_header_compiler=no
8997 rm -f conftest.$ac_objext conftest.$ac_ext
8998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8999 echo "${ECHO_T}$ac_header_compiler" >&6
9001 # Is the header present?
9002 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9003 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9004 cat >conftest.$ac_ext <<_ACEOF
9005 #line $LINENO "configure"
9006 #include "confdefs.h"
9007 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9012 egrep -v '^ *\+' conftest.er1 >conftest.err
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } >/dev/null; then
9017 if test -s conftest.err; then
9018 ac_cpp_err=$ac_c_preproc_warn_flag
9025 if test -z "$ac_cpp_err"; then
9026 ac_header_preproc=yes
9028 echo "$as_me: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9030 ac_header_preproc=no
9032 rm -f conftest.err conftest.$ac_ext
9033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9034 echo "${ECHO_T}$ac_header_preproc" >&6
9036 # So? What about this header?
9037 case $ac_header_compiler:$ac_header_preproc in
9039 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9040 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9042 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9044 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9045 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9047 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9049 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9051 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9052 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9053 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9058 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9059 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9062 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9065 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9066 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9067 { (exit 1); exit 1; }; }
9075 ## Types, structures, compiler characteristics
9079 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9080 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9081 if test "${ac_cv_c_const+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 cat >conftest.$ac_ext <<_ACEOF
9085 #line $LINENO "configure"
9086 #include "confdefs.h"
9088 #ifdef F77_DUMMY_MAIN
9092 int F77_DUMMY_MAIN() { return 1; }
9097 /* FIXME: Include the comments suggested by Paul. */
9099 /* Ultrix mips cc rejects this. */
9100 typedef int charset[2];
9102 /* SunOS 4.1.1 cc rejects this. */
9103 char const *const *ccp;
9105 /* NEC SVR4.0.2 mips cc rejects this. */
9106 struct point {int x, y;};
9107 static struct point const zero = {0,0};
9108 /* AIX XL C 1.02.0.0 rejects this.
9109 It does not let you subtract one const X* pointer from another in
9110 an arm of an if-expression whose if-part is not a constant
9112 const char *g = "string";
9113 ccp = &g + (g ? g-g : 0);
9114 /* HPUX 7.0 cc rejects these. */
9117 ccp = (char const *const *) p;
9118 { /* SCO 3.2v4 cc rejects this. */
9120 char const *s = 0 ? (char *) 0 : (char const *) 0;
9124 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9126 const int *foo = &x[0];
9129 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9130 typedef const int *iptr;
9134 { /* AIX XL C 1.02.0.0 rejects this saying
9135 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9136 struct s { int j; const int *ap[3]; };
9137 struct s *b; b->j = 5;
9139 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9148 rm -f conftest.$ac_objext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9150 (eval $ac_compile) 2>&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } &&
9154 { ac_try='test -s conftest.$ac_objext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9162 echo "$as_me: failed program was:" >&5
9163 cat conftest.$ac_ext >&5
9166 rm -f conftest.$ac_objext conftest.$ac_ext
9168 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9169 echo "${ECHO_T}$ac_cv_c_const" >&6
9170 if test $ac_cv_c_const = no; then
9172 cat >>confdefs.h <<\_ACEOF
9178 echo "$as_me:$LINENO: checking for inline" >&5
9179 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9180 if test "${ac_cv_c_inline+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 for ac_kw in inline __inline__ __inline; do
9185 cat >conftest.$ac_ext <<_ACEOF
9186 #line $LINENO "configure"
9187 #include "confdefs.h"
9189 static $ac_kw int static_foo () {return 0; }
9190 $ac_kw int foo () {return 0; }
9194 rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196 (eval $ac_compile) 2>&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try='test -s conftest.$ac_objext'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9206 ac_cv_c_inline=$ac_kw; break
9208 echo "$as_me: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9211 rm -f conftest.$ac_objext conftest.$ac_ext
9215 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9216 echo "${ECHO_T}$ac_cv_c_inline" >&6
9217 case $ac_cv_c_inline in
9220 cat >>confdefs.h <<\_ACEOF
9224 *) cat >>confdefs.h <<_ACEOF
9225 #define inline $ac_cv_c_inline
9230 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9231 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9232 if test "${ac_cv_c_stringize+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 cat >conftest.$ac_ext <<_ACEOF
9236 #line $LINENO "configure"
9237 #include "confdefs.h"
9240 char *s = x(teststring);
9242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9243 egrep "#teststring" >/dev/null 2>&1; then
9244 ac_cv_c_stringize=no
9246 ac_cv_c_stringize=yes
9251 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9252 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9253 if test $ac_cv_c_stringize = yes; then
9255 cat >>confdefs.h <<\_ACEOF
9256 #define HAVE_STRINGIZE 1
9261 echo "$as_me:$LINENO: checking for signed types" >&5
9262 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9263 if test "${pgac_cv_c_signed+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 cat >conftest.$ac_ext <<_ACEOF
9267 #line $LINENO "configure"
9268 #include "confdefs.h"
9270 #ifdef F77_DUMMY_MAIN
9274 int F77_DUMMY_MAIN() { return 1; }
9279 signed char c; signed short s; signed int i;
9284 rm -f conftest.$ac_objext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9286 (eval $ac_compile) 2>&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try='test -s conftest.$ac_objext'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9296 pgac_cv_c_signed=yes
9298 echo "$as_me: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9302 rm -f conftest.$ac_objext conftest.$ac_ext
9304 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9305 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9306 if test x"$pgac_cv_c_signed" = xno ; then
9308 cat >>confdefs.h <<\_ACEOF
9313 echo "$as_me:$LINENO: checking for working volatile" >&5
9314 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9315 if test "${ac_cv_c_volatile+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 cat >conftest.$ac_ext <<_ACEOF
9319 #line $LINENO "configure"
9320 #include "confdefs.h"
9322 #ifdef F77_DUMMY_MAIN
9326 int F77_DUMMY_MAIN() { return 1; }
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } &&
9344 { ac_try='test -s conftest.$ac_objext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 ac_cv_c_volatile=yes
9352 echo "$as_me: failed program was:" >&5
9353 cat conftest.$ac_ext >&5
9356 rm -f conftest.$ac_objext conftest.$ac_ext
9358 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9359 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9360 if test $ac_cv_c_volatile = no; then
9362 cat >>confdefs.h <<\_ACEOF
9368 echo "$as_me:$LINENO: checking for __func__" >&5
9369 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9370 if test "${pgac_cv_funcname_func_support+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 cat >conftest.$ac_ext <<_ACEOF
9374 #line $LINENO "configure"
9375 #include "confdefs.h"
9377 #ifdef F77_DUMMY_MAIN
9381 int F77_DUMMY_MAIN() { return 1; }
9386 printf("%s\n", __func__);
9391 rm -f conftest.$ac_objext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9393 (eval $ac_compile) 2>&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -s conftest.$ac_objext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 pgac_cv_funcname_func_support=yes
9405 echo "$as_me: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9407 pgac_cv_funcname_func_support=no
9409 rm -f conftest.$ac_objext conftest.$ac_ext
9411 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9412 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9413 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9415 cat >>confdefs.h <<\_ACEOF
9416 #define HAVE_FUNCNAME__FUNC 1
9420 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9421 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9422 if test "${pgac_cv_funcname_function_support+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 cat >conftest.$ac_ext <<_ACEOF
9426 #line $LINENO "configure"
9427 #include "confdefs.h"
9429 #ifdef F77_DUMMY_MAIN
9433 int F77_DUMMY_MAIN() { return 1; }
9438 printf("%s\n", __FUNCTION__);
9443 rm -f conftest.$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445 (eval $ac_compile) 2>&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try='test -s conftest.$ac_objext'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; }; then
9455 pgac_cv_funcname_function_support=yes
9457 echo "$as_me: failed program was:" >&5
9458 cat conftest.$ac_ext >&5
9459 pgac_cv_funcname_function_support=no
9461 rm -f conftest.$ac_objext conftest.$ac_ext
9463 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9464 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9465 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_FUNCNAME__FUNCTION 1
9473 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9474 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9475 if test "${ac_cv_struct_tm+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 cat >conftest.$ac_ext <<_ACEOF
9479 #line $LINENO "configure"
9480 #include "confdefs.h"
9481 #include <sys/types.h>
9484 #ifdef F77_DUMMY_MAIN
9488 int F77_DUMMY_MAIN() { return 1; }
9493 struct tm *tp; tp->tm_sec;
9498 rm -f conftest.$ac_objext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9500 (eval $ac_compile) 2>&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -s conftest.$ac_objext'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; }; then
9510 ac_cv_struct_tm=time.h
9512 echo "$as_me: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9514 ac_cv_struct_tm=sys/time.h
9516 rm -f conftest.$ac_objext conftest.$ac_ext
9518 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9519 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9520 if test $ac_cv_struct_tm = sys/time.h; then
9522 cat >>confdefs.h <<\_ACEOF
9523 #define TM_IN_SYS_TIME 1
9528 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9529 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9530 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 cat >conftest.$ac_ext <<_ACEOF
9534 #line $LINENO "configure"
9535 #include "confdefs.h"
9536 #include <sys/types.h>
9537 #include <$ac_cv_struct_tm>
9540 #ifdef F77_DUMMY_MAIN
9544 int F77_DUMMY_MAIN() { return 1; }
9549 static struct tm ac_aggr;
9550 if (ac_aggr.tm_zone)
9556 rm -f conftest.$ac_objext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558 (eval $ac_compile) 2>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -s conftest.$ac_objext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_member_struct_tm_tm_zone=yes
9570 echo "$as_me: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9572 ac_cv_member_struct_tm_tm_zone=no
9574 rm -f conftest.$ac_objext conftest.$ac_ext
9576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9577 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9578 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9580 cat >>confdefs.h <<_ACEOF
9581 #define HAVE_STRUCT_TM_TM_ZONE 1
9587 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9589 cat >>confdefs.h <<\_ACEOF
9590 #define HAVE_TM_ZONE 1
9594 echo "$as_me:$LINENO: checking for tzname" >&5
9595 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9596 if test "${ac_cv_var_tzname+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 cat >conftest.$ac_ext <<_ACEOF
9600 #line $LINENO "configure"
9601 #include "confdefs.h"
9603 #ifndef tzname /* For SGI. */
9604 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9607 #ifdef F77_DUMMY_MAIN
9611 int F77_DUMMY_MAIN() { return 1; }
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623 (eval $ac_link) 2>&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_var_tzname=yes
9635 echo "$as_me: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9641 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9642 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9643 if test $ac_cv_var_tzname = yes; then
9645 cat >>confdefs.h <<\_ACEOF
9646 #define HAVE_TZNAME 1
9651 echo "$as_me:$LINENO: checking for union semun" >&5
9652 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9653 if test "${ac_cv_type_union_semun+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 cat >conftest.$ac_ext <<_ACEOF
9657 #line $LINENO "configure"
9658 #include "confdefs.h"
9659 #include <sys/types.h>
9660 #include <sys/ipc.h>
9661 #include <sys/sem.h>
9663 #ifdef F77_DUMMY_MAIN
9667 int F77_DUMMY_MAIN() { return 1; }
9672 if ((union semun *) 0)
9674 if (sizeof (union semun))
9680 rm -f conftest.$ac_objext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9682 (eval $ac_compile) 2>&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -s conftest.$ac_objext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_type_union_semun=yes
9694 echo "$as_me: failed program was:" >&5
9695 cat conftest.$ac_ext >&5
9696 ac_cv_type_union_semun=no
9698 rm -f conftest.$ac_objext conftest.$ac_ext
9700 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9701 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9702 if test $ac_cv_type_union_semun = yes; then
9704 cat >>confdefs.h <<_ACEOF
9705 #define HAVE_UNION_SEMUN 1
9711 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9712 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9713 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 cat >conftest.$ac_ext <<_ACEOF
9717 #line $LINENO "configure"
9718 #include "confdefs.h"
9719 #include <sys/types.h>
9720 #ifdef HAVE_SYS_UN_H
9725 #ifdef F77_DUMMY_MAIN
9729 int F77_DUMMY_MAIN() { return 1; }
9734 if ((struct sockaddr_un *) 0)
9736 if (sizeof (struct sockaddr_un))
9742 rm -f conftest.$ac_objext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9744 (eval $ac_compile) 2>&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -s conftest.$ac_objext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_type_struct_sockaddr_un=yes
9756 echo "$as_me: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9758 ac_cv_type_struct_sockaddr_un=no
9760 rm -f conftest.$ac_objext conftest.$ac_ext
9762 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9763 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9764 if test $ac_cv_type_struct_sockaddr_un = yes; then
9766 cat >>confdefs.h <<_ACEOF
9767 #define HAVE_STRUCT_SOCKADDR_UN 1
9771 cat >>confdefs.h <<\_ACEOF
9772 #define HAVE_UNIX_SOCKETS 1
9777 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9778 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9779 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 cat >conftest.$ac_ext <<_ACEOF
9783 #line $LINENO "configure"
9784 #include "confdefs.h"
9785 #include <sys/types.h>
9786 #ifdef HAVE_SYS_SOCKET_H
9787 #include <sys/socket.h>
9791 #ifdef F77_DUMMY_MAIN
9795 int F77_DUMMY_MAIN() { return 1; }
9800 if ((struct sockaddr_storage *) 0)
9802 if (sizeof (struct sockaddr_storage))
9808 rm -f conftest.$ac_objext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9810 (eval $ac_compile) 2>&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try='test -s conftest.$ac_objext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_type_struct_sockaddr_storage=yes
9822 echo "$as_me: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9824 ac_cv_type_struct_sockaddr_storage=no
9826 rm -f conftest.$ac_objext conftest.$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9829 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9830 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9832 cat >>confdefs.h <<_ACEOF
9833 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9839 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9840 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9841 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 cat >conftest.$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9846 #include "confdefs.h"
9847 #include <sys/types.h>
9848 #ifdef HAVE_SYS_SOCKET_H
9849 #include <sys/socket.h>
9853 #ifdef F77_DUMMY_MAIN
9857 int F77_DUMMY_MAIN() { return 1; }
9862 static struct sockaddr_storage ac_aggr;
9863 if (ac_aggr.ss_family)
9869 rm -f conftest.$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871 (eval $ac_compile) 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_member_struct_sockaddr_storage_ss_family=yes
9883 echo "$as_me: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9885 ac_cv_member_struct_sockaddr_storage_ss_family=no
9887 rm -f conftest.$ac_objext conftest.$ac_ext
9889 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9890 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9891 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9893 cat >>confdefs.h <<_ACEOF
9894 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9899 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9900 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9901 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 cat >conftest.$ac_ext <<_ACEOF
9905 #line $LINENO "configure"
9906 #include "confdefs.h"
9907 #include <sys/types.h>
9908 #ifdef HAVE_SYS_SOCKET_H
9909 #include <sys/socket.h>
9913 #ifdef F77_DUMMY_MAIN
9917 int F77_DUMMY_MAIN() { return 1; }
9922 static struct sockaddr_storage ac_aggr;
9923 if (ac_aggr.__ss_family)
9929 rm -f conftest.$ac_objext
9930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9931 (eval $ac_compile) 2>&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
9935 { ac_try='test -s conftest.$ac_objext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 ac_cv_member_struct_sockaddr_storage___ss_family=yes
9943 echo "$as_me: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9945 ac_cv_member_struct_sockaddr_storage___ss_family=no
9947 rm -f conftest.$ac_objext conftest.$ac_ext
9949 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9950 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9951 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9953 cat >>confdefs.h <<_ACEOF
9954 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9959 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9960 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9961 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.$ac_ext <<_ACEOF
9965 #line $LINENO "configure"
9966 #include "confdefs.h"
9967 #include <sys/types.h>
9968 #ifdef HAVE_SYS_SOCKET_H
9969 #include <sys/socket.h>
9973 #ifdef F77_DUMMY_MAIN
9977 int F77_DUMMY_MAIN() { return 1; }
9982 static struct sockaddr_storage ac_aggr;
9989 rm -f conftest.$ac_objext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9991 (eval $ac_compile) 2>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -s conftest.$ac_objext'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
10001 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10003 echo "$as_me: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10005 ac_cv_member_struct_sockaddr_storage_ss_len=no
10007 rm -f conftest.$ac_objext conftest.$ac_ext
10009 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10010 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10011 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10013 cat >>confdefs.h <<_ACEOF
10014 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10019 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10020 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10021 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 cat >conftest.$ac_ext <<_ACEOF
10025 #line $LINENO "configure"
10026 #include "confdefs.h"
10027 #include <sys/types.h>
10028 #ifdef HAVE_SYS_SOCKET_H
10029 #include <sys/socket.h>
10033 #ifdef F77_DUMMY_MAIN
10034 # ifdef __cplusplus
10037 int F77_DUMMY_MAIN() { return 1; }
10042 static struct sockaddr_storage ac_aggr;
10043 if (ac_aggr.__ss_len)
10049 rm -f conftest.$ac_objext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051 (eval $ac_compile) 2>&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -s conftest.$ac_objext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10063 echo "$as_me: failed program was:" >&5
10064 cat conftest.$ac_ext >&5
10065 ac_cv_member_struct_sockaddr_storage___ss_len=no
10067 rm -f conftest.$ac_objext conftest.$ac_ext
10069 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10070 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10071 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10073 cat >>confdefs.h <<_ACEOF
10074 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10079 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10080 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10081 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 cat >conftest.$ac_ext <<_ACEOF
10085 #line $LINENO "configure"
10086 #include "confdefs.h"
10087 #include <sys/types.h>
10088 #ifdef HAVE_SYS_SOCKET_H
10089 #include <sys/socket.h>
10093 #ifdef F77_DUMMY_MAIN
10094 # ifdef __cplusplus
10097 int F77_DUMMY_MAIN() { return 1; }
10102 static struct sockaddr ac_aggr;
10103 if (ac_aggr.sa_len)
10109 rm -f conftest.$ac_objext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10111 (eval $ac_compile) 2>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } &&
10115 { ac_try='test -s conftest.$ac_objext'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
10121 ac_cv_member_struct_sockaddr_sa_len=yes
10123 echo "$as_me: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
10125 ac_cv_member_struct_sockaddr_sa_len=no
10127 rm -f conftest.$ac_objext conftest.$ac_ext
10129 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10130 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10131 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10133 cat >>confdefs.h <<_ACEOF
10134 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10140 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10141 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10142 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 cat >conftest.$ac_ext <<_ACEOF
10146 #line $LINENO "configure"
10147 #include "confdefs.h"
10148 #include <sys/types.h>
10149 #include <sys/socket.h>
10153 #ifdef F77_DUMMY_MAIN
10154 # ifdef __cplusplus
10157 int F77_DUMMY_MAIN() { return 1; }
10162 if ((struct addrinfo *) 0)
10164 if (sizeof (struct addrinfo))
10170 rm -f conftest.$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172 (eval $ac_compile) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -s conftest.$ac_objext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 ac_cv_type_struct_addrinfo=yes
10184 echo "$as_me: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10186 ac_cv_type_struct_addrinfo=no
10188 rm -f conftest.$ac_objext conftest.$ac_ext
10190 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10191 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10192 if test $ac_cv_type_struct_addrinfo = yes; then
10194 cat >>confdefs.h <<_ACEOF
10195 #define HAVE_STRUCT_ADDRINFO 1
10202 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10203 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10204 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10209 #include "confdefs.h"
10210 #include <sys/param.h>
10211 #include <sys/types.h>
10212 #include <sys/socket.h>
10213 #include <sys/ucred.h>
10215 #ifdef F77_DUMMY_MAIN
10216 # ifdef __cplusplus
10219 int F77_DUMMY_MAIN() { return 1; }
10224 if ((struct cmsgcred *) 0)
10226 if (sizeof (struct cmsgcred))
10232 rm -f conftest.$ac_objext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234 (eval $ac_compile) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -s conftest.$ac_objext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_cv_type_struct_cmsgcred=yes
10246 echo "$as_me: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 ac_cv_type_struct_cmsgcred=no
10250 rm -f conftest.$ac_objext conftest.$ac_ext
10252 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10253 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10254 if test $ac_cv_type_struct_cmsgcred = yes; then
10256 cat >>confdefs.h <<_ACEOF
10257 #define HAVE_STRUCT_CMSGCRED 1
10262 echo "$as_me:$LINENO: checking for struct fcred" >&5
10263 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10264 if test "${ac_cv_type_struct_fcred+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10269 #include "confdefs.h"
10270 #include <sys/param.h>
10271 #include <sys/types.h>
10272 #include <sys/socket.h>
10273 #include <sys/ucred.h>
10275 #ifdef F77_DUMMY_MAIN
10276 # ifdef __cplusplus
10279 int F77_DUMMY_MAIN() { return 1; }
10284 if ((struct fcred *) 0)
10286 if (sizeof (struct fcred))
10292 rm -f conftest.$ac_objext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294 (eval $ac_compile) 2>&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -s conftest.$ac_objext'
10299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300 (eval $ac_try) 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; }; then
10304 ac_cv_type_struct_fcred=yes
10306 echo "$as_me: failed program was:" >&5
10307 cat conftest.$ac_ext >&5
10308 ac_cv_type_struct_fcred=no
10310 rm -f conftest.$ac_objext conftest.$ac_ext
10312 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10313 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10314 if test $ac_cv_type_struct_fcred = yes; then
10316 cat >>confdefs.h <<_ACEOF
10317 #define HAVE_STRUCT_FCRED 1
10322 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10323 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10324 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 cat >conftest.$ac_ext <<_ACEOF
10328 #line $LINENO "configure"
10329 #include "confdefs.h"
10330 #include <sys/param.h>
10331 #include <sys/types.h>
10332 #include <sys/socket.h>
10333 #include <sys/ucred.h>
10335 #ifdef F77_DUMMY_MAIN
10336 # ifdef __cplusplus
10339 int F77_DUMMY_MAIN() { return 1; }
10344 if ((struct sockcred *) 0)
10346 if (sizeof (struct sockcred))
10352 rm -f conftest.$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
10358 { ac_try='test -s conftest.$ac_objext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10364 ac_cv_type_struct_sockcred=yes
10366 echo "$as_me: failed program was:" >&5
10367 cat conftest.$ac_ext >&5
10368 ac_cv_type_struct_sockcred=no
10370 rm -f conftest.$ac_objext conftest.$ac_ext
10372 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10373 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10374 if test $ac_cv_type_struct_sockcred = yes; then
10376 cat >>confdefs.h <<_ACEOF
10377 #define HAVE_STRUCT_SOCKCRED 1
10384 if test "$with_zlib" = yes; then
10385 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10386 # did not). While we could work around the lack of z_streamp, it
10387 # seems unwise to encourage people to use such old zlib versions...
10388 echo "$as_me:$LINENO: checking for z_streamp" >&5
10389 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10390 if test "${ac_cv_type_z_streamp+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 cat >conftest.$ac_ext <<_ACEOF
10394 #line $LINENO "configure"
10395 #include "confdefs.h"
10398 #ifdef F77_DUMMY_MAIN
10399 # ifdef __cplusplus
10402 int F77_DUMMY_MAIN() { return 1; }
10407 if ((z_streamp *) 0)
10409 if (sizeof (z_streamp))
10415 rm -f conftest.$ac_objext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10417 (eval $ac_compile) 2>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -s conftest.$ac_objext'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }; then
10427 ac_cv_type_z_streamp=yes
10429 echo "$as_me: failed program was:" >&5
10430 cat conftest.$ac_ext >&5
10431 ac_cv_type_z_streamp=no
10433 rm -f conftest.$ac_objext conftest.$ac_ext
10435 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10436 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10437 if test $ac_cv_type_z_streamp = yes; then
10440 { { echo "$as_me:$LINENO: error: zlib version is too old
10441 Use --without-zlib to disable zlib support." >&5
10442 echo "$as_me: error: zlib version is too old
10443 Use --without-zlib to disable zlib support." >&2;}
10444 { (exit 1); exit 1; }; }
10449 if test "$with_krb5" = yes; then
10450 # Check for differences between MIT and Heimdal (KTH) releases
10451 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10452 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10453 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10458 #include "confdefs.h"
10461 #ifdef F77_DUMMY_MAIN
10462 # ifdef __cplusplus
10465 int F77_DUMMY_MAIN() { return 1; }
10470 static krb5_ticket ac_aggr;
10471 if (ac_aggr.enc_part2)
10477 rm -f conftest.$ac_objext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10479 (eval $ac_compile) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -s conftest.$ac_objext'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
10489 ac_cv_member_krb5_ticket_enc_part2=yes
10491 echo "$as_me: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10493 ac_cv_member_krb5_ticket_enc_part2=no
10495 rm -f conftest.$ac_objext conftest.$ac_ext
10497 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10498 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10499 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10501 cat >>confdefs.h <<_ACEOF
10502 #define HAVE_KRB5_TICKET_ENC_PART2 1
10507 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10508 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10509 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 cat >conftest.$ac_ext <<_ACEOF
10513 #line $LINENO "configure"
10514 #include "confdefs.h"
10517 #ifdef F77_DUMMY_MAIN
10518 # ifdef __cplusplus
10521 int F77_DUMMY_MAIN() { return 1; }
10526 static krb5_ticket ac_aggr;
10527 if (ac_aggr.client)
10533 rm -f conftest.$ac_objext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10535 (eval $ac_compile) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try='test -s conftest.$ac_objext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 ac_cv_member_krb5_ticket_client=yes
10547 echo "$as_me: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10549 ac_cv_member_krb5_ticket_client=no
10551 rm -f conftest.$ac_objext conftest.$ac_ext
10553 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10554 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10555 if test $ac_cv_member_krb5_ticket_client = yes; then
10557 cat >>confdefs.h <<_ACEOF
10558 #define HAVE_KRB5_TICKET_CLIENT 1
10563 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10564 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10565 { (exit 1); exit 1; }; }
10570 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10571 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10572 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 cat >conftest.$ac_ext <<_ACEOF
10576 #line $LINENO "configure"
10577 #include "confdefs.h"
10580 #ifdef F77_DUMMY_MAIN
10581 # ifdef __cplusplus
10584 int F77_DUMMY_MAIN() { return 1; }
10589 static krb5_error ac_aggr;
10590 if (ac_aggr.text.data)
10596 rm -f conftest.$ac_objext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598 (eval $ac_compile) 2>&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -s conftest.$ac_objext'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 ac_cv_member_krb5_error_text_data=yes
10610 echo "$as_me: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 ac_cv_member_krb5_error_text_data=no
10614 rm -f conftest.$ac_objext conftest.$ac_ext
10616 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10617 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10618 if test $ac_cv_member_krb5_error_text_data = yes; then
10620 cat >>confdefs.h <<_ACEOF
10621 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10626 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10627 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10628 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 cat >conftest.$ac_ext <<_ACEOF
10632 #line $LINENO "configure"
10633 #include "confdefs.h"
10636 #ifdef F77_DUMMY_MAIN
10637 # ifdef __cplusplus
10640 int F77_DUMMY_MAIN() { return 1; }
10645 static krb5_error ac_aggr;
10646 if (ac_aggr.e_data)
10652 rm -f conftest.$ac_objext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10654 (eval $ac_compile) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } &&
10658 { ac_try='test -s conftest.$ac_objext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_member_krb5_error_e_data=yes
10666 echo "$as_me: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10668 ac_cv_member_krb5_error_e_data=no
10670 rm -f conftest.$ac_objext conftest.$ac_ext
10672 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10673 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10674 if test $ac_cv_member_krb5_error_e_data = yes; then
10676 cat >>confdefs.h <<_ACEOF
10677 #define HAVE_KRB5_ERROR_E_DATA 1
10682 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10683 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10684 { (exit 1); exit 1; }; }
10693 ## Functions, global variables
10696 echo "$as_me:$LINENO: checking for int timezone" >&5
10697 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10698 if test "${pgac_cv_var_int_timezone+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"
10706 #ifdef F77_DUMMY_MAIN
10707 # ifdef __cplusplus
10710 int F77_DUMMY_MAIN() { return 1; }
10715 res = timezone / 60;
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722 (eval $ac_link) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -s conftest$ac_exeext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 pgac_cv_var_int_timezone=yes
10734 echo "$as_me: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 pgac_cv_var_int_timezone=no
10738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10740 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10741 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10742 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10744 cat >>confdefs.h <<\_ACEOF
10745 #define HAVE_INT_TIMEZONE
10749 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10750 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10751 if test "${ac_cv_func_accept_arg1+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 if test "${ac_cv_func_accept_arg2+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 if test "${ac_cv_func_accept_arg3+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10761 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10762 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10763 cat >conftest.$ac_ext <<_ACEOF
10764 #line $LINENO "configure"
10765 #include "confdefs.h"
10766 #ifdef HAVE_SYS_TYPES_H
10767 #include <sys/types.h>
10769 #ifdef HAVE_SYS_SOCKET_H
10770 #include <sys/socket.h>
10772 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10773 #ifdef F77_DUMMY_MAIN
10774 # ifdef __cplusplus
10777 int F77_DUMMY_MAIN() { return 1; }
10787 rm -f conftest.$ac_objext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10789 (eval $ac_compile) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -s conftest.$ac_objext'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; }; then
10799 ac_not_found=no; break 3
10801 echo "$as_me: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10805 rm -f conftest.$ac_objext conftest.$ac_ext
10809 if test "$ac_not_found" = yes; then
10810 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10811 echo "$as_me: error: could not determine argument types" >&2;}
10812 { (exit 1); exit 1; }; }
10814 if test "$ac_cv_func_accept_arg3" = "void"; then
10815 ac_cv_func_accept_arg3=int
10823 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10824 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10826 cat >>confdefs.h <<_ACEOF
10827 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10831 cat >>confdefs.h <<_ACEOF
10832 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10836 cat >>confdefs.h <<_ACEOF
10837 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10841 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10842 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10843 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 cat >conftest.$ac_ext <<_ACEOF
10847 #line $LINENO "configure"
10848 #include "confdefs.h"
10849 #include <sys/time.h>
10850 #ifdef F77_DUMMY_MAIN
10851 # ifdef __cplusplus
10854 int F77_DUMMY_MAIN() { return 1; }
10859 struct timeval *tp;
10860 struct timezone *tzp;
10861 gettimeofday(tp,tzp);
10866 rm -f conftest.$ac_objext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868 (eval $ac_compile) 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
10872 { ac_try='test -s conftest.$ac_objext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 pgac_cv_func_gettimeofday_1arg=no
10880 echo "$as_me: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10882 pgac_cv_func_gettimeofday_1arg=yes
10884 rm -f conftest.$ac_objext conftest.$ac_ext
10886 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10887 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10888 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10890 cat >>confdefs.h <<\_ACEOF
10891 #define GETTIMEOFDAY_1ARG
10898 # SunOS doesn't handle negative byte comparisons properly with +/- return
10899 echo "$as_me:$LINENO: checking for working memcmp" >&5
10900 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10901 if test "${ac_cv_func_memcmp_working+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 if test "$cross_compiling" = yes; then
10905 ac_cv_func_memcmp_working=no
10907 cat >conftest.$ac_ext <<_ACEOF
10908 #line $LINENO "configure"
10909 #include "confdefs.h"
10911 #ifdef F77_DUMMY_MAIN
10912 # ifdef __cplusplus
10915 int F77_DUMMY_MAIN() { return 1; }
10921 /* Some versions of memcmp are not 8-bit clean. */
10922 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10923 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10926 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10927 or more and with at least one buffer not starting on a 4-byte boundary.
10928 William Lewis provided this test program. */
10933 for (i = 0; i < 4; i++)
10937 strcpy (a, "--------01111111");
10938 strcpy (b, "--------10000000");
10939 if (memcmp (a, b, 16) >= 0)
10949 rm -f conftest$ac_exeext
10950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10951 (eval $ac_link) 2>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 ac_cv_func_memcmp_working=yes
10962 echo "$as_me: program exited with status $ac_status" >&5
10963 echo "$as_me: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10965 ( exit $ac_status )
10966 ac_cv_func_memcmp_working=no
10968 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10971 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10972 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10973 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10992 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10995 echo "$as_me:$LINENO: checking for $ac_func" >&5
10996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10997 if eval "test \"\${$as_ac_var+set}\" = set"; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 cat >conftest.$ac_ext <<_ACEOF
11001 #line $LINENO "configure"
11002 #include "confdefs.h"
11003 /* System header to define __stub macros and hopefully few prototypes,
11004 which can conflict with char $ac_func (); below. */
11005 #include <assert.h>
11006 /* Override any gcc2 internal prototype to avoid an error. */
11010 /* We use char because int might match the return type of a gcc2
11011 builtin and then its argument prototype would still apply. */
11015 #ifdef F77_DUMMY_MAIN
11016 # ifdef __cplusplus
11019 int F77_DUMMY_MAIN() { return 1; }
11024 /* The GNU C library defines this for functions which it implements
11025 to always fail with ENOSYS. Some functions are actually named
11026 something starting with __ and the normal name is an alias. */
11027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11039 (eval $ac_link) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -s conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 eval "$as_ac_var=yes"
11051 echo "$as_me: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11053 eval "$as_ac_var=no"
11055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11059 if test `eval echo '${'$as_ac_var'}'` = yes; then
11060 cat >>confdefs.h <<_ACEOF
11061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11068 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11069 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11070 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 cat >conftest.$ac_ext <<_ACEOF
11074 #line $LINENO "configure"
11075 #include "confdefs.h"
11076 #include <unistd.h>
11078 #ifdef F77_DUMMY_MAIN
11079 # ifdef __cplusplus
11082 int F77_DUMMY_MAIN() { return 1; }
11088 char *p = (char *) fdatasync;
11095 rm -f conftest.$ac_objext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 (eval $ac_compile) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
11101 { ac_try='test -s conftest.$ac_objext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 ac_cv_have_decl_fdatasync=yes
11109 echo "$as_me: failed program was:" >&5
11110 cat conftest.$ac_ext >&5
11111 ac_cv_have_decl_fdatasync=no
11113 rm -f conftest.$ac_objext conftest.$ac_ext
11115 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11116 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11117 if test $ac_cv_have_decl_fdatasync = yes; then
11119 cat >>confdefs.h <<_ACEOF
11120 #define HAVE_DECL_FDATASYNC 1
11125 cat >>confdefs.h <<_ACEOF
11126 #define HAVE_DECL_FDATASYNC 0
11134 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11135 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11136 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 cat >conftest.$ac_ext <<_ACEOF
11140 #line $LINENO "configure"
11141 #include "confdefs.h"
11142 $ac_includes_default
11143 #include <netinet/in.h>
11145 #ifdef F77_DUMMY_MAIN
11146 # ifdef __cplusplus
11149 int F77_DUMMY_MAIN() { return 1; }
11154 if ((struct sockaddr_in6 *) 0)
11156 if (sizeof (struct sockaddr_in6))
11162 rm -f conftest.$ac_objext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11164 (eval $ac_compile) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } &&
11168 { ac_try='test -s conftest.$ac_objext'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 ac_cv_type_struct_sockaddr_in6=yes
11176 echo "$as_me: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 ac_cv_type_struct_sockaddr_in6=no
11180 rm -f conftest.$ac_objext conftest.$ac_ext
11182 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11183 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11184 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11185 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11186 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11187 if test "${ac_cv_func_inet_ntop+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 cat >conftest.$ac_ext <<_ACEOF
11191 #line $LINENO "configure"
11192 #include "confdefs.h"
11193 /* System header to define __stub macros and hopefully few prototypes,
11194 which can conflict with char inet_ntop (); below. */
11195 #include <assert.h>
11196 /* Override any gcc2 internal prototype to avoid an error. */
11200 /* We use char because int might match the return type of a gcc2
11201 builtin and then its argument prototype would still apply. */
11205 #ifdef F77_DUMMY_MAIN
11206 # ifdef __cplusplus
11209 int F77_DUMMY_MAIN() { return 1; }
11214 /* The GNU C library defines this for functions which it implements
11215 to always fail with ENOSYS. Some functions are actually named
11216 something starting with __ and the normal name is an alias. */
11217 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11227 rm -f conftest.$ac_objext conftest$ac_exeext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229 (eval $ac_link) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -s conftest$ac_exeext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 ac_cv_func_inet_ntop=yes
11241 echo "$as_me: failed program was:" >&5
11242 cat conftest.$ac_ext >&5
11243 ac_cv_func_inet_ntop=no
11245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11247 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11248 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11249 if test $ac_cv_func_inet_ntop = yes; then
11251 cat >>confdefs.h <<\_ACEOF
11252 #define HAVE_IPV6 1
11260 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11261 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11262 if test "${pgac_cv_var_PS_STRINGS+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 #include <machine/vmparam.h>
11269 #include <sys/exec.h>
11271 #ifdef F77_DUMMY_MAIN
11272 # ifdef __cplusplus
11275 int F77_DUMMY_MAIN() { return 1; }
11280 PS_STRINGS->ps_nargvstr = 1;
11281 PS_STRINGS->ps_argvstr = "foo";
11286 rm -f conftest.$ac_objext conftest$ac_exeext
11287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11288 (eval $ac_link) 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -s conftest$ac_exeext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 pgac_cv_var_PS_STRINGS=yes
11300 echo "$as_me: failed program was:" >&5
11301 cat conftest.$ac_ext >&5
11302 pgac_cv_var_PS_STRINGS=no
11304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11306 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11307 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11308 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11310 cat >>confdefs.h <<\_ACEOF
11311 #define HAVE_PS_STRINGS
11317 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11318 # is missing. Yes, there are machines that have only one. We may
11319 # also decide to use snprintf.c if snprintf() is present but does not
11320 # have working "long long int" support -- see below.
11322 pgac_need_repl_snprintf=no
11324 for ac_func in snprintf
11326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11327 echo "$as_me:$LINENO: checking for $ac_func" >&5
11328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11329 if eval "test \"\${$as_ac_var+set}\" = set"; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 cat >conftest.$ac_ext <<_ACEOF
11333 #line $LINENO "configure"
11334 #include "confdefs.h"
11335 /* System header to define __stub macros and hopefully few prototypes,
11336 which can conflict with char $ac_func (); below. */
11337 #include <assert.h>
11338 /* Override any gcc2 internal prototype to avoid an error. */
11342 /* We use char because int might match the return type of a gcc2
11343 builtin and then its argument prototype would still apply. */
11347 #ifdef F77_DUMMY_MAIN
11348 # ifdef __cplusplus
11351 int F77_DUMMY_MAIN() { return 1; }
11356 /* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11371 (eval $ac_link) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try='test -s conftest$ac_exeext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 eval "$as_ac_var=yes"
11383 echo "$as_me: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11385 eval "$as_ac_var=no"
11387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11391 if test `eval echo '${'$as_ac_var'}'` = yes; then
11392 cat >>confdefs.h <<_ACEOF
11393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11397 pgac_need_repl_snprintf=yes
11402 for ac_func in vsnprintf
11404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11405 echo "$as_me:$LINENO: checking for $ac_func" >&5
11406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_var+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 cat >conftest.$ac_ext <<_ACEOF
11411 #line $LINENO "configure"
11412 #include "confdefs.h"
11413 /* System header to define __stub macros and hopefully few prototypes,
11414 which can conflict with char $ac_func (); below. */
11415 #include <assert.h>
11416 /* Override any gcc2 internal prototype to avoid an error. */
11420 /* We use char because int might match the return type of a gcc2
11421 builtin and then its argument prototype would still apply. */
11425 #ifdef F77_DUMMY_MAIN
11426 # ifdef __cplusplus
11429 int F77_DUMMY_MAIN() { return 1; }
11434 /* The GNU C library defines this for functions which it implements
11435 to always fail with ENOSYS. Some functions are actually named
11436 something starting with __ and the normal name is an alias. */
11437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11447 rm -f conftest.$ac_objext conftest$ac_exeext
11448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11449 (eval $ac_link) 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } &&
11453 { ac_try='test -s conftest$ac_exeext'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 eval "$as_ac_var=yes"
11461 echo "$as_me: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11463 eval "$as_ac_var=no"
11465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11469 if test `eval echo '${'$as_ac_var'}'` = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11475 pgac_need_repl_snprintf=yes
11481 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11482 # include/c.h will provide declarations. Note this is a separate test
11483 # from whether the functions exist in the C library --- there are
11484 # systems that have the functions but don't bother to declare them :-(
11486 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11487 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11488 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 cat >conftest.$ac_ext <<_ACEOF
11492 #line $LINENO "configure"
11493 #include "confdefs.h"
11494 $ac_includes_default
11495 #ifdef F77_DUMMY_MAIN
11496 # ifdef __cplusplus
11499 int F77_DUMMY_MAIN() { return 1; }
11505 char *p = (char *) snprintf;
11512 rm -f conftest.$ac_objext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -s conftest.$ac_objext'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; }; then
11524 ac_cv_have_decl_snprintf=yes
11526 echo "$as_me: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11528 ac_cv_have_decl_snprintf=no
11530 rm -f conftest.$ac_objext conftest.$ac_ext
11532 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11533 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11534 if test $ac_cv_have_decl_snprintf = yes; then
11536 cat >>confdefs.h <<_ACEOF
11537 #define HAVE_DECL_SNPRINTF 1
11542 cat >>confdefs.h <<_ACEOF
11543 #define HAVE_DECL_SNPRINTF 0
11548 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11549 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11550 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 cat >conftest.$ac_ext <<_ACEOF
11554 #line $LINENO "configure"
11555 #include "confdefs.h"
11556 $ac_includes_default
11557 #ifdef F77_DUMMY_MAIN
11558 # ifdef __cplusplus
11561 int F77_DUMMY_MAIN() { return 1; }
11567 char *p = (char *) vsnprintf;
11574 rm -f conftest.$ac_objext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11576 (eval $ac_compile) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try='test -s conftest.$ac_objext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 ac_cv_have_decl_vsnprintf=yes
11588 echo "$as_me: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11590 ac_cv_have_decl_vsnprintf=no
11592 rm -f conftest.$ac_objext conftest.$ac_ext
11594 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11595 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11596 if test $ac_cv_have_decl_vsnprintf = yes; then
11598 cat >>confdefs.h <<_ACEOF
11599 #define HAVE_DECL_VSNPRINTF 1
11604 cat >>confdefs.h <<_ACEOF
11605 #define HAVE_DECL_VSNPRINTF 0
11614 # do this one the hard way in case isinf() is a macro
11615 echo "$as_me:$LINENO: checking for isinf" >&5
11616 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11617 if test "${ac_cv_func_isinf+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 cat >conftest.$ac_ext <<_ACEOF
11621 #line $LINENO "configure"
11622 #include "confdefs.h"
11625 #ifdef F77_DUMMY_MAIN
11626 # ifdef __cplusplus
11629 int F77_DUMMY_MAIN() { return 1; }
11634 double x = 0.0; int res = isinf(x);
11639 rm -f conftest.$ac_objext conftest$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -s conftest$ac_exeext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 ac_cv_func_isinf=yes
11653 echo "$as_me: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11655 ac_cv_func_isinf=no
11657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11659 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11660 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11662 if test $ac_cv_func_isinf = yes ; then
11664 cat >>confdefs.h <<\_ACEOF
11665 #define HAVE_ISINF 1
11669 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11670 # Look for a way to implement a substitute for isinf()
11675 for ac_func in fpclass fp_class fp_class_d class
11677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11678 echo "$as_me:$LINENO: checking for $ac_func" >&5
11679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11680 if eval "test \"\${$as_ac_var+set}\" = set"; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 cat >conftest.$ac_ext <<_ACEOF
11684 #line $LINENO "configure"
11685 #include "confdefs.h"
11686 /* System header to define __stub macros and hopefully few prototypes,
11687 which can conflict with char $ac_func (); below. */
11688 #include <assert.h>
11689 /* Override any gcc2 internal prototype to avoid an error. */
11693 /* We use char because int might match the return type of a gcc2
11694 builtin and then its argument prototype would still apply. */
11698 #ifdef F77_DUMMY_MAIN
11699 # ifdef __cplusplus
11702 int F77_DUMMY_MAIN() { return 1; }
11707 /* The GNU C library defines this for functions which it implements
11708 to always fail with ENOSYS. Some functions are actually named
11709 something starting with __ and the normal name is an alias. */
11710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722 (eval $ac_link) 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
11726 { ac_try='test -s conftest$ac_exeext'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 eval "$as_ac_var=yes"
11734 echo "$as_me: failed program was:" >&5
11735 cat conftest.$ac_ext >&5
11736 eval "$as_ac_var=no"
11738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11742 if test `eval echo '${'$as_ac_var'}'` = yes; then
11743 cat >>confdefs.h <<_ACEOF
11744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11766 for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11769 echo "$as_me:$LINENO: checking for $ac_func" >&5
11770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11771 if eval "test \"\${$as_ac_var+set}\" = set"; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 cat >conftest.$ac_ext <<_ACEOF
11775 #line $LINENO "configure"
11776 #include "confdefs.h"
11777 /* System header to define __stub macros and hopefully few prototypes,
11778 which can conflict with char $ac_func (); below. */
11779 #include <assert.h>
11780 /* Override any gcc2 internal prototype to avoid an error. */
11784 /* We use char because int might match the return type of a gcc2
11785 builtin and then its argument prototype would still apply. */
11789 #ifdef F77_DUMMY_MAIN
11790 # ifdef __cplusplus
11793 int F77_DUMMY_MAIN() { return 1; }
11798 /* The GNU C library defines this for functions which it implements
11799 to always fail with ENOSYS. Some functions are actually named
11800 something starting with __ and the normal name is an alias. */
11801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11811 rm -f conftest.$ac_objext conftest$ac_exeext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11813 (eval $ac_link) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } &&
11817 { ac_try='test -s conftest$ac_exeext'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; }; then
11823 eval "$as_ac_var=yes"
11825 echo "$as_me: failed program was:" >&5
11826 cat conftest.$ac_ext >&5
11827 eval "$as_ac_var=no"
11829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11833 if test `eval echo '${'$as_ac_var'}'` = yes; then
11834 cat >>confdefs.h <<_ACEOF
11835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11839 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11845 # system's version of getaddrinfo(), if any, may be used only if we found
11846 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11847 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11849 for ac_func in getaddrinfo
11851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11852 echo "$as_me:$LINENO: checking for $ac_func" >&5
11853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11854 if eval "test \"\${$as_ac_var+set}\" = set"; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 cat >conftest.$ac_ext <<_ACEOF
11858 #line $LINENO "configure"
11859 #include "confdefs.h"
11860 /* System header to define __stub macros and hopefully few prototypes,
11861 which can conflict with char $ac_func (); below. */
11862 #include <assert.h>
11863 /* Override any gcc2 internal prototype to avoid an error. */
11867 /* We use char because int might match the return type of a gcc2
11868 builtin and then its argument prototype would still apply. */
11872 #ifdef F77_DUMMY_MAIN
11873 # ifdef __cplusplus
11876 int F77_DUMMY_MAIN() { return 1; }
11881 /* The GNU C library defines this for functions which it implements
11882 to always fail with ENOSYS. Some functions are actually named
11883 something starting with __ and the normal name is an alias. */
11884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -s conftest$ac_exeext'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
11906 eval "$as_ac_var=yes"
11908 echo "$as_me: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11910 eval "$as_ac_var=no"
11912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11916 if test `eval echo '${'$as_ac_var'}'` = yes; then
11917 cat >>confdefs.h <<_ACEOF
11918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11922 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11928 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11931 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11932 # We override the previous test that said fseeko/ftello didn't exist
11933 # OS tests are also done in include/c.h and port/fseeko.c
11934 case $host_os in bsdi*|netbsd*)
11935 ac_cv_func_fseeko=yes
11938 # Solaris has a very slow qsort in certain cases, so we replace it.
11939 case $host_os in solaris*)
11940 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11943 # Win32 can't to rename or unlink on an open file
11944 case $host_os in mingw*)
11945 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
11946 LIBOBJS="$LIBOBJS copydir.$ac_objext"
11947 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
11950 if test "$with_readline" = yes; then
11951 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11952 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11953 cat >conftest.$ac_ext <<_ACEOF
11954 #line $LINENO "configure"
11955 #include "confdefs.h"
11957 #ifdef HAVE_READLINE_READLINE_H
11958 # include <readline/readline.h>
11959 #elif defined(HAVE_READLINE_H)
11960 # include <readline.h>
11963 #ifdef F77_DUMMY_MAIN
11964 # ifdef __cplusplus
11967 int F77_DUMMY_MAIN() { return 1; }
11972 rl_completion_append_character = 'x';
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 echo "$as_me:$LINENO: result: yes" >&5
11990 echo "${ECHO_T}yes" >&6
11992 cat >>confdefs.h <<\_ACEOF
11993 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11997 echo "$as_me: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
11999 echo "$as_me:$LINENO: result: no" >&5
12000 echo "${ECHO_T}no" >&6
12002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12005 for ac_func in rl_completion_matches rl_filename_completion_function
12007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12008 echo "$as_me:$LINENO: checking for $ac_func" >&5
12009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12010 if eval "test \"\${$as_ac_var+set}\" = set"; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 cat >conftest.$ac_ext <<_ACEOF
12014 #line $LINENO "configure"
12015 #include "confdefs.h"
12016 /* System header to define __stub macros and hopefully few prototypes,
12017 which can conflict with char $ac_func (); below. */
12018 #include <assert.h>
12019 /* Override any gcc2 internal prototype to avoid an error. */
12023 /* We use char because int might match the return type of a gcc2
12024 builtin and then its argument prototype would still apply. */
12028 #ifdef F77_DUMMY_MAIN
12029 # ifdef __cplusplus
12032 int F77_DUMMY_MAIN() { return 1; }
12037 /* The GNU C library defines this for functions which it implements
12038 to always fail with ENOSYS. Some functions are actually named
12039 something starting with __ and the normal name is an alias. */
12040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12050 rm -f conftest.$ac_objext conftest$ac_exeext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12052 (eval $ac_link) 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -s conftest$ac_exeext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 eval "$as_ac_var=yes"
12064 echo "$as_me: failed program was:" >&5
12065 cat conftest.$ac_ext >&5
12066 eval "$as_ac_var=no"
12068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12072 if test `eval echo '${'$as_ac_var'}'` = yes; then
12073 cat >>confdefs.h <<_ACEOF
12074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12081 for ac_func in replace_history_entry
12083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12084 echo "$as_me:$LINENO: checking for $ac_func" >&5
12085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12086 if eval "test \"\${$as_ac_var+set}\" = set"; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 cat >conftest.$ac_ext <<_ACEOF
12090 #line $LINENO "configure"
12091 #include "confdefs.h"
12092 /* System header to define __stub macros and hopefully few prototypes,
12093 which can conflict with char $ac_func (); below. */
12094 #include <assert.h>
12095 /* Override any gcc2 internal prototype to avoid an error. */
12099 /* We use char because int might match the return type of a gcc2
12100 builtin and then its argument prototype would still apply. */
12104 #ifdef F77_DUMMY_MAIN
12105 # ifdef __cplusplus
12108 int F77_DUMMY_MAIN() { return 1; }
12113 /* The GNU C library defines this for functions which it implements
12114 to always fail with ENOSYS. Some functions are actually named
12115 something starting with __ and the normal name is an alias. */
12116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -s conftest$ac_exeext'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 eval "$as_ac_var=yes"
12140 echo "$as_me: failed program was:" >&5
12141 cat conftest.$ac_ext >&5
12142 eval "$as_ac_var=no"
12144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12148 if test `eval echo '${'$as_ac_var'}'` = yes; then
12149 cat >>confdefs.h <<_ACEOF
12150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12159 echo "$as_me:$LINENO: checking for finite" >&5
12160 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12161 cat >conftest.$ac_ext <<_ACEOF
12162 #line $LINENO "configure"
12163 #include "confdefs.h"
12165 #ifdef F77_DUMMY_MAIN
12166 # ifdef __cplusplus
12169 int F77_DUMMY_MAIN() { return 1; }
12174 int dummy=finite(1.0);
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181 (eval $ac_link) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -s conftest$ac_exeext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12192 cat >>confdefs.h <<\_ACEOF
12193 #define HAVE_FINITE 1
12196 echo "$as_me:$LINENO: result: yes" >&5
12197 echo "${ECHO_T}yes" >&6
12199 echo "$as_me: failed program was:" >&5
12200 cat conftest.$ac_ext >&5
12201 echo "$as_me:$LINENO: result: no" >&5
12202 echo "${ECHO_T}no" >&6
12204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12206 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12207 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12208 cat >conftest.$ac_ext <<_ACEOF
12209 #line $LINENO "configure"
12210 #include "confdefs.h"
12211 #include <setjmp.h>
12212 #ifdef F77_DUMMY_MAIN
12213 # ifdef __cplusplus
12216 int F77_DUMMY_MAIN() { return 1; }
12221 sigjmp_buf x; sigsetjmp(x, 1);
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228 (eval $ac_link) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -s conftest$ac_exeext'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12239 cat >>confdefs.h <<\_ACEOF
12240 #define HAVE_SIGSETJMP 1
12243 echo "$as_me:$LINENO: result: yes" >&5
12244 echo "${ECHO_T}yes" >&6
12246 echo "$as_me: failed program was:" >&5
12247 cat conftest.$ac_ext >&5
12248 echo "$as_me:$LINENO: result: no" >&5
12249 echo "${ECHO_T}no" >&6
12251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12253 echo "$as_me:$LINENO: checking for syslog" >&5
12254 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12255 if test "${ac_cv_func_syslog+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 cat >conftest.$ac_ext <<_ACEOF
12259 #line $LINENO "configure"
12260 #include "confdefs.h"
12261 /* System header to define __stub macros and hopefully few prototypes,
12262 which can conflict with char syslog (); below. */
12263 #include <assert.h>
12264 /* Override any gcc2 internal prototype to avoid an error. */
12268 /* We use char because int might match the return type of a gcc2
12269 builtin and then its argument prototype would still apply. */
12273 #ifdef F77_DUMMY_MAIN
12274 # ifdef __cplusplus
12277 int F77_DUMMY_MAIN() { return 1; }
12282 /* The GNU C library defines this for functions which it implements
12283 to always fail with ENOSYS. Some functions are actually named
12284 something starting with __ and the normal name is an alias. */
12285 #if defined (__stub_syslog) || defined (__stub___syslog)
12295 rm -f conftest.$ac_objext conftest$ac_exeext
12296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297 (eval $ac_link) 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -s conftest$ac_exeext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_func_syslog=yes
12309 echo "$as_me: failed program was:" >&5
12310 cat conftest.$ac_ext >&5
12311 ac_cv_func_syslog=no
12313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12315 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12316 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12317 if test $ac_cv_func_syslog = yes; then
12318 if test "${ac_cv_header_syslog_h+set}" = set; then
12319 echo "$as_me:$LINENO: checking for syslog.h" >&5
12320 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12321 if test "${ac_cv_header_syslog_h+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12325 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12327 # Is the header compilable?
12328 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12329 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 #include "confdefs.h"
12333 $ac_includes_default
12334 #include <syslog.h>
12336 rm -f conftest.$ac_objext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12338 (eval $ac_compile) 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } &&
12342 { ac_try='test -s conftest.$ac_objext'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12348 ac_header_compiler=yes
12350 echo "$as_me: failed program was:" >&5
12351 cat conftest.$ac_ext >&5
12352 ac_header_compiler=no
12354 rm -f conftest.$ac_objext conftest.$ac_ext
12355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12356 echo "${ECHO_T}$ac_header_compiler" >&6
12358 # Is the header present?
12359 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12360 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12361 cat >conftest.$ac_ext <<_ACEOF
12362 #line $LINENO "configure"
12363 #include "confdefs.h"
12364 #include <syslog.h>
12366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12369 egrep -v '^ *\+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } >/dev/null; then
12374 if test -s conftest.err; then
12375 ac_cpp_err=$ac_c_preproc_warn_flag
12382 if test -z "$ac_cpp_err"; then
12383 ac_header_preproc=yes
12385 echo "$as_me: failed program was:" >&5
12386 cat conftest.$ac_ext >&5
12387 ac_header_preproc=no
12389 rm -f conftest.err conftest.$ac_ext
12390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12391 echo "${ECHO_T}$ac_header_preproc" >&6
12393 # So? What about this header?
12394 case $ac_header_compiler:$ac_header_preproc in
12396 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12397 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12399 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12401 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12402 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12403 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12404 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12405 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12406 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12408 echo "$as_me:$LINENO: checking for syslog.h" >&5
12409 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12410 if test "${ac_cv_header_syslog_h+set}" = set; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12413 ac_cv_header_syslog_h=$ac_header_preproc
12415 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12416 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12419 if test $ac_cv_header_syslog_h = yes; then
12421 cat >>confdefs.h <<\_ACEOF
12422 #define HAVE_SYSLOG 1
12431 echo "$as_me:$LINENO: checking for optreset" >&5
12432 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12433 if test "${pgac_cv_var_int_optreset+set}" = set; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12436 cat >conftest.$ac_ext <<_ACEOF
12437 #line $LINENO "configure"
12438 #include "confdefs.h"
12439 #include <unistd.h>
12440 #ifdef F77_DUMMY_MAIN
12441 # ifdef __cplusplus
12444 int F77_DUMMY_MAIN() { return 1; }
12449 extern int optreset; optreset = 1;
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
12460 { ac_try='test -s conftest$ac_exeext'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 pgac_cv_var_int_optreset=yes
12468 echo "$as_me: failed program was:" >&5
12469 cat conftest.$ac_ext >&5
12470 pgac_cv_var_int_optreset=no
12472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12474 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12475 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12476 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12478 cat >>confdefs.h <<\_ACEOF
12479 #define HAVE_INT_OPTRESET 1
12486 for ac_func in strtoll strtoq
12488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12489 echo "$as_me:$LINENO: checking for $ac_func" >&5
12490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12491 if eval "test \"\${$as_ac_var+set}\" = set"; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 cat >conftest.$ac_ext <<_ACEOF
12495 #line $LINENO "configure"
12496 #include "confdefs.h"
12497 /* System header to define __stub macros and hopefully few prototypes,
12498 which can conflict with char $ac_func (); below. */
12499 #include <assert.h>
12500 /* Override any gcc2 internal prototype to avoid an error. */
12504 /* We use char because int might match the return type of a gcc2
12505 builtin and then its argument prototype would still apply. */
12509 #ifdef F77_DUMMY_MAIN
12510 # ifdef __cplusplus
12513 int F77_DUMMY_MAIN() { return 1; }
12518 /* The GNU C library defines this for functions which it implements
12519 to always fail with ENOSYS. Some functions are actually named
12520 something starting with __ and the normal name is an alias. */
12521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12531 rm -f conftest.$ac_objext conftest$ac_exeext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12533 (eval $ac_link) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 eval "$as_ac_var=yes"
12545 echo "$as_me: failed program was:" >&5
12546 cat conftest.$ac_ext >&5
12547 eval "$as_ac_var=no"
12549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12553 if test `eval echo '${'$as_ac_var'}'` = yes; then
12554 cat >>confdefs.h <<_ACEOF
12555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12563 for ac_func in strtoull strtouq
12565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12566 echo "$as_me:$LINENO: checking for $ac_func" >&5
12567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12568 if eval "test \"\${$as_ac_var+set}\" = set"; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 cat >conftest.$ac_ext <<_ACEOF
12572 #line $LINENO "configure"
12573 #include "confdefs.h"
12574 /* System header to define __stub macros and hopefully few prototypes,
12575 which can conflict with char $ac_func (); below. */
12576 #include <assert.h>
12577 /* Override any gcc2 internal prototype to avoid an error. */
12581 /* We use char because int might match the return type of a gcc2
12582 builtin and then its argument prototype would still apply. */
12586 #ifdef F77_DUMMY_MAIN
12587 # ifdef __cplusplus
12590 int F77_DUMMY_MAIN() { return 1; }
12595 /* The GNU C library defines this for functions which it implements
12596 to always fail with ENOSYS. Some functions are actually named
12597 something starting with __ and the normal name is an alias. */
12598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12608 rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12610 (eval $ac_link) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } &&
12614 { ac_try='test -s conftest$ac_exeext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 eval "$as_ac_var=yes"
12622 echo "$as_me: failed program was:" >&5
12623 cat conftest.$ac_ext >&5
12624 eval "$as_ac_var=no"
12626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12630 if test `eval echo '${'$as_ac_var'}'` = yes; then
12631 cat >>confdefs.h <<_ACEOF
12632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12639 # Check for one of atexit() or on_exit()
12641 for ac_func in atexit
12643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12644 echo "$as_me:$LINENO: checking for $ac_func" >&5
12645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12646 if eval "test \"\${$as_ac_var+set}\" = set"; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 cat >conftest.$ac_ext <<_ACEOF
12650 #line $LINENO "configure"
12651 #include "confdefs.h"
12652 /* System header to define __stub macros and hopefully few prototypes,
12653 which can conflict with char $ac_func (); below. */
12654 #include <assert.h>
12655 /* Override any gcc2 internal prototype to avoid an error. */
12659 /* We use char because int might match the return type of a gcc2
12660 builtin and then its argument prototype would still apply. */
12664 #ifdef F77_DUMMY_MAIN
12665 # ifdef __cplusplus
12668 int F77_DUMMY_MAIN() { return 1; }
12673 /* The GNU C library defines this for functions which it implements
12674 to always fail with ENOSYS. Some functions are actually named
12675 something starting with __ and the normal name is an alias. */
12676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12686 rm -f conftest.$ac_objext conftest$ac_exeext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688 (eval $ac_link) 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -s conftest$ac_exeext'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 eval "$as_ac_var=yes"
12700 echo "$as_me: failed program was:" >&5
12701 cat conftest.$ac_ext >&5
12702 eval "$as_ac_var=no"
12704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12708 if test `eval echo '${'$as_ac_var'}'` = yes; then
12709 cat >>confdefs.h <<_ACEOF
12710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12715 for ac_func in on_exit
12717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718 echo "$as_me:$LINENO: checking for $ac_func" >&5
12719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12720 if eval "test \"\${$as_ac_var+set}\" = set"; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 cat >conftest.$ac_ext <<_ACEOF
12724 #line $LINENO "configure"
12725 #include "confdefs.h"
12726 /* System header to define __stub macros and hopefully few prototypes,
12727 which can conflict with char $ac_func (); below. */
12728 #include <assert.h>
12729 /* Override any gcc2 internal prototype to avoid an error. */
12733 /* We use char because int might match the return type of a gcc2
12734 builtin and then its argument prototype would still apply. */
12738 #ifdef F77_DUMMY_MAIN
12739 # ifdef __cplusplus
12742 int F77_DUMMY_MAIN() { return 1; }
12747 /* The GNU C library defines this for functions which it implements
12748 to always fail with ENOSYS. Some functions are actually named
12749 something starting with __ and the normal name is an alias. */
12750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12760 rm -f conftest.$ac_objext conftest$ac_exeext
12761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12762 (eval $ac_link) 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
12766 { ac_try='test -s conftest$ac_exeext'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 eval "$as_ac_var=yes"
12774 echo "$as_me: failed program was:" >&5
12775 cat conftest.$ac_ext >&5
12776 eval "$as_ac_var=no"
12778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12782 if test `eval echo '${'$as_ac_var'}'` = yes; then
12783 cat >>confdefs.h <<_ACEOF
12784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12788 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12789 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12790 { (exit 1); exit 1; }; }
12798 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12799 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12800 if test "${ac_cv_sys_largefile_source+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 ac_cv_sys_largefile_source=no
12805 cat >conftest.$ac_ext <<_ACEOF
12806 #line $LINENO "configure"
12807 #include "confdefs.h"
12809 #ifdef F77_DUMMY_MAIN
12810 # ifdef __cplusplus
12813 int F77_DUMMY_MAIN() { return 1; }
12823 rm -f conftest.$ac_objext
12824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12825 (eval $ac_compile) 2>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } &&
12829 { ac_try='test -s conftest.$ac_objext'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12837 echo "$as_me: failed program was:" >&5
12838 cat conftest.$ac_ext >&5
12840 rm -f conftest.$ac_objext conftest.$ac_ext
12841 cat >conftest.$ac_ext <<_ACEOF
12842 #line $LINENO "configure"
12843 #include "confdefs.h"
12844 #define _LARGEFILE_SOURCE 1
12846 #ifdef F77_DUMMY_MAIN
12847 # ifdef __cplusplus
12850 int F77_DUMMY_MAIN() { return 1; }
12860 rm -f conftest.$ac_objext
12861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12862 (eval $ac_compile) 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
12866 { ac_try='test -s conftest.$ac_objext'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 ac_cv_sys_largefile_source=1; break
12874 echo "$as_me: failed program was:" >&5
12875 cat conftest.$ac_ext >&5
12877 rm -f conftest.$ac_objext conftest.$ac_ext
12881 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12882 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12883 if test "$ac_cv_sys_largefile_source" != no; then
12885 cat >>confdefs.h <<_ACEOF
12886 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12892 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12893 # in glibc 2.1.3, but that breaks too many other things.
12894 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12895 echo "$as_me:$LINENO: checking for fseeko" >&5
12896 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12897 if test "${ac_cv_func_fseeko+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 cat >conftest.$ac_ext <<_ACEOF
12901 #line $LINENO "configure"
12902 #include "confdefs.h"
12904 #ifdef F77_DUMMY_MAIN
12905 # ifdef __cplusplus
12908 int F77_DUMMY_MAIN() { return 1; }
12913 return fseeko && fseeko (stdin, 0, 0);
12918 rm -f conftest.$ac_objext conftest$ac_exeext
12919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920 (eval $ac_link) 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
12924 { ac_try='test -s conftest$ac_exeext'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; }; then
12930 ac_cv_func_fseeko=yes
12932 echo "$as_me: failed program was:" >&5
12933 cat conftest.$ac_ext >&5
12934 ac_cv_func_fseeko=no
12936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12938 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12939 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12940 if test $ac_cv_func_fseeko = yes; then
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_FSEEKO 1
12952 # For each platform, we need to know about any special compile and link
12953 # libraries, and whether the normal C function names are thread-safe.
12955 if test "$enable_thread_safety" = yes; then
12956 if test "${ac_cv_header_pthread_h+set}" = set; then
12957 echo "$as_me:$LINENO: checking for pthread.h" >&5
12958 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12959 if test "${ac_cv_header_pthread_h+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
12963 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12965 # Is the header compilable?
12966 echo "$as_me:$LINENO: checking pthread.h usability" >&5
12967 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
12968 cat >conftest.$ac_ext <<_ACEOF
12969 #line $LINENO "configure"
12970 #include "confdefs.h"
12971 $ac_includes_default
12972 #include <pthread.h>
12974 rm -f conftest.$ac_objext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -s conftest.$ac_objext'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
12986 ac_header_compiler=yes
12988 echo "$as_me: failed program was:" >&5
12989 cat conftest.$ac_ext >&5
12990 ac_header_compiler=no
12992 rm -f conftest.$ac_objext conftest.$ac_ext
12993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12994 echo "${ECHO_T}$ac_header_compiler" >&6
12996 # Is the header present?
12997 echo "$as_me:$LINENO: checking pthread.h presence" >&5
12998 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
12999 cat >conftest.$ac_ext <<_ACEOF
13000 #line $LINENO "configure"
13001 #include "confdefs.h"
13002 #include <pthread.h>
13004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13007 egrep -v '^ *\+' conftest.er1 >conftest.err
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } >/dev/null; then
13012 if test -s conftest.err; then
13013 ac_cpp_err=$ac_c_preproc_warn_flag
13020 if test -z "$ac_cpp_err"; then
13021 ac_header_preproc=yes
13023 echo "$as_me: failed program was:" >&5
13024 cat conftest.$ac_ext >&5
13025 ac_header_preproc=no
13027 rm -f conftest.err conftest.$ac_ext
13028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13029 echo "${ECHO_T}$ac_header_preproc" >&6
13031 # So? What about this header?
13032 case $ac_header_compiler:$ac_header_preproc in
13034 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13035 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13036 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13037 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13039 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13040 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13041 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13042 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13043 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13044 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13046 echo "$as_me:$LINENO: checking for pthread.h" >&5
13047 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13048 if test "${ac_cv_header_pthread_h+set}" = set; then
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13051 ac_cv_header_pthread_h=$ac_header_preproc
13053 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13054 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13057 if test $ac_cv_header_pthread_h = yes; then
13060 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --with-threads" >&5
13061 echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
13062 { (exit 1); exit 1; }; }
13067 if test "$SUPPORTS_THREADS" != yes; then
13068 { { echo "$as_me:$LINENO: error:
13069 Cannot enable threads on your platform.
13070 Please report your platform threading info to the PostgreSQL mailing lists
13071 so it can be added to the next release. Report all compile flags, link flags,
13072 functions, or libraries required for threading support.
13074 echo "$as_me: error:
13075 Cannot enable threads on your platform.
13076 Please report your platform threading info to the PostgreSQL mailing lists
13077 so it can be added to the next release. Report all compile flags, link flags,
13078 functions, or libraries required for threading support.
13080 { (exit 1); exit 1; }; }
13088 # Check for re-entrant versions of certain functions
13090 # Include special flags if threads are enabled _and_ if required for
13091 # threading on this platform. Some platforms have *_r functions but
13092 # their natively named funcs are threadsafe, and should be used instead.
13094 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13095 # functions are marked "not found", which is perfect.
13097 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
13100 CFLAGS="$CFLAGS $TREAD_CFLAGS"
13101 LIBS="$LIBS $THREAD_LIBS"
13105 for ac_func in strerror_r getpwuid_r gethostbyname_r
13107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13108 echo "$as_me:$LINENO: checking for $ac_func" >&5
13109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13110 if eval "test \"\${$as_ac_var+set}\" = set"; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 cat >conftest.$ac_ext <<_ACEOF
13114 #line $LINENO "configure"
13115 #include "confdefs.h"
13116 /* System header to define __stub macros and hopefully few prototypes,
13117 which can conflict with char $ac_func (); below. */
13118 #include <assert.h>
13119 /* Override any gcc2 internal prototype to avoid an error. */
13123 /* We use char because int might match the return type of a gcc2
13124 builtin and then its argument prototype would still apply. */
13128 #ifdef F77_DUMMY_MAIN
13129 # ifdef __cplusplus
13132 int F77_DUMMY_MAIN() { return 1; }
13137 /* The GNU C library defines this for functions which it implements
13138 to always fail with ENOSYS. Some functions are actually named
13139 something starting with __ and the normal name is an alias. */
13140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13150 rm -f conftest.$ac_objext conftest$ac_exeext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13152 (eval $ac_link) 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -s conftest$ac_exeext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 eval "$as_ac_var=yes"
13164 echo "$as_me: failed program was:" >&5
13165 cat conftest.$ac_ext >&5
13166 eval "$as_ac_var=no"
13168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13172 if test `eval echo '${'$as_ac_var'}'` = yes; then
13173 cat >>confdefs.h <<_ACEOF
13174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13185 # This test makes sure that run tests work at all. Sometimes a shared
13186 # library is found by the linker, but the runtime linker can't find it.
13187 # This check should come after all modifications of compiler or linker
13188 # variables, and before any other run tests.
13189 echo "$as_me:$LINENO: checking test program" >&5
13190 echo $ECHO_N "checking test program... $ECHO_C" >&6
13191 if test "$cross_compiling" = yes; then
13192 echo "$as_me:$LINENO: result: cross-compiling" >&5
13193 echo "${ECHO_T}cross-compiling" >&6
13195 cat >conftest.$ac_ext <<_ACEOF
13196 #line $LINENO "configure"
13197 #include "confdefs.h"
13198 int main() { return 0; }
13200 rm -f conftest$ac_exeext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13202 (eval $ac_link) 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 echo "$as_me:$LINENO: result: ok" >&5
13212 echo "${ECHO_T}ok" >&6
13214 echo "$as_me: program exited with status $ac_status" >&5
13215 echo "$as_me: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 ( exit $ac_status )
13218 echo "$as_me:$LINENO: result: failed" >&5
13219 echo "${ECHO_T}failed" >&6
13220 { { echo "$as_me:$LINENO: error:
13221 *** Could not execute a simple test program. This may be a problem
13222 *** related to locating shared libraries. Check the file 'config.log'
13223 *** for the exact reason." >&5
13224 echo "$as_me: error:
13225 *** Could not execute a simple test program. This may be a problem
13226 *** related to locating shared libraries. Check the file 'config.log'
13227 *** for the exact reason." >&2;}
13228 { (exit 1); exit 1; }; }
13230 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13235 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13236 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13237 if test "${pgac_cv_type_long_int_64+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 if test "$cross_compiling" = yes; then
13241 # If cross-compiling, check the size reported by the compiler and
13242 # trust that the arithmetic works.
13243 cat >conftest.$ac_ext <<_ACEOF
13244 #line $LINENO "configure"
13245 #include "confdefs.h"
13247 #ifdef F77_DUMMY_MAIN
13248 # ifdef __cplusplus
13251 int F77_DUMMY_MAIN() { return 1; }
13256 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13263 rm -f conftest.$ac_objext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13265 (eval $ac_compile) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -s conftest.$ac_objext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 pgac_cv_type_long_int_64=yes
13277 echo "$as_me: failed program was:" >&5
13278 cat conftest.$ac_ext >&5
13279 pgac_cv_type_long_int_64=no
13281 rm -f conftest.$ac_objext conftest.$ac_ext
13283 cat >conftest.$ac_ext <<_ACEOF
13284 #line $LINENO "configure"
13285 #include "confdefs.h"
13286 typedef long int int64;
13289 * These are globals to discourage the compiler from folding all the
13290 * arithmetic tests down to compile-time constants.
13292 int64 a = 20000001;
13293 int64 b = 40000005;
13295 int does_int64_work()
13299 if (sizeof(int64) != 8)
13300 return 0; /* definitely not the right size */
13302 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13310 exit(! does_int64_work());
13313 rm -f conftest$ac_exeext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13315 (eval $ac_link) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320 (eval $ac_try) 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; }; then
13324 pgac_cv_type_long_int_64=yes
13326 echo "$as_me: program exited with status $ac_status" >&5
13327 echo "$as_me: failed program was:" >&5
13328 cat conftest.$ac_ext >&5
13329 ( exit $ac_status )
13330 pgac_cv_type_long_int_64=no
13332 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13335 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13336 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13338 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13339 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13341 cat >>confdefs.h <<\_ACEOF
13342 #define HAVE_LONG_INT_64
13348 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13349 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13350 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13351 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 if test "$cross_compiling" = yes; then
13355 # If cross-compiling, check the size reported by the compiler and
13356 # trust that the arithmetic works.
13357 cat >conftest.$ac_ext <<_ACEOF
13358 #line $LINENO "configure"
13359 #include "confdefs.h"
13361 #ifdef F77_DUMMY_MAIN
13362 # ifdef __cplusplus
13365 int F77_DUMMY_MAIN() { return 1; }
13370 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13377 rm -f conftest.$ac_objext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379 (eval $ac_compile) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -s conftest.$ac_objext'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 pgac_cv_type_long_long_int_64=yes
13391 echo "$as_me: failed program was:" >&5
13392 cat conftest.$ac_ext >&5
13393 pgac_cv_type_long_long_int_64=no
13395 rm -f conftest.$ac_objext conftest.$ac_ext
13397 cat >conftest.$ac_ext <<_ACEOF
13398 #line $LINENO "configure"
13399 #include "confdefs.h"
13400 typedef long long int int64;
13403 * These are globals to discourage the compiler from folding all the
13404 * arithmetic tests down to compile-time constants.
13406 int64 a = 20000001;
13407 int64 b = 40000005;
13409 int does_int64_work()
13413 if (sizeof(int64) != 8)
13414 return 0; /* definitely not the right size */
13416 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13424 exit(! does_int64_work());
13427 rm -f conftest$ac_exeext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13429 (eval $ac_link) 2>&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 pgac_cv_type_long_long_int_64=yes
13440 echo "$as_me: program exited with status $ac_status" >&5
13441 echo "$as_me: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13443 ( exit $ac_status )
13444 pgac_cv_type_long_long_int_64=no
13446 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13449 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13450 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13452 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13453 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13455 cat >>confdefs.h <<\_ACEOF
13456 #define HAVE_LONG_LONG_INT_64
13465 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13466 cat >conftest.$ac_ext <<_ACEOF
13467 #line $LINENO "configure"
13468 #include "confdefs.h"
13470 #define INT64CONST(x) x##LL
13471 long long int foo = INT64CONST(0x1234567890123456);
13473 #ifdef F77_DUMMY_MAIN
13474 # ifdef __cplusplus
13477 int F77_DUMMY_MAIN() { return 1; }
13487 rm -f conftest.$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489 (eval $ac_compile) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } &&
13493 { ac_try='test -s conftest.$ac_objext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13500 cat >>confdefs.h <<\_ACEOF
13501 #define HAVE_LL_CONSTANTS 1
13505 echo "$as_me: failed program was:" >&5
13506 cat conftest.$ac_ext >&5
13508 rm -f conftest.$ac_objext conftest.$ac_ext
13512 # If we found "long int" is 64 bits, assume snprintf handles it. If
13513 # we found we need to use "long long int", better check. We cope with
13514 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13515 # neither works, fall back to our own snprintf emulation (which we
13518 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13519 if test $pgac_need_repl_snprintf = no; then
13520 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13521 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13522 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 for pgac_format in '%lld' '%qd' '%I64d'; do
13526 if test "$cross_compiling" = yes; then
13527 pgac_cv_snprintf_long_long_int_format=cross; break
13529 cat >conftest.$ac_ext <<_ACEOF
13530 #line $LINENO "configure"
13531 #include "confdefs.h"
13533 typedef long long int int64;
13534 #define INT64_FORMAT "$pgac_format"
13536 int64 a = 20000001;
13537 int64 b = 40000005;
13539 int does_int64_snprintf_work()
13544 if (sizeof(int64) != 8)
13545 return 0; /* doesn't look like the right size */
13548 snprintf(buf, 100, INT64_FORMAT, c);
13549 if (strcmp(buf, "800000140000005") != 0)
13550 return 0; /* either multiply or snprintf is busted */
13554 exit(! does_int64_snprintf_work());
13557 rm -f conftest$ac_exeext
13558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13559 (eval $ac_link) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; }; then
13568 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13570 echo "$as_me: program exited with status $ac_status" >&5
13571 echo "$as_me: failed program was:" >&5
13572 cat conftest.$ac_ext >&5
13574 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13579 LONG_LONG_INT_FORMAT=''
13581 case $pgac_cv_snprintf_long_long_int_format in
13582 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13583 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13584 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13585 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13586 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13587 *) echo "$as_me:$LINENO: result: none" >&5
13588 echo "${ECHO_T}none" >&6;;
13590 if test "$LONG_LONG_INT_FORMAT" = ""; then
13591 # Force usage of our own snprintf, since system snprintf is broken
13592 pgac_need_repl_snprintf=yes
13593 LONG_LONG_INT_FORMAT='%lld'
13596 # Here if we previously decided we needed to use our own snprintf
13597 LONG_LONG_INT_FORMAT='%lld'
13599 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13601 # Here if we are not using 'long long int' at all
13602 INT64_FORMAT='"%ld"'
13606 cat >>confdefs.h <<_ACEOF
13607 #define INT64_FORMAT $INT64_FORMAT
13611 if test $pgac_need_repl_snprintf = yes; then
13612 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13615 # Need a #define for the size of Datum (unsigned long)
13616 echo "$as_me:$LINENO: checking for unsigned long" >&5
13617 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13618 if test "${ac_cv_type_unsigned_long+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 cat >conftest.$ac_ext <<_ACEOF
13622 #line $LINENO "configure"
13623 #include "confdefs.h"
13624 $ac_includes_default
13625 #ifdef F77_DUMMY_MAIN
13626 # ifdef __cplusplus
13629 int F77_DUMMY_MAIN() { return 1; }
13634 if ((unsigned long *) 0)
13636 if (sizeof (unsigned long))
13642 rm -f conftest.$ac_objext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13644 (eval $ac_compile) 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
13648 { ac_try='test -s conftest.$ac_objext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_type_unsigned_long=yes
13656 echo "$as_me: failed program was:" >&5
13657 cat conftest.$ac_ext >&5
13658 ac_cv_type_unsigned_long=no
13660 rm -f conftest.$ac_objext conftest.$ac_ext
13662 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13663 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13665 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13666 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13667 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 if test "$ac_cv_type_unsigned_long" = yes; then
13671 # The cast to unsigned long works around a bug in the HP C Compiler
13672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13674 # This bug is HP SR number 8606223364.
13675 if test "$cross_compiling" = yes; then
13676 # Depending upon the size, compute the lo and hi bounds.
13677 cat >conftest.$ac_ext <<_ACEOF
13678 #line $LINENO "configure"
13679 #include "confdefs.h"
13680 $ac_includes_default
13681 #ifdef F77_DUMMY_MAIN
13682 # ifdef __cplusplus
13685 int F77_DUMMY_MAIN() { return 1; }
13690 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13697 rm -f conftest.$ac_objext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699 (eval $ac_compile) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try='test -s conftest.$ac_objext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13711 cat >conftest.$ac_ext <<_ACEOF
13712 #line $LINENO "configure"
13713 #include "confdefs.h"
13714 $ac_includes_default
13715 #ifdef F77_DUMMY_MAIN
13716 # ifdef __cplusplus
13719 int F77_DUMMY_MAIN() { return 1; }
13724 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -s conftest.$ac_objext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ac_hi=$ac_mid; break
13745 echo "$as_me: failed program was:" >&5
13746 cat conftest.$ac_ext >&5
13747 ac_lo=`expr $ac_mid + 1`
13748 if test $ac_lo -le $ac_mid; then
13752 ac_mid=`expr 2 '*' $ac_mid + 1`
13754 rm -f conftest.$ac_objext conftest.$ac_ext
13757 echo "$as_me: failed program was:" >&5
13758 cat conftest.$ac_ext >&5
13759 cat >conftest.$ac_ext <<_ACEOF
13760 #line $LINENO "configure"
13761 #include "confdefs.h"
13762 $ac_includes_default
13763 #ifdef F77_DUMMY_MAIN
13764 # ifdef __cplusplus
13767 int F77_DUMMY_MAIN() { return 1; }
13772 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13779 rm -f conftest.$ac_objext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13781 (eval $ac_compile) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -s conftest.$ac_objext'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
13793 cat >conftest.$ac_ext <<_ACEOF
13794 #line $LINENO "configure"
13795 #include "confdefs.h"
13796 $ac_includes_default
13797 #ifdef F77_DUMMY_MAIN
13798 # ifdef __cplusplus
13801 int F77_DUMMY_MAIN() { return 1; }
13806 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13813 rm -f conftest.$ac_objext
13814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815 (eval $ac_compile) 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -s conftest.$ac_objext'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 ac_lo=$ac_mid; break
13827 echo "$as_me: failed program was:" >&5
13828 cat conftest.$ac_ext >&5
13829 ac_hi=`expr '(' $ac_mid ')' - 1`
13830 if test $ac_mid -le $ac_hi; then
13834 ac_mid=`expr 2 '*' $ac_mid`
13836 rm -f conftest.$ac_objext conftest.$ac_ext
13839 echo "$as_me: failed program was:" >&5
13840 cat conftest.$ac_ext >&5
13843 rm -f conftest.$ac_objext conftest.$ac_ext
13845 rm -f conftest.$ac_objext conftest.$ac_ext
13846 # Binary search between lo and hi bounds.
13847 while test "x$ac_lo" != "x$ac_hi"; do
13848 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13849 cat >conftest.$ac_ext <<_ACEOF
13850 #line $LINENO "configure"
13851 #include "confdefs.h"
13852 $ac_includes_default
13853 #ifdef F77_DUMMY_MAIN
13854 # ifdef __cplusplus
13857 int F77_DUMMY_MAIN() { return 1; }
13862 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13869 rm -f conftest.$ac_objext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13871 (eval $ac_compile) 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -s conftest.$ac_objext'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13883 echo "$as_me: failed program was:" >&5
13884 cat conftest.$ac_ext >&5
13885 ac_lo=`expr '(' $ac_mid ')' + 1`
13887 rm -f conftest.$ac_objext conftest.$ac_ext
13890 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13891 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13892 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13893 { (exit 1); exit 1; }; } ;;
13896 if test "$cross_compiling" = yes; then
13897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13898 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13899 { (exit 1); exit 1; }; }
13901 cat >conftest.$ac_ext <<_ACEOF
13902 #line $LINENO "configure"
13903 #include "confdefs.h"
13904 $ac_includes_default
13905 long longval () { return (long) (sizeof (unsigned long)); }
13906 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13908 #include <stdlib.h>
13909 #ifdef F77_DUMMY_MAIN
13910 # ifdef __cplusplus
13913 int F77_DUMMY_MAIN() { return 1; }
13919 FILE *f = fopen ("conftest.val", "w");
13922 if (((long) (sizeof (unsigned long))) < 0)
13924 long i = longval ();
13925 if (i != ((long) (sizeof (unsigned long))))
13927 fprintf (f, "%ld\n", i);
13931 unsigned long i = ulongval ();
13932 if (i != ((long) (sizeof (unsigned long))))
13934 fprintf (f, "%lu\n", i);
13936 exit (ferror (f) || fclose (f) != 0);
13942 rm -f conftest$ac_exeext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13944 (eval $ac_link) 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
13953 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13955 echo "$as_me: program exited with status $ac_status" >&5
13956 echo "$as_me: failed program was:" >&5
13957 cat conftest.$ac_ext >&5
13958 ( exit $ac_status )
13959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13960 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13961 { (exit 1); exit 1; }; }
13963 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13968 ac_cv_sizeof_unsigned_long=0
13971 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13972 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13973 cat >>confdefs.h <<_ACEOF
13974 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13979 # Determine memory alignment requirements for the basic C data types.
13981 echo "$as_me:$LINENO: checking for short" >&5
13982 echo $ECHO_N "checking for short... $ECHO_C" >&6
13983 if test "${ac_cv_type_short+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 cat >conftest.$ac_ext <<_ACEOF
13987 #line $LINENO "configure"
13988 #include "confdefs.h"
13989 $ac_includes_default
13990 #ifdef F77_DUMMY_MAIN
13991 # ifdef __cplusplus
13994 int F77_DUMMY_MAIN() { return 1; }
14001 if (sizeof (short))
14007 rm -f conftest.$ac_objext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14009 (eval $ac_compile) 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 ac_cv_type_short=yes
14021 echo "$as_me: failed program was:" >&5
14022 cat conftest.$ac_ext >&5
14023 ac_cv_type_short=no
14025 rm -f conftest.$ac_objext conftest.$ac_ext
14027 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14028 echo "${ECHO_T}$ac_cv_type_short" >&6
14030 echo "$as_me:$LINENO: checking alignment of short" >&5
14031 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14032 if test "${pgac_cv_alignof_short+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 if test "$ac_cv_type_short" = yes; then
14036 if test "$cross_compiling" = yes; then
14037 # Depending upon the size, compute the lo and hi bounds.
14038 cat >conftest.$ac_ext <<_ACEOF
14039 #line $LINENO "configure"
14040 #include "confdefs.h"
14041 $ac_includes_default
14042 struct { char filler; short field; } pgac_struct;
14043 #ifdef F77_DUMMY_MAIN
14044 # ifdef __cplusplus
14047 int F77_DUMMY_MAIN() { return 1; }
14052 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14059 rm -f conftest.$ac_objext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14061 (eval $ac_compile) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -s conftest.$ac_objext'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14073 cat >conftest.$ac_ext <<_ACEOF
14074 #line $LINENO "configure"
14075 #include "confdefs.h"
14076 $ac_includes_default
14077 struct { char filler; short field; } pgac_struct;
14078 #ifdef F77_DUMMY_MAIN
14079 # ifdef __cplusplus
14082 int F77_DUMMY_MAIN() { return 1; }
14087 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14094 rm -f conftest.$ac_objext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 (eval $ac_compile) 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -s conftest.$ac_objext'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }; then
14106 ac_hi=$ac_mid; break
14108 echo "$as_me: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 ac_lo=`expr $ac_mid + 1`
14111 if test $ac_lo -le $ac_mid; then
14115 ac_mid=`expr 2 '*' $ac_mid + 1`
14117 rm -f conftest.$ac_objext conftest.$ac_ext
14120 echo "$as_me: failed program was:" >&5
14121 cat conftest.$ac_ext >&5
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 #ifdef F77_DUMMY_MAIN
14128 # ifdef __cplusplus
14131 int F77_DUMMY_MAIN() { return 1; }
14136 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14143 rm -f conftest.$ac_objext
14144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14145 (eval $ac_compile) 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
14149 { ac_try='test -s conftest.$ac_objext'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14157 cat >conftest.$ac_ext <<_ACEOF
14158 #line $LINENO "configure"
14159 #include "confdefs.h"
14160 $ac_includes_default
14161 struct { char filler; short field; } pgac_struct;
14162 #ifdef F77_DUMMY_MAIN
14163 # ifdef __cplusplus
14166 int F77_DUMMY_MAIN() { return 1; }
14171 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14178 rm -f conftest.$ac_objext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180 (eval $ac_compile) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
14184 { ac_try='test -s conftest.$ac_objext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 ac_lo=$ac_mid; break
14192 echo "$as_me: failed program was:" >&5
14193 cat conftest.$ac_ext >&5
14194 ac_hi=`expr '(' $ac_mid ')' - 1`
14195 if test $ac_mid -le $ac_hi; then
14199 ac_mid=`expr 2 '*' $ac_mid`
14201 rm -f conftest.$ac_objext conftest.$ac_ext
14204 echo "$as_me: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14208 rm -f conftest.$ac_objext conftest.$ac_ext
14210 rm -f conftest.$ac_objext conftest.$ac_ext
14211 # Binary search between lo and hi bounds.
14212 while test "x$ac_lo" != "x$ac_hi"; do
14213 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14214 cat >conftest.$ac_ext <<_ACEOF
14215 #line $LINENO "configure"
14216 #include "confdefs.h"
14217 $ac_includes_default
14218 struct { char filler; short field; } pgac_struct;
14219 #ifdef F77_DUMMY_MAIN
14220 # ifdef __cplusplus
14223 int F77_DUMMY_MAIN() { return 1; }
14228 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237 (eval $ac_compile) 2>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try='test -s conftest.$ac_objext'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14249 echo "$as_me: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14251 ac_lo=`expr '(' $ac_mid ')' + 1`
14253 rm -f conftest.$ac_objext conftest.$ac_ext
14256 ?*) pgac_cv_alignof_short=$ac_lo;;
14257 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14258 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14259 { (exit 1); exit 1; }; } ;;
14262 if test "$cross_compiling" = yes; then
14263 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14264 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14265 { (exit 1); exit 1; }; }
14267 cat >conftest.$ac_ext <<_ACEOF
14268 #line $LINENO "configure"
14269 #include "confdefs.h"
14270 $ac_includes_default
14271 struct { char filler; short field; } pgac_struct;
14272 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14273 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14275 #include <stdlib.h>
14276 #ifdef F77_DUMMY_MAIN
14277 # ifdef __cplusplus
14280 int F77_DUMMY_MAIN() { return 1; }
14286 FILE *f = fopen ("conftest.val", "w");
14289 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14291 long i = longval ();
14292 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14294 fprintf (f, "%ld\n", i);
14298 unsigned long i = ulongval ();
14299 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14301 fprintf (f, "%lu\n", i);
14303 exit (ferror (f) || fclose (f) != 0);
14309 rm -f conftest$ac_exeext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 pgac_cv_alignof_short=`cat conftest.val`
14322 echo "$as_me: program exited with status $ac_status" >&5
14323 echo "$as_me: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14325 ( exit $ac_status )
14326 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14327 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14328 { (exit 1); exit 1; }; }
14330 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14335 pgac_cv_alignof_short=0
14338 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14339 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14340 cat >>confdefs.h <<_ACEOF
14341 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14345 echo "$as_me:$LINENO: checking for int" >&5
14346 echo $ECHO_N "checking for int... $ECHO_C" >&6
14347 if test "${ac_cv_type_int+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 cat >conftest.$ac_ext <<_ACEOF
14351 #line $LINENO "configure"
14352 #include "confdefs.h"
14353 $ac_includes_default
14354 #ifdef F77_DUMMY_MAIN
14355 # ifdef __cplusplus
14358 int F77_DUMMY_MAIN() { return 1; }
14371 rm -f conftest.$ac_objext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14373 (eval $ac_compile) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14385 echo "$as_me: failed program was:" >&5
14386 cat conftest.$ac_ext >&5
14389 rm -f conftest.$ac_objext conftest.$ac_ext
14391 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14392 echo "${ECHO_T}$ac_cv_type_int" >&6
14394 echo "$as_me:$LINENO: checking alignment of int" >&5
14395 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14396 if test "${pgac_cv_alignof_int+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14399 if test "$ac_cv_type_int" = yes; then
14400 if test "$cross_compiling" = yes; then
14401 # Depending upon the size, compute the lo and hi bounds.
14402 cat >conftest.$ac_ext <<_ACEOF
14403 #line $LINENO "configure"
14404 #include "confdefs.h"
14405 $ac_includes_default
14406 struct { char filler; int field; } pgac_struct;
14407 #ifdef F77_DUMMY_MAIN
14408 # ifdef __cplusplus
14411 int F77_DUMMY_MAIN() { return 1; }
14416 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14423 rm -f conftest.$ac_objext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14425 (eval $ac_compile) 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } &&
14429 { ac_try='test -s conftest.$ac_objext'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14437 cat >conftest.$ac_ext <<_ACEOF
14438 #line $LINENO "configure"
14439 #include "confdefs.h"
14440 $ac_includes_default
14441 struct { char filler; int field; } pgac_struct;
14442 #ifdef F77_DUMMY_MAIN
14443 # ifdef __cplusplus
14446 int F77_DUMMY_MAIN() { return 1; }
14451 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14458 rm -f conftest.$ac_objext
14459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14460 (eval $ac_compile) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } &&
14464 { ac_try='test -s conftest.$ac_objext'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 ac_hi=$ac_mid; break
14472 echo "$as_me: failed program was:" >&5
14473 cat conftest.$ac_ext >&5
14474 ac_lo=`expr $ac_mid + 1`
14475 if test $ac_lo -le $ac_mid; then
14479 ac_mid=`expr 2 '*' $ac_mid + 1`
14481 rm -f conftest.$ac_objext conftest.$ac_ext
14484 echo "$as_me: failed program was:" >&5
14485 cat conftest.$ac_ext >&5
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 #ifdef F77_DUMMY_MAIN
14492 # ifdef __cplusplus
14495 int F77_DUMMY_MAIN() { return 1; }
14500 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14507 rm -f conftest.$ac_objext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14509 (eval $ac_compile) 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try='test -s conftest.$ac_objext'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }; then
14521 cat >conftest.$ac_ext <<_ACEOF
14522 #line $LINENO "configure"
14523 #include "confdefs.h"
14524 $ac_includes_default
14525 struct { char filler; int field; } pgac_struct;
14526 #ifdef F77_DUMMY_MAIN
14527 # ifdef __cplusplus
14530 int F77_DUMMY_MAIN() { return 1; }
14535 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14542 rm -f conftest.$ac_objext
14543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14544 (eval $ac_compile) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -s conftest.$ac_objext'
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_lo=$ac_mid; break
14556 echo "$as_me: failed program was:" >&5
14557 cat conftest.$ac_ext >&5
14558 ac_hi=`expr '(' $ac_mid ')' - 1`
14559 if test $ac_mid -le $ac_hi; then
14563 ac_mid=`expr 2 '*' $ac_mid`
14565 rm -f conftest.$ac_objext conftest.$ac_ext
14568 echo "$as_me: failed program was:" >&5
14569 cat conftest.$ac_ext >&5
14572 rm -f conftest.$ac_objext conftest.$ac_ext
14574 rm -f conftest.$ac_objext conftest.$ac_ext
14575 # Binary search between lo and hi bounds.
14576 while test "x$ac_lo" != "x$ac_hi"; do
14577 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14578 cat >conftest.$ac_ext <<_ACEOF
14579 #line $LINENO "configure"
14580 #include "confdefs.h"
14581 $ac_includes_default
14582 struct { char filler; int field; } pgac_struct;
14583 #ifdef F77_DUMMY_MAIN
14584 # ifdef __cplusplus
14587 int F77_DUMMY_MAIN() { return 1; }
14592 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14599 rm -f conftest.$ac_objext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14601 (eval $ac_compile) 2>&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
14605 { ac_try='test -s conftest.$ac_objext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14613 echo "$as_me: failed program was:" >&5
14614 cat conftest.$ac_ext >&5
14615 ac_lo=`expr '(' $ac_mid ')' + 1`
14617 rm -f conftest.$ac_objext conftest.$ac_ext
14620 ?*) pgac_cv_alignof_int=$ac_lo;;
14621 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14622 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14623 { (exit 1); exit 1; }; } ;;
14626 if test "$cross_compiling" = yes; then
14627 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14628 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14629 { (exit 1); exit 1; }; }
14631 cat >conftest.$ac_ext <<_ACEOF
14632 #line $LINENO "configure"
14633 #include "confdefs.h"
14634 $ac_includes_default
14635 struct { char filler; int field; } pgac_struct;
14636 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14637 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14639 #include <stdlib.h>
14640 #ifdef F77_DUMMY_MAIN
14641 # ifdef __cplusplus
14644 int F77_DUMMY_MAIN() { return 1; }
14650 FILE *f = fopen ("conftest.val", "w");
14653 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14655 long i = longval ();
14656 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14658 fprintf (f, "%ld\n", i);
14662 unsigned long i = ulongval ();
14663 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14665 fprintf (f, "%lu\n", i);
14667 exit (ferror (f) || fclose (f) != 0);
14673 rm -f conftest$ac_exeext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675 (eval $ac_link) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 pgac_cv_alignof_int=`cat conftest.val`
14686 echo "$as_me: program exited with status $ac_status" >&5
14687 echo "$as_me: failed program was:" >&5
14688 cat conftest.$ac_ext >&5
14689 ( exit $ac_status )
14690 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14691 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14692 { (exit 1); exit 1; }; }
14694 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14699 pgac_cv_alignof_int=0
14702 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14703 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14704 cat >>confdefs.h <<_ACEOF
14705 #define ALIGNOF_INT $pgac_cv_alignof_int
14709 echo "$as_me:$LINENO: checking for long" >&5
14710 echo $ECHO_N "checking for long... $ECHO_C" >&6
14711 if test "${ac_cv_type_long+set}" = set; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 cat >conftest.$ac_ext <<_ACEOF
14715 #line $LINENO "configure"
14716 #include "confdefs.h"
14717 $ac_includes_default
14718 #ifdef F77_DUMMY_MAIN
14719 # ifdef __cplusplus
14722 int F77_DUMMY_MAIN() { return 1; }
14735 rm -f conftest.$ac_objext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737 (eval $ac_compile) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -s conftest.$ac_objext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 ac_cv_type_long=yes
14749 echo "$as_me: failed program was:" >&5
14750 cat conftest.$ac_ext >&5
14753 rm -f conftest.$ac_objext conftest.$ac_ext
14755 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14756 echo "${ECHO_T}$ac_cv_type_long" >&6
14758 echo "$as_me:$LINENO: checking alignment of long" >&5
14759 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14760 if test "${pgac_cv_alignof_long+set}" = set; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 if test "$ac_cv_type_long" = yes; then
14764 if test "$cross_compiling" = yes; then
14765 # Depending upon the size, compute the lo and hi bounds.
14766 cat >conftest.$ac_ext <<_ACEOF
14767 #line $LINENO "configure"
14768 #include "confdefs.h"
14769 $ac_includes_default
14770 struct { char filler; long field; } pgac_struct;
14771 #ifdef F77_DUMMY_MAIN
14772 # ifdef __cplusplus
14775 int F77_DUMMY_MAIN() { return 1; }
14780 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14787 rm -f conftest.$ac_objext
14788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14789 (eval $ac_compile) 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } &&
14793 { ac_try='test -s conftest.$ac_objext'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; }; then
14801 cat >conftest.$ac_ext <<_ACEOF
14802 #line $LINENO "configure"
14803 #include "confdefs.h"
14804 $ac_includes_default
14805 struct { char filler; long field; } pgac_struct;
14806 #ifdef F77_DUMMY_MAIN
14807 # ifdef __cplusplus
14810 int F77_DUMMY_MAIN() { return 1; }
14815 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14822 rm -f conftest.$ac_objext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14824 (eval $ac_compile) 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -s conftest.$ac_objext'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14834 ac_hi=$ac_mid; break
14836 echo "$as_me: failed program was:" >&5
14837 cat conftest.$ac_ext >&5
14838 ac_lo=`expr $ac_mid + 1`
14839 if test $ac_lo -le $ac_mid; then
14843 ac_mid=`expr 2 '*' $ac_mid + 1`
14845 rm -f conftest.$ac_objext conftest.$ac_ext
14848 echo "$as_me: failed program was:" >&5
14849 cat conftest.$ac_ext >&5
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 #ifdef F77_DUMMY_MAIN
14856 # ifdef __cplusplus
14859 int F77_DUMMY_MAIN() { return 1; }
14864 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14871 rm -f conftest.$ac_objext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14873 (eval $ac_compile) 2>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -s conftest.$ac_objext'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; }; then
14885 cat >conftest.$ac_ext <<_ACEOF
14886 #line $LINENO "configure"
14887 #include "confdefs.h"
14888 $ac_includes_default
14889 struct { char filler; long field; } pgac_struct;
14890 #ifdef F77_DUMMY_MAIN
14891 # ifdef __cplusplus
14894 int F77_DUMMY_MAIN() { return 1; }
14899 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14906 rm -f conftest.$ac_objext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14908 (eval $ac_compile) 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
14912 { ac_try='test -s conftest.$ac_objext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 ac_lo=$ac_mid; break
14920 echo "$as_me: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14922 ac_hi=`expr '(' $ac_mid ')' - 1`
14923 if test $ac_mid -le $ac_hi; then
14927 ac_mid=`expr 2 '*' $ac_mid`
14929 rm -f conftest.$ac_objext conftest.$ac_ext
14932 echo "$as_me: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14936 rm -f conftest.$ac_objext conftest.$ac_ext
14938 rm -f conftest.$ac_objext conftest.$ac_ext
14939 # Binary search between lo and hi bounds.
14940 while test "x$ac_lo" != "x$ac_hi"; do
14941 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14942 cat >conftest.$ac_ext <<_ACEOF
14943 #line $LINENO "configure"
14944 #include "confdefs.h"
14945 $ac_includes_default
14946 struct { char filler; long field; } pgac_struct;
14947 #ifdef F77_DUMMY_MAIN
14948 # ifdef __cplusplus
14951 int F77_DUMMY_MAIN() { return 1; }
14956 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14963 rm -f conftest.$ac_objext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965 (eval $ac_compile) 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try='test -s conftest.$ac_objext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14977 echo "$as_me: failed program was:" >&5
14978 cat conftest.$ac_ext >&5
14979 ac_lo=`expr '(' $ac_mid ')' + 1`
14981 rm -f conftest.$ac_objext conftest.$ac_ext
14984 ?*) pgac_cv_alignof_long=$ac_lo;;
14985 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14986 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14987 { (exit 1); exit 1; }; } ;;
14990 if test "$cross_compiling" = yes; then
14991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14992 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14993 { (exit 1); exit 1; }; }
14995 cat >conftest.$ac_ext <<_ACEOF
14996 #line $LINENO "configure"
14997 #include "confdefs.h"
14998 $ac_includes_default
14999 struct { char filler; long field; } pgac_struct;
15000 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15001 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15003 #include <stdlib.h>
15004 #ifdef F77_DUMMY_MAIN
15005 # ifdef __cplusplus
15008 int F77_DUMMY_MAIN() { return 1; }
15014 FILE *f = fopen ("conftest.val", "w");
15017 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15019 long i = longval ();
15020 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15022 fprintf (f, "%ld\n", i);
15026 unsigned long i = ulongval ();
15027 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15029 fprintf (f, "%lu\n", i);
15031 exit (ferror (f) || fclose (f) != 0);
15037 rm -f conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15048 pgac_cv_alignof_long=`cat conftest.val`
15050 echo "$as_me: program exited with status $ac_status" >&5
15051 echo "$as_me: failed program was:" >&5
15052 cat conftest.$ac_ext >&5
15053 ( exit $ac_status )
15054 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15055 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15056 { (exit 1); exit 1; }; }
15058 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15063 pgac_cv_alignof_long=0
15066 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15067 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15068 cat >>confdefs.h <<_ACEOF
15069 #define ALIGNOF_LONG $pgac_cv_alignof_long
15073 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15074 echo "$as_me:$LINENO: checking for long long int" >&5
15075 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15076 if test "${ac_cv_type_long_long_int+set}" = set; then
15077 echo $ECHO_N "(cached) $ECHO_C" >&6
15079 cat >conftest.$ac_ext <<_ACEOF
15080 #line $LINENO "configure"
15081 #include "confdefs.h"
15082 $ac_includes_default
15083 #ifdef F77_DUMMY_MAIN
15084 # ifdef __cplusplus
15087 int F77_DUMMY_MAIN() { return 1; }
15092 if ((long long int *) 0)
15094 if (sizeof (long long int))
15100 rm -f conftest.$ac_objext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102 (eval $ac_compile) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try='test -s conftest.$ac_objext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_cv_type_long_long_int=yes
15114 echo "$as_me: failed program was:" >&5
15115 cat conftest.$ac_ext >&5
15116 ac_cv_type_long_long_int=no
15118 rm -f conftest.$ac_objext conftest.$ac_ext
15120 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15121 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15123 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15124 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15125 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 if test "$ac_cv_type_long_long_int" = yes; then
15129 if test "$cross_compiling" = yes; then
15130 # Depending upon the size, compute the lo and hi bounds.
15131 cat >conftest.$ac_ext <<_ACEOF
15132 #line $LINENO "configure"
15133 #include "confdefs.h"
15134 $ac_includes_default
15135 struct { char filler; long long int field; } pgac_struct;
15136 #ifdef F77_DUMMY_MAIN
15137 # ifdef __cplusplus
15140 int F77_DUMMY_MAIN() { return 1; }
15145 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15152 rm -f conftest.$ac_objext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154 (eval $ac_compile) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15166 cat >conftest.$ac_ext <<_ACEOF
15167 #line $LINENO "configure"
15168 #include "confdefs.h"
15169 $ac_includes_default
15170 struct { char filler; long long int field; } pgac_struct;
15171 #ifdef F77_DUMMY_MAIN
15172 # ifdef __cplusplus
15175 int F77_DUMMY_MAIN() { return 1; }
15180 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15187 rm -f conftest.$ac_objext
15188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15189 (eval $ac_compile) 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } &&
15193 { ac_try='test -s conftest.$ac_objext'
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; }; then
15199 ac_hi=$ac_mid; break
15201 echo "$as_me: failed program was:" >&5
15202 cat conftest.$ac_ext >&5
15203 ac_lo=`expr $ac_mid + 1`
15204 if test $ac_lo -le $ac_mid; then
15208 ac_mid=`expr 2 '*' $ac_mid + 1`
15210 rm -f conftest.$ac_objext conftest.$ac_ext
15213 echo "$as_me: failed program was:" >&5
15214 cat conftest.$ac_ext >&5
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 #ifdef F77_DUMMY_MAIN
15221 # ifdef __cplusplus
15224 int F77_DUMMY_MAIN() { return 1; }
15229 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15236 rm -f conftest.$ac_objext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238 (eval $ac_compile) 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try='test -s conftest.$ac_objext'
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }; then
15250 cat >conftest.$ac_ext <<_ACEOF
15251 #line $LINENO "configure"
15252 #include "confdefs.h"
15253 $ac_includes_default
15254 struct { char filler; long long int field; } pgac_struct;
15255 #ifdef F77_DUMMY_MAIN
15256 # ifdef __cplusplus
15259 int F77_DUMMY_MAIN() { return 1; }
15264 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15271 rm -f conftest.$ac_objext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15273 (eval $ac_compile) 2>&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } &&
15277 { ac_try='test -s conftest.$ac_objext'
15278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15279 (eval $ac_try) 2>&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; }; then
15283 ac_lo=$ac_mid; break
15285 echo "$as_me: failed program was:" >&5
15286 cat conftest.$ac_ext >&5
15287 ac_hi=`expr '(' $ac_mid ')' - 1`
15288 if test $ac_mid -le $ac_hi; then
15292 ac_mid=`expr 2 '*' $ac_mid`
15294 rm -f conftest.$ac_objext conftest.$ac_ext
15297 echo "$as_me: failed program was:" >&5
15298 cat conftest.$ac_ext >&5
15301 rm -f conftest.$ac_objext conftest.$ac_ext
15303 rm -f conftest.$ac_objext conftest.$ac_ext
15304 # Binary search between lo and hi bounds.
15305 while test "x$ac_lo" != "x$ac_hi"; do
15306 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15307 cat >conftest.$ac_ext <<_ACEOF
15308 #line $LINENO "configure"
15309 #include "confdefs.h"
15310 $ac_includes_default
15311 struct { char filler; long long int field; } pgac_struct;
15312 #ifdef F77_DUMMY_MAIN
15313 # ifdef __cplusplus
15316 int F77_DUMMY_MAIN() { return 1; }
15321 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15328 rm -f conftest.$ac_objext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15330 (eval $ac_compile) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } &&
15334 { ac_try='test -s conftest.$ac_objext'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15342 echo "$as_me: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15344 ac_lo=`expr '(' $ac_mid ')' + 1`
15346 rm -f conftest.$ac_objext conftest.$ac_ext
15349 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15350 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15351 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15352 { (exit 1); exit 1; }; } ;;
15355 if test "$cross_compiling" = yes; then
15356 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15357 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15358 { (exit 1); exit 1; }; }
15360 cat >conftest.$ac_ext <<_ACEOF
15361 #line $LINENO "configure"
15362 #include "confdefs.h"
15363 $ac_includes_default
15364 struct { char filler; long long int field; } pgac_struct;
15365 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15366 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15368 #include <stdlib.h>
15369 #ifdef F77_DUMMY_MAIN
15370 # ifdef __cplusplus
15373 int F77_DUMMY_MAIN() { return 1; }
15379 FILE *f = fopen ("conftest.val", "w");
15382 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15384 long i = longval ();
15385 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15387 fprintf (f, "%ld\n", i);
15391 unsigned long i = ulongval ();
15392 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15394 fprintf (f, "%lu\n", i);
15396 exit (ferror (f) || fclose (f) != 0);
15402 rm -f conftest$ac_exeext
15403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15404 (eval $ac_link) 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; }; then
15413 pgac_cv_alignof_long_long_int=`cat conftest.val`
15415 echo "$as_me: program exited with status $ac_status" >&5
15416 echo "$as_me: failed program was:" >&5
15417 cat conftest.$ac_ext >&5
15418 ( exit $ac_status )
15419 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15420 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15421 { (exit 1); exit 1; }; }
15423 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15428 pgac_cv_alignof_long_long_int=0
15431 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15432 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15433 cat >>confdefs.h <<_ACEOF
15434 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15439 echo "$as_me:$LINENO: checking for double" >&5
15440 echo $ECHO_N "checking for double... $ECHO_C" >&6
15441 if test "${ac_cv_type_double+set}" = set; then
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 cat >conftest.$ac_ext <<_ACEOF
15445 #line $LINENO "configure"
15446 #include "confdefs.h"
15447 $ac_includes_default
15448 #ifdef F77_DUMMY_MAIN
15449 # ifdef __cplusplus
15452 int F77_DUMMY_MAIN() { return 1; }
15459 if (sizeof (double))
15465 rm -f conftest.$ac_objext
15466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15467 (eval $ac_compile) 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } &&
15471 { ac_try='test -s conftest.$ac_objext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_cv_type_double=yes
15479 echo "$as_me: failed program was:" >&5
15480 cat conftest.$ac_ext >&5
15481 ac_cv_type_double=no
15483 rm -f conftest.$ac_objext conftest.$ac_ext
15485 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15486 echo "${ECHO_T}$ac_cv_type_double" >&6
15488 echo "$as_me:$LINENO: checking alignment of double" >&5
15489 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15490 if test "${pgac_cv_alignof_double+set}" = set; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15493 if test "$ac_cv_type_double" = yes; then
15494 if test "$cross_compiling" = yes; then
15495 # Depending upon the size, compute the lo and hi bounds.
15496 cat >conftest.$ac_ext <<_ACEOF
15497 #line $LINENO "configure"
15498 #include "confdefs.h"
15499 $ac_includes_default
15500 struct { char filler; double field; } pgac_struct;
15501 #ifdef F77_DUMMY_MAIN
15502 # ifdef __cplusplus
15505 int F77_DUMMY_MAIN() { return 1; }
15510 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15517 rm -f conftest.$ac_objext
15518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15519 (eval $ac_compile) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } &&
15523 { ac_try='test -s conftest.$ac_objext'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15531 cat >conftest.$ac_ext <<_ACEOF
15532 #line $LINENO "configure"
15533 #include "confdefs.h"
15534 $ac_includes_default
15535 struct { char filler; double field; } pgac_struct;
15536 #ifdef F77_DUMMY_MAIN
15537 # ifdef __cplusplus
15540 int F77_DUMMY_MAIN() { return 1; }
15545 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15552 rm -f conftest.$ac_objext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15554 (eval $ac_compile) 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } &&
15558 { ac_try='test -s conftest.$ac_objext'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
15564 ac_hi=$ac_mid; break
15566 echo "$as_me: failed program was:" >&5
15567 cat conftest.$ac_ext >&5
15568 ac_lo=`expr $ac_mid + 1`
15569 if test $ac_lo -le $ac_mid; then
15573 ac_mid=`expr 2 '*' $ac_mid + 1`
15575 rm -f conftest.$ac_objext conftest.$ac_ext
15578 echo "$as_me: failed program was:" >&5
15579 cat conftest.$ac_ext >&5
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 #ifdef F77_DUMMY_MAIN
15586 # ifdef __cplusplus
15589 int F77_DUMMY_MAIN() { return 1; }
15594 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15601 rm -f conftest.$ac_objext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15603 (eval $ac_compile) 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } &&
15607 { ac_try='test -s conftest.$ac_objext'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15615 cat >conftest.$ac_ext <<_ACEOF
15616 #line $LINENO "configure"
15617 #include "confdefs.h"
15618 $ac_includes_default
15619 struct { char filler; double field; } pgac_struct;
15620 #ifdef F77_DUMMY_MAIN
15621 # ifdef __cplusplus
15624 int F77_DUMMY_MAIN() { return 1; }
15629 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15636 rm -f conftest.$ac_objext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15638 (eval $ac_compile) 2>&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } &&
15642 { ac_try='test -s conftest.$ac_objext'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 ac_lo=$ac_mid; break
15650 echo "$as_me: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15652 ac_hi=`expr '(' $ac_mid ')' - 1`
15653 if test $ac_mid -le $ac_hi; then
15657 ac_mid=`expr 2 '*' $ac_mid`
15659 rm -f conftest.$ac_objext conftest.$ac_ext
15662 echo "$as_me: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15666 rm -f conftest.$ac_objext conftest.$ac_ext
15668 rm -f conftest.$ac_objext conftest.$ac_ext
15669 # Binary search between lo and hi bounds.
15670 while test "x$ac_lo" != "x$ac_hi"; do
15671 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15672 cat >conftest.$ac_ext <<_ACEOF
15673 #line $LINENO "configure"
15674 #include "confdefs.h"
15675 $ac_includes_default
15676 struct { char filler; double field; } pgac_struct;
15677 #ifdef F77_DUMMY_MAIN
15678 # ifdef __cplusplus
15681 int F77_DUMMY_MAIN() { return 1; }
15686 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15693 rm -f conftest.$ac_objext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15695 (eval $ac_compile) 2>&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); } &&
15699 { ac_try='test -s conftest.$ac_objext'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15707 echo "$as_me: failed program was:" >&5
15708 cat conftest.$ac_ext >&5
15709 ac_lo=`expr '(' $ac_mid ')' + 1`
15711 rm -f conftest.$ac_objext conftest.$ac_ext
15714 ?*) pgac_cv_alignof_double=$ac_lo;;
15715 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15716 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15717 { (exit 1); exit 1; }; } ;;
15720 if test "$cross_compiling" = yes; then
15721 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15722 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15723 { (exit 1); exit 1; }; }
15725 cat >conftest.$ac_ext <<_ACEOF
15726 #line $LINENO "configure"
15727 #include "confdefs.h"
15728 $ac_includes_default
15729 struct { char filler; double field; } pgac_struct;
15730 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15731 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15733 #include <stdlib.h>
15734 #ifdef F77_DUMMY_MAIN
15735 # ifdef __cplusplus
15738 int F77_DUMMY_MAIN() { return 1; }
15744 FILE *f = fopen ("conftest.val", "w");
15747 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15749 long i = longval ();
15750 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15752 fprintf (f, "%ld\n", i);
15756 unsigned long i = ulongval ();
15757 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15759 fprintf (f, "%lu\n", i);
15761 exit (ferror (f) || fclose (f) != 0);
15767 rm -f conftest$ac_exeext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15769 (eval $ac_link) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 pgac_cv_alignof_double=`cat conftest.val`
15780 echo "$as_me: program exited with status $ac_status" >&5
15781 echo "$as_me: failed program was:" >&5
15782 cat conftest.$ac_ext >&5
15783 ( exit $ac_status )
15784 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15785 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15786 { (exit 1); exit 1; }; }
15788 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15793 pgac_cv_alignof_double=0
15796 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15797 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15798 cat >>confdefs.h <<_ACEOF
15799 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15804 # Compute maximum alignment of any basic type.
15805 # We assume long's alignment is at least as strong as char, short, or int;
15806 # but we must check long long (if it exists) and double.
15808 MAX_ALIGNOF=$pgac_cv_alignof_long
15809 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15810 MAX_ALIGNOF=$pgac_cv_alignof_double
15812 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15813 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15816 cat >>confdefs.h <<_ACEOF
15817 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15822 # Some platforms predefine the types int8, int16, etc. Only check
15823 # a (hopefully) representative subset.
15824 echo "$as_me:$LINENO: checking for int8" >&5
15825 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15826 if test "${ac_cv_type_int8+set}" = set; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 cat >conftest.$ac_ext <<_ACEOF
15830 #line $LINENO "configure"
15831 #include "confdefs.h"
15833 #ifdef HAVE_SUPPORTDEFS_H
15834 #include <SupportDefs.h>
15837 #ifdef F77_DUMMY_MAIN
15838 # ifdef __cplusplus
15841 int F77_DUMMY_MAIN() { return 1; }
15854 rm -f conftest.$ac_objext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15856 (eval $ac_compile) 2>&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } &&
15860 { ac_try='test -s conftest.$ac_objext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_cv_type_int8=yes
15868 echo "$as_me: failed program was:" >&5
15869 cat conftest.$ac_ext >&5
15872 rm -f conftest.$ac_objext conftest.$ac_ext
15874 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15875 echo "${ECHO_T}$ac_cv_type_int8" >&6
15876 if test $ac_cv_type_int8 = yes; then
15878 cat >>confdefs.h <<_ACEOF
15879 #define HAVE_INT8 1
15884 echo "$as_me:$LINENO: checking for uint8" >&5
15885 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15886 if test "${ac_cv_type_uint8+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 cat >conftest.$ac_ext <<_ACEOF
15890 #line $LINENO "configure"
15891 #include "confdefs.h"
15893 #ifdef HAVE_SUPPORTDEFS_H
15894 #include <SupportDefs.h>
15897 #ifdef F77_DUMMY_MAIN
15898 # ifdef __cplusplus
15901 int F77_DUMMY_MAIN() { return 1; }
15908 if (sizeof (uint8))
15914 rm -f conftest.$ac_objext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15916 (eval $ac_compile) 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } &&
15920 { ac_try='test -s conftest.$ac_objext'
15921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15926 ac_cv_type_uint8=yes
15928 echo "$as_me: failed program was:" >&5
15929 cat conftest.$ac_ext >&5
15930 ac_cv_type_uint8=no
15932 rm -f conftest.$ac_objext conftest.$ac_ext
15934 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15935 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15936 if test $ac_cv_type_uint8 = yes; then
15938 cat >>confdefs.h <<_ACEOF
15939 #define HAVE_UINT8 1
15944 echo "$as_me:$LINENO: checking for int64" >&5
15945 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15946 if test "${ac_cv_type_int64+set}" = set; then
15947 echo $ECHO_N "(cached) $ECHO_C" >&6
15949 cat >conftest.$ac_ext <<_ACEOF
15950 #line $LINENO "configure"
15951 #include "confdefs.h"
15953 #ifdef HAVE_SUPPORTDEFS_H
15954 #include <SupportDefs.h>
15957 #ifdef F77_DUMMY_MAIN
15958 # ifdef __cplusplus
15961 int F77_DUMMY_MAIN() { return 1; }
15968 if (sizeof (int64))
15974 rm -f conftest.$ac_objext
15975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15976 (eval $ac_compile) 2>&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } &&
15980 { ac_try='test -s conftest.$ac_objext'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; }; then
15986 ac_cv_type_int64=yes
15988 echo "$as_me: failed program was:" >&5
15989 cat conftest.$ac_ext >&5
15990 ac_cv_type_int64=no
15992 rm -f conftest.$ac_objext conftest.$ac_ext
15994 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15995 echo "${ECHO_T}$ac_cv_type_int64" >&6
15996 if test $ac_cv_type_int64 = yes; then
15998 cat >>confdefs.h <<_ACEOF
15999 #define HAVE_INT64 1
16004 echo "$as_me:$LINENO: checking for uint64" >&5
16005 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16006 if test "${ac_cv_type_uint64+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 cat >conftest.$ac_ext <<_ACEOF
16010 #line $LINENO "configure"
16011 #include "confdefs.h"
16013 #ifdef HAVE_SUPPORTDEFS_H
16014 #include <SupportDefs.h>
16017 #ifdef F77_DUMMY_MAIN
16018 # ifdef __cplusplus
16021 int F77_DUMMY_MAIN() { return 1; }
16028 if (sizeof (uint64))
16034 rm -f conftest.$ac_objext
16035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16036 (eval $ac_compile) 2>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
16040 { ac_try='test -s conftest.$ac_objext'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_cv_type_uint64=yes
16048 echo "$as_me: failed program was:" >&5
16049 cat conftest.$ac_ext >&5
16050 ac_cv_type_uint64=no
16052 rm -f conftest.$ac_objext conftest.$ac_ext
16054 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16055 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16056 if test $ac_cv_type_uint64 = yes; then
16058 cat >>confdefs.h <<_ACEOF
16059 #define HAVE_UINT64 1
16066 # We also check for sig_atomic_t, which *should* be defined per ANSI
16067 # C, but is missing on some old platforms.
16068 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16069 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16070 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 cat >conftest.$ac_ext <<_ACEOF
16074 #line $LINENO "configure"
16075 #include "confdefs.h"
16076 #include <signal.h>
16078 #ifdef F77_DUMMY_MAIN
16079 # ifdef __cplusplus
16082 int F77_DUMMY_MAIN() { return 1; }
16087 if ((sig_atomic_t *) 0)
16089 if (sizeof (sig_atomic_t))
16095 rm -f conftest.$ac_objext
16096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16097 (eval $ac_compile) 2>&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } &&
16101 { ac_try='test -s conftest.$ac_objext'
16102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103 (eval $ac_try) 2>&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); }; }; then
16107 ac_cv_type_sig_atomic_t=yes
16109 echo "$as_me: failed program was:" >&5
16110 cat conftest.$ac_ext >&5
16111 ac_cv_type_sig_atomic_t=no
16113 rm -f conftest.$ac_objext conftest.$ac_ext
16115 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16116 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16117 if test $ac_cv_type_sig_atomic_t = yes; then
16119 cat >>confdefs.h <<_ACEOF
16120 #define HAVE_SIG_ATOMIC_T 1
16128 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16129 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16130 if test "${pgac_cv_func_posix_signals+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 cat >conftest.$ac_ext <<_ACEOF
16134 #line $LINENO "configure"
16135 #include "confdefs.h"
16136 #include <signal.h>
16138 #ifdef F77_DUMMY_MAIN
16139 # ifdef __cplusplus
16142 int F77_DUMMY_MAIN() { return 1; }
16147 struct sigaction act, oact;
16148 sigemptyset(&act.sa_mask);
16149 act.sa_flags = SA_RESTART;
16150 sigaction(0, &act, &oact);
16155 rm -f conftest.$ac_objext conftest$ac_exeext
16156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16157 (eval $ac_link) 2>&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } &&
16161 { ac_try='test -s conftest$ac_exeext'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 pgac_cv_func_posix_signals=yes
16169 echo "$as_me: failed program was:" >&5
16170 cat conftest.$ac_ext >&5
16171 pgac_cv_func_posix_signals=no
16173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16175 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16176 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16177 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16179 cat >>confdefs.h <<\_ACEOF
16180 #define HAVE_POSIX_SIGNALS
16184 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16186 if test $ac_cv_func_fseeko = yes; then
16187 # Check whether --enable-largefile or --disable-largefile was given.
16188 if test "${enable_largefile+set}" = set; then
16189 enableval="$enable_largefile"
16192 if test "$enable_largefile" != no; then
16194 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16195 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16196 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16197 echo $ECHO_N "(cached) $ECHO_C" >&6
16199 ac_cv_sys_largefile_CC=no
16200 if test "$GCC" != yes; then
16203 # IRIX 6.2 and later do not support large files by default,
16204 # so use the C compiler's -n32 option if that helps.
16205 cat >conftest.$ac_ext <<_ACEOF
16206 #line $LINENO "configure"
16207 #include "confdefs.h"
16208 #include <sys/types.h>
16209 /* Check that off_t can represent 2**63 - 1 correctly.
16210 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16211 since some C++ compilers masquerading as C compilers
16212 incorrectly reject 9223372036854775807. */
16213 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16214 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16215 && LARGE_OFF_T % 2147483647 == 1)
16217 #ifdef F77_DUMMY_MAIN
16218 # ifdef __cplusplus
16221 int F77_DUMMY_MAIN() { return 1; }
16231 rm -f conftest.$ac_objext
16232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16233 (eval $ac_compile) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } &&
16237 { ac_try='test -s conftest.$ac_objext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16245 echo "$as_me: failed program was:" >&5
16246 cat conftest.$ac_ext >&5
16248 rm -f conftest.$ac_objext
16250 rm -f conftest.$ac_objext
16251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16252 (eval $ac_compile) 2>&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -s conftest.$ac_objext'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 ac_cv_sys_largefile_CC=' -n32'; break
16264 echo "$as_me: failed program was:" >&5
16265 cat conftest.$ac_ext >&5
16267 rm -f conftest.$ac_objext
16271 rm -f conftest.$ac_ext
16274 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16275 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16276 if test "$ac_cv_sys_largefile_CC" != no; then
16277 CC=$CC$ac_cv_sys_largefile_CC
16280 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16281 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16282 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16283 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 ac_cv_sys_file_offset_bits=no
16287 cat >conftest.$ac_ext <<_ACEOF
16288 #line $LINENO "configure"
16289 #include "confdefs.h"
16290 #include <sys/types.h>
16291 /* Check that off_t can represent 2**63 - 1 correctly.
16292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16293 since some C++ compilers masquerading as C compilers
16294 incorrectly reject 9223372036854775807. */
16295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16297 && LARGE_OFF_T % 2147483647 == 1)
16299 #ifdef F77_DUMMY_MAIN
16300 # ifdef __cplusplus
16303 int F77_DUMMY_MAIN() { return 1; }
16313 rm -f conftest.$ac_objext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16315 (eval $ac_compile) 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } &&
16319 { ac_try='test -s conftest.$ac_objext'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16327 echo "$as_me: failed program was:" >&5
16328 cat conftest.$ac_ext >&5
16330 rm -f conftest.$ac_objext conftest.$ac_ext
16331 cat >conftest.$ac_ext <<_ACEOF
16332 #line $LINENO "configure"
16333 #include "confdefs.h"
16334 #define _FILE_OFFSET_BITS 64
16335 #include <sys/types.h>
16336 /* Check that off_t can represent 2**63 - 1 correctly.
16337 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16338 since some C++ compilers masquerading as C compilers
16339 incorrectly reject 9223372036854775807. */
16340 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16341 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16342 && LARGE_OFF_T % 2147483647 == 1)
16344 #ifdef F77_DUMMY_MAIN
16345 # ifdef __cplusplus
16348 int F77_DUMMY_MAIN() { return 1; }
16358 rm -f conftest.$ac_objext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16360 (eval $ac_compile) 2>&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } &&
16364 { ac_try='test -s conftest.$ac_objext'
16365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366 (eval $ac_try) 2>&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; }; then
16370 ac_cv_sys_file_offset_bits=64; break
16372 echo "$as_me: failed program was:" >&5
16373 cat conftest.$ac_ext >&5
16375 rm -f conftest.$ac_objext conftest.$ac_ext
16379 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16380 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16381 if test "$ac_cv_sys_file_offset_bits" != no; then
16383 cat >>confdefs.h <<_ACEOF
16384 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16389 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16390 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16391 if test "${ac_cv_sys_large_files+set}" = set; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16395 ac_cv_sys_large_files=no
16396 cat >conftest.$ac_ext <<_ACEOF
16397 #line $LINENO "configure"
16398 #include "confdefs.h"
16399 #include <sys/types.h>
16400 /* Check that off_t can represent 2**63 - 1 correctly.
16401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16402 since some C++ compilers masquerading as C compilers
16403 incorrectly reject 9223372036854775807. */
16404 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16406 && LARGE_OFF_T % 2147483647 == 1)
16408 #ifdef F77_DUMMY_MAIN
16409 # ifdef __cplusplus
16412 int F77_DUMMY_MAIN() { return 1; }
16422 rm -f conftest.$ac_objext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16424 (eval $ac_compile) 2>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } &&
16428 { ac_try='test -s conftest.$ac_objext'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16436 echo "$as_me: failed program was:" >&5
16437 cat conftest.$ac_ext >&5
16439 rm -f conftest.$ac_objext conftest.$ac_ext
16440 cat >conftest.$ac_ext <<_ACEOF
16441 #line $LINENO "configure"
16442 #include "confdefs.h"
16443 #define _LARGE_FILES 1
16444 #include <sys/types.h>
16445 /* Check that off_t can represent 2**63 - 1 correctly.
16446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16447 since some C++ compilers masquerading as C compilers
16448 incorrectly reject 9223372036854775807. */
16449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16451 && LARGE_OFF_T % 2147483647 == 1)
16453 #ifdef F77_DUMMY_MAIN
16454 # ifdef __cplusplus
16457 int F77_DUMMY_MAIN() { return 1; }
16467 rm -f conftest.$ac_objext
16468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16469 (eval $ac_compile) 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -s conftest.$ac_objext'
16474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; }; then
16479 ac_cv_sys_large_files=1; break
16481 echo "$as_me: failed program was:" >&5
16482 cat conftest.$ac_ext >&5
16484 rm -f conftest.$ac_objext conftest.$ac_ext
16488 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16489 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16490 if test "$ac_cv_sys_large_files" != no; then
16492 cat >>confdefs.h <<_ACEOF
16493 #define _LARGE_FILES $ac_cv_sys_large_files
16503 # Select semaphore implementation type.
16504 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16506 cat >>confdefs.h <<\_ACEOF
16507 #define USE_NAMED_POSIX_SEMAPHORES 1
16510 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16512 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16514 cat >>confdefs.h <<\_ACEOF
16515 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16518 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16521 cat >>confdefs.h <<\_ACEOF
16522 #define USE_SYSV_SEMAPHORES 1
16525 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16530 # Select shared-memory implementation type.
16532 cat >>confdefs.h <<\_ACEOF
16533 #define USE_SYSV_SHARED_MEMORY 1
16536 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16539 if test "$enable_nls" = yes ; then
16541 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16542 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16543 if test "${ac_cv_search_gettext+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 ac_func_search_save_LIBS=$LIBS
16547 ac_cv_search_gettext=no
16548 cat >conftest.$ac_ext <<_ACEOF
16549 #line $LINENO "configure"
16550 #include "confdefs.h"
16552 /* Override any gcc2 internal prototype to avoid an error. */
16556 /* We use char because int might match the return type of a gcc2
16557 builtin and then its argument prototype would still apply. */
16559 #ifdef F77_DUMMY_MAIN
16560 # ifdef __cplusplus
16563 int F77_DUMMY_MAIN() { return 1; }
16573 rm -f conftest.$ac_objext conftest$ac_exeext
16574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16575 (eval $ac_link) 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } &&
16579 { ac_try='test -s conftest$ac_exeext'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_cv_search_gettext="none required"
16587 echo "$as_me: failed program was:" >&5
16588 cat conftest.$ac_ext >&5
16590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16591 if test "$ac_cv_search_gettext" = no; then
16592 for ac_lib in intl; do
16593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16594 cat >conftest.$ac_ext <<_ACEOF
16595 #line $LINENO "configure"
16596 #include "confdefs.h"
16598 /* Override any gcc2 internal prototype to avoid an error. */
16602 /* We use char because int might match the return type of a gcc2
16603 builtin and then its argument prototype would still apply. */
16605 #ifdef F77_DUMMY_MAIN
16606 # ifdef __cplusplus
16609 int F77_DUMMY_MAIN() { return 1; }
16619 rm -f conftest.$ac_objext conftest$ac_exeext
16620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16621 (eval $ac_link) 2>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } &&
16625 { ac_try='test -s conftest$ac_exeext'
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 ac_cv_search_gettext="-l$ac_lib"
16634 echo "$as_me: failed program was:" >&5
16635 cat conftest.$ac_ext >&5
16637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16640 LIBS=$ac_func_search_save_LIBS
16642 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16643 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16644 if test "$ac_cv_search_gettext" != no; then
16645 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16648 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16649 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16650 { (exit 1); exit 1; }; }
16653 if test "${ac_cv_header_libintl_h+set}" = set; then
16654 echo "$as_me:$LINENO: checking for libintl.h" >&5
16655 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16656 if test "${ac_cv_header_libintl_h+set}" = set; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16660 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16662 # Is the header compilable?
16663 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16664 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16665 cat >conftest.$ac_ext <<_ACEOF
16666 #line $LINENO "configure"
16667 #include "confdefs.h"
16668 $ac_includes_default
16669 #include <libintl.h>
16671 rm -f conftest.$ac_objext
16672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16673 (eval $ac_compile) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try='test -s conftest.$ac_objext'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_header_compiler=yes
16685 echo "$as_me: failed program was:" >&5
16686 cat conftest.$ac_ext >&5
16687 ac_header_compiler=no
16689 rm -f conftest.$ac_objext conftest.$ac_ext
16690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16691 echo "${ECHO_T}$ac_header_compiler" >&6
16693 # Is the header present?
16694 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16695 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16696 cat >conftest.$ac_ext <<_ACEOF
16697 #line $LINENO "configure"
16698 #include "confdefs.h"
16699 #include <libintl.h>
16701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16704 egrep -v '^ *\+' conftest.er1 >conftest.err
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } >/dev/null; then
16709 if test -s conftest.err; then
16710 ac_cpp_err=$ac_c_preproc_warn_flag
16717 if test -z "$ac_cpp_err"; then
16718 ac_header_preproc=yes
16720 echo "$as_me: failed program was:" >&5
16721 cat conftest.$ac_ext >&5
16722 ac_header_preproc=no
16724 rm -f conftest.err conftest.$ac_ext
16725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16726 echo "${ECHO_T}$ac_header_preproc" >&6
16728 # So? What about this header?
16729 case $ac_header_compiler:$ac_header_preproc in
16731 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16732 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16734 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16736 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16737 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16738 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16739 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16740 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16741 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16743 echo "$as_me:$LINENO: checking for libintl.h" >&5
16744 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16745 if test "${ac_cv_header_libintl_h+set}" = set; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 ac_cv_header_libintl_h=$ac_header_preproc
16750 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16751 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16754 if test $ac_cv_header_libintl_h = yes; then
16757 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16758 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16759 { (exit 1); exit 1; }; }
16763 for ac_prog in msgfmt
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_prog_MSGFMT+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16772 if test -n "$MSGFMT"; then
16773 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16776 for as_dir in $PATH
16779 test -z "$as_dir" && as_dir=.
16780 for ac_exec_ext in '' $ac_executable_extensions; do
16781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16782 ac_cv_prog_MSGFMT="$ac_prog"
16783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16791 MSGFMT=$ac_cv_prog_MSGFMT
16792 if test -n "$MSGFMT"; then
16793 echo "$as_me:$LINENO: result: $MSGFMT" >&5
16794 echo "${ECHO_T}$MSGFMT" >&6
16796 echo "$as_me:$LINENO: result: no" >&5
16797 echo "${ECHO_T}no" >&6
16800 test -n "$MSGFMT" && break
16803 if test -z "$MSGFMT"; then
16804 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16805 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16806 { (exit 1); exit 1; }; }
16808 for ac_prog in msgmerge
16810 # Extract the first word of "$ac_prog", so it can be a program name with args.
16811 set dummy $ac_prog; ac_word=$2
16812 echo "$as_me:$LINENO: checking for $ac_word" >&5
16813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16814 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16817 if test -n "$MSGMERGE"; then
16818 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16821 for as_dir in $PATH
16824 test -z "$as_dir" && as_dir=.
16825 for ac_exec_ext in '' $ac_executable_extensions; do
16826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16827 ac_cv_prog_MSGMERGE="$ac_prog"
16828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16836 MSGMERGE=$ac_cv_prog_MSGMERGE
16837 if test -n "$MSGMERGE"; then
16838 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16839 echo "${ECHO_T}$MSGMERGE" >&6
16841 echo "$as_me:$LINENO: result: no" >&5
16842 echo "${ECHO_T}no" >&6
16845 test -n "$MSGMERGE" && break
16848 for ac_prog in xgettext
16850 # Extract the first word of "$ac_prog", so it can be a program name with args.
16851 set dummy $ac_prog; ac_word=$2
16852 echo "$as_me:$LINENO: checking for $ac_word" >&5
16853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16854 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 if test -n "$XGETTEXT"; then
16858 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16861 for as_dir in $PATH
16864 test -z "$as_dir" && as_dir=.
16865 for ac_exec_ext in '' $ac_executable_extensions; do
16866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16867 ac_cv_prog_XGETTEXT="$ac_prog"
16868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16876 XGETTEXT=$ac_cv_prog_XGETTEXT
16877 if test -n "$XGETTEXT"; then
16878 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16879 echo "${ECHO_T}$XGETTEXT" >&6
16881 echo "$as_me:$LINENO: result: no" >&5
16882 echo "${ECHO_T}no" >&6
16885 test -n "$XGETTEXT" && break
16889 # Note: share/locale is always the default, independent of $datadir
16890 localedir='${prefix}/share/locale'
16891 if test x"$prefix" = x"NONE"; then
16892 exp_localedir="$ac_default_prefix/share/locale"
16894 exp_localedir="$prefix/share/locale"
16899 cat >>confdefs.h <<_ACEOF
16900 #define LOCALEDIR "$exp_localedir"
16906 # Check for Tcl configuration script tclConfig.sh
16907 if test "$with_tcl" = yes; then
16908 for ac_prog in tclsh tcl
16910 # Extract the first word of "$ac_prog", so it can be a program name with args.
16911 set dummy $ac_prog; ac_word=$2
16912 echo "$as_me:$LINENO: checking for $ac_word" >&5
16913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16914 if test "${ac_cv_path_TCLSH+set}" = set; then
16915 echo $ECHO_N "(cached) $ECHO_C" >&6
16919 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16923 for as_dir in $PATH
16926 test -z "$as_dir" && as_dir=.
16927 for ac_exec_ext in '' $ac_executable_extensions; do
16928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16929 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16939 TCLSH=$ac_cv_path_TCLSH
16941 if test -n "$TCLSH"; then
16942 echo "$as_me:$LINENO: result: $TCLSH" >&5
16943 echo "${ECHO_T}$TCLSH" >&6
16945 echo "$as_me:$LINENO: result: no" >&5
16946 echo "${ECHO_T}no" >&6
16949 test -n "$TCLSH" && break
16952 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16953 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16954 # Let user override test
16955 if test -z "$TCL_CONFIG_SH"; then
16956 pgac_test_dirs="$with_tclconfig"
16958 set X $pgac_test_dirs; shift
16959 if test $# -eq 0; then
16960 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16961 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16962 { (exit 1); exit 1; }; }
16963 set X `echo 'puts $auto_path' | $TCLSH`; shift
16967 if test -r "$pgac_dir/tclConfig.sh"; then
16968 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16974 if test -z "$TCL_CONFIG_SH"; then
16975 echo "$as_me:$LINENO: result: no" >&5
16976 echo "${ECHO_T}no" >&6
16977 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16978 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16979 { (exit 1); exit 1; }; }
16981 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16982 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16988 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16989 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16990 eval TCL_LIBS=\"$TCL_LIBS\"
16991 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16992 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16996 # Check for Tk configuration script tkConfig.sh
16997 if test "$with_tk" = yes; then
16998 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16999 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17000 # Let user override test
17001 if test -z "$TK_CONFIG_SH"; then
17002 pgac_test_dirs="$with_tkconfig $with_tclconfig"
17004 set X $pgac_test_dirs; shift
17005 if test $# -eq 0; then
17006 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17007 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17008 { (exit 1); exit 1; }; }
17009 set X `echo 'puts $auto_path' | $TCLSH`; shift
17013 if test -r "$pgac_dir/tkConfig.sh"; then
17014 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17020 if test -z "$TK_CONFIG_SH"; then
17021 echo "$as_me:$LINENO: result: no" >&5
17022 echo "${ECHO_T}no" >&6
17023 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17024 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17025 { (exit 1); exit 1; }; }
17027 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17028 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17034 eval TK_LIBS=\"$TK_LIBS\"
17035 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17036 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17042 # Check for DocBook and tools
17044 for ac_prog in onsgmls nsgmls
17046 # Extract the first word of "$ac_prog", so it can be a program name with args.
17047 set dummy $ac_prog; ac_word=$2
17048 echo "$as_me:$LINENO: checking for $ac_word" >&5
17049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17050 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 if test -n "$NSGMLS"; then
17054 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17057 for as_dir in $PATH
17060 test -z "$as_dir" && as_dir=.
17061 for ac_exec_ext in '' $ac_executable_extensions; do
17062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17063 ac_cv_prog_NSGMLS="$ac_prog"
17064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17072 NSGMLS=$ac_cv_prog_NSGMLS
17073 if test -n "$NSGMLS"; then
17074 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17075 echo "${ECHO_T}$NSGMLS" >&6
17077 echo "$as_me:$LINENO: result: no" >&5
17078 echo "${ECHO_T}no" >&6
17081 test -n "$NSGMLS" && break
17084 for ac_prog in openjade jade
17086 # Extract the first word of "$ac_prog", so it can be a program name with args.
17087 set dummy $ac_prog; ac_word=$2
17088 echo "$as_me:$LINENO: checking for $ac_word" >&5
17089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17090 if test "${ac_cv_prog_JADE+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 if test -n "$JADE"; then
17094 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17097 for as_dir in $PATH
17100 test -z "$as_dir" && as_dir=.
17101 for ac_exec_ext in '' $ac_executable_extensions; do
17102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17103 ac_cv_prog_JADE="$ac_prog"
17104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17112 JADE=$ac_cv_prog_JADE
17113 if test -n "$JADE"; then
17114 echo "$as_me:$LINENO: result: $JADE" >&5
17115 echo "${ECHO_T}$JADE" >&6
17117 echo "$as_me:$LINENO: result: no" >&5
17118 echo "${ECHO_T}no" >&6
17121 test -n "$JADE" && break
17125 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
17126 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
17127 if test "${pgac_cv_check_docbook+set}" = set; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 cat >conftest.sgml <<EOF
17131 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
17133 <title>test</title>
17135 <title>random</title>
17137 <title>testsect</title>
17144 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17145 if test $? -eq 0; then
17146 pgac_cv_check_docbook=yes
17148 pgac_cv_check_docbook=no
17150 rm -f conftest.sgml
17152 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17153 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17155 have_docbook=$pgac_cv_check_docbook
17158 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17159 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17160 if test "${pgac_cv_path_stylesheets+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 if test -n "$DOCBOOKSTYLE"; then
17164 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17166 for pgac_prefix in /usr /usr/local /opt; do
17167 for pgac_infix in share lib; do
17168 for pgac_postfix in \
17169 sgml/stylesheets/nwalsh-modular \
17170 sgml/stylesheets/docbook \
17171 sgml/docbook/dsssl/modular \
17172 sgml/docbook/stylesheet/dsssl/modular \
17173 sgml/docbook/dsssl-stylesheets
17175 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17176 if test -r "$pgac_candidate/html/docbook.dsl" \
17177 && test -r "$pgac_candidate/print/docbook.dsl"
17179 pgac_cv_path_stylesheets=$pgac_candidate
17188 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17190 if test -n "$DOCBOOKSTYLE"; then
17191 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17192 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17194 echo "$as_me:$LINENO: result: no" >&5
17195 echo "${ECHO_T}no" >&6
17197 if test -n "$DOCBOOKSTYLE"; then
17198 for ac_prog in collateindex.pl
17200 # Extract the first word of "$ac_prog", so it can be a program name with args.
17201 set dummy $ac_prog; ac_word=$2
17202 echo "$as_me:$LINENO: checking for $ac_word" >&5
17203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17204 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17205 echo $ECHO_N "(cached) $ECHO_C" >&6
17207 case $COLLATEINDEX in
17209 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17213 for as_dir in $DOCBOOKSTYLE/bin $PATH
17216 test -z "$as_dir" && as_dir=.
17217 for ac_exec_ext in '' $ac_executable_extensions; do
17218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17219 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17229 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17231 if test -n "$COLLATEINDEX"; then
17232 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17233 echo "${ECHO_T}$COLLATEINDEX" >&6
17235 echo "$as_me:$LINENO: result: no" >&5
17236 echo "${ECHO_T}no" >&6
17239 test -n "$COLLATEINDEX" && break
17243 for ac_prog in collateindex.pl
17245 # Extract the first word of "$ac_prog", so it can be a program name with args.
17246 set dummy $ac_prog; ac_word=$2
17247 echo "$as_me:$LINENO: checking for $ac_word" >&5
17248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17249 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17252 case $COLLATEINDEX in
17254 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17258 for as_dir in $PATH
17261 test -z "$as_dir" && as_dir=.
17262 for ac_exec_ext in '' $ac_executable_extensions; do
17263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17264 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17274 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17276 if test -n "$COLLATEINDEX"; then
17277 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17278 echo "${ECHO_T}$COLLATEINDEX" >&6
17280 echo "$as_me:$LINENO: result: no" >&5
17281 echo "${ECHO_T}no" >&6
17284 test -n "$COLLATEINDEX" && break
17288 for ac_prog in sgmlspl
17290 # Extract the first word of "$ac_prog", so it can be a program name with args.
17291 set dummy $ac_prog; ac_word=$2
17292 echo "$as_me:$LINENO: checking for $ac_word" >&5
17293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17294 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 if test -n "$SGMLSPL"; then
17298 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17301 for as_dir in $PATH
17304 test -z "$as_dir" && as_dir=.
17305 for ac_exec_ext in '' $ac_executable_extensions; do
17306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17307 ac_cv_prog_SGMLSPL="$ac_prog"
17308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17316 SGMLSPL=$ac_cv_prog_SGMLSPL
17317 if test -n "$SGMLSPL"; then
17318 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17319 echo "${ECHO_T}$SGMLSPL" >&6
17321 echo "$as_me:$LINENO: result: no" >&5
17322 echo "${ECHO_T}no" >&6
17325 test -n "$SGMLSPL" && break
17330 # prepare build tree if outside source tree
17331 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17332 # Note 2: /bin/pwd might be better than shell's built-in at getting
17333 # a symlink-free name.
17334 if test "$no_create" != yes; then
17335 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17340 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17341 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17342 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17343 || { { echo "$as_me:$LINENO: error: failed" >&5
17344 echo "$as_me: error: failed" >&2;}
17345 { (exit 1); exit 1; }; }
17346 echo "$as_me:$LINENO: result: done" >&5
17347 echo "${ECHO_T}done" >&6
17352 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17355 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}"
17358 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17361 cat >confcache <<\_ACEOF
17362 # This file is a shell script that caches the results of configure
17363 # tests run on this system so they can be shared between configure
17364 # scripts and configure runs, see configure's option --config-cache.
17365 # It is not useful on other systems. If it contains results you don't
17366 # want to keep, you may remove or edit it.
17368 # config.status only pays attention to the cache file if you give it
17369 # the --recheck option to rerun configure.
17371 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17372 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17373 # following values.
17377 # The following way of writing the cache mishandles newlines in values,
17378 # but we know of no workaround that is simple, portable, and efficient.
17379 # So, don't put newlines in cache variables' values.
17380 # Ultrix sh set writes to stderr and can't be redirected directly,
17381 # and sets the high bit in the cache file unless we assign to the vars.
17384 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17386 # `set' does not quote correctly, so add quotes (double-quote
17387 # substitution turns \\\\ into \\, and sed turns \\ into \).
17390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17393 # `set' quotes correctly as required by POSIX, so do not add quotes.
17395 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17402 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17404 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17406 if cmp -s $cache_file confcache; then :; else
17407 if test -w $cache_file; then
17408 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17409 cat confcache >$cache_file
17411 echo "not updating unwritable cache $cache_file"
17416 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17417 # Let make expand exec_prefix.
17418 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17420 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17421 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17422 # trailing colons and then remove the whole line if VPATH becomes empty
17423 # (actually we leave an empty line to preserve line numbers).
17424 if test "x$srcdir" = x.; then
17425 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17426 s/:*\$(srcdir):*/:/;
17427 s/:*\${srcdir}:*/:/;
17429 s/^\([^=]*=[ ]*\):*/\1/;
17435 DEFS=-DHAVE_CONFIG_H
17438 : ${CONFIG_STATUS=./config.status}
17439 ac_clean_files_save=$ac_clean_files
17440 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17441 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17442 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17443 cat >$CONFIG_STATUS <<_ACEOF
17445 # Generated by $as_me.
17446 # Run this file to recreate the current configuration.
17447 # Compiler output produced by configure, useful for debugging
17448 # configure, is in config.log if it exists.
17451 SHELL=\${CONFIG_SHELL-$SHELL}
17454 cat >>$CONFIG_STATUS <<\_ACEOF
17456 ## --------------------- ##
17457 ## M4sh Initialization. ##
17458 ## --------------------- ##
17460 # Be Bourne compatible
17461 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17464 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17469 # Support unset when possible.
17470 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17476 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17477 { $as_unset LANG || test "${LANG+set}" != set; } ||
17478 { LANG=C; export LANG; }
17479 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17480 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17481 { LC_ALL=C; export LC_ALL; }
17482 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17483 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17484 { LC_TIME=C; export LC_TIME; }
17485 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17486 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17487 { LC_CTYPE=C; export LC_CTYPE; }
17488 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17489 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17490 { LANGUAGE=C; export LANGUAGE; }
17491 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17492 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17493 { LC_COLLATE=C; export LC_COLLATE; }
17494 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17495 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17496 { LC_NUMERIC=C; export LC_NUMERIC; }
17497 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17498 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17499 { LC_MESSAGES=C; export LC_MESSAGES; }
17502 # Name of the executable.
17503 as_me=`(basename "$0") 2>/dev/null ||
17504 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17505 X"$0" : 'X\(//\)$' \| \
17506 X"$0" : 'X\(/\)$' \| \
17507 . : '\(.\)' 2>/dev/null ||
17509 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17510 /^X\/\(\/\/\)$/{ s//\1/; q; }
17511 /^X\/\(\/\).*/{ s//\1/; q; }
17514 # PATH needs CR, and LINENO needs CR and PATH.
17515 # Avoid depending upon Character Ranges.
17516 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17517 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17518 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17519 as_cr_digits='0123456789'
17520 as_cr_alnum=$as_cr_Letters$as_cr_digits
17522 # The user is always right.
17523 if test "${PATH_SEPARATOR+set}" != set; then
17524 echo "#! /bin/sh" >conftest.sh
17525 echo "exit 0" >>conftest.sh
17526 chmod +x conftest.sh
17527 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17536 as_lineno_1=$LINENO
17537 as_lineno_2=$LINENO
17538 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17539 test "x$as_lineno_1" != "x$as_lineno_2" &&
17540 test "x$as_lineno_3" = "x$as_lineno_2" || {
17541 # Find who we are. Look in the path if we contain no path at all
17544 *[\\/]* ) as_myself=$0 ;;
17545 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17546 for as_dir in $PATH
17549 test -z "$as_dir" && as_dir=.
17550 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17555 # We did not find ourselves, most probably we were run as `sh COMMAND'
17556 # in which case we are not to be found in the path.
17557 if test "x$as_myself" = x; then
17560 if test ! -f "$as_myself"; then
17561 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17562 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17563 { (exit 1); exit 1; }; }
17565 case $CONFIG_SHELL in
17567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17568 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17571 test -z "$as_dir" && as_dir=.
17572 for as_base in sh bash ksh sh5; do
17575 if ("$as_dir/$as_base" -c '
17576 as_lineno_1=$LINENO
17577 as_lineno_2=$LINENO
17578 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17579 test "x$as_lineno_1" != "x$as_lineno_2" &&
17580 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17581 CONFIG_SHELL=$as_dir/$as_base
17582 export CONFIG_SHELL
17583 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17591 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17592 # uniformly replaced by the line number. The first 'sed' inserts a
17593 # line-number line before each line; the second 'sed' does the real
17594 # work. The second script uses 'N' to pair each line-number line
17595 # with the numbered line, and appends trailing '-' during
17596 # substitution so that $LINENO is not a special case at line end.
17597 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17598 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17599 sed '=' <$as_myself |
17604 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17607 s,^['$as_cr_digits']*\n,,
17608 ' >$as_me.lineno &&
17609 chmod +x $as_me.lineno ||
17610 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17611 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17612 { (exit 1); exit 1; }; }
17614 # Don't try to exec as it changes $[0], causing all sort of problems
17615 # (the dirname of $[0] is not the place where we might find the
17616 # original and so on. Autoconf is especially sensible to this).
17618 # Exit status is that of the last command.
17623 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17624 *c*,-n*) ECHO_N= ECHO_C='
17626 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17627 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17630 if expr a : '\(a\)' >/dev/null 2>&1; then
17636 rm -f conf$$ conf$$.exe conf$$.file
17638 if ln -s conf$$.file conf$$ 2>/dev/null; then
17639 # We could just check for DJGPP; but this test a) works b) is more generic
17640 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17641 if test -f conf$$.exe; then
17642 # Don't use ln at all; we don't have any links
17647 elif ln conf$$.file conf$$ 2>/dev/null; then
17652 rm -f conf$$ conf$$.exe conf$$.file
17654 as_executable_p="test -f"
17656 # Sed expression to map a string onto a valid CPP name.
17657 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17659 # Sed expression to map a string onto a valid variable name.
17660 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17664 # We need space, tab and new line, in precisely that order.
17670 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17674 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17675 # report actual input values of CONFIG_FILES etc. instead of their
17676 # values after options handling. Logging --version etc. is OK.
17680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17681 ## Running $as_me. ##
17686 This file was extended by PostgreSQL $as_me 7.4devel, which was
17687 generated by GNU Autoconf 2.53. Invocation command line was
17689 CONFIG_FILES = $CONFIG_FILES
17690 CONFIG_HEADERS = $CONFIG_HEADERS
17691 CONFIG_LINKS = $CONFIG_LINKS
17692 CONFIG_COMMANDS = $CONFIG_COMMANDS
17696 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17700 # Files that config.status was made for.
17701 if test -n "$ac_config_files"; then
17702 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17705 if test -n "$ac_config_headers"; then
17706 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17709 if test -n "$ac_config_links"; then
17710 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17713 if test -n "$ac_config_commands"; then
17714 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17717 cat >>$CONFIG_STATUS <<\_ACEOF
17720 \`$as_me' instantiates files from templates according to the
17721 current configuration.
17723 Usage: $0 [OPTIONS] [FILE]...
17725 -h, --help print this help, then exit
17726 -V, --version print version number, then exit
17727 -d, --debug don't remove temporary files
17728 --recheck update $as_me by reconfiguring in the same conditions
17729 --file=FILE[:TEMPLATE]
17730 instantiate the configuration file FILE
17731 --header=FILE[:TEMPLATE]
17732 instantiate the configuration header FILE
17734 Configuration files:
17737 Configuration headers:
17740 Configuration links:
17743 Report bugs to <bug-autoconf@gnu.org>."
17746 cat >>$CONFIG_STATUS <<_ACEOF
17748 PostgreSQL config.status 7.4devel
17749 configured by $0, generated by GNU Autoconf 2.53,
17750 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17752 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17753 Free Software Foundation, Inc.
17754 This config.status script is free software; the Free Software Foundation
17755 gives unlimited permission to copy, distribute and modify it."
17759 cat >>$CONFIG_STATUS <<\_ACEOF
17760 # If no file are specified by the user, then we need to provide default
17761 # value. By we need to know if files were specified by the user.
17767 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17768 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17770 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17774 *) # This is not an option, so the user has probably given explicit
17776 ac_need_defaults=false;;
17780 # Handling of the options.
17782 cat >>$CONFIG_STATUS <<_ACEOF
17783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17784 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17785 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17787 cat >>$CONFIG_STATUS <<\_ACEOF
17788 --version | --vers* | -V )
17789 echo "$ac_cs_version"; exit 0 ;;
17791 # Conflict between --help and --header
17792 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17793 Try \`$0 --help' for more information." >&5
17794 echo "$as_me: error: ambiguous option: $1
17795 Try \`$0 --help' for more information." >&2;}
17796 { (exit 1); exit 1; }; };;
17797 --help | --hel | -h )
17798 echo "$ac_cs_usage"; exit 0 ;;
17799 --debug | --d* | -d )
17801 --file | --fil | --fi | --f )
17803 CONFIG_FILES="$CONFIG_FILES $1"
17804 ac_need_defaults=false;;
17805 --header | --heade | --head | --hea )
17807 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17808 ac_need_defaults=false;;
17810 # This is an error.
17811 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17812 Try \`$0 --help' for more information." >&5
17813 echo "$as_me: error: unrecognized option: $1
17814 Try \`$0 --help' for more information." >&2;}
17815 { (exit 1); exit 1; }; } ;;
17817 *) ac_config_targets="$ac_config_targets $1" ;;
17829 cat >>$CONFIG_STATUS <<\_ACEOF
17830 for ac_config_target in $ac_config_targets
17832 case "$ac_config_target" in
17833 # Handling of arguments.
17834 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17835 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17836 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17837 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17838 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17839 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17840 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17841 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17842 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17843 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17844 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17845 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17846 { (exit 1); exit 1; }; };;
17850 # If the user did not use the arguments to specify the items to instantiate,
17851 # then the envvar interface is used. Set only those that are not.
17852 # We use the long form for the default assignment because of an extremely
17853 # bizarre bug on SunOS 4.1.3.
17854 if $ac_need_defaults; then
17855 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17856 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17857 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17860 # Create a temporary directory, and hook for its removal unless debugging.
17863 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17864 trap '{ (exit 1); exit 1; }' 1 2 13 15
17867 # Create a (secure) tmp directory for tmp files.
17870 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17871 test -n "$tmp" && test -d "$tmp"
17874 tmp=$TMPDIR/cs$$-$RANDOM
17875 (umask 077 && mkdir $tmp)
17878 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17879 { (exit 1); exit 1; }
17884 cat >>$CONFIG_STATUS <<_ACEOF
17887 # CONFIG_FILES section.
17890 # No need to generate the scripts if there are no CONFIG_FILES.
17891 # This happens for instance when ./config.status config.h
17892 if test -n "\$CONFIG_FILES"; then
17893 # Protect against being on the right side of a sed subst in config.status.
17894 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17895 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17896 s,@SHELL@,$SHELL,;t t
17897 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17898 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17899 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17900 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17901 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17902 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17903 s,@exec_prefix@,$exec_prefix,;t t
17904 s,@prefix@,$prefix,;t t
17905 s,@program_transform_name@,$program_transform_name,;t t
17906 s,@bindir@,$bindir,;t t
17907 s,@sbindir@,$sbindir,;t t
17908 s,@libexecdir@,$libexecdir,;t t
17909 s,@datadir@,$datadir,;t t
17910 s,@sysconfdir@,$sysconfdir,;t t
17911 s,@sharedstatedir@,$sharedstatedir,;t t
17912 s,@localstatedir@,$localstatedir,;t t
17913 s,@libdir@,$libdir,;t t
17914 s,@includedir@,$includedir,;t t
17915 s,@oldincludedir@,$oldincludedir,;t t
17916 s,@infodir@,$infodir,;t t
17917 s,@mandir@,$mandir,;t t
17918 s,@build_alias@,$build_alias,;t t
17919 s,@host_alias@,$host_alias,;t t
17920 s,@target_alias@,$target_alias,;t t
17921 s,@DEFS@,$DEFS,;t t
17922 s,@ECHO_C@,$ECHO_C,;t t
17923 s,@ECHO_N@,$ECHO_N,;t t
17924 s,@ECHO_T@,$ECHO_T,;t t
17925 s,@LIBS@,$LIBS,;t t
17926 s,@docdir@,$docdir,;t t
17927 s,@configure_args@,$configure_args,;t t
17928 s,@build@,$build,;t t
17929 s,@build_cpu@,$build_cpu,;t t
17930 s,@build_vendor@,$build_vendor,;t t
17931 s,@build_os@,$build_os,;t t
17932 s,@host@,$host,;t t
17933 s,@host_cpu@,$host_cpu,;t t
17934 s,@host_vendor@,$host_vendor,;t t
17935 s,@host_os@,$host_os,;t t
17936 s,@PORTNAME@,$PORTNAME,;t t
17938 s,@enable_nls@,$enable_nls,;t t
17939 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17940 s,@default_port@,$default_port,;t t
17941 s,@enable_shared@,$enable_shared,;t t
17942 s,@enable_rpath@,$enable_rpath,;t t
17943 s,@enable_debug@,$enable_debug,;t t
17945 s,@CFLAGS@,$CFLAGS,;t t
17946 s,@LDFLAGS@,$LDFLAGS,;t t
17947 s,@CPPFLAGS@,$CPPFLAGS,;t t
17948 s,@ac_ct_CC@,$ac_ct_CC,;t t
17949 s,@EXEEXT@,$EXEEXT,;t t
17950 s,@OBJEXT@,$OBJEXT,;t t
17953 s,@autodepend@,$autodepend,;t t
17954 s,@INCLUDES@,$INCLUDES,;t t
17955 s,@enable_thread_safety@,$enable_thread_safety,;t t
17956 s,@with_tcl@,$with_tcl,;t t
17957 s,@with_tk@,$with_tk,;t t
17958 s,@with_perl@,$with_perl,;t t
17959 s,@with_python@,$with_python,;t t
17961 s,@with_java@,$with_java,;t t
17962 s,@with_krb4@,$with_krb4,;t t
17963 s,@with_krb5@,$with_krb5,;t t
17964 s,@krb_srvtab@,$krb_srvtab,;t t
17965 s,@with_pam@,$with_pam,;t t
17966 s,@with_rendezvous@,$with_rendezvous,;t t
17967 s,@with_openssl@,$with_openssl,;t t
17968 s,@ELF_SYS@,$ELF_SYS,;t t
17970 s,@FLEX@,$FLEX,;t t
17971 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17972 s,@LN_S@,$LN_S,;t t
17974 s,@with_gnu_ld@,$with_gnu_ld,;t t
17975 s,@ld_R_works@,$ld_R_works,;t t
17976 s,@RANLIB@,$RANLIB,;t t
17977 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17978 s,@LORDER@,$LORDER,;t t
17980 s,@STRIP@,$STRIP,;t t
17981 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17982 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17983 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17984 s,@YACC@,$YACC,;t t
17985 s,@YFLAGS@,$YFLAGS,;t t
17986 s,@PERL@,$PERL,;t t
17987 s,@perl_archlibexp@,$perl_archlibexp,;t t
17988 s,@perl_privlibexp@,$perl_privlibexp,;t t
17989 s,@perl_useshrplib@,$perl_useshrplib,;t t
17990 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17991 s,@PYTHON@,$PYTHON,;t t
17992 s,@python_version@,$python_version,;t t
17993 s,@python_prefix@,$python_prefix,;t t
17994 s,@python_execprefix@,$python_execprefix,;t t
17995 s,@python_configdir@,$python_configdir,;t t
17996 s,@python_moduledir@,$python_moduledir,;t t
17997 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17998 s,@python_includespec@,$python_includespec,;t t
17999 s,@python_libspec@,$python_libspec,;t t
18000 s,@LIBOBJS@,$LIBOBJS,;t t
18001 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
18002 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18003 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18004 s,@MSGFMT@,$MSGFMT,;t t
18005 s,@MSGMERGE@,$MSGMERGE,;t t
18006 s,@XGETTEXT@,$XGETTEXT,;t t
18007 s,@localedir@,$localedir,;t t
18008 s,@TCLSH@,$TCLSH,;t t
18009 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18010 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18011 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18012 s,@TCL_LIBS@,$TCL_LIBS,;t t
18013 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18014 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18015 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18016 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18017 s,@TK_LIBS@,$TK_LIBS,;t t
18018 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18019 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18020 s,@NSGMLS@,$NSGMLS,;t t
18021 s,@JADE@,$JADE,;t t
18022 s,@have_docbook@,$have_docbook,;t t
18023 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18024 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18025 s,@SGMLSPL@,$SGMLSPL,;t t
18026 s,@vpath_build@,$vpath_build,;t t
18031 cat >>$CONFIG_STATUS <<\_ACEOF
18032 # Split the substitutions into bite-sized pieces for seds with
18033 # small command number limits, like on Digital OSF/1 and HP-UX.
18034 ac_max_sed_lines=48
18035 ac_sed_frag=1 # Number of current file.
18036 ac_beg=1 # First line for current file.
18037 ac_end=$ac_max_sed_lines # Line after last line for current file.
18040 while $ac_more_lines; do
18041 if test $ac_beg -gt 1; then
18042 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18044 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18046 if test ! -s $tmp/subs.frag; then
18047 ac_more_lines=false
18049 # The purpose of the label and of the branching condition is to
18050 # speed up the sed processing (if there are no `@' at all, there
18051 # is no need to browse any of the substitutions).
18052 # These are the two extra sed commands mentioned above.
18054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18055 if test -z "$ac_sed_cmds"; then
18056 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18058 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18060 ac_sed_frag=`expr $ac_sed_frag + 1`
18062 ac_end=`expr $ac_end + $ac_max_sed_lines`
18065 if test -z "$ac_sed_cmds"; then
18068 fi # test -n "$CONFIG_FILES"
18071 cat >>$CONFIG_STATUS <<\_ACEOF
18072 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18073 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18075 - | *:- | *:-:* ) # input from stdin
18077 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18078 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18079 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18080 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18081 * ) ac_file_in=$ac_file.in ;;
18084 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18085 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18087 X"$ac_file" : 'X\(//\)[^/]' \| \
18088 X"$ac_file" : 'X\(//\)$' \| \
18089 X"$ac_file" : 'X\(/\)' \| \
18090 . : '\(.\)' 2>/dev/null ||
18092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18094 /^X\(\/\/\)$/{ s//\1/; q; }
18095 /^X\(\/\).*/{ s//\1/; q; }
18097 { case "$ac_dir" in
18098 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18102 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18103 case $as_mkdir_dir in
18104 # Skip DOS drivespec
18105 ?:) as_incr_dir=$as_mkdir_dir ;;
18107 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18108 test -d "$as_incr_dir" ||
18109 mkdir "$as_incr_dir" ||
18110 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18111 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18112 { (exit 1); exit 1; }; }
18119 if test "$ac_dir" != .; then
18120 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18121 # A "../" for each directory in $ac_dir_suffix.
18122 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18124 ac_dir_suffix= ac_top_builddir=
18128 .) # No --srcdir option. We are building in place.
18130 if test -z "$ac_top_builddir"; then
18133 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18135 [\\/]* | ?:[\\/]* ) # Absolute path.
18136 ac_srcdir=$srcdir$ac_dir_suffix;
18137 ac_top_srcdir=$srcdir ;;
18138 *) # Relative path.
18139 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18140 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18142 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18144 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18145 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18146 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18147 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18151 if test x"$ac_file" != x-; then
18152 { echo "$as_me:$LINENO: creating $ac_file" >&5
18153 echo "$as_me: creating $ac_file" >&6;}
18156 # Let's still pretend it is `configure' which instantiates (i.e., don't
18157 # use $as_me), people would be surprised to read:
18158 # /* config.h. Generated by config.status. */
18159 if test x"$ac_file" = x-; then
18162 configure_input="$ac_file. "
18164 configure_input=$configure_input"Generated from `echo $ac_file_in |
18165 sed 's,.*/,,'` by configure."
18167 # First look for the input files in the build tree, otherwise in the
18169 ac_file_inputs=`IFS=:
18170 for f in $ac_file_in; do
18172 -) echo $tmp/stdin ;;
18174 # Absolute (can't be DOS-style, as IFS=:)
18175 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18176 echo "$as_me: error: cannot find input file: $f" >&2;}
18177 { (exit 1); exit 1; }; }
18180 if test -f "$f"; then
18183 elif test -f "$srcdir/$f"; then
18188 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18189 echo "$as_me: error: cannot find input file: $f" >&2;}
18190 { (exit 1); exit 1; }; }
18193 done` || { (exit 1); exit 1; }
18195 cat >>$CONFIG_STATUS <<_ACEOF
18199 cat >>$CONFIG_STATUS <<\_ACEOF
18201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18202 s,@configure_input@,$configure_input,;t t
18203 s,@srcdir@,$ac_srcdir,;t t
18204 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18205 s,@top_srcdir@,$ac_top_srcdir,;t t
18206 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18207 s,@builddir@,$ac_builddir,;t t
18208 s,@abs_builddir@,$ac_abs_builddir,;t t
18209 s,@top_builddir@,$ac_top_builddir,;t t
18210 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18211 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18213 if test x"$ac_file" != x-; then
18214 mv $tmp/out $ac_file
18222 cat >>$CONFIG_STATUS <<\_ACEOF
18225 # CONFIG_HEADER section.
18228 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18229 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18231 # ac_d sets the value in "#define NAME VALUE" lines.
18232 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18233 ac_dB='[ ].*$,\1#\2'
18236 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18237 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18238 ac_uB='$,\1#\2define\3'
18242 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18243 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18245 - | *:- | *:-:* ) # input from stdin
18247 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18248 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18249 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18251 * ) ac_file_in=$ac_file.in ;;
18254 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18255 echo "$as_me: creating $ac_file" >&6;}
18257 # First look for the input files in the build tree, otherwise in the
18259 ac_file_inputs=`IFS=:
18260 for f in $ac_file_in; do
18262 -) echo $tmp/stdin ;;
18264 # Absolute (can't be DOS-style, as IFS=:)
18265 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18266 echo "$as_me: error: cannot find input file: $f" >&2;}
18267 { (exit 1); exit 1; }; }
18270 if test -f "$f"; then
18273 elif test -f "$srcdir/$f"; then
18278 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18279 echo "$as_me: error: cannot find input file: $f" >&2;}
18280 { (exit 1); exit 1; }; }
18283 done` || { (exit 1); exit 1; }
18284 # Remove the trailing spaces.
18285 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18289 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18290 # `conftest.undefs', that substitutes the proper values into
18291 # config.h.in to produce config.h. The first handles `#define'
18292 # templates, and the second `#undef' templates.
18293 # And first: Protect against being on the right side of a sed subst in
18294 # config.status. Protect against being in an unquoted here document
18295 # in config.status.
18296 rm -f conftest.defines conftest.undefs
18297 # Using a here document instead of a string reduces the quoting nightmare.
18298 # Putting comments in sed scripts is not portable.
18300 # `end' is used to avoid that the second main sed command (meant for
18301 # 0-ary CPP macros) applies to n-ary macro definitions.
18302 # See the Autoconf documentation for `clear'.
18303 cat >confdef2sed.sed <<\_ACEOF
18308 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18310 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18313 # If some macros were called several times there might be several times
18314 # the same #defines, which is useless. Nevertheless, we may not want to
18315 # sort them, since we want the *last* AC-DEFINE to be honored.
18316 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18317 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18318 rm -f confdef2sed.sed
18320 # This sed command replaces #undef with comments. This is necessary, for
18321 # example, in the case of _POSIX_SOURCE, which is predefined and required
18322 # on some systems where configure will not decide to define it.
18323 cat >>conftest.undefs <<\_ACEOF
18324 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18327 # Break up conftest.defines because some shells have a limit on the size
18328 # of here documents, and old seds have small limits too (100 cmds).
18329 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18330 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18331 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18332 echo ' :' >>$CONFIG_STATUS
18333 rm -f conftest.tail
18334 while grep . conftest.defines >/dev/null
18336 # Write a limited-size here document to $tmp/defines.sed.
18337 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18338 # Speed up: don't consider the non `#define' lines.
18339 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18340 # Work around the forget-to-reset-the-flag bug.
18341 echo 't clr' >>$CONFIG_STATUS
18342 echo ': clr' >>$CONFIG_STATUS
18343 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18345 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18347 mv $tmp/out $tmp/in
18349 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18350 rm -f conftest.defines
18351 mv conftest.tail conftest.defines
18353 rm -f conftest.defines
18354 echo ' fi # egrep' >>$CONFIG_STATUS
18355 echo >>$CONFIG_STATUS
18357 # Break up conftest.undefs because some shells have a limit on the size
18358 # of here documents, and old seds have small limits too (100 cmds).
18359 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18360 rm -f conftest.tail
18361 while grep . conftest.undefs >/dev/null
18363 # Write a limited-size here document to $tmp/undefs.sed.
18364 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18365 # Speed up: don't consider the non `#undef'
18366 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18367 # Work around the forget-to-reset-the-flag bug.
18368 echo 't clr' >>$CONFIG_STATUS
18369 echo ': clr' >>$CONFIG_STATUS
18370 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18372 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18374 mv $tmp/out $tmp/in
18376 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18377 rm -f conftest.undefs
18378 mv conftest.tail conftest.undefs
18380 rm -f conftest.undefs
18382 cat >>$CONFIG_STATUS <<\_ACEOF
18383 # Let's still pretend it is `configure' which instantiates (i.e., don't
18384 # use $as_me), people would be surprised to read:
18385 # /* config.h. Generated by config.status. */
18386 if test x"$ac_file" = x-; then
18387 echo "/* Generated by configure. */" >$tmp/config.h
18389 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18391 cat $tmp/in >>$tmp/config.h
18393 if test x"$ac_file" != x-; then
18394 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18395 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18396 echo "$as_me: $ac_file is unchanged" >&6;}
18398 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18400 X"$ac_file" : 'X\(//\)[^/]' \| \
18401 X"$ac_file" : 'X\(//\)$' \| \
18402 X"$ac_file" : 'X\(/\)' \| \
18403 . : '\(.\)' 2>/dev/null ||
18405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18407 /^X\(\/\/\)$/{ s//\1/; q; }
18408 /^X\(\/\).*/{ s//\1/; q; }
18410 { case "$ac_dir" in
18411 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18415 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18416 case $as_mkdir_dir in
18417 # Skip DOS drivespec
18418 ?:) as_incr_dir=$as_mkdir_dir ;;
18420 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18421 test -d "$as_incr_dir" ||
18422 mkdir "$as_incr_dir" ||
18423 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18424 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18425 { (exit 1); exit 1; }; }
18431 mv $tmp/config.h $ac_file
18435 rm -f $tmp/config.h
18437 # Run the commands associated with the file.
18439 src/include/pg_config.h )
18440 # Update timestamp for pg_config.h (see Makefile.global)
18441 echo >src/include/stamp-h
18446 cat >>$CONFIG_STATUS <<\_ACEOF
18449 # CONFIG_LINKS section.
18452 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18453 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18454 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18456 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18457 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18459 if test ! -r $srcdir/$ac_source; then
18460 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18461 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18462 { (exit 1); exit 1; }; }
18466 # Make relative symlinks.
18467 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18468 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18469 X"$ac_dest" : 'X\(//\)[^/]' \| \
18470 X"$ac_dest" : 'X\(//\)$' \| \
18471 X"$ac_dest" : 'X\(/\)' \| \
18472 . : '\(.\)' 2>/dev/null ||
18474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18476 /^X\(\/\/\)$/{ s//\1/; q; }
18477 /^X\(\/\).*/{ s//\1/; q; }
18479 { case "$ac_dest_dir" in
18480 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18483 as_dummy="$ac_dest_dir"
18484 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18485 case $as_mkdir_dir in
18486 # Skip DOS drivespec
18487 ?:) as_incr_dir=$as_mkdir_dir ;;
18489 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18490 test -d "$as_incr_dir" ||
18491 mkdir "$as_incr_dir" ||
18492 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18493 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18494 { (exit 1); exit 1; }; }
18501 if test "$ac_dest_dir" != .; then
18502 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18503 # A "../" for each directory in $ac_dir_suffix.
18504 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18506 ac_dir_suffix= ac_top_builddir=
18510 .) # No --srcdir option. We are building in place.
18512 if test -z "$ac_top_builddir"; then
18515 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18517 [\\/]* | ?:[\\/]* ) # Absolute path.
18518 ac_srcdir=$srcdir$ac_dir_suffix;
18519 ac_top_srcdir=$srcdir ;;
18520 *) # Relative path.
18521 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18522 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18524 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18526 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18527 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18528 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18529 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18533 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18534 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18537 # Make a symlink if possible; otherwise try a hard link.
18538 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18539 ln $srcdir/$ac_source $ac_dest ||
18540 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18541 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18542 { (exit 1); exit 1; }; }
18546 cat >>$CONFIG_STATUS <<\_ACEOF
18548 { (exit 0); exit 0; }
18550 chmod +x $CONFIG_STATUS
18551 ac_clean_files=$ac_clean_files_save
18554 # configure is writing to config.log, and then calls config.status.
18555 # config.status does its own redirection, appending to config.log.
18556 # Unfortunately, on DOS this fails, as config.log is still kept open
18557 # by configure, so config.status won't be able to write to it; its
18558 # output is simply discarded. So we exec the FD to /dev/null,
18559 # effectively closing config.log, so it can be properly (re)opened and
18560 # appended to by config.status. When coming back to configure, we
18561 # need to make the FD available again.
18562 if test "$no_create" != yes; then
18565 $SHELL $CONFIG_STATUS || ac_cs_success=false
18567 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18568 # would make configure fail if this is the last instruction.
18569 $ac_cs_success || { (exit 1); exit 1; }